Commit 30164751 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Wizard: rename LoadPage to WelcomePage

parent 97be7954
......@@ -30,7 +30,7 @@
#include "AudioProjectPreferences.h"
#include "SettingsManager.h"
#include "PageFactory.h"
#include "LoadPage.h"
#include "WelcomePage.h"
ProjectWizard::ProjectWizard( QWidget* parent )
: QWizard( parent )
......@@ -54,12 +54,12 @@ ProjectWizard::ProjectWizard( QWidget* parent )
// Create pages
QWizardPage* loadPage = new LoadPage( this );
QWizardPage* welcomePage = new WelcomePage( this );
QWizardPage* generalPage = PageFactory::generateWizardPage<ProjectPreferences>( "General Settings", this );
QWizardPage* videoPage = PageFactory::generateWizardPage<VideoProjectPreferences>( "Video Settings", this );
QWizardPage* audioPage = PageFactory::generateWizardPage<AudioProjectPreferences>( "Audio Settings", this );
setPage( Page_Welcome, loadPage );
setPage( Page_Welcome, welcomePage );
setPage( Page_General, generalPage );
setPage( Page_Video, videoPage );
setPage( Page_Audio, audioPage );
......
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include "LoadPage.h"
#include "WelcomePage.h"
LoadPage::LoadPage( QWidget* parent )
WelcomePage::WelcomePage( QWidget* parent )
: QWizardPage( parent )
{
m_ui.setupUi( this );
......@@ -12,7 +12,7 @@ LoadPage::LoadPage( QWidget* parent )
setSubTitle( tr( "Open or create a project" ) );
}
int LoadPage::nextId() const
int WelcomePage::nextId() const
{
if ( m_ui.createRadioButton->isChecked() )
return ProjectWizard::Page_General;
......
......@@ -3,21 +3,21 @@
#include <QWizardPage>
#include "ProjectWizard.h"
#include "ui_LoadPage.h"
#include "ui_WelcomePage.h"
class QWizard;
class LoadPage : public QWizardPage
class WelcomePage : public QWizardPage
{
Q_OBJECT
public:
LoadPage( QWidget* parent = 0 );
~LoadPage() { }
WelcomePage( QWidget* parent = 0 );
~WelcomePage() { }
int nextId() const;
private:
Ui::LoadPage m_ui;
Ui::WelcomePage m_ui;
};
#endif
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>LoadPage</class>
<widget class="QWidget" name="LoadPage">
<class>WelcomePage</class>
<widget class="QWidget" name="WelcomePage">
<property name="geometry">
<rect>
<x>0</x>
......
HEADERS += CustomWizardPage.h \
LoadPage.h \
WelcomePage.h \
PageFactory.h \
ProjectWizard.h
SOURCES += CustomWizardPage.cpp \
LoadPage.cpp \
WelcomePage.cpp \
ProjectWizard.cpp
FORMS += ui/LoadPage.ui
FORMS += ui/WelcomePage.ui
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment