X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=inline;f=src%2Fapps%2FFileFinder%2FGUI%2Fgui.h;h=c8d36334b5777ad139075b0f1c238b5f20e4cd0b;hb=388264abc0442ea0e4c6dca6812cb755053c79d5;hp=809dab1f39449499fa7d1f727add7f9c5a0fad53;hpb=e73fe47c7bba8066feeb68b0f1568f3ac493f50c;p=evaf
diff --git a/src/apps/FileFinder/GUI/gui.h b/src/apps/FileFinder/GUI/gui.h
index 809dab1..c8d3633 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::Panel
{
Q_OBJECT
public:
MainWidget(QWidget * parent = 0)
- : QWidget(parent)
+ : Gui::Panel(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