21 , m_pointData(pointData)
The undo / redo command for path point moving.
KoPathControlPointMoveStrategy(KoPathTool *tool, const KoPathPointData &point, KoPathPoint::PointType type, const QPointF &pos)
void finishInteraction(Qt::KeyboardModifiers modifiers) override
~KoPathControlPointMoveStrategy() override
KoPathPoint::PointType m_pointType
KUndo2Command * createCommand() override
void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override
QScopedPointer< KUndo2Command > m_intermediateCommand
QPointF m_lastPosition
the last mouse position
QPointF m_move
the accumulated point move amount
KoPathPointData m_pointData
Describe a KoPathPoint by a KoPathShape and its indices.
KoPathShape * pathShape
path shape the path point belongs too
PointType
the type for identifying part of a KoPathPoint
QPointF documentToShape(const QPointF &point) const
Transforms point from document coordinates to shape coordinates.
QPointF snap(const QPointF &mousePosition, Qt::KeyboardModifiers modifiers)
snaps the mouse position, returns if mouse was snapped
void redoAndMergeIntoAccumulatingCommand(KUndo2Command *cmd, QScopedPointer< KUndo2Command > &accumulatingCommand)