diff options
| author | Peter Penz <[email protected]> | 2009-07-23 06:28:28 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-07-23 06:28:28 +0000 |
| commit | 47d50032839e70f847adc1cc0de784f001936954 (patch) | |
| tree | e898fc215932aba8fff7c9cb4f077a546b1b0e1d /src/revisioncontrolplugin.h | |
| parent | fddd17030cf1da66415aad51e31575d2a1e2dda0 (diff) | |
The revision control plugin must be aware on which directory the context-menu-actions should get applied. Relying on the directory that has been used in beginRetrieval() does not work when having a treeview.
svn path=/trunk/KDE/kdebase/apps/; revision=1001388
Diffstat (limited to 'src/revisioncontrolplugin.h')
| -rw-r--r-- | src/revisioncontrolplugin.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/revisioncontrolplugin.h b/src/revisioncontrolplugin.h index 54bd10f03..bbe66b3c3 100644 --- a/src/revisioncontrolplugin.h +++ b/src/revisioncontrolplugin.h @@ -93,13 +93,19 @@ public: /** * Returns the list of actions that should be shown in the context menu - * for the files \p items. If no files are provided by \p items, the context - * menu is valid for the current directory (see RevisionControlPlugin::beginRetrieval()). + * for the files \p items. It is assured that the passed list is not empty. * If an action triggers a change of the revisions, the signal * RevisionControlPlugin::revisionStatesChanged() must be emitted. */ virtual QList<QAction*> contextMenuActions(const KFileItemList& items) const = 0; + /** + * Returns the list of actions that should be shown in the context menu + * for the directory \p directory. If an action triggers a change of the revisions, + * the signal RevisionControlPlugin::revisionStatesChanged() must be emitted. + */ + virtual QList<QAction*> contextMenuActions(const QString& directory) const = 0; + signals: /** * Should be emitted when the revision state of files has been changed @@ -131,6 +137,7 @@ public: virtual void endRetrieval(); virtual RevisionControlPlugin::RevisionState revisionState(const KFileItem& item); virtual QList<QAction*> contextMenuActions(const KFileItemList& items) const; + virtual QList<QAction*> contextMenuActions(const QString& directory) const; private: /** |
