6 // Minimum number of undoable operations on the undo stack
7 #define UNDOMINLEVELS 5
8 // Limits the bytes of memory used by the undo stack
9 #define UNDOMEMORY 50000000
14 class UndoStack
: public List
<UndoStackItem
>
20 // delete future undos if in the middle
21 // delete undos older than UNDOLEVELS if last
22 void push(UndoStackItem
*item
);
24 // move to the previous undo entry
28 // move to the next undo entry for a redo
29 UndoStackItem
* pull_next();
31 UndoStackItem
* current
;