Mercurial > projects > doodle
annotate common/undo.d @ 25:8f58a8f88735
Checkpoint
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Wed, 15 Jul 2009 23:49:02 +0930 |
parents | |
children |
rev | line source |
---|---|
25 | 1 module common.undo; |
2 | |
3 abstract class Action { | |
4 void undo(); | |
5 void redo(); | |
6 } | |
7 | |
8 interface IUndoObserver { | |
9 void canUndo(in bool value, in string description); | |
10 void canRedo(in bool value, in string description); | |
11 } | |
12 | |
13 interface IUndoManager { | |
14 void addAction(Action action); | |
15 } |