summaryrefslogtreecommitdiffstats
path: root/logic/OneSixInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-06-02 00:49:53 +0200
committerPetr Mrázek <peterix@gmail.com>2014-06-09 01:38:31 +0200
commitf485885757e287546bb27bda5906bfa4adc5494a (patch)
tree02766b67b4760e0b36c19bd3a5f0c34ed0693f7e /logic/OneSixInstance.h
parent48d3052ac1bf55dfc0d149d5e2590bcd6545dc67 (diff)
downloadMultiMC-f485885757e287546bb27bda5906bfa4adc5494a.tar
MultiMC-f485885757e287546bb27bda5906bfa4adc5494a.tar.gz
MultiMC-f485885757e287546bb27bda5906bfa4adc5494a.tar.lz
MultiMC-f485885757e287546bb27bda5906bfa4adc5494a.tar.xz
MultiMC-f485885757e287546bb27bda5906bfa4adc5494a.zip
Add and implement pages and page dialog.
Diffstat (limited to 'logic/OneSixInstance.h')
-rw-r--r--logic/OneSixInstance.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/logic/OneSixInstance.h b/logic/OneSixInstance.h
index 98ce1ce8..fae38095 100644
--- a/logic/OneSixInstance.h
+++ b/logic/OneSixInstance.h
@@ -19,8 +19,9 @@
#include "logic/minecraft/InstanceVersion.h"
#include "logic/ModList.h"
+#include "gui/pages/BasePageProvider.h"
-class OneSixInstance : public BaseInstance
+class OneSixInstance : public BaseInstance, public BasePageProvider
{
Q_OBJECT
public:
@@ -29,15 +30,21 @@ public:
virtual ~OneSixInstance(){};
virtual void init() override;
+
+ ////// Edit Instance Dialog stuff //////
+ virtual QList<BasePage *> getPages();
+ virtual QString dialogTitle();
////// Mod Lists //////
std::shared_ptr<ModList> loaderModList();
std::shared_ptr<ModList> coreModList();
std::shared_ptr<ModList> resourcePackList();
+ std::shared_ptr<ModList> texturePackList();
////// Directories and files //////
QString jarModsDir() const;
QString resourcePacksDir() const;
+ QString texturePacksDir() const;
QString loaderModsDir() const;
QString coreModsDir() const;
QString libDir() const;
@@ -56,10 +63,8 @@ public:
virtual bool shouldUpdate() const override;
virtual void setShouldUpdate(bool val) override;
- virtual QDialog *createModEditDialog(QWidget *parent) override;
-
/**
- * reload the full version json files. return true on success!
+ * reload the full version json files.
*
* throws various exceptions :3
*/