X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fapps%2FFileFinder%2FGUI%2Fgui.h;h=02f4f22fa9b0986e5360b116678e8f31fdff788e;hb=25d800db07942aadab4140a4ed05196e7f4dcd12;hp=809dab1f39449499fa7d1f727add7f9c5a0fad53;hpb=e73fe47c7bba8066feeb68b0f1568f3ac493f50c;p=evaf
diff --git a/src/apps/FileFinder/GUI/gui.h b/src/apps/FileFinder/GUI/gui.h
index 809dab1..02f4f22 100644
--- a/src/apps/FileFinder/GUI/gui.h
+++ b/src/apps/FileFinder/GUI/gui.h
@@ -21,6 +21,7 @@
# define __FILEFINDER_GUI_GUI_H
#include
+#include
#include
#include
@@ -33,6 +34,7 @@ class QComboBox;
class QPushButton;
class QListWidget;
class QAction;
+class QFileSystemModel;
namespace eVaf {
namespace SdiWindow {
@@ -47,14 +49,14 @@ namespace Internal {
/**
* Main widget for the FileFinder window
*/
-class MainWidget : public QWidget
+class MainWidget : public Gui::Window
{
Q_OBJECT
public:
MainWidget(QWidget * parent = 0)
- : QWidget(parent)
+ : Gui::Window(parent)
{}
virtual void keyPressEvent(QKeyEvent * e);
@@ -113,6 +115,9 @@ private slots:
private: // Members
+ /// Max number of items in each field that we save
+ static int const MaxHistoryItems;
+
/// Flag indicating that the module is ready
bool mReady;
@@ -126,6 +131,7 @@ private: // Members
/// Widgets on the screen
Internal::MainWidget * wMain;
QComboBox * wDirectory;
+ QPushButton * wBrowse;
QCheckBox * wRecursive;
QComboBox * wIncludeNames;
QComboBox * wExcludeNames;
@@ -134,6 +140,9 @@ private: // Members
QListWidget * wResults;
QPushButton * wFind;
+ /// File system auto-completion model for the directory field
+ QFileSystemModel * mDirModel;
+
private: // Methods