┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-15 21:24:41 +0000
committerPeter Penz <[email protected]>2007-03-15 21:24:41 +0000
commit242bda1eaddd863b12afe8f3da7cf11d98475ccb (patch)
tree347b8b982094f857b527db33ae924bc2cf86a2cc /src/dolphincontextmenu.h
parentb4790ea4c0504b0bac13c65f17b50900346ef998 (diff)
let the context menu be aware about the trash
svn path=/trunk/KDE/kdebase/apps/; revision=642935
Diffstat (limited to 'src/dolphincontextmenu.h')
-rw-r--r--src/dolphincontextmenu.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h
index 82bc9f24d..ac9a19d7c 100644
--- a/src/dolphincontextmenu.h
+++ b/src/dolphincontextmenu.h
@@ -67,8 +67,12 @@ public:
void open();
private:
- void openViewportContextMenu();
+ void openTrashContextMenu();
+ void openTrashItemContextMenu();
void openItemContextMenu();
+ void openViewportContextMenu();
+
+ void insertDefaultItemActions(KMenu* popup);
/**
* Inserts the 'Open With...' submenu to \a popup.
@@ -100,9 +104,7 @@ private:
bool containsEntry(const KMenu* menu,
const QString& entryName) const;
- DolphinView* m_dolphinView;
- KFileItem* m_fileInfo;
-
+private:
struct Entry {
int type;
QString name;
@@ -111,6 +113,16 @@ private:
QString icon;
QString comment;
};
+
+ enum ContextType {
+ NoContext = 0,
+ ItemContext = 1,
+ TrashContext = 2
+ };
+
+ DolphinView* m_dolphinView;
+ KFileItem* m_fileInfo;
+ int m_context;
};
#endif