r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / mainundo.h
blob3e322dae253dd8aeffc31c3f66085b4b5fa78fa7
1 #ifndef MAINUNDO_H
2 #define MAINUNDO_H
5 #include "filexml.inc"
6 #include "mwindow.inc"
7 #include "undostack.h"
9 #include <stdint.h>
11 class MainUndo
13 public:
14 MainUndo(MWindow *mwindow);
15 ~MainUndo();
17 void update_undo_before(char *description, uint32_t load_flags);
18 void update_undo_after();
21 int undo();
22 int redo();
24 private:
25 int load_from_undo(FileXML *file, uint32_t load_flags); // loads undo from the stringfile to the project
27 UndoStack undo_stack;
28 UndoStackItem* current_entry; // for setting the after buffer
29 MWindow *mwindow;
30 int undo_before_updated;
33 #endif