-rw-r--r-- | libopie/ofileselector.h | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h index 5c38ac4..47697b9 100644 --- a/libopie/ofileselector.h +++ b/libopie/ofileselector.h @@ -65,2 +65,3 @@ class QPopupMenu; class QFileInfo; +class QHBox; // @@ -83,9 +84,9 @@ class OFileSelector : public QWidget { const char *name, bool newVisible = TRUE, - bool closeVisible = FALSE ) { }; + bool closeVisible = FALSE ); - ~OFileSelector() {}; + ~OFileSelector(); // currently only for the FILESELECTOR Mode - void setNewVisible( bool /*b*/ ) { }; - void setCloseVisible(bool /*b*/ ) { }; + void setNewVisible( bool /*b*/ ); + void setCloseVisible(bool /*b*/ ); @@ -93,3 +94,3 @@ class OFileSelector : public QWidget { // deprecated - void reread() { reparse(); }; + void reread(); // make sure not to leak please @@ -136,3 +137,3 @@ class OFileSelector : public QWidget { - void updateLay(); + // void updateLay(); @@ -161,4 +162,6 @@ class OFileSelector : public QWidget { void cancel(); + void contextMenu(); - protected slots: + private slots: + void slotTest() { qWarning("slotTest" ); setLineEditVisible(false ); }; void slotOk(); @@ -167,6 +170,7 @@ class OFileSelector : public QWidget { void slotMimeCheck(const QString & ); - void locationComboActivated(const QString & ); - void insertLocationPath(const QString &, int); + void slotLocationActivated(const QString & ); + void slotInsertLocationPath(const QString &, int); void locationComboChanged(); - protected: + + private: void init(); @@ -180,3 +184,3 @@ class OFileSelector : public QWidget { QPushButton *m_homeButton, *m_docButton, *m_hideButton, *m_ok, *m_cancel; - QPushButton *m_reread, *m_up; + QPushButton *m_reread, *m_up, *m_new, *m_close; QListView *m_View; @@ -188,3 +192,3 @@ class OFileSelector : public QWidget { QString m_name; - QStringList m_mimetypes, requestedMimeTypesList; + QStringList m_mimetypes; @@ -195,6 +199,6 @@ class OFileSelector : public QWidget { - QHBoxLayout *m_boxToolbar; - QHBoxLayout *m_boxOk; - QHBoxLayout *m_boxName; - QHBoxLayout *m_boxView; + QHBox *m_boxToolbar; + QHBox *m_boxOk; // (no layout anymore) wait + QHBox *m_boxName; // (no Layout anymore) wait + QHBox *m_boxView; @@ -219,3 +223,3 @@ class OFileSelector : public QWidget { - // implementation todo + void initVars(); virtual void addFile(const QString &mime, QFileInfo *info, bool symlink = FALSE ); @@ -228,2 +232,3 @@ class OFileSelector : public QWidget { void initializeListView(); + void initializePerm(); void initPics(); |