author | zecke <zecke> | 2002-04-27 22:33:52 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-27 22:33:52 (UTC) |
commit | 392596c06dedf8ddaea7c55745460e631073d15a (patch) (unidiff) | |
tree | cbd3de42d37e8144f8bca2436fb20ae3df8d4c38 | |
parent | 2dc8c64cfa30a199e4ebd45618e726e9ffc6f7dc (diff) | |
download | opie-392596c06dedf8ddaea7c55745460e631073d15a.zip opie-392596c06dedf8ddaea7c55745460e631073d15a.tar.gz opie-392596c06dedf8ddaea7c55745460e631073d15a.tar.bz2 |
backward compability functions and TODO update
-rw-r--r-- | libopie/TODO | 5 | ||||
-rw-r--r-- | libopie/ofileselector.h | 33 |
2 files changed, 34 insertions, 4 deletions
diff --git a/libopie/TODO b/libopie/TODO index 98baf72..22d8088 100644 --- a/libopie/TODO +++ b/libopie/TODO | |||
@@ -5,9 +5,14 @@ | |||
5 | 5 | ||
6 | - OFileSelector | 6 | - OFileSelector |
7 | - DocLnk when not in Document Mode ( and vice versa ) | 7 | - DocLnk when not in Document Mode ( and vice versa ) |
8 | - MultipleDocuments | 8 | - MultipleDocuments |
9 | - Move OFileSelectorItem to it's own files | 9 | - Move OFileSelectorItem to it's own files |
10 | - new Dirs created inside the listview | 10 | - new Dirs created inside the listview |
11 | - implemenent the compability functions | ||
12 | - implement close and new icons | ||
13 | - have a persistent QWidgetStack so we can add plugins | ||
14 | - mode switching | ||
15 | - better Layout handling | ||
11 | 16 | ||
12 | - Clickable labels? | 17 | - Clickable labels? |
13 | Harlekin you wanted them in the libs? \ No newline at end of file | 18 | Harlekin you wanted them in the libs? \ No newline at end of file |
diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h index 8173d76..5c38ac4 100644 --- a/libopie/ofileselector.h +++ b/libopie/ofileselector.h | |||
@@ -67,16 +67,38 @@ class QFileInfo; | |||
67 | 67 | ||
68 | 68 | ||
69 | class OFileSelector : public QWidget { | 69 | class OFileSelector : public QWidget { |
70 | Q_OBJECT | 70 | Q_OBJECT |
71 | public: | 71 | public: |
72 | enum Mode {OPEN=1, SAVE=2, FILESELECTOR=4, DIR=8 }; | 72 | enum Mode {OPEN=1, SAVE=2, FILESELECTOR=4, DIR=8 }; |
73 | enum Selector{NORMAL=1, EXTENDED = 2, EXTENDED_ALL =4 }; | 73 | enum Selector{NORMAL=0, EXTENDED = 1, EXTENDED_ALL =2 }; |
74 | enum View { DIRS = 1, FILES = 2, TREE = 4, ICON = 8 }; | 74 | enum View { DIRS = 1, FILES = 2, TREE = 4, ICON = 8 }; |
75 | OFileSelector(QWidget *wid, int mode, int selector, const QString &dirName, const QString &fileName = QString::null, const QStringList &mimetypes = QStringList() ); | 75 | |
76 | OFileSelector(QWidget *wid, int mode, int selector, | ||
77 | const QString &dirName, | ||
78 | const QString &fileName = QString::null, | ||
79 | const QStringList &mimetypes = QStringList() ); | ||
80 | |||
81 | |||
82 | OFileSelector(const QString &mimeFilter, QWidget *parent, | ||
83 | const char *name, bool newVisible = TRUE, | ||
84 | bool closeVisible = FALSE ) { }; | ||
85 | |||
76 | ~OFileSelector() {}; | 86 | ~OFileSelector() {}; |
87 | |||
88 | // currently only for the FILESELECTOR Mode | ||
89 | void setNewVisible( bool /*b*/ ) { }; | ||
90 | void setCloseVisible(bool /*b*/ ) { }; | ||
91 | |||
92 | // end file selector mode | ||
93 | // deprecated | ||
94 | void reread() { reparse(); }; | ||
95 | // make sure not to leak please | ||
96 | const DocLnk *selected(); | ||
97 | // end deprecated | ||
98 | |||
77 | bool isToolbarVisible() const { return m_shTool; }; | 99 | bool isToolbarVisible() const { return m_shTool; }; |
78 | bool isPermissionBarVisible() const { return m_shPerm; }; | 100 | bool isPermissionBarVisible() const { return m_shPerm; }; |
79 | bool isLineEditVisible()const { return m_shLne; }; | 101 | bool isLineEditVisible()const { return m_shLne; }; |
80 | bool isChooserVisible( )const { return m_shChooser; }; | 102 | bool isChooserVisible( )const { return m_shChooser; }; |
81 | bool isYesCancelVisible()const { return m_shYesNo; }; | 103 | bool isYesCancelVisible()const { return m_shYesNo; }; |
82 | void setYesCancelVisible( bool show ); | 104 | void setYesCancelVisible( bool show ); |
@@ -177,12 +199,15 @@ class OFileSelector : public QWidget { | |||
177 | QHBoxLayout *m_boxView; | 199 | QHBoxLayout *m_boxView; |
178 | 200 | ||
179 | QPopupMenu *m_custom; | 201 | QPopupMenu *m_custom; |
180 | 202 | ||
181 | QLineEdit *m_edit; | 203 | QLineEdit *m_edit; |
182 | QLabel *m_fnLabel; | 204 | QLabel *m_fnLabel; |
205 | |||
206 | bool m_shClose : 1; | ||
207 | bool m_shNew : 1; | ||
183 | bool m_shTool:1; | 208 | bool m_shTool:1; |
184 | bool m_shPerm:1; | 209 | bool m_shPerm:1; |
185 | bool m_shLne:1; | 210 | bool m_shLne:1; |
186 | bool m_shChooser:1; | 211 | bool m_shChooser:1; |
187 | bool m_shYesNo:1; | 212 | bool m_shYesNo:1; |
188 | bool m_boCheckPerm:1; | 213 | bool m_boCheckPerm:1; |
@@ -213,14 +238,14 @@ private slots: | |||
213 | void slotFileBridgeSelected( const DocLnk & ); | 238 | void slotFileBridgeSelected( const DocLnk & ); |
214 | virtual void slotSelectionChanged(); | 239 | virtual void slotSelectionChanged(); |
215 | virtual void slotCurrentChanged(QListViewItem* ); | 240 | virtual void slotCurrentChanged(QListViewItem* ); |
216 | virtual void slotClicked( int, QListViewItem *item, const QPoint &, int); | 241 | virtual void slotClicked( int, QListViewItem *item, const QPoint &, int); |
217 | virtual void slotRightButton(int, QListViewItem *, const QPoint &, int ); | 242 | virtual void slotRightButton(int, QListViewItem *, const QPoint &, int ); |
218 | virtual void slotContextMenu( QListViewItem *item); | 243 | virtual void slotContextMenu( QListViewItem *item); |
219 | // listview crap see above | 244 | // listview above |
220 | // PopupMenu crap | 245 | // popup below |
221 | virtual void slotChangedDir(); | 246 | virtual void slotChangedDir(); |
222 | virtual void slotOpen(); | 247 | virtual void slotOpen(); |
223 | virtual void slotRescan(); | 248 | virtual void slotRescan(); |
224 | virtual void slotRename(); | 249 | virtual void slotRename(); |
225 | virtual void slotDelete(); | 250 | virtual void slotDelete(); |
226 | virtual void cdUP(); | 251 | virtual void cdUP(); |