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.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h
index 4f765dd..8a98365 100644
--- a/core/apps/textedit/fileBrowser.h
+++ b/core/apps/textedit/fileBrowser.h
@@ -22,6 +22,7 @@ copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com
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 26
26#include <qpe/filemanager.h> 27#include <qpe/filemanager.h>
27 28
@@ -35,6 +36,9 @@ class QComboBox;
35class QWidgetStack; 36class QWidgetStack;
36class FileSelector; 37class FileSelector;
37class QPoint; 38class QPoint;
39class MenuButton;
40class QRegExp;
41
38 42
39class fileBrowser : public QDialog 43class fileBrowser : public QDialog
40{ 44{
@@ -47,20 +51,28 @@ public:
47 51
48 void setFileView( int ); 52 void setFileView( int );
49 53
50 QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton; 54 QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton;
51 QListView* ListView; 55 QListView* ListView;
52 56
53 QLabel *dirLabel; 57 QLabel *dirLabel;
54 QString selectedFileName, filterStr; 58 QString selectedFileName, filterStr;
55 QDir currentDir; 59 QDir currentDir;
56 QFile file; 60 QFile file;
57 QStringList fileList; 61 QStringList fileList, dirPathStringList;
58 QListViewItem * item; 62 QListViewItem * item;
59 QComboBox *SelectionCombo; 63 QComboBox *SelectionCombo, *dirPathCombo;
64 MenuButton *typemb;
60 QWidgetStack *FileStack; 65 QWidgetStack *FileStack;
61 FileSelector *fileSelector; 66 FileSelector *fileSelector;
62 67 QString mimeType;
63public slots: 68public slots:
69
70private:
71// QDict<void> mimes;
72 QRegExp tf;
73 QStringList getMimeTypes();
74 void fillCombo( const QString&);
75private slots:
64 void homeButtonPushed(); 76 void homeButtonPushed();
65 void docButtonPushed(); 77 void docButtonPushed();
66 void ListPressed( int, QListViewItem *, const QPoint&, int); 78 void ListPressed( int, QListViewItem *, const QPoint&, int);
@@ -69,14 +81,16 @@ public slots:
69 void makDir(); 81 void makDir();
70 void localRename(); 82 void localRename();
71 void localDelete(); 83 void localDelete();
72private: 84 void receive( const QCString &msg, const QByteArray &data );
73 85 void dirPathComboActivated( const QString & );
74private slots:
75 void upDir(); 86 void upDir();
76 void listClicked( QListViewItem * ); 87 void listClicked( QListViewItem * );
77 void selectionChanged( const QString & ); 88 void selectionChanged( const QString & );
78 void OnOK(); 89 void OnOK();
79 void docOpen( const DocLnk & ); 90 void docOpen( const DocLnk & );
91 void updateMimeTypeMenu();
92 void showType(const QString &);
93 void dirPathEditPressed();
80 94
81protected slots: 95protected slots:
82 96