X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmainundo.h;h=d622adcfb70b7ec096b92be372f5a1fb9811fbfd;hb=6e641b69b14bc8546845dd83c58d20fd0d7626e3;hp=8b5af5adeaa5a40e0cc5c99deec8016119d426a4;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/mainundo.h b/cinelerra-5.1/cinelerra/mainundo.h index 8b5af5ad..d622adcf 100644 --- a/cinelerra-5.1/cinelerra/mainundo.h +++ b/cinelerra-5.1/cinelerra/mainundo.h @@ -37,9 +37,6 @@ public: 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, @@ -56,7 +53,13 @@ public: 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, @@ -69,9 +72,8 @@ private: // 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);