-rw-r--r-- | libopie/ofileselector.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h index 3f53fa9..757a960 100644 --- a/libopie/ofileselector.h +++ b/libopie/ofileselector.h | |||
@@ -81,13 +81,14 @@ class OFileSelectorItem : public QListViewItem { | |||
81 | }; | 81 | }; |
82 | 82 | ||
83 | class OFileSelector : public QWidget { | 83 | class OFileSelector : public QWidget { |
84 | Q_OBJECT | 84 | Q_OBJECT |
85 | public: | 85 | public: |
86 | enum Mode {OPEN=1, SAVE, FILESELECTOR }; | 86 | enum Mode {OPEN=1, SAVE, FILESELECTOR }; |
87 | enum Selector{NORMAL=1, EXTENDED }; | 87 | enum Selector{NORMAL=1, EXTENDED = 2, EXTENDED_ALL =4 }; |
88 | enum View { DIRS = 1, FILES = 2, TREE = 4, ICON = 8 }; | ||
88 | OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName, const QString &fileName = QString::null, const QStringList mimetypes = QStringList() ); | 89 | OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName, const QString &fileName = QString::null, const QStringList mimetypes = QStringList() ); |
89 | 90 | ||
90 | bool showToolbar() const { return m_shTool; }; | 91 | bool showToolbar() const { return m_shTool; }; |
91 | bool showPermissionBar() const { return m_shPerm; }; | 92 | bool showPermissionBar() const { return m_shPerm; }; |
92 | bool showLineEdit()const { return m_shLne; }; | 93 | bool showLineEdit()const { return m_shLne; }; |
93 | bool showChooser( )const { return m_shChooser; }; | 94 | bool showChooser( )const { return m_shChooser; }; |
@@ -120,14 +121,16 @@ class OFileSelector : public QWidget { | |||
120 | void cancel(); | 121 | void cancel(); |
121 | 122 | ||
122 | protected slots: | 123 | protected slots: |
123 | void slotOk(); | 124 | void slotOk(); |
124 | void slotCancel(); | 125 | void slotCancel(); |
125 | void slotViewCheck(const QString & ); | 126 | void slotViewCheck(const QString & ); |
127 | void slotMimeCheck(const QString & ); | ||
126 | protected: | 128 | protected: |
127 | void init(); | 129 | void init(); |
130 | void updateMimes(); | ||
128 | int m_mode, m_selector; | 131 | int m_mode, m_selector; |
129 | QComboBox *m_location, *m_mimeCheck, *m_viewCheck; | 132 | QComboBox *m_location, *m_mimeCheck, *m_viewCheck; |
130 | QPushButton *m_homeButton, *m_docButton, *m_hideButton, *m_ok, *m_cancel; | 133 | QPushButton *m_homeButton, *m_docButton, *m_hideButton, *m_ok, *m_cancel; |
131 | QPushButton *m_reread, *m_up; | 134 | QPushButton *m_reread, *m_up; |
132 | QListView *m_View; | 135 | QListView *m_View; |
133 | QCheckBox *m_checkPerm; | 136 | QCheckBox *m_checkPerm; |
@@ -151,12 +154,13 @@ class OFileSelector : public QWidget { | |||
151 | bool m_shTool:1; | 154 | bool m_shTool:1; |
152 | bool m_shPerm:1; | 155 | bool m_shPerm:1; |
153 | bool m_shLne:1; | 156 | bool m_shLne:1; |
154 | bool m_shChooser:1; | 157 | bool m_shChooser:1; |
155 | bool m_shYesNo:1; | 158 | bool m_shYesNo:1; |
156 | bool m_boCheckPerm:1; | 159 | bool m_boCheckPerm:1; |
160 | bool m_autoMime:1; | ||
157 | 161 | ||
158 | protected: | 162 | protected: |
159 | 163 | ||
160 | private: | 164 | private: |
161 | void delItems(); | 165 | void delItems(); |
162 | void initializeName(); | 166 | void initializeName(); |