|
Krita Source Code Documentation
|
#include <SvgChangeTextPathInfoStrategy.h>
Inheritance diagram for SvgChangeTextPathInfoStrategy:Public Member Functions | |
| void | cancelInteraction () override |
| KUndo2Command * | createCommand () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers) override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| SvgChangeTextPathInfoStrategy (SvgTextTool *tool, KoSvgTextShape *shape, const QPointF &clicked, int textCursorPos) | |
| ~SvgChangeTextPathInfoStrategy () 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_currentMousePos |
| KoSvgText::TextOnPathInfo | m_oldInfo |
| KoSvgTextShape * | m_shape |
| int | m_textCursorPos |
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 17 of file SvgChangeTextPathInfoStrategy.h.
| SvgChangeTextPathInfoStrategy::SvgChangeTextPathInfoStrategy | ( | SvgTextTool * | tool, |
| KoSvgTextShape * | shape, | ||
| const QPointF & | clicked, | ||
| int | textCursorPos ) |
Definition at line 16 of file SvgChangeTextPathInfoStrategy.cpp.
References m_oldInfo, m_shape, m_textCursorPos, KoSvgTextNodeIndex::textPathInfo(), and KoSvgTextShape::topLevelNodeForPos().
|
overridedefault |
|
overridevirtual |
This method will undo frames based interactions by calling createCommand() and unexecuting that.
Reimplemented from KoInteractionStrategy.
Definition at line 92 of file SvgChangeTextPathInfoStrategy.cpp.
References m_oldInfo, m_shape, m_textCursorPos, KoToolBase::repaintDecorations(), KoInteractionStrategy::tool(), and KUndo2Command::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 40 of file SvgChangeTextPathInfoStrategy.cpp.
References KoPathSegment::angleVectorAtParam(), KoPathSegment::isValid(), kundo2_i18n(), length(), KoPathSegment::length(), m_currentMousePos, m_shape, m_textCursorPos, KoPathSegment::nearestPoint(), p1, KoPathSegment::pointAt(), KUndo2Command::setText(), KoSvgText::TextOnPathInfo::side, KoSvgText::TextOnPathInfo::startOffset, KoSvgTextNodeIndex::textPath(), KoSvgText::TextPathSideLeft, KoSvgText::TextPathSideRight, KoInteractionStrategy::tool(), and KoSvgTextShape::topLevelNodeForPos().
|
overridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 101 of file SvgChangeTextPathInfoStrategy.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 27 of file SvgChangeTextPathInfoStrategy.cpp.
References createCommand(), m_currentMousePos, KUndo2Command::redo(), KoToolBase::repaintDecorations(), and KoInteractionStrategy::tool().
|
private |
Definition at line 29 of file SvgChangeTextPathInfoStrategy.h.
|
private |
Definition at line 31 of file SvgChangeTextPathInfoStrategy.h.
|
private |
Definition at line 28 of file SvgChangeTextPathInfoStrategy.h.
|
private |
Definition at line 30 of file SvgChangeTextPathInfoStrategy.h.