From: hama Date: Wed, 22 Apr 2015 22:10:34 +0000 (+0200) Subject: better icons, ResetParameters X-Git-Url: https://gitweb.hamatoma.de/?a=commitdiff_plain;h=c7c5b12b64880c124efc5d2abac4c6068877dc6f;p=reqt better icons, ResetParameters --- 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 0000000..ef5bfc3 Binary files /dev/null and b/appl/refind/icons/action_go.png differ diff --git a/appl/refind/icons/action_paste.png b/appl/refind/icons/action_paste.png new file mode 100755 index 0000000..60f7841 Binary files /dev/null and b/appl/refind/icons/action_paste.png differ diff --git a/appl/refind/icons/folder.png b/appl/refind/icons/folder.png new file mode 100644 index 0000000..784e8fa Binary files /dev/null and b/appl/refind/icons/folder.png differ diff --git a/appl/refind/icons/folder_find.png b/appl/refind/icons/folder_find.png new file mode 100644 index 0000000..c64e2ee Binary files /dev/null and b/appl/refind/icons/folder_find.png differ diff --git a/appl/refind/icons/folder_go.png b/appl/refind/icons/folder_go.png new file mode 100644 index 0000000..34a736f Binary files /dev/null and b/appl/refind/icons/folder_go.png differ diff --git a/appl/refind/icons/folder_magnify.png b/appl/refind/icons/folder_magnify.png new file mode 100644 index 0000000..0a3e798 Binary files /dev/null and b/appl/refind/icons/folder_magnify.png differ diff --git a/appl/refind/icons/table.png b/appl/refind/icons/table.png new file mode 100755 index 0000000..6f794bc Binary files /dev/null and b/appl/refind/icons/table.png differ diff --git a/appl/refind/icons/tables.png b/appl/refind/icons/tables.png new file mode 100755 index 0000000..e88ceb5 Binary files /dev/null and b/appl/refind/icons/tables.png differ diff --git a/appl/refind/icons/wand.png b/appl/refind/icons/wand.png new file mode 100644 index 0000000..44ccbf8 Binary files /dev/null and b/appl/refind/icons/wand.png differ 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