┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.h
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2008-06-05 19:19:14 +0000
committerDavid Faure <[email protected]>2008-06-05 19:19:14 +0000
commit008f524498475dd28717b1f3d65e2c99bbdb5b2a (patch)
treeb4a5449051ec42f0b03deae6aa4d61958d691b9e /src/dolphinpart.h
parentee5a78d967e19a995e40268021658cb1c7cc0440 (diff)
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
Diffstat (limited to 'src/dolphinpart.h')
-rw-r--r--src/dolphinpart.h7
1 files changed, 7 insertions, 0 deletions
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 <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)
};