Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/plugins/folder/foldermodel.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 73 | { | |||
---|---|---|---|---|---|
95 | public: | 95 | public: | ||
96 | enum DataRole { | 96 | enum DataRole { | ||
97 | BlankRole = Qt::UserRole + 1, | 97 | BlankRole = Qt::UserRole + 1, | ||
98 | OverlaysRole, | 98 | OverlaysRole, | ||
99 | SelectedRole, | 99 | SelectedRole, | ||
100 | IsDirRole, | 100 | IsDirRole, | ||
101 | IsLinkRole, | 101 | IsLinkRole, | ||
102 | IsHiddenRole, | 102 | IsHiddenRole, | ||
103 | IsCutRole, | ||||
103 | UrlRole, | 104 | UrlRole, | ||
104 | LinkDestinationUrl, | 105 | LinkDestinationUrl, | ||
105 | SizeRole, | 106 | SizeRole, | ||
106 | TypeRole, | 107 | TypeRole, | ||
107 | FileNameRole | 108 | FileNameRole | ||
108 | }; | 109 | }; | ||
109 | 110 | | |||
110 | enum FilterMode { | 111 | enum FilterMode { | ||
▲ Show 20 Lines • Show All 144 Lines • ▼ Show 20 Line(s) | 253 | private Q_SLOTS: | |||
255 | void statResult(KJob *job); | 256 | void statResult(KJob *job); | ||
256 | void evictFromIsDirCache(const KFileItemList &items); | 257 | void evictFromIsDirCache(const KFileItemList &items); | ||
257 | void selectionChanged(QItemSelection selected, QItemSelection deselected); | 258 | void selectionChanged(QItemSelection selected, QItemSelection deselected); | ||
258 | void pasteTo(); | 259 | void pasteTo(); | ||
259 | void moveSelectedToTrash(); | 260 | void moveSelectedToTrash(); | ||
260 | void emptyTrashBin(); | 261 | void emptyTrashBin(); | ||
261 | void restoreSelectedFromTrash(); | 262 | void restoreSelectedFromTrash(); | ||
262 | void undoTextChanged(const QString &text); | 263 | void undoTextChanged(const QString &text); | ||
264 | void updateCutUrls(); | ||||
263 | 265 | | |||
264 | private: | 266 | private: | ||
265 | struct DragImage { | 267 | struct DragImage { | ||
266 | int row; | 268 | int row; | ||
267 | QRect rect; | 269 | QRect rect; | ||
268 | QPoint cursorOffset; | 270 | QPoint cursorOffset; | ||
269 | QImage image; | 271 | QImage image; | ||
270 | bool blank; | 272 | bool blank; | ||
Show All 29 Lines | |||||
300 | bool m_parseDesktopFiles; | 302 | bool m_parseDesktopFiles; | ||
301 | bool m_previews; | 303 | bool m_previews; | ||
302 | QStringList m_previewPlugins; | 304 | QStringList m_previewPlugins; | ||
303 | FilterMode m_filterMode; | 305 | FilterMode m_filterMode; | ||
304 | QString m_filterPattern; | 306 | QString m_filterPattern; | ||
305 | bool m_filterPatternMatchAll; | 307 | bool m_filterPatternMatchAll; | ||
306 | QSet<QString> m_mimeSet; | 308 | QSet<QString> m_mimeSet; | ||
307 | QList<QRegExp> m_regExps; | 309 | QList<QRegExp> m_regExps; | ||
310 | QSet<QUrl> m_cutUrls; | ||||
308 | }; | 311 | }; | ||
309 | 312 | | |||
310 | #endif | 313 | #endif |