diff options
| author | Peter Penz <[email protected]> | 2007-03-15 21:24:41 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-03-15 21:24:41 +0000 |
| commit | 242bda1eaddd863b12afe8f3da7cf11d98475ccb (patch) | |
| tree | 347b8b982094f857b527db33ae924bc2cf86a2cc /src/dolphincontextmenu.h | |
| parent | b4790ea4c0504b0bac13c65f17b50900346ef998 (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.h | 20 |
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 |
