mirror of https://github.com/OpenMW/openmw.git
Implemented the language selection page
parent
d7f9604140
commit
c82f0ec35f
@ -0,0 +1,18 @@
|
||||
#include "languageselectionpage.hpp"
|
||||
|
||||
#include "mainwizard.hpp"
|
||||
|
||||
Wizard::LanguageSelectionPage::LanguageSelectionPage(MainWizard *wizard) :
|
||||
QWizardPage(wizard),
|
||||
mWizard(wizard)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
||||
|
||||
int Wizard::LanguageSelectionPage::nextId() const
|
||||
{
|
||||
if (field("installation.new").toBool() == true)
|
||||
return MainWizard::Page_InstallationTarget;
|
||||
|
||||
return MainWizard::Page_ExistingInstallation;
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
#ifndef LANGUAGESELECTIONPAGE_HPP
|
||||
#define LANGUAGESELECTIONPAGE_HPP
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
#include "ui_languageselectionpage.h"
|
||||
|
||||
namespace Wizard
|
||||
{
|
||||
class MainWizard;
|
||||
|
||||
class LanguageSelectionPage : public QWizardPage, private Ui::LanguageSelectionPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
LanguageSelectionPage(MainWizard *wizard);
|
||||
|
||||
int nextId() const;
|
||||
|
||||
private:
|
||||
MainWizard *mWizard;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // LANGUAGESELECTIONPAGE_HPP
|
Loading…
Reference in New Issue