From f31a541925033c2ef5e27b85c099d47791b50121 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Wed, 29 Nov 2006 00:02:19 +0000 Subject: Make it (almost) possible to have more than one Dolphin KMainWindow Create a DolphinApplication, holding DolphinMainWindows and update the code to use the DolphinView to get the MainWindow, or get a ptr to the MainWindow directly. Or if all windows are effected go through the DolphinApplication to update every mainwindow. The UndowManager and ProgressIndicator have a rather strange relationship and will need some more attention but as UndoManager will be killed anyway I have skipped this. More cleanup, debugging and thinking is needed. svn path=/trunk/playground/utils/dolphin/; revision=608945 --- src/sidebarpage.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/sidebarpage.h') diff --git a/src/sidebarpage.h b/src/sidebarpage.h index 50a7b598f..e97b0c9cf 100644 --- a/src/sidebarpage.h +++ b/src/sidebarpage.h @@ -23,6 +23,7 @@ #include +class DolphinMainWindow; class Sidebar; /** @@ -35,7 +36,7 @@ class SidebarPage : public QWidget Q_OBJECT public: - SidebarPage(QWidget* parent); + SidebarPage(DolphinMainWindow* mainwindow, QWidget* parent); virtual ~SidebarPage(); protected slots: @@ -44,6 +45,12 @@ protected slots: * The active view can be retrieved by Dolphin::mainWin().activeView(); */ virtual void activeViewChanged(); + +protected: + DolphinMainWindow* mainWindow() const; + +private: + DolphinMainWindow *m_mainWindow; }; #endif // _SIDEBARPAGE_H_ -- cgit v1.3.1