From 1626fa013c86dc9f30254f57b3518211f6d0c65a Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 22 Apr 2013 17:15:18 -0500 Subject: Implement instance creation. --- gui/newinstancedialog.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gui/newinstancedialog.cpp') diff --git a/gui/newinstancedialog.cpp b/gui/newinstancedialog.cpp index f4d57367..3cbfabb0 100644 --- a/gui/newinstancedialog.cpp +++ b/gui/newinstancedialog.cpp @@ -74,6 +74,8 @@ void NewInstanceDialog::updateSelectedType() { if (!m_selectedType->versionList()->isLoaded()) loadVersionList(); + + setSelectedVersion(m_selectedType->versionList()->getLatestStable()); } } @@ -112,6 +114,27 @@ void NewInstanceDialog::loadVersionList() setSelectedVersion(m_selectedType->versionList()->getLatestStable()); } +QString NewInstanceDialog::instName() const +{ + return ui->instNameTextBox->text(); +} + +QString NewInstanceDialog::iconKey() const +{ + // TODO: Implement icon stuff. + return "default"; +} + +const InstanceTypeInterface *NewInstanceDialog::selectedType() const +{ + return m_selectedType; +} + +const InstVersion *NewInstanceDialog::selectedVersion() const +{ + return m_selectedVersion; +} + void NewInstanceDialog::on_btnChangeVersion_clicked() { if (m_selectedType) -- cgit v1.2.3