X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=inline;f=src%2Fapps%2FFileFinder%2FGUI%2Fgui.h;h=4d22d0b0d7636d14722fa6d28a1094a42a6d5d80;hb=c8050984a289a6ea98812395313ef37d4c7fd059;hp=809dab1f39449499fa7d1f727add7f9c5a0fad53;hpb=e73fe47c7bba8066feeb68b0f1568f3ac493f50c;p=evaf
diff --git a/src/apps/FileFinder/GUI/gui.h b/src/apps/FileFinder/GUI/gui.h
index 809dab1..4d22d0b 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,13 +34,14 @@ class QComboBox;
class QPushButton;
class QListWidget;
class QAction;
+class QFileSystemModel;
namespace eVaf {
namespace SdiWindow {
struct iSdiWindow;
} // namespace eVaf::SdiWindow
namespace FileFinder {
- struct iFileFinder;
+ class iFileFinder;
namespace GUI {
namespace Internal {
@@ -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);
@@ -110,9 +112,16 @@ private slots:
void openDirectory();
+ void copyName();
+
+ void copyAllNames();
+
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;
@@ -122,10 +131,13 @@ private: // Members
/// Actions
QAction * mOpenFileAction;
QAction * mOpenDirectoryAction;
+ QAction * mCopyNameAction;
+ QAction * mCopyAllNamesAction;
/// Widgets on the screen
Internal::MainWidget * wMain;
QComboBox * wDirectory;
+ QPushButton * wBrowse;
QCheckBox * wRecursive;
QComboBox * wIncludeNames;
QComboBox * wExcludeNames;
@@ -134,6 +146,9 @@ private: // Members
QListWidget * wResults;
QPushButton * wFind;
+ /// File system auto-completion model for the directory field
+ QFileSystemModel * mDirModel;
+
private: // Methods