karbon
VCommand Class Reference
#include <vcommand.h>
Inheritance diagram for VCommand:

Detailed Description
The base class for all karbon commands.It basically defines the common interface that all commands should implement.
Definition at line 41 of file vcommand.h.
Public Member Functions | |
VCommand (VDocument *doc, const QString &name, const QString &icon="14_action") | |
virtual | ~VCommand () |
virtual void | execute ()=0 |
virtual void | unexecute () |
virtual bool | changesSelection () const |
QString | name () const |
void | setName (const QString &name) |
QString | icon () const |
VDocument * | document () const |
Constructor & Destructor Documentation
|
Constructs a new command.
Definition at line 51 of file vcommand.h. |
|
Destroys the command.
Definition at line 60 of file vcommand.h. |
Member Function Documentation
|
Returns if the command changes the actual document selection. This flag is checked to determine if the document has to be redrawn.
Reimplemented in VClipartCmd, VDeleteCmd, VDistributeCmd, VFillCmd, VShapeCmd, VStrokeCmd, VImageTool::VInsertImageCmd, and VCreateShadowCmd. Definition at line 84 of file vcommand.h. |
|
Returns the document the command works on.
Definition at line 121 of file vcommand.h. |
|
Executes the command. All the changes to the document are done here. All commands have to implement this function. Implemented in VAlignCmd, VBooleanCmd, VCleanUpCmd, VClipartCmd, VDeleteCmd, VDeleteNodeCmd, VDistributeCmd, VFillCmd, VGroupCmd, VInsertCmd, VLayerCmd, VReplacingCmd, VShapeCmd, VStrokeCmd, VTransformCmd, VTranslateBezierCmd, VTranslatePointCmd, VUnGroupCmd, VZOrderCmd, VImageTool::VInsertImageCmd, VCreateShadowCmd, and VWhirlPinchCmd. |
|
Returns the icon of the command.
Definition at line 111 of file vcommand.h. |
|
Returns the name of the command.
Definition at line 91 of file vcommand.h. |
|
Sets the name of the command.
Definition at line 101 of file vcommand.h. |
|
Unexecutes the command. All changes to the document have to be undone here. Reimplemented in VAlignCmd, VBooleanCmd, VCleanUpCmd, VClipartCmd, VDeleteCmd, VDeleteNodeCmd, VDistributeCmd, VFillCmd, VGroupCmd, VInsertCmd, VLayerCmd, VReplacingCmd, VShapeCmd, VStrokeCmd, VTransformCmd, VTranslateBezierCmd, VTranslatePointCmd, VUnGroupCmd, VZOrderCmd, VImageTool::VInsertImageCmd, VCreateShadowCmd, and VWhirlPinchCmd. Definition at line 75 of file vcommand.h. |
The documentation for this class was generated from the following file: