author | llornkcor <llornkcor> | 2002-03-24 15:31:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-24 15:31:12 (UTC) |
commit | f01751db63eac7b54c5c7a3115ca4ae3d957ac5a (patch) (unidiff) | |
tree | 72f8171c18e3e75e51de8f636f09614a8feeda1b | |
parent | b2985aec1be313db490ae4ad3b753a13470f4416 (diff) | |
download | opie-f01751db63eac7b54c5c7a3115ca4ae3d957ac5a.zip opie-f01751db63eac7b54c5c7a3115ca4ae3d957ac5a.tar.gz opie-f01751db63eac7b54c5c7a3115ca4ae3d957ac5a.tar.bz2 |
fixed slot
-rw-r--r-- | core/apps/textedit/fileBrowser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h index 8a98365..ec73b69 100644 --- a/core/apps/textedit/fileBrowser.h +++ b/core/apps/textedit/fileBrowser.h | |||
@@ -1,101 +1,101 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** | 2 | ** |
3 | ** Created: Fri Dec 14 08:16:02 2001 | 3 | ** Created: Fri Dec 14 08:16:02 2001 |
4 | ** | 4 | ** |
5 | ** This file may be distributed and/or modified under the terms of the | 5 | ** This file may be distributed and/or modified under the terms of the |
6 | ** GNU General Public License version 2 as published by the Free Software | 6 | ** GNU General Public License version 2 as published by the Free Software |
7 | ** Foundation and appearing in the file LICENSE.GPL included in the | 7 | ** Foundation and appearing in the file LICENSE.GPL included in the |
8 | ** packaging of this file. | 8 | ** packaging of this file. |
9 | ** | 9 | ** |
10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 11 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
12 | ** | 12 | ** |
13 | copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com | 13 | copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com |
14 | ****************************************************************************/ | 14 | ****************************************************************************/ |
15 | #ifndef FILEBROWSER_H | 15 | #ifndef FILEBROWSER_H |
16 | #define FILEBROWSER_H | 16 | #define FILEBROWSER_H |
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 | #include <qdict.h> | 25 | #include <qdict.h> |
26 | 26 | ||
27 | #include <qpe/filemanager.h> | 27 | #include <qpe/filemanager.h> |
28 | 28 | ||
29 | class QVBoxLayout; | 29 | class QVBoxLayout; |
30 | class QHBoxLayout; | 30 | class QHBoxLayout; |
31 | class QGridLayout; | 31 | class QGridLayout; |
32 | class QListView; | 32 | class QListView; |
33 | class QListViewItem; | 33 | class QListViewItem; |
34 | class QPushButton; | 34 | class QPushButton; |
35 | class QComboBox; | 35 | class QComboBox; |
36 | class QWidgetStack; | 36 | class QWidgetStack; |
37 | class FileSelector; | 37 | class FileSelector; |
38 | class QPoint; | 38 | class QPoint; |
39 | class MenuButton; | 39 | class MenuButton; |
40 | class QRegExp; | 40 | class QRegExp; |
41 | 41 | ||
42 | 42 | ||
43 | class fileBrowser : public QDialog | 43 | class fileBrowser : public QDialog |
44 | { | 44 | { |
45 | Q_OBJECT | 45 | Q_OBJECT |
46 | 46 | ||
47 | public: | 47 | public: |
48 | void populateList(); | ||
49 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); | 48 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); |
50 | ~fileBrowser(); | 49 | ~fileBrowser(); |
51 | 50 | ||
52 | void setFileView( int ); | 51 | void setFileView( int ); |
53 | 52 | ||
54 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton; | 53 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton; |
55 | QListView* ListView; | 54 | QListView* ListView; |
56 | 55 | ||
57 | QLabel *dirLabel; | 56 | QLabel *dirLabel; |
58 | QString selectedFileName, filterStr; | 57 | QString selectedFileName, filterStr; |
59 | QDir currentDir; | 58 | QDir currentDir; |
60 | QFile file; | 59 | QFile file; |
61 | QStringList fileList, dirPathStringList; | 60 | QStringList fileList, dirPathStringList; |
62 | QListViewItem * item; | 61 | QListViewItem * item; |
63 | QComboBox *SelectionCombo, *dirPathCombo; | 62 | QComboBox *SelectionCombo, *dirPathCombo; |
64 | MenuButton *typemb; | 63 | MenuButton *typemb; |
65 | QWidgetStack *FileStack; | 64 | QWidgetStack *FileStack; |
66 | FileSelector *fileSelector; | 65 | FileSelector *fileSelector; |
67 | QString mimeType; | 66 | QString mimeType; |
68 | public slots: | 67 | public slots: |
69 | 68 | ||
70 | private: | 69 | private: |
71 | // QDict<void> mimes; | 70 | // QDict<void> mimes; |
72 | QRegExp tf; | 71 | QRegExp tf; |
73 | QStringList getMimeTypes(); | 72 | QStringList getMimeTypes(); |
74 | void fillCombo( const QString&); | 73 | void fillCombo( const QString&); |
75 | private slots: | 74 | private slots: |
75 | void populateList(); | ||
76 | void homeButtonPushed(); | 76 | void homeButtonPushed(); |
77 | void docButtonPushed(); | 77 | void docButtonPushed(); |
78 | void ListPressed( int, QListViewItem *, const QPoint&, int); | 78 | void ListPressed( int, QListViewItem *, const QPoint&, int); |
79 | void showListMenu(QListViewItem*); | 79 | void showListMenu(QListViewItem*); |
80 | void doCd(); | 80 | void doCd(); |
81 | void makDir(); | 81 | void makDir(); |
82 | void localRename(); | 82 | void localRename(); |
83 | void localDelete(); | 83 | void localDelete(); |
84 | void receive( const QCString &msg, const QByteArray &data ); | 84 | void receive( const QCString &msg, const QByteArray &data ); |
85 | void dirPathComboActivated( const QString & ); | 85 | void dirPathComboActivated( const QString & ); |
86 | void upDir(); | 86 | void upDir(); |
87 | void listClicked( QListViewItem * ); | 87 | void listClicked( QListViewItem * ); |
88 | void selectionChanged( const QString & ); | 88 | void selectionChanged( const QString & ); |
89 | void OnOK(); | 89 | void OnOK(); |
90 | void docOpen( const DocLnk & ); | 90 | void docOpen( const DocLnk & ); |
91 | void updateMimeTypeMenu(); | 91 | void updateMimeTypeMenu(); |
92 | void showType(const QString &); | 92 | void showType(const QString &); |
93 | void dirPathEditPressed(); | 93 | void dirPathEditPressed(); |
94 | 94 | ||
95 | protected slots: | 95 | protected slots: |
96 | 96 | ||
97 | protected: | 97 | protected: |
98 | 98 | ||
99 | }; | 99 | }; |
100 | 100 | ||
101 | #endif // FILEBROWSER_H | 101 | #endif // FILEBROWSER_H |