mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 10:19:59 +01:00
Adding ActionManager
This commit is contained in:
28
ActionManager.cpp
Normal file
28
ActionManager.cpp
Normal 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
31
ActionManager.h
Normal 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
|
||||
@@ -254,6 +254,7 @@ set(VMIX_SRCS
|
||||
GlmToolkit.cpp
|
||||
SystemToolkit.cpp
|
||||
tinyxml2Toolkit.cpp
|
||||
ActionManager.cpp
|
||||
)
|
||||
|
||||
set(VMIX_RSC_FILES
|
||||
|
||||
Reference in New Issue
Block a user