--- Vago/trunk/Vago/soundWizard/soundwizard.cpp 2013/04/04 14:46:11 789 +++ Vago/trunk/Vago/soundWizard/soundwizard.cpp 2013/04/13 13:44:29 815 @@ -1,7 +1,8 @@ #include "soundwizard.h" -SoundWizard::SoundWizard(QString workspaceWizardLocation, Logger *myLogger, QHash *commandMap) +SoundWizard::SoundWizard(QString AppDir, QString workspaceWizardLocation, Logger *myLogger, QHash *commandMap) { + this->appLocation=AppDir; this->workspaceWizardLocation=workspaceWizardLocation; this->myLogger=myLogger; this->soundsLocation=this->workspaceWizardLocation+"/Sounds"; @@ -21,16 +22,21 @@ int SoundWizard::exec(){ this->myWizard->setWindowIcon(QIcon(":/new/icons/sound.png")); //Center and resize QWizard (http://www.thedazzlersinc.com/source/2012/06/04/qt-center-window-in-screen/) +#ifdef Q_WS_WIN this->myWizard->resize(640,480); +#else + this->myWizard->resize(800,600); // Mac OS pcs should be able to render this resolution without any problem. It's also better + // because the components on mac use more space +#endif QRect position = this->myWizard->frameGeometry(); position.moveCenter(QDesktopWidget().availableGeometry().center()); this->myWizard->move(position.topLeft()); // - SoundPage2 *page2 = new SoundPage2(); + SoundPage2 *page2 = new SoundPage2(this->appLocation); SoundPage3 *page3 = new SoundPage3(); SoundPage4 *page4 = new SoundPage4(); - SoundPageFinal *pageFinal = new SoundPageFinal(this->soundsLocation,page2->soundTable,this->myLogger, this->commandMap); + SoundPageFinal *pageFinal = new SoundPageFinal(this->appLocation, this->soundsLocation,page2->soundTable,this->myLogger, this->commandMap); this->myWizard->addPage(createIntroPage()); this->myWizard->addPage(page2);