mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 20:19:57 +00:00
Added some logic to the page switching
This commit is contained in:
parent
8162f8370b
commit
0e1d3237fe
16 changed files with 74 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace Wizard
|
|||
public:
|
||||
ComponentSelectionPage(QWidget *parent = 0);
|
||||
|
||||
int nextId() const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -5,3 +5,8 @@ Wizard::ConclusionPage::ConclusionPage(QWidget *parent) :
|
|||
{
|
||||
setupUi(this);
|
||||
}
|
||||
|
||||
int Wizard::ConclusionPage::nextId() const
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace Wizard
|
|||
public:
|
||||
ConclusionPage(QWidget *parent = 0);
|
||||
|
||||
int nextId() const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace Wizard
|
|||
public:
|
||||
ExistingInstallationPage(QWidget *parent = 0);
|
||||
|
||||
int nextId() const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace Wizard
|
|||
public:
|
||||
ImportPage(QWidget *parent = 0);
|
||||
|
||||
int nextId() const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace Wizard
|
|||
public:
|
||||
InstallationPage(QWidget *parent = 0);
|
||||
|
||||
int nextId() const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace Wizard
|
|||
public:
|
||||
InstallationTargetPage(QWidget *parent = 0);
|
||||
|
||||
int nextId() const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace Wizard
|
|||
public:
|
||||
IntroPage(QWidget *parent = 0);
|
||||
|
||||
int nextId() const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ namespace Wizard
|
|||
public:
|
||||
MethodSelectionPage(QWidget *parent = 0);
|
||||
|
||||
int nextId() const;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue