COPASI API
4.16.103
|
#include <CQSimpleSelectionTree.h>
Public Types | |
enum | ObjectClass { InitialTime = 0x01, Parameters = 0x02, Variables = 0x04, ObservedConstants = 0x08, Time = 0x10, ObservedValues = 0x20, Results = 0x40, NumericValues = 0x80, AnyObject = 0x100, EventTarget = 0x200 } |
typedef int | ObjectClasses |
Public Slots | |
virtual void | commitClicked () |
Public Member Functions | |
CQSimpleSelectionTree (QWidget *parent) | |
void | populateTree (const CModel *pModel, const ObjectClasses &classes) |
void | setOutputVector (std::vector< const CCopasiObject * > *outputVector) |
~CQSimpleSelectionTree () | |
Destructor. More... | |
Static Public Member Functions | |
static bool | filter (const ObjectClasses &classes, const CCopasiObject *pObject) |
Protected Member Functions | |
QTreeWidgetItem * | findListViewItem (const CCopasiObject *object) |
std::vector< const CCopasiObject * > * | getTreeSelection () |
bool | isMetaboliteNameUnique (const std::string &name, const CCopasiVector< CMetab > &metabolites) |
void | removeEmptySubTree (QTreeWidgetItem **ppSubTree) |
void | selectObjects (std::vector< const CCopasiObject * > *objects) |
bool | treeHasSelection () |
Definition at line 22 of file CQSimpleSelectionTree.h.
typedef int CQSimpleSelectionTree::ObjectClasses |
Definition at line 41 of file CQSimpleSelectionTree.h.
Enumerator | |
---|---|
InitialTime | |
Parameters | |
Variables | |
ObservedConstants | |
Time | |
ObservedValues | |
Results | |
NumericValues | |
AnyObject | |
EventTarget |
Definition at line 27 of file CQSimpleSelectionTree.h.
CQSimpleSelectionTree::CQSimpleSelectionTree | ( | QWidget * | parent | ) |
Definition at line 48 of file CQSimpleSelectionTree.cpp.
References mpCompartmentInitialVolumeSubtree, mpCompartmentRateSubtree, mpCompartmentSubtree, mpCompartmentTransientVolumeSubtree, mpExpertSubtree, mpMetaboliteInitialConcentrationSubtree, mpMetaboliteInitialNumberSubtree, mpMetaboliteRateConcentrationSubtree, mpMetaboliteRateNumberSubtree, mpMetaboliteSubtree, mpMetaboliteTransientConcentrationSubtree, mpMetaboliteTransientNumberSubtree, mpModelMatrixSubtree, mpModelQuantityInitialValueSubtree, mpModelQuantityRateSubtree, mpModelQuantitySubtree, mpModelQuantityTransientValueSubtree, mpReactionFluxConcentrationSubtree, mpReactionFluxNumberSubtree, mpReactionParameterSubtree, mpReactionSubtree, mpResultMatrixSubtree, mpResultMCASubtree, mpResultSensitivitySubtree, mpResultSteadyStateSubtree, mpResultTSSASubtree, and mpTimeSubtree.
CQSimpleSelectionTree::~CQSimpleSelectionTree | ( | ) |
|
virtualslot |
Definition at line 817 of file CQSimpleSelectionTree.cpp.
References getTreeSelection(), and mpOutputVector.
Referenced by CCopasiSelectionWidget::commit(), and CCopasiSelectionWidget::setExpertMode().
|
static |
Definition at line 852 of file CQSimpleSelectionTree.cpp.
References AnyObject, CModelEntity::ASSIGNMENT, EventTarget, CModelEntity::FIXED, CModelEntity::getInitialExpression(), CCopasiObject::getObjectAncestor(), CCopasiObject::getObjectName(), CCopasiObject::getObjectParent(), CModelEntity::getStatus(), InitialTime, CCopasiObject::isArray(), CReaction::isLocalParameter(), CCopasiObject::isValueDbl(), CCopasiObject::isValueInt(), CCopasiObject::isValueInt64(), NumericValues, ObservedConstants, ObservedValues, CModelEntity::ODE, Parameters, pTask, CModelEntity::REACTIONS, Results, Time, CModelEntity::TIME, and Variables.
Referenced by populateTree(), CQExpressionWidget::slotSelectObject(), and CQExperimentData::slotTypeChanged().
|
protected |
Definition at line 754 of file CQSimpleSelectionTree.cpp.
References treeItems.
Referenced by selectObjects().
|
protected |
Definition at line 653 of file CQSimpleSelectionTree.cpp.
References treeItems.
Referenced by commitClicked().
|
protected |
Definition at line 729 of file CQSimpleSelectionTree.cpp.
References CCopasiObject::getObjectName(), and CCopasiVector< T >::size().
Referenced by populateTree().
void CQSimpleSelectionTree::populateTree | ( | const CModel * | pModel, |
const ObjectClasses & | classes | ||
) |
Definition at line 115 of file CQSimpleSelectionTree.cpp.
References CMatrix< CType >::array(), CModelEntity::ASSIGNMENT, filter(), FROM_UTF8, CMetab::getCompartment(), CModel::getCompartments(), CMetab::getConcentrationRateReference(), CMetab::getConcentrationReference(), CCopasiRootContainer::getDatamodelList(), CCopasiDataModel::getDataObject(), CMetab::getInitialConcentrationReference(), CModelEntity::getInitialValueReference(), CModel::getL0(), CModel::getMetabolites(), CCopasiTask::getMethod(), CModel::getModelValues(), CCopasiContainer::getObject(), CReaction::getObject(), CCopasiObject::getObjectDataModel(), CCopasiObject::getObjectName(), CCopasiContainer::getObjects(), CReaction::getParameters(), CCopasiTask::getProblem(), CModelEntity::getRateReference(), CModel::getReactions(), CModel::getRedStoi(), CModelEntity::getStatus(), CModel::getStoi(), CCopasiMethod::getSubType(), CCopasiDataModel::getTaskList(), CModelEntity::getValueReference(), CArrayAnnotation::isEmpty(), CReaction::isLocalParameter(), isMetaboliteNameUnique(), mpCompartmentInitialVolumeSubtree, mpCompartmentRateSubtree, mpCompartmentSubtree, mpCompartmentTransientVolumeSubtree, mpMetaboliteInitialConcentrationSubtree, mpMetaboliteInitialNumberSubtree, mpMetaboliteRateConcentrationSubtree, mpMetaboliteRateNumberSubtree, mpMetaboliteSubtree, mpMetaboliteTransientConcentrationSubtree, mpMetaboliteTransientNumberSubtree, mpModelMatrixSubtree, mpModelQuantityInitialValueSubtree, mpModelQuantityRateSubtree, mpModelQuantitySubtree, mpModelQuantityTransientValueSubtree, mpReactionFluxConcentrationSubtree, mpReactionFluxNumberSubtree, mpReactionParameterSubtree, mpReactionSubtree, mpResultMatrixSubtree, mpResultMCASubtree, mpResultSensitivitySubtree, mpResultSteadyStateSubtree, mpResultTSSASubtree, mpTimeSubtree, Parameters, removeEmptySubTree(), CCopasiVector< T >::size(), CCopasiParameterGroup::size(), treeItems, CCopasiMethod::tssCSP, and CCopasiTask::updateMatrices().
Referenced by CCopasiSelectionWidget::populateTree().
|
protected |
Definition at line 983 of file CQSimpleSelectionTree.cpp.
References pdelete.
Referenced by populateTree(), and selectObjects().
|
protected |
Definition at line 774 of file CQSimpleSelectionTree.cpp.
References findListViewItem(), FROM_UTF8, CCopasiObject::getObjectDisplayName(), mpExpertSubtree, removeEmptySubTree(), and treeItems.
Referenced by setOutputVector().
void CQSimpleSelectionTree::setOutputVector | ( | std::vector< const CCopasiObject * > * | outputVector | ) |
Definition at line 841 of file CQSimpleSelectionTree.cpp.
References mpOutputVector, and selectObjects().
Referenced by CCopasiSelectionWidget::setExpertMode(), and CCopasiSelectionWidget::setOutputVector().
|
protected |
Definition at line 634 of file CQSimpleSelectionTree.cpp.
|
protected |
Definition at line 71 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 72 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 69 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 70 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 73 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and selectObjects().
|
protected |
Definition at line 61 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 62 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 63 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 64 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 58 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 59 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 60 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 74 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 67 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 68 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 65 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 66 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 82 of file CQSimpleSelectionTree.h.
Referenced by commitClicked(), and setOutputVector().
|
protected |
Definition at line 56 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 57 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 55 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 54 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 75 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 78 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 77 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 76 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 79 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 53 of file CQSimpleSelectionTree.h.
Referenced by CQSimpleSelectionTree(), and populateTree().
|
protected |
Definition at line 81 of file CQSimpleSelectionTree.h.
Referenced by findListViewItem(), getTreeSelection(), populateTree(), and selectObjects().