author | llornkcor <llornkcor> | 2002-09-14 02:19:09 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-14 02:19:09 (UTC) |
commit | 2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975 (patch) (unidiff) | |
tree | eeed16b5f80dd5883991a7a06133f5f7a6936256 /noncore/apps/opie-reader/fileBrowser.h | |
parent | 5a95ed6a000a56849b8f093deea500214856c626 (diff) | |
download | opie-2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975.zip opie-2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975.tar.gz opie-2d0c1ffcb39f9fac8193ed2e9e93794de0bd7975.tar.bz2 |
update by Tim
Diffstat (limited to 'noncore/apps/opie-reader/fileBrowser.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/fileBrowser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/fileBrowser.h b/noncore/apps/opie-reader/fileBrowser.h index d222791..5521383 100644 --- a/noncore/apps/opie-reader/fileBrowser.h +++ b/noncore/apps/opie-reader/fileBrowser.h | |||
@@ -19,52 +19,56 @@ blah,blah,blah | |||
19 | #include <qdialog.h> | 19 | #include <qdialog.h> |
20 | #include <qfile.h> | 20 | #include <qfile.h> |
21 | #include <qdir.h> | 21 | #include <qdir.h> |
22 | #include <qstringlist.h> | 22 | #include <qstringlist.h> |
23 | #include <qlabel.h> | 23 | #include <qlabel.h> |
24 | #include <qstring.h> | 24 | #include <qstring.h> |
25 | 25 | ||
26 | class QVBoxLayout; | 26 | class QVBoxLayout; |
27 | class QHBoxLayout; | 27 | class QHBoxLayout; |
28 | class QGridLayout; | 28 | class QGridLayout; |
29 | class QtrListView; | 29 | class QtrListView; |
30 | class QListViewItem; | 30 | class QListViewItem; |
31 | class QPushButton; | 31 | class QPushButton; |
32 | 32 | ||
33 | class fileBrowser : public QDialog | 33 | class fileBrowser : public QDialog |
34 | { | 34 | { |
35 | Q_OBJECT | 35 | Q_OBJECT |
36 | 36 | ||
37 | public: | 37 | public: |
38 | void populateList(); | 38 | void populateList(); |
39 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0, const QString iPath=0); | 39 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0, const QString iPath=0); |
40 | ~fileBrowser(); | 40 | ~fileBrowser(); |
41 | 41 | ||
42 | QPushButton* buttonOk; | 42 | QPushButton* buttonOk; |
43 | QPushButton* buttonShowHidden; | ||
43 | QtrListView* ListView; | 44 | QtrListView* ListView; |
44 | QPushButton* buttonCancel; | 45 | QPushButton* buttonCancel; |
45 | QLabel *dirLabel; | 46 | QLabel *dirLabel; |
46 | QString selectedFileName, filterStr; | 47 | QString selectedFileName, filterStr; |
47 | QDir currentDir; | 48 | QDir currentDir; |
48 | QFile file; | 49 | QFile file; |
49 | QStringList fileList; | 50 | QStringList fileList; |
51 | int filterspec; | ||
52 | // QDir::FilterSpec filterspec; | ||
50 | 53 | ||
51 | //QListViewItem * item; | 54 | //QListViewItem * item; |
52 | public slots: | 55 | public slots: |
53 | 56 | ||
54 | private: | 57 | private: |
55 | 58 | ||
56 | private slots: | 59 | private slots: |
57 | void upDir(); | 60 | void upDir(); |
58 | void listDoubleClicked(QListViewItem *); | 61 | void listDoubleClicked(QListViewItem *); |
59 | void listClicked(QListViewItem *); | 62 | void listClicked(QListViewItem *); |
60 | void OnRoot(); | 63 | void OnRoot(); |
61 | void OnCancel(); | 64 | void OnCancel(); |
65 | void setHidden(bool); | ||
62 | 66 | ||
63 | protected slots: | 67 | protected slots: |
64 | 68 | ||
65 | protected: | 69 | protected: |
66 | void OnOK(); | 70 | void OnOK(); |
67 | virtual void resizeEvent(QResizeEvent* e); | 71 | virtual void resizeEvent(QResizeEvent* e); |
68 | }; | 72 | }; |
69 | 73 | ||
70 | #endif // FILEBROWSER_H | 74 | #endif // FILEBROWSER_H |