COPASI API
4.16.103
|
#include <CCopasiSelectionDialog.h>
Public Member Functions | |
CCopasiSelectionDialog (QWidget *parent=0, const char *name=0, bool modal=false) | |
void | enableExpertMode (bool enable) |
void | setModel (const CModel *model, const CQSimpleSelectionTree::ObjectClasses &classes) |
void | setOutputVector (std::vector< const CCopasiObject * > *outputVector) |
void | setSingleSelection (bool singleSelectionMode) |
~CCopasiSelectionDialog () | |
Static Public Member Functions | |
static std::vector< const CCopasiObject * > | chooseCellMatrix (const CArrayAnnotation *pArrayAnnotation, bool single, bool value, std::string caption="") |
static const CCopasiObject * | getObjectSingle (QWidget *pParent, const CQSimpleSelectionTree::ObjectClasses &classes, const CCopasiObject *pCurrentObject=NULL) |
static std::vector< const CCopasiObject * > | getObjectVector (QWidget *pParent, const CQSimpleSelectionTree::ObjectClasses &classes, const std::vector< const CCopasiObject * > *pCurrentSelection=NULL) |
Protected Slots | |
void | cancelButton_clicked () |
void | modeButton_toggled (bool checked) |
void | okButton_clicked () |
Protected Attributes | |
bool | mExpertMode |
bool | mExpertModeEnabled |
QHBoxLayout * | mpButtonBox |
QVBoxLayout * | mpMainLayout |
QWidget * | mpMainWidget |
QCheckBox * | mpModeCheckBox |
std::vector< const CCopasiObject * > * | mpOutputVector |
CCopasiSelectionWidget * | mpSelectionWidget |
std::vector< const CCopasiObject * > * | mpTmpVector |
Definition at line 33 of file CCopasiSelectionDialog.h.
CCopasiSelectionDialog::CCopasiSelectionDialog | ( | QWidget * | parent = 0 , |
const char * | name = 0 , |
||
bool | modal = false |
||
) |
Definition at line 38 of file CCopasiSelectionDialog.cpp.
References cancelButton_clicked(), modeButton_toggled(), mpButtonBox, mpMainLayout, mpMainWidget, mpModeCheckBox, mpSelectionWidget, okButton_clicked(), and CCopasiSelectionWidget::setOutputVector().
Referenced by getObjectSingle(), and getObjectVector().
CCopasiSelectionDialog::~CCopasiSelectionDialog | ( | ) |
Definition at line 80 of file CCopasiSelectionDialog.cpp.
References mpTmpVector.
|
protectedslot |
Definition at line 103 of file CCopasiSelectionDialog.cpp.
Referenced by CCopasiSelectionDialog().
|
static |
single=true means only one object can be returned (in the first element of the return vector) when single=true and the dialog is canceled the return vector will have size=1 and contain the NULL pointer. when single=false and the dialog is canceled the return vector will be empty. value=true means only objects that have a value (i.e. arrayElementReferences) are allowed. otherwise also the whole array annotation may be returned.
Definition at line 230 of file CCopasiSelectionDialog.cpp.
References CArrayAnnotation::addElementReference(), CArrayAnnotation::dimensionality(), FROM_UTF8, CCopasiObject::getObjectName(), CQMatrixDialog::setArray(), CArrayAnnotation::size(), TO_UTF8, and CQMessageBox::warning().
Referenced by CQPlotSubwidget::addCurve2D(), getObjectSingle(), and getObjectVector().
void CCopasiSelectionDialog::enableExpertMode | ( | bool | enable | ) |
Definition at line 118 of file CCopasiSelectionDialog.cpp.
References mExpertModeEnabled, and mpModeCheckBox.
|
static |
Definition at line 136 of file CCopasiSelectionDialog.cpp.
References CCopasiSelectionDialog(), chooseCellMatrix(), CCopasiRootContainer::getDatamodelList(), setModel(), setOutputVector(), and setSingleSelection().
Referenced by SliderSettingsDialog::browseButtonPressed(), Curve2DWidget::buttonPressedX(), BandedGraphWidget::buttonPressedX(), Curve2DWidget::buttonPressedY(), BandedGraphWidget::buttonPressedYone(), BandedGraphWidget::buttonPressedYtwo(), CQExperimentData::selectModelObject(), CQEventWidget1::slotAddTarget(), CScanWidgetRandom::slotChooseObject(), CScanWidgetScan::slotChooseObject(), SensitivitiesWidget::slotChooseSingleFunction(), SensitivitiesWidget::slotChooseSingleVariable(), SensitivitiesWidget::slotChooseSingleVariable2(), CQCrossSectionTaskWidget::slotChooseVariable(), CQFittingItemWidget::slotLowerEdit(), CQFittingItemWidget::slotParamEdit(), CQEventWidget1::slotSelectObject(), CQExpressionWidget::slotSelectObject(), and CQFittingItemWidget::slotUpperEdit().
|
static |
Definition at line 176 of file CCopasiSelectionDialog.cpp.
References CCopasiSelectionDialog(), chooseCellMatrix(), CCopasiRootContainer::getDatamodelList(), setModel(), setOutputVector(), and setSingleSelection().
Referenced by CQReportDefinition::btnItemClicked(), HistoWidget::buttonPressedX(), SliderDialog::createNewSlider(), ScanWidget::slotAddItem(), and CQFittingItemWidget::slotParamEdit().
|
protectedslot |
Definition at line 108 of file CCopasiSelectionDialog.cpp.
References mpSelectionWidget, and CCopasiSelectionWidget::setExpertMode().
Referenced by CCopasiSelectionDialog().
|
protectedslot |
Definition at line 96 of file CCopasiSelectionDialog.cpp.
References CCopasiSelectionWidget::commit(), and mpSelectionWidget.
Referenced by CCopasiSelectionDialog().
void CCopasiSelectionDialog::setModel | ( | const CModel * | model, |
const CQSimpleSelectionTree::ObjectClasses & | classes | ||
) |
Definition at line 85 of file CCopasiSelectionDialog.cpp.
References mpSelectionWidget, and CCopasiSelectionWidget::populateTree().
Referenced by getObjectSingle(), and getObjectVector().
void CCopasiSelectionDialog::setOutputVector | ( | std::vector< const CCopasiObject * > * | outputVector | ) |
Definition at line 91 of file CCopasiSelectionDialog.cpp.
References mpSelectionWidget, and CCopasiSelectionWidget::setOutputVector().
Referenced by getObjectSingle(), and getObjectVector().
void CCopasiSelectionDialog::setSingleSelection | ( | bool | singleSelectionMode | ) |
Definition at line 113 of file CCopasiSelectionDialog.cpp.
References mpSelectionWidget, and CCopasiSelectionWidget::setSingleSelection().
Referenced by getObjectSingle(), and getObjectVector().
|
protected |
Definition at line 45 of file CCopasiSelectionDialog.h.
|
protected |
Definition at line 46 of file CCopasiSelectionDialog.h.
Referenced by enableExpertMode().
|
protected |
Definition at line 39 of file CCopasiSelectionDialog.h.
Referenced by CCopasiSelectionDialog().
|
protected |
Definition at line 42 of file CCopasiSelectionDialog.h.
Referenced by CCopasiSelectionDialog().
|
protected |
Definition at line 40 of file CCopasiSelectionDialog.h.
Referenced by CCopasiSelectionDialog().
|
protected |
Definition at line 38 of file CCopasiSelectionDialog.h.
Referenced by CCopasiSelectionDialog(), and enableExpertMode().
|
protected |
Definition at line 44 of file CCopasiSelectionDialog.h.
|
protected |
Definition at line 41 of file CCopasiSelectionDialog.h.
Referenced by CCopasiSelectionDialog(), modeButton_toggled(), okButton_clicked(), setModel(), setOutputVector(), and setSingleSelection().
|
protected |
Definition at line 43 of file CCopasiSelectionDialog.h.
Referenced by ~CCopasiSelectionDialog().