# define __FILEFINDER_GUI_GUI_H
#include <Plugins/iPlugin>
+#include <Gui/Panel>
#include <QObject>
#include <QString>
class QPushButton;
class QListWidget;
class QAction;
+class QFileSystemModel;
namespace eVaf {
namespace SdiWindow {
/**
* 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);
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;
/// Widgets on the screen
Internal::MainWidget * wMain;
QComboBox * wDirectory;
+ QPushButton * wBrowse;
QCheckBox * wRecursive;
QComboBox * wIncludeNames;
QComboBox * wExcludeNames;
QListWidget * wResults;
QPushButton * wFind;
+ /// File system auto-completion model for the directory field
+ QFileSystemModel * mDirModel;
+
private: // Methods