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