diff options
Diffstat (limited to 'src/dolphincontextmenu.h')
| -rw-r--r-- | src/dolphincontextmenu.h | 27 |
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(); |
