X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcomposite-undo-stack-observer.h;h=cd00d421115f8274b2861699d2957e281dfc3b8f;hb=6c595e36654ecec0439ccae1289925017641dc1b;hp=7e45ccae4f01e24087184f040118fd8d85cd9945;hpb=b764b2835fb17424e05ea27a7a9939c65b17b6bf;p=inkscape.git diff --git a/src/composite-undo-stack-observer.h b/src/composite-undo-stack-observer.h index 7e45ccae4..cd00d4211 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; }; @@ -97,7 +117,7 @@ public: */ CompositeUndoStackObserver(); - ~CompositeUndoStackObserver(); + virtual ~CompositeUndoStackObserver(); /** * Add an UndoStackObserver. @@ -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);