Diffstat (limited to 'noncore/games/backgammon/filedialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/backgammon/filedialog.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/noncore/games/backgammon/filedialog.h b/noncore/games/backgammon/filedialog.h new file mode 100644 index 0000000..2dfa557 --- a/dev/null +++ b/noncore/games/backgammon/filedialog.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef FILEWIDGET_H | ||
2 | #define FILEWIDGET_H | ||
3 | |||
4 | #include <qdialog.h> | ||
5 | #include <qlineedit.h> | ||
6 | #include <qlistview.h> | ||
7 | #include <qstring.h> | ||
8 | |||
9 | |||
10 | class FileDialog : public QDialog | ||
11 | { | ||
12 | Q_OBJECT | ||
13 | private: | ||
14 | QListView* dirselector; | ||
15 | QLineEdit* fileinput; | ||
16 | QString ext; | ||
17 | QString file_name; | ||
18 | |||
19 | public: | ||
20 | FileDialog(QWidget* parent,QString header,QString extension,const char* name=0,bool modal=TRUE,WFlags f=0); | ||
21 | ~FileDialog(); | ||
22 | private slots: | ||
23 | void selectorclicked(QListViewItem* entry); | ||
24 | private: | ||
25 | void getCurrentDir(); | ||
26 | public: | ||
27 | QString filename(); | ||
28 | }; | ||
29 | |||
30 | #endif //FILEWIDGET_H | ||