a2dCommand_SetFlag Class Reference
[commands used in command processor]

for changing boolean values inside canvas objects More...

#include <cancom.h>

Inheritance diagram for a2dCommand_SetFlag:

Inheritance graph
[legend]
Collaboration diagram for a2dCommand_SetFlag:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dCommand_SetFlag (a2dCanvasObject *object, a2dCanvasObjectFlagsMask which, bool value)
 given flag of object set to value
virtual a2dCommandCloneAndBind (a2dPropObject *object)
 Copy and instantiate the command.
bool Do ()
bool Undo ()
a2dCanvasCommandProcessorGetCanvasCmp ()

Static Public Attributes

static const a2dCommandId Id

Protected Attributes

a2dCanvasObjectPtr m_canvasobject
a2dCanvasObjectFlagsMask m_which
bool m_bool


Detailed Description

for changing boolean values inside canvas objects

Definition at line 1006 of file cancom.h.


Member Function Documentation

a2dCommand * a2dCommand_SetFlag::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 2603 of file cancom.cpp.


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