|
Krita Source Code Documentation
|
#include <ShapeMeshGradientEditStrategy.h>
Inheritance diagram for ShapeMeshGradientEditStrategy:Classes | |
| struct | Private |
Public Member Functions | |
| KUndo2Command * | createCommand () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers) override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| ShapeMeshGradientEditStrategy (KoToolBase *tool, KoFlake::FillVariant fillVariant, KoShape *shape, KoShapeMeshGradientHandles::Handle startHandle, const QPointF &clicked) | |
| ~ShapeMeshGradientEditStrategy () | |
Public Member Functions inherited from KoInteractionStrategy | |
| virtual void | cancelInteraction () |
| KoInteractionStrategy (KoToolBase *parent) | |
| constructor | |
| virtual void | paint (QPainter &painter, const KoViewConverter &converter) |
| KoToolBase * | tool () const |
| virtual | ~KoInteractionStrategy () |
| Destructor. | |
Private Attributes | |
| QScopedPointer< Private > | m_d |
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 15 of file ShapeMeshGradientEditStrategy.h.
| ShapeMeshGradientEditStrategy::ShapeMeshGradientEditStrategy | ( | KoToolBase * | tool, |
| KoFlake::FillVariant | fillVariant, | ||
| KoShape * | shape, | ||
| KoShapeMeshGradientHandles::Handle | startHandle, | ||
| const QPointF & | clicked ) |
Definition at line 28 of file ShapeMeshGradientEditStrategy.cpp.
References m_d.
| ShapeMeshGradientEditStrategy::~ShapeMeshGradientEditStrategy | ( | ) |
Definition at line 39 of file ShapeMeshGradientEditStrategy.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 54 of file ShapeMeshGradientEditStrategy.cpp.
References m_d.
|
overridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 61 of file ShapeMeshGradientEditStrategy.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 43 of file ShapeMeshGradientEditStrategy.cpp.
References m_d, and KisCommandUtils::redoAndMergeIntoAccumulatingCommand().
|
private |
Definition at line 33 of file ShapeMeshGradientEditStrategy.h.