ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/bgImageWizard/bgimagewizard.cpp
Revision: 1092
Committed: Sat Dec 30 13:43:28 2017 UTC (7 years, 9 months ago) by s10k
Content type: text/x-c++src
File size: 1340 byte(s)
Log Message:
moved files to s10k directory since now vago uses the same libs structures as my other projects (e.g. XmlTools)

File Contents

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