author | zecke <zecke> | 2002-04-11 20:30:22 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-11 20:30:22 (UTC) |
commit | 2599e347d9444cfa6282fec9f2bfb9df4743d6d2 (patch) (unidiff) | |
tree | f7459dc0763e2023a4cbc9171241fa3e37b3731a /libopie/ofileselector.h | |
parent | 4db8a0f808c4fd931d10af203d94f693e92519f5 (diff) | |
download | opie-2599e347d9444cfa6282fec9f2bfb9df4743d6d2.zip opie-2599e347d9444cfa6282fec9f2bfb9df4743d6d2.tar.gz opie-2599e347d9444cfa6282fec9f2bfb9df4743d6d2.tar.bz2 |
OFileSelector const QStringList -> const QSTringList&
OFileDialog initial version
the layout is broken but don't ask me. I played with the parent
played with manual relayouting.
Currently the setYesCancelVisisble crashes but that's ok for now
OFileDialog provides static methods for
OpenFileName, SaveFileName and DIrFileName
Multiple selection will follow
Maybe a dwarf fixes the problems for me overnight
-rw-r--r-- | libopie/ofileselector.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h index bf3cb48..5e98a1e 100644 --- a/libopie/ofileselector.h +++ b/libopie/ofileselector.h | |||
@@ -116,11 +116,11 @@ class OFileSelectorItem : public QListViewItem { | |||
116 | class OFileSelector : public QWidget { | 116 | class OFileSelector : public QWidget { |
117 | Q_OBJECT | 117 | Q_OBJECT |
118 | public: | 118 | public: |
119 | enum Mode {OPEN=1, SAVE, FILESELECTOR }; | 119 | enum Mode {OPEN=1, SAVE=2, FILESELECTOR=4, DIR=8 }; |
120 | enum Selector{NORMAL=1, EXTENDED = 2, EXTENDED_ALL =4 }; | 120 | enum Selector{NORMAL=1, EXTENDED = 2, EXTENDED_ALL =4 }; |
121 | enum View { DIRS = 1, FILES = 2, TREE = 4, ICON = 8 }; | 121 | enum View { DIRS = 1, FILES = 2, TREE = 4, ICON = 8 }; |
122 | OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName, const QString &fileName = QString::null, const QStringList mimetypes = QStringList() ); | 122 | OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName, const QString &fileName = QString::null, const QStringList &mimetypes = QStringList() ); |
123 | 123 | ~OFileSelector() {}; | |
124 | bool isToolbarVisible() const { return m_shTool; }; | 124 | bool isToolbarVisible() const { return m_shTool; }; |
125 | bool isPermissionBarVisible() const { return m_shPerm; }; | 125 | bool isPermissionBarVisible() const { return m_shPerm; }; |
126 | bool isLineEditVisible()const { return m_shLne; }; | 126 | bool isLineEditVisible()const { return m_shLne; }; |
@@ -180,6 +180,7 @@ class OFileSelector : public QWidget { | |||
180 | signals: | 180 | signals: |
181 | void fileSelected( const DocLnk & ); | 181 | void fileSelected( const DocLnk & ); |
182 | void fileSelected( const QString & ); | 182 | void fileSelected( const QString & ); |
183 | void dirSelected(const QString &dir ); | ||
183 | void closeMe(); | 184 | void closeMe(); |
184 | void ok(); | 185 | void ok(); |
185 | void cancel(); | 186 | void cancel(); |