From 8d587f72f24026f25ad3b7155f16e19d8fc498ae Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 24 Dec 2021 18:27:55 -0500 Subject: [PATCH] i'll finish this in a bit --- src/gui/gui.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gui/gui.h b/src/gui/gui.h index ad94a352..12ef1d9b 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -3,6 +3,7 @@ #include "imgui_impl_sdl.h" #include "imgui_impl_sdlrenderer.h" #include +#include #include enum FurnaceGUIColors { @@ -77,7 +78,13 @@ struct SelectionPoint { }; enum ActionType { - GUI_ACTION_PATTERN + GUI_ACTION_CHANGE_SYSTEM, + GUI_ACTION_PATTERN_EDIT, + GUI_ACTION_PATTERN_DELETE, + GUI_ACTION_PATTERN_PULL, + GUI_ACTION_PATTERN_PUSH, + GUI_ACTION_PATTERN_CUT, + GUI_ACTION_PATTERN_PASTE }; struct UndoData { @@ -155,6 +162,9 @@ class FurnaceGUI { ImVec2 patWindowPos, patWindowSize; + std::deque undoHist; + std::deque redoHist; + void updateWindowTitle(); void prepareLayout();