1 |
#include "bgimagewizard.h" |
2 |
|
3 |
BGImageWizard::BGImageWizard(const QString &appDir, const QString &workspaceWizardLocation, QSettings *vagoSettings) |
4 |
:AbstractWizard(appDir, workspaceWizardLocation, vagoSettings, true) |
5 |
{ |
6 |
this->appDir = appDir; |
7 |
this->workspaceWizardLocation=workspaceWizardLocation; |
8 |
this->vagoSettings=vagoSettings; |
9 |
this->bgImagesLocation=this->workspaceWizardLocation+"/BGImages"; |
10 |
} |
11 |
|
12 |
void BGImageWizard::exec(){ |
13 |
|
14 |
BGImagePage2 *page2 = new BGImagePage2(); |
15 |
BGImagePage3 *page3 = new BGImagePage3(); |
16 |
BGImagePageFinal *pageFinal = new BGImagePageFinal(this->appDir, this->bgImagesLocation); |
17 |
|
18 |
this->myWizard.addPage |
19 |
( |
20 |
createIntroPage |
21 |
( |
22 |
"Welcome to the Oni Background Image Wizard.\n" |
23 |
"This wizard will allow you to create in a few and simple steps Oni background images (TXMB) " |
24 |
"that can be used in the menus or as backgrounds screens for the levels." |
25 |
) |
26 |
); |
27 |
|
28 |
this->myWizard.addPage(page2); |
29 |
this->myWizard.addPage(page3); |
30 |
this->myWizard.addPage(pageFinal); |
31 |
|
32 |
showWizard("Background Image Wizard", ":/new/icons/background_image.png"); |
33 |
} |
34 |
|
35 |
void BGImageWizard::beforeClose(QDialog::DialogCode){ |
36 |
|
37 |
} |