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 | |||
@@ -31,40 +31,44 @@ 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 |