|
Krita Source Code Documentation
|
#include <RemoveGutterStrategy.h>
Inheritance diagram for RemoveGutterStrategy: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 |
| RemoveGutterStrategy (KoToolBase *tool, KoSelection *selection, const QList< KoShape * > &shapes, QPointF startPoint) | |
| ~RemoveGutterStrategy () override | |
Public Member Functions inherited from KoInteractionStrategy | |
| virtual void | cancelInteraction () |
| KoInteractionStrategy (KoToolBase *parent) | |
| constructor | |
| KoToolBase * | tool () const |
| virtual | ~KoInteractionStrategy () |
| Destructor. | |
Private Attributes | |
| QList< KoShape * > | m_allShapes |
| QPointF | m_endPoint = QPointF() |
| QRectF | m_previousLineDirtyRect = QRectF() |
| QList< KoShape * > | m_selectedShapes |
| QPointF | m_startPoint = QPointF() |
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 18 of file RemoveGutterStrategy.h.
| RemoveGutterStrategy::RemoveGutterStrategy | ( | KoToolBase * | tool, |
| KoSelection * | selection, | ||
| const QList< KoShape * > & | shapes, | ||
| QPointF | startPoint ) |
Definition at line 30 of file RemoveGutterStrategy.cpp.
References m_allShapes, m_selectedShapes, and KoSelection::selectedEditableShapes().
|
override |
Definition at line 39 of file RemoveGutterStrategy.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 44 of file RemoveGutterStrategy.cpp.
|
overridevirtual |
Override to make final changes to the data on the end of an interaction.
Implements KoInteractionStrategy.
Definition at line 97 of file RemoveGutterStrategy.cpp.
References KoShape::absoluteTransformation(), KoCanvasBase::addCommand(), KoPathShape::boundingRect(), KoToolBase::canvas(), KisAlgebra2D::createRectFromCorners(), KoPathShape::createShapeFromPainterPath(), KoPathShape::fillRule(), KisAlgebra2D::getLineSegmentCrossingLineIndexes(), KisCanvas2::image(), KisAlgebra2D::isInsideShape(), KIS_SAFE_ASSERT_RECOVER_RETURN, kundo2_i18n(), m_allShapes, m_endPoint, m_previousLineDirtyRect, m_selectedShapes, m_startPoint, KoShape::outline(), KritaUtils::pathShapeBooleanSpaceWorkaround(), ppVar, KisAlgebra2D::removeGutterSmart(), KoCanvasBase::selectedShapesProxy(), KoShape::setBackground(), KoPathShape::setFillRule(), KoShape::setStroke(), KoShape::setZIndex(), KoCanvasBase::shapeController, KoInteractionStrategy::tool(), KoCanvasBase::updateCanvas(), and KisAlgebra2D::wrapValue().
|
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 49 of file RemoveGutterStrategy.cpp.
References KisAlgebra2D::accumulateBounds(), KoToolBase::canvas(), kisGrowRect(), m_endPoint, m_previousLineDirtyRect, m_startPoint, KoInteractionStrategy::tool(), KoCanvasBase::updateCanvas(), KoCanvasBase::viewConverter(), and KoViewConverter::viewToDocument().
|
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 317 of file RemoveGutterStrategy.cpp.
References KoViewConverter::documentToView(), m_endPoint, and m_startPoint.
Definition at line 35 of file RemoveGutterStrategy.h.
|
private |
Definition at line 32 of file RemoveGutterStrategy.h.
|
private |
Definition at line 33 of file RemoveGutterStrategy.h.
Definition at line 36 of file RemoveGutterStrategy.h.
|
private |
Definition at line 31 of file RemoveGutterStrategy.h.