-rw-r--r-- | libopie/ofileselector.h | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h index 6936773..458e552 100644 --- a/libopie/ofileselector.h +++ b/libopie/ofileselector.h | |||
@@ -78,7 +78,7 @@ class OFileSelectorItem : public QListViewItem { | |||
78 | dir = isDir; | 78 | dir = isDir; |
79 | mLocked = isLocked; | 79 | mLocked = isLocked; |
80 | } | 80 | } |
81 | bool locked() const{ | 81 | bool isLocked() const{ |
82 | return mLocked; | 82 | return mLocked; |
83 | } | 83 | } |
84 | QString directory()const{ | 84 | QString directory()const{ |
@@ -148,7 +148,7 @@ class OFileSelector : public QWidget { | |||
148 | 148 | ||
149 | bool showFiles()const { return m_files; }; | 149 | bool showFiles()const { return m_files; }; |
150 | void setShowFiles(bool ); | 150 | void setShowFiles(bool ); |
151 | 151 | bool cd(const QString &path ); | |
152 | 152 | ||
153 | 153 | ||
154 | int mode()const { return m_mode; }; | 154 | int mode()const { return m_mode; }; |
@@ -156,7 +156,7 @@ class OFileSelector : public QWidget { | |||
156 | void setSelector( int ); | 156 | void setSelector( int ); |
157 | 157 | ||
158 | 158 | ||
159 | void setPopupMenu( const QPopupMenu * ); | 159 | void setPopupMenu( QPopupMenu * ); |
160 | 160 | ||
161 | void updateLay(); | 161 | void updateLay(); |
162 | 162 | ||
@@ -191,7 +191,11 @@ class OFileSelector : public QWidget { | |||
191 | protected: | 191 | protected: |
192 | void init(); | 192 | void init(); |
193 | void updateMimes(); | 193 | void updateMimes(); |
194 | int m_mode, m_selector; | 194 | |
195 | protected: | ||
196 | |||
197 | private: | ||
198 | int m_mode, m_selector; | ||
195 | QComboBox *m_location, *m_mimeCheck, *m_viewCheck; | 199 | QComboBox *m_location, *m_mimeCheck, *m_viewCheck; |
196 | QPushButton *m_homeButton, *m_docButton, *m_hideButton, *m_ok, *m_cancel; | 200 | QPushButton *m_homeButton, *m_docButton, *m_hideButton, *m_ok, *m_cancel; |
197 | QPushButton *m_reread, *m_up; | 201 | QPushButton *m_reread, *m_up; |
@@ -212,6 +216,8 @@ class OFileSelector : public QWidget { | |||
212 | QHBoxLayout *m_boxName; | 216 | QHBoxLayout *m_boxName; |
213 | QHBoxLayout *m_boxView; | 217 | QHBoxLayout *m_boxView; |
214 | 218 | ||
219 | QPopupMenu *m_custom; | ||
220 | |||
215 | QLineEdit *m_edit; | 221 | QLineEdit *m_edit; |
216 | QLabel *m_fnLabel; | 222 | QLabel *m_fnLabel; |
217 | bool m_shTool:1; | 223 | bool m_shTool:1; |
@@ -225,13 +231,10 @@ class OFileSelector : public QWidget { | |||
225 | bool m_dir:1; | 231 | bool m_dir:1; |
226 | bool m_files:1; | 232 | bool m_files:1; |
227 | 233 | ||
228 | protected: | ||
229 | |||
230 | private: | ||
231 | // implementation todo | 234 | // implementation todo |
232 | virtual void addFile(const QString &mime, QFileInfo *info, bool symlink = FALSE ); | 235 | virtual void addFile(const QString &mime, QFileInfo *info, bool symlink = FALSE ); |
233 | virtual void addDir( const QString &mime, QFileInfo *info , bool symlink = FALSE ); | 236 | virtual void addDir( const QString &mime, QFileInfo *info , bool symlink = FALSE ); |
234 | virtual void addSymlink(const QString &mime, QFileInfo *info, bool broken = FALSE ){}; | 237 | virtual void addSymlink(const QString &, QFileInfo *, bool = FALSE ){}; |
235 | void delItems(); | 238 | void delItems(); |
236 | void initializeName(); | 239 | void initializeName(); |
237 | void initializeYes(); | 240 | void initializeYes(); |
@@ -243,7 +246,25 @@ class OFileSelector : public QWidget { | |||
243 | class OFileSelectorPrivate; | 246 | class OFileSelectorPrivate; |
244 | OFileSelectorPrivate *d; | 247 | OFileSelectorPrivate *d; |
245 | static QMap<QString,QPixmap> *m_pixmaps; | 248 | static QMap<QString,QPixmap> *m_pixmaps; |
249 | |||
250 | private slots: | ||
251 | void slotFileSelected(const QString & ); // not really meant to be a slot | ||
252 | void slotFileBridgeSelected( const DocLnk & ); | ||
253 | virtual void slotSelectionChanged(); | ||
254 | virtual void slotCurrentChanged(QListViewItem* ); | ||
255 | virtual void slotClicked( int, QListViewItem *item, const QPoint &, int); | ||
256 | virtual void slotRightButton(int, QListViewItem *, const QPoint &, int ); | ||
257 | virtual void slotContextMenu( QListViewItem *item); | ||
258 | // listview crap see above | ||
259 | // PopupMenu crap | ||
260 | virtual void slotChangedDir(); | ||
261 | virtual void slotOpen(); | ||
262 | virtual void slotRescan(); | ||
263 | virtual void slotRename(); | ||
264 | virtual void slotDelete(); | ||
265 | |||
246 | }; | 266 | }; |
247 | 267 | ||
248 | 268 | ||
249 | #endif | 269 | #endif |
270 | |||