a2dCommand_SetProperty Class Reference
[commands used in command processor]

used to change a property on objects More...

#include <comevt.h>

Inheritance diagram for a2dCommand_SetProperty:

Inheritance graph
[legend]
Collaboration diagram for a2dCommand_SetProperty:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dCommand_SetProperty ()
 for dynamic creation
 a2dCommand_SetProperty (a2dPropObject *object, a2dNamedProperty *property)
 Set property on object.
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdRefObject *id, a2dObject *value)
 Set property on object.
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdObject *id, const wxObject &value)
 Set property on object.
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdString *id, const wxString &value)
 Set property on object.
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdBool *id, bool value)
 Set property on object.
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdBool *id, const wxString &value)
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdInt16 *id, wxInt16 value)
 Set property on object.
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdUint16 *id, wxUint16 value)
 Set property on object.
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdInt32 *id, wxInt32 value)
 Set property on object.
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdUint32 *id, wxUint32 value)
 Set property on object.
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdDouble *id, double value)
 Set property on object.
 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyIdColour *id, const wxColour &colour)
 Set property on object.
 a2dCommand_SetProperty (const a2dCommand_SetProperty &other)
 copy constructor
a2dNamedPropertyGetProperty ()
 property that is set packed as a2dNamedProperty.
const a2dPropertyIdGetPropertyId ()
 property that is set packed as a2dNamedProperty.
a2dPropObjectGetObject ()
bool Do ()
bool Undo ()

Static Public Attributes

static const a2dCommandId Id = a2dCommandId( wxT("SetProperty") )

Protected Member Functions

 a2dCommand_SetProperty (a2dPropObject *object, const a2dPropertyId *id)
 this is for derived classes and derived properties

Protected Attributes

a2dAutoZeroPtr< a2dPropObjectm_propRefObject
 all property references will be set NULL when this object, having the property, will be deleted.
a2dNamedPropertyPtr m_property
 property set to the object.
const a2dPropertyIdm_id
 id of the property that is set.


Detailed Description

used to change a property on objects

A a2dObject property is set on the a2dPropObject, and the first property on the a2dPropObject with the same name is used for undo. Properties with the starting with __M_ are wrapped properties, and or often used to set member variables of classes. Special name properties starting with just __ are used to set predefined properties. Both these type of properties can be set by this command. If the property was not yet set for the object, in Undo the new property is just removed, else the old value is restored.

Definition at line 920 of file comevt.h.


Constructor & Destructor Documentation

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
a2dNamedProperty property 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
property the property to set

Definition at line 712 of file comevt.cpp.

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
const a2dPropertyIdRefObject id,
a2dObject value 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
id the a2dPropertyId of the property to set.
value the value to set the property to.

Definition at line 720 of file comevt.cpp.

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
const a2dPropertyIdObject id,
const wxObject &  value 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
id the a2dPropertyId of the property to set.
value the value to set the property to.

Definition at line 730 of file comevt.cpp.

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
const a2dPropertyIdString id,
const wxString &  value 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
id the a2dPropertyId of the property to set.
value the value to set the property to.

Definition at line 740 of file comevt.cpp.

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
const a2dPropertyIdBool id,
bool  value 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
id the a2dPropertyId of the property to set.
value the value to set the property to.

Definition at line 750 of file comevt.cpp.

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
const a2dPropertyIdInt16 id,
wxInt16  value 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
id the a2dPropertyId of the property to set.
value the value to set the property to.

Definition at line 770 of file comevt.cpp.

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
const a2dPropertyIdUint16 id,
wxUint16  value 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
id the a2dPropertyId of the property to set.
value the value to set the property to.

Definition at line 780 of file comevt.cpp.

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
const a2dPropertyIdInt32 id,
wxInt32  value 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
id the a2dPropertyId of the property to set.
value the value to set the property to.

Definition at line 790 of file comevt.cpp.

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
const a2dPropertyIdUint32 id,
wxUint32  value 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
id the a2dPropertyId of the property to set.
value the value to set the property to.

Definition at line 800 of file comevt.cpp.

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
const a2dPropertyIdDouble id,
double  value 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
id the a2dPropertyId of the property to set.
value the value to set the property to.

Definition at line 810 of file comevt.cpp.

a2dCommand_SetProperty::a2dCommand_SetProperty ( a2dPropObject object,
const a2dPropertyIdColour id,
const wxColour &  colour 
)

Set property on object.

The property its name is used for undo, and restore the old value if available.

Parameters:
object the canvas object to set the property on.
id the a2dPropertyId of the property to set.
colour the value to set the property to.

Definition at line 820 of file comevt.cpp.


The documentation for this class was generated from the following files:
a2dCommand_SetProperty Class Reference -- Tue Aug 31 18:19:14 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation