i'll finish this in a bit

This commit is contained in:
tildearrow 2021-12-24 18:27:55 -05:00
parent 8428f7da32
commit 8d587f72f2
1 changed files with 11 additions and 1 deletions

View File

@ -3,6 +3,7 @@
#include "imgui_impl_sdl.h" #include "imgui_impl_sdl.h"
#include "imgui_impl_sdlrenderer.h" #include "imgui_impl_sdlrenderer.h"
#include <SDL.h> #include <SDL.h>
#include <deque>
#include <map> #include <map>
enum FurnaceGUIColors { enum FurnaceGUIColors {
@ -77,7 +78,13 @@ struct SelectionPoint {
}; };
enum ActionType { 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 { struct UndoData {
@ -155,6 +162,9 @@ class FurnaceGUI {
ImVec2 patWindowPos, patWindowSize; ImVec2 patWindowPos, patWindowSize;
std::deque<UndoStep> undoHist;
std::deque<UndoStep> redoHist;
void updateWindowTitle(); void updateWindowTitle();
void prepareLayout(); void prepareLayout();