karbon

VStrokeCmd Class Reference

Inheritance diagram for VStrokeCmd:

VCommand VVisitor List of all members.

Detailed Description

Definition at line 32 of file vstrokecmd.h.


Public Member Functions

 VStrokeCmd (VDocument *doc, const VStroke *, const QString &icon="14_action")
 VStrokeCmd (VDocument *doc, VGradient *)
 VStrokeCmd (VDocument *doc, VPattern *)
 VStrokeCmd (VDocument *doc, const VColor &)
 VStrokeCmd (VDocument *doc, double)
 VStrokeCmd (VDocument *doc, const QValueList< float > &)
virtual ~VStrokeCmd ()
virtual void execute ()
virtual void unexecute ()
virtual bool changesSelection () const
virtual void changeStroke (const VColor &)
virtual VSelectiongetSelection () const

Protected Types

 LineWidth
 Color
 Gradient
 Pattern
 Stroke
 Dash
enum  State {
  LineWidth, Color, Gradient, Pattern,
  Stroke, Dash
}

Protected Attributes

State m_state
VSelectionm_selection
VStroke m_stroke
QValueVector< VStrokem_oldstrokes

Member Function Documentation

virtual bool VStrokeCmd::changesSelection (  )  const [inline, virtual]

Returns if the command changes the actual document selection.

This flag is checked to determine if the document has to be redrawn.

Returns:
true if the selection is changed, else false

Reimplemented from VCommand.

Definition at line 46 of file vstrokecmd.h.

void VStrokeCmd::execute (  )  [virtual]

Executes the command.

All the changes to the document are done here. All commands have to implement this function.

Implements VCommand.

Definition at line 117 of file vstrokecmd.cc.

void VStrokeCmd::unexecute (  )  [virtual]

Unexecutes the command.

All changes to the document have to be undone here.

Reimplemented from VCommand.

Definition at line 182 of file vstrokecmd.cc.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys