X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fundo-stack-observer.h;h=5bf405f7f290f210d3695c2e1d0d155b2ac80ea4;hb=9e8fe96d9bacc116eee7e4496cacbeab3ad22ab1;hp=cd17c467575ca2415c89d0fb8d5db2b78658c3fc;hpb=4ec52515516e3a6bf2fbc3ed01a7e179bde16d20;p=inkscape.git diff --git a/src/undo-stack-observer.h b/src/undo-stack-observer.h index cd17c4675..5bf405f7f 100644 --- a/src/undo-stack-observer.h +++ b/src/undo-stack-observer.h @@ -14,6 +14,8 @@ #ifndef __UNDO_COMMIT_OBSERVER_H__ #define __UNDO_COMMIT_OBSERVER_H__ +#include "gc-managed.h" + namespace Inkscape { class Event; @@ -32,7 +34,7 @@ class Event; * UndoStackObservers should not be used on their own. Instead, they should be registered * with a CompositeUndoStackObserver. */ -class UndoStackObserver { +class UndoStackObserver : public GC::Managed<> { public: UndoStackObserver() { } virtual ~UndoStackObserver() { } @@ -57,6 +59,17 @@ public: * \param log Pointer to an Event describing the committed events. */ virtual void notifyUndoCommitEvent(Event* log) = 0; + + /** + * Triggered when the undo log is cleared. + */ + virtual void notifyClearUndoEvent() = 0; + + /** + * Triggered when the redo log is cleared. + */ + virtual void notifyClearRedoEvent() = 0; + }; }