#include <guiObservers.hxx>
Public Member Functions | |
SubjectDataPort (YACS::ENGINE::DataPort *port, Subject *parent) | |
virtual | ~SubjectDataPort () |
virtual std::string | getName () |
virtual bool | setName (std::string name) |
virtual YACS::ENGINE::DataPort * | getPort () |
virtual void | clean (Command *command=0) |
void | localclean (Command *command=0) |
void | addSubjectLink (SubjectLink *subject) |
void | removeSubjectLink (SubjectLink *subject) |
std::list< SubjectLink * > | getListOfSubjectLink () |
virtual bool | setValue (std::string value) |
void | setExecValue (std::string value) |
std::string | getExecValue () |
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 | 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 TypeOfElem | getType () |
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 () |
Static Public Member Functions | |
static bool | tryCreateLink (SubjectDataPort *subOutport, SubjectDataPort *subInport, bool control=true) |
Static Public Member Functions inherited from YACS::HMI::Subject | |
static void | erase (Subject *sub, Command *command=0, bool post=false) |
Protected Attributes | |
YACS::ENGINE::DataPort * | _dataPort |
std::list< SubjectLink * > | _listSubjectLink |
std::string | _execValue |
Protected Attributes inherited from YACS::HMI::Subject | |
std::set< GuiObserver * > | _setObs |
Subject * | _parent |
bool | _destructible |
bool | _askRegisterUndo |
std::string | _progress |
Definition at line 202 of file guiObservers.hxx.
SubjectDataPort::SubjectDataPort | ( | YACS::ENGINE::DataPort * | port, |
Subject * | parent | ||
) |
|
virtual |
Definition at line 3513 of file guiObservers.cxx.
References _dataPort, DEBTRACE, YACS::ENGINE::ElementaryNode::edRemovePort(), getName(), YACS::ENGINE::Port::getNode(), YACS::HMI::Subject::isDestructible(), YACS::Exception::what(), and YASSERT.
|
inline |
Definition at line 213 of file guiObservers.hxx.
Referenced by YACS::HMI::SubjectComposedNode::addSubjectLink().
|
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.
Reimplemented in YACS::HMI::SubjectOutputDataStreamPort, YACS::HMI::SubjectInputDataStreamPort, YACS::HMI::SubjectOutputPort, and YACS::HMI::SubjectInputPort.
Definition at line 3538 of file guiObservers.cxx.
References YACS::HMI::Subject::_askRegisterUndo, YACS::HMI::Subject::clean(), localclean(), and registerUndoDestroy().
Referenced by YACS::HMI::SubjectInputPort::clean(), YACS::HMI::SubjectOutputPort::clean(), YACS::HMI::SubjectInputDataStreamPort::clean(), and YACS::HMI::SubjectOutputDataStreamPort::clean().
std::string SubjectDataPort::getExecValue | ( | ) |
Definition at line 3650 of file guiObservers.cxx.
References _execValue.
Referenced by YACS::HMI::SchemaInPortItem::update(), YACS::HMI::SchemaOutPortItem::update(), and YACS::HMI::EditionLoop::update().
|
inline |
Definition at line 215 of file guiObservers.hxx.
Referenced by YACS::HMI::GenericGui::emphasizePortLink(), localclean(), and registerUndoDestroy().
|
virtual |
Reimplemented from YACS::HMI::Subject.
Definition at line 3557 of file guiObservers.cxx.
References _dataPort, and YACS::ENGINE::DataPort::getName().
Referenced by YACS::HMI::GenericGui::emphasizePortLink(), YACS::HMI::SubjectElementaryNode::OrderDataPorts(), registerUndoDestroy(), YACS::HMI::SubjectInputDataStreamPort::registerUndoDestroy(), YACS::HMI::SubjectOutputDataStreamPort::registerUndoDestroy(), YACS::HMI::SubjectElementaryNode::removePort(), YACS::HMI::SubjectInputDataStreamPort::setProperties(), YACS::HMI::SubjectOutputDataStreamPort::setProperties(), YACS::HMI::SubjectLink::setProperties(), YACS::HMI::SubjectInputPort::setValue(), YACS::HMI::SubjectOutputPort::setValue(), YACS::HMI::SubjectLink::SubjectLink(), tryCreateLink(), ~SubjectDataPort(), YACS::HMI::SubjectInputDataStreamPort::~SubjectInputDataStreamPort(), YACS::HMI::SubjectInputPort::~SubjectInputPort(), YACS::HMI::SubjectOutputDataStreamPort::~SubjectOutputDataStreamPort(), and YACS::HMI::SubjectOutputPort::~SubjectOutputPort().
|
virtual |
Definition at line 3589 of file guiObservers.cxx.
References _dataPort.
Referenced by YACS::HMI::SubjectComposedNode::addSubjectLink(), YACS::HMI::ValueDelegate::createEditor(), YACS::HMI::SchemaInPortItem::dropMimeData(), YACS::HMI::EditionInputPort::EditionInputPort(), YACS::HMI::EditionOutputPort::EditionOutputPort(), YACS::HMI::SchemaInPortItem::flags(), YACS::HMI::SchemaOutPortItem::flags(), YACS::HMI::SubjectLink::localclean(), YACS::HMI::EditionElementaryNode::onCommitData(), YACS::HMI::TreeView::onCommitData(), YACS::HMI::InPortMenu::popupMenu(), YACS::HMI::OutPortMenu::popupMenu(), registerUndoDestroy(), YACS::HMI::SubjectLink::registerUndoDestroy(), YACS::HMI::SubjectComposedNode::removeLink(), YACS::HMI::SchemaInPortItem::SchemaInPortItem(), YACS::HMI::SchemaOutPortItem::SchemaOutPortItem(), setName(), YACS::HMI::SubjectInputDataStreamPort::setProperties(), YACS::HMI::SubjectOutputDataStreamPort::setProperties(), YACS::HMI::SubjectInputPort::setValue(), YACS::HMI::SubjectOutputPort::setValue(), tryCreateLink(), YACS::HMI::SchemaOutPortItem::update(), and YACS::HMI::SchemaInPortItem::update().
void SubjectDataPort::localclean | ( | Command * | command = 0 | ) |
Definition at line 3549 of file guiObservers.cxx.
References DEBTRACE, YACS::HMI::Subject::erase(), and getListOfSubjectLink().
Referenced by clean().
void SubjectDataPort::registerUndoDestroy | ( | ) |
Definition at line 3655 of file guiObservers.cxx.
References YACS::ENGINE::Catalog::_typeMap, YACS::HMI::Invocator::add(), DEBTRACE, YACS::ENGINE::DataPort::edGetType(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), getListOfSubjectLink(), getName(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::Subject::getParent(), getPort(), YACS::HMI::GuiContext::getProc(), YACS::ENGINE::ElementaryNode::getSetOfInputPort(), YACS::ENGINE::ElementaryNode::getSetOfOutputPort(), YACS::HMI::Subject::getType(), YACS::HMI::Invocator::getUndoCata(), YACS::HMI::INPUTDATASTREAMPORT, YACS::HMI::INPUTPORT, YACS::ENGINE::TypeCode::name(), YACS::HMI::OUTPUTDATASTREAMPORT, YACS::HMI::OUTPUTPORT, and YASSERT.
Referenced by clean(), YACS::HMI::SubjectInputPort::clean(), YACS::HMI::SubjectOutputPort::clean(), YACS::HMI::SubjectInputDataStreamPort::registerUndoDestroy(), and YACS::HMI::SubjectOutputDataStreamPort::registerUndoDestroy().
|
inline |
Definition at line 214 of file guiObservers.hxx.
Referenced by YACS::HMI::SubjectComposedNode::removeLink().
void SubjectDataPort::setExecValue | ( | std::string | value | ) |
Definition at line 3645 of file guiObservers.cxx.
References _execValue.
Referenced by YACS::HMI::GuiExecutor::event(), and YACS::HMI::GuiExecutor::updateSchema().
|
virtual |
Reimplemented from YACS::HMI::Subject.
Definition at line 3562 of file guiObservers.cxx.
References _dataPort, YACS::HMI::Invocator::add(), DEBTRACE, YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), YACS::ENGINE::DataPort::getName(), YACS::ENGINE::Node::getName(), YACS::ENGINE::Port::getNode(), getPort(), YACS::HMI::GuiContext::getProc(), and YACS::HMI::Subject::getType().
Referenced by YACS::HMI::SubjectNode::addSubjectIDSPort(), YACS::HMI::SubjectNode::addSubjectInputPort(), YACS::HMI::SubjectNode::addSubjectODSPort(), YACS::HMI::SubjectNode::addSubjectOutputPort(), YACS::HMI::EditionElementaryNode::onCommitData(), and YACS::HMI::TreeView::onCommitData().
|
virtual |
Generic method do nothing. Implementation in SubjectInputPort and SubjectOutputPort.
Reimplemented in YACS::HMI::SubjectOutputPort, and YACS::HMI::SubjectInputPort.
Definition at line 3640 of file guiObservers.cxx.
Referenced by YACS::HMI::EditionElementaryNode::onCommitData(), YACS::HMI::TreeView::onCommitData(), YACS::HMI::EditionForEachLoop::onModifyCollection(), and YACS::HMI::EditionOptimizerLoop::onModifyInitFile().
|
static |
Definition at line 3594 of file guiObservers.cxx.
References YACS::HMI::GuiContext::_lastErrorMessage, YACS::HMI::Invocator::add(), DEBTRACE, YACS::HMI::Command::execute(), YACS::ENGINE::ComposedNode::getChildName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), getName(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::Subject::getParent(), getPort(), YACS::HMI::GuiContext::getProc(), YACS::HMI::Subject::getType(), YACS::ENGINE::OutPort::isAlreadyLinkedWith(), and YASSERT.
Referenced by YACS::HMI::SceneInPortItem::dropEvent(), and YACS::HMI::SchemaInPortItem::dropMimeData().
|
protected |
Definition at line 221 of file guiObservers.hxx.
Referenced by getName(), getPort(), setName(), and ~SubjectDataPort().
|
protected |
Definition at line 223 of file guiObservers.hxx.
Referenced by getExecValue(), setExecValue(), and SubjectDataPort().
|
protected |
Definition at line 222 of file guiObservers.hxx.
Referenced by SubjectDataPort().