43 EditionSalomeNode::EditionSalomeNode(
Subject* subject,
69 connect(
_wComponent->cb_instance, SIGNAL(mousePressed()),
71 connect(
_wComponent->cb_instance, SIGNAL(activated(
int)),
74 connect(
_wComponent->cb_container, SIGNAL(mousePressed()),
76 connect(
_wComponent->cb_container, SIGNAL(activated(
int)),
79 connect(
_wComponent->tb_component, SIGNAL(toggled(
bool)),
81 connect(
_wComponent->tb_component, SIGNAL(toggled(
bool)),
110 DEBTRACE(
"EditionSalomeNode::update ");
164 if (! QString::compare(compoInst->
getCompoName().c_str(), compoName))
177 DEBTRACE(
"EditionSalomeNode::fillContainerPanel");
184 map<string,Container*>::const_iterator it = proc->
containerMap.begin();
186 _wComponent->cb_container->addItem( QString((*it).first.c_str()));
201 string instName =
_wComponent->cb_instance->itemText(index).toStdString();
207 else DEBTRACE(
"-------------> not found : " << instName);
209 if (newCompoInst && (newCompoInst != oldCompoInst))
220 string contName =
_wComponent->cb_container->itemText(index).toStdString();
231 DEBTRACE(
"-------------> not found : " << contName);
251 DEBTRACE(
"EditionSalomeNode::onApply");
261 DEBTRACE(
"EditionSalomeNode::onCancel");
#define YASSERT(val)
YASSERT macro is always defined, used like assert, but throw a YACS::Exception instead of abort.
Base class for all component instances.
Container * getContainer() const
const std::string & getCompoName() const
const std::string & getInstanceName() const
virtual std::string getName() const
Base class for all schema objects.
std::map< std::string, Container * > containerMap
std::map< std::string, ComponentInstance * > componentInstanceMap
Class for calculation node associated with a component service.
virtual std::string getMethod()
virtual Container * getContainer()
Return the associated container.
virtual ComponentInstance * getComponent()
Return the associated component instance.
SubjectElementaryNode * _subElemNode
virtual void synchronize()
virtual void createTablePorts(QLayout *layout)
virtual void update(GuiEvent event, int type, Subject *son)
virtual void synchronize()
FormContainerDecorator * _wContainer
virtual ~EditionSalomeNode()
virtual void fillContainerPanel()
YACS::ENGINE::ServiceNode * _servNode
virtual void changeInstance(int index)
PropertyEditor * _propeditor
virtual void update(GuiEvent event, int type, Subject *son)
virtual void changeContainer(int index)
virtual void changeHost(int index)
QHBoxLayout * _hbl_method
virtual void fillComponentPanel()
FormComponent * _wComponent
YACS::ENGINE::Proc * getProc()
std::map< YACS::ENGINE::ComponentInstance *, YACS::HMI::SubjectComponent * > _mapOfSubjectComponent
static GuiContext * getCurrent()
A class to edit properties of a subject.
void update()
Update the property items with their values in the subject.
virtual bool associateToContainer(SubjectContainerBase *subcont)
virtual YACS::ENGINE::Node * getNode()
virtual Subject * getReference() const
virtual std::string getName()
virtual SubjectReference * getSubjectReference()
virtual bool associateToComponent(SubjectComponent *subcomp)
virtual std::string getName()