| 77 |
|
bool priorityLowImp = false, priorityNormalImp = false, |
| 78 |
|
priorityHighImp = false, priorityHighestImp = false; |
| 79 |
|
|
| 80 |
+ |
// Create temp folder if it doesn't exist |
| 81 |
+ |
if(!QDir(GlobalVars::VagoTemporaryDir).exists()){ |
| 82 |
+ |
QDir().mkdir(GlobalVars::VagoTemporaryDir); |
| 83 |
+ |
} |
| 84 |
+ |
|
| 85 |
|
// Get data page 2 |
| 86 |
|
if(field("rbOther").toBool()){ |
| 87 |
|
outputFolder=field("leOtherLocation").toString(); |
| 96 |
|
priorityNormal=field("rbPriorityNormal").toBool(); |
| 97 |
|
priorityHigh=field("rbPriorityHigh").toBool(); |
| 98 |
|
priorityHighest=field("rbPriorityHighest").toBool(); |
| 99 |
+ |
interruptOnStop=field("cbInterruptOnStop").toBool(); |
| 100 |
+ |
playOnce=field("cbPlayOnce").toBool(); |
| 101 |
+ |
canPan=field("cbCanPan").toBool(); |
| 102 |
|
|
| 103 |
|
if(priorityNormal){ |
| 104 |
|
priority="Normal"; |
| 125 |
|
flags << "CanPan"; |
| 126 |
|
} |
| 127 |
|
|
| 120 |
– |
interruptOnStop=field("cbInterruptOnStop").toBool(); |
| 121 |
– |
playOnce=field("cbPlayOnce").toBool(); |
| 122 |
– |
canPan=field("cbCanPan").toBool(); |
| 123 |
– |
|
| 128 |
|
sphereRadious=Util::normalizeDecimalSeparator(field("leSphereRadious").toString()); |
| 129 |
|
minElapsedTime=Util::normalizeDecimalSeparator(field("leMinElapsedTime").toString()); |
| 130 |
|
maxElapsedTime=Util::normalizeDecimalSeparator(field("leMaxElapsedTime").toString()); |
| 205 |
|
|
| 206 |
|
(*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(flags.join(" ")))+" -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" |