|
Krita Source Code Documentation
|
#include <SvgMoveTextStrategy.h>
Inheritance diagram for SvgMoveTextStrategy:Public Member Functions | |
| void | cancelInteraction () override |
| KUndo2Command * | createCommand () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers) override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| SvgMoveTextStrategy (KoToolBase *tool, KoSvgTextShape *shape, const QPointF &clicked) | |
| ~SvgMoveTextStrategy () override=default | |
Public Member Functions inherited from KoInteractionStrategy | |
| KoInteractionStrategy (KoToolBase *parent) | |
| constructor | |
| virtual void | paint (QPainter &painter, const KoViewConverter &converter) |
| KoToolBase * | tool () const |
| virtual | ~KoInteractionStrategy () |
| Destructor. | |
Private Attributes | |
| QPointF | m_anchorOffset |
| QPointF | m_dragStart |
| QPointF | m_finalPosition |
| QPointF | m_initialPosition |
| KoSvgTextShape * | m_shape |
Additional Inherited Members | |
Protected Member Functions inherited from KoInteractionStrategy | |
| uint | decorationThickness () const |
| uint | grabSensitivity () const |
| Convenience function to get the global grab sensitivity. | |
| uint | handleRadius () const |
| Convenience function to get the global handle radius. | |
| KoInteractionStrategy (KoInteractionStrategyPrivate &) | |
| constructor | |
Protected Attributes inherited from KoInteractionStrategy | |
| KoInteractionStrategyPrivate * | d_ptr |
Definition at line 16 of file SvgMoveTextStrategy.h.
| SvgMoveTextStrategy::SvgMoveTextStrategy | ( | KoToolBase * | tool, |
| KoSvgTextShape * | shape, | ||
| const QPointF & | clicked ) |
Definition at line 18 of file SvgMoveTextStrategy.cpp.
References KoToolBase::canvas(), KoShape::linearizeSubtree(), KoSnapGuide::setIgnoredShapes(), KoCanvasBase::snapGuide, and KoInteractionStrategy::tool().
|
overridedefault |
|
overridevirtual |
This method will undo frames based interactions by calling createCommand() and unexecuting that.
Reimplemented from KoInteractionStrategy.
Definition at line 53 of file SvgMoveTextStrategy.cpp.
References m_finalPosition, m_initialPosition, m_shape, KoToolBase::repaintDecorations(), KoInteractionStrategy::tool(), and SvgMoveTextCommand::undo().
|
overridevirtual |
For interactions that are undo-able this method should be implemented to return such a command. Implementations should return 0 otherwise.
Implements KoInteractionStrategy.
Definition at line 44 of file SvgMoveTextStrategy.cpp.
References KoToolBase::canvas(), KisAlgebra2D::fuzzyPointCompare(), m_finalPosition, m_initialPosition, m_shape, KoSnapGuide::reset(), KoCanvasBase::snapGuide, and KoInteractionStrategy::tool().
|
overridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 59 of file SvgMoveTextStrategy.cpp.
|
overridevirtual |
Extending classes should implement this method to update the selectedShapes based on the new mouse position.
| mouseLocation | the new location in pt |
| modifiers | OR-ed set of keys pressed. |
Implements KoInteractionStrategy.
Definition at line 29 of file SvgMoveTextStrategy.cpp.
References KoToolBase::canvas(), m_anchorOffset, m_dragStart, m_finalPosition, m_initialPosition, m_shape, SvgMoveTextCommand::redo(), KoToolBase::repaintDecorations(), KoSnapGuide::snap(), KoCanvasBase::snapGuide, snapToClosestAxis(), and KoInteractionStrategy::tool().
|
private |
Definition at line 32 of file SvgMoveTextStrategy.h.
|
private |
Definition at line 29 of file SvgMoveTextStrategy.h.
|
private |
Definition at line 31 of file SvgMoveTextStrategy.h.
|
private |
Definition at line 30 of file SvgMoveTextStrategy.h.
|
private |
Definition at line 28 of file SvgMoveTextStrategy.h.