|
Krita Source Code Documentation
|
#include <kis_tool_freehand.h>
Inheritance diagram for KisToolFreehand:Public Slots | |
| void | activate (const QSet< KoShape * > &shapes) override |
| void | deactivate () override |
Public Slots inherited from KisToolPaint | |
| void | activate (const QSet< KoShape * > &shapes) override |
| void | deactivate () override |
Public Slots inherited from KisTool | |
| void | activate (const QSet< KoShape * > &shapes) override |
| void | canvasResourceChanged (int key, const QVariant &res) override |
| void | deactivate () override |
| virtual void | updateSettingsViews () |
Public Slots inherited from KoToolBase | |
| virtual void | activate (const QSet< KoShape * > &shapes) |
| virtual void | deactivate () |
| virtual void | documentResourceChanged (int key, const QVariant &res) |
| virtual void | repaintDecorations () |
| virtual void | requestRedoDuringStroke () |
| virtual void | requestStrokeCancellation () |
| virtual void | requestStrokeEnd () |
| virtual void | requestUndoDuringStroke () |
| void | setStatusText (const QString &statusText) |
| void | updateOptionsWidgetIcons () |
Public Member Functions | |
| int | flags () const override |
| KisToolFreehand (KoCanvasBase *canvas, const QCursor &cursor, const KUndo2MagicString &transactionText, bool useSavedSmoothing=true) | |
| void | mouseMoveEvent (KoPointerEvent *event) override |
| ~KisToolFreehand () override | |
Public Member Functions inherited from KisToolPaint | |
| int | flags () const override |
| 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 () |
| ~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 Enter key or any equivalent. 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 |
| virtual void | keyPressEvent (QKeyEvent *event) |
| virtual void | keyReleaseEvent (QKeyEvent *event) |
| 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 |
| ~KoToolBase () override | |
Protected Slots | |
| void | explicitUpdateOutline () |
| void | resetCursorStyle () override |
| void | setAssistant (bool assistant) |
| void | setOnlyOneAssistantSnap (bool assistant) |
| void | setSnapEraser (bool assistant) |
| void | slotDoResizeBrush (qreal newSize) |
Protected Slots inherited from KisTool | |
| virtual void | resetCursorStyle () |
Protected Member Functions | |
| void | activateAlternateAction (AlternateAction action) override |
| void | beginAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| void | beginPrimaryAction (KoPointerEvent *event) override |
| void | continueAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| void | continuePrimaryAction (KoPointerEvent *event) override |
| void | deactivateAlternateAction (AlternateAction action) override |
| virtual void | doStroke (KoPointerEvent *event) |
| void | endAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| void | endPrimaryAction (KoPointerEvent *event) override |
| virtual void | endStroke () |
| KisOptimizedBrushOutline | getOutlinePath (const QPointF &documentPos, const KoPointerEvent *event, KisPaintOpSettings::OutlineMode outlineMode) override |
| virtual void | initStroke (KoPointerEvent *event) |
| KisPaintingInformationBuilder * | paintingInformationBuilder () const |
| bool | primaryActionSupportsHiResEvents () const override |
| void | resetHelper (KisToolFreehandHelper *helper) |
| KisSmoothingOptionsSP | smoothingOptions () const |
| bool | supportsPaintingAssistants () const override |
| bool | trySampleByPaintOp (KoPointerEvent *event, AlternateAction action) |
| bool | wantsAutoScroll () const override |
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 |
| QWidget * | createOptionWidget () override |
| void | deactivateAlternateAction (AlternateAction action) override |
| void | deactivatePrimaryAction () override |
| void | enableControl (QWidget *control, bool value) |
| void | endAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| bool | isEraser () const |
| bool | isOutlineEnabled () const |
| bool | isOutlineVisible () const |
| void | paint (QPainter &gc, const KoViewConverter &converter) override |
| 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 | |
| virtual QList< QPointer< QWidget > > | createOptionWidgets () |
| 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) |
Protected Attributes | |
| bool | m_assistant {false} |
| bool | m_eraser_snapping {false} |
| double | m_magnetism {1.0} |
| bool | m_only_one_assistant {true} |
Protected Attributes inherited from KisToolPaint | |
| KisOptimizedBrushOutline | m_currentOutline |
| QRectF | m_oldColorPreviewUpdateRect |
| QRectF | m_oldOutlineRect |
| QPointF | m_outlineDocPoint |
| bool | m_paintOutline {false} |
Protected Attributes inherited from KoToolBase | |
| KoToolBasePrivate * | d_ptr |
Private Slots | |
| void | updateMaskSyntheticEventsFromTouch () |
Private Member Functions | |
| QPointF | adjustPosition (const QPointF &point, const QPointF &strokeBegin) |
| qreal | calculatePerspective (const QPointF &documentPoint) |
| void | lockTemporaryStraightRuler (const QPointF &documentPoint, Qt::KeyboardModifiers modifiers) |
| bool | temporaryStraightRulerActive () const |
| QPointF | temporaryStraightRulerOutlinePosition (const QPointF &documentPoint) |
| void | updateTemporaryStraightRulerPreview (const QPointF &documentPoint, Qt::KeyboardModifiers modifiers) |
Private Attributes | |
| std::optional< KoPointerEventWrapper > | m_beginAlternateActionEvent |
| KisSignalCompressorWithParam< qreal > | m_brushResizeCompressor |
| KisToolFreehandHelper * | m_helper {nullptr} |
| KisPaintingInformationBuilder * | m_infoBuilder {nullptr} |
| QPointF | m_initialGestureDocPoint |
| QPoint | m_initialGestureGlobalPoint |
| QPointF | m_lastDocumentPoint |
| qreal | m_lastPaintOpSize {0.0} |
| bool | m_paintopBasedSamplingInAction {false} |
Friends | |
| class | KisToolFreehandPaintingInformationBuilder |
| class | KisView |
| class | KisViewManager |
Definition at line 32 of file kis_tool_freehand.h.
| KisToolFreehand::KisToolFreehand | ( | KoCanvasBase * | canvas, |
| const QCursor & | cursor, | ||
| const KUndo2MagicString & | transactionText, | ||
| bool | useSavedSmoothing = true ) |
Definition at line 72 of file kis_tool_freehand.cc.
References Private::canvas, KisSharedPtr< T >::data(), explicitUpdateOutline(), KisConfigNotifier::instance(), KisToolFreehandPaintingInformationBuilder, m_helper, m_infoBuilder, resetCursorStyle(), KoCanvasBase::resourceManager, KisToolPaint::setSupportOutline(), and updateMaskSyntheticEventsFromTouch().
|
override |
Definition at line 103 of file kis_tool_freehand.cc.
References m_helper, and m_infoBuilder.
Definition at line 196 of file kis_tool_freehand.cc.
References KisToolPaint::activate().
|
overrideprotectedvirtual |
Reimplemented from KisTool.
Reimplemented in KisToolLazyBrush.
Definition at line 418 of file kis_tool_freehand.cc.
References KoToolBase::action(), KisToolPaint::activateAlternateAction(), KisCursor::blankCursor(), KisTool::ChangeSize, KisTool::ChangeSizeSnap, KisToolPaint::setOutlineVisible(), and KoToolBase::useCursor().
|
private |
Adjusts a coordinates according to a KisPaintingAssistant, if available.
Definition at line 564 of file kis_tool_freehand.cc.
References KisPaintingAssistantsDecoration::adjustPosition(), Private::canvas, m_assistant, m_eraser_snapping, m_magnetism, m_only_one_assistant, KisCanvas2::paintingAssistantsDecoration(), KisPaintingAssistantsDecoration::setAdjustedBrushPosition(), KisPaintingAssistantsDecoration::setEraserSnap(), KisPaintingAssistantsDecoration::setOnlyOneAssistantSnap(), and KisPaintingAssistantsDecoration::temporaryConstraint().
|
overrideprotectedvirtual |
Reimplemented from KisTool.
Reimplemented in KisToolMultihand, and KisToolLazyBrush.
Definition at line 440 of file kis_tool_freehand.cc.
References KoToolBase::action(), KisToolPaint::beginAlternateAction(), KisTool::ChangeSize, KisTool::ChangeSizeSnap, KisTool::currentPaintOpPreset(), KisTool::GESTURE_MODE, m_beginAlternateActionEvent, m_initialGestureDocPoint, m_initialGestureGlobalPoint, m_lastDocumentPoint, m_lastPaintOpSize, m_paintopBasedSamplingInAction, KisToolPaint::requestUpdateOutline(), KisToolPaint::setMode(), and trySampleByPaintOp().
|
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.
Reimplemented in KisToolMultihand, and KisToolLazyBrush.
Definition at line 318 of file kis_tool_freehand.cc.
References Private::canvas, KisTool::CLONE, KisViewManager::disableControls(), initStroke(), KisToolFreehandHelper::isRunning(), KIS_SAFE_ASSERT_RECOVER_RETURN, koIcon, lockTemporaryStraightRuler(), m_helper, KoPointerEvent::modifiers(), KisTool::MYPAINTBRUSH_UNPAINTABLE, KisTool::nodeEditable(), KisTool::nodePaintAbility(), KisTool::PAINT, KisTool::PAINT_MODE, KoPointerEvent::point, KisToolPaint::requestUpdateOutline(), KisTool::SampleFgImage, KisToolPaint::setMode(), KisViewManager::showFloatingMessage(), temporaryStraightRulerOutlinePosition(), trySampleByPaintOp(), KisTool::VECTOR, and KisCanvas2::viewManager().
|
private |
Calculates a coefficient for KisPaintInformation according to perspective grid values
Definition at line 591 of file kis_tool_freehand.cc.
References Private::canvas.
|
overrideprotectedvirtual |
Reimplemented from KisTool.
Reimplemented in KisToolMultihand, and KisToolLazyBrush.
Definition at line 463 of file kis_tool_freehand.cc.
References KoToolBase::action(), Private::canvas, KisTool::ChangeSize, KisTool::ChangeSizeSnap, KisToolPaint::continueAlternateAction(), KisTool::convertDocumentToWidget(), KisCanvas2::coordinatesConverter, KisTool::currentPaintOpPreset(), KisCoordinatesConverter::imageScale(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_beginAlternateActionEvent, m_initialGestureDocPoint, m_lastDocumentPoint, m_lastPaintOpSize, m_paintopBasedSamplingInAction, KisImageConfig::maxBrushSize(), KoPointerEvent::point, KisToolPaint::requestUpdateOutline(), and trySampleByPaintOp().
|
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.
Actual painting
Reimplemented from KisTool.
Reimplemented in KisToolMultihand, and KisToolLazyBrush.
Definition at line 357 of file kis_tool_freehand.cc.
References CHECK_MODE_SANITY_OR_RETURN, doStroke(), KisTool::PAINT_MODE, KoPointerEvent::point, KisToolPaint::requestUpdateOutline(), and temporaryStraightRulerOutlinePosition().
|
overrideslot |
Definition at line 201 of file kis_tool_freehand.cc.
References Private::canvas, KisToolPaint::deactivate(), endStroke(), KisTool::HOVER_MODE, KisTool::mode(), KisTool::PAINT_MODE, and KisToolPaint::setMode().
|
overrideprotectedvirtual |
Reimplemented from KisTool.
Reimplemented in KisToolLazyBrush.
Definition at line 429 of file kis_tool_freehand.cc.
References KoToolBase::action(), KisTool::ChangeSize, KisTool::ChangeSizeSnap, KisToolPaint::deactivateAlternateAction(), resetCursorStyle(), and KisToolPaint::setOutlineVisible().
|
protectedvirtual |
Definition at line 301 of file kis_tool_freehand.cc.
References m_helper, and KisToolFreehandHelper::paintEvent().
|
overrideprotectedvirtual |
Reimplemented from KisTool.
Reimplemented in KisToolMultihand, and KisToolLazyBrush.
Definition at line 515 of file kis_tool_freehand.cc.
References KoToolBase::action(), KisTool::ChangeSize, KisTool::ChangeSizeSnap, KisToolPaint::endAlternateAction(), KisTool::HOVER_MODE, m_beginAlternateActionEvent, m_initialGestureDocPoint, m_initialGestureGlobalPoint, m_paintopBasedSamplingInAction, KisToolPaint::requestUpdateOutline(), KisToolUtils::setCursorPos(), KisToolPaint::setMode(), and trySampleByPaintOp().
|
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.
Reimplemented in KisToolMultihand, and KisToolLazyBrush.
Definition at line 369 of file kis_tool_freehand.cc.
References Private::canvas, CHECK_MODE_SANITY_OR_RETURN, KisViewManager::enableControls(), endStroke(), KisTool::HOVER_MODE, m_assistant, KisTool::PAINT_MODE, KisToolPaint::setMode(), and KisCanvas2::viewManager().
|
protectedvirtual |
Definition at line 306 of file kis_tool_freehand.cc.
References KisTool::currentPaintOpPreset(), KisToolFreehandHelper::endPaint(), and m_helper.
|
protectedslot |
Definition at line 609 of file kis_tool_freehand.cc.
References KisToolPaint::m_outlineDocPoint, and KisToolPaint::requestUpdateOutline().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 190 of file kis_tool_freehand.cc.
References KisTool::FLAG_USES_CUSTOM_COMPOSITEOP, KisTool::FLAG_USES_CUSTOM_PRESET, and KisTool::FLAG_USES_CUSTOM_SIZE.
|
overrideprotectedvirtual |
Reimplemented from KisToolPaint.
Definition at line 614 of file kis_tool_freehand.cc.
References KisTool::convertToPixelCoord(), KisTool::currentPaintOpPreset(), m_helper, KisToolFreehandHelper::paintOpOutline(), and temporaryStraightRulerActive().
|
protectedvirtual |
Reimplemented in KisToolDyna.
Definition at line 292 of file kis_tool_freehand.cc.
References KisTool::convertToPixelCoord(), KisTool::currentNode(), KisTool::image(), KisToolFreehandHelper::initPaint(), and m_helper.
|
private |
Definition at line 259 of file kis_tool_freehand.cc.
References Private::canvas, KisCanvas2::paintingAssistantsDecoration(), KisPaintingAssistantsDecoration::setTemporaryConstraint(), and KisPaintingAssistantsDecoration::temporaryConstraint().
|
overridevirtual |
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.
Reimplemented in KisToolMultihand.
Definition at line 109 of file kis_tool_freehand.cc.
References KisTool::convertToPixelCoord(), KisToolFreehandHelper::cursorMoved(), KisTool::HOVER_MODE, m_helper, KisTool::mode(), KoPointerEvent::modifiers(), KisToolPaint::mouseMoveEvent(), KoPointerEvent::point, KisToolPaint::requestUpdateOutline(), temporaryStraightRulerActive(), temporaryStraightRulerOutlinePosition(), and updateTemporaryStraightRulerPreview().
|
protected |
Definition at line 174 of file kis_tool_freehand.cc.
References m_infoBuilder.
|
overrideprotectedvirtual |
Returns true if the tool can handle (and wants to handle) a very tight flow of input events from the tablet
Reimplemented from KisTool.
Definition at line 313 of file kis_tool_freehand.cc.
|
overrideprotectedslot |
Definition at line 128 of file kis_tool_freehand.cc.
References KisCursor::arrowCursor(), KisCursor::blankCursor(), KisCursor::crossCursor(), CURSOR_STYLE_BLACK_PIXEL, CURSOR_STYLE_CROSSHAIR, CURSOR_STYLE_ERASER, CURSOR_STYLE_NO_CURSOR, CURSOR_STYLE_POINTER, CURSOR_STYLE_SMALL_ROUND, CURSOR_STYLE_TOOLICON, CURSOR_STYLE_TRIANGLE_LEFTHANDED, CURSOR_STYLE_TRIANGLE_RIGHTHANDED, CURSOR_STYLE_WHITE_PIXEL, KisCursor::eraserCursor(), KisConfig::eraserCursorStyle(), KisToolPaint::isEraser(), KisCursor::loadWithSize(), KisConfig::newCursorStyle(), KisCursor::pixelBlackCursor(), KisCursor::pixelWhiteCursor(), KisTool::resetCursorStyle(), KisCursor::roundCursor(), KisConfig::separateEraserCursor(), temporaryStraightRulerActive(), KisCursor::triangleLeftHandedCursor(), KisCursor::triangleRightHandedCursor(), and KoToolBase::useCursor().
|
protected |
Definition at line 179 of file kis_tool_freehand.cc.
References m_helper.
|
protectedslot |
Definition at line 540 of file kis_tool_freehand.cc.
References m_assistant.
|
protectedslot |
Definition at line 545 of file kis_tool_freehand.cc.
References m_only_one_assistant.
|
protectedslot |
Definition at line 550 of file kis_tool_freehand.cc.
References m_eraser_snapping.
|
protectedslot |
Definition at line 555 of file kis_tool_freehand.cc.
References KisTool::currentPaintOpPreset(), m_initialGestureDocPoint, and KisToolPaint::requestUpdateOutline().
|
protected |
Definition at line 123 of file kis_tool_freehand.cc.
References m_helper, and KisToolFreehandHelper::smoothingOptions().
|
overrideprotectedvirtual |
Reimplemented from KisTool.
Definition at line 185 of file kis_tool_freehand.cc.
|
private |
Definition at line 215 of file kis_tool_freehand.cc.
References Private::canvas, KisCanvas2::paintingAssistantsDecoration(), and KisPaintingAssistantsDecoration::temporaryConstraint().
|
private |
Definition at line 223 of file kis_tool_freehand.cc.
References adjustPosition(), Private::canvas, KisCanvas2::paintingAssistantsDecoration(), and KisPaintingAssistantsDecoration::temporaryConstraint().
|
protected |
FIXME: we need some better way to implement modifiers for a paintop level. This method is used in DuplicateOp only!
Definition at line 388 of file kis_tool_freehand.cc.
References KoToolBase::action(), adjustPosition(), calculatePerspective(), KisTool::convertToPixelCoord(), KisTool::currentNode(), KisTool::currentPaintOpPreset(), m_infoBuilder, KoPointerEvent::modifiers(), KoPointerEvent::point, KoPointerEvent::pressure(), KisPaintingInformationBuilder::pressureToCurve(), KoPointerEvent::rotation(), KisTool::SampleFgImage, KisTool::SampleFgNode, KisPaintInformation::setPerStrokeRandomSource(), KisPaintInformation::setRandomSource(), KoPointerEvent::tangentialPressure(), KoPointerEvent::xTilt(), and KoPointerEvent::yTilt().
|
privateslot |
Definition at line 604 of file kis_tool_freehand.cc.
References KoToolBase::setMaskSyntheticEvents().
|
private |
Definition at line 236 of file kis_tool_freehand.cc.
References Private::canvas, KisCanvas2::paintingAssistantsDecoration(), KisPaintingAssistantsDecoration::setTemporaryConstraint(), and KisPaintingAssistantsDecoration::temporaryConstraint().
|
overrideprotectedvirtual |
Return if dragging (moving with the mouse down) to the edge of a canvas should scroll the canvas (default is true).
Reimplemented from KoToolBase.
Definition at line 535 of file kis_tool_freehand.cc.
|
friend |
Definition at line 93 of file kis_tool_freehand.h.
|
friend |
Definition at line 116 of file kis_tool_freehand.h.
|
friend |
Definition at line 115 of file kis_tool_freehand.h.
|
protected |
Definition at line 118 of file kis_tool_freehand.h.
|
private |
Definition at line 135 of file kis_tool_freehand.h.
|
private |
Definition at line 133 of file kis_tool_freehand.h.
|
protected |
Definition at line 121 of file kis_tool_freehand.h.
|
private |
Definition at line 125 of file kis_tool_freehand.h.
|
private |
Definition at line 124 of file kis_tool_freehand.h.
|
private |
Definition at line 127 of file kis_tool_freehand.h.
|
private |
Definition at line 130 of file kis_tool_freehand.h.
|
private |
Definition at line 128 of file kis_tool_freehand.h.
|
private |
Definition at line 129 of file kis_tool_freehand.h.
|
protected |
Definition at line 119 of file kis_tool_freehand.h.
|
protected |
Definition at line 120 of file kis_tool_freehand.h.
|
private |
Definition at line 132 of file kis_tool_freehand.h.