diff options
Diffstat (limited to 'src/event-log.h')
| -rw-r--r-- | src/event-log.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event-log.h b/src/event-log.h index 33faa57f6..9fcd01e1c 100644 --- a/src/event-log.h +++ b/src/event-log.h @@ -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); |
