void DataModelGUI::exportCombineFinished() { disconnect(mpThread, SIGNAL(finished()), this, SLOT(exportSBMLFinished())); threadFinished(); }
void DataModelGUI::exportSBMLFinished() { if (mSuccess) CCopasiRootContainer::getConfiguration()->getRecentSBMLFiles().addFile(mFileName); disconnect(mpThread, SIGNAL(finished()), this, SLOT(exportSBMLFinished())); threadFinished(); }
void DataModelGUI::exportSBML(const std::string & fileName, bool overwriteFile, int sbmlLevel, int sbmlVersion, bool exportIncomplete, bool exportCOPASIMIRIAM) { mpProgressBar = CProgressBar::create(); mSuccess = true; mFileName = fileName; mOverWrite = overwriteFile; mSBMLLevel = sbmlLevel; mSBMLVersion = sbmlVersion; mSBMLExportIncomplete = exportIncomplete; mSBMLExportCOPASIMIRIAM = exportCOPASIMIRIAM; mpThread = new CQThread(this, &DataModelGUI::exportSBMLRun); connect(mpThread, SIGNAL(finished()), this, SLOT(exportSBMLFinished())); mpThread->start(); }