a2dCommand_SetCanvasProperty Class Reference

used to change a property on objects More...

#include <cancom.h>

Inheritance diagram for a2dCommand_SetCanvasProperty:

Inheritance graph
[legend]
Collaboration diagram for a2dCommand_SetCanvasProperty:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dCommand_SetCanvasProperty (a2dPropObject *object, a2dNamedProperty *property)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdRefObject *id, a2dObject *value)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdString *id, const wxString &value)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdBool *id, bool value)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdInt16 *id, wxInt16 value)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdUint16 *id, wxUint16 value)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdInt32 *id, wxInt32 value)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdUint32 *id, wxUint32 value)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdDouble *id, double value)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdCanvasObject *id, a2dCanvasObject *value)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdMatrix *id, const a2dAffineMatrix &value)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdPoint2D *id, const a2dPoint2D &point, int index=-1, bool afterinversion=true)
 Set property on object.
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdFill *id, const a2dFill &fill=*a2dNullFILL)
 a2dCommand_SetCanvasProperty (a2dPropObject *object, const a2dPropertyIdStroke *id, const a2dStroke &stroke=*a2dNullSTROKE)
virtual a2dCommandCloneAndBind (a2dPropObject *object)
 Copy and instantiate the command.
bool Do ()
bool Undo ()
a2dCanvasCommandProcessorGetCanvasCmp ()

Static Public Attributes

static const a2dCommandId Id


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. 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 1451 of file cancom.h.


Constructor & Destructor Documentation

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
a2dNamedProperty property 
) [inline]

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 1470 of file cancom.h.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdRefObject id,
a2dObject value 
) [inline]

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 name of the property to set.
value the value to set the property to.

Definition at line 1481 of file cancom.h.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdString id,
const wxString &  value 
) [inline]

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 name of the property to set.
value the value to set the property to.

Definition at line 1493 of file cancom.h.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdBool id,
bool  value 
) [inline]

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 name of the property to set.
value the value to set the property to.

Definition at line 1505 of file cancom.h.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdInt16 id,
wxInt16  value 
) [inline]

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 name of the property to set.
value the value to set the property to.

Definition at line 1517 of file cancom.h.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdUint16 id,
wxUint16  value 
) [inline]

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 name of the property to set.
value the value to set the property to.

Definition at line 1529 of file cancom.h.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdInt32 id,
wxInt32  value 
) [inline]

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 name of the property to set.
value the value to set the property to.

Definition at line 1541 of file cancom.h.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdUint32 id,
wxUint32  value 
) [inline]

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 name of the property to set.
value the value to set the property to.

Definition at line 1553 of file cancom.h.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdDouble id,
double  value 
) [inline]

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 name of the property to set.
value the value to set the property to.

Definition at line 1565 of file cancom.h.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdCanvasObject id,
a2dCanvasObject value 
)

Set property on object.

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

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

Definition at line 3245 of file cancom.cpp.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdMatrix id,
const a2dAffineMatrix value 
)

Set property on object.

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

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

Definition at line 3257 of file cancom.cpp.

a2dCommand_SetCanvasProperty::a2dCommand_SetCanvasProperty ( a2dPropObject object,
const a2dPropertyIdPoint2D id,
const a2dPoint2D point,
int  index = -1,
bool  afterinversion = true 
)

Set property on object.

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

Parameters:
id the name of the property to set.
point the point for the internal a2dPoint2DProperty
index the index for the internal a2dPoint2DProperty
afterinversion the afterinversion for the internal a2dPoint2DProperty
object the canvas object to set the property on.

Definition at line 3269 of file cancom.cpp.


Member Function Documentation

a2dCommand * a2dCommand_SetCanvasProperty::CloneAndBind ( a2dPropObject object  )  [virtual]

Copy and instantiate the command.

This is usefull for commands that are used as command templates in widgets. The widget owns a command template, that is not bound to an object. This function clones the command object and binds it to the given object.

\param object for which the command is to be generated.

Reimplemented from a2dCommand.

Definition at line 3299 of file cancom.cpp.


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