author | llornkcor <llornkcor> | 2002-07-01 23:24:08 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-01 23:24:08 (UTC) |
commit | 59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2 (patch) (unidiff) | |
tree | f148d4858859dac3b413e675c760acfdab24b8e6 /noncore/apps/opie-reader/fileBrowser.h | |
parent | c08be8ae22dcc1bfb83cfdec807149b161d770f5 (diff) | |
download | opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.zip opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.tar.gz opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.tar.bz2 |
initial
Diffstat (limited to 'noncore/apps/opie-reader/fileBrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/fileBrowser.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/fileBrowser.h b/noncore/apps/opie-reader/fileBrowser.h new file mode 100644 index 0000000..d222791 --- a/dev/null +++ b/noncore/apps/opie-reader/fileBrowser.h | |||
@@ -0,0 +1,70 @@ | |||
1 | /* | ||
2 | Derived from the file browser published by ljp@llornkcor.com but extensively | ||
3 | modified to work in rotated views on the Zaurus | ||
4 | */ | ||
5 | |||
6 | /**************************************************************************** | ||
7 | ** Form interface generated from reading ui file 'fileBrowzer.ui' | ||
8 | ** | ||
9 | ** Created: Fri Dec 14 08:16:02 2001 | ||
10 | ** by: The User Interface Compiler (uic) | ||
11 | ** | ||
12 | ** WARNING! All changes made in this file will be lost! | ||
13 | blah,blah,blah | ||
14 | ****************************************************************************/ | ||
15 | #ifndef FILEBROWSER_H | ||
16 | #define FILEBROWSER_H | ||
17 | |||
18 | //#include <qvariant.h> | ||
19 | #include <qdialog.h> | ||
20 | #include <qfile.h> | ||
21 | #include <qdir.h> | ||
22 | #include <qstringlist.h> | ||
23 | #include <qlabel.h> | ||
24 | #include <qstring.h> | ||
25 | |||
26 | class QVBoxLayout; | ||
27 | class QHBoxLayout; | ||
28 | class QGridLayout; | ||
29 | class QtrListView; | ||
30 | class QListViewItem; | ||
31 | class QPushButton; | ||
32 | |||
33 | class fileBrowser : public QDialog | ||
34 | { | ||
35 | Q_OBJECT | ||
36 | |||
37 | public: | ||
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); | ||
40 | ~fileBrowser(); | ||
41 | |||
42 | QPushButton* buttonOk; | ||
43 | QtrListView* ListView; | ||
44 | QPushButton* buttonCancel; | ||
45 | QLabel *dirLabel; | ||
46 | QString selectedFileName, filterStr; | ||
47 | QDir currentDir; | ||
48 | QFile file; | ||
49 | QStringList fileList; | ||
50 | |||
51 | //QListViewItem * item; | ||
52 | public slots: | ||
53 | |||
54 | private: | ||
55 | |||
56 | private slots: | ||
57 | void upDir(); | ||
58 | void listDoubleClicked(QListViewItem *); | ||
59 | void listClicked(QListViewItem *); | ||
60 | void OnRoot(); | ||
61 | void OnCancel(); | ||
62 | |||
63 | protected slots: | ||
64 | |||
65 | protected: | ||
66 | void OnOK(); | ||
67 | virtual void resizeEvent(QResizeEvent* e); | ||
68 | }; | ||
69 | |||
70 | #endif // FILEBROWSER_H | ||