┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/undomanager.h
diff options
context:
space:
mode:
authorHolger Freyther <[email protected]>2006-11-29 09:30:41 +0000
committerHolger Freyther <[email protected]>2006-11-29 09:30:41 +0000
commit9a4a17dd4d7f3d195ab4393e057e8eb90b0a3422 (patch)
tree1f6b6146a37e8289e8585f9e738cc3cd571812d6 /src/undomanager.h
parent9b9bad8abe16609d400eb25118e86adc5b19e9e4 (diff)
Changes to Undo/Redo in regard to ProgressIndicator
It was not important to know where the operation was executed, it is important where undo/redo was clicked and this solely indicates where the progress should be shown. Now undo/redo get the MainWindow and can pass that to ProgressIndicator. I'm about to revive m_progressIndicator again svn path=/trunk/playground/utils/dolphin/; revision=609020
Diffstat (limited to 'src/undomanager.h')
-rw-r--r--src/undomanager.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/undomanager.h b/src/undomanager.h
index 9e2094fe3..c3cfda56e 100644
--- a/src/undomanager.h
+++ b/src/undomanager.h
@@ -55,7 +55,7 @@ public:
};
DolphinCommand();
- DolphinCommand(Type type, const KUrl::List& source, const KUrl& dest, DolphinMainWindow* mainWindow);
+ DolphinCommand(Type type, const KUrl::List& source, const KUrl& dest);
~DolphinCommand(); // non-virtual
DolphinCommand& operator = (const DolphinCommand& command);
@@ -63,14 +63,12 @@ public:
void setSource(const KUrl::List source) { m_source = source; }
const KUrl::List& source() const { return m_source; }
const KUrl& destination() const { return m_dest; }
- DolphinMainWindow* mainWindow() const { return m_mainWindow; }
private:
Type m_type;
int m_macroIndex;
KUrl::List m_source;
KUrl m_dest;
- QPointer<DolphinMainWindow> m_mainWindow;
friend class UndoManager; // allow to modify m_macroIndex
};
@@ -121,14 +119,18 @@ public slots:
/**
* Performs an undo operation on the last command which has
* been added by UndoManager::addCommand().
+ *
+ * @param mainwindow The mainwindow where to show progress
*/
- void undo();
+ void undo(DolphinMainWindow* mainwindow);
/**
* Performs a redo operation on the last command where an undo
* operation has been applied.
+ *
+ * @param mainwindow The mainwindow where to show progress
*/
- void redo();
+ void redo(DolphinMainWindow* mainwindow);
signals:
/**