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 ) ),
}
}
+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())
setStatusMessage(false, msg);
}
}
+ QApplication::restoreOverrideCursor();
}
/**
* Handles the push of the button "select directory".
<string>&Search</string>
</property>
<property name="icon">
- <iconset resource="refind.qrc">
- <normaloff>:/main/icons/action_go.gif</normaloff>:/main/icons/action_go.gif</iconset>
+ <iconset>
+ <normaloff>:/main/icons/action_go.gif</normaloff>
+ <normalon>:/main/icons/action_go.png</normalon>:/main/icons/action_go.gif</iconset>
</property>
<property name="shortcut">
<string>Ctrl+F</string>
</property>
<property name="icon">
<iconset resource="refind.qrc">
- <normaloff>:/main/icons/arrow_turn_left.png</normaloff>:/main/icons/arrow_turn_left.png</iconset>
+ <normaloff>:/main/icons/folder_go.png</normaloff>:/main/icons/folder_go.png</iconset>
</property>
</widget>
</item>
</property>
<property name="icon">
<iconset resource="refind.qrc">
- <normaloff>:/main/icons/sitemap_color.png</normaloff>:/main/icons/sitemap_color.png</iconset>
+ <normaloff>:/main/icons/folder_find.png</normaloff>:/main/icons/folder_find.png</iconset>
</property>
</widget>
</item>
<string>&Search</string>
</property>
<property name="icon">
- <iconset resource="refind.qrc">
- <normaloff>:/main/icons/action_go.gif</normaloff>:/main/icons/action_go.gif</iconset>
+ <iconset>
+ <normaloff>:/main/icons/action_go.gif</normaloff>
+ <normalon>:/main/icons/action_go.png</normalon>:/main/icons/action_go.gif</iconset>
</property>
</widget>
</item>
<addaction name="actionGetFullName"/>
<addaction name="actionGetBaseDirectory"/>
<addaction name="separator"/>
+ <addaction name="separator"/>
+ <addaction name="actionReset"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menu_Edit"/>
<addaction name="actionSearch"/>
</widget>
<widget class="QStatusBar" name="statusBar"/>
- <widget class="QToolBar" name="toolBar">
+ <widget class="QToolBar" name="toolBarNavigate">
<property name="windowTitle">
<string>toolBar</string>
</property>
</attribute>
<addaction name="actionUp"/>
<addaction name="actionSelectDirectory"/>
- <addaction name="separator"/>
+ </widget>
+ <widget class="QToolBar" name="toolBarEdit">
+ <property name="windowTitle">
+ <string>toolBar_2</string>
+ </property>
+ <attribute name="toolBarArea">
+ <enum>TopToolBarArea</enum>
+ </attribute>
+ <attribute name="toolBarBreak">
+ <bool>false</bool>
+ </attribute>
<addaction name="actionGetAbsPath"/>
<addaction name="actionGetFullName"/>
<addaction name="actionGetBaseDirectory"/>
<addaction name="separator"/>
+ <addaction name="actionReset"/>
+ </widget>
+ <widget class="QToolBar" name="toolBarExit">
+ <property name="windowTitle">
+ <string>toolBar_2</string>
+ </property>
+ <attribute name="toolBarArea">
+ <enum>TopToolBarArea</enum>
+ </attribute>
+ <attribute name="toolBarBreak">
+ <bool>false</bool>
+ </attribute>
<addaction name="actionExit"/>
</widget>
<action name="actionExit">
<action name="actionSearch">
<property name="icon">
<iconset resource="refind.qrc">
- <normaloff>:/main/icons/action_go.gif</normaloff>:/main/icons/action_go.gif</iconset>
+ <normaloff>:/main/icons/action_go.png</normaloff>:/main/icons/action_go.png</iconset>
</property>
<property name="text">
<string>&Search</string>
<action name="actionUp">
<property name="icon">
<iconset resource="refind.qrc">
- <normaloff>:/main/icons/arrow_turn_left.png</normaloff>:/main/icons/arrow_turn_left.png</iconset>
+ <normaloff>:/main/icons/folder_go.png</normaloff>:/main/icons/folder_go.png</iconset>
</property>
<property name="text">
<string>&Up</string>
<action name="actionSelectDirectory">
<property name="icon">
<iconset resource="refind.qrc">
- <normaloff>:/main/icons/sitemap_color.png</normaloff>:/main/icons/sitemap_color.png</iconset>
+ <normaloff>:/main/icons/folder_find.png</normaloff>:/main/icons/folder_find.png</iconset>
</property>
<property name="text">
<string>&Select directory</string>
<action name="actionGetAbsPath">
<property name="icon">
<iconset resource="refind.qrc">
- <normaloff>:/main/icons/tables.gif</normaloff>:/main/icons/tables.gif</iconset>
+ <normaloff>:/main/icons/folder.png</normaloff>:/main/icons/folder.png</iconset>
</property>
<property name="text">
<string>Get absolute &path</string>
</action>
<action name="actionGetFullName">
<property name="icon">
- <iconset>
- <normaloff>icons/table.gif</normaloff>
- <normalon>:/main/icons/table.gif</normalon>icons/table.gif</iconset>
+ <iconset resource="refind.qrc">
+ <normaloff>:/main/icons/table.png</normaloff>
+ <normalon>:/main/icons/table.gif</normalon>:/main/icons/table.png</iconset>
</property>
<property name="text">
<string>Get &full name</string>
<action name="actionGetBaseDirectory">
<property name="icon">
<iconset resource="refind.qrc">
- <normaloff>:/main/icons/action_paste.gif</normaloff>:/main/icons/action_paste.gif</iconset>
+ <normaloff>:/main/icons/action_paste.png</normaloff>:/main/icons/action_paste.png</iconset>
</property>
<property name="text">
<string>Get &base directory</string>
<string>Ctrl+B</string>
</property>
</action>
+ <action name="actionReset">
+ <property name="icon">
+ <iconset resource="refind.qrc">
+ <normaloff>:/main/icons/wand.png</normaloff>:/main/icons/wand.png</iconset>
+ </property>
+ <property name="text">
+ <string>&Reset search parameters</string>
+ </property>
+ <property name="toolTip">
+ <string>Sets the file filter properties to the default</string>
+ </property>
+ <property name="shortcut">
+ <string>Ctrl+R</string>
+ </property>
+ </action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<tabstops>