r602: Fix baver's code... don't insert timecode when show_tc is not set
[cinelerra_cv/mob.git] / cinelerra / undostack.h
blob1d344d3f6ffef2e86c9ac8e54af6bf86299fa2a5
1 #ifndef UNDOSTACK_H
2 #define UNDOSTACK_H
4 #include "linklist.h"
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
11 class UndoStackItem;
14 class UndoStack : public List<UndoStackItem>
16 public:
17 UndoStack();
18 ~UndoStack();
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
25 int pull();
28 // move to the next undo entry for a redo
29 UndoStackItem* pull_next();
31 UndoStackItem* current;
33 void prune();
36 #endif