Added some logic to the page switching
parent
8162f8370b
commit
0e1d3237fe
@ -1,7 +1,14 @@
|
||||
#include "componentselectionpage.hpp"
|
||||
|
||||
#include "mainwizard.hpp"
|
||||
|
||||
Wizard::ComponentSelectionPage::ComponentSelectionPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
||||
|
||||
int Wizard::ComponentSelectionPage::nextId() const
|
||||
{
|
||||
return MainWizard::Page_Installation;
|
||||
}
|
||||
|
@ -1,7 +1,14 @@
|
||||
#include "existinginstallationpage.hpp"
|
||||
|
||||
#include "mainwizard.hpp"
|
||||
|
||||
Wizard::ExistingInstallationPage::ExistingInstallationPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
||||
|
||||
int Wizard::ExistingInstallationPage::nextId() const
|
||||
{
|
||||
return MainWizard::Page_ComponentSelection;
|
||||
}
|
||||
|
@ -1,7 +1,14 @@
|
||||
#include "importpage.hpp"
|
||||
|
||||
#include "mainwizard.hpp"
|
||||
|
||||
Wizard::ImportPage::ImportPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
||||
|
||||
int Wizard::ImportPage::nextId() const
|
||||
{
|
||||
return MainWizard::Page_Conclusion;
|
||||
}
|
||||
|
@ -1,7 +1,14 @@
|
||||
#include "installationpage.hpp"
|
||||
|
||||
#include "mainwizard.hpp"
|
||||
|
||||
Wizard::InstallationPage::InstallationPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
||||
|
||||
int Wizard::InstallationPage::nextId() const
|
||||
{
|
||||
return MainWizard::Page_Import;
|
||||
}
|
||||
|
@ -1,7 +1,14 @@
|
||||
#include "installationtargetpage.hpp"
|
||||
|
||||
#include "mainwizard.hpp"
|
||||
|
||||
Wizard::InstallationTargetPage::InstallationTargetPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
||||
|
||||
int Wizard::InstallationTargetPage::nextId() const
|
||||
{
|
||||
return MainWizard::Page_ComponentSelection;
|
||||
}
|
||||
|
@ -1,7 +1,14 @@
|
||||
#include "intropage.hpp"
|
||||
|
||||
#include "mainwizard.hpp"
|
||||
|
||||
Wizard::IntroPage::IntroPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
||||
|
||||
int Wizard::IntroPage::nextId() const
|
||||
{
|
||||
return MainWizard::Page_MethodSelection;
|
||||
}
|
||||
|
@ -1,7 +1,18 @@
|
||||
#include "methodselectionpage.hpp"
|
||||
|
||||
#include "mainwizard.hpp"
|
||||
|
||||
Wizard::MethodSelectionPage::MethodSelectionPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
||||
|
||||
int Wizard::MethodSelectionPage::nextId() const
|
||||
{
|
||||
if (newLocationRadioButton->isChecked()) {
|
||||
return MainWizard::Page_InstallationTarget;
|
||||
} else {
|
||||
return MainWizard::Page_ExistingInstallation;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue