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.h84
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,4 +1,4 @@
1/* 1/*
2Derived from the file browser published by ljp@llornkcor.com but extensively 2 Derived from the file browser published by ljp@llornkcor.com but extensively
3modified to work in rotated views on the Zaurus 3 modified to work in rotated views on the Zaurus
4*/ 4*/
@@ -6,8 +6,8 @@ modified to work in rotated views on the Zaurus
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!
13blah,blah,blah 13blah,blah,blah
@@ -35,41 +35,45 @@ class fileBrowser : public QDialog
35{ 35{
36 Q_OBJECT 36 Q_OBJECT
37 37
38public: 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;
57public slots: 57 public slots:
58 58
59private: 59 private:
60 QString filename; 60 QString filename;
61private 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
70protected slots: 73 protected slots:
71 74
72protected: 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};