libs/flake
KoPathSegmentChangeStrategy Class Reference
Strategy for deforming a segment of a path shape. More...
#include <KoPathSegmentChangeStrategy.h>

Public Member Functions | |
| KoPathSegmentChangeStrategy (KoPathTool *tool, KoCanvasBase *canvas, const QPointF &pos, const KoPathPointData &segment, qreal segmentParam) | |
| virtual | ~KoPathSegmentChangeStrategy () |
| virtual QUndoCommand * | createCommand () |
| virtual void | finishInteraction (Qt::KeyboardModifiers modifiers) |
| virtual void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) |
Detailed Description
Strategy for deforming a segment of a path shape.
Definition at line 35 of file KoPathSegmentChangeStrategy.h.
Constructor & Destructor Documentation
| KoPathSegmentChangeStrategy::KoPathSegmentChangeStrategy | ( | KoPathTool * | tool, | |
| KoCanvasBase * | canvas, | |||
| const QPointF & | pos, | |||
| const KoPathPointData & | segment, | |||
| qreal | segmentParam | |||
| ) |
Definition at line 30 of file KoPathSegmentChangeStrategy.cpp.
| KoPathSegmentChangeStrategy::~KoPathSegmentChangeStrategy | ( | ) | [virtual] |
Definition at line 45 of file KoPathSegmentChangeStrategy.cpp.
Member Function Documentation
| QUndoCommand * KoPathSegmentChangeStrategy::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.
Definition at line 124 of file KoPathSegmentChangeStrategy.cpp.
| void KoPathSegmentChangeStrategy::finishInteraction | ( | Qt::KeyboardModifiers | modifiers | ) | [virtual] |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 119 of file KoPathSegmentChangeStrategy.cpp.
| void KoPathSegmentChangeStrategy::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.
Definition at line 49 of file KoPathSegmentChangeStrategy.cpp.
The documentation for this class was generated from the following files:
