diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-07-05 02:29:41 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-07-05 02:29:41 +0200 |
commit | 5f41886d76c11fe8befe8d059c75dcb5bc11f78d (patch) | |
tree | 1d5917d7492014c52276528f5aafc6f7e7665872 /application/MultiMC.cpp | |
parent | 7f1320390c55e408a4b0081b2606eab3892a8148 (diff) | |
download | MultiMC-5f41886d76c11fe8befe8d059c75dcb5bc11f78d.tar MultiMC-5f41886d76c11fe8befe8d059c75dcb5bc11f78d.tar.gz MultiMC-5f41886d76c11fe8befe8d059c75dcb5bc11f78d.tar.lz MultiMC-5f41886d76c11fe8befe8d059c75dcb5bc11f78d.tar.xz MultiMC-5f41886d76c11fe8befe8d059c75dcb5bc11f78d.zip |
GH-1053 split settings dialog creation to its own namespace
Diffstat (limited to 'application/MultiMC.cpp')
-rw-r--r-- | application/MultiMC.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index 0319ea75..605e3763 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -1,5 +1,12 @@ #include "MultiMC.h" #include "BuildConfig.h" +#include "pages/BasePageProvider.h" +#include "pages/global/MultiMCPage.h" +#include "pages/global/MinecraftPage.h" +#include "pages/global/JavaPage.h" +#include "pages/global/ProxyPage.h" +#include "pages/global/ExternalToolsPage.h" +#include "pages/global/AccountListPage.h" #include <iostream> #include <QDir> @@ -533,6 +540,18 @@ void MultiMC::initGlobalSettings(bool test_mode) // Jar mod nag dialog in version page m_settings->registerSetting("JarModNagSeen", false); + + + // Init page provider + { + m_globalSettingsProvider = std::make_shared<GenericPageProvider>(tr("Settings")); + m_globalSettingsProvider->addPage<MultiMCPage>(); + m_globalSettingsProvider->addPage<MinecraftPage>(); + m_globalSettingsProvider->addPage<JavaPage>(); + m_globalSettingsProvider->addPage<ProxyPage>(); + m_globalSettingsProvider->addPage<ExternalToolsPage>(); + m_globalSettingsProvider->addPage<AccountListPage>(); + } } std::shared_ptr<LWJGLVersionList> MultiMC::lwjgllist() |