summaryrefslogtreecommitdiff
path: root/libopie/ofileselector.h
Unidiff
Diffstat (limited to 'libopie/ofileselector.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h
index 757a960..a90219f 100644
--- a/libopie/ofileselector.h
+++ b/libopie/ofileselector.h
@@ -58,6 +58,8 @@ class QLabel;
58class QWidgetStack; 58class QWidgetStack;
59class QHBoxLayout; 59class QHBoxLayout;
60class QVBoxLayout; 60class QVBoxLayout;
61class QPopupMenu;
62
61 63
62class OFileSelectorItem : public QListViewItem { 64class OFileSelectorItem : public QListViewItem {
63 public: 65 public:
@@ -102,10 +104,14 @@ class OFileSelector : public QWidget {
102 bool setPermission() const; 104 bool setPermission() const;
103 void setPermissionChecked( bool check ); 105 void setPermissionChecked( bool check );
104 void setMode( int ); 106 void setMode( int );
107 void setShowDirs(bool dir ) { };
108 bool showDirs() {bool turn; return turn; }
105 int mode()const { return m_mode; }; 109 int mode()const { return m_mode; };
106 int selector()const { return m_selector; }; 110 int selector()const { return m_selector; };
107 void setSelector( int ); 111 void setSelector( int );
108 QString selectedName( ); 112 QString selectedName( );
113 void setPopupMenu( const QPopupMenu * );
114
109 const DocLnk* selectedDocument()const; 115 const DocLnk* selectedDocument()const;
110 void updateLay(); 116 void updateLay();
111 117
@@ -162,10 +168,16 @@ class OFileSelector : public QWidget {
162 protected: 168 protected:
163 169
164 private: 170 private:
171 // implementation todo
172 virtual void addFile(const QString &path, const QString &name, bool symlink = FALSE ) {};
173 virtual void addDir( const QString &path, const QString &dir , bool symlink = FALSE ){};
174 virtual void addSymlink(const QString &path, const QString &name, bool broken = FALSE ){};
165 void delItems(); 175 void delItems();
166 void initializeName(); 176 void initializeName();
167 void initializeYes(); 177 void initializeYes();
168 void initializeChooser(); 178 void initializeChooser();
179 void initializeListView();
180 bool compliesMime(const QString &path, const QString &mime);
169 181
170 class OFileSelectorPrivate; 182 class OFileSelectorPrivate;
171 OFileSelectorPrivate *d; 183 OFileSelectorPrivate *d;