X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fevent-log.h;h=9fcd01e1c7a2b9c45e4d688a3dcd99e9bd237e70;hb=ae22ad7adc4a7a418e71f5dbab8c1f0f7f464562;hp=a618f0467e0a1b7e84fce9dba1c08231b0649075;hpb=1b27a5820b3d93141c1dcc7d5eaea73e9c33ddee;p=inkscape.git diff --git a/src/event-log.h b/src/event-log.h index a618f0467..9fcd01e1c 100644 --- a/src/event-log.h +++ b/src/event-log.h @@ -45,7 +45,7 @@ public: typedef Gtk::TreeModel::const_iterator const_iterator; EventLog(SPDocument* document); - ~EventLog(); + virtual ~EventLog(); /** * Event datatype @@ -87,6 +87,7 @@ public: void setCurrEvent(iterator event) { _curr_event = event; } void setCurrEventParent(iterator event) { _curr_event_parent = event; } void blockNotifications(bool status=true) { _notifications_blocked = status; } + void rememberFileSave() { _last_saved = _curr_event; } /* * Callback types for TreeView changes. @@ -126,6 +127,8 @@ private: iterator _last_event; //< end position in _event_list_store iterator _curr_event_parent; //< parent to current event, if any + iterator _last_saved; //< position where last document save occurred + bool _notifications_blocked; //< if notifications should be handled // Map of connections used to temporary block/unblock callbacks in a TreeView @@ -141,6 +144,8 @@ private: void _clearUndo(); //< erase all previously commited events void _clearRedo(); //< erase all previously undone events + void checkForVirginity(); //< marks the document as untouched if undo/redo reaches a previously saved state + // noncopyable, nonassignable EventLog(EventLog const &other); EventLog& operator=(EventLog const &other);