| 1 |
#include "soundwizard.h" |
| 2 |
|
| 3 |
SoundWizard::SoundWizard(QString appDir, QString workspaceWizardLocation, QSettings *vagoSettings, Logger *myLogger, QHash<QString, QString> *commandMap) |
| 4 |
:AbstractWizard(appDir, workspaceWizardLocation, vagoSettings, myLogger, 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->myLogger, 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 |
} |