ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/soundWizard/soundwizard.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: 1316 byte(s)
Log Message:
Vago 1.4

File Contents

# Content
1 #include "soundwizard.h"
2
3 SoundWizard::SoundWizard(QString appDir, QString workspaceWizardLocation, QSettings *vagoSettings, QHash<QString, QString> *commandMap)
4 :AbstractWizard(appDir, workspaceWizardLocation, vagoSettings, true)
5 {
6 this->appDir=appDir;
7 this->soundsLocation=this->workspaceWizardLocation+"/Sounds";
8 this->commandMap=commandMap;
9 }
10 void SoundWizard::exec(){
11
12 SoundPage2 *page2 = new SoundPage2(this->appDir);
13 SoundPage3 *page3 = new SoundPage3();
14 SoundPage4 *page4 = new SoundPage4();
15 SoundPage5 *page5 = new SoundPage5();
16 SoundPageFinal *pageFinal = new SoundPageFinal(this->appDir, this->soundsLocation,page2->soundTable, this->commandMap);
17
18 this->myWizard.addPage
19 (
20 createIntroPage
21 (
22 "Welcome to the Oni Sound wizard.\n"
23 "This wizard will allow you to convert in a few and simple steps sounds to oni format."
24 )
25 );
26
27 this->myWizard.addPage(page2);
28 this->myWizard.addPage(page3);
29 this->myWizard.addPage(page4);
30 this->myWizard.addPage(page5);
31 this->myWizard.addPage(pageFinal);
32
33 this->myWizard.setWindowTitle("Sound wizard");
34
35 showWizard("Sound wizard", ":/new/icons/sound.png");
36 }
37
38 void SoundWizard::beforeClose(QDialog::DialogCode){
39
40 }