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
@@ -55,12 +55,14 @@ class FileSelector;
55class QGridLayout; 55class QGridLayout;
56class QLineEdit; 56class QLineEdit;
57class QLabel; 57class 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:
64 OFileSelectorItem(QListView *view, const QPixmap &pixmap, const QString &path, 66 OFileSelectorItem(QListView *view, const QPixmap &pixmap, const QString &path,
65 const QString &date, const QString &size, 67 const QString &date, const QString &size,
66 bool isDir=false ): QListViewItem(view) { 68 bool isDir=false ): QListViewItem(view) {
@@ -99,16 +101,20 @@ class OFileSelector : public QWidget {
99 void setShowLineEdit(bool show) ; 101 void setShowLineEdit(bool show) ;
100 void setShowChooser( bool chooser ); 102 void setShowChooser( bool chooser );
101 QCheckBox* permissionCheckbox(); 103 QCheckBox* permissionCheckbox();
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
112 void reparse(); // re reads the dir 118 void reparse(); // re reads the dir
113 QString directory(); 119 QString directory();
114 int fileCount(); 120 int fileCount();
@@ -159,16 +165,22 @@ class OFileSelector : public QWidget {
159 bool m_boCheckPerm:1; 165 bool m_boCheckPerm:1;
160 bool m_autoMime:1; 166 bool m_autoMime:1;
161 167
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;
172 184
173}; 185};
174 186