ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/windowMessagesWizard/wmwizard.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: 1252 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 "wmwizard.h"
2
3 WmWizard::WmWizard(const QString &appDir, const QString &workspaceWizardLocation, QSettings *vagoSettings, Logger *myLogger)
4 :AbstractWizard(appDir, workspaceWizardLocation, vagoSettings, myLogger, 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(this->myLogger);
13 WmFinalPage *finalPage = new WmFinalPage(this->appDir, this->bgImagesLocation, this->myLogger, 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 }