summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fileBrowser.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h
index 8607b8b..515da3d 100644
--- a/core/apps/textedit/fileBrowser.h
+++ b/core/apps/textedit/fileBrowser.h
@@ -1,65 +1,64 @@
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**
13copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com 13copyright 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 <qregexp.h>
23#include <qstringlist.h> 22#include <qstringlist.h>
24#include <qlabel.h> 23#include <qlabel.h>
25#include <qstring.h> 24#include <qstring.h>
26#include <qdict.h> 25#include <qdict.h>
27 26
28#include <qpe/filemanager.h> 27#include <qpe/filemanager.h>
29 28
30#include <qvariant.h> 29#include <qvariant.h>
31#include <qdialog.h> 30#include <qdialog.h>
32class QLineEdit;
33 31
32class QLineEdit;
34class QVBoxLayout; 33class QVBoxLayout;
35class QHBoxLayout; 34class QHBoxLayout;
36class QGridLayout; 35class QGridLayout;
37class QListView; 36class QListView;
38class QListViewItem; 37class QListViewItem;
39class QPushButton; 38class QPushButton;
40class QComboBox; 39class QComboBox;
41class QWidgetStack; 40class QWidgetStack;
42class FileSelector; 41class FileSelector;
43class QPoint; 42class QPoint;
44class MenuButton; 43class MenuButton;
45class QRegExp; 44class QRegExp;
46 45
47 46
48class fileBrowser : public QDialog 47class fileBrowser : public QDialog
49{ 48{
50 Q_OBJECT 49 Q_OBJECT
51 50
52public: 51public:
53 fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); 52 fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0);
54 ~fileBrowser(); 53 ~fileBrowser();
55 54
56 QString selectedFileName; 55 QString selectedFileName;
57 QFile file; 56 QFile file;
58 QStringList fileList; 57 QStringList fileList;
59 QComboBox *SelectionCombo; 58 QComboBox *SelectionCombo;
60public slots: 59public slots:
61 void setFileView( int ); 60 void setFileView( int );
62 61
63private: 62private:
64// QDict<void> mimes; 63// QDict<void> mimes;
65 QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton; 64 QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton;
@@ -89,32 +88,38 @@ private slots:
89 void localDelete(); 88 void localDelete();
90 void receive( const QCString &msg, const QByteArray &data ); 89 void receive( const QCString &msg, const QByteArray &data );
91 void dirPathComboActivated( const QString & ); 90 void dirPathComboActivated( const QString & );
92 void upDir(); 91 void upDir();
93 void listClicked( QListViewItem * ); 92 void listClicked( QListViewItem * );
94 void selectionChanged( const QString & ); 93 void selectionChanged( const QString & );
95 void OnOK(); 94 void OnOK();
96 void docOpen( const DocLnk & ); 95 void docOpen( const DocLnk & );
97 void updateMimeTypeMenu(); 96 void updateMimeTypeMenu();
98 void showType(const QString &); 97 void showType(const QString &);
99 void dirPathEditPressed(); 98 void dirPathEditPressed();
100 99
101protected slots: 100protected slots:
102 101
103protected: 102protected:
104 103
105}; 104};
106 105
107 106
108class InputDialog : public QDialog 107class InputDialog : public QDialog
109{ 108{
110 Q_OBJECT 109 Q_OBJECT
111 110
112public: 111public:
113 InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 112 InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
114 ~InputDialog(); 113 ~InputDialog();
115 QString inputText; 114 QString inputText;
116 QLineEdit* LineEdit1; 115 QLineEdit* LineEdit1;
117 void setTextEdit(const QString &); 116 void setTextEdit(const QString &);
118}; 117};
119 118
120#endif // FILEBROWSER_H 119#endif // FILEBROWSER_H
120 QString inputText;
121 QLineEdit* LineEdit1;
122 void setTextEdit(const QString &);
123};
124
125#endif // FILEBROWSER_H