First working implementation of ActionManager, but incomplete.

This commit is contained in:
brunoherbelin
2020-10-04 22:52:23 +02:00
parent 5421b5e926
commit 616c6c8bdf
12 changed files with 353 additions and 79 deletions

View File

@@ -33,11 +33,13 @@ using namespace std;
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb_image_write.h>
#include "UserInterfaceManager.h"
#include "defines.h"
#include "Log.h"
#include "SystemToolkit.h"
#include "UserInterfaceManager.h"
#include "RenderingManager.h"
#include "ActionManager.h"
#include "Resource.h"
#include "FileDialog.h"
#include "Settings.h"
@@ -289,6 +291,12 @@ void UserInterface::handleKeyboard()
else
Mixer::manager().session()->addRecorder(new VideoRecorder);
}
else if (ImGui::IsKeyPressed( GLFW_KEY_Z )) {
if (shift_modifier_active)
Action::manager().redo();
else
Action::manager().undo();
}
}
// No CTRL modifier