summaryrefslogtreecommitdiff
authordwmw2 <dwmw2>2002-05-09 17:27:32 (UTC)
committer dwmw2 <dwmw2>2002-05-09 17:27:32 (UTC)
commitb9d7463dde0158b06ccbdc014ef20aa8569454a5 (patch) (unidiff)
tree70b02323354ef3f4fdab8199eaeadd1fdc9e8ab8
parent52ddcfe41eaaf782d477b3e0312b2f5e0f71489c (diff)
downloadopie-b9d7463dde0158b06ccbdc014ef20aa8569454a5.zip
opie-b9d7463dde0158b06ccbdc014ef20aa8569454a5.tar.gz
opie-b9d7463dde0158b06ccbdc014ef20aa8569454a5.tar.bz2
remove crap again
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/fileBrowser.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h
index 45c8b8f..352cb51 100644
--- a/core/apps/textedit/fileBrowser.h
+++ b/core/apps/textedit/fileBrowser.h
@@ -1,126 +1,120 @@
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 <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#include <qvariant.h> 29#include <qvariant.h>
30#include <qdialog.h> 30#include <qdialog.h>
31#include <qregexp.h> 31#include <qregexp.h>
32 32
33 33
34class QLineEdit; 34class QLineEdit;
35class QVBoxLayout; 35class QVBoxLayout;
36class QHBoxLayout; 36class QHBoxLayout;
37class QGridLayout; 37class QGridLayout;
38class QListView; 38class QListView;
39class QListViewItem; 39class QListViewItem;
40class QPushButton; 40class QPushButton;
41class QComboBox; 41class QComboBox;
42class QWidgetStack; 42class QWidgetStack;
43class FileSelector; 43class FileSelector;
44class QPoint; 44class QPoint;
45class MenuButton; 45class MenuButton;
46 46
47 47
48class fileBrowser : public QDialog 48class fileBrowser : public QDialog
49{ 49{
50 Q_OBJECT 50 Q_OBJECT
51 51
52public: 52public:
53 fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); 53 fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0);
54 ~fileBrowser(); 54 ~fileBrowser();
55 55
56 QString selectedFileName; 56 QString selectedFileName;
57 QFile file; 57 QFile file;
58 QStringList fileList; 58 QStringList fileList;
59 QComboBox *SelectionCombo; 59 QComboBox *SelectionCombo;
60public slots: 60public slots:
61 void setFileView( int ); 61 void setFileView( int );
62 62
63private: 63private:
64// QDict<void> mimes; 64// QDict<void> mimes;
65 QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton; 65 QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton;
66 QListView* ListView; 66 QListView* ListView;
67 QLabel *dirLabel; 67 QLabel *dirLabel;
68 QString filterStr, mimeType; 68 QString filterStr, mimeType;
69 QDir currentDir; 69 QDir currentDir;
70 QStringList dirPathStringList, mimetypes; 70 QStringList dirPathStringList, mimetypes;
71/* QListViewItem * item; */ 71/* QListViewItem * item; */
72 QComboBox *dirPathCombo; 72 QComboBox *dirPathCombo;
73 MenuButton *typemb; 73 MenuButton *typemb;
74 QWidgetStack *FileStack; 74 QWidgetStack *FileStack;
75 FileSelector *fileSelector; 75 FileSelector *fileSelector;
76 QRegExp tf; 76 QRegExp tf;
77 QStringList getMimeTypes(); 77 QStringList getMimeTypes();
78 void fillCombo( const QString&); 78 void fillCombo( const QString&);
79 79
80private slots: 80private slots:
81 void populateList(); 81 void populateList();
82 void homeButtonPushed(); 82 void homeButtonPushed();
83 void docButtonPushed(); 83 void docButtonPushed();
84 void ListPressed( int, QListViewItem *, const QPoint&, int); 84 void ListPressed( int, QListViewItem *, const QPoint&, int);
85 void showListMenu(QListViewItem*); 85 void showListMenu(QListViewItem*);
86 void doCd(); 86 void doCd();
87 void makDir(); 87 void makDir();
88 void localRename(); 88 void localRename();
89 void localDelete(); 89 void localDelete();
90 void receive( const QCString &msg, const QByteArray &data ); 90 void receive( const QCString &msg, const QByteArray &data );
91 void dirPathComboActivated( const QString & ); 91 void dirPathComboActivated( const QString & );
92 void upDir(); 92 void upDir();
93 void listClicked( QListViewItem * ); 93 void listClicked( QListViewItem * );
94 void selectionChanged( const QString & ); 94 void selectionChanged( const QString & );
95 void OnOK(); 95 void OnOK();
96 void docOpen( const DocLnk & ); 96 void docOpen( const DocLnk & );
97 void updateMimeTypeMenu(); 97 void updateMimeTypeMenu();
98 void showType(const QString &); 98 void showType(const QString &);
99 void dirPathEditPressed(); 99 void dirPathEditPressed();
100 100
101protected slots: 101protected slots:
102 102
103protected: 103protected:
104 104
105}; 105};
106 106
107 107
108class InputDialog : public QDialog 108class InputDialog : public QDialog
109{ 109{
110 Q_OBJECT 110 Q_OBJECT
111 111
112public: 112public:
113 InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 113 InputDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
114 ~InputDialog(); 114 ~InputDialog();
115 QString inputText; 115 QString inputText;
116 QLineEdit* LineEdit1; 116 QLineEdit* LineEdit1;
117 void setTextEdit(const QString &); 117 void setTextEdit(const QString &);
118}; 118};
119 119
120#endif // FILEBROWSER_H 120#endif // FILEBROWSER_H
121 QString inputText;
122 QLineEdit* LineEdit1;
123 void setTextEdit(const QString &);
124};
125
126#endif // FILEBROWSER_H