mirror of https://github.com/OpenMW/openmw.git
Added all the pages to the wizard
parent
f458f0c6c1
commit
8162f8370b
@ -0,0 +1,7 @@
|
||||
#include "componentselectionpage.hpp"
|
||||
|
||||
Wizard::ComponentSelectionPage::ComponentSelectionPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef COMPONENTSELECTIONPAGE_HPP
|
||||
#define COMPONENTSELECTIONPAGE_HPP
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
#include "ui_componentselectionpage.h"
|
||||
|
||||
namespace Wizard
|
||||
{
|
||||
|
||||
class ComponentSelectionPage : public QWizardPage, private Ui::ComponentSelectionPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ComponentSelectionPage(QWidget *parent = 0);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // COMPONENTSELECTIONPAGE_HPP
|
@ -0,0 +1,7 @@
|
||||
#include "conclusionpage.hpp"
|
||||
|
||||
Wizard::ConclusionPage::ConclusionPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef CONCLUSIONPAGE_HPP
|
||||
#define CONCLUSIONPAGE_HPP
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
#include "ui_conclusionpage.h"
|
||||
|
||||
namespace Wizard
|
||||
{
|
||||
|
||||
class ConclusionPage : public QWizardPage, private Ui::ConclusionPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ConclusionPage(QWidget *parent = 0);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // CONCLUSIONPAGE_HPP
|
@ -0,0 +1,7 @@
|
||||
#include "existinginstallationpage.hpp"
|
||||
|
||||
Wizard::ExistingInstallationPage::ExistingInstallationPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef EXISTINGINSTALLATIONPAGE_HPP
|
||||
#define EXISTINGINSTALLATIONPAGE_HPP
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
#include "ui_existinginstallationpage.h"
|
||||
|
||||
namespace Wizard
|
||||
{
|
||||
|
||||
class ExistingInstallationPage : public QWizardPage, private Ui::ExistingInstallationPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ExistingInstallationPage(QWidget *parent = 0);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // EXISTINGINSTALLATIONPAGE_HPP
|
@ -0,0 +1,7 @@
|
||||
#include "importpage.hpp"
|
||||
|
||||
Wizard::ImportPage::ImportPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef IMPORTPAGE_HPP
|
||||
#define IMPORTPAGE_HPP
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
#include "ui_importpage.h"
|
||||
|
||||
namespace Wizard
|
||||
{
|
||||
|
||||
class ImportPage : public QWizardPage, private Ui::ImportPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ImportPage(QWidget *parent = 0);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // IMPORTPAGE_HPP
|
@ -0,0 +1,7 @@
|
||||
#include "installationpage.hpp"
|
||||
|
||||
Wizard::InstallationPage::InstallationPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef INSTALLATIONPAGE_HPP
|
||||
#define INSTALLATIONPAGE_HPP
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
#include "ui_installationpage.h"
|
||||
|
||||
namespace Wizard
|
||||
{
|
||||
|
||||
class InstallationPage : public QWizardPage, private Ui::InstallationPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
InstallationPage(QWidget *parent = 0);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // INSTALLATIONPAGE_HPP
|
@ -0,0 +1,7 @@
|
||||
#include "installationtargetpage.hpp"
|
||||
|
||||
Wizard::InstallationTargetPage::InstallationTargetPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef INSTALLATIONTARGETPAGE_HPP
|
||||
#define INSTALLATIONTARGETPAGE_HPP
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
#include "ui_installationtargetpage.h"
|
||||
|
||||
namespace Wizard
|
||||
{
|
||||
|
||||
class InstallationTargetPage : public QWizardPage, private Ui::InstallationTargetPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
InstallationTargetPage(QWidget *parent = 0);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // INSTALLATIONTARGETPAGE_HPP
|
@ -0,0 +1,7 @@
|
||||
#include "intropage.hpp"
|
||||
|
||||
Wizard::IntroPage::IntroPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef INTROPAGE_HPP
|
||||
#define INTROPAGE_HPP
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
#include "ui_intropage.h"
|
||||
|
||||
namespace Wizard
|
||||
{
|
||||
|
||||
class IntroPage : public QWizardPage, private Ui::IntroPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
IntroPage(QWidget *parent = 0);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // INTROPAGE_HPP
|
@ -0,0 +1,36 @@
|
||||
#include "mainwizard.hpp"
|
||||
#include "intropage.hpp"
|
||||
#include "methodselectionpage.hpp"
|
||||
#include "existinginstallationpage.hpp"
|
||||
#include "installationtargetpage.hpp"
|
||||
#include "componentselectionpage.hpp"
|
||||
#include "installationpage.hpp"
|
||||
#include "importpage.hpp"
|
||||
#include "conclusionpage.hpp"
|
||||
|
||||
Wizard::MainWizard::MainWizard(QWidget *parent) :
|
||||
QWizard(parent)
|
||||
{
|
||||
|
||||
#ifndef Q_OS_MAC
|
||||
setWizardStyle(QWizard::ModernStyle);
|
||||
#else
|
||||
setWizardStyle(QWizard::ClassicStyle);
|
||||
#endif
|
||||
|
||||
setWindowTitle(tr("OpenMW Wizard"));
|
||||
setupPages();
|
||||
}
|
||||
|
||||
void Wizard::MainWizard::setupPages()
|
||||
{
|
||||
setPage(Page_Intro, new IntroPage);
|
||||
setPage(Page_MethodSelection, new MethodSelectionPage);
|
||||
setPage(Page_ExistingInstallation, new ExistingInstallationPage);
|
||||
setPage(Page_InstallationTarget, new InstallationTargetPage);
|
||||
setPage(Page_ComponentSelection, new ComponentSelectionPage);
|
||||
setPage(Page_Installation, new InstallationPage);
|
||||
setPage(Page_Import, new ImportPage);
|
||||
setPage(Page_Conclusion, new ConclusionPage);
|
||||
setStartId(Page_Intro);
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
#ifndef MAINWIZARD_HPP
|
||||
#define MAINWIZARD_HPP
|
||||
|
||||
#include <QWizard>
|
||||
|
||||
namespace Wizard
|
||||
{
|
||||
|
||||
class MainWizard : public QWizard
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum {
|
||||
Page_Intro,
|
||||
Page_MethodSelection,
|
||||
Page_ExistingInstallation,
|
||||
Page_InstallationTarget,
|
||||
Page_ComponentSelection,
|
||||
Page_Installation,
|
||||
Page_Import,
|
||||
Page_Conclusion
|
||||
};
|
||||
|
||||
MainWizard(QWidget *parent = 0);
|
||||
|
||||
private:
|
||||
void setupPages();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // MAINWIZARD_HPP
|
@ -0,0 +1,7 @@
|
||||
#include "methodselectionpage.hpp"
|
||||
|
||||
Wizard::MethodSelectionPage::MethodSelectionPage(QWidget *parent) :
|
||||
QWizardPage(parent)
|
||||
{
|
||||
setupUi(this);
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef METHODSELECTIONPAGE_HPP
|
||||
#define METHODSELECTIONPAGE_HPP
|
||||
|
||||
#include <QWizardPage>
|
||||
|
||||
#include "ui_methodselectionpage.h"
|
||||
|
||||
namespace Wizard
|
||||
{
|
||||
|
||||
class MethodSelectionPage : public QWizardPage, private Ui::MethodSelectionPage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MethodSelectionPage(QWidget *parent = 0);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // METHODSELECTIONPAGE_HPP
|
@ -1 +0,0 @@
|
||||
|
@ -1 +0,0 @@
|
||||
|
@ -1,58 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>WizardPage</class>
|
||||
<widget class="QWizardPage" name="WizardPage">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>440</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>WizardPage</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string><html><head/><body><p>OpenMW needs to import settings from the Morrowind configuration file in order to function properly. Select the steps you want to be taken and click Next when you are ready to continue.</p><p><span style=" font-weight:600;">Note:</span> it is possible to import settings later, by re-running this Wizard.</p><p/></body></html></string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox_2">
|
||||
<property name="text">
|
||||
<string>Import settings from Morrowind.ini</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkBox">
|
||||
<property name="text">
|
||||
<string>Import selected add-ons (creates a new Cotent List in the launcher)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
Loading…
Reference in New Issue