COPASI API
4.16.103
|
#include <CQEventWidget1.h>
Public Member Functions | |
CQEventWidget1 (QWidget *parent=0, const char *name=0) | |
virtual bool | leave () |
virtual bool | update (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key) |
~CQEventWidget1 () | |
![]() | |
CopasiWidget (QWidget *parent=0, const char *name=0, Qt::WFlags f=0) | |
bool | enter (const std::string &key) |
CCopasiDataModel * | getDataModel () |
bool | getIgnoreUpdates () |
virtual void | setFramework (int framework) |
void | setIgnoreUpdates (bool v) |
Protected Member Functions | |
virtual bool | enterProtected () |
Private Slots | |
void | slotActualizeAssignmentExpression (int index) |
Slot to actualize the assignment expression widget of event assignment according to the target. More... | |
void | slotAddTarget () |
void | slotBtnCopy () |
void | slotBtnDelete () |
void | slotBtnNew () |
Slot to create a new event; activated whenever the New button is clicked. More... | |
void | slotChooseDelay (int choice) |
void | slotDeleteTarget () |
void | slotSelectObject () |
Slot to select an object from the existing ones -only- for target. More... | |
Private Member Functions | |
void | init () |
bool | loadFromEvent () |
void | saveToEvent () |
void | showDelayExpression (bool display) |
Private Attributes | |
std::string | mAssignmentKey |
CCopasiVector< CEventAssignment > | mAssignments |
bool | mChanged |
size_t | mCurrentTarget |
QString | mEAName |
bool | mExpressionDelayValid |
bool | mExpressionEAValid |
bool | mExpressionTriggerValid |
std::string | mKeyToCopy |
CEvent * | mpEvent |
Additional Inherited Members | |
![]() | |
virtual bool | protectedNotify (ListViews::ObjectType objectType, ListViews::Action action, const std::string &key="") |
![]() | |
int | mFramework |
bool | mIgnoreUpdates |
std::string | mKey |
CCopasiDataModel * | mpDataModel |
ListViews * | mpListView |
CCopasiObject * | mpObject |
Definition at line 29 of file CQEventWidget1.h.
CQEventWidget1::CQEventWidget1 | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Definition at line 38 of file CQEventWidget1.cpp.
References init().
CQEventWidget1::~CQEventWidget1 | ( | ) |
Definition at line 50 of file CQEventWidget1.cpp.
|
protectedvirtual |
Function to interact with an object of class CEvent
Reimplemented from CopasiWidget.
Definition at line 415 of file CQEventWidget1.cpp.
References C_INVALID_INDEX, CKeyFactory::get(), CCopasiRootContainer::getKeyFactory(), loadFromEvent(), mCurrentTarget, mKeyToCopy, mpEvent, CopasiWidget::mpListView, CopasiWidget::mpObject, and ListViews::switchToOtherWidget().
|
private |
Definition at line 105 of file CQEventWidget1.cpp.
References CQIconResource::copasi, CQIconResource::editAdd, CQIconResource::editDelete, CQIconResource::icon(), mExpressionDelayValid, mExpressionEAValid, mExpressionTriggerValid, showDelayExpression(), slotActualizeAssignmentExpression(), slotChooseDelay(), and CQExpressionWidget::TransientExpression.
Referenced by CQEventWidget1().
|
virtual |
The slot to be done before leaving the active event widget
Reimplemented from CopasiWidget.
Definition at line 447 of file CQEventWidget1.cpp.
References saveToEvent().
|
private |
Load all values with respect to a chosen saved event
Definition at line 178 of file CQEventWidget1.cpp.
References CCopasiVector< T >::add(), CCopasiVector< T >::begin(), C_INVALID_INDEX, CCopasiVector< T >::clear(), CCopasiVector< T >::end(), FROM_UTF8, CKeyFactory::get(), CEvent::getAssignments(), CEvent::getDelayAssignment(), CEvent::getDelayExpression(), CCopasiRootContainer::getKeyFactory(), CCopasiObject::getObjectAncestor(), CCopasiObject::getObjectDisplayName(), CEvent::getTriggerExpression(), mAssignments, mChanged, mCurrentTarget, mpEvent, CModelEntity::setExpression(), and CCopasiVector< T >::size().
Referenced by enterProtected().
|
private |
The slot to save all current values of the active event widget
Definition at line 268 of file CQEventWidget1.cpp.
References CCopasiVectorN< CType >::add(), CCopasiVector< T >::begin(), C_INVALID_INDEX, ListViews::CHANGE, CCopasiVector< T >::end(), ListViews::EVENT, CEvent::getAssignments(), CCopasiRootContainer::getDatamodelList(), CEvent::getDelayAssignment(), CEvent::getDelayExpression(), CCopasiVectorN< CType >::getIndex(), CCopasiObject::getObjectAncestor(), CEvent::getTriggerExpression(), mAssignments, mChanged, mCurrentTarget, CopasiWidget::mKey, mpEvent, CopasiWidget::protectedNotify(), CCopasiVectorN< CType >::remove(), CEvent::setDelayAssignment(), CEvent::setDelayExpression(), CEvent::setTriggerExpression(), and CCopasiVector< T >::size().
Referenced by leave(), and slotBtnNew().
|
private |
Function to apply the Delay Expression Widget
Definition at line 519 of file CQEventWidget1.cpp.
Referenced by init(), and slotChooseDelay().
|
privateslot |
Slot to actualize the assignment expression widget of event assignment according to the target.
Definition at line 480 of file CQEventWidget1.cpp.
References C_INVALID_INDEX, mAssignments, mCurrentTarget, and CCopasiVector< T >::size().
Referenced by init().
|
privateslot |
Slot to add a new target without object target nor its expression Impact only on the appearance.
Definition at line 139 of file CQEventWidget1.cpp.
References CCopasiVector< T >::add(), CQSimpleSelectionTree::EventTarget, FROM_UTF8, CModelEntity::getKey(), CCopasiObject::getObjectDisplayName(), CCopasiObject::getObjectParent(), CCopasiSelectionDialog::getObjectSingle(), mAssignments, and CCopasiVector< T >::size().
Referenced by slotSelectObject().
|
privateslot |
|
privateslot |
Slot to delete the active event widget
Definition at line 56 of file CQEventWidget1.cpp.
References ListViews::DELETE, ListViews::EVENT, CCopasiRootContainer::getDatamodelList(), CCopasiDataModel::getModel(), CopasiWidget::mKey, mpEvent, CopasiWidget::protectedNotify(), and CModel::removeEvent().
|
privateslot |
Slot to create a new event; activated whenever the New button is clicked.
Definition at line 74 of file CQEventWidget1.cpp.
References ListViews::ADD, C_INVALID_INDEX, ListViews::EVENT, CCopasiRootContainer::getDatamodelList(), CopasiWidget::mpListView, CopasiWidget::protectedNotify(), saveToEvent(), ListViews::switchToOtherWidget(), and TO_UTF8.
|
privateslot |
Definition at line 534 of file CQEventWidget1.cpp.
References showDelayExpression().
Referenced by init().
|
privateslot |
Slot to remove the active target from the appearance Impact only on the appearance.
Definition at line 162 of file CQEventWidget1.cpp.
References mAssignments, mCurrentTarget, pdelete, CCopasiVector< T >::remove(), and CCopasiVector< T >::size().
|
privateslot |
Slot to select an object from the existing ones -only- for target.
Definition at line 455 of file CQEventWidget1.cpp.
References C_INVALID_INDEX, CQSimpleSelectionTree::EventTarget, FROM_UTF8, CModelEntity::getKey(), CCopasiObject::getObjectDisplayName(), CCopasiObject::getObjectParent(), CCopasiSelectionDialog::getObjectSingle(), mAssignments, mCurrentTarget, and slotAddTarget().
|
virtual |
The slot to update the active event widget
Reimplemented from CopasiWidget.
Definition at line 409 of file CQEventWidget1.cpp.
|
private |
Definition at line 52 of file CQEventWidget1.h.
|
private |
Definition at line 54 of file CQEventWidget1.h.
Referenced by loadFromEvent(), saveToEvent(), slotActualizeAssignmentExpression(), slotAddTarget(), slotDeleteTarget(), and slotSelectObject().
|
private |
Definition at line 50 of file CQEventWidget1.h.
Referenced by loadFromEvent(), and saveToEvent().
|
private |
Definition at line 53 of file CQEventWidget1.h.
Referenced by enterProtected(), loadFromEvent(), saveToEvent(), slotActualizeAssignmentExpression(), slotDeleteTarget(), and slotSelectObject().
|
private |
Definition at line 49 of file CQEventWidget1.h.
|
private |
Definition at line 47 of file CQEventWidget1.h.
Referenced by init().
|
private |
Definition at line 48 of file CQEventWidget1.h.
Referenced by init().
|
private |
Definition at line 46 of file CQEventWidget1.h.
Referenced by init().
|
private |
Definition at line 60 of file CQEventWidget1.h.
Referenced by enterProtected(), and slotBtnCopy().
|
private |
Definition at line 51 of file CQEventWidget1.h.
Referenced by enterProtected(), loadFromEvent(), saveToEvent(), and slotBtnDelete().