libs/flake

KoParameterChangeStrategy Class Reference

Strategy for changing control points of parametric shapes. More...

#include <KoParameterChangeStrategy.h>

Inheritance diagram for KoParameterChangeStrategy:

List of all members.

Public Member Functions

 KoParameterChangeStrategy (KoTool *tool, KoCanvasBase *canvas, KoParameterShape *parameterShape, int handleId)
virtual ~KoParameterChangeStrategy ()
virtual QUndoCommandcreateCommand ()
virtual void finishInteraction (Qt::KeyboardModifiers modifiers)
virtual void handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers)

Detailed Description

Strategy for changing control points of parametric shapes.

Definition at line 29 of file KoParameterChangeStrategy.h.


Constructor & Destructor Documentation

KoParameterChangeStrategy::KoParameterChangeStrategy ( KoTool tool,
KoCanvasBase canvas,
KoParameterShape parameterShape,
int  handleId 
)

Constructs a strategy for changing control points of parametric shapes.

Parameters:
tool the tool the strategy belongs to
canvas canvas the canvas to paint on
parameterShape the parametric shapes the strategy is working on
handleId the id of the handle to modify

Definition at line 25 of file KoParameterChangeStrategy.cpp.

KoParameterChangeStrategy::~KoParameterChangeStrategy (  )  [virtual]

Definition at line 37 of file KoParameterChangeStrategy.cpp.


Member Function Documentation

QUndoCommand * KoParameterChangeStrategy::createCommand (  )  [virtual]

For interactions that are undo-able this method should be implemented to return such a command.

Implementations should return 0 otherwise.

Returns:
a command, or 0.

Implements KoInteractionStrategy.

Reimplemented in KoPathConnectionPointStrategy.

Definition at line 48 of file KoParameterChangeStrategy.cpp.

virtual void KoParameterChangeStrategy::finishInteraction ( Qt::KeyboardModifiers  modifiers  )  [inline, virtual]

Override to make final changes to the data on the end of an interaction.

Implements KoInteractionStrategy.

Reimplemented in KoPathConnectionPointStrategy.

Definition at line 43 of file KoParameterChangeStrategy.h.

void KoParameterChangeStrategy::handleMouseMove ( const QPointF mouseLocation,
Qt::KeyboardModifiers  modifiers 
) [virtual]

Extending classes should implement this method to update the selectedShapes based on the new mouse position.

Parameters:
mouseLocation the new location in pt
modifiers OR-ed set of keys pressed.

Implements KoInteractionStrategy.

Reimplemented in KoPathConnectionPointStrategy.

Definition at line 41 of file KoParameterChangeStrategy.cpp.


The documentation for this class was generated from the following files: