┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontextmenu.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-17 20:42:26 +0000
committerPeter Penz <[email protected]>2007-03-17 20:42:26 +0000
commit6baba131b2e112c37015412b701bc3ea01a86c04 (patch)
tree65cb86042434d487f229bf1b541557a098a060a1 /src/dolphincontextmenu.h
parent9b9c12ec69913d1837b6dd252457babc02c32249 (diff)
Allow to cut, copy, paste, ... the currently selected item from a sidebar by the DolphinContextMenu (currently only used by the tree view).
svn path=/trunk/KDE/kdebase/apps/; revision=643572
Diffstat (limited to 'src/dolphincontextmenu.h')
-rw-r--r--src/dolphincontextmenu.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/dolphincontextmenu.h b/src/dolphincontextmenu.h
index 09288c602..2a678d9a2 100644
--- a/src/dolphincontextmenu.h
+++ b/src/dolphincontextmenu.h
@@ -25,6 +25,7 @@
#include <kservice.h>
#include <kurl.h>
+#include <QObject>
#include <QString>
#include <QVector>
@@ -45,8 +46,10 @@ class DolphinMainWindow;
* - 'Actions': Contains all actions which can be applied to the
* given item.
*/
-class DolphinContextMenu
+class DolphinContextMenu : public QObject
{
+ Q_OBJECT
+
public:
enum ViewType
{
@@ -74,6 +77,28 @@ public:
/** Opens the context menu modal. */
void open();
+private slots:
+ /** Cuts the item m_fileInfo. */
+ void cut();
+
+ /** Copies the item m_fileInfo. */
+ void copy();
+
+ /** Paste the clipboard to m_fileInfo. */
+ void paste();
+
+ /** Renames the item m_fileInfo. */
+ void rename();
+
+ /** Moves the item m_fileInfo to the trash. */
+ void moveToTrash();
+
+ /** Deletes the item m_fileInfo. */
+ void deleteItem();
+
+ /** Shows the properties of the item m_fileInfo. */
+ void showProperties();
+
private:
void openTrashContextMenu();
void openTrashItemContextMenu();