diff options
Diffstat (limited to 'src/dolphinpart.h')
| -rw-r--r-- | src/dolphinpart.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/dolphinpart.h b/src/dolphinpart.h index bf81b55f4..114c21d31 100644 --- a/src/dolphinpart.h +++ b/src/dolphinpart.h @@ -21,6 +21,7 @@ #define DOLPHINPART_H #include <kparts/part.h> +#include <kparts/browserextension.h> class KFileItemList; class KFileItem; class DolphinPartBrowserExtension; @@ -50,6 +51,8 @@ public: /// see the supportsUndo property bool supportsUndo() const { return true; } + DolphinView* view() { return m_view; } + protected: /** * We reimplement openUrl so no need to implement openFile. @@ -99,6 +102,12 @@ private Q_SLOTS: */ void updateViewActions(); + /** + * Updates the text of the paste action dependent from + * the number of items which are in the clipboard. + */ + void updatePasteAction(); + private: void createActions(); @@ -111,4 +120,20 @@ private: Q_DISABLE_COPY(DolphinPart) }; +class DolphinPartBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT +public: + DolphinPartBrowserExtension( DolphinPart* part ) + : KParts::BrowserExtension( part ), m_part(part) {} + +public Q_SLOTS: + void cut(); + void copy(); + void paste(); + +private: + DolphinPart* m_part; +}; + #endif /* DOLPHINPART_H */ |
