Changeset 1093 for s10k/Vago/soundWizard


Ignore:
Timestamp:
Dec 30, 2017, 2:57:32 PM (7 years ago)
Author:
s10k
Message:

Vago 1.4

Location:
s10k/Vago/soundWizard
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • s10k/Vago/soundWizard/soundpage2.cpp

    r801 r1093  
    5555
    5656    if(size==0){
    57         Util::showPopUp("Select a row first.");
     57        Util::Dialogs::showInfo("Select a row first.");
    5858        return;
    5959    }
    6060
    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?")){
    6262        for(int i=0; i<size; i++){
    6363            ui->twSoundFiles->removeRow(ui->twSoundFiles->selectionModel()->selectedRows().at(size-i-1).row());
     
    7171
    7272    //Pre-processing (check if received only folders)
    73     foreach(QString myFile, resources){
     73    for(const QString &myFile : resources){
    7474        QString currFileExt="."+QFileInfo(myFile).completeSuffix();
    7575        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.");
    7777            return;
    7878        }
    7979
    80         foreach(QString vext, this->allowedFiles){
     80        for(QString vext : this->allowedFiles){
    8181            vext.remove("*");
    8282            if(currFileExt.endsWith(vext)){
     
    8787
    8888        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" +
    9090                                 this->allowedFiles.join(" "));
    9191            return;
     
    9393    }
    9494
    95     foreach(QString currentFile, resources){
     95    for(const QString &currentFile : resources){
    9696
    9797        //Get actual number rows
     
    103103        //Add to table and list to
    104104        QTableWidgetItem *newName = new QTableWidgetItem(QFileInfo(currentFile).baseName());
    105         QTableWidgetItem *newFileLocation = new QTableWidgetItem(Util::normalizePath(currentFile));
     105        QTableWidgetItem *newFileLocation = new QTableWidgetItem(Util::FileSystem::normalizePath(currentFile));
    106106
    107107        myTable->setItem(twSize,0,newName);
     
    125125
    126126    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!");
    128128        return false;
    129129    }
     
    133133    }
    134134
    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.");
    137137        return false;
    138138    }
    139139
    140140    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.");
    142142        return false;
    143143    }
  • s10k/Vago/soundWizard/soundpage3.cpp

    r771 r1093  
    3434                       << ui->leTreshold->text();
    3535
    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!");
    3838        return false;
    3939    }
    4040
    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!");
    4343        return false;
    4444    }
  • s10k/Vago/soundWizard/soundpage4.cpp

    r771 r1093  
    3030               << ui->leWeight->text();
    3131
    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!");
    3434        return false;
    3535    }
    3636
    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!");
    3939        return false;
    4040    }
  • s10k/Vago/soundWizard/soundpage5.cpp

    r1054 r1093  
    2929                  ui->leImpactVelocity->text() << ui->leMinOcclusion->text();
    3030
    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!");
    3333        return false;
    3434    }
    3535
    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!");
    3838        return false;
    3939    }
  • s10k/Vago/soundWizard/soundpagefinal.cpp

    r1061 r1093  
    22#include "ui_soundpagefinal.h"
    33
    4 SoundPageFinal::SoundPageFinal(QString AppDir, QString soundsLocation, DropTableWidget *page2Table, Logger *myLogger, QHash<QString, QString> *commandMap, QWidget *parent) :
     4SoundPageFinal::SoundPageFinal(QString AppDir, QString soundsLocation, DropTableWidget *page2Table, QHash<QString, QString> *commandMap, QWidget *parent) :
    55    QWizardPage(parent),
    66    ui(new Ui::soundpagefinal)
     
    99    this->soundsLocation=soundsLocation;
    1010    this->page2Table=page2Table;
    11     this->myLogger=myLogger;
    1211    this->commandMap=commandMap;
    1312
    1413    this->xmlCommands = new QStringList();
    1514    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);
    1817
    1918    ui->lbComplete->setText("<html>The wizard is now complete. The sounds have been converted. "
     
    126125    }
    127126
    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());
    135134
    136135    // Get data page 4
    137136
    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());
    145144
    146145    preventRepeat=field("cbPreventRepeat").toBool();
     
    176175    }
    177176
    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());
    185184
    186185    //######################################################### Starting xml processing
    187186
    188187    // 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);
    191190        return;
    192191    }
    193192
    194193    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);
    196195    }
    197196
     
    205204
    206205    (*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";
    232231
    233232    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";
    235234    }
    236235
     
    245244    for(int i=0; i<this->page2Table->rowCount(); i++){
    246245
    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 convert
     246        (*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
    248247
    249248        currFileName=this->page2Table->item(i,0)->text(); // get current file name
     
    256255        QFile::copy(impFileLocation, currImpFileLocation);
    257256
    258         (*this->xmlCommands) << "--replace-all-values -e BaseTrack1 -n "+Util::insertQuotes(currFileName)+" -f "+Util::insertQuotes(currAmbFileLocation)+" --no-backups --no-verbose" // process the xml
    259                              << "--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";
    261260
    262261        myXmlProcessor->start();
    263262        myXmlProcessor->wait(); // Wait until all xml is edited
    264263
    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);
    268267    }
    269268
  • s10k/Vago/soundWizard/soundpagefinal.h

    r1061 r1093  
    77#include <droptablewidget.h>
    88
    9 #include "logger.h"
    109#include "xmlprocessor.h"
    1110#include "converter.h"
     
    2019   
    2120public:
    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);
    2322    ~SoundPageFinal();
    2423   
     
    2726    Ui::soundpagefinal *ui;
    2827    DropTableWidget *page2Table;
    29     Logger *myLogger;
    3028    XmlProcessor *myXmlProcessor;
    3129    Converter *myConverter;
  • s10k/Vago/soundWizard/soundwizard.cpp

    r1061 r1093  
    11#include "soundwizard.h"
    22
    3 SoundWizard::SoundWizard(QString appDir, QString workspaceWizardLocation, QSettings *vagoSettings, Logger *myLogger, QHash<QString, QString> *commandMap)
    4     :AbstractWizard(appDir, workspaceWizardLocation, vagoSettings, myLogger, true)
     3SoundWizard::SoundWizard(QString appDir, QString workspaceWizardLocation, QSettings *vagoSettings, QHash<QString, QString> *commandMap)
     4    :AbstractWizard(appDir, workspaceWizardLocation, vagoSettings, true)
    55{
    66    this->appDir=appDir;
     
    1414    SoundPage4 *page4 = new SoundPage4();
    1515    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);
    1717
    1818    this->myWizard.addPage
  • s10k/Vago/soundWizard/soundwizard.h

    r1061 r1093  
    1414#include "util.h"
    1515#include "abstractwizard.h"
    16 #include "logger.h"
    1716#include "soundpage2.h"
    1817#include "soundpage3.h"
     
    2423{
    2524protected:
    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);
    2726    void exec();
    2827    QHash<QString, QString> *commandMap;
Note: See TracChangeset for help on using the changeset viewer.