Changeset 1093 for s10k/Vago/soundWizard
- Timestamp:
- Dec 30, 2017, 2:57:32 PM (7 years ago)
- Location:
- s10k/Vago/soundWizard
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
s10k/Vago/soundWizard/soundpage2.cpp
r801 r1093 55 55 56 56 if(size==0){ 57 Util:: showPopUp("Select a row first.");57 Util::Dialogs::showInfo("Select a row first."); 58 58 return; 59 59 } 60 60 61 if(Util:: showQuestionPopUp(this,"Are you sure you want to delete the selected rows?")){61 if(Util::Dialogs::showQuestion(this,"Are you sure you want to delete the selected rows?")){ 62 62 for(int i=0; i<size; i++){ 63 63 ui->twSoundFiles->removeRow(ui->twSoundFiles->selectionModel()->selectedRows().at(size-i-1).row()); … … 71 71 72 72 //Pre-processing (check if received only folders) 73 for each(QString myFile,resources){73 for(const QString &myFile : resources){ 74 74 QString currFileExt="."+QFileInfo(myFile).completeSuffix(); 75 75 if(QDir(myFile).exists()){ 76 Util:: showErrorPopUp("Only files are allowed for this operation.");76 Util::Dialogs::showError("Only files are allowed for this operation."); 77 77 return; 78 78 } 79 79 80 for each(QString vext,this->allowedFiles){80 for(QString vext : this->allowedFiles){ 81 81 vext.remove("*"); 82 82 if(currFileExt.endsWith(vext)){ … … 87 87 88 88 if(!fileExtValid){ 89 Util:: showErrorPopUp("Files must be in the follow formats:\n" +89 Util::Dialogs::showError("Files must be in the follow formats:\n" + 90 90 this->allowedFiles.join(" ")); 91 91 return; … … 93 93 } 94 94 95 for each(QString currentFile,resources){95 for(const QString ¤tFile : resources){ 96 96 97 97 //Get actual number rows … … 103 103 //Add to table and list to 104 104 QTableWidgetItem *newName = new QTableWidgetItem(QFileInfo(currentFile).baseName()); 105 QTableWidgetItem *newFileLocation = new QTableWidgetItem(Util:: normalizePath(currentFile));105 QTableWidgetItem *newFileLocation = new QTableWidgetItem(Util::FileSystem::normalizePath(currentFile)); 106 106 107 107 myTable->setItem(twSize,0,newName); … … 125 125 126 126 if(ui->twSoundFiles->rowCount()==0){ 127 Util:: showErrorPopUp("You need to add some sound files first!");127 Util::Dialogs::showError("You need to add some sound files first!"); 128 128 return false; 129 129 } … … 133 133 } 134 134 135 if(ui->rbOther->isChecked() && Util:: checkEmptySpaces(QStringList() << ui->leOtherLocation->text())){136 Util:: showErrorPopUp("Please input a directory to output the files.");135 if(ui->rbOther->isChecked() && Util::Validation::checkEmptySpaces(QStringList() << ui->leOtherLocation->text())){ 136 Util::Dialogs::showError("Please input a directory to output the files."); 137 137 return false; 138 138 } 139 139 140 140 if(ui->rbOther->isChecked() && !QDir(ui->leOtherLocation->text()).exists()){ 141 Util:: showErrorPopUp("Invalid directory specified in other location. Please fix it.");141 Util::Dialogs::showError("Invalid directory specified in other location. Please fix it."); 142 142 return false; 143 143 } -
s10k/Vago/soundWizard/soundpage3.cpp
r771 r1093 34 34 << ui->leTreshold->text(); 35 35 36 if(Util:: checkEmptySpaces(leContents)){37 Util:: showErrorPopUp("Please fill all fields first!");36 if(Util::Validation::checkEmptySpaces(leContents)){ 37 Util::Dialogs::showError("Please fill all fields first!"); 38 38 return false; 39 39 } 40 40 41 if(Util:: checkIfDoubles(leContents)){42 Util:: showErrorPopUp("All fields must contains numbers!");41 if(Util::Validation::checkIfDoubles(leContents)){ 42 Util::Dialogs::showError("All fields must contains numbers!"); 43 43 return false; 44 44 } -
s10k/Vago/soundWizard/soundpage4.cpp
r771 r1093 30 30 << ui->leWeight->text(); 31 31 32 if(Util:: checkEmptySpaces(leContents)){33 Util:: showErrorPopUp("Please fill all fields first!");32 if(Util::Validation::checkEmptySpaces(leContents)){ 33 Util::Dialogs::showError("Please fill all fields first!"); 34 34 return false; 35 35 } 36 36 37 if(Util:: checkIfDoubles(leContents)){38 Util:: showErrorPopUp("All fields must contains numbers!");37 if(Util::Validation::checkIfDoubles(leContents)){ 38 Util::Dialogs::showError("All fields must contains numbers!"); 39 39 return false; 40 40 } -
s10k/Vago/soundWizard/soundpage5.cpp
r1054 r1093 29 29 ui->leImpactVelocity->text() << ui->leMinOcclusion->text(); 30 30 31 if(Util:: checkEmptySpaces(leContents)){32 Util:: showErrorPopUp("Please fill all fields first!");31 if(Util::Validation::checkEmptySpaces(leContents)){ 32 Util::Dialogs::showError("Please fill all fields first!"); 33 33 return false; 34 34 } 35 35 36 if(Util:: checkIfDoubles(leContents)){37 Util:: showErrorPopUp("All fields must contains numbers!");36 if(Util::Validation::checkIfDoubles(leContents)){ 37 Util::Dialogs::showError("All fields must contains numbers!"); 38 38 return false; 39 39 } -
s10k/Vago/soundWizard/soundpagefinal.cpp
r1061 r1093 2 2 #include "ui_soundpagefinal.h" 3 3 4 SoundPageFinal::SoundPageFinal(QString AppDir, QString soundsLocation, DropTableWidget *page2Table, Logger *myLogger,QHash<QString, QString> *commandMap, QWidget *parent) :4 SoundPageFinal::SoundPageFinal(QString AppDir, QString soundsLocation, DropTableWidget *page2Table, QHash<QString, QString> *commandMap, QWidget *parent) : 5 5 QWizardPage(parent), 6 6 ui(new Ui::soundpagefinal) … … 9 9 this->soundsLocation=soundsLocation; 10 10 this->page2Table=page2Table; 11 this->myLogger=myLogger;12 11 this->commandMap=commandMap; 13 12 14 13 this->xmlCommands = new QStringList(); 15 14 this->oniSplitCommands = new QStringList(); 16 this->myXmlProcessor = new XmlProcessor(AppDir, this-> myLogger,this->xmlCommands);17 this->myConverter = new Converter(AppDir, this->myLogger,this->oniSplitCommands);15 this->myXmlProcessor = new XmlProcessor(AppDir, this->xmlCommands); 16 this->myConverter = new Converter(AppDir,this->oniSplitCommands); 18 17 19 18 ui->lbComplete->setText("<html>The wizard is now complete. The sounds have been converted. " … … 126 125 } 127 126 128 sphereRadious=Util:: normalizeDecimalSeparator(field("leSphereRadious").toString());129 minElapsedTime=Util:: normalizeDecimalSeparator(field("leMinElapsedTime").toString());130 maxElapsedTime=Util:: normalizeDecimalSeparator(field("leMaxElapsedTime").toString());131 minVolumeDistance=Util:: normalizeDecimalSeparator(field("leMinVolumeDistance").toString());132 maxVolumeDistance=Util:: normalizeDecimalSeparator(field("leMaxVolumeDistance").toString());133 minOcclusion=Util:: normalizeDecimalSeparator(field("leMinOcclusion").toString());134 treshold=Util:: normalizeDecimalSeparator(field("leTreshold").toString());127 sphereRadious=Util::String::normalizeDecimalSeparator(field("leSphereRadious").toString()); 128 minElapsedTime=Util::String::normalizeDecimalSeparator(field("leMinElapsedTime").toString()); 129 maxElapsedTime=Util::String::normalizeDecimalSeparator(field("leMaxElapsedTime").toString()); 130 minVolumeDistance=Util::String::normalizeDecimalSeparator(field("leMinVolumeDistance").toString()); 131 maxVolumeDistance=Util::String::normalizeDecimalSeparator(field("leMaxVolumeDistance").toString()); 132 minOcclusion=Util::String::normalizeDecimalSeparator(field("leMinOcclusion").toString()); 133 treshold=Util::String::normalizeDecimalSeparator(field("leTreshold").toString()); 135 134 136 135 // Get data page 4 137 136 138 volume=Util:: normalizeDecimalSeparator(field("leVolume").toString());139 minVolume=Util:: normalizeDecimalSeparator(field("leMinVolume").toString());140 maxVolume=Util:: normalizeDecimalSeparator(field("leMaxVolume").toString());141 pitch=Util:: normalizeDecimalSeparator(field("lePitch").toString());142 minPitch=Util:: normalizeDecimalSeparator(field("leMinPitch").toString());143 maxPitch=Util:: normalizeDecimalSeparator(field("leMaxPitch").toString());144 weight=Util:: normalizeDecimalSeparator(field("leWeight").toString());137 volume=Util::String::normalizeDecimalSeparator(field("leVolume").toString()); 138 minVolume=Util::String::normalizeDecimalSeparator(field("leMinVolume").toString()); 139 maxVolume=Util::String::normalizeDecimalSeparator(field("leMaxVolume").toString()); 140 pitch=Util::String::normalizeDecimalSeparator(field("lePitch").toString()); 141 minPitch=Util::String::normalizeDecimalSeparator(field("leMinPitch").toString()); 142 maxPitch=Util::String::normalizeDecimalSeparator(field("leMaxPitch").toString()); 143 weight=Util::String::normalizeDecimalSeparator(field("leWeight").toString()); 145 144 146 145 preventRepeat=field("cbPreventRepeat").toBool(); … … 176 175 } 177 176 178 minVolumeDistanceImp=Util:: normalizeDecimalSeparator(field("leMinVolumeDistanceImp").toString());179 maxVolumeDistanceImp=Util:: normalizeDecimalSeparator(field("leMaxVolumeDistanceImp").toString());180 minAngleImp=Util:: normalizeDecimalSeparator(field("leMinAngleImp").toString());181 maxAngleImp=Util:: normalizeDecimalSeparator(field("leMaxAngleImp").toString());182 minAttenuationImp=Util:: normalizeDecimalSeparator(field("leMinAttenuationImp").toString());183 impactVelocityImp=Util:: normalizeDecimalSeparator(field("leImpactVelocityImp").toString());184 minOcclusionImp=Util:: normalizeDecimalSeparator(field("leMinOcclusionImp").toString());177 minVolumeDistanceImp=Util::String::normalizeDecimalSeparator(field("leMinVolumeDistanceImp").toString()); 178 maxVolumeDistanceImp=Util::String::normalizeDecimalSeparator(field("leMaxVolumeDistanceImp").toString()); 179 minAngleImp=Util::String::normalizeDecimalSeparator(field("leMinAngleImp").toString()); 180 maxAngleImp=Util::String::normalizeDecimalSeparator(field("leMaxAngleImp").toString()); 181 minAttenuationImp=Util::String::normalizeDecimalSeparator(field("leMinAttenuationImp").toString()); 182 impactVelocityImp=Util::String::normalizeDecimalSeparator(field("leImpactVelocityImp").toString()); 183 minOcclusionImp=Util::String::normalizeDecimalSeparator(field("leMinOcclusionImp").toString()); 185 184 186 185 //######################################################### Starting xml processing 187 186 188 187 // Clean tmp dir 189 if(!Util:: rmDir(GlobalVars::VagoTemporaryDir)){190 UtilVago::showAndLogErrorPopUpLogButton( this->myLogger,"Couldn't clean vago temp dir for complete sound wizard. Aborting.\n"+GlobalVars::VagoTemporaryDir);188 if(!Util::FileSystem::rmDir(GlobalVars::VagoTemporaryDir)){ 189 UtilVago::showAndLogErrorPopUpLogButton("Couldn't clean vago temp dir for complete sound wizard. Aborting.\n"+GlobalVars::VagoTemporaryDir); 191 190 return; 192 191 } 193 192 194 193 if(!QDir(QDir::tempPath()).mkpath("VagoTemp")){ 195 UtilVago::showAndLogErrorPopUpLogButton( this->myLogger,"Couldn't reconstruct vago temp dir for complete sound wizard. Aborting.\n"+GlobalVars::VagoTemporaryDir);194 UtilVago::showAndLogErrorPopUpLogButton("Couldn't reconstruct vago temp dir for complete sound wizard. Aborting.\n"+GlobalVars::VagoTemporaryDir); 196 195 } 197 196 … … 205 204 206 205 (*this->xmlCommands) 207 << "--replace-all-values -e Priority -n "+Util:: insertQuotes(priority)+" -f "+Util::insertQuotes(ambFileLocation)+" --no-backups --no-verbose"208 << "--replace-all-values -e Flags -n "+(flags.join(" ").isEmpty() ? Util:: insertQuotes("") : Util::insertQuotes(flags.join(" ")))+" -f "+Util::insertQuotes(ambFileLocation)+" --no-backups --no-verbose"209 << "--replace-all-values -e SphereRadius -n "+Util:: insertQuotes(sphereRadious)+" -f "+Util::insertQuotes(ambFileLocation)+" --no-backups --no-verbose"210 << "--replace-all-values -e Treshold -n "+Util:: insertQuotes(treshold)+" -f "+Util::insertQuotes(ambFileLocation)+" --no-backups --no-verbose"211 << "--replace-all-values -e MinOcclusion -n "+Util:: insertQuotes(minOcclusion)+" -f "+Util::insertQuotes(ambFileLocation)+" --no-backups --no-verbose"212 << "--replace-all-values --parent-element-name ElapsedTime -e Max -n "+Util:: insertQuotes(maxElapsedTime)+" -f "+Util::insertQuotes(ambFileLocation)+" --no-backups --no-verbose"213 << "--replace-all-values --parent-element-name ElapsedTime -e Min -n "+Util:: insertQuotes(minElapsedTime)+" -f "+Util::insertQuotes(ambFileLocation)+" --no-backups --no-verbose"214 << "--replace-all-values --parent-element-name Distance -e Max -n "+Util:: insertQuotes(maxVolumeDistance)+" -f "+Util::insertQuotes(ambFileLocation)+" --no-backups --no-verbose"215 << "--replace-all-values --parent-element-name Distance -e Min -n "+Util:: insertQuotes(minVolumeDistance)+" -f "+Util::insertQuotes(ambFileLocation)+" --no-backups --no-verbose"216 << "--replace-all-values --parent-element-name SoundGroup -e Volume -n "+Util:: insertQuotes(volume)+" -f "+Util::insertQuotes(grpFileLocation)+" --no-backups --no-verbose"217 << "--replace-all-values --parent-element-name SoundGroup -e Pitch -n "+Util:: insertQuotes(pitch)+" -f "+Util::insertQuotes(grpFileLocation)+" --no-backups --no-verbose"218 << "--replace-all-values --parent-element-name SoundGroup -e NumberOfChannels -n "+Util:: insertQuotes(numberChannels)+" -f "+Util::insertQuotes(grpFileLocation)+" --no-backups --no-verbose"219 << "--replace-all-values --parent-element-name Volume -e Min -n "+Util:: insertQuotes(minVolume)+" -f "+Util::insertQuotes(grpFileLocation)+" --no-backups --no-verbose"220 << "--replace-all-values --parent-element-name Volume -e Max -n "+Util:: insertQuotes(maxVolume)+" -f "+Util::insertQuotes(grpFileLocation)+" --no-backups --no-verbose"221 << "--replace-all-values --parent-element-name Pitch -e Min -n "+Util:: insertQuotes(minPitch)+" -f "+Util::insertQuotes(grpFileLocation)+" --no-backups --no-verbose"222 << "--replace-all-values --parent-element-name Pitch -e Max -n "+Util:: insertQuotes(maxPitch)+" -f "+Util::insertQuotes(grpFileLocation)+" --no-backups --no-verbose"223 << "--replace-all-values -e Weight -n "+Util:: insertQuotes(weight)+" -f "+Util::insertQuotes(grpFileLocation)+" --no-backups --no-verbose"224 << "--replace-all-values -e Priority -n "+Util:: insertQuotes(priorityImp)+" -f "+Util::insertQuotes(impFileLocation)+" --no-backups --no-verbose"225 << "--replace-all-values --parent-element-name Distance -e Min -n "+Util:: insertQuotes(minVolumeDistanceImp)+" -f "+Util::insertQuotes(impFileLocation)+" --no-backups --no-verbose"226 << "--replace-all-values --parent-element-name Distance -e Max -n "+Util:: insertQuotes(maxVolumeDistanceImp)+" -f "+Util::insertQuotes(impFileLocation)+" --no-backups --no-verbose"227 << "--replace-all-values --parent-element-name Angle -e Min -n "+Util:: insertQuotes(minAngleImp)+" -f "+Util::insertQuotes(impFileLocation)+" --no-backups --no-verbose"228 << "--replace-all-values --parent-element-name Angle -e Max -n "+Util:: insertQuotes(maxAngleImp)+" -f "+Util::insertQuotes(impFileLocation)+" --no-backups --no-verbose"229 << "--replace-all-values -e MinAttenuation -n "+Util:: insertQuotes(minAttenuationImp)+" -f "+Util::insertQuotes(impFileLocation)+" --no-backups --no-verbose"230 << "--replace-all-values -e ImpactVelocity -n "+Util:: insertQuotes(impactVelocityImp)+" -f "+Util::insertQuotes(impFileLocation)+" --no-backups --no-verbose"231 << "--replace-all-values -e MinOcclusion -n "+Util:: insertQuotes(minOcclusionImp)+" -f "+Util::insertQuotes(impFileLocation)+" --no-backups --no-verbose";206 << "--replace-all-values -e Priority -n "+Util::String::insertQuotes(priority)+" -f "+Util::String::insertQuotes(ambFileLocation)+" --no-backups --no-verbose" 207 << "--replace-all-values -e Flags -n "+(flags.join(" ").isEmpty() ? Util::String::insertQuotes("") : Util::String::insertQuotes(flags.join(" ")))+" -f "+Util::String::insertQuotes(ambFileLocation)+" --no-backups --no-verbose" 208 << "--replace-all-values -e SphereRadius -n "+Util::String::insertQuotes(sphereRadious)+" -f "+Util::String::insertQuotes(ambFileLocation)+" --no-backups --no-verbose" 209 << "--replace-all-values -e Treshold -n "+Util::String::insertQuotes(treshold)+" -f "+Util::String::insertQuotes(ambFileLocation)+" --no-backups --no-verbose" 210 << "--replace-all-values -e MinOcclusion -n "+Util::String::insertQuotes(minOcclusion)+" -f "+Util::String::insertQuotes(ambFileLocation)+" --no-backups --no-verbose" 211 << "--replace-all-values --parent-element-name ElapsedTime -e Max -n "+Util::String::insertQuotes(maxElapsedTime)+" -f "+Util::String::insertQuotes(ambFileLocation)+" --no-backups --no-verbose" 212 << "--replace-all-values --parent-element-name ElapsedTime -e Min -n "+Util::String::insertQuotes(minElapsedTime)+" -f "+Util::String::insertQuotes(ambFileLocation)+" --no-backups --no-verbose" 213 << "--replace-all-values --parent-element-name Distance -e Max -n "+Util::String::insertQuotes(maxVolumeDistance)+" -f "+Util::String::insertQuotes(ambFileLocation)+" --no-backups --no-verbose" 214 << "--replace-all-values --parent-element-name Distance -e Min -n "+Util::String::insertQuotes(minVolumeDistance)+" -f "+Util::String::insertQuotes(ambFileLocation)+" --no-backups --no-verbose" 215 << "--replace-all-values --parent-element-name SoundGroup -e Volume -n "+Util::String::insertQuotes(volume)+" -f "+Util::String::insertQuotes(grpFileLocation)+" --no-backups --no-verbose" 216 << "--replace-all-values --parent-element-name SoundGroup -e Pitch -n "+Util::String::insertQuotes(pitch)+" -f "+Util::String::insertQuotes(grpFileLocation)+" --no-backups --no-verbose" 217 << "--replace-all-values --parent-element-name SoundGroup -e NumberOfChannels -n "+Util::String::insertQuotes(numberChannels)+" -f "+Util::String::insertQuotes(grpFileLocation)+" --no-backups --no-verbose" 218 << "--replace-all-values --parent-element-name Volume -e Min -n "+Util::String::insertQuotes(minVolume)+" -f "+Util::String::insertQuotes(grpFileLocation)+" --no-backups --no-verbose" 219 << "--replace-all-values --parent-element-name Volume -e Max -n "+Util::String::insertQuotes(maxVolume)+" -f "+Util::String::insertQuotes(grpFileLocation)+" --no-backups --no-verbose" 220 << "--replace-all-values --parent-element-name Pitch -e Min -n "+Util::String::insertQuotes(minPitch)+" -f "+Util::String::insertQuotes(grpFileLocation)+" --no-backups --no-verbose" 221 << "--replace-all-values --parent-element-name Pitch -e Max -n "+Util::String::insertQuotes(maxPitch)+" -f "+Util::String::insertQuotes(grpFileLocation)+" --no-backups --no-verbose" 222 << "--replace-all-values -e Weight -n "+Util::String::insertQuotes(weight)+" -f "+Util::String::insertQuotes(grpFileLocation)+" --no-backups --no-verbose" 223 << "--replace-all-values -e Priority -n "+Util::String::insertQuotes(priorityImp)+" -f "+Util::String::insertQuotes(impFileLocation)+" --no-backups --no-verbose" 224 << "--replace-all-values --parent-element-name Distance -e Min -n "+Util::String::insertQuotes(minVolumeDistanceImp)+" -f "+Util::String::insertQuotes(impFileLocation)+" --no-backups --no-verbose" 225 << "--replace-all-values --parent-element-name Distance -e Max -n "+Util::String::insertQuotes(maxVolumeDistanceImp)+" -f "+Util::String::insertQuotes(impFileLocation)+" --no-backups --no-verbose" 226 << "--replace-all-values --parent-element-name Angle -e Min -n "+Util::String::insertQuotes(minAngleImp)+" -f "+Util::String::insertQuotes(impFileLocation)+" --no-backups --no-verbose" 227 << "--replace-all-values --parent-element-name Angle -e Max -n "+Util::String::insertQuotes(maxAngleImp)+" -f "+Util::String::insertQuotes(impFileLocation)+" --no-backups --no-verbose" 228 << "--replace-all-values -e MinAttenuation -n "+Util::String::insertQuotes(minAttenuationImp)+" -f "+Util::String::insertQuotes(impFileLocation)+" --no-backups --no-verbose" 229 << "--replace-all-values -e ImpactVelocity -n "+Util::String::insertQuotes(impactVelocityImp)+" -f "+Util::String::insertQuotes(impFileLocation)+" --no-backups --no-verbose" 230 << "--replace-all-values -e MinOcclusion -n "+Util::String::insertQuotes(minOcclusionImp)+" -f "+Util::String::insertQuotes(impFileLocation)+" --no-backups --no-verbose"; 232 231 233 232 if(preventRepeat){ 234 (*this->xmlCommands) << "--replace-all-values --parent-element-name SoundGroup -e Flags -n PreventRepeat -f "+Util:: insertQuotes(grpFileLocation)+" --no-backups --no-verbose";233 (*this->xmlCommands) << "--replace-all-values --parent-element-name SoundGroup -e Flags -n PreventRepeat -f "+Util::String::insertQuotes(grpFileLocation)+" --no-backups --no-verbose"; 235 234 } 236 235 … … 245 244 for(int i=0; i<this->page2Table->rowCount(); i++){ 246 245 247 (*this->oniSplitCommands) << this->commandMap->value("xml->XML->ONI")+" "+Util:: insertQuotes(outputFolder)+" "+Util::insertQuotes(this->page2Table->item(i,1)->text()); // add location of sound file to convert246 (*this->oniSplitCommands) << this->commandMap->value("xml->XML->ONI")+" "+Util::String::insertQuotes(outputFolder)+" "+Util::String::insertQuotes(this->page2Table->item(i,1)->text()); // add location of sound file to convert 248 247 249 248 currFileName=this->page2Table->item(i,0)->text(); // get current file name … … 256 255 QFile::copy(impFileLocation, currImpFileLocation); 257 256 258 (*this->xmlCommands) << "--replace-all-values -e BaseTrack1 -n "+Util:: insertQuotes(currFileName)+" -f "+Util::insertQuotes(currAmbFileLocation)+" --no-backups --no-verbose" // process the xml259 << "--replace-all-values -e Sound -n "+Util:: insertQuotes(currFileName)+" -f "+Util::insertQuotes(currGrpFileLocation)+" --no-backups --no-verbose"260 << "--replace-all-values -e Group -n "+Util:: insertQuotes(currFileName)+" -f "+Util::insertQuotes(currImpFileLocation)+" --no-backups --no-verbose";257 (*this->xmlCommands) << "--replace-all-values -e BaseTrack1 -n "+Util::String::insertQuotes(currFileName)+" -f "+Util::String::insertQuotes(currAmbFileLocation)+" --no-backups --no-verbose" // process the xml 258 << "--replace-all-values -e Sound -n "+Util::String::insertQuotes(currFileName)+" -f "+Util::String::insertQuotes(currGrpFileLocation)+" --no-backups --no-verbose" 259 << "--replace-all-values -e Group -n "+Util::String::insertQuotes(currFileName)+" -f "+Util::String::insertQuotes(currImpFileLocation)+" --no-backups --no-verbose"; 261 260 262 261 myXmlProcessor->start(); 263 262 myXmlProcessor->wait(); // Wait until all xml is edited 264 263 265 (*this->oniSplitCommands) << this->commandMap->value("xml->XML->ONI")+" "+Util:: insertQuotes(outputFolder)+" "+Util::insertQuotes(currAmbFileLocation);266 (*this->oniSplitCommands) << this->commandMap->value("xml->XML->ONI")+" "+Util:: insertQuotes(outputFolder)+" "+Util::insertQuotes(currGrpFileLocation);267 (*this->oniSplitCommands) << this->commandMap->value("xml->XML->ONI")+" "+Util:: insertQuotes(outputFolder)+" "+Util::insertQuotes(currImpFileLocation);264 (*this->oniSplitCommands) << this->commandMap->value("xml->XML->ONI")+" "+Util::String::insertQuotes(outputFolder)+" "+Util::String::insertQuotes(currAmbFileLocation); 265 (*this->oniSplitCommands) << this->commandMap->value("xml->XML->ONI")+" "+Util::String::insertQuotes(outputFolder)+" "+Util::String::insertQuotes(currGrpFileLocation); 266 (*this->oniSplitCommands) << this->commandMap->value("xml->XML->ONI")+" "+Util::String::insertQuotes(outputFolder)+" "+Util::String::insertQuotes(currImpFileLocation); 268 267 } 269 268 -
s10k/Vago/soundWizard/soundpagefinal.h
r1061 r1093 7 7 #include <droptablewidget.h> 8 8 9 #include "logger.h"10 9 #include "xmlprocessor.h" 11 10 #include "converter.h" … … 20 19 21 20 public: 22 explicit SoundPageFinal(QString AppDir, QString soundsLocation, DropTableWidget *page2Table, Logger *myLogger,QHash<QString, QString> *commandMap, QWidget *parent = 0);21 explicit SoundPageFinal(QString AppDir, QString soundsLocation, DropTableWidget *page2Table, QHash<QString, QString> *commandMap, QWidget *parent = 0); 23 22 ~SoundPageFinal(); 24 23 … … 27 26 Ui::soundpagefinal *ui; 28 27 DropTableWidget *page2Table; 29 Logger *myLogger;30 28 XmlProcessor *myXmlProcessor; 31 29 Converter *myConverter; -
s10k/Vago/soundWizard/soundwizard.cpp
r1061 r1093 1 1 #include "soundwizard.h" 2 2 3 SoundWizard::SoundWizard(QString appDir, QString workspaceWizardLocation, QSettings *vagoSettings, Logger *myLogger,QHash<QString, QString> *commandMap)4 :AbstractWizard(appDir, workspaceWizardLocation, vagoSettings, myLogger,true)3 SoundWizard::SoundWizard(QString appDir, QString workspaceWizardLocation, QSettings *vagoSettings, QHash<QString, QString> *commandMap) 4 :AbstractWizard(appDir, workspaceWizardLocation, vagoSettings, true) 5 5 { 6 6 this->appDir=appDir; … … 14 14 SoundPage4 *page4 = new SoundPage4(); 15 15 SoundPage5 *page5 = new SoundPage5(); 16 SoundPageFinal *pageFinal = new SoundPageFinal(this->appDir, this->soundsLocation,page2->soundTable, this->myLogger,this->commandMap);16 SoundPageFinal *pageFinal = new SoundPageFinal(this->appDir, this->soundsLocation,page2->soundTable, this->commandMap); 17 17 18 18 this->myWizard.addPage -
s10k/Vago/soundWizard/soundwizard.h
r1061 r1093 14 14 #include "util.h" 15 15 #include "abstractwizard.h" 16 #include "logger.h"17 16 #include "soundpage2.h" 18 17 #include "soundpage3.h" … … 24 23 { 25 24 protected: 26 SoundWizard(QString appLocation, QString workspaceWizardLocation, QSettings *vagoSettings, Logger *myLogger,QHash<QString, QString> *commandMap);25 SoundWizard(QString appLocation, QString workspaceWizardLocation, QSettings *vagoSettings, QHash<QString, QString> *commandMap); 27 26 void exec(); 28 27 QHash<QString, QString> *commandMap;
Note:
See TracChangeset
for help on using the changeset viewer.