Adding ActionManager

This commit is contained in:
brunoherbelin
2020-10-03 14:05:58 +02:00
parent f32b85a656
commit 3e5b1e74e8
3 changed files with 60 additions and 0 deletions

28
ActionManager.cpp Normal file
View File

@@ -0,0 +1,28 @@
#include "ActionManager.h"
Action::Action()
{
}
void Action::clear()
{
}
void Action::capture()
{
}
void Action::undo()
{
}
void Action::redo()
{
}

31
ActionManager.h Normal file
View File

@@ -0,0 +1,31 @@
#ifndef ACTIONMANAGER_H
#define ACTIONMANAGER_H
class Action
{
// Private Constructor
Action();
Action(Action const& copy); // Not Implemented
Action& operator=(Action const& copy); // Not Implemented
public:
static Action& manager()
{
// The only instance
static Action _instance;
return _instance;
}
void clear();
void capture();
void undo();
void redo();
private:
};
#endif // ACTIONMANAGER_H

View File

@@ -254,6 +254,7 @@ set(VMIX_SRCS
GlmToolkit.cpp GlmToolkit.cpp
SystemToolkit.cpp SystemToolkit.cpp
tinyxml2Toolkit.cpp tinyxml2Toolkit.cpp
ActionManager.cpp
) )
set(VMIX_RSC_FILES set(VMIX_RSC_FILES