source: s10k/Vago/soundWizard/soundwizard.cpp@ 1164

Last change on this file since 1164 was 1093, checked in by s10k, 7 years ago

Vago 1.4

File size: 1.3 KB
Line 
1#include "soundwizard.h"
2
3SoundWizard::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}
10void 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
38void SoundWizard::beforeClose(QDialog::DialogCode){
39
40}
Note: See TracBrowser for help on using the repository browser.