-rw-r--r-- | microkde/ofileselector_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/microkde/ofileselector_p.h b/microkde/ofileselector_p.h index 834fd70..a7d97fe 100644 --- a/microkde/ofileselector_p.h +++ b/microkde/ofileselector_p.h | |||
@@ -108,65 +108,65 @@ private: | |||
108 | 108 | ||
109 | class OFileViewFileListView : public QWidget { | 109 | class OFileViewFileListView : public QWidget { |
110 | Q_OBJECT | 110 | Q_OBJECT |
111 | public: | 111 | public: |
112 | OFileViewFileListView( QWidget* parent, const QString& dir, OFileSelector* selector ); | 112 | OFileViewFileListView( QWidget* parent, const QString& dir, OFileSelector* selector ); |
113 | ~OFileViewFileListView(); | 113 | ~OFileViewFileListView(); |
114 | 114 | ||
115 | OFileSelectorItem* currentItem()const; | 115 | OFileSelectorItem* currentItem()const; |
116 | void reread( bool all = false ); | 116 | void reread( bool all = false ); |
117 | int fileCount()const; | 117 | int fileCount()const; |
118 | QString currentDir()const; | 118 | QString currentDir()const; |
119 | protected: | 119 | protected: |
120 | bool eventFilter (QObject *o, QEvent *e); | 120 | bool eventFilter (QObject *o, QEvent *e); |
121 | private slots: | 121 | private slots: |
122 | void slotNew(); // will emit newSelected | 122 | void slotNew(); // will emit newSelected |
123 | void cdUP(); | 123 | void cdUP(); |
124 | void cdHome(); | 124 | void cdHome(); |
125 | void cdDoc(); | 125 | void cdDoc(); |
126 | void changeDir( const QString& ); | 126 | void changeDir( const QString& ); |
127 | void slotCurrentChanged( QListViewItem* ); | 127 | void slotCurrentChanged( QListViewItem* ); |
128 | void slotClicked(int, QListViewItem*, const QPoint&, int ); | 128 | void slotClicked(int, QListViewItem*, const QPoint&, int ); |
129 | void slotDoubleClicked(QListViewItem*); | 129 | void slotDoubleClicked(QListViewItem*); |
130 | void slotFSActivated(int); | 130 | void slotFSActivated(int); |
131 | 131 | ||
132 | protected: | 132 | protected: |
133 | 133 | ||
134 | OFileSelector* selector(); | 134 | OFileSelector* selector(); |
135 | 135 | ||
136 | private: | 136 | private: |
137 | QMap<QString, QString> m_dev; | 137 | QMap<QString, QString> m_dev; |
138 | bool m_all : 1; | 138 | bool m_all : 1; |
139 | OFileSelector* m_sel; | 139 | OFileSelector* m_sel; |
140 | QPopupMenu* m_fsPop; | 140 | Q3PopupMenu* m_fsPop; |
141 | bool compliesMime( const QString& ); | 141 | bool compliesMime( const QString& ); |
142 | QStringList m_mimes; // used in compy mime | 142 | QStringList m_mimes; // used in compy mime |
143 | QString m_currentDir; | 143 | QString m_currentDir; |
144 | QToolButton *m_btnNew, *m_btnClose; | 144 | QToolButton *m_btnNew, *m_btnClose; |
145 | void connectSlots(); | 145 | void connectSlots(); |
146 | void addFile( QFileInfo* info, bool symlink = FALSE ); | 146 | void addFile( QFileInfo* info, bool symlink = FALSE ); |
147 | void addDir ( QFileInfo* info, bool symlink = FALSE ); | 147 | void addDir ( QFileInfo* info, bool symlink = FALSE ); |
148 | void addSymlink( QFileInfo* info, bool = FALSE ); | 148 | void addSymlink( QFileInfo* info, bool = FALSE ); |
149 | 149 | ||
150 | 150 | ||
151 | private: | 151 | private: |
152 | QListView* m_view; | 152 | QListView* m_view; |
153 | }; | 153 | }; |
154 | 154 | ||
155 | typedef QMap<QString, QStringList> MimeTypes; | 155 | typedef QMap<QString, QStringList> MimeTypes; |
156 | 156 | ||
157 | class OFileViewInterface; | 157 | class OFileViewInterface; |
158 | class OFileViewFileListView; | 158 | class OFileViewFileListView; |
159 | class QLineEdit; | 159 | class QLineEdit; |
160 | class QComboBox; | 160 | class QComboBox; |
161 | class QWidgetStack; | 161 | class QWidgetStack; |
162 | class QHBox; | 162 | class QHBox; |
163 | class OFileSelector : public QWidget { | 163 | class OFileSelector : public QWidget { |
164 | Q_OBJECT | 164 | Q_OBJECT |
165 | friend class OFileViewInterface; | 165 | friend class OFileViewInterface; |
166 | friend class OFileViewFileListView; | 166 | friend class OFileViewFileListView; |
167 | public: | 167 | public: |
168 | enum Mode { Open=1, Save=2, FileSelector=4, OPEN=1, SAVE=2, FILESELECTOR=4 }; | 168 | enum Mode { Open=1, Save=2, FileSelector=4, OPEN=1, SAVE=2, FILESELECTOR=4 }; |
169 | // enum OldMode { OPEN=1, SAVE=2, FILESELECTOR = 4 }; | 169 | // enum OldMode { OPEN=1, SAVE=2, FILESELECTOR = 4 }; |
170 | enum Selector { Normal = 0, Extended=1, ExtendedAll =2, Default=3, NORMAL=0,EXTENDED=1, EXTENDED_ALL =2, DEFAULT=3 }; | 170 | enum Selector { Normal = 0, Extended=1, ExtendedAll =2, Default=3, NORMAL=0,EXTENDED=1, EXTENDED_ALL =2, DEFAULT=3 }; |
171 | // enum OldSelector { NORMAL = 0, EXTENDED =1, EXTENDED_ALL = 2}; | 171 | // enum OldSelector { NORMAL = 0, EXTENDED =1, EXTENDED_ALL = 2}; |
172 | 172 | ||