summaryrefslogtreecommitdiffstats
path: root/src/event-log.h
diff options
context:
space:
mode:
authorgustav_b <gustav_b@users.sourceforge.net>2006-07-09 11:32:23 +0000
committergustav_b <gustav_b@users.sourceforge.net>2006-07-09 11:32:23 +0000
commitc631dfb4add034db59cb477843ca95bcc2986758 (patch)
treec616db1f1e294f6630734af1e237322259c09366 /src/event-log.h
parent* packaging/osx-app.sh: Set the svn:executable property. (diff)
downloadinkscape-c631dfb4add034db59cb477843ca95bcc2986758.tar.gz
inkscape-c631dfb4add034db59cb477843ca95bcc2986758.zip
Added descriptions to Undo/Redo commands in the menus
(bzr r1379)
Diffstat (limited to 'src/event-log.h')
-rw-r--r--src/event-log.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/event-log.h b/src/event-log.h
index 148d6329d..16ecfd555 100644
--- a/src/event-log.h
+++ b/src/event-log.h
@@ -85,6 +85,8 @@ public:
void setCurrEventParent(iterator event) { _curr_event_parent = event; }
void blockNotifications(bool status=true) { _notifications_blocked = status; }
+ void setDocument(SPDocument *document);
+
/*
* Callback types for TreeView changes.
*/
@@ -103,9 +105,16 @@ public:
*/
void connectWithDialog(Gtk::TreeView *event_list_view, CallbackMap *callback_connections);
+ /*
+ * Updates the sensitivity and names of SP_VERB_EDIT_UNDO and SP_VERB_EDIT_REDO to reflect the
+ * current state.
+ */
+ void updateUndoVerbs();
+
private:
bool _connected; //< connected with dialog
-
+ SPDocument *_document; //< document that is logged
+
const EventModelColumns _columns;
/**
@@ -125,6 +134,9 @@ private:
// Map of connections used to temporary block/unblock callbacks in a TreeView
CallbackMap *_callback_connections;
+ const_iterator _getUndoEvent() const; //< returns the current undoable event or NULL if none
+ const_iterator _getRedoEvent() const; //< returns the current redoable event or NULL if none
+
// noncopyable, nonassignable
EventLog(EventLog const &other);
EventLog& operator=(EventLog const &other);