Diffstat (limited to 'core/apps/textedit/fileBrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/fileBrowser.h | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h index 4f765dd..8a98365 100644 --- a/core/apps/textedit/fileBrowser.h +++ b/core/apps/textedit/fileBrowser.h | |||
@@ -22,6 +22,7 @@ copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com | |||
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 | #include <qdict.h> | ||
25 | 26 | ||
26 | #include <qpe/filemanager.h> | 27 | #include <qpe/filemanager.h> |
27 | 28 | ||
@@ -35,6 +36,9 @@ class QComboBox; | |||
35 | class QWidgetStack; | 36 | class QWidgetStack; |
36 | class FileSelector; | 37 | class FileSelector; |
37 | class QPoint; | 38 | class QPoint; |
39 | class MenuButton; | ||
40 | class QRegExp; | ||
41 | |||
38 | 42 | ||
39 | class fileBrowser : public QDialog | 43 | class fileBrowser : public QDialog |
40 | { | 44 | { |
@@ -47,20 +51,28 @@ public: | |||
47 | 51 | ||
48 | void setFileView( int ); | 52 | void setFileView( int ); |
49 | 53 | ||
50 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton; | 54 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton; |
51 | QListView* ListView; | 55 | QListView* ListView; |
52 | 56 | ||
53 | QLabel *dirLabel; | 57 | QLabel *dirLabel; |
54 | QString selectedFileName, filterStr; | 58 | QString selectedFileName, filterStr; |
55 | QDir currentDir; | 59 | QDir currentDir; |
56 | QFile file; | 60 | QFile file; |
57 | QStringList fileList; | 61 | QStringList fileList, dirPathStringList; |
58 | QListViewItem * item; | 62 | QListViewItem * item; |
59 | QComboBox *SelectionCombo; | 63 | QComboBox *SelectionCombo, *dirPathCombo; |
64 | MenuButton *typemb; | ||
60 | QWidgetStack *FileStack; | 65 | QWidgetStack *FileStack; |
61 | FileSelector *fileSelector; | 66 | FileSelector *fileSelector; |
62 | 67 | QString mimeType; | |
63 | public slots: | 68 | public slots: |
69 | |||
70 | private: | ||
71 | // QDict<void> mimes; | ||
72 | QRegExp tf; | ||
73 | QStringList getMimeTypes(); | ||
74 | void fillCombo( const QString&); | ||
75 | private slots: | ||
64 | void homeButtonPushed(); | 76 | void homeButtonPushed(); |
65 | void docButtonPushed(); | 77 | void docButtonPushed(); |
66 | void ListPressed( int, QListViewItem *, const QPoint&, int); | 78 | void ListPressed( int, QListViewItem *, const QPoint&, int); |
@@ -69,15 +81,17 @@ public slots: | |||
69 | void makDir(); | 81 | void makDir(); |
70 | void localRename(); | 82 | void localRename(); |
71 | void localDelete(); | 83 | void localDelete(); |
72 | private: | 84 | void receive( const QCString &msg, const QByteArray &data ); |
73 | 85 | void dirPathComboActivated( const QString & ); | |
74 | private slots: | ||
75 | void upDir(); | 86 | void upDir(); |
76 | void listClicked( QListViewItem * ); | 87 | void listClicked( QListViewItem * ); |
77 | void selectionChanged( const QString & ); | 88 | void selectionChanged( const QString & ); |
78 | void OnOK(); | 89 | void OnOK(); |
79 | void docOpen( const DocLnk & ); | 90 | void docOpen( const DocLnk & ); |
80 | 91 | void updateMimeTypeMenu(); | |
92 | void showType(const QString &); | ||
93 | void dirPathEditPressed(); | ||
94 | |||
81 | protected slots: | 95 | protected slots: |
82 | 96 | ||
83 | protected: | 97 | protected: |