COPASI API
4.16.103
|
#include <CQFittingItemWidget.h>
Public Types | |
enum | ItemType { OPT_ITEM = 0, OPT_CONSTRAINT, FIT_ITEM, FIT_CONSTRAINT } |
Signals | |
void | numberChanged (int) |
Public Member Functions | |
CQFittingItemWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
virtual bool | load (CCopasiDataModel *pDataModel, CCopasiParameterGroup *pItems, const std::map< std::string, std::string > *pExperimentMap, const std::map< std::string, std::string > *pCrossValidationMap) |
virtual bool | save (const std::map< std::string, std::string > *pExperimentMap, const std::map< std::string, std::string > *pCrossValidationMap) |
void | setCrossValidationSet (const CCrossValidationSet *&pCrossValidationSet) |
void | setExperimentSet (const CExperimentSet *&pExperimentSet) |
void | setItemType (const ItemType &type) |
~CQFittingItemWidget () | |
Protected Attributes | |
QColor | mChangedColor |
size_t | mCurrentRow |
ItemType | mItemType |
bool | mLowerInfChanged |
const CCopasiDataModel * | mpDataModel |
CCopasiParameterGroup * | mpItems |
std::vector< COptItem * > * | mpItemsCopy |
const CCopasiObject * | mpLowerObject |
CQValidatorBound * | mpLowerValidator |
CCopasiObjectName * | mpObjectCN |
CQValidatorNotEmpty * | mpObjectValidator |
const CCrossValidationSet ** | mppCrossValidationSet |
const CExperimentSet ** | mppExperimentSet |
const CCopasiObject * | mpUpperObject |
CQValidatorBound * | mpUpperValidator |
QColor | mSavedColor |
std::set< size_t > | mSelection |
bool | mUpperInfChanged |
Private Slots | |
void | slotCheckAllCrossValidations (bool checked) |
void | slotCheckAllExperiments (bool checked) |
void | slotCheckLowerInf (bool checked) |
void | slotCheckUpperInf (bool checked) |
void | slotCopy () |
void | slotCrossValidationChanged () |
void | slotCrossValidations () |
void | slotDelete () |
void | slotDown () |
void | slotDuplicatePerExperiment () |
void | slotExperimentChanged () |
void | slotExperiments () |
void | slotLowerEdit () |
void | slotLowerLostFocus () |
void | slotNew () |
void | slotParamEdit () |
void | slotReset () |
void | slotSelectionChanged () |
void | slotStartLostFocus () |
void | slotUp () |
void | slotUpperEdit () |
void | slotUpperLostFocus () |
Private Member Functions | |
size_t | currentRow () |
void | destroy () |
void | init () |
void | loadSelection () |
void | saveSelection () |
void | selectRow (const size_t &row) |
void | setItemSelection (const std::set< size_t > &selection) |
void | setTableText (const int &row, const COptItem *pItem) |
Definition at line 41 of file CQFittingItemWidget.h.
Enumerator | |
---|---|
OPT_ITEM | |
OPT_CONSTRAINT | |
FIT_ITEM | |
FIT_CONSTRAINT |
Definition at line 49 of file CQFittingItemWidget.h.
CQFittingItemWidget::CQFittingItemWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 44 of file CQFittingItemWidget.cpp.
References CQIconResource::copasi, CQIconResource::editAdd, CQIconResource::editCopy, CQIconResource::editDelete, CQIconResource::icon(), init(), CQIconResource::moveDown, CQIconResource::moveUp, and CQIconResource::tool.
CQFittingItemWidget::~CQFittingItemWidget | ( | ) |
|
private |
Definition at line 1243 of file CQFittingItemWidget.cpp.
References C_INVALID_INDEX, and mSelection.
Referenced by slotParamEdit(), and slotSelectionChanged().
|
private |
Definition at line 125 of file CQFittingItemWidget.cpp.
References mpItemsCopy, and pdelete.
Referenced by ~CQFittingItemWidget().
|
private |
Definition at line 79 of file CQFittingItemWidget.cpp.
References C_INVALID_INDEX, mChangedColor, mCurrentRow, mLowerInfChanged, mpItemsCopy, mpLowerValidator, mpObjectValidator, mppCrossValidationSet, mppExperimentSet, mpUpperValidator, mSavedColor, mUpperInfChanged, OPT_ITEM, CQValidator< Type >::revalidate(), and setItemType().
Referenced by CQFittingItemWidget().
|
virtual |
Definition at line 487 of file CQFittingItemWidget.cpp.
References C_INVALID_INDEX, CCopasiMessage::ERROR, FIT_CONSTRAINT, FIT_ITEM, CFitItem::getCrossValidation(), CFitItem::getCrossValidationCount(), CFitItem::getExperiment(), CFitItem::getExperimentCount(), COptItem::getObjectCN(), mCurrentRow, mItemType, mpDataModel, mpItems, mpItemsCopy, mSelection, numberChanged(), OPT_CONSTRAINT, OPT_ITEM, pdelete, selectRow(), setTableText(), CCopasiParameterGroup::size(), and slotSelectionChanged().
|
private |
Definition at line 1270 of file CQFittingItemWidget.cpp.
References CCopasiParameterGroup::clear(), FIT_CONSTRAINT, FIT_ITEM, FROM_UTF8, CKeyFactory::get(), CCopasiDataModel::getDataObject(), CCopasiRootContainer::getKeyFactory(), COptItem::getLowerBound(), COptItem::getObjectCN(), CCopasiObject::getObjectDisplayName(), CCopasiObject::getObjectName(), COptItem::getStartValue(), COptItem::getUpperBound(), isNumber(), mItemType, mLowerInfChanged, mpDataModel, mpLowerObject, mpLowerValidator, mpObjectValidator, mpUpperObject, mpUpperValidator, mSavedColor, mSelection, mUpperInfChanged, CQValidator< Type >::saved(), slotCheckAllCrossValidations(), slotCheckAllExperiments(), and CQValidatorNotEmpty::validate().
Referenced by selectRow(), slotCheckAllCrossValidations(), slotCheckAllExperiments(), slotCrossValidationChanged(), slotCrossValidations(), slotDown(), slotExperimentChanged(), slotExperiments(), slotParamEdit(), slotReset(), slotSelectionChanged(), and slotUp().
|
signal |
Referenced by load(), slotCopy(), slotDelete(), slotDuplicatePerExperiment(), slotNew(), and slotParamEdit().
|
virtual |
Definition at line 594 of file CQFittingItemWidget.cpp.
References CFitItem::addCrossValidation(), CFitItem::addExperiment(), CCopasiParameterGroup::addParameter(), C_INVALID_INDEX, FIT_CONSTRAINT, FIT_ITEM, CFitItem::getCrossValidation(), CFitItem::getCrossValidationCount(), CFitItem::getExperiment(), CFitItem::getExperimentCount(), min, mItemType, mpItems, mpItemsCopy, OPT_CONSTRAINT, OPT_ITEM, CFitItem::removeCrossValidation(), CFitItem::removeExperiment(), CCopasiParameterGroup::removeParameter(), saveSelection(), and CCopasiParameterGroup::size().
|
private |
Definition at line 1485 of file CQFittingItemWidget.cpp.
References isNumber(), mLowerInfChanged, mpLowerValidator, mpObjectValidator, mpUpperValidator, mSavedColor, mSelection, mUpperInfChanged, CQValidator< Type >::saved(), COptItem::setLowerBound(), COptItem::setStartValue(), setTableText(), COptItem::setUpperBound(), and TO_UTF8.
Referenced by save(), slotCopy(), slotDown(), slotDuplicatePerExperiment(), slotNew(), slotParamEdit(), slotSelectionChanged(), and slotUp().
|
private |
Definition at line 1522 of file CQFittingItemWidget.cpp.
References C_INVALID_INDEX, loadSelection(), mSelection, and slotSelectionChanged().
Referenced by load(), slotCopy(), slotDelete(), slotDuplicatePerExperiment(), slotNew(), and slotParamEdit().
void CQFittingItemWidget::setCrossValidationSet | ( | const CCrossValidationSet *& | pCrossValidationSet | ) |
Definition at line 1771 of file CQFittingItemWidget.cpp.
References CExperimentSet::getExperimentCount(), and mppCrossValidationSet.
Referenced by slotCrossValidationChanged().
void CQFittingItemWidget::setExperimentSet | ( | const CExperimentSet *& | pExperimentSet | ) |
Definition at line 878 of file CQFittingItemWidget.cpp.
References mppExperimentSet.
|
private |
Definition at line 1541 of file CQFittingItemWidget.cpp.
References mSelection, and slotSelectionChanged().
Referenced by slotDown(), and slotUp().
Definition at line 802 of file CQFittingItemWidget.cpp.
References FIT_CONSTRAINT, FIT_ITEM, mItemType, and OPT_CONSTRAINT.
Referenced by init().
Definition at line 1187 of file CQFittingItemWidget.cpp.
References FIT_CONSTRAINT, FIT_ITEM, FROM_UTF8, CCopasiDataModel::getDataObject(), COptItem::getLowerBound(), COptItem::getObjectCN(), CCopasiObject::getObjectDisplayName(), COptItem::getStartValue(), COptItem::getUpperBound(), isNumber(), mItemType, mpDataModel, and OPT_ITEM.
Referenced by load(), saveSelection(), slotCheckAllCrossValidations(), slotCheckAllExperiments(), slotCheckLowerInf(), slotCheckUpperInf(), slotCopy(), slotCrossValidationChanged(), slotCrossValidations(), slotDuplicatePerExperiment(), slotExperimentChanged(), slotExperiments(), slotLowerEdit(), slotLowerLostFocus(), slotNew(), slotParamEdit(), slotReset(), slotStartLostFocus(), slotUpperEdit(), and slotUpperLostFocus().
|
privateslot |
Definition at line 1783 of file CQFittingItemWidget.cpp.
References loadSelection(), mItemType, mpItemsCopy, mSelection, OPT_CONSTRAINT, OPT_ITEM, setTableText(), and slotCrossValidations().
Referenced by loadSelection().
|
privateslot |
Definition at line 1804 of file CQFittingItemWidget.cpp.
References loadSelection(), mItemType, mpItemsCopy, mSelection, OPT_CONSTRAINT, OPT_ITEM, setTableText(), and slotExperiments().
Referenced by loadSelection().
|
privateslot |
Definition at line 136 of file CQFittingItemWidget.cpp.
References CCopasiObject::getCN(), isNumber(), mChangedColor, mLowerInfChanged, mpItemsCopy, mpLowerObject, mpLowerValidator, mSavedColor, mSelection, CQValidator< Type >::revalidate(), setTableText(), and TO_UTF8.
|
privateslot |
Definition at line 173 of file CQFittingItemWidget.cpp.
References CCopasiObject::getCN(), isNumber(), mChangedColor, mpItemsCopy, mpUpperObject, mpUpperValidator, mSavedColor, mSelection, mUpperInfChanged, CQValidator< Type >::revalidate(), setTableText(), and TO_UTF8.
|
privateslot |
Definition at line 922 of file CQFittingItemWidget.cpp.
References FIT_CONSTRAINT, FIT_ITEM, mCurrentRow, mItemType, mpItemsCopy, mSelection, numberChanged(), OPT_CONSTRAINT, OPT_ITEM, saveSelection(), selectRow(), setTableText(), slotNew(), and slotSelectionChanged().
|
privateslot |
Definition at line 1739 of file CQFittingItemWidget.cpp.
References CKeyFactory::get(), CCopasiRootContainer::getKeyFactory(), loadSelection(), mItemType, mpItemsCopy, mppCrossValidationSet, OPT_CONSTRAINT, OPT_ITEM, CFitItem::removeCrossValidation(), setCrossValidationSet(), and setTableText().
|
privateslot |
Definition at line 1706 of file CQFittingItemWidget.cpp.
References FIT_CONSTRAINT, FIT_ITEM, CQExperimentSelection::load(), loadSelection(), mItemType, mpItemsCopy, mppCrossValidationSet, mSelection, setTableText(), slotNew(), and TO_UTF8.
Referenced by slotCheckAllCrossValidations().
|
privateslot |
Definition at line 881 of file CQFittingItemWidget.cpp.
References mCurrentRow, mpItemsCopy, mSelection, numberChanged(), pdelete, selectRow(), and slotSelectionChanged().
|
privateslot |
Definition at line 1005 of file CQFittingItemWidget.cpp.
References loadSelection(), mSelection, saveSelection(), and setItemSelection().
|
privateslot |
Definition at line 1039 of file CQFittingItemWidget.cpp.
References CFitItem::addExperiment(), C_INVALID_INDEX, FIT_CONSTRAINT, FIT_ITEM, mCurrentRow, mItemType, mpItemsCopy, mSelection, numberChanged(), OPT_CONSTRAINT, OPT_ITEM, CFitItem::removeExperiment(), saveSelection(), selectRow(), setTableText(), slotNew(), and slotSelectionChanged().
|
privateslot |
Definition at line 849 of file CQFittingItemWidget.cpp.
References CKeyFactory::get(), CCopasiRootContainer::getKeyFactory(), loadSelection(), mItemType, mpItemsCopy, OPT_CONSTRAINT, OPT_ITEM, CFitItem::removeExperiment(), and setTableText().
|
privateslot |
Definition at line 454 of file CQFittingItemWidget.cpp.
References FIT_CONSTRAINT, FIT_ITEM, CQExperimentSelection::load(), loadSelection(), mItemType, mpItemsCopy, mppExperimentSet, mSelection, setTableText(), slotNew(), and TO_UTF8.
Referenced by slotCheckAllExperiments().
|
privateslot |
Definition at line 210 of file CQFittingItemWidget.cpp.
References FIT_CONSTRAINT, FIT_ITEM, CQValidatorBound::force(), FROM_UTF8, CCopasiObject::getCN(), CCopasiObject::getObjectDisplayName(), CCopasiSelectionDialog::getObjectSingle(), CQSimpleSelectionTree::InitialTime, mItemType, mpItemsCopy, mpLowerObject, mpLowerValidator, mSelection, CQSimpleSelectionTree::ObservedConstants, CQSimpleSelectionTree::ObservedValues, OPT_CONSTRAINT, OPT_ITEM, CQSimpleSelectionTree::Parameters, setTableText(), slotNew(), CQSimpleSelectionTree::Time, and CQSimpleSelectionTree::Variables.
|
privateslot |
Definition at line 1564 of file CQFittingItemWidget.cpp.
References FROM_UTF8, isNumber(), mpItemsCopy, mpLowerObject, mSelection, setTableText(), and TO_UTF8.
|
privateslot |
Definition at line 1144 of file CQFittingItemWidget.cpp.
References FIT_CONSTRAINT, FIT_ITEM, mItemType, mpDataModel, mpItemsCopy, numberChanged(), OPT_CONSTRAINT, OPT_ITEM, saveSelection(), selectRow(), setTableText(), and slotSelectionChanged().
Referenced by slotCopy(), slotCrossValidations(), slotDuplicatePerExperiment(), slotExperiments(), slotLowerEdit(), and slotUpperEdit().
|
privateslot |
Definition at line 320 of file CQFittingItemWidget.cpp.
References C_INVALID_INDEX, currentRow(), FIT_CONSTRAINT, FIT_ITEM, CCopasiSelectionDialog::getObjectSingle(), CCopasiSelectionDialog::getObjectVector(), CQSimpleSelectionTree::InitialTime, loadSelection(), mItemType, mpDataModel, mpItemsCopy, mSelection, numberChanged(), CQSimpleSelectionTree::ObservedConstants, CQSimpleSelectionTree::ObservedValues, OPT_CONSTRAINT, OPT_ITEM, CQSimpleSelectionTree::Parameters, CQSimpleSelectionTree::Results, saveSelection(), selectRow(), COptItem::setObjectCN(), setTableText(), slotSelectionChanged(), CQSimpleSelectionTree::Time, and CQSimpleSelectionTree::Variables.
|
privateslot |
Definition at line 1634 of file CQFittingItemWidget.cpp.
References CCopasiObject::getObjectParent(), COptProblem::getSolutionVariables(), loadSelection(), CQStartValueReset::MODEL, mpItems, mpItemsCopy, mSelection, pdelete, CQStartValueReset::RANDOM, setTableText(), CVectorCore< CType >::size(), CCopasiParameterGroup::size(), and CQStartValueReset::SOLUTION.
|
privateslot |
Definition at line 1251 of file CQFittingItemWidget.cpp.
References currentRow(), loadSelection(), mCurrentRow, mSelection, and saveSelection().
Referenced by load(), selectRow(), setItemSelection(), slotCopy(), slotDelete(), slotDuplicatePerExperiment(), slotNew(), and slotParamEdit().
|
privateslot |
Definition at line 1690 of file CQFittingItemWidget.cpp.
References C_FLOAT64, isNumber(), mpItemsCopy, mSelection, setTableText(), and TO_UTF8.
|
privateslot |
Definition at line 972 of file CQFittingItemWidget.cpp.
References loadSelection(), mSelection, saveSelection(), and setItemSelection().
|
privateslot |
Definition at line 265 of file CQFittingItemWidget.cpp.
References FIT_CONSTRAINT, FIT_ITEM, CQValidatorBound::force(), FROM_UTF8, CCopasiObject::getCN(), CCopasiObject::getObjectDisplayName(), CCopasiSelectionDialog::getObjectSingle(), CQSimpleSelectionTree::InitialTime, mItemType, mpItemsCopy, mpUpperObject, mpUpperValidator, mSelection, CQSimpleSelectionTree::ObservedConstants, CQSimpleSelectionTree::ObservedValues, OPT_CONSTRAINT, OPT_ITEM, CQSimpleSelectionTree::Parameters, setTableText(), slotNew(), CQSimpleSelectionTree::Time, and CQSimpleSelectionTree::Variables.
|
privateslot |
Definition at line 1599 of file CQFittingItemWidget.cpp.
References FROM_UTF8, isNumber(), mpItemsCopy, mpUpperObject, mSelection, setTableText(), and TO_UTF8.
|
protected |
Definition at line 71 of file CQFittingItemWidget.h.
Referenced by init(), slotCheckLowerInf(), and slotCheckUpperInf().
|
protected |
Definition at line 68 of file CQFittingItemWidget.h.
Referenced by init(), load(), slotCopy(), slotDelete(), slotDuplicatePerExperiment(), and slotSelectionChanged().
|
protected |
Definition at line 70 of file CQFittingItemWidget.h.
Referenced by load(), loadSelection(), save(), setItemType(), setTableText(), slotCheckAllCrossValidations(), slotCheckAllExperiments(), slotCopy(), slotCrossValidationChanged(), slotCrossValidations(), slotDuplicatePerExperiment(), slotExperimentChanged(), slotExperiments(), slotLowerEdit(), slotNew(), slotParamEdit(), and slotUpperEdit().
|
protected |
Definition at line 74 of file CQFittingItemWidget.h.
Referenced by init(), loadSelection(), saveSelection(), and slotCheckLowerInf().
|
protected |
Definition at line 65 of file CQFittingItemWidget.h.
Referenced by load(), loadSelection(), setTableText(), slotNew(), and slotParamEdit().
|
protected |
Definition at line 82 of file CQFittingItemWidget.h.
Referenced by load(), save(), and slotReset().
|
protected |
Definition at line 69 of file CQFittingItemWidget.h.
Referenced by destroy(), init(), load(), save(), slotCheckAllCrossValidations(), slotCheckAllExperiments(), slotCheckLowerInf(), slotCheckUpperInf(), slotCopy(), slotCrossValidationChanged(), slotCrossValidations(), slotDelete(), slotDuplicatePerExperiment(), slotExperimentChanged(), slotExperiments(), slotLowerEdit(), slotLowerLostFocus(), slotNew(), slotParamEdit(), slotReset(), slotStartLostFocus(), slotUpperEdit(), and slotUpperLostFocus().
|
protected |
Definition at line 79 of file CQFittingItemWidget.h.
Referenced by loadSelection(), slotCheckLowerInf(), slotLowerEdit(), and slotLowerLostFocus().
|
protected |
Definition at line 76 of file CQFittingItemWidget.h.
Referenced by init(), loadSelection(), saveSelection(), slotCheckLowerInf(), and slotLowerEdit().
|
protected |
Definition at line 80 of file CQFittingItemWidget.h.
|
protected |
Definition at line 77 of file CQFittingItemWidget.h.
Referenced by init(), loadSelection(), and saveSelection().
|
protected |
Definition at line 66 of file CQFittingItemWidget.h.
Referenced by init(), setCrossValidationSet(), slotCrossValidationChanged(), and slotCrossValidations().
|
protected |
Definition at line 81 of file CQFittingItemWidget.h.
Referenced by init(), setExperimentSet(), and slotExperiments().
|
protected |
Definition at line 78 of file CQFittingItemWidget.h.
Referenced by loadSelection(), slotCheckUpperInf(), slotUpperEdit(), and slotUpperLostFocus().
|
protected |
Definition at line 75 of file CQFittingItemWidget.h.
Referenced by init(), loadSelection(), saveSelection(), slotCheckUpperInf(), and slotUpperEdit().
|
protected |
Definition at line 72 of file CQFittingItemWidget.h.
Referenced by init(), loadSelection(), saveSelection(), slotCheckLowerInf(), and slotCheckUpperInf().
|
protected |
Definition at line 67 of file CQFittingItemWidget.h.
Referenced by currentRow(), load(), loadSelection(), saveSelection(), selectRow(), setItemSelection(), slotCheckAllCrossValidations(), slotCheckAllExperiments(), slotCheckLowerInf(), slotCheckUpperInf(), slotCopy(), slotCrossValidations(), slotDelete(), slotDown(), slotDuplicatePerExperiment(), slotExperiments(), slotLowerEdit(), slotLowerLostFocus(), slotParamEdit(), slotReset(), slotSelectionChanged(), slotStartLostFocus(), slotUp(), slotUpperEdit(), and slotUpperLostFocus().
|
protected |
Definition at line 73 of file CQFittingItemWidget.h.
Referenced by init(), loadSelection(), saveSelection(), and slotCheckUpperInf().