Diffstat (limited to 'core/apps/textedit/fileBrowser.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/fileBrowser.h | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h deleted file mode 100644 index 352cb51..0000000 --- a/core/apps/textedit/fileBrowser.h +++ b/dev/null | |||
@@ -1,120 +0,0 @@ | |||
1 | /**************************************************************************** | ||
2 | ** | ||
3 | ** Created: Fri Dec 14 08:16:02 2001 | ||
4 | ** | ||
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 | ||
7 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
8 | ** packaging of this file. | ||
9 | ** | ||
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. | ||
12 | ** | ||
13 | copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com | ||
14 | ****************************************************************************/ | ||
15 | #ifndef FILEBROWSER_H | ||
16 | #define FILEBROWSER_H | ||
17 | |||
18 | //#include <qvariant.h> | ||
19 | #include <qdialog.h> | ||
20 | #include <qfile.h> | ||
21 | #include <qdir.h> | ||
22 | #include <qstringlist.h> | ||
23 | #include <qlabel.h> | ||
24 | #include <qstring.h> | ||
25 | #include <qdict.h> | ||
26 | |||
27 | #include <qpe/filemanager.h> | ||
28 | |||
29 | #include <qvariant.h> | ||
30 | #include <qdialog.h> | ||
31 | #include <qregexp.h> | ||
32 | |||
33 | |||
34 | class QLineEdit; | ||
35 | class QVBoxLayout; | ||
36 | class QHBoxLayout; | ||
37 | class QGridLayout; | ||
38 | class QListView; | ||
39 | class QListViewItem; | ||
40 | class QPushButton; | ||
41 | class QComboBox; | ||
42 | class QWidgetStack; | ||
43 | class FileSelector; | ||
44 | class QPoint; | ||
45 | class MenuButton; | ||
46 | |||
47 | |||
48 | class fileBrowser : public QDialog | ||
49 | { | ||
50 | Q_OBJECT | ||
51 | |||
52 | public: | ||
53 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); | ||
54 | ~fileBrowser(); | ||
55 | |||
56 | QString selectedFileName; | ||
57 | QFile file; | ||
58 | QStringList fileList; | ||
59 | QComboBox *SelectionCombo; | ||
60 | public slots: | ||
61 | void setFileView( int ); | ||
62 | |||
63 | private: | ||
64 | // QDict<void> mimes; | ||
65 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton; | ||
66 | QListView* ListView; | ||
67 | QLabel *dirLabel; | ||
68 | QString filterStr, mimeType; | ||
69 | QDir currentDir; | ||
70 | QStringList dirPathStringList, mimetypes; | ||
71 | /* QListViewItem * item; */ | ||
72 | QComboBox *dirPathCombo; | ||
73 | MenuButton *typemb; | ||
74 | QWidgetStack *FileStack; | ||
75 | FileSelector *fileSelector; | ||
76 | QRegExp tf; | ||
77 | QStringList getMimeTypes(); | ||
78 | void fillCombo( const QString&); | ||
79 | |||
80 | private slots: | ||
81 | void populateList(); | ||
82 | void homeButtonPushed(); | ||
83 | void docButtonPushed(); | ||
84 | void ListPressed( int, QListViewItem *, const QPoint&, int); | ||
85 | void showListMenu(QListViewItem*); | ||
86 | void doCd(); | ||
87 | void makDir(); | ||
88 | void localRename(); | ||
89 | void localDelete(); | ||
90 | void receive( const QCString &msg, const QByteArray &data ); | ||
91 | void dirPathComboActivated( const QString & ); | ||
92 | void upDir(); | ||
93 | void listClicked( QListViewItem * ); | ||
94 | void selectionChanged( const QString & ); | ||
95 | void OnOK(); | ||
96 | void docOpen( const DocLnk & ); | ||
97 | void updateMimeTypeMenu(); | ||
98 | void showType(const QString &); | ||
99 | void dirPathEditPressed(); | ||
100 | |||
101 | protected slots: | ||
102 | |||
103 | protected: | ||
104 | |||
105 | }; | ||
106 | |||
107 | |||
108 | class InputDialog : public QDialog | ||
109 | { | ||
110 | Q_OBJECT | ||
111 | |||
112 | public: | ||
113 | InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); | ||
114 | ~InputDialog(); | ||
115 | QString inputText; | ||
116 | QLineEdit* LineEdit1; | ||
117 | void setTextEdit(const QString &); | ||
118 | }; | ||
119 | |||
120 | #endif // FILEBROWSER_H | ||