author | zecke <zecke> | 2002-04-27 22:33:52 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-27 22:33:52 (UTC) |
commit | 392596c06dedf8ddaea7c55745460e631073d15a (patch) (side-by-side diff) | |
tree | cbd3de42d37e8144f8bca2436fb20ae3df8d4c38 /libopie | |
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 @@ -8,6 +8,11 @@ - MultipleDocuments - Move OFileSelectorItem to it's own files - new Dirs created inside the listview + - implemenent the compability functions + - implement close and new icons + - have a persistent QWidgetStack so we can add plugins + - mode switching + - better Layout handling - Clickable labels? 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 @@ -70,10 +70,32 @@ class OFileSelector : public QWidget { Q_OBJECT public: enum Mode {OPEN=1, SAVE=2, FILESELECTOR=4, DIR=8 }; - enum Selector{NORMAL=1, EXTENDED = 2, EXTENDED_ALL =4 }; + enum Selector{NORMAL=0, EXTENDED = 1, EXTENDED_ALL =2 }; 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() ); + + OFileSelector(QWidget *wid, int mode, int selector, + const QString &dirName, + const QString &fileName = QString::null, + const QStringList &mimetypes = QStringList() ); + + + OFileSelector(const QString &mimeFilter, QWidget *parent, + const char *name, bool newVisible = TRUE, + bool closeVisible = FALSE ) { }; + ~OFileSelector() {}; + + // currently only for the FILESELECTOR Mode + void setNewVisible( bool /*b*/ ) { }; + void setCloseVisible(bool /*b*/ ) { }; + + // end file selector mode + // deprecated + void reread() { reparse(); }; + // make sure not to leak please + const DocLnk *selected(); + // end deprecated + bool isToolbarVisible() const { return m_shTool; }; bool isPermissionBarVisible() const { return m_shPerm; }; bool isLineEditVisible()const { return m_shLne; }; @@ -180,6 +202,9 @@ class OFileSelector : public QWidget { QLineEdit *m_edit; QLabel *m_fnLabel; + + bool m_shClose : 1; + bool m_shNew : 1; bool m_shTool:1; bool m_shPerm:1; bool m_shLne:1; @@ -216,8 +241,8 @@ private slots: virtual void slotClicked( int, QListViewItem *item, const QPoint &, int); virtual void slotRightButton(int, QListViewItem *, const QPoint &, int ); virtual void slotContextMenu( QListViewItem *item); - // listview crap see above - // PopupMenu crap + // listview above + // popup below virtual void slotChangedDir(); virtual void slotOpen(); virtual void slotRescan(); |