bool DataModelGUI::createModel() { assert(CCopasiRootContainer::getDatamodelList()->size() > 0); if (!(*CCopasiRootContainer::getDatamodelList())[0]->newModel(NULL, false)) return false; mOutputHandlerPlot.setOutputDefinitionVector((*CCopasiRootContainer::getDatamodelList())[0]->getPlotDefinitionList()); linkDataModelToGUI(); return true; }
bool DataModelGUI::createModel() { assert(mpDataModel != NULL); if (!mpDataModel->newModel(NULL, false)) return false; mpOutputHandlerPlot->setOutputDefinitionVector(mpDataModel->getPlotDefinitionList()); linkDataModelToGUI(); return true; }
void DataModelGUI::importCombineFinished() { if (mSuccess) { mpOutputHandlerPlot->setOutputDefinitionVector(mpDataModel->getPlotDefinitionList()); linkDataModelToGUI(); } disconnect(mpThread, SIGNAL(finished()), this, SLOT(importCombineFinished())); threadFinished(); }
void DataModelGUI::loadModelFinished() { if (mSuccess) { CCopasiRootContainer::getConfiguration()->getRecentFiles().addFile(mFileName); mOutputHandlerPlot.setOutputDefinitionVector((*CCopasiRootContainer::getDatamodelList())[0]->getPlotDefinitionList()); linkDataModelToGUI(); } disconnect(mpThread, SIGNAL(finished()), this, SLOT(loadModelFinished())); threadFinished(); }
void DataModelGUI::importSEDMLFinished() { if (mSuccess) { CCopasiRootContainer::getConfiguration()->getRecentSEDMLFiles().addFile(mFileName); mpOutputHandlerPlot->setOutputDefinitionVector(mpDataModel->getPlotDefinitionList()); linkDataModelToGUI(); } disconnect(mpThread, SIGNAL(finished()), this, SLOT(importSEDMLFinished())); 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(); }
void DataModelGUI::importSBMLFromStringFinished() { mSBMLImportString = ""; if (mSuccess) { // can't run this in a separate thread because it uses GUI routines // TODO maybe put the main part of this routine in a separate thread after // TODO asking the user this->importCellDesigner(); mpOutputHandlerPlot->setOutputDefinitionVector(mpDataModel->getPlotDefinitionList()); linkDataModelToGUI(); } disconnect(mpThread, SIGNAL(finished()), this, SLOT(importSBMLFromStringFinished())); threadFinished(); }
void DataModelGUI::importSBMLFromStringFinished() { mSBMLImportString = ""; if (mSuccess) { // can't run this in a separate thread because it uses GUI routines // TODO maybe put the main part of this routine in a separate thread after // TODO asking the user #ifdef CELLDESIGNER_IMPORT this->importCellDesigner(); #endif // CELLDESIGNER_IMPORT mOutputHandlerPlot.setOutputDefinitionVector((*CCopasiRootContainer::getDatamodelList())[0]->getPlotDefinitionList()); linkDataModelToGUI(); } disconnect(mpThread, SIGNAL(finished()), this, SLOT(importSBMLFromStringFinished())); threadFinished(); }