diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-06-08 18:02:20 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-09 01:38:31 +0200 |
commit | 84ae67fff5bfa9de011daf4144802569687f1e6b (patch) | |
tree | 47d7ec4b8484b6aa505e8200ba35b3ead60980ab /logic/LegacyInstance.cpp | |
parent | 694067c603ec14eba16e452e77bc7ce442fa36dd (diff) | |
download | MultiMC-84ae67fff5bfa9de011daf4144802569687f1e6b.tar MultiMC-84ae67fff5bfa9de011daf4144802569687f1e6b.tar.gz MultiMC-84ae67fff5bfa9de011daf4144802569687f1e6b.tar.lz MultiMC-84ae67fff5bfa9de011daf4144802569687f1e6b.tar.xz MultiMC-84ae67fff5bfa9de011daf4144802569687f1e6b.zip |
Page dialog for legacy instances.
Diffstat (limited to 'logic/LegacyInstance.cpp')
-rw-r--r-- | logic/LegacyInstance.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/logic/LegacyInstance.cpp b/logic/LegacyInstance.cpp index 5bc8bc34..8603022a 100644 --- a/logic/LegacyInstance.cpp +++ b/logic/LegacyInstance.cpp @@ -28,7 +28,9 @@ #include "logic/MinecraftProcess.h" #include "logic/LegacyUpdate.h" #include "logic/icons/IconList.h" -#include <gui/dialogs/LegacyModEditDialog.h> +#include "gui/pages/LegacyUpgradePage.h" +#include "gui/pages/ModFolderPage.h" +#include "gui/pages/LegacyJarModPage.h" LegacyInstance::LegacyInstance(const QString &rootDir, SettingsObject *settings, QObject *parent) @@ -41,6 +43,22 @@ LegacyInstance::LegacyInstance(const QString &rootDir, SettingsObject *settings, settings->registerSetting("IntendedJarVersion", ""); } +QList<BasePage *> LegacyInstance::getPages() +{ + QList<BasePage *> values; + values.append(new LegacyUpgradePage(this)); + values.append(new LegacyJarModPage(this)); + values.append(new ModFolderPage(loaderModList(), "mods", "centralmods", tr("Loader Mods"))); + values.append(new ModFolderPage(coreModList(), "coremods", "viewfolder", tr("Core Mods"))); + values.append(new ModFolderPage(texturePackList(), "texturepacks", "viewfolder", tr("Texture Packs"))); + return values; +} + +QString LegacyInstance::dialogTitle() +{ + return tr("Edit Instance (%1)").arg(name()); +} + std::shared_ptr<Task> LegacyInstance::doUpdate() { // make sure the jar mods list is initialized by asking for it. |