From 008f524498475dd28717b1f3d65e2c99bbdb5b2a Mon Sep 17 00:00:00 2001 From: David Faure Date: Thu, 5 Jun 2008 19:19:14 +0000 Subject: Move the "Create New" action (for the Edit menu, not for the context menu) to dolphinpart, so that it doesn't appear while browsing the web [with a filemanagement profile initially]. The point is to make the GUI sensible whatever initial profile was selected and hopefully get rid of konq-filemanagement.rc/konq-webbrowsing.rc. svn path=/trunk/KDE/kdebase/apps/; revision=817326 --- src/dolphinpart.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dolphinpart.h') diff --git a/src/dolphinpart.h b/src/dolphinpart.h index ac32c5f43..6778bb064 100644 --- a/src/dolphinpart.h +++ b/src/dolphinpart.h @@ -22,6 +22,7 @@ #include #include +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) }; -- cgit v1.3