author | drw <drw> | 2002-03-18 00:02:20 (UTC) |
---|---|---|
committer | drw <drw> | 2002-03-18 00:02:20 (UTC) |
commit | b02657a01fc513e099c2d66be48d5a7b46cf6074 (patch) (unidiff) | |
tree | 1222fd77f10de1b1948b38bfb5fbe5656f8fa5c6 /core/apps/textedit/fileBrowser.h | |
parent | 378db8490c6c80ced939622605be1500fa126a2d (diff) | |
download | opie-b02657a01fc513e099c2d66be48d5a7b46cf6074.zip opie-b02657a01fc513e099c2d66be48d5a7b46cf6074.tar.gz opie-b02657a01fc513e099c2d66be48d5a7b46cf6074.tar.bz2 |
Combined file open & filebrowse into one dialog
Diffstat (limited to 'core/apps/textedit/fileBrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/fileBrowser.h | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h index 50ed485..d8f0d0d 100644 --- a/core/apps/textedit/fileBrowser.h +++ b/core/apps/textedit/fileBrowser.h | |||
@@ -17,21 +17,26 @@ copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com | |||
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 | #include <qpe/filemanager.h> |
27 | class QHBoxLayout; | 27 | |
28 | class QGridLayout; | 28 | class QVBoxLayout; |
29 | class QHBoxLayout; | ||
30 | class QGridLayout; | ||
29 | class QListView; | 31 | class QListView; |
30 | class QListViewItem; | 32 | class QListViewItem; |
31 | class QPushButton; | 33 | class QPushButton; |
34 | class QComboBox; | ||
35 | class QWidgetStack; | ||
36 | class FileSelector; | ||
32 | 37 | ||
33 | class fileBrowser : public QDialog | 38 | class fileBrowser : public QDialog |
34 | { | 39 | { |
35 | Q_OBJECT | 40 | Q_OBJECT |
36 | 41 | ||
37 | public: | 42 | public: |
@@ -39,6 +44,8 @@ public: | |||
39 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); | 44 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); |
40 | ~fileBrowser(); | 45 | ~fileBrowser(); |
41 | 46 | ||
47 | void setFileView( int ); | ||
48 | |||
42 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton; | 49 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton; |
43 | QListView* ListView; | 50 | QListView* ListView; |
44 | 51 | ||
@@ -48,18 +55,24 @@ public: | |||
48 | QFile file; | 55 | QFile file; |
49 | QStringList fileList; | 56 | QStringList fileList; |
50 | QListViewItem * item; | 57 | QListViewItem * item; |
58 | QComboBox *SelectionCombo; | ||
59 | QWidgetStack *FileStack; | ||
60 | FileSelector *fileSelector; | ||
61 | |||
51 | public slots: | 62 | public slots: |
52 | void homeButtonPushed(); | 63 | void homeButtonPushed(); |
53 | void docButtonPushed(); | 64 | void docButtonPushed(); |
54 | void hideButtonPushed(bool); | 65 | |
55 | private: | 66 | private: |
56 | 67 | ||
57 | private slots: | 68 | private slots: |
58 | void upDir(); | 69 | void upDir(); |
59 | void listDoubleClicked(QListViewItem *); | 70 | void listClicked( QListViewItem * ); |
60 | void listClicked(QListViewItem *); | 71 | void selectionChanged( const QString & ); |
61 | void OnOK(); | 72 | void OnOK(); |
62 | protected slots: | 73 | void docOpen( const DocLnk & ); |
74 | |||
75 | protected slots: | ||
63 | 76 | ||
64 | protected: | 77 | protected: |
65 | 78 | ||