-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 @@ -75,25 +75,26 @@ class OFileSelectorItem : public QListViewItem { } QString path()const{ return text(1 ); } private: bool dir:1; }; class OFileSelector : public QWidget { Q_OBJECT public: enum Mode {OPEN=1, SAVE, FILESELECTOR }; - enum Selector{NORMAL=1, EXTENDED }; + enum Selector{NORMAL=1, EXTENDED = 2, EXTENDED_ALL =4 }; + enum View { DIRS = 1, FILES = 2, TREE = 4, ICON = 8 }; OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName, const QString &fileName = QString::null, const QStringList mimetypes = QStringList() ); bool showToolbar() const { return m_shTool; }; bool showPermissionBar() const { return m_shPerm; }; bool showLineEdit()const { return m_shLne; }; bool showChooser( )const { return m_shChooser; }; bool showYesCancel()const { return m_shYesNo; }; void setShowYesCancel( bool show ); void setShowToolbar( bool show ); void setShowPermissionBar( bool show ); void setShowLineEdit(bool show) ; void setShowChooser( bool chooser ); @@ -114,26 +115,28 @@ class OFileSelector : public QWidget { signals: void fileSelected( const DocLnk & ); void fileSelected( const QString & ); void closeMe(); void ok(); void cancel(); protected slots: void slotOk(); void slotCancel(); void slotViewCheck(const QString & ); + void slotMimeCheck(const QString & ); protected: void init(); + void updateMimes(); int m_mode, m_selector; QComboBox *m_location, *m_mimeCheck, *m_viewCheck; QPushButton *m_homeButton, *m_docButton, *m_hideButton, *m_ok, *m_cancel; QPushButton *m_reread, *m_up; QListView *m_View; QCheckBox *m_checkPerm; QString m_currentDir; QString m_name; QStringList m_mimetypes; FileSelector *m_select; @@ -145,24 +148,25 @@ class OFileSelector : public QWidget { QHBoxLayout *m_boxOk; QHBoxLayout *m_boxName; QHBoxLayout *m_boxView; QLineEdit *m_edit; QLabel *m_fnLabel; bool m_shTool:1; bool m_shPerm:1; bool m_shLne:1; bool m_shChooser:1; bool m_shYesNo:1; bool m_boCheckPerm:1; + bool m_autoMime:1; protected: private: void delItems(); void initializeName(); void initializeYes(); void initializeChooser(); class OFileSelectorPrivate; OFileSelectorPrivate *d; |