#include <guiObservers.hxx>
Public Member Functions | |
SubjectDynParaLoop (YACS::ENGINE::DynParaLoop *dynParaLoop, Subject *parent) | |
virtual | ~SubjectDynParaLoop () |
virtual SubjectNode * | addNode (YACS::ENGINE::Catalog *catalog, std::string compo, std::string type, std::string name, bool newCompoInst) |
virtual void | recursiveUpdate (GuiEvent event, int type, Subject *son) |
virtual void | completeChildrenSubjectList (SubjectNode *son) |
virtual void | removeNode (SubjectNode *child) |
virtual SubjectNode * | getChild (YACS::ENGINE::Node *node=NULL) const |
virtual bool | setNbBranches (std::string nbBranches) |
virtual bool | hasValue () |
virtual std::string | getValue () |
virtual void | houseKeepingAfterCutPaste (bool isCut, SubjectNode *son) |
virtual void | clean (Command *command=NULL) |
void | localclean (Command *command=NULL) |
Public Member Functions inherited from YACS::HMI::SubjectComposedNode | |
SubjectComposedNode (YACS::ENGINE::ComposedNode *composedNode, Subject *parent) | |
virtual | ~SubjectComposedNode () |
virtual void | loadChildren () |
virtual void | loadLinks () |
SubjectNode * | addSubjectNode (YACS::ENGINE::Node *node, std::string name="", YACS::ENGINE::Catalog *catalog=0, std::string compo="", std::string type="") |
SubjectLink * | addSubjectLink (SubjectNode *sno, SubjectDataPort *spo, SubjectNode *sni, SubjectDataPort *spi) |
SubjectControlLink * | addSubjectControlLink (SubjectNode *sno, SubjectNode *sni) |
virtual void | removeLink (SubjectLink *link) |
virtual void | removeControlLink (SubjectControlLink *link) |
virtual void | removeExternalControlLinks () |
void | localclean (Command *command=0) |
Public Member Functions inherited from YACS::HMI::SubjectNode | |
SubjectNode (YACS::ENGINE::Node *node, Subject *parent) | |
virtual | ~SubjectNode () |
virtual bool | setProperties (std::map< std::string, std::string > properties) |
virtual std::map< std::string, std::string > | getProperties () |
virtual bool | reparent (Subject *parent) |
virtual bool | copy (Subject *parent) |
virtual std::string | getName () |
virtual bool | setName (std::string name) |
virtual YACS::ENGINE::Node * | getNode () |
void | registerUndoDestroy () |
SubjectControlLink * | addSubjectControlLink (SubjectControlLink *sub) |
void | removeSubjectControlLink (SubjectControlLink *sub) |
std::list< SubjectLink * > | getSubjectLinks () const |
std::list< SubjectControlLink * > | getSubjectControlLinks () const |
std::list< SubjectInputPort * > | getSubjectInputPorts () const |
std::list< SubjectOutputPort * > | getSubjectOutputPorts () const |
std::list < SubjectInputDataStreamPort * > | getSubjectInputDataStreamPorts () const |
std::list < SubjectOutputDataStreamPort * > | getSubjectOutputDataStreamPorts () const |
void | localclean (Command *command=0) |
virtual void | update (GuiEvent event, int type, Subject *son) |
virtual void | removeExternalLinks () |
virtual void | saveLinks () |
virtual void | restoreLinks () |
virtual bool | putInComposedNode (std::string name, std::string type, bool toSaveRestoreLinks=true) |
virtual int | isValid () |
void | setExecState (int execState) |
Public Member Functions inherited from YACS::HMI::Subject | |
Subject (Subject *parent=0) | |
virtual | ~Subject () |
virtual void | attach (GuiObserver *obs) |
virtual void | detach (GuiObserver *obs) |
virtual void | select (bool isSelected) |
virtual std::vector< std::string > | knownProperties () |
virtual Subject * | getParent () |
virtual void | setParent (Subject *son) |
virtual bool | destroy (Subject *son) |
From user action in Ihm, destroy an object. More... | |
virtual void | addSubjectReference (Subject *ref) |
void | localclean (Command *command=0) |
void | registerUndoDestroy () |
void | askRegisterUndoDestroy () |
bool | isDestructible () |
virtual TypeOfElem | getType () |
virtual void | setProgress (std::string newProgress) |
virtual std::string | getProgress () |
Public Member Functions inherited from YACS::ENGINE::Observer | |
virtual void | notifyObserver2 (Node *object, const std::string &event, void *something) |
virtual | ~Observer () |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::HMI::SubjectComposedNode | |
static SubjectComposedNode * | getLowestCommonAncestor (SubjectNode *snode1, SubjectNode *snode2) |
Retrieves the lowest common ancestor of 2 nodes. More... | |
Protected Member Functions inherited from YACS::HMI::SubjectComposedNode | |
virtual SubjectNode * | createNode (YACS::ENGINE::Catalog *catalog, std::string compo, std::string type, std::string name, bool newCompoInst, int swCase=0) |
Definition at line 615 of file guiObservers.hxx.
SubjectDynParaLoop::SubjectDynParaLoop | ( | YACS::ENGINE::DynParaLoop * | dynParaLoop, |
Subject * | parent | ||
) |
Definition at line 3265 of file guiObservers.cxx.
References _subjectExecNode, _subjectFinalizeNode, and _subjectInitNode.
|
virtual |
Definition at line 3273 of file guiObservers.cxx.
References DEBTRACE, and YACS::HMI::SubjectNode::getName().
|
virtual |
Reimplemented from YACS::HMI::SubjectComposedNode.
Definition at line 3289 of file guiObservers.cxx.
References YACS::HMI::GuiContext::_lastErrorMessage, _subjectExecNode, YACS::HMI::SubjectComposedNode::createNode(), DEBTRACE, and YACS::HMI::GuiContext::getCurrent().
Referenced by gui.GraphViewer.GraphViewer::popup().
|
virtual |
Clean process prior to delete is redefined in derived classes: a local clean treatment relative to the derived class, then a call to the parent class clean method.
Reimplemented from YACS::HMI::SubjectComposedNode.
Reimplemented in YACS::HMI::SubjectOptimizerLoop, and YACS::HMI::SubjectForEachLoop.
Definition at line 3313 of file guiObservers.cxx.
References YACS::HMI::Subject::_askRegisterUndo, YACS::HMI::SubjectComposedNode::clean(), localclean(), and YACS::HMI::SubjectNode::registerUndoDestroy().
Referenced by YACS::HMI::SubjectForEachLoop::clean(), and YACS::HMI::SubjectOptimizerLoop::clean().
|
virtual |
Reimplemented from YACS::HMI::SubjectComposedNode.
Reimplemented in YACS::HMI::SubjectForEachLoop.
Definition at line 3344 of file guiObservers.cxx.
References _dynParaLoop, _subjectExecNode, _subjectFinalizeNode, _subjectInitNode, YACS::ENGINE::DynParaLoop::getExecNode(), YACS::ENGINE::DynParaLoop::getFinalizeNode(), YACS::ENGINE::DynParaLoop::getInitNode(), YACS::HMI::SubjectNode::getNode(), and YASSERT.
Referenced by YACS::HMI::SubjectForEachLoop::completeChildrenSubjectList().
|
virtual |
Reimplemented from YACS::HMI::SubjectComposedNode.
Definition at line 3370 of file guiObservers.cxx.
References _subjectExecNode.
|
virtual |
used in derived classes using a counter, a selector, or a condition: ForLoop, ForEachLoop, Switch, WhileLoop.
Reimplemented from YACS::HMI::SubjectComposedNode.
Definition at line 3395 of file guiObservers.cxx.
References _dynParaLoop, YACS::ENGINE::DynParaLoop::edGetNbOfBranchesPort(), and YACS::ENGINE::DataPort::getAsString().
|
virtual |
used in derived classes using a counter, a selector, or a condition: ForLoop, ForEachLoop, Switch, WhileLoop.
Reimplemented from YACS::HMI::SubjectComposedNode.
Definition at line 3390 of file guiObservers.cxx.
|
virtual |
Reimplemented from YACS::HMI::SubjectComposedNode.
Definition at line 3305 of file guiObservers.cxx.
References _subjectExecNode, and removeNode().
void SubjectDynParaLoop::localclean | ( | Command * | command = NULL | ) |
Definition at line 3324 of file guiObservers.cxx.
References _subjectExecNode, _subjectFinalizeNode, _subjectInitNode, DEBTRACE, YACS::HMI::Subject::erase(), and YACS::HMI::SubjectNode::getName().
Referenced by clean().
Reimplemented from YACS::HMI::SubjectNode.
Definition at line 3278 of file guiObservers.cxx.
References _subjectExecNode, _subjectFinalizeNode, _subjectInitNode, YACS::HMI::SubjectNode::recursiveUpdate(), and YACS::HMI::SubjectNode::update().
|
virtual |
Reimplemented in YACS::HMI::SubjectForEachLoop.
Definition at line 3357 of file guiObservers.cxx.
References _subjectExecNode, _subjectFinalizeNode, _subjectInitNode, and YASSERT.
Referenced by houseKeepingAfterCutPaste(), and YACS::HMI::SubjectForEachLoop::removeNode().
|
virtual |
Definition at line 3375 of file guiObservers.cxx.
References YACS::HMI::Invocator::add(), DEBTRACE, YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::HMI::SubjectNode::getNode(), and YACS::HMI::GuiContext::getProc().
Referenced by YACS::HMI::EditionForEachLoop::onNbBranchesEdited(), and YACS::HMI::EditionOptimizerLoop::onNbBranchesEdited().
|
protected |
Definition at line 636 of file guiObservers.hxx.
Referenced by completeChildrenSubjectList(), and getValue().
|
protected |
Definition at line 637 of file guiObservers.hxx.
Referenced by addNode(), completeChildrenSubjectList(), getChild(), houseKeepingAfterCutPaste(), localclean(), recursiveUpdate(), removeNode(), and SubjectDynParaLoop().
|
protected |
Definition at line 639 of file guiObservers.hxx.
Referenced by completeChildrenSubjectList(), localclean(), recursiveUpdate(), removeNode(), and SubjectDynParaLoop().
|
protected |
Definition at line 638 of file guiObservers.hxx.
Referenced by completeChildrenSubjectList(), localclean(), recursiveUpdate(), removeNode(), and SubjectDynParaLoop().