- Timestamp:
- Apr 13, 2013, 3:44:29 PM (12 years ago)
- Location:
- Vago/trunk/Vago
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Vago/trunk/Vago/converter.cpp
r771 r815 1 1 #include "converter.h" 2 2 3 Converter::Converter( Logger *myLogger, QStringList *myData)3 Converter::Converter(QString AppDir, Logger *myLogger, QStringList *myData) 4 4 { 5 this->AppDir=AppDir; 5 6 this->myLogger=myLogger; 6 7 this->myData=myData; … … 13 14 QString errorMessage = ""; 14 15 int numErrors=0; 16 17 myProcess->setWorkingDirectory(this->AppDir); 15 18 16 19 if(this->myData->size()!=1){ -
Vago/trunk/Vago/converter.h
r811 r815 13 13 Q_OBJECT 14 14 public: 15 Converter( Logger *myLogger, QStringList *myData);15 Converter(QString AppDir, Logger *myLogger, QStringList *myData); 16 16 private: 17 QString AppDir; 17 18 Logger *myLogger; 18 19 QStringList *myData; -
Vago/trunk/Vago/mainwindow.cpp
r803 r815 100 100 101 101 //Create a thread for do the conversion in background 102 this->myConverter = new Converter(this-> myLogger,this->listToProccess);102 this->myConverter = new Converter(this->AppDir,this->myLogger,this->listToProccess); 103 103 104 104 // User interface … … 1136 1136 { 1137 1137 QProcess *myProcess = new QProcess(); 1138 myProcess->setWorkingDirectory(this->AppDir); 1138 1139 myProcess->start(GlobalVars::OniSplitExeName+" -version"); 1139 1140 myProcess->waitForFinished(-1); … … 1146 1147 { 1147 1148 QProcess *myProcess = new QProcess(); 1149 myProcess->setWorkingDirectory(this->AppDir); 1148 1150 myProcess->start(GlobalVars::XmlToolsExeName+" version"); 1149 1151 myProcess->waitForFinished(-1); -
Vago/trunk/Vago/soundWizard/soundpagefinal.cpp
r790 r815 2 2 #include "ui_soundpagefinal.h" 3 3 4 SoundPageFinal::SoundPageFinal(QString soundsLocation, DropTableWidget *page2Table, Logger *myLogger, QHash<QString, QString> *commandMap, QWidget *parent) :4 SoundPageFinal::SoundPageFinal(QString AppDir, QString soundsLocation, DropTableWidget *page2Table, Logger *myLogger, QHash<QString, QString> *commandMap, QWidget *parent) : 5 5 QWizardPage(parent), 6 6 ui(new Ui::soundpagefinal) … … 14 14 this->xmlCommands = new QStringList(); 15 15 this->oniSplitCommands = new QStringList(); 16 this->myXmlProcessor = new XmlProcessor( this->myLogger,this->xmlCommands);17 this->myConverter = new Converter( this->myLogger,this->oniSplitCommands);16 this->myXmlProcessor = new XmlProcessor(AppDir, this->myLogger,this->xmlCommands); 17 this->myConverter = new Converter(AppDir, this->myLogger,this->oniSplitCommands); 18 18 19 19 ui->lbComplete->setText("<html>The wizard is now complete. The sounds have been converted. " -
Vago/trunk/Vago/soundWizard/soundpagefinal.h
r771 r815 20 20 21 21 public: 22 explicit SoundPageFinal(QString soundsLocation, DropTableWidget *page2Table, Logger *myLogger, QHash<QString, QString> *commandMap, QWidget *parent = 0);22 explicit SoundPageFinal(QString AppDir, QString soundsLocation, DropTableWidget *page2Table, Logger *myLogger, QHash<QString, QString> *commandMap, QWidget *parent = 0); 23 23 ~SoundPageFinal(); 24 24 -
Vago/trunk/Vago/soundWizard/soundwizard.cpp
r801 r815 1 1 #include "soundwizard.h" 2 2 3 SoundWizard::SoundWizard(QString appLocation, QString workspaceWizardLocation, Logger *myLogger, QHash<QString, QString> *commandMap)3 SoundWizard::SoundWizard(QString AppDir, QString workspaceWizardLocation, Logger *myLogger, QHash<QString, QString> *commandMap) 4 4 { 5 this->appLocation= appLocation;5 this->appLocation=AppDir; 6 6 this->workspaceWizardLocation=workspaceWizardLocation; 7 7 this->myLogger=myLogger; … … 37 37 SoundPage3 *page3 = new SoundPage3(); 38 38 SoundPage4 *page4 = new SoundPage4(); 39 SoundPageFinal *pageFinal = new SoundPageFinal(this-> soundsLocation,page2->soundTable,this->myLogger, this->commandMap);39 SoundPageFinal *pageFinal = new SoundPageFinal(this->appLocation, this->soundsLocation,page2->soundTable,this->myLogger, this->commandMap); 40 40 41 41 this->myWizard->addPage(createIntroPage()); -
Vago/trunk/Vago/xmlprocessor.cpp
r771 r815 1 1 #include "xmlprocessor.h" 2 2 3 XmlProcessor::XmlProcessor( Logger *myLogger, QStringList *commands)3 XmlProcessor::XmlProcessor(QString AppDir, Logger *myLogger, QStringList *commands) 4 4 { 5 this->AppDir=AppDir; 5 6 this->myLogger=myLogger; 6 7 this->commands=commands; … … 13 14 QString errorMessage = ""; 14 15 int numErrors=0; 16 17 myProcess->setWorkingDirectory(this->AppDir); 15 18 16 19 for(int i=0; i<this->commands->size(); i++){ -
Vago/trunk/Vago/xmlprocessor.h
r811 r815 11 11 Q_OBJECT 12 12 public: 13 XmlProcessor( Logger *myLogger, QStringList *commands);13 XmlProcessor(QString AppDir, Logger *myLogger, QStringList *commands); 14 14 private: 15 QString AppDir; 15 16 Logger *myLogger; 16 17 QStringList *commands;
Note:
See TracChangeset
for help on using the changeset viewer.