- Timestamp:
- Sep 17, 2016, 3:32:34 PM (8 years ago)
- Location:
- Vago/trunk/Vago
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
Vago/trunk/Vago/Vago.pro
r1047 r1052 20 20 # http://www.antonioborondo.com/2014/10/22/zipping-and-unzipping-files-with-qt/ 21 21 INCLUDEPATH += ../Libs/zlib-1.2.8 22 LIBS += -L C:../Libs/zlib-1.2.8 -lz22 LIBS += -L../Libs/zlib-1.2.8 -lz 23 23 INCLUDEPATH += ../Libs/quazip-0.7.2/quazip 24 win32 { 24 25 LIBS += -L../Libs/quazip-0.7.2/quazip/release -lquazip 26 } 27 macx { 28 LIBS += -L../Libs/quazip-0.7.2/quazip -lquazip 29 } 25 30 26 31 macx { -
Vago/trunk/Vago/converter.cpp
r1047 r1052 62 62 63 63 commandToExec=commands.mid(currentIndex,(nextIndex-currentIndex)); 64 this->myProcess->start(UtilVago::getOniSplitExe AbsolutePath() + " " + commandToExec);64 this->myProcess->start(UtilVago::getOniSplitExecutable() + " " + commandToExec); 65 65 this->myProcess->waitForFinished(-1); 66 66 -
Vago/trunk/Vago/mainwindow.cpp
r1047 r1052 17 17 setVagoWindowTitle(); 18 18 19 if(!QFile::exists(UtilVago::getOniSplitExe AbsolutePath())){19 if(!QFile::exists(UtilVago::getOniSplitExecutableAbsolutePath())){ 20 20 UtilVago::showAndLogErrorPopUp(this->myLogger, "OniSplit not found. Please download it at "+GlobalVars::ModsDomain+" and put it the Vago's tools folder. \n\nProgram will now exit."); 21 21 exit(1); 22 22 } 23 23 24 if(!QFile::exists(UtilVago::getXmlToolsExe AbsolutePath())){24 if(!QFile::exists(UtilVago::getXmlToolsExecutableAbsolutePath())){ 25 25 UtilVago::showAndLogErrorPopUp(this->myLogger, "XmlTools not found. Please download it at "+GlobalVars::ModsDomain+" and put it the Vago's tools folder. \n\nProgram will now exit."); 26 26 exit(1); … … 1216 1216 QProcess myProcess; 1217 1217 myProcess.setWorkingDirectory(UtilVago::getAppPath()); 1218 myProcess.start(UtilVago::getOniSplitExe AbsolutePath()+" -version");1218 myProcess.start(UtilVago::getOniSplitExecutable()+" -version"); 1219 1219 myProcess.waitForFinished(); 1220 1220 … … 1228 1228 QProcess myProcess; 1229 1229 myProcess.setWorkingDirectory(UtilVago::getAppPath()); 1230 myProcess.start(UtilVago::getXmlToolsExe AbsolutePath()+" --version");1230 myProcess.start(UtilVago::getXmlToolsExecutable()+" --version"); 1231 1231 myProcess.waitForFinished(); 1232 1232 QString result=myProcess.readLine(); … … 1696 1696 1697 1697 setVagoWindowTitle(); 1698 1699 showSuccessStatusMessage("Project saved sucessfully."); 1698 1700 } 1699 1701 -
Vago/trunk/Vago/mainwindow.h
r1047 r1052 29 29 #include <QScriptEngine> 30 30 #include <QScriptValueIterator> 31 #ifdef Q_OS_WIN 31 32 #include <QWinTaskbarProgress> 32 33 #include <QWinTaskbarButton> 34 #endif 33 35 34 36 #include "libs/pugixml/pugixml.hpp" -
Vago/trunk/Vago/manualcommands.cpp
r1047 r1052 62 62 } 63 63 64 QString var = UtilVago::getOniSplitExe AbsolutePath() +" "+ui->leManualCommand->text();64 QString var = UtilVago::getOniSplitExecutable() +" "+ui->leManualCommand->text(); 65 65 66 this->myProcess->start(UtilVago::getOniSplitExe AbsolutePath()+" "+ui->leManualCommand->text());66 this->myProcess->start(UtilVago::getOniSplitExecutable()+" "+ui->leManualCommand->text()); 67 67 this->myProcess->waitForFinished(120000); //wait 2 minutes at maximum 68 68 ui->ptOutput->appendPlainText("> "+command); -
Vago/trunk/Vago/utilvago.cpp
r1047 r1052 67 67 } 68 68 69 QString getOniSplitExeAbsolutePath(){ 69 // Absolute paths 70 QString getOniSplitExecutableAbsolutePath(){ 71 return getAppPath() + "/" + GlobalVars::ToolsFolder + "/" + GlobalVars::OniSplitString; 72 } 73 74 QString getXmlToolsExecutableAbsolutePath(){ 75 return getAppPath() + "/" + GlobalVars::ToolsFolder + "/" + GlobalVars::XmlToolsString; 76 } 77 78 // Executables (includes mono if necessary) 79 QString getOniSplitExecutable(){ 70 80 71 81 #ifdef Q_OS_MAC 72 return getMonoExecutablePath() + " " + get AppPath() + "/" + GlobalVars::ToolsFolder + "/" + GlobalVars::OniSplitString;82 return getMonoExecutablePath() + " " + getOniSplitExecutableAbsolutePath(); 73 83 #else 74 return get AppPath() + "/" + GlobalVars::ToolsFolder + "/" + GlobalVars::OniSplitString;84 return getOniSplitExecutableAbsolutePath(); 75 85 #endif 76 86 } 77 87 78 QString getXmlToolsExe AbsolutePath(){79 return get AppPath() + "/" + GlobalVars::ToolsFolder + "/" + GlobalVars::XmlToolsString;88 QString getXmlToolsExecutable(){ 89 return getXmlToolsExecutableAbsolutePath(); 80 90 } 81 91 -
Vago/trunk/Vago/utilvago.h
r1047 r1052 51 51 QString getOSIndependentAppPath(); 52 52 QString getAppPath(); 53 QString getOniSplitExeAbsolutePath(); 54 QString getXmlToolsExeAbsolutePath(); 53 QString getOniSplitExecutableAbsolutePath(); 54 QString getXmlToolsExecutableAbsolutePath(); 55 QString getOniSplitExecutable(); 56 QString getXmlToolsExecutable(); 55 57 #ifdef Q_OS_MAC 56 58 QString getMonoExecutablePath(); -
Vago/trunk/Vago/xmlprocessor.cpp
r1047 r1052 19 19 for(int i=0; i<this->commands->size(); i++){ 20 20 21 myProcess.start(UtilVago::getXmlToolsExe AbsolutePath() +" "+this->commands->at(i));21 myProcess.start(UtilVago::getXmlToolsExecutable() +" "+this->commands->at(i)); 22 22 myProcess.waitForFinished(-1); 23 23 result=myProcess.readAllStandardError();
Note:
See TracChangeset
for help on using the changeset viewer.