void DataModelGUI::importSBML(const std::string & fileName) { mpProgressBar = CProgressBar::create(); mSuccess = true; mFileName = fileName; mpThread = new CQThread(this, &DataModelGUI::importSBMLRun); connect(mpThread, SIGNAL(finished()), this, SLOT(importSBMLFinished())); mpThread->start(); }
void DataModelGUI::importSBMLFinished() { if (mSuccess) { this->importCellDesigner(); CCopasiRootContainer::getConfiguration()->getRecentSBMLFiles().addFile(mFileName); mpOutputHandlerPlot->setOutputDefinitionVector(mpDataModel->getPlotDefinitionList()); linkDataModelToGUI(); } disconnect(mpThread, SIGNAL(finished()), this, SLOT(importSBMLFinished())); threadFinished(); }
void DataModelGUI::importSBMLFinished() { if (mSuccess) { #ifdef CELLDESIGNER_IMPORT this->importCellDesigner(); #endif // CELLDESIGNER_IMPORT CCopasiRootContainer::getConfiguration()->getRecentSBMLFiles().addFile(mFileName); mOutputHandlerPlot.setOutputDefinitionVector((*CCopasiRootContainer::getDatamodelList())[0]->getPlotDefinitionList()); linkDataModelToGUI(); } disconnect(mpThread, SIGNAL(finished()), this, SLOT(importSBMLFinished())); threadFinished(); }