From 5840fcede7178c80d137f589110d09ee20a99483 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 26 Jan 2007 00:55:49 +0000 Subject: Do a custom error handling in for the 'Create New...' submenu. Thanks to David for adjusting KNewMenu :-) svn path=/trunk/playground/utils/dolphin/; revision=627220 --- src/dolphinmainwindow.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 6052ec5ba..2d11480a9 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -351,10 +351,6 @@ private: void connectViewSignals(int viewIndex); private: - KNewMenu* m_newMenu; - QSplitter* m_splitter; - DolphinView* m_activeView; - /** * DolphinMainWindowsupports only one or two views, which * are handled internally as primary and secondary view. @@ -364,17 +360,14 @@ private: PrimaryIdx = 0, SecondaryIdx = 1 }; - DolphinView* m_view[SecondaryIdx + 1]; - - /// remember pending undo operations until they are finished - QList m_undoOperations; /** * Implements a custom error handling for the undo manager. This * assures that all errors are shown in the status bar of Dolphin * instead as modal error dialog with an OK button. */ - class UndoUiInterface : public KonqUndoManager::UiInterface { + class UndoUiInterface : public KonqUndoManager::UiInterface + { public: UndoUiInterface(DolphinMainWindow* mainWin); virtual ~UndoUiInterface(); @@ -383,6 +376,15 @@ private: private: DolphinMainWindow* m_mainWin; }; + + KNewMenu* m_newMenu; + QSplitter* m_splitter; + DolphinView* m_activeView; + + DolphinView* m_view[SecondaryIdx + 1]; + + /// remember pending undo operations until they are finished + QList m_undoOperations; }; #endif // _DOLPHIN_H_ -- cgit v1.3.1