|
Krita Source Code Documentation
|
#include <kis_tool_line.h>
Inheritance diagram for KisToolLine:Public Member Functions | |
| void | activate (const QSet< KoShape * > &shapes) override |
| void | beginPrimaryAction (KoPointerEvent *event) override |
| void | continuePrimaryAction (KoPointerEvent *event) override |
| void | deactivate () override |
| void | endPrimaryAction (KoPointerEvent *event) override |
| KisToolLine (KoCanvasBase *canvas) | |
| void | paint (QPainter &gc, const KoViewConverter &converter) override |
| bool | primaryActionSupportsHiResEvents () const override |
| QString | quickHelp () const override |
| void | requestStrokeCancellation () override |
| void | requestStrokeEnd () override |
| bool | supportsPaintingAssistants () const override |
| ~KisToolLine () override | |
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 () |
| ~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 |
| virtual bool | wantsAutoScroll () const |
| ~KoToolBase () override | |
Protected Slots | |
| void | resetCursorStyle () override |
Protected Slots inherited from KisTool | |
| virtual void | resetCursorStyle () |
Private Slots | |
| void | setShowGuideline (bool value) |
| void | setShowPreview (bool value) |
| void | setSnapEraser (bool value) |
| void | setSnapToAssistants (bool value) |
| void | setUseSensors (bool value) |
| void | updateStroke () |
Private Member Functions | |
| void | cancelStroke () |
| QWidget * | createOptionWidget () override |
| void | endStroke () |
| void | paintLine (QPainter &gc, const QRect &rc) |
| void | showSize () |
| QPointF | snapToAssistants (QPointF point) |
| QPointF | straightLine (QPointF point) |
| void | updateGuideline () |
| void | updatePreviewTimer (bool showGuide) |
Private Attributes | |
| KConfigGroup | configGroup |
| QCheckBox * | m_chkShowGuideline {nullptr} |
| QCheckBox * | m_chkShowPreview {nullptr} |
| QCheckBox * | m_chkSnapEraser {nullptr} |
| QCheckBox * | m_chkSnapToAssistants {nullptr} |
| QCheckBox * | m_chkUseSensors {nullptr} |
| QPointF | m_endPoint |
| QScopedPointer< KisToolLineHelper > | m_helper |
| QScopedPointer< KisPaintingInformationBuilder > | m_infoBuilder |
| QPointF | m_lastUpdatedPoint |
| KisSignalCompressor | m_longStrokeUpdateCompressor |
| QPointF | m_originalStartPoint |
| bool | m_showGuideline {true} |
| QPointF | m_startPoint |
| bool | m_strokeIsRunning {false} |
| KisSignalCompressor | m_strokeUpdateCompressor |
Additional Inherited Members | |
Public Types inherited from KisTool | |
| enum | { FLAG_USES_CUSTOM_PRESET =0x01 , FLAG_USES_CUSTOM_COMPOSITEOP =0x02 , FLAG_USES_CUSTOM_SIZE =0x04 } |
| enum | AlternateAction { ChangeSize = AlternateChangeSize , ChangeSizeSnap = AlternateChangeSizeSnap , SampleFgNode = AlternateSampleFgNode , SampleBgNode = AlternateSampleBgNode , SampleFgImage = AlternateSampleFgImage , SampleBgImage = AlternateSampleBgImage , Secondary = AlternateSecondary , Third = AlternateThird , Fourth = AlternateFourth , Fifth = AlternateFifth , NONE = 10000 } |
| enum | NodePaintAbility { VECTOR , CLONE , PAINT , UNPAINTABLE , MYPAINTBRUSH_UNPAINTABLE } |
| enum | ToolAction { Primary , AlternateChangeSize , AlternateChangeSizeSnap , AlternateSampleFgNode , AlternateSampleBgNode , AlternateSampleFgImage , AlternateSampleBgImage , AlternateSecondary , AlternateThird , AlternateFourth , AlternateFifth , Alternate_NONE = 10000 } |
Public Slots inherited from KisToolShape | |
| void | activate (const QSet< KoShape * > &shapes) override |
| virtual void | fillSettingChanged (int value) |
| virtual void | outlineSettingChanged (int value) |
| virtual void | patternRotationSettingChanged (qreal value) |
| virtual void | patternScaleSettingChanged (qreal value) |
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 | documentResourceChanged (int key, const QVariant &res) |
| virtual void | repaintDecorations () |
| virtual void | requestRedoDuringStroke () |
| virtual void | requestUndoDuringStroke () |
| void | setStatusText (const QString &statusText) |
| void | updateOptionsWidgetIcons () |
Signals inherited from KisToolPaint | |
| void | sigPaintingFinished () |
Signals inherited from KisTool | |
| void | isActiveChanged (bool isActivated) |
Signals inherited from KoToolBase | |
| void | activateTool (const QString &id) |
| void | cursorChanged (const QCursor &cursor) |
| void | selectionChanged (bool hasSelection) |
| void | statusTextChanged (const QString &statusText) |
| void | textModeChanged (bool inTextMode) |
Static Public Member Functions inherited from KisTool | |
| static AlternateAction | actionToAlternateAction (ToolAction action) |
Public Attributes inherited from KisToolShape | |
| WdgGeometryOptions * | m_shapeOptionsWidget |
Public Attributes inherited from KisTool | |
| KoColor | currentBgColor |
| float | currentExposure {1.0} |
| KoColor | currentFgColor |
| KisFilterConfigurationSP | currentGenerator |
| KoAbstractGradientSP | currentGradient |
| KoPatternSP | currentPattern |
| QCursor | cursor |
| bool | m_isActive {false} |
| ToolMode | m_mode {HOVER_MODE} |
| QWidget * | optionWidget {0} |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
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 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 |
| void | paint (QPainter &gc, const KoViewConverter &converter) override |
| 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 inherited from KisToolShape | |
| KConfigGroup | m_configGroup |
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 |
Properties inherited from KisTool | |
| bool | isActive |
Definition at line 34 of file kis_tool_line.h.
| KisToolLine::KisToolLine | ( | KoCanvasBase * | canvas | ) |
Definition at line 46 of file kis_tool_line.cc.
References Private::canvas, KisViewManager::canvasResourceProvider(), connect(), m_longStrokeUpdateCompressor, m_strokeUpdateCompressor, resetCursorStyle(), KoToolBase::setIsOpacityPresetMode(), KisToolPaint::setSupportOutline(), updateStroke(), and KisCanvas2::viewManager().
|
override |
Definition at line 71 of file kis_tool_line.cc.
This method is called when this tool instance is activated. For any main window there is only one tool active at a time, which then gets all user input. Switching between tools will call deactivate on one and activate on the new tool allowing the tool to flush items (like a selection) when it is not in use.
| shapes | the set of shapes that are selected or suggested for editing by a selected shape for the tool to work on. Not all shapes will be meant for this tool. |
Reimplemented from KoToolBase.
Definition at line 86 of file kis_tool_line.cc.
References KisToolPaint::activate(), configGroup, and KoToolBase::toolId().
|
overridevirtual |
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 202 of file kis_tool_line.cc.
References Private::canvas, KisTool::convertToPixelCoordAndSnap(), KisTool::currentNode(), koIcon, m_chkShowGuideline, m_chkUseSensors, m_endPoint, m_helper, m_lastUpdatedPoint, m_originalStartPoint, m_showGuideline, m_startPoint, m_strokeIsRunning, KisTool::MYPAINTBRUSH_UNPAINTABLE, KisTool::nodeEditable(), KisTool::nodePaintAbility(), KisTool::PAINT, KisTool::PAINT_MODE, KisToolPaint::setMode(), KisToolShape::ShapeAddInfo::shouldAddSelectionShape, KisToolShape::ShapeAddInfo::shouldAddShape, KisToolShape::shouldAddShape(), KisViewManager::showFloatingMessage(), showSize(), KisTool::UNPAINTABLE, updatePreviewTimer(), and KisCanvas2::viewManager().
|
private |
The actual stroke is run by the timer so it is a legal situation when m_strokeIsRunning is true, but the actual redraw stroke is not running.
Definition at line 366 of file kis_tool_line.cc.
References m_endPoint, m_helper, m_startPoint, and m_strokeIsRunning.
|
overridevirtual |
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 249 of file kis_tool_line.cc.
References Private::canvas, CHECK_MODE_SANITY_OR_RETURN, KisTool::convertToPixelCoordAndSnap(), KisFloatingMessage::High, KisSignalCompressor::isActive(), KIS_ASSERT, m_chkShowPreview, m_endPoint, m_helper, m_lastUpdatedPoint, m_longStrokeUpdateCompressor, m_originalStartPoint, m_startPoint, m_strokeIsRunning, m_strokeUpdateCompressor, KoPointerEvent::modifiers(), KisTool::PAINT_MODE, KisTool::pixelToView(), KoPointerEvent::point, KisToolPaint::requestUpdateOutline(), KisViewManager::showFloatingMessage(), showSize(), snapToAssistants(), KisSignalCompressor::start(), KisSignalCompressor::stop(), straightLine(), updateGuideline(), and KisCanvas2::viewManager().
|
overrideprivatevirtual |
Reimplement this if your tool actually has an option widget. Sets the option widget to 0 by default.
Reimplemented from KisTool.
Definition at line 98 of file kis_tool_line.cc.
References KisToolPaint::addOptionWidgetOption(), configGroup, connect(), KisToolPaint::createOptionWidget(), m_chkShowGuideline, m_chkShowPreview, m_chkSnapEraser, m_chkSnapToAssistants, m_chkUseSensors, setShowGuideline(), setShowPreview(), setSnapToAssistants(), and setUseSensors().
|
overridevirtual |
This method is called whenever this tool is no longer the active tool
Reimplemented from KoToolBase.
Definition at line 92 of file kis_tool_line.cc.
References cancelStroke(), and KisToolPaint::deactivate().
|
overridevirtual |
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 306 of file kis_tool_line.cc.
References Private::canvas, CHECK_MODE_SANITY_OR_RETURN, endStroke(), KisTool::HOVER_MODE, KisTool::PAINT_MODE, KisToolPaint::setMode(), and updateGuideline().
|
private |
Definition at line 326 of file kis_tool_line.cc.
References KisCanvas2::addCommand(), Private::canvas, KisResourcesSnapshot::currentFgColor(), KisTool::currentImage(), KisTool::currentNode(), KisToolShape::currentStrokeWidth(), KisTool::image(), KoPathShapeId, m_endPoint, m_helper, m_startPoint, m_strokeIsRunning, KisTool::nodePaintAbility(), KisTool::PAINT, KoCanvasBase::shapeController, KisToolShape::ShapeAddInfo::shouldAddSelectionShape, KisToolShape::ShapeAddInfo::shouldAddShape, KisToolShape::shouldAddShape(), KoColor::toQColor(), KisTool::UNPAINTABLE, and updateStroke().
|
overridevirtual |
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 192 of file kis_tool_line.cc.
References KisTool::mode(), KisToolPaint::paint(), KisTool::PAINT_MODE, and paintLine().
|
private |
Definition at line 449 of file kis_tool_line.cc.
References Private::canvas, m_endPoint, m_showGuideline, m_startPoint, KisTool::paintToolOutline(), and KisTool::pixelToView().
|
overridevirtual |
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 320 of file kis_tool_line.cc.
|
overridevirtual |
Quick help is a short help text about the way the tool functions.
Reimplemented from KisToolPaint.
Definition at line 462 of file kis_tool_line.cc.
|
overridevirtual |
Called when the user requested the cancellation of the current stroke. If you tool supports cancelling, override this method and do the needed work there
Reimplemented from KoToolBase.
Definition at line 167 of file kis_tool_line.cc.
References cancelStroke().
|
overridevirtual |
Called when the image decided that the stroke should better be ended. If you tool supports long strokes, override this method and do the needed work there
Reimplemented from KoToolBase.
Definition at line 172 of file kis_tool_line.cc.
References endStroke(), m_helper, KisTool::nodePaintAbility(), and KisTool::PAINT.
|
overrideprotectedslot |
Definition at line 75 of file kis_tool_line.cc.
References KisToolPaint::isEraser(), KisCursor::load(), KisTool::nodePaintAbility(), KisTool::overrideCursorIfNotEditable(), KisTool::PAINT, KisTool::resetCursorStyle(), and KoToolBase::useCursor().
|
privateslot |
Definition at line 145 of file kis_tool_line.cc.
References configGroup, m_showGuideline, and value().
|
privateslot |
Definition at line 151 of file kis_tool_line.cc.
References configGroup, and value().
|
privateslot |
Definition at line 162 of file kis_tool_line.cc.
References configGroup, and value().
|
privateslot |
Definition at line 156 of file kis_tool_line.cc.
References configGroup, m_chkSnapEraser, and value().
|
privateslot |
Definition at line 140 of file kis_tool_line.cc.
References configGroup, and value().
|
private |
Definition at line 442 of file kis_tool_line.cc.
References Private::canvas, KisFloatingMessage::High, KIS_ASSERT, length(), m_endPoint, m_startPoint, KisViewManager::showFloatingMessage(), and KisCanvas2::viewManager().
|
private |
Definition at line 407 of file kis_tool_line.cc.
References KisPaintingAssistantsDecoration::adjustLine(), Private::canvas, KisCoordinatesConverter::documentToImage(), getCoordinatesConverter(), KisCoordinatesConverter::imageToDocument(), m_chkSnapEraser, m_chkSnapToAssistants, m_originalStartPoint, m_startPoint, KisCanvas2::paintingAssistantsDecoration(), KisPaintingAssistantsDecoration::setAdjustedBrushPosition(), KisPaintingAssistantsDecoration::setEraserSnap(), and KisPaintingAssistantsDecoration::setOnlyOneAssistantSnap().
|
private |
Definition at line 384 of file kis_tool_line.cc.
References M_PI, and m_startPoint.
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 467 of file kis_tool_line.cc.
|
private |
Definition at line 433 of file kis_tool_line.cc.
References Private::canvas, KisTool::convertToPt(), m_endPoint, m_startPoint, and KisCanvas2::updateCanvas().
|
private |
Definition at line 180 of file kis_tool_line.cc.
References KisSignalCompressor::FIRST_ACTIVE, m_strokeUpdateCompressor, KisSignalCompressor::POSTPONE, and KisSignalCompressor::setMode().
|
privateslot |
Definition at line 240 of file kis_tool_line.cc.
References KisTool::currentNode(), KisTool::image(), m_helper, and m_strokeIsRunning.
|
private |
Definition at line 104 of file kis_tool_line.h.
|
private |
Definition at line 95 of file kis_tool_line.h.
|
private |
Definition at line 94 of file kis_tool_line.h.
|
private |
Definition at line 97 of file kis_tool_line.h.
|
private |
Definition at line 96 of file kis_tool_line.h.
|
private |
Definition at line 93 of file kis_tool_line.h.
|
private |
Definition at line 86 of file kis_tool_line.h.
|
private |
Definition at line 100 of file kis_tool_line.h.
|
private |
Definition at line 99 of file kis_tool_line.h.
|
private |
Definition at line 88 of file kis_tool_line.h.
|
private |
Definition at line 102 of file kis_tool_line.h.
|
private |
Definition at line 87 of file kis_tool_line.h.
|
private |
Definition at line 83 of file kis_tool_line.h.
|
private |
Definition at line 85 of file kis_tool_line.h.
|
private |
Definition at line 90 of file kis_tool_line.h.
|
private |
Definition at line 101 of file kis_tool_line.h.