author | llornkcor <llornkcor> | 2002-03-24 14:17:21 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-24 14:17:21 (UTC) |
commit | 927d5f33cc4c36541d7fb7dde036bdd22f5d7253 (patch) (unidiff) | |
tree | cd846d8b462131c8c06c2ddf5787171449b8521e /core/apps/textedit/fileBrowser.h | |
parent | 807ea39f3ccfbc26e769fc16a79d459327e13437 (diff) | |
download | opie-927d5f33cc4c36541d7fb7dde036bdd22f5d7253.zip opie-927d5f33cc4c36541d7fb7dde036bdd22f5d7253.tar.gz opie-927d5f33cc4c36541d7fb7dde036bdd22f5d7253.tar.bz2 |
changed things in filebrowser
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 | |||
@@ -21,8 +21,9 @@ copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com | |||
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 | #include <qdict.h> | ||
25 | 26 | ||
26 | #include <qpe/filemanager.h> | 27 | #include <qpe/filemanager.h> |
27 | 28 | ||
28 | class QVBoxLayout; | 29 | class QVBoxLayout; |
@@ -34,8 +35,11 @@ class QPushButton; | |||
34 | class QComboBox; | 35 | 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 | { |
41 | Q_OBJECT | 45 | Q_OBJECT |
@@ -46,39 +50,49 @@ public: | |||
46 | ~fileBrowser(); | 50 | ~fileBrowser(); |
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); |
67 | void showListMenu(QListViewItem*); | 79 | void showListMenu(QListViewItem*); |
68 | void doCd(); | 80 | void doCd(); |
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: |
84 | 98 | ||