39
40
struct ContextManagerPrivate;
42
* Manage the update of the contextual parts of the applications,
43
* Manage the update of the contextual parts of the applications,
43
44
* like the sidebar or the context menu.
45
class ContextManager : public QObject {
46
class ContextManager : public QObject
48
ContextManager(SortedDirModel*, QItemSelectionModel*, QObject* parent);
52
void addItem(AbstractContextManagerItem* item);
54
KUrl currentUrl() const;
56
void setCurrentDirUrl(const KUrl&);
58
KUrl currentDirUrl() const;
60
void setCurrentUrl(const KUrl& currentUrl);
62
KFileItemList selectedFileItemList() const;
64
SortedDirModel* dirModel() const;
67
* If true, selectedFileItemList() will only return current url
68
* (useful in view mode)
70
void setOnlyCurrentUrl(bool onlyCurrentUrl);
50
ContextManager(SortedDirModel*, QItemSelectionModel*, QObject* parent);
54
void addItem(AbstractContextManagerItem* item);
56
KUrl currentUrl() const;
58
void setCurrentDirUrl(const KUrl&);
60
KUrl currentDirUrl() const;
62
void setCurrentUrl(const KUrl& currentUrl);
64
KFileItemList selectedFileItemList() const;
66
SortedDirModel* dirModel() const;
69
* If true, selectedFileItemList() will only return current url
70
* (useful in view mode)
72
void setOnlyCurrentUrl(bool onlyCurrentUrl);
73
void selectionChanged();
74
void selectionDataChanged();
75
void currentDirUrlChanged();
75
void selectionChanged();
76
void selectionDataChanged();
77
void currentDirUrlChanged();
78
void slotDirModelDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
79
void slotSelectionChanged();
80
void slotCurrentChanged(const QModelIndex&);
81
void emitQueuedSignals();
80
void slotDirModelDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
81
void slotSelectionChanged();
82
void slotCurrentChanged(const QModelIndex&);
83
void emitQueuedSignals();
84
ContextManagerPrivate* const d;
86
ContextManagerPrivate* const d;