#include <EditionElementaryNode.hxx>
Public Slots | |
virtual void | onApply () |
virtual void | onCancel () |
virtual void | onPortIndexChanged (int index) |
virtual void | onCommitData (QWidget *editor) |
Public Member Functions | |
EditionElementaryNode (Subject *subject, QWidget *parent=0, const char *name=0) | |
virtual | ~EditionElementaryNode () |
virtual void | synchronize () |
virtual void | setEditablePorts (bool isEditable) |
Public Member Functions inherited from YACS::HMI::EditionNode | |
EditionNode (Subject *subject, QWidget *parent=0, const char *name=0) | |
virtual | ~EditionNode () |
virtual void | update (GuiEvent event, int type, Subject *son) |
Public Member Functions inherited from YACS::HMI::ItemEdition | |
ItemEdition (Subject *subject, QWidget *parent=0, const char *name=0) | |
virtual | ~ItemEdition () |
virtual void | select (bool isSelected) |
virtual void | setName (std::string name) |
virtual void | setEdited (bool isEdited) |
Public Member Functions inherited from FormEditItem | |
FormEditItem (QWidget *parent=0) | |
virtual | ~FormEditItem () |
Public Member Functions inherited from YACS::HMI::ItemEditionBase | |
ItemEditionBase (Subject *subject) | |
virtual | ~ItemEditionBase () |
virtual Subject * | getSubject () |
Public Member Functions inherited from YACS::HMI::GuiObserver | |
GuiObserver () | |
virtual | ~GuiObserver () |
virtual void | incrementSubjects (Subject *subject) |
virtual void | decrementSubjects (Subject *subject) |
int | getNbSubjects () |
bool | isDestructible () |
Protected Member Functions | |
virtual bool | hasInputPorts () |
virtual bool | hasOutputPorts () |
virtual void | createTablePorts (QLayout *layout) |
Protected Attributes | |
SubjectElementaryNode * | _subElemNode |
QTabWidget * | _twPorts |
TablePortsEdition * | _tvInPorts |
TablePortsEdition * | _tvOutPorts |
ValueDelegate * | _valueDelegate |
Protected Attributes inherited from YACS::HMI::EditionNode | |
QLineEdit * | _le_fullName |
SubjectNode * | _subjectNode |
Protected Attributes inherited from YACS::HMI::ItemEdition | |
bool | _isEdited |
bool | _haveScript |
Protected Attributes inherited from FormEditItem | |
WidEditItem * | _wid |
Protected Attributes inherited from YACS::HMI::ItemEditionBase | |
Subject * | _subject |
int | _stackId |
std::string | _name |
std::string | _type |
std::string | _category |
Protected Attributes inherited from YACS::HMI::GuiObserver | |
std::set< Subject * > | _subjectSet |
bool | _destructible |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::HMI::ItemEdition | |
static std::string | filterName (const std::string &name) |
Static Protected Attributes inherited from YACS::HMI::GuiObserver | |
static std::map< int, std::string > | _eventNameMap |
Definition at line 35 of file EditionElementaryNode.hxx.
EditionElementaryNode::EditionElementaryNode | ( | Subject * | subject, |
QWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
Definition at line 41 of file EditionElementaryNode.cxx.
References _subElemNode, YACS::HMI::ItemEditionBase::_subject, _tvInPorts, _tvOutPorts, _twPorts, _valueDelegate, onCommitData(), and YASSERT.
|
virtual |
Definition at line 61 of file EditionElementaryNode.cxx.
|
protectedvirtual |
Definition at line 145 of file EditionElementaryNode.cxx.
References _tvInPorts, _tvOutPorts, _twPorts, _valueDelegate, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSchemaModel(), hasInputPorts(), hasOutputPorts(), YACS::HMI::SchemaModel::index(), onPortIndexChanged(), setEditablePorts(), YACS::HMI::YLabel, and YACS::HMI::YValue.
Referenced by YACS::HMI::EditionOutNode::EditionOutNode(), YACS::HMI::EditionPresetNode::EditionPresetNode(), YACS::HMI::EditionSalomeNode::EditionSalomeNode(), and YACS::HMI::EditionScript::EditionScript().
|
protectedvirtual |
Reimplemented in YACS::HMI::EditionPresetNode.
Definition at line 135 of file EditionElementaryNode.cxx.
Referenced by createTablePorts().
|
protectedvirtual |
Reimplemented in YACS::HMI::EditionOutNode.
Definition at line 140 of file EditionElementaryNode.cxx.
Referenced by createTablePorts().
|
virtualslot |
Definition at line 65 of file EditionElementaryNode.cxx.
References YACS::HMI::ItemEdition::onApply().
Referenced by YACS::HMI::EditionScript::onApply(), YACS::HMI::EditionSalomeNode::onApply(), and YACS::HMI::EditionSalomeNode::onCancel().
|
virtualslot |
Definition at line 70 of file EditionElementaryNode.cxx.
References YACS::HMI::ItemEdition::onCancel().
Referenced by YACS::HMI::EditionScript::onCancel().
|
virtualslot |
After edition with a specific editor created by ValueDelegate for a cell of TablePortsEdition, the resulting string is tested for setValue on the corresponding subject. Result of the setValue (succes or failure) is transmitted to ValueDelegate for further action in case of failure.
Definition at line 189 of file EditionElementaryNode.cxx.
References _valueDelegate, DEBTRACE, YACS::HMI::GenericEditor::getColumnInSubject(), YACS::HMI::QtGuiContext::getGuiExecutor(), YACS::HMI::SubjectDataPort::getPort(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GenericEditor::GetStrValue(), YACS::HMI::GenericEditor::getSubject(), YACS::HMI::GuiExecutor::setInPortValue(), YACS::HMI::SubjectDataPort::setName(), YACS::HMI::ValueDelegate::setResultEditing(), YACS::HMI::SubjectDataPort::setValue(), YASSERT, and YACS::HMI::YValue.
Referenced by EditionElementaryNode().
|
virtualslot |
Definition at line 75 of file EditionElementaryNode.cxx.
References DEBTRACE, and synchronize().
Referenced by createTablePorts().
|
virtual |
Definition at line 129 of file EditionElementaryNode.cxx.
References _tvInPorts, _tvOutPorts, and YACS::HMI::TablePortsEdition::setEditablePorts().
Referenced by createTablePorts(), YACS::HMI::EditionOutNode::EditionOutNode(), YACS::HMI::EditionPresetNode::EditionPresetNode(), and YACS::HMI::EditionScript::EditionScript().
|
virtual |
used in derived nodes for synchronisation with schema model.
Reimplemented from YACS::HMI::ItemEdition.
Reimplemented in YACS::HMI::EditionScript, and YACS::HMI::EditionSalomeNode.
Definition at line 81 of file EditionElementaryNode.cxx.
References YACS::HMI::QtGuiContext::_mapOfSchemaItem, _subElemNode, YACS::HMI::ItemEditionBase::_subject, _tvInPorts, _tvOutPorts, YACS::HMI::TablePortsEdition::adjustColumns(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSchemaModel(), YACS::HMI::SchemaItem::getSubject(), YACS::HMI::SchemaModel::index(), YACS::HMI::SchemaItem::modelIndex(), YACS::HMI::SchemaModel::rowCount(), and YACS::HMI::TablePortsEdition::setNode().
Referenced by onPortIndexChanged(), YACS::HMI::EditionSalomeNode::synchronize(), and YACS::HMI::EditionScript::synchronize().
|
protected |
Definition at line 57 of file EditionElementaryNode.hxx.
Referenced by EditionElementaryNode(), YACS::HMI::EditionSalomeNode::EditionSalomeNode(), and synchronize().
|
protected |
Definition at line 59 of file EditionElementaryNode.hxx.
Referenced by createTablePorts(), EditionElementaryNode(), setEditablePorts(), and synchronize().
|
protected |
Definition at line 60 of file EditionElementaryNode.hxx.
Referenced by createTablePorts(), EditionElementaryNode(), setEditablePorts(), and synchronize().
|
protected |
Definition at line 58 of file EditionElementaryNode.hxx.
Referenced by createTablePorts(), and EditionElementaryNode().
|
protected |
Definition at line 61 of file EditionElementaryNode.hxx.
Referenced by createTablePorts(), EditionElementaryNode(), and onCommitData().