#include <pgpropertyeditor.h>
Inheritance diagram for PG_PropertyEditor:

Public Member Functions | |
| PG_PropertyEditor (PG_Widget *parent, const PG_Rect &rect, const std::string &style="PropertyEditor", int labelWidthPercentage=70) | |
| Creates a PG_PropertyEditor widget. | |
| virtual std::string | GetStyleName (const std::string &widgetName) |
| Returns the style name that the PropertyFields shall use. | |
| void | Reload () |
| Reloads all PropertyFields from their original values and updates the widget. | |
| bool | Valid (bool focus=false) |
| Checks if all PropertyFields contain valid values. | |
| bool | Apply () |
| Writes the PropertyFields' values to their original variables, provided they are valid. | |
| PG_Rect | RegisterProperty (const std::string &name, PG_PropertyEditorField *propertyEditorField, int height=-1) |
| Adds a PropertyField to the widget. | |
| ~PG_PropertyEditor () | |
Classes | |
| class | PG_PropertyEditorField |
| Interface for all the different PropertyFields. More... | |
Definition at line 48 of file pgpropertyeditor.h.
|
||||||||||||||||||||
|
Creates a PG_PropertyEditor widget.
Definition at line 35 of file pgpropertyeditor.cpp. |
|
|
Definition at line 88 of file pgpropertyeditor.cpp. |
|
|
Writes the PropertyFields' values to their original variables, provided they are valid.
Definition at line 59 of file pgpropertyeditor.cpp. Referenced by GameParameterEditorWidget::Apply(). |
|
|
Returns the style name that the PropertyFields shall use.
Reimplemented in ASC_PropertyEditor. Definition at line 39 of file pgpropertyeditor.cpp. Referenced by ASC_PropertyEditor::GetStyleName(). |
|
||||||||||||||||
|
Adds a PropertyField to the widget. The PropertyEditor will take ownership of the PropertyEditorFields and delete them on its own destruction. Definition at line 73 of file pgpropertyeditor.cpp. References PG_Label::LoadThemeStyle(), PG_ScrollWidget::my_widthScrollbar, PG_Rect::PG_Rect(), and PG_Rect::Width(). Referenced by PG_PropertyEditor_LineField::PG_PropertyEditor_LineField(), PG_PropertyField_Button::PG_PropertyField_Button(), and PG_PropertyField_Checkbox< B >::PG_PropertyField_Checkbox(). |
|
|
Reloads all PropertyFields from their original values and updates the widget.
Definition at line 43 of file pgpropertyeditor.cpp. Referenced by GameParameterEditorWidget::LoadParameter(), and GameParameterEditorWidget::ResetParameter(). |
|
|
Checks if all PropertyFields contain valid values.
Definition at line 49 of file pgpropertyeditor.cpp. Referenced by GameParameterEditorWidget::Valid(). |
1.4.2