|
wxArt2D
|
#include <id.h>


Public Types | |
| typedef basetype(a2dObject::* | Get )() const |
| get method | |
| typedef void(a2dObject::* | Set )(basetype) |
| set method | |
| typedef void(a2dObject::* | ConstSet )(const basetype &value) |
| constant get method | |
| typedef basetype a2dObject::* | Mptr |
| member pointer | |
Public Types inherited from a2dPropertyIdTyped< basetype, proptype > | |
| typedef basetype(wxObject::* | Get )() const |
|
typedef const basetype &(wxObject::* | ConstGet )() const |
| typedef void(wxObject::* | Set )(basetype) |
| typedef void(wxObject::* | ConstSet )(const basetype &value) |
| typedef basetype wxObject::* | Mptr |
Public Types inherited from a2dPropertyId | |
| enum | Flags { flag_none = 0x00000000, flag_temporary = 0x00000001, flag_transfer = 0x00000002, flag_onlymember = 0x00000004, flag_onlymemberhint = 0x00000008, flag_listfirst = 0x00000010, flag_multiple = 0x00000020, flag_clonedeep = 0x00000040, flag_listonly = 0x00000080, flag_norender = 0x00000100, flag_userDefined = 0x00000200, flag_isEditable = 0x00000400, flag_notify = 0x00000800 } |
| Flags for property ids. More... | |
| enum | SetFlags { set_none = 0x00000000, set_onlymember = 0x00000010, set_remove_non_member = 0x00000020, set_remove_property = 0x00000040 } |
| Flags used for manipulating the way a property is set to a2dObject. More... | |
Public Member Functions | |
| a2dPropertyIdGetSet (const wxString &name, a2dPropertyId::Flags flags, const basetype &defaultvalue, Get getFunc, Set setFunc) | |
| constructor | |
| a2dPropertyIdGetSet (const wxString &name, a2dPropertyId::Flags flags, const basetype &defaultvalue, Get getFunc, ConstSet setFunc) | |
| constructor | |
| bool | SetPropertyToObject (a2dObject *obj, const basetype &value) const |
| Set the property value in obj. | |
| basetype | GetPropertyValue (const a2dObject *obj) const |
| Get the property value in obj. | |
| basetype | GetPropertyValue (const a2dObject *obj, const basetype &defaultvalue) const |
| Get the property value in obj, if not found return default value given. | |
| proptype * | GetPropertyClone (const a2dObject *obj) const |
| Get the property in obj (cloned) | |
| a2dNamedProperty * | GetPropertyAsNamedProperty (const a2dObject *obj) const |
Public Member Functions inherited from a2dPropertyIdTyped< basetype, proptype > | |
| a2dPropertyIdTyped (const wxString &name, Flags flags, const basetype &defaultvalue) | |
| constructor for dynamic properties on objects More... | |
| a2dPropertyIdTyped (const wxString &name, basetype defaultvalue, Flags flags=flag_listfirst) | |
| a2dPropertyIdTyped (const wxString &name, Flags flags, const basetype &defaultvalue, Get getFunc, Set setFunc) | |
| constructor for Get and Set functions to get the property More... | |
| a2dPropertyIdTyped (const wxString &name, Flags flags, const basetype &defaultvalue, Get getFunc, ConstSet setFunc) | |
| constructor for Get and ConstSet functions to get the property More... | |
| a2dPropertyIdTyped (const wxString &name, Flags flags, const basetype &defaultvalue, ConstGet getFunc, ConstSet setFunc) | |
| a2dPropertyIdTyped (const wxString &name, Flags flags, const basetype &defaultvalue, Mptr ptm) | |
| constructor for a pointer to a member variable to get the property More... | |
| void | SetPropertyToObject (a2dObject *obj, const basetype &value, SetFlags setflags=set_none) const |
| Set the property in obj to value. | |
| void | SetPropertyToObject (a2dObject *obj, proptype *property, SetFlags setflags=set_none) const |
| Given the object to set the property on, and a a2dNamedProperty to. More... | |
| proptype * | GetPropertyClone (const a2dObject *obj) const |
| retrieve in form of a a2dNamedProperty the value of the property identified with this id More... | |
| void | SetNamedPropertyToObject (a2dObject *obj, a2dNamedProperty *nprop, SetFlags setflags=set_none) const |
| Set the property in obj to value (not cloning value) | |
| proptype * | GetPropertyListOnly (const a2dObject *obj) const |
| Get the property from the list in obj ( no members, not cloned ) | |
| basetype | GetPropertyValue (const a2dObject *obj) const |
| Get the property value in obj. | |
| basetype | GetPropertyValue (const a2dObject *obj, const basetype &defaultvalue) const |
| Get the property value in obj, if not found return default value given. | |
| basetype * | GetPropertyValuePtr (a2dObject *obj) const |
| Get a pointer to the property value in obj. | |
| const basetype & | GetDefaultValue () const |
| Get the default value for this property. | |
| a2dNamedProperty * | CreatePropertyFromString (const wxString &value) const |
| Create a new property object from a value string. | |
Public Member Functions inherited from a2dPropertyId | |
| a2dPropertyId (const wxString &name, Flags flags) | |
| Default constructor. | |
| virtual | ~a2dPropertyId () |
| destructor | |
| virtual wxString | GetName () const |
| Get the ids print and serialization name. | |
| void | SetName (const wxString &name) |
| Set the ids print and serialization name. | |
| virtual const a2dPropertyId * | GetMainID () const |
| Get the main (pre-dot) part of a hierarchical id. | |
| virtual const a2dPropertyId * | GetSubID () const |
| Get the sub (post-dot) part of a hierarchical id. | |
| virtual bool | operator== (const a2dPropertyId &other) const |
| Check if this id is equal to another id. | |
| bool | IsCloneDeep () const |
| Test if this id identifies a property that needs to be cloned deep. | |
| bool | IsTemporary () const |
| Test if this id identifies a temporary property. | |
| bool | IsTransfer () const |
| true if this property is transfered via e.g. a command processor | |
| bool | IsOnlyMember () const |
| true if this property is only set as member | |
| bool | IsOnlyMemberHint () const |
| true if this property has the only set as member hint set | |
| bool | IsListFirst () const |
| true if this property searches the list first, then members | |
| bool | IsListOnly () const |
| true if this property searches the list only | |
| bool | IsUserDefined () const |
| true if this property is user defined | |
| bool | IsEditable () const |
| true if this property is editable ( can be tested in a property editor ). | |
| bool | CheckFlags (Flags flags) const |
| check a flag mask (all given flags must be set) | |
| bool | CheckCollect (const a2dPropertyId *id, Flags flags) const |
| check a property id and flags to see if the property shall be collected | |
| void | RemovePropertyFromObject (a2dObject *obj) const |
| Dynamic properties with this id will be removed from the object. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from a2dPropertyIdTyped< basetype, proptype > | |
| static a2dPropertyIdTyped < basetype, proptype > * | GetDummy () |
| returns a dummy property id of this type, that can be used in non-id applications More... | |
Protected Member Functions inherited from a2dPropertyIdTyped< basetype, proptype > | |
| a2dPropertyIdTyped () | |
| this constructor is only for property ids referencing other property ids | |
Protected Member Functions inherited from a2dPropertyId | |
| a2dPropertyId () | |
| this constructor is only for property ids referencing other property ids | |
| void | DoAddPropertyToObject (a2dObject *obj, a2dNamedProperty *prop) const |
| this is called by derived classes to add a list property in an object More... | |
| bool | DoIgnoreIfNotMember (a2dObject *obj) const |
| this is called by derived to check if a property should be added as non-member More... | |
Static Protected Member Functions inherited from a2dPropertyId | |
| static void | DoSetPropertyId (a2dNamedProperty *prop, a2dPropertyId *id) |
| this is called by derived classes to change an id in a property More... | |
Protected Attributes inherited from a2dPropertyIdTyped< basetype, proptype > | |
| Get | m_get |
| ConstGet | m_constget |
| Set | m_set |
| ConstSet | m_constset |
| basetype a2dObject::* | m_ptm |
| basetype | m_defaultvalue |
| this is the value returned if e.g. a property is not found | |
Protected Attributes inherited from a2dPropertyId | |
| wxString | m_name |
| Flags | m_flags |
Like a2dPropertyIdTyped, but always references a certain member Get and Set function in a certain class