|
Jameo Core Library
|
This interface defines the possibility to edit properties of an object via a uniform interface. This is particularly useful for saving time when objects are to be edited in the GUI. More...
Public Member Functions | |
| Property () | |
| Default constructor. | |
| Property (const String &id) | |
| Constructor with the property id. | |
| Property (const String &id, const String &group, const String &name, const String &hint, const String &editor, bool readOnly=false, PropertyChangeMode changeMode=PropertyChangeMode::kItself, bool allowEmpty=true) | |
| Constructor with parameters. | |
| bool | isReadOnly () const |
| Status, if property is read-only. | |
| bool | allowEmpty () const |
| Status, if property can be empty. | |
| PropertyChangeMode | changeMode () const |
| Status, how the change of one property will effect other properties of the corresponding object. | |
| bool | is (const String &id) const |
| Short call for checking is. Same as: GetId().IsEqual() | |
| const String & | id () const |
| Returns the id of the property. | |
| const String & | name () const |
| Returns the name of the property. | |
| const String & | hint () const |
| Returns a help string for the property. | |
| const String & | editor () const |
| Returns an identifiert for the suggested edtior of this property. | |
| const String & | group () const |
| Returns the group this property can belong to. | |
| void | setIcon (const String &iconname) |
| Set the name of an icon of this property. | |
| const String & | icon () const |
| Returns the icon name of this property. | |
| Status | setStringValue (const String &value) |
| Set the string value of this property. | |
| Status | setUnitValue (double value, const String &unit) |
| Set unit value. | |
| const String & | stringValue () const |
| Returns the string value of this property. | |
| Status | setIntegerValue (int64 value) |
| Set the Integer value of this Property. | |
| int64 | integerValue () const |
| Returns the Integer Value of this property. | |
| Status | setBoolValue (bool value) |
| Set the Bool value of this Property. | |
| bool | boolValue () const |
| Returns the Bool Value of this property. | |
| Status | setDoubleValue (double value) |
| Set the Double value of this Property. | |
| double | doubleValue () const |
| Returns the Dool Value of this property. | |
| PropertyType | type () const |
| Returns the type of the last value which was set. It is assumed that this is the right property type. Consider that on type (like comboboxes) this type can be wrong and has no meaning in that case. | |
| void | setType (PropertyType type) |
| void | setValue (const Property &other) |
| Übernimmt den Wert aus dem anderen Property. | |
| bool | isValueEquals (const Property &other) const |
| Prüfe, ob Werte gleich sind. | |
Friends | |
| DllExport friend bool | operator== (Property const &v1, Property const &v2) |
| Implementierung des Operators ==. | |
This interface defines the possibility to edit properties of an object via a uniform interface. This is particularly useful for saving time when objects are to be edited in the GUI.
| jm::Property::Property | ( | ) |
Default constructor.
|
explicit |
Constructor with the property id.
| jm::Property::Property | ( | const String & | id, |
| const String & | group, | ||
| const String & | name, | ||
| const String & | hint, | ||
| const String & | editor, | ||
| bool | readOnly = false, |
||
| PropertyChangeMode | changeMode = PropertyChangeMode::kItself, |
||
| bool | allowEmpty = true |
||
| ) |
Constructor with parameters.
| id | The id of the property |
| group | The group of the property |
| name | The name of the property |
| hint | A hint/help string of the property for the user |
| editor | Preferred editor widget for this property |
| readOnly | Status, if the property is read-only |
| changeMode | Mode of change infulence |
| allowEmpty | Status, if property can be empty |
| bool jm::Property::allowEmpty | ( | ) | const |
Status, if property can be empty.
| bool jm::Property::boolValue | ( | ) | const |
Returns the Bool Value of this property.
| PropertyChangeMode jm::Property::changeMode | ( | ) | const |
Status, how the change of one property will effect other properties of the corresponding object.
| double jm::Property::doubleValue | ( | ) | const |
Returns the Dool Value of this property.
| const String & jm::Property::editor | ( | ) | const |
Returns an identifiert for the suggested edtior of this property.
| const String & jm::Property::group | ( | ) | const |
Returns the group this property can belong to.
| const String & jm::Property::hint | ( | ) | const |
Returns a help string for the property.
| const String & jm::Property::icon | ( | ) | const |
Returns the icon name of this property.
| const String & jm::Property::id | ( | ) | const |
Returns the id of the property.
| int64 jm::Property::integerValue | ( | ) | const |
Returns the Integer Value of this property.
| bool jm::Property::is | ( | const String & | id | ) | const |
Short call for checking is. Same as: GetId().IsEqual()
| id | The unique id of the property. |
| bool jm::Property::isReadOnly | ( | ) | const |
Status, if property is read-only.
| bool jm::Property::isValueEquals | ( | const Property & | other | ) | const |
Prüfe, ob Werte gleich sind.
| const String & jm::Property::name | ( | ) | const |
Returns the name of the property.
| Status jm::Property::setBoolValue | ( | bool | value | ) |
Set the Bool value of this Property.
| value | The Bool value |
| Status jm::Property::setDoubleValue | ( | double | value | ) |
Set the Double value of this Property.
| value | The Bool value |
| void jm::Property::setIcon | ( | const String & | iconname | ) |
Set the name of an icon of this property.
| iconname | The name of the icon. |
| Status jm::Property::setIntegerValue | ( | int64 | value | ) |
Set the string value of this property.
| value | The string value. |
| void jm::Property::setType | ( | PropertyType | type | ) |
Set unit value.
| value | The number. |
| unit | The unit. |
| const String & jm::Property::stringValue | ( | ) | const |
Returns the string value of this property.
| PropertyType jm::Property::type | ( | ) | const |
Returns the type of the last value which was set. It is assumed that this is the right property type. Consider that on type (like comboboxes) this type can be wrong and has no meaning in that case.
Implementierung des Operators ==.
| bool jm::Property::boolValue |
| double jm::Property::doubleValue |
| float jm::Property::floatValue |
| int64 jm::Property::intValue |
| uint64 jm::Property::uintValue |