ui: statusview

* statusview as tab
This commit is contained in:
Andreas Stallinger
2016-12-07 12:56:56 +01:00
parent 3a269ad7b3
commit 5d5a0922f5
19 changed files with 607 additions and 0 deletions
+10
View File
@@ -9,6 +9,7 @@
#include "component/controller/RefreshController.h"
#include "component/controller/SearchController.h"
#include "component/controller/StatusBarController.h"
#include "component/controller/StatusController.h"
#include "component/controller/UndoRedoController.h"
#include "component/view/CodeView.h"
#include "component/view/ErrorView.h"
@@ -17,6 +18,7 @@
#include "component/view/RefreshView.h"
#include "component/view/SearchView.h"
#include "component/view/StatusBarView.h"
#include "component/view/StatusView.h"
#include "component/view/UndoRedoView.h"
#include "component/view/ViewFactory.h"
@@ -119,6 +121,14 @@ std::shared_ptr<Component> ComponentFactory::createStatusBarComponent(ViewLayout
return std::make_shared<Component>(view, controller);
}
std::shared_ptr<Component> ComponentFactory::createStatusComponent(ViewLayout* viewLayout)
{
std::shared_ptr<StatusView> view = m_viewFactory->createStatusView(viewLayout);
std::shared_ptr<StatusController> controller = std::make_shared<StatusController>();
return std::make_shared<Component>(view, controller);
}
ComponentFactory::ComponentFactory()
{
}