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/progressindicator.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/progressindicator.h') diff --git a/src/progressindicator.h b/src/progressindicator.h index cc5c64ad4..637ca10ec 100644 --- a/src/progressindicator.h +++ b/src/progressindicator.h @@ -22,6 +22,8 @@ #include +class DolphinMainWindow; + /** * Allows to show a progress of synchronous operations. Sample code: * \code @@ -46,12 +48,14 @@ class ProgressIndicator { public: /** + * @param mainWindow The mainwindow this statusbar should operate on * @param progressText Text for the progress bar (e. g. "Loading..."). * @param finishedText Text which is displayed after the operations have been finished * (e. g. "Loading finished."). * @param operationsCount Number of operations. */ - ProgressIndicator(const QString& progressText, + ProgressIndicator(DolphinMainWindow *mainWindow, + const QString& progressText, const QString& finishedText, int operationsCount); @@ -68,6 +72,7 @@ public: void execOperation(); private: + DolphinMainWindow *m_mainWindow; bool m_showProgress; int m_operationsCount; int m_operationsIndex; -- cgit v1.3