summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/fileBrowser.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/fileBrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/fileBrowser.h70
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/*
2Derived from the file browser published by ljp@llornkcor.com but extensively
3modified 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!
13blah,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
26class QVBoxLayout;
27class QHBoxLayout;
28class QGridLayout;
29class QtrListView;
30class QListViewItem;
31class QPushButton;
32
33class fileBrowser : public QDialog
34{
35 Q_OBJECT
36
37public:
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;
52public slots:
53
54private:
55
56private slots:
57 void upDir();
58 void listDoubleClicked(QListViewItem *);
59 void listClicked(QListViewItem *);
60 void OnRoot();
61 void OnCancel();
62
63protected slots:
64
65protected:
66 void OnOK();
67 virtual void resizeEvent(QResizeEvent* e);
68};
69
70#endif // FILEBROWSER_H