#include <EditionSwitch.hxx>
Public Slots | |
virtual void | onModifySelect (const QString &text) |
virtual void | onCommitData (QWidget *editor) |
Public Member Functions | |
EditionSwitch (Subject *subject, QWidget *parent=0, const char *name=0) | |
virtual | ~EditionSwitch () |
virtual void | synchronize () |
virtual void | update (GuiEvent event, int type, Subject *son) |
Public Member Functions inherited from YACS::HMI::EditionBloc | |
EditionBloc (Subject *subject, QWidget *parent=0, const char *name=0) | |
virtual | ~EditionBloc () |
Public Member Functions inherited from YACS::HMI::EditionNode | |
EditionNode (Subject *subject, QWidget *parent=0, const char *name=0) | |
virtual | ~EditionNode () |
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 Attributes | |
TableSwitch * | _tvSwitch |
ValueDelegate * | _valueDelegate |
Protected Attributes inherited from YACS::HMI::EditionBloc | |
PropertyEditor * | _propeditor |
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 34 of file EditionSwitch.hxx.
Definition at line 38 of file EditionSwitch.cxx.
References _tvSwitch, _valueDelegate, FormEditItem::_wid, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSchemaModel(), onCommitData(), onModifySelect(), YACS::HMI::TableSwitch::setEditableCase(), and YACS::HMI::YValue.
|
virtual |
Definition at line 62 of file EditionSwitch.cxx.
|
virtualslot |
Definition at line 122 of file EditionSwitch.cxx.
References _valueDelegate, DEBTRACE, YACS::HMI::Subject::getParent(), YACS::HMI::GenericEditor::GetStrValue(), YACS::HMI::GenericEditor::getSubject(), YACS::HMI::SubjectSwitch::setCase(), YACS::HMI::ValueDelegate::setResultEditing(), and YASSERT.
Referenced by EditionSwitch().
|
virtualslot |
Definition at line 91 of file EditionSwitch.cxx.
References YACS::HMI::ItemEditionBase::_subject, DEBTRACE, and YASSERT.
Referenced by EditionSwitch().
|
virtual |
used in derived nodes for synchronisation with schema model.
Reimplemented from YACS::HMI::ItemEdition.
Definition at line 66 of file EditionSwitch.cxx.
References YACS::HMI::QtGuiContext::_mapOfSchemaItem, YACS::HMI::ItemEditionBase::_subject, _tvSwitch, YACS::HMI::TableSwitch::adjustColumns(), DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSchemaModel(), YACS::HMI::SchemaItem::getSubject(), YACS::HMI::SchemaModel::index(), YACS::HMI::SchemaItem::modelIndex(), YACS::HMI::SchemaModel::rowCount(), YACS::HMI::SETSELECT, and YACS::HMI::Subject::update().
when loading a schema, creation of all edition widgets is time and memory consuming, so, widget edition creation is differed until user select an item in tree or 2D vue.
Reimplemented from YACS::HMI::EditionBloc.
Definition at line 99 of file EditionSwitch.cxx.
References YACS::HMI::ItemEditionBase::_subject, _tvSwitch, DEBTRACE, YACS::HMI::GuiObserver::eventName(), YACS::HMI::SubjectComposedNode::getValue(), CORBAEngineTest::i, YACS::HMI::SETSELECT, and YACS::HMI::EditionBloc::update().
Referenced by gui.graph.MyCanvas::customEvent().
|
protected |
Definition at line 51 of file EditionSwitch.hxx.
Referenced by EditionSwitch(), synchronize(), and update().
|
protected |
Definition at line 52 of file EditionSwitch.hxx.
Referenced by EditionSwitch(), and onCommitData().