author | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
---|---|---|
committer | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
commit | 73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (unidiff) | |
tree | 1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/fileBrowser.h | |
parent | e90847c784c48bd21bf8768cb38edb853b832697 (diff) | |
download | opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.zip opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.gz opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.bz2 |
updated source to opie-reader 0.7g
Diffstat (limited to 'noncore/apps/opie-reader/fileBrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/fileBrowser.h | 84 |
1 files changed, 44 insertions, 40 deletions
diff --git a/noncore/apps/opie-reader/fileBrowser.h b/noncore/apps/opie-reader/fileBrowser.h index a5274f8..c536e96 100644 --- a/noncore/apps/opie-reader/fileBrowser.h +++ b/noncore/apps/opie-reader/fileBrowser.h | |||
@@ -1,77 +1,81 @@ | |||
1 | /* | 1 | /* |
2 | Derived from the file browser published by ljp@llornkcor.com but extensively | 2 | Derived from the file browser published by ljp@llornkcor.com but extensively |
3 | modified to work in rotated views on the Zaurus | 3 | modified to work in rotated views on the Zaurus |
4 | */ | 4 | */ |
5 | 5 | ||
6 | /**************************************************************************** | 6 | /**************************************************************************** |
7 | ** Form interface generated from reading ui file 'fileBrowzer.ui' | 7 | ** Form interface generated from reading ui file 'fileBrowzer.ui' |
8 | ** | 8 | ** |
9 | ** Created: Fri Dec 14 08:16:02 2001 | 9 | ** Created: Fri Dec 14 08:16:02 2001 |
10 | ** by: The User Interface Compiler (uic) | 10 | ** by: The User Interface Compiler (uic) |
11 | ** | 11 | ** |
12 | ** WARNING! All changes made in this file will be lost! | 12 | ** WARNING! All changes made in this file will be lost! |
13 | blah,blah,blah | 13 | blah,blah,blah |
14 | ****************************************************************************/ | 14 | ****************************************************************************/ |
15 | #ifndef FILEBROWSER_H | 15 | #ifndef FILEBROWSER_H |
16 | #define FILEBROWSER_H | 16 | #define FILEBROWSER_H |
17 | 17 | ||
18 | //#include <qvariant.h> | 18 | //#include <qvariant.h> |
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 | class QLineEdit; | 32 | class QLineEdit; |
33 | 33 | ||
34 | class fileBrowser : public QDialog | 34 | class fileBrowser : public QDialog |
35 | { | 35 | { |
36 | Q_OBJECT | 36 | Q_OBJECT |
37 | 37 | ||
38 | public: | 38 | public: |
39 | void populateList(); | 39 | void populateList(); |
40 | fileBrowser( bool allownew, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0, const QString iPath=0); | 40 | fileBrowser( bool allownew, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0, const QString iPath=0); |
41 | ~fileBrowser(); | 41 | ~fileBrowser(); |
42 | 42 | ||
43 | QPushButton* buttonOk; | 43 | QPushButton* buttonOk; |
44 | QPushButton* buttonShowHidden; | 44 | QPushButton* buttonShowHidden; |
45 | QtrListView* ListView; | 45 | QtrListView* ListView; |
46 | QPushButton* buttonCancel; | 46 | QPushButton* buttonCancel; |
47 | QLabel *dirLabel; | 47 | QLabel *dirLabel; |
48 | QString selectedFileName, filterStr; | 48 | QString selectedFileName, filterStr; |
49 | QDir currentDir; | 49 | QDir currentDir; |
50 | QFile file; | 50 | QFile file; |
51 | QString getCurrentFile(); | 51 | QString getCurrentFile(); |
52 | QLineEdit* m_filename; | 52 | QLineEdit* m_filename; |
53 | int filterspec; | 53 | int filterspec; |
54 | // QDir::FilterSpec filterspec; | 54 | // QDir::FilterSpec filterspec; |
55 | 55 | ||
56 | //QListViewItem * item; | 56 | //QListViewItem * item; |
57 | public slots: | 57 | public slots: |
58 | 58 | ||
59 | private: | 59 | private: |
60 | QString filename; | 60 | QString filename; |
61 | private slots: | 61 | private slots: |
62 | void upDir(); | 62 | void upDir(); |
63 | void listDoubleClicked(QListViewItem *); | 63 | void listDoubleClicked(QListViewItem *); |
64 | void listClicked(QListViewItem *); | 64 | void listClicked(QListViewItem *); |
65 | void OnRoot(); | 65 | void OnRoot(); |
66 | void OnCancel(); | 66 | void OnCancel(); |
67 | void setHidden(bool); | 67 | void setHidden(bool); |
68 | void onReturn(); | 68 | void onReturn(); |
69 | void onCF(); | ||
70 | void onSD(); | ||
71 | void onHome(); | ||
69 | 72 | ||
70 | protected slots: | 73 | protected slots: |
71 | 74 | ||
72 | protected: | 75 | protected: |
73 | void OnOK(); | 76 | void OnOK(); |
74 | virtual void resizeEvent(QResizeEvent* e); | 77 | virtual void resizeEvent(QResizeEvent* e); |
78 | void setdir(const QString& s); | ||
75 | }; | 79 | }; |
76 | 80 | ||
77 | #endif // FILEBROWSER_H | 81 | #endif // FILEBROWSER_H |