ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/windowMessagesWizard/wmwizard.cpp
Revision: 1093
Committed: Sat Dec 30 13:57:32 2017 UTC (7 years, 9 months ago) by s10k
Content type: text/x-c++src
File size: 1194 byte(s)
Log Message:
Vago 1.4

File Contents

# Content
1 #include "wmwizard.h"
2
3 WmWizard::WmWizard(const QString &appDir, const QString &workspaceWizardLocation, QSettings *vagoSettings)
4 :AbstractWizard(appDir, workspaceWizardLocation, vagoSettings, true)
5 {
6 this->bgImagesLocation=this->workspaceWizardLocation+"/WindowMessages";
7 }
8
9 void WmWizard::exec(){
10
11 WmSetupPage *setupPage = new WmSetupPage();
12 WmFormatPage *formatPage = new WmFormatPage();
13 WmFinalPage *finalPage = new WmFinalPage(this->appDir, this->bgImagesLocation, formatPage->getCurrentPages());
14
15 this->myWizard.addPage
16 (
17 createIntroPage
18 (
19 "Welcome to the Oni Window Messages Wizard.\n"
20 "This wizard will allow you to create in a few and simple steps Oni Window Messages (DPge, HPge etc).\n"
21 "This Window Messages are used to display information to the player in consoles, diary, help, item / weapon pages etc."
22 )
23 );
24 this->myWizard.addPage(setupPage);
25 this->myWizard.addPage(formatPage);
26 this->myWizard.addPage(finalPage);
27
28 showWizard("Window Messages Wizard", ":/new/icons/windowmessages.png");
29 }
30
31 void WmWizard::beforeClose(QDialog::DialogCode){
32
33 }