From c7c5b12b64880c124efc5d2abac4c6068877dc6f Mon Sep 17 00:00:00 2001 From: hama Date: Thu, 23 Apr 2015 00:10:34 +0200 Subject: [PATCH] better icons, ResetParameters --- appl/refind/aboutdialog.ui | 3 +- appl/refind/icons/action_go.png | Bin 0 -> 979 bytes appl/refind/icons/action_paste.png | Bin 0 -> 977 bytes appl/refind/icons/folder.png | Bin 0 -> 537 bytes appl/refind/icons/folder_find.png | Bin 0 -> 795 bytes appl/refind/icons/folder_go.png | Bin 0 -> 694 bytes appl/refind/icons/folder_magnify.png | Bin 0 -> 686 bytes appl/refind/icons/table.png | Bin 0 -> 976 bytes appl/refind/icons/tables.png | Bin 0 -> 981 bytes appl/refind/icons/wand.png | Bin 0 -> 570 bytes appl/refind/mainwindow.cpp | 29 ++++++++++- appl/refind/mainwindow.hpp | 1 + appl/refind/mainwindow.ui | 73 +++++++++++++++++++++------ appl/refind/refind.qrc | 5 ++ 14 files changed, 92 insertions(+), 19 deletions(-) create mode 100755 appl/refind/icons/action_go.png create mode 100755 appl/refind/icons/action_paste.png create mode 100644 appl/refind/icons/folder.png create mode 100644 appl/refind/icons/folder_find.png create mode 100644 appl/refind/icons/folder_go.png create mode 100644 appl/refind/icons/folder_magnify.png create mode 100755 appl/refind/icons/table.png create mode 100755 appl/refind/icons/tables.png create mode 100644 appl/refind/icons/wand.png diff --git a/appl/refind/aboutdialog.ui b/appl/refind/aboutdialog.ui index fd6f146..d9a70ea 100644 --- a/appl/refind/aboutdialog.ui +++ b/appl/refind/aboutdialog.ui @@ -33,7 +33,8 @@ p, li { white-space: pre-wrap; } <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">ReFind</span> for searching files in a directory tree</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This is a program of the project &quot;<span style=" font-weight:600;">Re</span>al <span style=" font-weight:600;">Pub</span>lic <span style=" font-weight:600;">Lib</span>rary&quot;.</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Sources are public domain and available under https://github.com/republib</p> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Implemented in QT (C++) 5.x</p></body></html> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Implemented in QT (C++) 5.x</p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Icons: Mark James, <a href="http://famfamfam.com"><span style=" text-decoration: underline; color:#0000ff;">http://famfamfam.com</span></a></p></body></html> diff --git a/appl/refind/icons/action_go.png b/appl/refind/icons/action_go.png new file mode 100755 index 0000000000000000000000000000000000000000..ef5bfc39bfd8cf47a0112efa8056414d2e2388d1 GIT binary patch literal 979 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GXl4m>B|mLR?*@Xv80~YrPp(do@TS zTq55Dwy6o?{P$%=GOYUiR zRe!OP^WJ79ihG}}@7vO_>CwWYFLx;Wh`#yp;y)Mwts4cSAuwn|U`}Ae383TpJY5_^ zD(0m2zvXLI;9+R&T)?;eqao{(+W*_P+)(x2_PhN05?@xO8b_B#gSZO)BTlXdX80!i z++4uEd0qeVqV3mfXRW`mOZ!u~ti^<839m?5tIp)+{=XqLzUN?*RIh?&-Cj8R>fB#FVdQ&MBb@02s}M{{R30 literal 0 HcmV?d00001 diff --git a/appl/refind/icons/action_paste.png b/appl/refind/icons/action_paste.png new file mode 100755 index 0000000000000000000000000000000000000000..60f7841ed6e36a5d1d102ca7f13a623e99648464 GIT binary patch literal 977 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GXl4m>B|mLR^nM`ul2`g1txdj@y4r zr*7`pc;Vu~$*(_ryShB$)uFga$9}wfekm-w^U{6)S)3Ouce+YVX@q+R5_JLS{A{7mjiGk(Mu?wif#dS~;o{-7?U-Kp7c z4R|WEKP>o@`!eCJ?$W~xGrBwG}EY# zEnH*3eIm}e_4K~%AIvw;nRcvSv5_(4!5>j(_IyUq>i6!Q=RehR{r$o??VKQsYwg5q Ppg{9<^>bP0l+XkKAqSY? literal 0 HcmV?d00001 diff --git a/appl/refind/icons/folder.png b/appl/refind/icons/folder.png new file mode 100644 index 0000000000000000000000000000000000000000..784e8fa48234f4f64b6922a6758f254ee0ca08ec GIT binary patch literal 537 zcmV+!0_OdRP)x(K@^6+>g^d@v4;gkbWsEoXE%32*i1tcpTNXd5CcIl)ECgqz|2rE6EW}s7R?kl za1q`0GCkMruC6-2LANtwVlsgzsp4?{@7$`KBv!G66>Vie3h?3OmEEkjwdLG0PgLVi z`!N((f$A@n17Ldj#`};0I3@iHJ5M{#IZz|UIYRm4(!uV7eYIYIwQf&}_2J~}>pQ^n z6o8--^T(=hkBNQ_k{-_GWE;FMW7!p}f{NG3nHZ{D5<3d8&tLh%a4AqqnjMkr3m&fkMdECD3N5}Unig5wy40;>lo4j~k+e}v)` zR6)J8Mk*u=SpB`p6o)7j?S0T@9?bz#m@l>gc*zk__|*!FMcHwP!gwLJvS~9c0px8E zW8hoRQY~32;;v|2 z6e-B2B zCE(hxS3dK-rRD4TH?wNZx>((BtjuOJ_pgyBGdA>1yDCbtXz88 ZdJfaffI=X}!C?RZ002ovPDHLkV1kN7cwztm literal 0 HcmV?d00001 diff --git a/appl/refind/icons/folder_go.png b/appl/refind/icons/folder_go.png new file mode 100644 index 0000000000000000000000000000000000000000..34a736f70261338c9bca98c38b78193740fa83a0 GIT binary patch literal 694 zcmV;n0!jUeP)N@Zw27r|iugjyK_i?%mf=ZN1k*q&Uedp~2B7g_+fS`hk+Nr1A{hI)z0`VHB6Nndl zX$Di6C%-U4JXr@~z-vS-U`e(1B@n-FV+JTmdRsylL39C=TOrljOR~Cct>JYCvg#mK z1ulqf0!%<`#~!NMu5Ba=9u&fmP-Zhc6E?!yaAE01t20W#1|(JmqlC- zu^GHsMqCzbhR}vI*0gbTWQ<2wA~0LlNQ8*Dc(aJuEaI~Cy?zX0(B7i0rEb>&+G>xJ z3k&o-xX8WohAjXsqHu`)jo1ugGgz-V-_eT`kMj#kXL{&TC&D=t zDS)urCatsVt!&16hZE0Sc81**wR}pC@@4w{a?#MB{`E|khgw{yHQH-JtJz=E5u9kb zz}UD5KR;Vfzpb!Z%f>egXcc4dbT1v5p6tGa?~4~cr@F?*lxpV^g36B#KYBzmnZT=P ztU#cJlp8~0$(9F7oRNX)Cvl||NCS*gXn$uoxwwWOL_|iRZDU%Zz_0slQ_$jLLxRmY zYQN^Gtv{u{{(_hrr|*biyHKPvp-87(y3%oSyAf`6gSqQdvkem?<%kV2VFIy&t*;YR z^XwItnC$Lnb@LeS)+TUb3F<+F@;111vPk~infZG&LxGEul+|^@8c0|rs+7r$%#!LE zr5D8z0$30Mgs&^xY<*ag!SRckT)wd25;?dXeRPlB*e?_;Hrzy)UL(dsw1?<2V)huH zyi4xws{Xj*>4;d`B@z+iV{2a;#ioMj5;iI##sghy=F5nwf&>hoN|`HnUZxu!1c+FT zjea*e84uB==DyhMT;3-T(Gavh~9-=EPu=N`}Ih&YW^IR@kVBB2dh1b*<~=i`|vgv%&02Yx*P)SD11&;F(U0?j>H Ur1R|wc>n+a07*qoM6N<$g6sr4fB*mh literal 0 HcmV?d00001 diff --git a/appl/refind/icons/table.png b/appl/refind/icons/table.png new file mode 100755 index 0000000000000000000000000000000000000000..6f794bce1d1bb5885095ef55817f6d4d79a709f9 GIT binary patch literal 976 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GXl4m>B|mLR`z1UtM$IQFwm;?U!Fl zCain%`m<+f_Un(|X79NkGI3|c{9U%?J9{?Y3{0$UTzk{mJLc2ZAFtm3dj9Tf^Qxmg zo6lUlc30ET+0HdIZNW{urk&HbpPsm7`-2znUw!$%@7CA<|NjH68wH~wFla--<)VQz z&~e?KE{-7;b7IfE96bv@3i>_o`$jsLu> zlNrOir*MkwidteLyybxtN6*qDJdG03E^ABA-Ruz-b>etGTkTloychEQva2#hwr{_1 RWj`p)JYD@<);T3K0RZX+kk$YI literal 0 HcmV?d00001 diff --git a/appl/refind/icons/tables.png b/appl/refind/icons/tables.png new file mode 100755 index 0000000000000000000000000000000000000000..e88ceb5d437bd5a4d4b4dcc7139f6a5d768127aa GIT binary patch literal 981 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GXl4m>B|mLR@dZ{POwdzmiGopS=DY zIQN`qXm&_ur(VT5>cy!{jcZmzSb={(6jkWROP&B zdoIsEa%08mdl#?W)iiXra}C{d^S?{|xd$)aAAj(_V$r$(|NjH68wH~wFla;I;OP$& zfR3Bs>EaktF(>xiZJ{Fq0TJSuZa@v`}eS@`6>58oqTsfbEBcc;$8rp`tgdebW zIa8i1#gMS;wW#4=M|)S52P|tl#2H00j9Ib`&T%Rx^{CAW@z88v_%A_P)hUn2-Navsqo?5A8 zh}}V^=%7@_%C;=H{tGpIj5CMu*>5J=i;m^t2QTySd)}9aAppozC}++wDz`eOViU-dbRRoz=JsVlZk>N%^azhi%=xTCt9`LQjtqNFW~e|R=r9= z`@I3J^#z@aD5yBuq2DLQO#|4uFW6R5kzPZ+h&6Af&5}POarL&lA~3t5R1i7uh*ffDw@qEs=HBW ze?CI~MkvG6H-MF7r{Yv4kw_q&PNP^XqFgTHXlH@RpLO}3aV{T{Ez=8lo;PHV$Ads1 zfOtF(s5%5V>3qE|&{lueV1Y1j%GF zXt&#NI-LlGLPN>_18TJzN~Mxf*f6pY5Dteo^|P&3>(H{!KTr&_wGRQWb^rhX07*qo IM6N<$g7V1&P5=M^ literal 0 HcmV?d00001 diff --git a/appl/refind/mainwindow.cpp b/appl/refind/mainwindow.cpp index 7036ff4..fa01bc0 100644 --- a/appl/refind/mainwindow.cpp +++ b/appl/refind/mainwindow.cpp @@ -54,8 +54,10 @@ MainWindow::MainWindow(const QString& startDir, QWidget *parent) : SLOT(absPathToClipboard())); connect(ui->actionGetFullName, SIGNAL(triggered()), this, SLOT(fullNameToClipboard())); - connect(ui->actionGetBaseDirectory, SIGNAL(triggered()), this, - SLOT(baseDirToClipboard())); + connect(ui->actionGetFullName, SIGNAL(triggered()), this, + SLOT(fullNameToClipboard())); + connect(ui->actionReset, SIGNAL(triggered()), this, + SLOT(resetParameters())); connect(ui->tableWidget, SIGNAL(cellClicked(int,int)), this, SLOT(cellEntered(int, int))); m_horizontalHeader = ui->tableWidget->horizontalHeader(); connect(m_horizontalHeader, SIGNAL(sectionClicked ( int ) ), @@ -290,11 +292,33 @@ void MainWindow::prepareTextFind(){ } } +void MainWindow::resetParameters(){ + ui->comboBoxFilePatterns->setCurrentText(""); + ui->comboBoxMaxDepth->setCurrentText(""); + ui->comboBoxMaxSize->setCurrentText(""); + ui->comboBoxMinDepth->setCurrentText(""); + ui->comboBoxMinSize->setCurrentText(""); + ui->comboBoxOlder->setCurrentText(""); + ui->comboBoxYounger->setCurrentText(""); + ui->comboBoxTextPattern->setCurrentText(""); + ui->checkBoxBinaryFiles->setChecked(false); + ui->checkBoxDirs->setChecked(true); + ui->checkBoxFiles->setChecked(true); + ui->checkBoxHidden->setChecked(false); + ui->checkBoxLinks->setChecked(true); + ui->checkBoxReadable->setChecked(true); + ui->checkBoxRegExpr->setChecked(false); + ui->checkBoxTextIgnoreCase->setChecked(false); + ui->checkBoxWritable->setChecked(true); + ui->checkBoxExecutable->setChecked(true); +} + /** * Handles the "search" button. */ void MainWindow::search(){ m_errors = 0; + QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); QString path = ui->comboBoxDirectory->currentText(); QFileInfo dir(path); if (!dir.exists()) @@ -341,6 +365,7 @@ void MainWindow::search(){ setStatusMessage(false, msg); } } + QApplication::restoreOverrideCursor(); } /** * Handles the push of the button "select directory". diff --git a/appl/refind/mainwindow.hpp b/appl/refind/mainwindow.hpp index 39eef40..0e915fe 100644 --- a/appl/refind/mainwindow.hpp +++ b/appl/refind/mainwindow.hpp @@ -43,6 +43,7 @@ private slots: void baseDirToClipboard(); void fullNameToClipboard(); void headerClicked(int col); + void resetParameters(); void search(); void up(); void selectDirectory(); diff --git a/appl/refind/mainwindow.ui b/appl/refind/mainwindow.ui index e24827b..86f22c4 100644 --- a/appl/refind/mainwindow.ui +++ b/appl/refind/mainwindow.ui @@ -292,8 +292,9 @@ &Search - - :/main/icons/action_go.gif:/main/icons/action_go.gif + + :/main/icons/action_go.gif + :/main/icons/action_go.png:/main/icons/action_go.gif Ctrl+F @@ -324,7 +325,7 @@ - :/main/icons/arrow_turn_left.png:/main/icons/arrow_turn_left.png + :/main/icons/folder_go.png:/main/icons/folder_go.png @@ -350,7 +351,7 @@ - :/main/icons/sitemap_color.png:/main/icons/sitemap_color.png + :/main/icons/folder_find.png:/main/icons/folder_find.png @@ -604,8 +605,9 @@ &Search - - :/main/icons/action_go.gif:/main/icons/action_go.gif + + :/main/icons/action_go.gif + :/main/icons/action_go.png:/main/icons/action_go.gif @@ -703,6 +705,8 @@ + + @@ -719,7 +723,7 @@ - + toolBar @@ -731,11 +735,33 @@ - + + + + toolBar_2 + + + TopToolBarArea + + + false + + + + + + toolBar_2 + + + TopToolBarArea + + + false + @@ -756,7 +782,7 @@ - :/main/icons/action_go.gif:/main/icons/action_go.gif + :/main/icons/action_go.png:/main/icons/action_go.png &Search @@ -787,7 +813,7 @@ - :/main/icons/arrow_turn_left.png:/main/icons/arrow_turn_left.png + :/main/icons/folder_go.png:/main/icons/folder_go.png &Up @@ -802,7 +828,7 @@ - :/main/icons/sitemap_color.png:/main/icons/sitemap_color.png + :/main/icons/folder_find.png:/main/icons/folder_find.png &Select directory @@ -817,7 +843,7 @@ - :/main/icons/tables.gif:/main/icons/tables.gif + :/main/icons/folder.png:/main/icons/folder.png Get absolute &path @@ -831,9 +857,9 @@ - - icons/table.gif - :/main/icons/table.gificons/table.gif + + :/main/icons/table.png + :/main/icons/table.gif:/main/icons/table.png Get &full name @@ -845,7 +871,7 @@ - :/main/icons/action_paste.gif:/main/icons/action_paste.gif + :/main/icons/action_paste.png:/main/icons/action_paste.png Get &base directory @@ -857,6 +883,21 @@ Ctrl+B + + + + :/main/icons/wand.png:/main/icons/wand.png + + + &Reset search parameters + + + Sets the file filter properties to the default + + + Ctrl+R + + diff --git a/appl/refind/refind.qrc b/appl/refind/refind.qrc index cc602ab..05e91c4 100644 --- a/appl/refind/refind.qrc +++ b/appl/refind/refind.qrc @@ -10,5 +10,10 @@ icons/tables.png icons/action_go.png icons/action_paste.png + icons/folder_find.png + icons/folder_go.png + icons/folder_magnify.png + icons/folder.png + icons/wand.png -- 2.39.5