summaryrefslogtreecommitdiff
path: root/core/apps/textedit/fileBrowser.h
Unidiff
Diffstat (limited to 'core/apps/textedit/fileBrowser.h') (more/less context) (show whitespace changes)
-rw-r--r--core/apps/textedit/fileBrowser.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h
new file mode 100644
index 0000000..17ed862
--- a/dev/null
+++ b/core/apps/textedit/fileBrowser.h
@@ -0,0 +1,67 @@
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**
13copyright 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
26class QVBoxLayout;
27class QHBoxLayout;
28class QGridLayout;
29class QListView;
30class QListViewItem;
31class QPushButton;
32
33class fileBrowser : public QDialog
34{
35 Q_OBJECT
36
37public:
38 void populateList();
39 fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0);
40 ~fileBrowser();
41
42 QPushButton* buttonOk;
43 QListView* ListView;
44 QPushButton* buttonCancel;
45 QLabel *dirLabel;
46 QString selectedFileName, filterStr;
47 QDir currentDir;
48 QFile file;
49 QStringList fileList;
50
51QListViewItem * item;
52public slots:
53
54private:
55
56private slots:
57 void upDir();
58 void listDoubleClicked(QListViewItem *);
59 void listClicked(QListViewItem *);
60 void OnOK();
61protected slots:
62
63protected:
64
65};
66
67#endif // FILEBROWSER_H