#include <guiObservers.hxx>
Public Member Functions | |
SubjectProc (YACS::ENGINE::Proc *proc, Subject *parent) | |
virtual | ~SubjectProc () |
void | loadProc () |
void | loadComponents () |
void | loadContainers () |
void | loadTypes () |
Load types for a SubjectProc. More... | |
virtual SubjectComponent * | addComponent (std::string compoName, std::string containerName="") |
virtual SubjectContainerBase * | addContainer (std::string name, std::string ref="") |
virtual SubjectContainerBase * | addHPContainer (std::string name, std::string ref="") |
virtual bool | addDataType (YACS::ENGINE::Catalog *catalog, std::string typeName) |
SubjectComponent * | addSubjectComponent (YACS::ENGINE::ComponentInstance *compo) |
SubjectContainerBase * | addSubjectContainer (YACS::ENGINE::Container *cont, std::string name="") |
SubjectDataType * | addComSubjectDataType (YACS::ENGINE::TypeCode *type, std::string alias) |
SubjectDataType * | addSubjectDataType (YACS::ENGINE::TypeCode *type, std::string alias) |
void | removeSubjectDataType (std::string typeName) |
void | removeSubjectContainer (SubjectContainerBase *scont) |
virtual void | clean (Command *command=0) |
void | localclean (Command *command=0) |
void | addPostErase (Subject *sub) |
void | cleanPostErase () |
virtual TypeOfElem | getType () |
Public Member Functions inherited from YACS::HMI::SubjectBloc | |
SubjectBloc (YACS::ENGINE::Bloc *bloc, Subject *parent) | |
virtual | ~SubjectBloc () |
virtual SubjectNode * | addNode (YACS::ENGINE::Catalog *catalog, std::string compo, std::string type, std::string name, bool newCompoInst) |
virtual void | removeNode (SubjectNode *child) |
virtual void | completeChildrenSubjectList (SubjectNode *son) |
virtual SubjectNode * | getChild (YACS::ENGINE::Node *node=0) const |
virtual void | recursiveUpdate (GuiEvent event, int type, Subject *son) |
virtual void | houseKeepingAfterCutPaste (bool isCut, SubjectNode *son) |
void | localclean (Command *command=0) |
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 () |
virtual bool | hasValue () |
virtual std::string | getValue () |
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 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 506 of file guiObservers.hxx.
SubjectProc::SubjectProc | ( | YACS::ENGINE::Proc * | proc, |
Subject * | parent | ||
) |
Definition at line 1802 of file guiObservers.cxx.
References _postEraseList.
|
virtual |
Definition at line 1808 of file guiObservers.cxx.
References DEBTRACE, and YACS::HMI::SubjectNode::getName().
|
virtual |
Definition at line 1906 of file guiObservers.cxx.
References YACS::HMI::Invocator::add(), DEBTRACE, YACS::HMI::Command::execute(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), and YACS::HMI::CommandAddComponentInstance::getSubjectComponent().
Referenced by YACS::HMI::GuiEditor::CreateComponentInstance().
SubjectDataType * SubjectProc::addComSubjectDataType | ( | YACS::ENGINE::TypeCode * | type, |
std::string | alias | ||
) |
register a sub command when importing a node from catalog with new data types
Definition at line 1993 of file guiObservers.cxx.
References YACS::HMI::Invocator::add(), addSubjectDataType(), DEBTRACE, YACS::HMI::Command::execute(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getCurrentCatalog(), YACS::HMI::GuiContext::getInvoc(), and YACS::ENGINE::TypeCode::name().
Referenced by YACS::HMI::SubjectNode::addSubjectIDSPort(), YACS::HMI::SubjectNode::addSubjectODSPort(), and YACS::HMI::SubjectNode::addSubjectOutputPort().
|
virtual |
Definition at line 1919 of file guiObservers.cxx.
References YACS::HMI::GuiContext::_lastErrorMessage, YACS::HMI::Invocator::add(), DEBTRACE, YACS::HMI::Command::execute(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), and YACS::HMI::CommandAddContainerBase::getSubjectContainer().
Referenced by YACS::HMI::SchemaDirContainersItem::addComponentItem(), and YACS::HMI::GuiEditor::CreateContainer().
|
virtual |
Definition at line 1955 of file guiObservers.cxx.
References YACS::HMI::Invocator::add(), DEBTRACE, YACS::HMI::Command::execute(), YACS::HMI::GuiContext::getCurrent(), and YACS::HMI::GuiContext::getInvoc().
Referenced by YACS::HMI::GuiEditor::AddTypeFromCatalog().
|
virtual |
Definition at line 1937 of file guiObservers.cxx.
References YACS::HMI::GuiContext::_lastErrorMessage, YACS::HMI::Invocator::add(), DEBTRACE, YACS::HMI::Command::execute(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), and YACS::HMI::CommandAddContainerBase::getSubjectContainer().
Referenced by YACS::HMI::GuiEditor::CreateHPContainer().
|
inline |
Definition at line 527 of file guiObservers.hxx.
References _postEraseList.
Referenced by YACS::HMI::SubjectServiceNode::~SubjectServiceNode().
SubjectComponent * SubjectProc::addSubjectComponent | ( | YACS::ENGINE::ComponentInstance * | compo | ) |
Definition at line 1969 of file guiObservers.cxx.
References YACS::HMI::GuiContext::_mapOfSubjectComponent, YACS::HMI::ADD, YACS::HMI::COMPONENT, DEBTRACE, YACS::HMI::GuiContext::getCurrent(), YACS::ENGINE::ComponentInstance::getInstanceName(), and YACS::HMI::SubjectNode::update().
Referenced by loadComponents(), YACS::HMI::CommandAddComponentInstance::localExecute(), YACS::HMI::CommandAddComponentFromCatalog::localExecute(), YACS::HMI::CommandAssociateServiceToComponent::localReverse(), and YACS::HMI::SubjectServiceNode::setComponent().
SubjectContainerBase * SubjectProc::addSubjectContainer | ( | YACS::ENGINE::Container * | cont, |
std::string | name = "" |
||
) |
Definition at line 1979 of file guiObservers.cxx.
References YACS::HMI::GuiContext::_mapOfSubjectContainer, YACS::HMI::ADD, YACS::HMI::CONTAINER, DEBTRACE, YACS::HMI::GuiContext::getCurrent(), YACS::HMI::SubjectContainerBase::New(), and YACS::HMI::SubjectNode::update().
Referenced by loadContainers(), YACS::HMI::CommandAddContainerBase::localExecute(), YACS::HMI::SubjectServiceNode::setComponent(), and YACS::HMI::SubjectComponent::setContainer().
SubjectDataType * SubjectProc::addSubjectDataType | ( | YACS::ENGINE::TypeCode * | type, |
std::string | alias | ||
) |
Definition at line 2013 of file guiObservers.cxx.
References YACS::HMI::GuiContext::_lastErrorMessage, YACS::HMI::GuiContext::_mapOfSubjectDataType, YACS::HMI::ADD, YACS::ENGINE::TypeCode::clone(), YACS::HMI::DATATYPE, DEBTRACE, YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getProc(), YACS::ENGINE::TypeCode::name(), YACS::ENGINE::Proc::typeMap, and YACS::HMI::SubjectNode::update().
Referenced by addComSubjectDataType(), YACS::HMI::SubjectNode::addSubjectInputPort(), loadTypes(), and YACS::HMI::CommandAddDataTypeFromCatalog::localExecute().
|
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::SubjectBloc.
Definition at line 1813 of file guiObservers.cxx.
References YACS::HMI::Subject::_askRegisterUndo, YACS::HMI::SubjectBloc::clean(), localclean(), and YACS::HMI::SubjectNode::registerUndoDestroy().
Referenced by YACS::HMI::GuiContext::~GuiContext(), and YACS::HMI::QtGuiContext::~QtGuiContext().
void SubjectProc::cleanPostErase | ( | ) |
Definition at line 1829 of file guiObservers.cxx.
References _postEraseList, DEBTRACE, YACS::HMI::Subject::erase(), YACS::HMI::SubjectNode::getName(), and CORBAEngineTest::i.
|
inlinevirtual |
Reimplemented from YACS::HMI::SubjectBloc.
Definition at line 529 of file guiObservers.hxx.
References YACS::HMI::SALOMEPROC.
void SubjectProc::loadComponents | ( | ) |
loadComponents is used when an existing scheme has been loaded in memory, to create subjects for components stored in the schema file, but are not associated with any service nodes. Note, that if such component is associated to any container, the subject for this container is also created, if it is not exist yet.
Definition at line 1875 of file guiObservers.cxx.
References YACS::HMI::GuiContext::_mapOfLastComponentInstance, YACS::HMI::GuiContext::_mapOfSubjectComponent, addSubjectComponent(), YACS::ENGINE::Proc::componentInstanceMap, YACS::HMI::GuiContext::getCurrent(), and YACS::HMI::GuiContext::getProc().
Referenced by loadProc().
void SubjectProc::loadContainers | ( | ) |
loadContainers is used when an existing scheme has been loaded in memory, to create subjects for containers stored in the schema file, but are not associated with components.
Definition at line 1897 of file guiObservers.cxx.
References YACS::HMI::GuiContext::_mapOfSubjectContainer, addSubjectContainer(), YACS::ENGINE::Proc::containerMap, YACS::HMI::GuiContext::getCurrent(), and YACS::HMI::GuiContext::getProc().
Referenced by loadProc().
void SubjectProc::loadProc | ( | ) |
Definition at line 1840 of file guiObservers.cxx.
References DEBTRACE, YACS::HMI::SubjectNode::getName(), YACS::HMI::SubjectComposedNode::loadChildren(), loadComponents(), loadContainers(), YACS::HMI::SubjectComposedNode::loadLinks(), and loadTypes().
Referenced by YACS::HMI::GuiContext::setProc().
void SubjectProc::loadTypes | ( | ) |
Load types for a SubjectProc.
This method loads (on import or on creation) all types of the builtin catalog and all types defined in the Proc
Definition at line 1854 of file guiObservers.cxx.
References _proc, YACS::ENGINE::Catalog::_typeMap, addSubjectDataType(), YACS::ENGINE::Runtime::getBuiltinCatalog(), YACS::ENGINE::getSALOMERuntime(), and YACS::ENGINE::Proc::typeMap.
Referenced by loadProc().
void SubjectProc::localclean | ( | Command * | command = 0 | ) |
void SubjectProc::removeSubjectContainer | ( | SubjectContainerBase * | scont | ) |
Definition at line 2049 of file guiObservers.cxx.
References YACS::HMI::Subject::erase(), YACS::HMI::SubjectContainerBase::getContainer(), YACS::HMI::GuiContext::getCurrent(), and YASSERT.
Referenced by YACS::HMI::CommandAddContainerBase::localReverse().
void SubjectProc::removeSubjectDataType | ( | std::string | typeName | ) |
Definition at line 2034 of file guiObservers.cxx.
References YACS::HMI::GuiContext::_mapOfSubjectDataType, DEBTRACE, YACS::HMI::Subject::erase(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getProc(), YACS::ENGINE::Proc::typeMap, and YASSERT.
Referenced by YACS::HMI::CommandAddDataTypeFromCatalog::localReverse().
|
protected |
Definition at line 532 of file guiObservers.hxx.
Referenced by addPostErase(), cleanPostErase(), and SubjectProc().
|
protected |
Definition at line 531 of file guiObservers.hxx.
Referenced by loadTypes().