summaryrefslogtreecommitdiffstats
path: root/src/composite-undo-stack-observer.h
diff options
context:
space:
mode:
authorgustav_b <gustav_b@users.sourceforge.net>2007-03-29 23:02:20 +0000
committergustav_b <gustav_b@users.sourceforge.net>2007-03-29 23:02:20 +0000
commitc905425451f756e070a2f0991892d397ba84ed24 (patch)
tree7b662fbe00e02f1cf398a99cfaa8c90c333827c0 /src/composite-undo-stack-observer.h
parentFix native path for iri (diff)
downloadinkscape-c905425451f756e070a2f0991892d397ba84ed24.tar.gz
inkscape-c905425451f756e070a2f0991892d397ba84ed24.zip
Notify UndoStackObservers on commited incomplete transactions and sp_document_{undo,redo}_clear,
see #1684042. (bzr r2780)
Diffstat (limited to 'src/composite-undo-stack-observer.h')
-rw-r--r--src/composite-undo-stack-observer.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/composite-undo-stack-observer.h b/src/composite-undo-stack-observer.h
index 7e45ccae4..e24561ace 100644
--- a/src/composite-undo-stack-observer.h
+++ b/src/composite-undo-stack-observer.h
@@ -85,6 +85,26 @@ public:
this->_observer.notifyUndoCommitEvent(log);
}
+ /**
+ * Issue a clear undo event to the UndoStackObserver
+ * that is associated with this
+ * UndoStackObserverRecord.
+ */
+ void issueClearUndo()
+ {
+ this->_observer.notifyClearUndoEvent();
+ }
+
+ /**
+ * Issue a clear redo event to the UndoStackObserver
+ * that is associated with this
+ * UndoStackObserverRecord.
+ */
+ void issueClearRedo()
+ {
+ this->_observer.notifyClearRedoEvent();
+ }
+
private:
UndoStackObserver& _observer;
};
@@ -134,6 +154,9 @@ public:
*/
void notifyUndoCommitEvent(Event* log);
+ virtual void notifyClearUndoEvent();
+ virtual void notifyClearRedoEvent();
+
private:
// Remove an observer from a given list
bool _remove_one(UndoObserverRecordList& list, UndoStackObserver& rec);