From 9ed13b31b458bc4d41c7b1c5bbc472fce3554d8d Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 16 Mar 2007 00:24:56 +0000 Subject: Let's keep it simple: only offer a basic context menu for the treeview sidebar. svn path=/trunk/KDE/kdebase/apps/; revision=642982 --- src/dolphincontextmenu.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/dolphincontextmenu.h') diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h index 7e3476a4c..09288c602 100644 --- a/src/dolphincontextmenu.h +++ b/src/dolphincontextmenu.h @@ -48,6 +48,12 @@ class DolphinMainWindow; class DolphinContextMenu { public: + enum ViewType + { + ItemsView, + SidebarView + }; + /** * @parent Pointer to the main window the context menu * belongs to. @@ -56,13 +62,12 @@ public: * is above the viewport. * @baseUrl Base URL of the viewport where the context menu * should be opened. - * @selectedItems Selected items where the actions of the context menu - * are applied. + * @viewType On which view type is the context menu shown. */ DolphinContextMenu(DolphinMainWindow* parent, KFileItem* fileInfo, const KUrl& baseUrl, - KFileItemList selectedItems); + ViewType viewType = ItemsView); virtual ~DolphinContextMenu(); @@ -128,6 +133,7 @@ private: KUrl m_baseUrl; KFileItemList m_selectedItems; KUrl::List m_selectedUrls; + ViewType m_viewType; int m_context; }; -- cgit v1.3