20 #ifndef _PROPERTYEDITOR_HXX_
21 #define _PROPERTYEDITOR_HXX_
24 #include <QTableWidget>
25 #include <QTableWidgetItem>
A class to edit properties of a subject.
virtual void onItemChanged(QTableWidgetItem *item)
Qt slot to change the value of a property item in the table.
virtual void onRemoveProperty()
Qt slot to remove the selected item in the table.
virtual void onAddProperty(QAction *action)
Qt slot to add a property item in the table.
virtual ~PropertyEditor()
void update()
Update the property items with their values in the subject.
QStringList _propertyNames
PropertyEditor(Subject *subject, QWidget *parent=0)
QStringList _knownProperties
void updateMenu()
Update the menu used to add properties with the already set properties.
void setProperties()
Update the subject properties with the values stored in the table.
virtual void on_tb_options_toggled(bool checked)