-rw-r--r-- | core/apps/textedit/fileBrowser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/apps/textedit/fileBrowser.h b/core/apps/textedit/fileBrowser.h index ec73b69..42bbc10 100644 --- a/core/apps/textedit/fileBrowser.h +++ b/core/apps/textedit/fileBrowser.h | |||
@@ -27,71 +27,71 @@ copyright Sun 02-17-2002 22:28:23 L. J. Potter ljp@llornkcor.com | |||
27 | #include <qpe/filemanager.h> | 27 | #include <qpe/filemanager.h> |
28 | 28 | ||
29 | class QVBoxLayout; | 29 | class QVBoxLayout; |
30 | class QHBoxLayout; | 30 | class QHBoxLayout; |
31 | class QGridLayout; | 31 | class QGridLayout; |
32 | class QListView; | 32 | class QListView; |
33 | class QListViewItem; | 33 | class QListViewItem; |
34 | class QPushButton; | 34 | class QPushButton; |
35 | class QComboBox; | 35 | class QComboBox; |
36 | class QWidgetStack; | 36 | class QWidgetStack; |
37 | class FileSelector; | 37 | class FileSelector; |
38 | class QPoint; | 38 | class QPoint; |
39 | class MenuButton; | 39 | class MenuButton; |
40 | class QRegExp; | 40 | class QRegExp; |
41 | 41 | ||
42 | 42 | ||
43 | class fileBrowser : public QDialog | 43 | class fileBrowser : public QDialog |
44 | { | 44 | { |
45 | Q_OBJECT | 45 | Q_OBJECT |
46 | 46 | ||
47 | public: | 47 | public: |
48 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); | 48 | fileBrowser( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ,const QString filter=0); |
49 | ~fileBrowser(); | 49 | ~fileBrowser(); |
50 | 50 | ||
51 | void setFileView( int ); | ||
52 | |||
53 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton; | 51 | QPushButton *buttonOk, *buttonCancel, *homeButton, *docButton, *hideButton, *cdUpButton; |
54 | QListView* ListView; | 52 | QListView* ListView; |
55 | 53 | ||
56 | QLabel *dirLabel; | 54 | QLabel *dirLabel; |
57 | QString selectedFileName, filterStr; | 55 | QString selectedFileName, filterStr; |
58 | QDir currentDir; | 56 | QDir currentDir; |
59 | QFile file; | 57 | QFile file; |
60 | QStringList fileList, dirPathStringList; | 58 | QStringList fileList, dirPathStringList; |
61 | QListViewItem * item; | 59 | QListViewItem * item; |
62 | QComboBox *SelectionCombo, *dirPathCombo; | 60 | QComboBox *SelectionCombo, *dirPathCombo; |
63 | MenuButton *typemb; | 61 | MenuButton *typemb; |
64 | QWidgetStack *FileStack; | 62 | QWidgetStack *FileStack; |
65 | FileSelector *fileSelector; | 63 | FileSelector *fileSelector; |
66 | QString mimeType; | 64 | QString mimeType; |
67 | public slots: | 65 | public slots: |
68 | 66 | ||
69 | private: | 67 | private: |
70 | // QDict<void> mimes; | 68 | // QDict<void> mimes; |
71 | QRegExp tf; | 69 | QRegExp tf; |
72 | QStringList getMimeTypes(); | 70 | QStringList getMimeTypes(); |
73 | void fillCombo( const QString&); | 71 | void fillCombo( const QString&); |
72 | void setFileView( int ); | ||
73 | |||
74 | private slots: | 74 | private slots: |
75 | void populateList(); | 75 | void populateList(); |
76 | void homeButtonPushed(); | 76 | void homeButtonPushed(); |
77 | void docButtonPushed(); | 77 | void docButtonPushed(); |
78 | void ListPressed( int, QListViewItem *, const QPoint&, int); | 78 | void ListPressed( int, QListViewItem *, const QPoint&, int); |
79 | void showListMenu(QListViewItem*); | 79 | void showListMenu(QListViewItem*); |
80 | void doCd(); | 80 | void doCd(); |
81 | void makDir(); | 81 | void makDir(); |
82 | void localRename(); | 82 | void localRename(); |
83 | void localDelete(); | 83 | void localDelete(); |
84 | void receive( const QCString &msg, const QByteArray &data ); | 84 | void receive( const QCString &msg, const QByteArray &data ); |
85 | void dirPathComboActivated( const QString & ); | 85 | void dirPathComboActivated( const QString & ); |
86 | void upDir(); | 86 | void upDir(); |
87 | void listClicked( QListViewItem * ); | 87 | void listClicked( QListViewItem * ); |
88 | void selectionChanged( const QString & ); | 88 | void selectionChanged( const QString & ); |
89 | void OnOK(); | 89 | void OnOK(); |
90 | void docOpen( const DocLnk & ); | 90 | void docOpen( const DocLnk & ); |
91 | void updateMimeTypeMenu(); | 91 | void updateMimeTypeMenu(); |
92 | void showType(const QString &); | 92 | void showType(const QString &); |
93 | void dirPathEditPressed(); | 93 | void dirPathEditPressed(); |
94 | 94 | ||
95 | protected slots: | 95 | protected slots: |
96 | 96 | ||
97 | protected: | 97 | protected: |