#include <guiObservers.hxx>
Public Member Functions | |
SubjectControlLink (SubjectNode *subOutNode, SubjectNode *subInNode, Subject *parent) | |
virtual | ~SubjectControlLink () |
virtual std::string | getName () |
virtual void | clean (Command *command=0) |
void | localclean (Command *command=0) |
SubjectNode * | getSubjectOutNode () |
SubjectNode * | getSubjectInNode () |
virtual TypeOfElem | getType () |
void | registerUndoDestroy () |
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 void | update (GuiEvent event, int type, Subject *son) |
virtual bool | setName (std::string name) |
virtual bool | setProperties (std::map< std::string, std::string > properties) |
virtual std::map< std::string, std::string > | getProperties () |
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 | loadChildren () |
virtual void | loadLinks () |
virtual void | addSubjectReference (Subject *ref) |
void | localclean (Command *command=0) |
void | registerUndoDestroy () |
void | askRegisterUndoDestroy () |
bool | isDestructible () |
virtual void | setProgress (std::string newProgress) |
virtual std::string | getProgress () |
Public Member Functions inherited from YACS::ENGINE::Observer | |
virtual void | notifyObserver (Node *object, const std::string &event) |
virtual void | notifyObserver2 (Node *object, const std::string &event, void *something) |
virtual | ~Observer () |
Protected Attributes | |
SubjectNode * | _subOutNode |
SubjectNode * | _subInNode |
std::string | _name |
YACS::ENGINE::ComposedNode * | _cla |
Protected Attributes inherited from YACS::HMI::Subject | |
std::set< GuiObserver * > | _setObs |
Subject * | _parent |
bool | _destructible |
bool | _askRegisterUndo |
std::string | _progress |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::HMI::Subject | |
static void | erase (Subject *sub, Command *command=0, bool post=false) |
Definition at line 920 of file guiObservers.hxx.
SubjectControlLink::SubjectControlLink | ( | SubjectNode * | subOutNode, |
SubjectNode * | subInNode, | ||
Subject * | parent | ||
) |
Definition at line 4119 of file guiObservers.cxx.
References _name, _subInNode, _subOutNode, DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::Node::getFather(), YACS::ENGINE::ComposedNode::getName(), YACS::HMI::SubjectNode::getName(), and YACS::HMI::SubjectNode::getNode().
|
virtual |
Definition at line 4137 of file guiObservers.cxx.
References _cla, _subInNode, _subOutNode, DEBTRACE, YACS::ENGINE::ComposedNode::edRemoveCFLink(), getName(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::Subject::isDestructible(), and YACS::Exception::what().
|
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::Subject.
Definition at line 4156 of file guiObservers.cxx.
References YACS::HMI::Subject::_askRegisterUndo, YACS::HMI::Subject::clean(), localclean(), and registerUndoDestroy().
|
virtual |
Reimplemented from YACS::HMI::Subject.
Definition at line 4181 of file guiObservers.cxx.
References _name.
Referenced by YACS::HMI::SubjectComposedNode::addSubjectControlLink(), localclean(), and ~SubjectControlLink().
|
inline |
Definition at line 931 of file guiObservers.hxx.
References _subInNode.
Referenced by YACS::HMI::GenericGui::onEmphasisCtrlLinks(), registerUndoDestroy(), and YACS::HMI::SubjectComposedNode::removeControlLink().
|
inline |
Definition at line 930 of file guiObservers.hxx.
References _subOutNode.
Referenced by YACS::HMI::GenericGui::onEmphasisCtrlLinks(), registerUndoDestroy(), and YACS::HMI::SubjectComposedNode::removeControlLink().
|
inlinevirtual |
Reimplemented from YACS::HMI::Subject.
Definition at line 932 of file guiObservers.hxx.
References YACS::HMI::CONTROLLINK.
void SubjectControlLink::localclean | ( | Command * | command = 0 | ) |
Definition at line 4167 of file guiObservers.cxx.
References _cla, YACS::HMI::Subject::_parent, DEBTRACE, YACS::HMI::Subject::getName(), getName(), and YASSERT.
Referenced by clean().
void SubjectControlLink::registerUndoDestroy | ( | ) |
Definition at line 4186 of file guiObservers.cxx.
References YACS::HMI::Invocator::add(), DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::GuiContext::getProc(), getSubjectInNode(), and getSubjectOutNode().
Referenced by clean().
|
protected |
Definition at line 938 of file guiObservers.hxx.
Referenced by localclean(), and ~SubjectControlLink().
|
protected |
Definition at line 937 of file guiObservers.hxx.
Referenced by getName(), and SubjectControlLink().
|
protected |
Definition at line 936 of file guiObservers.hxx.
Referenced by getSubjectInNode(), SubjectControlLink(), and ~SubjectControlLink().
|
protected |
Definition at line 935 of file guiObservers.hxx.
Referenced by getSubjectOutNode(), SubjectControlLink(), and ~SubjectControlLink().