diff options
author | Andrew <forkk@forkk.net> | 2013-04-22 15:39:41 -0500 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-04-22 15:39:41 -0500 |
commit | ff3078b3a652316eef760386f665d152cbeb8db9 (patch) | |
tree | 5bd745873409d6bea927762cef314ccb78fde4e2 /gui/newinstancedialog.h | |
parent | 7ec32d5657d433a2636f6738e162f4da6f11cde7 (diff) | |
download | MultiMC-ff3078b3a652316eef760386f665d152cbeb8db9.tar MultiMC-ff3078b3a652316eef760386f665d152cbeb8db9.tar.gz MultiMC-ff3078b3a652316eef760386f665d152cbeb8db9.tar.lz MultiMC-ff3078b3a652316eef760386f665d152cbeb8db9.tar.xz MultiMC-ff3078b3a652316eef760386f665d152cbeb8db9.zip |
Make the new instance dialog support instance types.
Diffstat (limited to 'gui/newinstancedialog.h')
-rw-r--r-- | gui/newinstancedialog.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gui/newinstancedialog.h b/gui/newinstancedialog.h index 263136f1..da689c41 100644 --- a/gui/newinstancedialog.h +++ b/gui/newinstancedialog.h @@ -18,6 +18,9 @@ #include <QDialog> +class InstanceTypeInterface; +class InstVersion; + namespace Ui { class NewInstanceDialog; } @@ -30,8 +33,24 @@ public: explicit NewInstanceDialog(QWidget *parent = 0); ~NewInstanceDialog(); + void loadTypeList(); + void updateSelectedType(); + void updateDialogState(); + + void setSelectedVersion(const InstVersion *version); + + void loadVersionList(); + +private slots: + void on_btnChangeVersion_clicked(); + + void on_instTypeComboBox_activated(int index); + private: Ui::NewInstanceDialog *ui; + + const InstVersion *m_selectedVersion; + const InstanceTypeInterface *m_selectedType; }; #endif // NEWINSTANCEDIALOG_H |