Line | |
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.