┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-16 00:24:56 +0000
committerPeter Penz <[email protected]>2007-03-16 00:24:56 +0000
commit9ed13b31b458bc4d41c7b1c5bbc472fce3554d8d (patch)
treecb55c8b71961d33aee65d96a00ccfb80fd00bf08 /src/dolphincontextmenu.h
parent1cdb64a12bf5e6f3b97d38992799ba6bfbb06ef5 (diff)
Let's keep it simple: only offer a basic context menu for the treeview sidebar.
svn path=/trunk/KDE/kdebase/apps/; revision=642982
Diffstat (limited to 'src/dolphincontextmenu.h')
-rw-r--r--src/dolphincontextmenu.h12
1 files changed, 9 insertions, 3 deletions
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;
};