]> 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 98e0f2f672704010bcec0aeb3863d819f2b735c6..795a7b1947d1be4f32bdfa6d2147206b32a746ff 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <kparts/part.h>
 #include <kparts/browserextension.h>
+class DolphinViewActionHandler;
 class QActionGroup;
 class KAction;
 class KFileItemList;
@@ -111,19 +112,19 @@ 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 key shortcut for "new directory" (F10)
+     * Connected to the "editMimeType" action
      */
-    void slotNewDir();
+    void slotEditMimeType();
 
     /**
-     * Connected to all "Go" menu actions provided by DolphinPart
+     * Connected to the "properties" action
      */
-    void slotGoTriggered(QAction* action);
+    void slotProperties();
 
 private:
     void createActions();
@@ -133,6 +134,7 @@ private:
 
 private:
     DolphinView* m_view;
+    DolphinViewActionHandler* m_actionHandler;
     KDirLister* m_dirLister;
     DolphinModel* m_dolphinModel;
     DolphinSortFilterProxyModel* m_proxyModel;