From 3e5b1e74e8cf08aa6c9a798133c4b3cae941784b Mon Sep 17 00:00:00 2001 From: brunoherbelin Date: Sat, 3 Oct 2020 14:05:58 +0200 Subject: [PATCH] Adding ActionManager --- ActionManager.cpp | 28 ++++++++++++++++++++++++++++ ActionManager.h | 31 +++++++++++++++++++++++++++++++ CMakeLists.txt | 1 + 3 files changed, 60 insertions(+) create mode 100644 ActionManager.cpp create mode 100644 ActionManager.h diff --git a/ActionManager.cpp b/ActionManager.cpp new file mode 100644 index 0000000..a4e68fb --- /dev/null +++ b/ActionManager.cpp @@ -0,0 +1,28 @@ +#include "ActionManager.h" + +Action::Action() +{ + +} + + +void Action::clear() +{ + +} + +void Action::capture() +{ + +} + +void Action::undo() +{ + +} + +void Action::redo() +{ + +} + diff --git a/ActionManager.h b/ActionManager.h new file mode 100644 index 0000000..9bf557d --- /dev/null +++ b/ActionManager.h @@ -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 diff --git a/CMakeLists.txt b/CMakeLists.txt index edd8193..9d6a294 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -254,6 +254,7 @@ set(VMIX_SRCS GlmToolkit.cpp SystemToolkit.cpp tinyxml2Toolkit.cpp + ActionManager.cpp ) set(VMIX_RSC_FILES