logic: UndoRedo

UndoRedo working for ActiveTokensMessages
This commit is contained in:
Andreas Stallinger
2015-02-03 10:47:56 +01:00
parent 00f15a2ce3
commit 944554d034
27 changed files with 588 additions and 2 deletions
+11
View File
@@ -5,10 +5,12 @@
#include "component/controller/GraphController.h"
#include "component/controller/SearchController.h"
#include "component/controller/StatusBarController.h"
#include "component/controller/UndoRedoController.h"
#include "component/view/CodeView.h"
#include "component/view/GraphView.h"
#include "component/view/SearchView.h"
#include "component/view/StatusBarView.h"
#include "component/view/UndoRedoView.h"
#include "component/view/ViewFactory.h"
#include "component/view/ViewLayout.h"
@@ -54,6 +56,15 @@ std::shared_ptr<Component> ComponentFactory::createSearchComponent()
return component;
}
std::shared_ptr<Component> ComponentFactory::createUndoRedoComponent()
{
std::shared_ptr<UndoRedoView> view = m_viewFactory->createUndoRedoView(m_viewLayout);
std::shared_ptr<UndoRedoController> controller = std::make_shared<UndoRedoController>();
std::shared_ptr<Component> component = std::make_shared<Component>(view, controller);
return component;
}
std::shared_ptr<Component> ComponentFactory::createStatusBarComponent()
{
std::shared_ptr<StatusBarView> view = m_viewFactory->createStatusBarView(m_viewLayout);