|
Krita Source Code Documentation
|
#include <kis_tool_ellipse.h>
Inheritance diagram for KisToolEllipse:Public Member Functions | |
| KisToolEllipse (KoCanvasBase *canvas) | |
| bool | supportsPaintingAssistants () const override |
| ~KisToolEllipse () override | |
Public Member Functions inherited from KisToolEllipseBase | |
| KisToolEllipseBase (KoCanvasBase *canvas, KisToolEllipseBase::ToolType type, const QCursor &cursor=KisCursor::load("tool_ellipse_cursor.png", 6, 6)) | |
| void | paintRectangle (QPainter &gc, const QRectF &imageRect) override |
Public Member Functions inherited from KisToolRectangleBase | |
| void | activate (const QSet< KoShape * > &shapes) override |
| void | beginPrimaryAction (KoPointerEvent *event) override |
| void | continuePrimaryAction (KoPointerEvent *event) override |
| QList< QPointer< QWidget > > | createOptionWidgets () override |
| void | deactivate () override |
| void | endPrimaryAction (KoPointerEvent *event) override |
| void | keyPressEvent (QKeyEvent *event) override |
| void | keyReleaseEvent (QKeyEvent *event) override |
| KisToolRectangleBase (KoCanvasBase *canvas, KisToolRectangleBase::ToolType type, const QCursor &cursor=KisCursor::load("tool_rectangle_cursor.png", 6, 6)) | |
| void | paint (QPainter &gc, const KoViewConverter &converter) override |
| void | showSize () |
Public Member Functions inherited from KisToolShape | |
| int | flags () const override |
| KisToolShape (KoCanvasBase *canvas, const QCursor &cursor) | |
| ~KisToolShape () override | |
Public Member Functions inherited from KisToolPaint | |
| KisToolPaint (KoCanvasBase *canvas, const QCursor &cursor) | |
| void | mouseMoveEvent (KoPointerEvent *event) override |
| void | mousePressEvent (KoPointerEvent *event) override |
| void | mouseReleaseEvent (KoPointerEvent *event) override |
| KisPopupWidgetInterface * | popupWidget () override |
| ~KisToolPaint () override | |
Public Member Functions inherited from KisTool | |
| virtual bool | alternateActionSupportsHiResEvents (AlternateAction action) const |
| virtual void | beginAlternateDoubleClickAction (KoPointerEvent *event, AlternateAction action) |
| virtual void | beginPrimaryDoubleClickAction (KoPointerEvent *event) |
| void | deleteSelection () override |
| bool | isActive () const |
| KisTool (KoCanvasBase *canvas, const QCursor &cursor) | |
| void | mouseDoubleClickEvent (KoPointerEvent *event) override |
| void | mouseTripleClickEvent (KoPointerEvent *event) override |
| virtual void | newActivationWithExternalSource (KisPaintDeviceSP externalSource) |
| newActivationWithExternalSource Makes sure that the tool is active and starts a new stroke, which will be able to access the pixels from the specified external source. | |
| KisTool::NodePaintAbility | nodePaintAbility () |
| virtual bool | primaryActionSupportsHiResEvents () const |
| ~KisTool () override | |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Member Functions inherited from KoToolBase | |
| QAction * | action (const QString &name) const |
| KoCanvasBase * | canvas () const |
| Returns the canvas the tool is working on. | |
| virtual void | copy () const |
| QCursor | cursor () const |
| return the last emitted cursor | |
| virtual void | customMoveEvent (KoPointerEvent *event) |
| virtual void | customPressEvent (KoPointerEvent *event) |
| virtual void | customReleaseEvent (KoPointerEvent *event) |
| virtual void | cut () |
| virtual QRectF | decorationsRect () const |
| int | decorationThickness () const |
| decorationThickness The minimum thickness for tool decoration lines, this is derived from the screen magnification, thus the HiDPI settings. Note: to use this effectively, also set the pen to isCosmetic(true); | |
| virtual void | deselect () |
| deselect the tool should clear the selection if it has one. | |
| virtual void | dragLeaveEvent (QDragLeaveEvent *event) |
| virtual void | dragMoveEvent (QDragMoveEvent *event, const QPointF &point) |
| virtual void | dropEvent (QDropEvent *event, const QPointF &point) |
| virtual void | explicitUserStrokeEndRequest () |
| explicitUserStrokeEndRequest is called by the input manager when the user presses the Enter key or any equivalent key. This callback comes before requestStrokeEnd(), which comes from a different source. | |
| KoToolFactoryBase * | factory () const |
| virtual void | focusInEvent (QFocusEvent *event) |
| virtual void | focusOutEvent (QFocusEvent *event) |
| virtual bool | hasSelection () |
| virtual void | inputMethodEvent (QInputMethodEvent *event) |
| virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const |
| bool | isInTextMode () const |
| bool | isOpacityPresetMode () const |
| KoToolBase (KoCanvasBase *canvas) | |
| bool | maskSyntheticEvents () const |
| QList< QPointer< QWidget > > | optionWidgets () |
| virtual bool | paste () |
| virtual QMenu * | popupActionsMenu () |
| virtual bool | selectAll () |
| selectAll select all data the tool can select. | |
| virtual KoToolSelection * | selection () |
| Q_INVOKABLE QString | toolId () const |
| virtual bool | wantsAutoScroll () const |
| ~KoToolBase () override | |
Protected Types | |
| enum | PlacementMode { BoundingBoxPlacement , ThreePointPlacement } |
Protected Types inherited from KisTool | |
| enum | ToolMode : int { HOVER_MODE , PAINT_MODE , SECONDARY_PAINT_MODE , MIRROR_AXIS_SETUP_MODE , GESTURE_MODE , PAN_MODE , OTHER , OTHER_1 } |
Protected Slots | |
| void | resetCursorStyle () override |
| void | slotPlacementModeChanged (int mode, bool checked) |
Protected Slots inherited from KisTool | |
| virtual void | resetCursorStyle () |
Protected Member Functions | |
| void | beginPrimaryAction (KoPointerEvent *event) override |
| void | continuePrimaryAction (KoPointerEvent *event) override |
| QList< QPointer< QWidget > > | createOptionWidgets () override |
| void | deactivate () override |
| void | endPrimaryAction (KoPointerEvent *event) override |
| void | finishRect (const QRectF &rect, qreal roundCornersX, qreal roundCornersY) override |
| void | mouseMoveEvent (KoPointerEvent *event) override |
| void | paint (QPainter &gc, const KoViewConverter &converter) override |
| KisPopupWidgetInterface * | popupWidget () override |
| void | requestStrokeCancellation () override |
| void | requestStrokeEnd () override |
Protected Member Functions inherited from KisToolEllipseBase | |
| bool | showRoundCornersGUI () const override |
Protected Member Functions inherited from KisToolRectangleBase | |
| void | applyConstraints (QSizeF &area, bool overrideRatio) |
| void | cancelStroke () |
| virtual QRectF | createRect (const QPointF &start, const QPointF &end) |
| QPainterPath | drawX (const QPointF &pt) |
| void | endStroke () |
| void | getRotatedPath (QPainterPath &path, const QPointF ¢er, const qreal &angle) |
| qreal | getRotationAngle () |
| bool | isFixedSize () |
| void | updateArea () |
Protected Member Functions inherited from KisToolShape | |
| void | addPathShape (KoPathShape *pathShape, const KUndo2MagicString &name) |
| void | addShape (KoShape *shape) |
| virtual void | beginShape () |
| QWidget * | createOptionWidget () override |
| qreal | currentStrokeWidth () const |
| virtual void | endShape () |
| KisToolShapeUtils::FillStyle | fillStyle () |
| QTransform | fillTransform () |
| ShapeAddInfo | shouldAddShape (KisNodeSP currentNode) const |
| KisToolShapeUtils::StrokeStyle | strokeStyle () |
Protected Member Functions inherited from KisToolPaint | |
| void | activateAlternateAction (AlternateAction action) override |
| void | activatePrimaryAction () override |
| void | addOptionWidgetLayout (QLayout *layout) |
| Add the tool-specific layout to the default option widget layout. | |
| virtual void | addOptionWidgetOption (QWidget *control, QWidget *label=nullptr) |
| Add a widget and a label to the current option widget layout. | |
| void | beginAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| void | canvasResourceChanged (int key, const QVariant &v) override |
| void | continueAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| void | deactivateAlternateAction (AlternateAction action) override |
| void | deactivatePrimaryAction () override |
| void | enableControl (QWidget *control, bool value) |
| void | endAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| virtual KisOptimizedBrushOutline | getOutlinePath (const QPointF &documentPos, const KoPointerEvent *event, KisPaintOpSettings::OutlineMode outlineMode) |
| bool | isEraser () const |
| bool | isOutlineEnabled () const |
| bool | isOutlineVisible () const |
| virtual QString | quickHelp () const |
| virtual void | requestUpdateOutline (const QPointF &outlineDocPoint, const KoPointerEvent *event) |
| void | setMode (ToolMode mode) override |
| void | setOutlineEnabled (bool enabled) |
| void | setOutlineVisible (bool visible) |
| void | setSupportOutline (bool supportOutline) |
| void | showControl (QWidget *control, bool value) |
Protected Member Functions inherited from KisTool | |
| bool | blockUntilOperationsFinished () |
| void | blockUntilOperationsFinishedForced () |
| QPointF | convertDocumentToWidget (const QPointF &pt) |
| QPoint | convertToImagePixelCoordFloored (KoPointerEvent *e) |
| QPointF | convertToPixelCoord (const QPointF &pt) |
| QPointF | convertToPixelCoord (KoPointerEvent *e) |
| QPointF | convertToPixelCoordAndAlignOnWidget (const QPointF &pt) |
| QPointF | convertToPixelCoordAndSnap (const QPointF &pt, const QPointF &offset=QPointF()) |
| QPointF | convertToPixelCoordAndSnap (KoPointerEvent *e, const QPointF &offset=QPointF(), bool useModifiers=true) |
| QRectF | convertToPt (const QRectF &rect) |
| qreal | convertToPt (qreal value) |
| KoColor | currentBgColor () |
| KoColor | currentFgColor () |
| KisFilterConfigurationSP | currentGenerator () |
| KoAbstractGradientSP | currentGradient () |
| KisImageWSP | currentImage () |
| KisNodeSP | currentNode () const |
| KisPaintOpPresetSP | currentPaintOpPreset () |
| KoPatternSP | currentPattern () |
| QCursor | cursor () const |
| KisImageWSP | image () const |
| virtual bool | listeningToModifiers () |
| virtual void | listenToModifiers (bool listen) |
| virtual ToolMode | mode () const |
| bool | nodeEditable () |
| Checks checks if the current node is editable. | |
| bool | overrideCursorIfNotEditable () |
| Override the cursor appropriately if current node is not editable. | |
| void | paintToolOutline (QPainter *painter, const KisOptimizedBrushOutline &path) |
| KisOptimizedBrushOutline | pixelToView (const KisOptimizedBrushOutline &path) const |
| QPainterPath | pixelToView (const QPainterPath &pixelPath) const |
| Convert a pixel path into a view path. | |
| QPointF | pixelToView (const QPoint &pixelCoord) const |
| QPointF | pixelToView (const QPointF &pixelCoord) const |
| Convert a floating point pixel coordinate into a view coordinate. | |
| QPolygonF | pixelToView (const QPolygonF &pixelPolygon) const |
| Convert a pixel polygon into a view path. | |
| QRectF | pixelToView (const QRectF &pixelRect) const |
| Convert a pixel rectangle into a view rectangle. | |
| KisNodeList | selectedNodes () const |
| bool | selectionEditable () |
| Checks checks if the selection is editable, only applies to local selection as global selection is always editable. | |
| void | setCursor (const QCursor &cursor) |
| void | updateCanvasPixelRect (const QRectF &pixelRect) |
| Update the canvas for the given rectangle in image pixel coordinates. | |
| void | updateCanvasViewRect (const QRectF &viewRect) |
| Update the canvas for the given rectangle in view coordinates. | |
| QPointF | viewToPixel (const QPointF &viewCoord) const |
| QPointF | widgetCenterInWidgetPixels () |
Protected Member Functions inherited from KoToolBase | |
| int | grabSensitivity () const |
| Convenience function to get the current grab sensitivity. | |
| qreal | handleDocRadius () const |
| QRectF | handleGrabRect (const QPointF &position) const |
| QRectF | handlePaintRect (const QPointF &position) const |
| int | handleRadius () const |
| Convenience function to get the current handle radius. | |
| bool | isActivated () const |
| KoToolBase (KoToolBasePrivate &dd) | |
| KoPointerEvent * | lastDeliveredPointerEvent () const |
| void | setAbstractResource (KoAbstractCanvasResourceInterfaceSP abstractResource) |
| void | setConverter (KoDerivedResourceConverterSP converter) |
| void | setIsOpacityPresetMode (bool value) |
| void | setMaskSyntheticEvents (bool value) |
| void | setTextMode (bool value) |
| QHash< int, KoAbstractCanvasResourceInterfaceSP > | toolAbstractResources () |
| QHash< int, KoDerivedResourceConverterSP > | toolConverters () |
| void | useCursor (const QCursor &cursor) |
Private Member Functions | |
| void | addThreePointEllipsePath (const QPainterPath &path) |
| void | cancelThreePointEllipse () |
| bool | canStartThreePointEllipse (KoPointerEvent *event) |
| void | commitThreePointEllipse () |
| bool | hasCompleteThreePointEllipse () const |
| bool | isThreePointPlacement () const |
| void | paintThreePointEllipse (QPainter &gc) |
| void | paintThreePointHandles (QPainter &gc) |
| void | resetThreePointState () |
| QCursor | threePointConfirmCursor () const |
| bool | threePointEllipsePath (const QPointF &thirdPoint, QPainterPath *path) const |
| int | threePointHandleAt (const QPointF &pos) const |
| QPointF | threePointPreviewPoint () const |
| QRectF | threePointUpdateRect () const |
| void | updateThreePointCursor (const QPointF &pos) |
| void | updateThreePointPreview (const QPointF &pos) |
Private Attributes | |
| PlacementMode | m_placementMode {BoundingBoxPlacement} |
| bool | m_threePointCommitInProgress {false} |
| bool | m_threePointCommittedOnPress {false} |
| int | m_threePointDraggedHandle {-1} |
| bool | m_threePointEllipseActive {false} |
| QVector< QPointF > | m_threePointHandles |
| QPointF | m_threePointHoverPoint |
Definition at line 27 of file kis_tool_ellipse.h.
|
protected |
| Enumerator | |
|---|---|
| BoundingBoxPlacement | |
| ThreePointPlacement | |
Definition at line 42 of file kis_tool_ellipse.h.
| KisToolEllipse::KisToolEllipse | ( | KoCanvasBase * | canvas | ) |
Definition at line 54 of file kis_tool_ellipse.cc.
References Private::canvas, KisViewManager::canvasResourceProvider(), resetCursorStyle(), KoToolBase::setIsOpacityPresetMode(), KisToolPaint::setSupportOutline(), and KisCanvas2::viewManager().
|
override |
Definition at line 66 of file kis_tool_ellipse.cc.
|
private |
Definition at line 581 of file kis_tool_ellipse.cc.
References KisToolShape::addPathShape(), KisToolShape::addShape(), Private::canvas, KoPathShape::createShapeFromPainterPath(), KisTool::currentNode(), KisToolShape::fillStyle(), KisToolShape::fillTransform(), KisTool::image(), kundo2_i18n(), KisToolShape::ShapeAddInfo::markAsSelectionShapeIfNeeded(), KoPathShape::normalize(), KisFigurePaintingToolHelper::paintPainterPath(), KisToolShape::ShapeAddInfo::shouldAddSelectionShape, KisToolShape::ShapeAddInfo::shouldAddShape, KisToolShape::shouldAddShape(), and KisToolShape::strokeStyle().
|
overrideprotectedvirtual |
Called by KisToolProxy when a primary action for the tool is started. The event stores the original event that started the stroke. The event is accepted by default. If the tool decides to ignore this particular action (e.g. when the node is not editable), it should call event->ignore(). Then no further continuePrimaryAction() or endPrimaryAction() will be called until the next user action.
Reimplemented from KisTool.
Definition at line 245 of file kis_tool_ellipse.cc.
References KisTool::beginPrimaryAction(), canStartThreePointEllipse(), commitThreePointEllipse(), KisTool::convertToPixelCoordAndSnap(), hasCompleteThreePointEllipse(), isThreePointPlacement(), m_threePointCommittedOnPress, m_threePointDraggedHandle, KisTool::PAINT_MODE, KisCursor::pointingHandCursor(), KisToolPaint::setMode(), threePointHandleAt(), and KoToolBase::useCursor().
|
private |
Definition at line 441 of file kis_tool_ellipse.cc.
References m_threePointEllipseActive, m_threePointHandles, resetThreePointState(), threePointUpdateRect(), and KisTool::updateCanvasPixelRect().
|
private |
Definition at line 155 of file kis_tool_ellipse.cc.
References Private::canvas, KisTool::CLONE, koIcon, KisTool::MYPAINTBRUSH_UNPAINTABLE, KisTool::nodeEditable(), KisTool::nodePaintAbility(), KisViewManager::showFloatingMessage(), KisTool::UNPAINTABLE, and KisCanvas2::viewManager().
|
private |
Definition at line 451 of file kis_tool_ellipse.cc.
References addThreePointEllipsePath(), m_threePointCommitInProgress, resetThreePointState(), threePointEllipsePath(), threePointPreviewPoint(), threePointUpdateRect(), and KisTool::updateCanvasPixelRect().
|
overrideprotectedvirtual |
Called by KisToolProxy when the primary action is in progress of pointer movement. If the tool has ignored the event in beginPrimaryAction(), this method will not be called.
Reimplemented from KisTool.
Definition at line 272 of file kis_tool_ellipse.cc.
References CHECK_MODE_SANITY_OR_RETURN, KisTool::continuePrimaryAction(), KisTool::convertToPixelCoordAndSnap(), hasCompleteThreePointEllipse(), isThreePointPlacement(), m_threePointCommittedOnPress, m_threePointDraggedHandle, m_threePointHandles, KisTool::PAINT_MODE, KoPointerEvent::point, KisToolPaint::requestUpdateOutline(), threePointUpdateRect(), KisTool::updateCanvasPixelRect(), and updateThreePointPreview().
Disable geometry contraints widget in 3-point mode. It is used in the bounding box mode only
Reimplemented from KoToolBase.
Definition at line 70 of file kis_tool_ellipse.cc.
References KisOptionButtonStrip::addButton(), BoundingBoxPlacement, KisOptionButtonStrip::button(), KisOptionButtonStrip::buttonToggled(), KoToolBase::createOptionWidgets(), m_placementMode, KisTool::mode(), slotPlacementModeChanged(), ThreePointPlacement, and KoToolBase::toolId().
|
overrideprotectedvirtual |
This method is called whenever this tool is no longer the active tool
Reimplemented from KoToolBase.
Definition at line 414 of file kis_tool_ellipse.cc.
References cancelThreePointEllipse(), KoToolBase::deactivate(), and isThreePointPlacement().
|
overrideprotectedvirtual |
Called by KisToolProxy when the primary action is being finished, that is while mouseRelease or tabletRelease event. If the tool has ignored the event in beginPrimaryAction(), this method will not be called.
Reimplemented from KisTool.
Definition at line 296 of file kis_tool_ellipse.cc.
References KisToolShape::beginShape(), cancelThreePointEllipse(), CHECK_MODE_SANITY_OR_RETURN, KisTool::convertToPixelCoordAndSnap(), KisTool::endPrimaryAction(), hasCompleteThreePointEllipse(), KisTool::HOVER_MODE, isThreePointPlacement(), m_threePointCommittedOnPress, m_threePointDraggedHandle, m_threePointEllipseActive, m_threePointHandles, m_threePointHoverPoint, KisTool::PAINT_MODE, KisToolPaint::setMode(), KoToolBase::setStatusText(), KoPointerEvent::spontaneous(), threePointUpdateRect(), KisTool::updateCanvasPixelRect(), and updateThreePointCursor().
|
overrideprotectedvirtual |
Implements KisToolRectangleBase.
Definition at line 614 of file kis_tool_ellipse.cc.
References KisToolShape::addShape(), Private::canvas, KisTool::convertToPt(), KisShapeToolHelper::createEllipseShape(), KisResourcesSnapshot::currentFgColor(), KisTool::currentNode(), KisToolShape::currentStrokeWidth(), KisToolShape::fillStyle(), KisToolShape::fillTransform(), KisToolRectangleBase::getRotatedPath(), KisToolRectangleBase::getRotationAngle(), KisTool::image(), kundo2_i18n(), KisToolShape::ShapeAddInfo::markAsSelectionShapeIfNeeded(), KisFigurePaintingToolHelper::paintPainterPath(), KoShape::rotate(), KoShape::setStroke(), KisToolShape::ShapeAddInfo::shouldAddShape, KisToolShape::shouldAddShape(), KisToolShape::strokeStyle(), and KoColor::toQColor().
|
private |
Definition at line 180 of file kis_tool_ellipse.cc.
References m_threePointHandles.
|
private |
Definition at line 150 of file kis_tool_ellipse.cc.
References m_placementMode, and ThreePointPlacement.
|
overrideprotectedvirtual |
Called when the mouse or stylus moved over the canvas. Implementors should call event->ignore() if they do not actually use the event.
| event | state and reason of this mouse or stylus move |
Reimplemented from KisTool.
Definition at line 357 of file kis_tool_ellipse.cc.
References KisTool::convertToPixelCoordAndSnap(), hasCompleteThreePointEllipse(), isThreePointPlacement(), m_threePointEllipseActive, KisToolPaint::mouseMoveEvent(), KoToolBase::mouseMoveEvent(), updateThreePointCursor(), and updateThreePointPreview().
|
overrideprotectedvirtual |
Called by the canvas to paint any decorations that the tool deems needed. The painter has the top left of the canvas as its origin.
| painter | used for painting the shape |
| converter | to convert between internal and view coordinates. |
Implements KoToolBase.
Definition at line 372 of file kis_tool_ellipse.cc.
References isThreePointPlacement(), KisToolPaint::paint(), KoToolBase::paint(), and paintThreePointEllipse().
|
private |
Definition at line 475 of file kis_tool_ellipse.cc.
References KisToolRectangleBase::drawX(), m_threePointEllipseActive, m_threePointHandles, m_threePointHoverPoint, paintThreePointHandles(), KisTool::paintToolOutline(), KisTool::pixelToView(), threePointEllipsePath(), and threePointPreviewPoint().
|
private |
Definition at line 502 of file kis_tool_ellipse.cc.
References KisHandlePalette::black, Private::canvas, KisCanvas2::displayRendererInterface(), KoColorDisplayRendererInterface::handlePaletteForDisplayColorSpace(), KoToolBase::handleRadius(), m_threePointHandles, KisTool::pixelToView(), and KisHandlePalette::white.
|
overrideprotectedvirtual |
popupActionsMenu() does not return null. Reimplemented from KoToolBase.
Definition at line 383 of file kis_tool_ellipse.cc.
References m_threePointEllipseActive, and KoToolBase::popupWidget().
|
overrideprotectedvirtual |
Called when the user requests cancellation of the current stroke. If your tool supports cancelling, override this method and implement the desired effects there.
Reimplemented from KoToolBase.
Definition at line 404 of file kis_tool_ellipse.cc.
References cancelThreePointEllipse(), isThreePointPlacement(), and KoToolBase::requestStrokeCancellation().
|
overrideprotectedvirtual |
Called when the image decided that the stroke should better be ended. If your tool supports long strokes, override this method and implement the desired effects there.
Reimplemented from KoToolBase.
Definition at line 392 of file kis_tool_ellipse.cc.
References commitThreePointEllipse(), hasCompleteThreePointEllipse(), isThreePointPlacement(), and KoToolBase::requestStrokeEnd().
|
overrideprotectedslot |
Definition at line 133 of file kis_tool_ellipse.cc.
References hasCompleteThreePointEllipse(), KisToolPaint::isEraser(), isThreePointPlacement(), KisCursor::loadWithSize(), KisTool::nodePaintAbility(), KisTool::overrideCursorIfNotEditable(), KisTool::PAINT, KisTool::resetCursorStyle(), threePointConfirmCursor(), and KoToolBase::useCursor().
|
private |
Definition at line 430 of file kis_tool_ellipse.cc.
References KisTool::HOVER_MODE, m_threePointCommittedOnPress, m_threePointDraggedHandle, m_threePointEllipseActive, m_threePointHandles, resetCursorStyle(), KisToolPaint::setMode(), and KoToolBase::setStatusText().
|
protectedslot |
Definition at line 119 of file kis_tool_ellipse.cc.
References BoundingBoxPlacement, cancelThreePointEllipse(), m_placementMode, KisTool::mode(), KoToolBase::setStatusText(), ThreePointPlacement, and KoToolBase::toolId().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 653 of file kis_tool_ellipse.cc.
|
private |
Definition at line 204 of file kis_tool_ellipse.cc.
References KisTool::cursor.
|
private |
Definition at line 519 of file kis_tool_ellipse.cc.
References m_threePointHandles, p1, p2, qFuzzyIsNull(), and rotate90().
|
private |
Definition at line 190 of file kis_tool_ellipse.cc.
References KoToolBase::grabSensitivity(), KoToolBase::handleRadius(), m_threePointHandles, and KisTool::pixelToView().
|
private |
Definition at line 185 of file kis_tool_ellipse.cc.
References hasCompleteThreePointEllipse(), m_threePointHandles, and m_threePointHoverPoint.
|
private |
Definition at line 563 of file kis_tool_ellipse.cc.
References m_threePointHandles, m_threePointHoverPoint, threePointEllipsePath(), and threePointPreviewPoint().
|
private |
Definition at line 234 of file kis_tool_ellipse.cc.
References hasCompleteThreePointEllipse(), isThreePointPlacement(), KisTool::overrideCursorIfNotEditable(), KisCursor::pointingHandCursor(), resetCursorStyle(), threePointConfirmCursor(), threePointHandleAt(), and KoToolBase::useCursor().
|
private |
Definition at line 423 of file kis_tool_ellipse.cc.
References m_threePointHoverPoint, threePointUpdateRect(), and KisTool::updateCanvasPixelRect().
|
private |
Definition at line 79 of file kis_tool_ellipse.h.
|
private |
Definition at line 84 of file kis_tool_ellipse.h.
|
private |
Definition at line 85 of file kis_tool_ellipse.h.
|
private |
Definition at line 82 of file kis_tool_ellipse.h.
|
private |
Definition at line 83 of file kis_tool_ellipse.h.
|
private |
Definition at line 80 of file kis_tool_ellipse.h.
|
private |
Definition at line 81 of file kis_tool_ellipse.h.