X-Git-Url: https://git.sesse.net/?p=nageru;a=blobdiff_plain;f=futatabi%2Fmainwindow.h;h=36126744eba8b370e91cb70557a2448052c70bba;hp=e21b3f38c181ef994f5120cffe4fd12b83a75812;hb=56255d64099f0fbaa5271bcb246bc9510fd0e5d8;hpb=9725acd82ef5fd6ee02761fc4f50ba57d10c18dc diff --git a/futatabi/mainwindow.h b/futatabi/mainwindow.h index e21b3f3..3612674 100644 --- a/futatabi/mainwindow.h +++ b/futatabi/mainwindow.h @@ -5,6 +5,7 @@ #include "db.h" #include "state.pb.h" +#include #include #include #include @@ -62,6 +63,9 @@ private: std::string deferred_change_id; StateProto deferred_state; + // NOTE: The undo stack always has the current state on top. + std::deque undo_stack, redo_stack; + // Before a change that should be deferred (see above), currently_deferring_model_changes // must be set to true, and current_change_id must be given contents describing what's // changed to avoid accidental grouping. @@ -106,6 +110,8 @@ private: void export_playlist_clip_interpolated_triggered(); void manual_triggered(); void about_triggered(); + void undo_triggered(); + void redo_triggered(); void highlight_camera_input(int stream_idx);