|
Krita Source Code Documentation
|
#include <ShapeGradientEditStrategy.h>
Inheritance diagram for ShapeGradientEditStrategy:Classes | |
| struct | Private |
Public Member Functions | |
| KUndo2Command * | createCommand () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers) override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| void | paint (QPainter &painter, const KoViewConverter &converter) override |
| ShapeGradientEditStrategy (KoToolBase *tool, KoFlake::FillVariant fillVariant, KoShape *shape, KoShapeGradientHandles::Handle::Type startHandleType, const QPointF &clicked) | |
| ~ShapeGradientEditStrategy () override | |
Public Member Functions inherited from KoInteractionStrategy | |
| virtual void | cancelInteraction () |
| KoInteractionStrategy (KoToolBase *parent) | |
| constructor | |
| 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 14 of file ShapeGradientEditStrategy.h.
| ShapeGradientEditStrategy::ShapeGradientEditStrategy | ( | KoToolBase * | tool, |
| KoFlake::FillVariant | fillVariant, | ||
| KoShape * | shape, | ||
| KoShapeGradientHandles::Handle::Type | startHandleType, | ||
| const QPointF & | clicked ) |
Definition at line 42 of file ShapeGradientEditStrategy.cpp.
References KoSnapGuide::addCustomSnapStrategy(), KisSnapPointStrategy::addPoint(), KoToolBase::canvas(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, KoShapeGradientHandles::Handle::pos, KoCanvasBase::snapGuide, and KoInteractionStrategy::tool().
|
override |
Definition at line 64 of file ShapeGradientEditStrategy.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 79 of file ShapeGradientEditStrategy.cpp.
References m_d.
|
overridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 86 of file ShapeGradientEditStrategy.cpp.
References KoToolBase::canvas(), KoSnapGuide::reset(), KoCanvasBase::snapGuide, and KoInteractionStrategy::tool().
|
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 68 of file ShapeGradientEditStrategy.cpp.
References KoToolBase::canvas(), m_d, KisCommandUtils::redoAndMergeIntoAccumulatingCommand(), KoSnapGuide::snap(), KoCanvasBase::snapGuide, and KoInteractionStrategy::tool().
|
overridevirtual |
Reimplement this if the action needs to draw a "blob" on the canvas; that is, a transient decoration like a rubber band.
Reimplemented from KoInteractionStrategy.
Definition at line 92 of file ShapeGradientEditStrategy.cpp.
|
private |
Definition at line 31 of file ShapeGradientEditStrategy.h.