]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinpart.h
Move the "Create New" action (for the Edit menu, not for the context menu) to dolphin...
[dolphin.git] / src / dolphinpart.h
index ac32c5f43581ddb4b4e80fea76ecf739910cce70..6778bb064da6d8ea1b97ab590220e2f6a45f6278 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <kparts/part.h>
 #include <kparts/browserextension.h>
+class KNewMenu;
 class DolphinViewActionHandler;
 class QActionGroup;
 class KAction;
@@ -177,6 +178,11 @@ private Q_SLOTS:
      */
     void slotOpenTerminal();
 
+    /**
+     * Updates the 'Create New...' sub menu, just before it's shown.
+     */
+    void updateNewMenu();
+
 private:
     void createActions();
     void createGoAction(const char* name, const char* iconName,
@@ -190,6 +196,7 @@ private:
     DolphinModel* m_dolphinModel;
     DolphinSortFilterProxyModel* m_proxyModel;
     DolphinPartBrowserExtension* m_extension;
+    KNewMenu* m_newMenu;
     QString m_nameFilter;
     Q_DISABLE_COPY(DolphinPart)
 };