#include <guiObservers.hxx>
Public Member Functions | |
SubjectLink (SubjectNode *subOutNode, SubjectDataPort *outPort, SubjectNode *subInNode, SubjectDataPort *inPort, Subject *parent) | |
virtual | ~SubjectLink () |
virtual std::string | getName () |
virtual void | clean (Command *command=0) |
void | localclean (Command *command=0) |
SubjectNode * | getSubjectOutNode () |
SubjectNode * | getSubjectInNode () |
SubjectDataPort * | getSubjectOutPort () |
SubjectDataPort * | getSubjectInPort () |
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 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 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 |
SubjectDataPort * | _outPort |
SubjectNode * | _subInNode |
SubjectDataPort * | _inPort |
std::string | _name |
YACS::ENGINE::ComposedNode * | _cla |
YACS::ENGINE::OutPort * | _outp |
YACS::ENGINE::InPort * | _inp |
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 888 of file guiObservers.hxx.
SubjectLink::SubjectLink | ( | SubjectNode * | subOutNode, |
SubjectDataPort * | outPort, | ||
SubjectNode * | subInNode, | ||
SubjectDataPort * | inPort, | ||
Subject * | parent | ||
) |
Definition at line 3997 of file guiObservers.cxx.
References _inPort, _name, _outPort, _subInNode, _subOutNode, DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::Node::getFather(), YACS::ENGINE::ComposedNode::getName(), YACS::HMI::SubjectDataPort::getName(), YACS::HMI::SubjectNode::getName(), and YACS::HMI::SubjectNode::getNode().
|
virtual |
Definition at line 4019 of file guiObservers.cxx.
References _inPort, _outPort, YACS::HMI::DATALINK, DEBTRACE, getName(), YACS::HMI::UPDATE, and YACS::HMI::Subject::update().
|
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 4026 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 4057 of file guiObservers.cxx.
References _name.
Referenced by YACS::HMI::SubjectComposedNode::addSubjectLink(), localclean(), YACS::HMI::SubjectNode::registerUndoDestroy(), YACS::HMI::SubjectNode::removeExternalLinks(), YACS::HMI::SubjectComposedNode::removeLink(), and ~SubjectLink().
|
virtual |
Reimplemented from YACS::HMI::Subject.
Definition at line 4062 of file guiObservers.cxx.
References YACS::HMI::Subject::getProperties(), and getSubjectInPort().
Referenced by registerUndoDestroy().
|
inline |
Definition at line 901 of file guiObservers.hxx.
References _subInNode.
Referenced by registerUndoDestroy().
|
inline |
Definition at line 903 of file guiObservers.hxx.
References _inPort.
Referenced by YACS::HMI::EditionDataLink::EditionDataLink(), YACS::HMI::GenericGui::emphasizePortLink(), getProperties(), knownProperties(), registerUndoDestroy(), YACS::HMI::SubjectComposedNode::removeLink(), and setProperties().
|
inline |
Definition at line 900 of file guiObservers.hxx.
References _subOutNode.
Referenced by registerUndoDestroy().
|
inline |
Definition at line 902 of file guiObservers.hxx.
References _outPort.
Referenced by YACS::HMI::GenericGui::emphasizePortLink(), registerUndoDestroy(), YACS::HMI::SubjectComposedNode::removeLink(), and setProperties().
|
inlinevirtual |
Reimplemented from YACS::HMI::Subject.
Definition at line 907 of file guiObservers.hxx.
References YACS::HMI::DATALINK.
|
virtual |
Reimplemented from YACS::HMI::Subject.
Definition at line 4067 of file guiObservers.cxx.
References getSubjectInPort(), and YACS::HMI::Subject::knownProperties().
void SubjectLink::localclean | ( | Command * | command = 0 | ) |
Definition at line 4037 of file guiObservers.cxx.
References _cla, _inp, _inPort, _outp, _outPort, YACS::HMI::Subject::_parent, DEBTRACE, YACS::ENGINE::ComposedNode::edRemoveLink(), YACS::HMI::Subject::getName(), getName(), YACS::HMI::SubjectDataPort::getPort(), YACS::HMI::Subject::isDestructible(), and YASSERT.
Referenced by clean().
void SubjectLink::registerUndoDestroy | ( | ) |
Definition at line 4088 of file guiObservers.cxx.
References YACS::HMI::Invocator::add(), DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::ENGINE::DataPort::getName(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::SubjectDataPort::getPort(), YACS::HMI::GuiContext::getProc(), getProperties(), getSubjectInNode(), getSubjectInPort(), getSubjectOutNode(), getSubjectOutPort(), and YACS::HMI::Subject::getType().
Referenced by clean(), and YACS::HMI::SubjectNode::registerUndoDestroy().
|
virtual |
Reimplemented from YACS::HMI::Subject.
Definition at line 4072 of file guiObservers.cxx.
References YACS::HMI::Invocator::add(), YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::HMI::SubjectDataPort::getName(), YACS::HMI::GuiContext::getProc(), getSubjectInPort(), and getSubjectOutPort().
|
protected |
Definition at line 915 of file guiObservers.hxx.
Referenced by localclean().
|
protected |
Definition at line 917 of file guiObservers.hxx.
Referenced by localclean().
|
protected |
Definition at line 913 of file guiObservers.hxx.
Referenced by getSubjectInPort(), localclean(), SubjectLink(), and ~SubjectLink().
|
protected |
Definition at line 914 of file guiObservers.hxx.
Referenced by getName(), and SubjectLink().
|
protected |
Definition at line 916 of file guiObservers.hxx.
Referenced by localclean().
|
protected |
Definition at line 911 of file guiObservers.hxx.
Referenced by getSubjectOutPort(), localclean(), SubjectLink(), and ~SubjectLink().
|
protected |
Definition at line 912 of file guiObservers.hxx.
Referenced by getSubjectInNode(), and SubjectLink().
|
protected |
Definition at line 910 of file guiObservers.hxx.
Referenced by getSubjectOutNode(), and SubjectLink().