diff doodle/core/undo.d @ 49:576b9fba4677

Not much
author "David Bryant <bagnose@gmail.com>"
date Thu, 05 Aug 2010 22:49:41 +0930
parents 14f1c051c35b
children 08ffc44fc21a
line wrap: on
line diff
--- a/doodle/core/undo.d	Tue Aug 03 17:37:21 2010 +0930
+++ b/doodle/core/undo.d	Thu Aug 05 22:49:41 2010 +0930
@@ -34,6 +34,11 @@
         d_time _timeStamp;
     }
 
+    this(in string description) {
+        _description = description;
+        _timeStamp = getUTCtime;
+    }
+
     this(in string description, d_time timeStamp) {
         assert(description);
         _description = description;
@@ -57,7 +62,7 @@
 
     void undo();
     void redo();
-    protected bool mergeImpl(Edit other) { return false; }
+    protected bool mergeImpl(Edit subsequent) { return false; }
 }
 
 interface IUndoManagerObserver {
@@ -66,6 +71,7 @@
                         in bool canRedo, in string redoDescription);
 }
 
+// XXX This interface doesn't appear to add any value
 interface IUndoManager {
     void addEdit(Edit edit);
     void undo();