MainUndo(MWindow *mwindow);
~MainUndo();
-
-
-
// For tweeking operations:
// If a pair of update_undo_before and update_undo_after are called
// within a certain time limit and the creator is nonzero and equal,
int undo();
int redo();
+// load_flags for the next undo/redo stack item
+ int undo_load_flags();
+ int redo_load_flags();
void dump(FILE *fp=stdout);
+
+ void save(FILE *fp);
+ void load(FILE *fp);
private:
// Entry point for all update commands
void update_undo_entry(const char *description,
// compression more efficient.
// So even numbers are before and odd numbers are after
UndoStack *undo_stack;
-
-
-
+ UndoStackItem *next_undo();
+ UndoStackItem *next_redo();
// loads undo from the stringfile to the project
int load_undo_before(FileXML *file, uint32_t load_flags);