Merge pull request #4787 from chennes/addThemeSupport
[GUI] Add Preference Pack support
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#endif
|
||||
|
||||
#include <boost/interprocess/sync/file_lock.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <QtOpenGL.h>
|
||||
#if defined(HAVE_QT5_OPENGL)
|
||||
#include <QWindow>
|
||||
@@ -73,6 +74,7 @@
|
||||
#include "WidgetFactory.h"
|
||||
#include "Command.h"
|
||||
#include "Macro.h"
|
||||
#include "PreferencePackManager.h"
|
||||
#include "ProgressBar.h"
|
||||
#include "Workbench.h"
|
||||
#include "WorkbenchManager.h"
|
||||
@@ -160,6 +162,9 @@ struct ApplicationP
|
||||
macroMngr = new MacroManager();
|
||||
else
|
||||
macroMngr = nullptr;
|
||||
|
||||
// Create the Theme Manager
|
||||
prefPackManager = new PreferencePackManager();
|
||||
}
|
||||
|
||||
~ApplicationP()
|
||||
@@ -173,6 +178,7 @@ struct ApplicationP
|
||||
Gui::Document* activeDocument;
|
||||
Gui::Document* editDocument;
|
||||
MacroManager* macroMngr;
|
||||
PreferencePackManager* prefPackManager;
|
||||
/// List of all registered views
|
||||
std::list<Gui::BaseView*> passive;
|
||||
bool isClosing;
|
||||
@@ -1661,6 +1667,12 @@ CommandManager &Application::commandManager(void)
|
||||
return d->commandManager;
|
||||
}
|
||||
|
||||
Gui::PreferencePackManager* Application::prefPackManager(void)
|
||||
{
|
||||
return d->prefPackManager;
|
||||
}
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// Init, Destruct and singleton
|
||||
|
||||
|
||||
Reference in New Issue
Block a user