2013-12-08 20:35:57 +00:00
|
|
|
#include "methodselectionpage.hpp"
|
2013-12-13 12:38:49 +00:00
|
|
|
#include <QDebug>
|
2013-12-08 21:58:29 +00:00
|
|
|
#include "mainwizard.hpp"
|
|
|
|
|
2014-04-18 11:17:37 +00:00
|
|
|
Wizard::MethodSelectionPage::MethodSelectionPage(QWidget *parent) :
|
|
|
|
QWizardPage(parent)
|
2013-12-08 20:35:57 +00:00
|
|
|
{
|
2014-04-18 11:17:37 +00:00
|
|
|
mWizard = qobject_cast<MainWizard*>(parent);
|
|
|
|
|
2013-12-08 20:35:57 +00:00
|
|
|
setupUi(this);
|
2013-12-13 12:38:49 +00:00
|
|
|
|
2014-11-22 23:51:57 +00:00
|
|
|
#ifndef OPENMW_USE_UNSHIELD
|
|
|
|
newLocationRadioButton->setEnabled(false);
|
|
|
|
existingLocationRadioButton->setChecked(true);
|
|
|
|
#endif
|
|
|
|
|
2014-02-18 11:44:27 +00:00
|
|
|
registerField(QLatin1String("installation.new"), newLocationRadioButton);
|
2013-12-08 20:35:57 +00:00
|
|
|
}
|
2013-12-08 21:58:29 +00:00
|
|
|
|
|
|
|
int Wizard::MethodSelectionPage::nextId() const
|
|
|
|
{
|
2014-02-18 11:44:27 +00:00
|
|
|
if (field(QLatin1String("installation.new")).toBool() == true) {
|
2014-01-28 12:27:09 +00:00
|
|
|
return MainWizard::Page_InstallationTarget;
|
|
|
|
} else {
|
|
|
|
return MainWizard::Page_ExistingInstallation;
|
|
|
|
}
|
2013-12-08 21:58:29 +00:00
|
|
|
}
|