X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/da8dc77c53c5cd604645768a1dacc6497cd58838..d6488887ecf69d7f192b94de8dce34fae0b7eb76:/src/dolphinpart.h diff --git a/src/dolphinpart.h b/src/dolphinpart.h index bf81b55f4..2a512eddb 100644 --- a/src/dolphinpart.h +++ b/src/dolphinpart.h @@ -21,6 +21,8 @@ #define DOLPHINPART_H #include +#include +class KAction; class KFileItemList; class KFileItem; class DolphinPartBrowserExtension; @@ -50,6 +52,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 +103,19 @@ 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(); + + /** + * Connected to the "move_to_trash" action; adds "shift means del" handling. + */ + void slotTrashActivated(Qt::MouseButtons, Qt::KeyboardModifiers); + + void slotNewDir(); + private: void createActions(); @@ -111,4 +128,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 */