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.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/apps/opie-reader/fileBrowser.h b/noncore/apps/opie-reader/fileBrowser.h
index 5521383..a5274f8 100644
--- a/noncore/apps/opie-reader/fileBrowser.h
+++ b/noncore/apps/opie-reader/fileBrowser.h
@@ -26,46 +26,49 @@ blah,blah,blah
26class QVBoxLayout; 26class QVBoxLayout;
27class QHBoxLayout; 27class QHBoxLayout;
28class QGridLayout; 28class QGridLayout;
29class QtrListView; 29class QtrListView;
30class QListViewItem; 30class QListViewItem;
31class QPushButton; 31class QPushButton;
32class QLineEdit;
32 33
33class fileBrowser : public QDialog 34class fileBrowser : public QDialog
34{ 35{
35 Q_OBJECT 36 Q_OBJECT
36 37
37public: 38public:
38 void populateList(); 39 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( 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(); 41 ~fileBrowser();
41 42
42 QPushButton* buttonOk; 43 QPushButton* buttonOk;
43 QPushButton* buttonShowHidden; 44 QPushButton* buttonShowHidden;
44 QtrListView* ListView; 45 QtrListView* ListView;
45 QPushButton* buttonCancel; 46 QPushButton* buttonCancel;
46 QLabel *dirLabel; 47 QLabel *dirLabel;
47 QString selectedFileName, filterStr; 48 QString selectedFileName, filterStr;
48 QDir currentDir; 49 QDir currentDir;
49 QFile file; 50 QFile file;
50 QStringList fileList; 51 QString getCurrentFile();
52 QLineEdit* m_filename;
51 int filterspec; 53 int filterspec;
52// QDir::FilterSpec filterspec; 54// QDir::FilterSpec filterspec;
53 55
54//QListViewItem * item; 56//QListViewItem * item;
55public slots: 57public slots:
56 58
57private: 59private:
58 60 QString filename;
59private slots: 61private slots:
60 void upDir(); 62 void upDir();
61 void listDoubleClicked(QListViewItem *); 63 void listDoubleClicked(QListViewItem *);
62 void listClicked(QListViewItem *); 64 void listClicked(QListViewItem *);
63 void OnRoot(); 65 void OnRoot();
64 void OnCancel(); 66 void OnCancel();
65 void setHidden(bool); 67 void setHidden(bool);
68 void onReturn();
66 69
67protected slots: 70protected slots:
68 71
69protected: 72protected:
70 void OnOK(); 73 void OnOK();
71 virtual void resizeEvent(QResizeEvent* e); 74 virtual void resizeEvent(QResizeEvent* e);