]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinpart.h
Factorize all the view-related action handling to DolphinViewActionHandler, to remove...
[dolphin.git] / src / dolphinpart.h
index 5075702dba7fbee703bca56abcf98bf56348e151..795a7b1947d1be4f32bdfa6d2147206b32a746ff 100644 (file)
@@ -22,6 +22,9 @@
 
 #include <kparts/part.h>
 #include <kparts/browserextension.h>
+class DolphinViewActionHandler;
+class QActionGroup;
+class KAction;
 class KFileItemList;
 class KFileItem;
 class DolphinPartBrowserExtension;
@@ -109,15 +112,29 @@ private Q_SLOTS:
     void updatePasteAction();
 
     /**
-     * Connected to the "move_to_trash" action; adds "shift means del" handling.
+     * Connected to all "Go" menu actions provided by DolphinPart
      */
-    void slotTrashActivated(Qt::MouseButtons, Qt::KeyboardModifiers);
+    void slotGoTriggered(QAction* action);
+
+    /**
+     * Connected to the "editMimeType" action
+     */
+    void slotEditMimeType();
+
+    /**
+     * Connected to the "properties" action
+     */
+    void slotProperties();
 
 private:
     void createActions();
+    void createGoAction(const char* name, const char* iconName,
+                        const QString& text, const QString& url,
+                        QActionGroup* actionGroup);
 
 private:
     DolphinView* m_view;
+    DolphinViewActionHandler* m_actionHandler;
     KDirLister* m_dirLister;
     DolphinModel* m_dolphinModel;
     DolphinSortFilterProxyModel* m_proxyModel;