|
Krita Source Code Documentation
|
#include <SvgSelectTextStrategy.h>
Inheritance diagram for SvgSelectTextStrategy:Public Member Functions | |
| void | cancelInteraction () override |
| KUndo2Command * | createCommand () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers) override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| SvgSelectTextStrategy (KoToolBase *tool, SvgTextCursor *cursor, const QPointF &clicked) | |
| ~SvgSelectTextStrategy () 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 | |
| SvgTextCursor * | m_cursor |
| QPointF | m_dragEnd |
| QPointF | m_dragStart |
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 14 of file SvgSelectTextStrategy.h.
| SvgSelectTextStrategy::SvgSelectTextStrategy | ( | KoToolBase * | tool, |
| SvgTextCursor * | cursor, | ||
| const QPointF & | clicked ) |
Definition at line 10 of file SvgSelectTextStrategy.cpp.
References m_cursor, m_dragEnd, m_dragStart, and SvgTextCursor::setPosToPoint().
|
overridedefault |
|
overridevirtual |
This method will undo frames based interactions by calling createCommand() and unexecuting that.
Reimplemented from KoInteractionStrategy.
Definition at line 32 of file SvgSelectTextStrategy.cpp.
|
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 27 of file SvgSelectTextStrategy.cpp.
|
overridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 37 of file SvgSelectTextStrategy.cpp.
References m_cursor, m_dragEnd, m_dragStart, and SvgTextCursor::setPosToPoint().
|
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 19 of file SvgSelectTextStrategy.cpp.
References m_cursor, m_dragEnd, m_dragStart, and SvgTextCursor::setPosToPoint().
|
private |
Definition at line 26 of file SvgSelectTextStrategy.h.
|
private |
Definition at line 28 of file SvgSelectTextStrategy.h.
|
private |
Definition at line 27 of file SvgSelectTextStrategy.h.