A class to edit properties of a subject. More...
#include <PropertyEditor.hxx>
Public Slots | |
virtual void | onAddProperty (QAction *action) |
Qt slot to add a property item in the table. More... | |
virtual void | onRemoveProperty () |
Qt slot to remove the selected item in the table. More... | |
virtual void | onItemChanged (QTableWidgetItem *item) |
Qt slot to change the value of a property item in the table. More... | |
virtual void | on_tb_options_toggled (bool checked) |
Public Member Functions | |
PropertyEditor (Subject *subject, QWidget *parent=0) | |
virtual | ~PropertyEditor () |
void | updateMenu () |
Update the menu used to add properties with the already set properties. More... | |
void | update () |
Update the property items with their values in the subject. More... | |
void | setProperties () |
Update the subject properties with the values stored in the table. More... | |
Protected Attributes | |
Subject * | _subject |
QTableWidget * | _table |
QToolBar * | _bar |
QAction * | _removeAction |
QAction * | _addAction |
QStringList | _knownProperties |
QStringList | _propertyNames |
bool | _editing |
A class to edit properties of a subject.
Definition at line 35 of file PropertyEditor.hxx.
Definition at line 47 of file PropertyEditor.cxx.
References _addAction, _bar, _editing, _knownProperties, _removeAction, _subject, _table, CORBAEngineTest::i, YACS::HMI::Subject::knownProperties(), on_tb_options_toggled(), onItemChanged(), onRemoveProperty(), update(), and updateMenu().
|
virtual |
Definition at line 114 of file PropertyEditor.cxx.
|
virtualslot |
Definition at line 259 of file PropertyEditor.cxx.
References _bar, _table, and DEBTRACE.
Referenced by PropertyEditor().
|
virtualslot |
Qt slot to add a property item in the table.
action | : the triggered action |
Definition at line 138 of file PropertyEditor.cxx.
References _editing, _propertyNames, _table, DEBTRACE, and updateMenu().
Referenced by updateMenu().
|
virtualslot |
Qt slot to change the value of a property item in the table.
item | : the item changed |
Definition at line 175 of file PropertyEditor.cxx.
References _editing, DEBTRACE, and setProperties().
Referenced by PropertyEditor().
|
virtualslot |
Qt slot to remove the selected item in the table.
Definition at line 121 of file PropertyEditor.cxx.
References _propertyNames, _table, DEBTRACE, setProperties(), and updateMenu().
Referenced by PropertyEditor().
void PropertyEditor::setProperties | ( | ) |
Update the subject properties with the values stored in the table.
Definition at line 239 of file PropertyEditor.cxx.
References _subject, _table, DEBTRACE, CORBAEngineTest::i, PMMLBasicsTestLauncher::ret, and YACS::HMI::Subject::setProperties().
Referenced by onItemChanged(), and onRemoveProperty().
void PropertyEditor::update | ( | ) |
Update the property items with their values in the subject.
Definition at line 186 of file PropertyEditor.cxx.
References _editing, _propertyNames, _subject, _table, DEBTRACE, and YACS::HMI::Subject::getProperties().
Referenced by gui.graph.MyCanvas::customEvent(), PropertyEditor(), YACS::HMI::EditionBloc::update(), YACS::HMI::EditionDataLink::update(), YACS::HMI::EditionComponent::update(), and YACS::HMI::EditionSalomeNode::update().
void PropertyEditor::updateMenu | ( | ) |
Update the menu used to add properties with the already set properties.
Definition at line 213 of file PropertyEditor.cxx.
References _addAction, _knownProperties, _propertyNames, DEBTRACE, CORBAEngineTest::i, and onAddProperty().
Referenced by onAddProperty(), onRemoveProperty(), and PropertyEditor().
|
protected |
Definition at line 57 of file PropertyEditor.hxx.
Referenced by PropertyEditor(), and updateMenu().
|
protected |
Definition at line 55 of file PropertyEditor.hxx.
Referenced by on_tb_options_toggled(), and PropertyEditor().
|
protected |
Definition at line 60 of file PropertyEditor.hxx.
Referenced by onAddProperty(), onItemChanged(), PropertyEditor(), and update().
|
protected |
Definition at line 58 of file PropertyEditor.hxx.
Referenced by PropertyEditor(), and updateMenu().
|
protected |
Definition at line 59 of file PropertyEditor.hxx.
Referenced by onAddProperty(), onRemoveProperty(), update(), and updateMenu().
|
protected |
Definition at line 56 of file PropertyEditor.hxx.
Referenced by PropertyEditor().
|
protected |
Definition at line 53 of file PropertyEditor.hxx.
Referenced by PropertyEditor(), setProperties(), and update().
|
protected |
Definition at line 54 of file PropertyEditor.hxx.
Referenced by on_tb_options_toggled(), onAddProperty(), onRemoveProperty(), PropertyEditor(), setProperties(), and update().