|
Krita Source Code Documentation
|
Inheritance diagram for SelectionInteractionStrategy:Public Member Functions | |
| void | cancelInteraction () override |
| void | finishInteraction (Qt::KeyboardModifiers modifiers=QFlags< Qt::KeyboardModifier >()) override |
| void | paint (QPainter &painter, const KoViewConverter &converter) override |
| SelectionInteractionStrategy (KoToolBase *parent, const QPointF &clicked, bool useSnapToGrid) | |
Public Member Functions inherited from KoShapeRubberSelectStrategy | |
| KUndo2Command * | createCommand () override |
| void | handleMouseMove (const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override |
| KoShapeRubberSelectStrategy (KoToolBase *tool, const QPointF &clicked, bool useSnapToGrid=false) | |
Public Member Functions inherited from KoInteractionStrategy | |
| KoInteractionStrategy (KoToolBase *parent) | |
| constructor | |
| KoToolBase * | tool () const |
| virtual | ~KoInteractionStrategy () |
| Destructor. | |
Additional Inherited Members | |
Protected Types inherited from KoShapeRubberSelectStrategy | |
| enum | SelectionMode { CrossingSelection , CoveringSelection } |
Protected Member Functions inherited from KoShapeRubberSelectStrategy | |
| virtual SelectionMode | currentMode () const |
| KoShapeRubberSelectStrategy (KoShapeRubberSelectStrategyPrivate &) | |
| constructor | |
| QRectF | selectedRectangle () const |
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 130 of file DefaultTool.cpp.
|
inlineexplicit |
Definition at line 133 of file DefaultTool.cpp.
|
inlineoverridevirtual |
This method will undo frames based interactions by calling createCommand() and unexecuting that.
Reimplemented from KoInteractionStrategy.
Definition at line 142 of file DefaultTool.cpp.
References KoToolBase::canvas(), KoShapeRubberSelectStrategy::selectedRectangle(), KoInteractionStrategy::tool(), and KoCanvasBase::updateCanvas().
|
inlineoverridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 147 of file DefaultTool.cpp.
References KoToolBase::canvas(), KoShapeRubberSelectStrategy::CoveringSelection, KoShapeRubberSelectStrategy::currentMode(), KoShape::isSelectable(), KIS_SAFE_ASSERT_RECOVER_RETURN, DefaultTool::koSelection(), KoSelection::select(), KoShapeRubberSelectStrategy::selectedRectangle(), DefaultTool::shapeManager(), KoInteractionStrategy::tool(), and KoCanvasBase::updateCanvas().
|
inlineoverridevirtual |
Reimplement this if the action needs to draw a "blob" on the canvas; that is, a transient decoration like a rubber band.
Reimplemented from KoShapeRubberSelectStrategy.
Definition at line 138 of file DefaultTool.cpp.
References KoShapeRubberSelectStrategy::paint().