ui: Refactored QtCodeSnippet and added view settings to ApplicationSettings

This change refactors parts of the QtCodeSnippet and places some settings into ApplicationSettings.
Additionally Application- and ProjectSettings were abstracted to the common base class Settings, which takes care of the
getting and setting values of the Configmanager member.
This commit is contained in:
Eberhard Graether
2014-07-03 16:10:55 +02:00
parent 4ae6f4a04a
commit 042a508422
15 changed files with 254 additions and 125 deletions
+3
View File
@@ -1,5 +1,6 @@
#include "Application.h"
#include "ApplicationSettings.h"
#include "component/view/MainView.h"
#include "data/Storage.h"
#include "gui/GuiFactory.h"
@@ -12,6 +13,8 @@ std::shared_ptr<Application> Application::create(GuiFactory* guiFactory)
std::shared_ptr<ConsoleLogger> consoleLogger = std::make_shared<ConsoleLogger>(); // TODO: move to main
LogManager::getInstance()->addLogger(consoleLogger);
ApplicationSettings::getInstance()->load("data/ApplicationSettings.xml");
std::shared_ptr<Application> ptr(new Application());
ptr->m_storage = std::make_shared<Storage>();