|
Krita Source Code Documentation
|
#include <KoPathTool.h>
Inheritance diagram for KoPathTool:Classes | |
| struct | PathSegment |
Public Slots | |
| void | canvasResourceChanged (int key, const QVariant &res) override |
Public Slots inherited from KoToolBase | |
| virtual void | canvasResourceChanged (int key, const QVariant &res) |
| virtual void | documentResourceChanged (int key, const QVariant &res) |
| virtual void | requestRedoDuringStroke () |
| void | setStatusText (const QString &statusText) |
| void | updateOptionsWidgetIcons () |
Signals | |
| void | singleShapeChanged (KoPathShape *path) |
| void | typeChanged (int types) |
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) |
Public Member Functions | |
| void | activate (const QSet< KoShape * > &shapes) override |
| void | deactivate () override |
| QRectF | decorationsRect () const override |
| void | deleteSelection () override |
| void | deselect () override |
| deselect the tool should clear the selection if it has one. | |
| void | explicitUserStrokeEndRequest () override |
| 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. | |
| void | keyPressEvent (QKeyEvent *event) override |
| void | keyReleaseEvent (QKeyEvent *event) override |
| KoPathTool (KoCanvasBase *canvas) | |
| void | mouseDoubleClickEvent (KoPointerEvent *event) override |
| void | mouseMoveEvent (KoPointerEvent *event) override |
| void | mousePressEvent (KoPointerEvent *event) override |
| void | mouseReleaseEvent (KoPointerEvent *event) override |
| void | notifyPathPointsChanged (KoPathShape *shape) |
| void | paint (QPainter &painter, const KoViewConverter &converter) override |
| QMenu * | popupActionsMenu () override |
| void | repaintDecorations () override |
| void | requestStrokeCancellation () override |
| void | requestStrokeEnd () override |
| void | requestUndoDuringStroke () override |
| bool | selectAll () override |
| selectAll select all data the tool can select. | |
| KoToolSelection * | selection () override |
| ~KoPathTool () override | |
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 () |
| 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 | dragLeaveEvent (QDragLeaveEvent *event) |
| virtual void | dragMoveEvent (QDragMoveEvent *event, const QPointF &point) |
| virtual void | dropEvent (QDropEvent *event, const QPointF &point) |
| 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 |
| virtual void | mouseTripleClickEvent (KoPointerEvent *event) |
| QList< QPointer< QWidget > > | optionWidgets () |
| virtual bool | paste () |
| virtual KisPopupWidgetInterface * | popupWidget () |
| Q_INVOKABLE QString | toolId () const |
| virtual bool | wantsAutoScroll () const |
| ~KoToolBase () override | |
Protected Member Functions | |
| QList< QPointer< QWidget > > | createOptionWidgets () override |
| reimplemented | |
Protected Member Functions inherited from KoToolBase | |
| virtual QWidget * | createOptionWidget () |
| 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 | |
| KoPathToolSelection | m_pointSelection |
| the point selection | |
| QCursor | m_selectCursor |
Protected Attributes inherited from KoToolBase | |
| KoToolBasePrivate * | d_ptr |
Private Slots | |
| void | breakAtPoint () |
| void | breakAtSegment () |
| void | breakAtSelection () |
| void | convertToPath () |
| void | insertPoints () |
| void | joinPoints () |
| void | mergePoints () |
| void | pointSelectionChanged () |
| void | pointToCurve () |
| void | pointToLine () |
| void | pointTypeChanged (KoPathPointTypeCommand::PointType type) |
| void | pointTypeChangedCorner () |
| void | pointTypeChangedSmooth () |
| void | pointTypeChangedSymmetric () |
| void | removePoints () |
| void | segmentToCurve () |
| void | segmentToLine () |
| void | slotSelectionChanged () |
| void | updateActions () |
Private Member Functions | |
| void | clearActivePointSelectionReferences () |
| KUndo2Command * | createPointToCurveCommand (const QList< KoPathPointData > &points) |
| void | initializeWithShapes (const QList< KoShape * > shapes) |
| void | mergePointsImpl (bool doJoin) |
| PathSegment * | segmentAtPoint (const QPointF &point) |
| void | updateOptionsWidget () |
Private Attributes | |
| QAction * | m_actionAddPoint |
| QAction * | m_actionBreakPoint |
| QAction * | m_actionBreakSegment |
| QAction * | m_actionBreakSelection |
| QAction * | m_actionConvertToPath |
| QAction * | m_actionCurvePoint |
| QAction * | m_actionCurveSegment |
| QAction * | m_actionJoinSegment |
| QAction * | m_actionLinePoint |
| QAction * | m_actionLineSegment |
| QAction * | m_actionMergePoints |
| QAction * | m_actionPathPointCorner |
| QAction * | m_actionPathPointSmooth |
| QAction * | m_actionPathPointSymmetric |
| QAction * | m_actionRemovePoint |
| QScopedPointer< KoPathToolHandle > | m_activeHandle |
| the currently active handle | |
| QScopedPointer< PathSegment > | m_activeSegment |
| KisSignalAutoConnectionsStore | m_canvasConnections |
| QScopedPointer< QMenu > | m_contextMenu |
| QScopedPointer< KoInteractionStrategy > | m_currentStrategy |
| the rubber selection strategy | |
| QPointF | m_lastPoint |
| needed for interaction strategy | |
| QCursor | m_moveCursor |
| KoShapeFillResourceConnector | m_shapeFillResourceConnector |
| QScopedPointer< KoSvgTextShapeOutlineHelper > | m_textOutlineHelper |
Friends | |
| class | TestPathTool |
The tool for editing a KoPathShape or a KoParameterShape. See KoCreatePathTool for code handling the initial path creation.
Definition at line 36 of file KoPathTool.h.
|
explicit |
Definition at line 86 of file KoPathTool.cpp.
References KoToolBase::action(), m_actionAddPoint, m_actionBreakPoint, m_actionBreakSegment, m_actionBreakSelection, m_actionConvertToPath, m_actionCurvePoint, m_actionCurveSegment, m_actionJoinSegment, m_actionLinePoint, m_actionLineSegment, m_actionMergePoints, m_actionPathPointCorner, m_actionPathPointSmooth, m_actionPathPointSymmetric, m_actionRemovePoint, m_contextMenu, m_moveCursor, m_pointSelection, m_selectCursor, m_textOutlineHelper, repaintDecorations(), and KoToolBase::selectionChanged().
|
override |
Definition at line 117 of file KoPathTool.cpp.
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 860 of file KoPathTool.cpp.
References KoToolBase::activate(), KisSignalAutoConnectionsStore::addConnection(), breakAtPoint(), breakAtSegment(), breakAtSelection(), KoShapeFillResourceConnector::connectToCanvas(), convertToPath(), initializeWithShapes(), insertPoints(), joinPoints(), m_actionAddPoint, m_actionBreakPoint, m_actionBreakSegment, m_actionBreakSelection, m_actionConvertToPath, m_actionCurvePoint, m_actionCurveSegment, m_actionJoinSegment, m_actionLinePoint, m_actionLineSegment, m_actionMergePoints, m_actionPathPointCorner, m_actionPathPointSmooth, m_actionPathPointSymmetric, m_actionRemovePoint, m_canvasConnections, m_pointSelection, m_selectCursor, m_shapeFillResourceConnector, mergePoints(), pointSelectionChanged(), pointToCurve(), pointToLine(), pointTypeChangedCorner(), pointTypeChangedSmooth(), pointTypeChangedSymmetric(), removePoints(), repaintDecorations(), segmentToCurve(), segmentToLine(), KoToolBase::selectionChanged(), slotSelectionChanged(), updateActions(), and KoToolBase::useCursor().
|
privateslot |
Definition at line 406 of file KoPathTool.cpp.
References KoPathToolSelection::hasSelection(), m_pointSelection, and KoPathToolSelection::selectedPointsData().
|
privateslot |
Definition at line 428 of file KoPathTool.cpp.
References m_pointSelection, KoPathToolSelection::objectCount(), KoPathToolSelection::selectedSegmentsData(), and KoPathToolSelection::size().
|
privateslot |
Definition at line 414 of file KoPathTool.cpp.
References KoPathToolSelection::hasSelection(), m_pointSelection, KoPathToolSelection::objectCount(), KoPathToolSelection::selectedPointsData(), KoPathToolSelection::selectedSegmentsData(), and KoPathToolSelection::size().
|
overrideslot |
Definition at line 1094 of file KoPathTool.cpp.
References KoCanvasResource::DecorationThickness, KoCanvasResource::HandleRadius, and repaintDecorations().
|
private |
Definition at line 915 of file KoPathTool.cpp.
References KoPathToolSelection::clear(), m_activeHandle, m_activeSegment, and m_pointSelection.
|
privateslot |
Definition at line 287 of file KoPathTool.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), KisCommandUtils::FlipFlopCommand::FINALIZING, KisCommandUtils::FlipFlopCommand::INITIALIZING, KoParameterShape::isParametricShape(), kundo2_i18n(), m_pointSelection, KoShape::parent(), KoPathToolSelection::selectedShapes(), KoCanvasBase::selectedShapesProxy(), selection(), KoSelectedShapesProxy::selection(), KoCanvasBase::shapeController, KoSvgTextShape::textOutline(), and updateOptionsWidget().
reimplemented
Reimplemented from KoToolBase.
Definition at line 121 of file KoPathTool.cpp.
References singleShapeChanged(), typeChanged(), updateActions(), and updateOptionsWidget().
|
private |
Definition at line 246 of file KoPathTool.cpp.
References KoPathPoint::activeControlPoint1, KoPathPoint::activeControlPoint2, and KoPathPointTypeCommand::Curve.
|
overridevirtual |
This method is called whenever this tool is no longer the active tool
Reimplemented from KoToolBase.
Definition at line 1061 of file KoPathTool.cpp.
References KoPathToolSelection::clear(), KisSignalAutoConnectionsStore::clear(), KoToolBase::deactivate(), KoShapeFillResourceConnector::disconnect(), m_actionAddPoint, m_actionBreakPoint, m_actionBreakSegment, m_actionBreakSelection, m_actionConvertToPath, m_actionCurvePoint, m_actionCurveSegment, m_actionJoinSegment, m_actionLinePoint, m_actionLineSegment, m_actionMergePoints, m_actionPathPointCorner, m_actionPathPointSmooth, m_actionPathPointSymmetric, m_actionRemovePoint, m_activeHandle, m_activeSegment, m_canvasConnections, m_currentStrategy, m_pointSelection, m_shapeFillResourceConnector, and KoPathToolSelection::setSelectedShapes().
|
overridevirtual |
Reimplemented from KoToolBase.
Definition at line 514 of file KoPathTool.cpp.
References KoPathSegment::boundingRect(), KoShape::boundingRect(), KoPathPoint::boundingRect(), KoToolBase::handleDocRadius(), kisGrowRect(), m_activeHandle, m_activeSegment, m_pointSelection, m_textOutlineHelper, KoPathToolSelection::selectedPoints(), and KoPathToolSelection::selectedShapes().
|
overridevirtual |
Delete the tools selection. The default implementation is empty to aid tools that don't have any selection.
Reimplemented from KoToolBase.
Definition at line 1180 of file KoPathTool.cpp.
References removePoints().
|
overridevirtual |
deselect the tool should clear the selection if it has one.
Reimplemented from KoToolBase.
Definition at line 1217 of file KoPathTool.cpp.
References clearActivePointSelectionReferences(), and repaintDecorations().
|
overridevirtual |
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.
Reimplemented from KoToolBase.
Definition at line 1205 of file KoPathTool.cpp.
References KoToolManager::instance(), and KoToolManager::switchToolRequested().
Definition at line 922 of file KoPathTool.cpp.
References clearActivePointSelectionReferences(), KoShape::isShapeEditable(), m_pointSelection, repaintDecorations(), KoPathToolSelection::selectedShapes(), KoPathToolSelection::setSelectedShapes(), updateActions(), and updateOptionsWidget().
|
privateslot |
Definition at line 176 of file KoPathTool.cpp.
References KoPathToolSelection::add(), KoPathToolSelection::clear(), KoPathPointInsertCommand::insertedPoints(), m_activeSegment, m_pointSelection, p, and KoPathToolSelection::selectedSegmentsData().
|
privateslot |
|
overridevirtual |
Called when a key is pressed. Implementors should call event->ignore() if they do not actually use the event. Default implementation ignores this event.
| event | state and reason of this key press |
Reimplemented from KoToolBase.
Definition at line 751 of file KoPathTool.cpp.
References m_currentStrategy, and m_lastPoint.
|
overridevirtual |
Called when a key is released Implementors should call event->ignore() if they do not actually use the event. Default implementation ignores this event.
| event | state and reason of this key release |
Reimplemented from KoToolBase.
Definition at line 790 of file KoPathTool.cpp.
References m_currentStrategy, and m_lastPoint.
|
privateslot |
Definition at line 401 of file KoPathTool.cpp.
References mergePointsImpl().
|
private |
Definition at line 367 of file KoPathTool.cpp.
References clearActivePointSelectionReferences(), m_pointSelection, KoPathToolSelection::selectedPointsData(), and KoPathToolSelection::size().
|
overridevirtual |
Called when (one of) the mouse or stylus buttons is double clicked. Implementors should call event->ignore() if they do not actually use the event. Default implementation ignores this event.
| event | state and reason of this mouse or stylus press |
Reimplemented from KoToolBase.
Definition at line 809 of file KoPathTool.cpp.
References KoPathToolSelection::add(), KoPathToolSelection::clear(), explicitUserStrokeEndRequest(), KoPathPointInsertCommand::insertedPoints(), m_activeHandle, m_activeSegment, m_currentStrategy, m_pointSelection, p, and updateActions().
|
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 |
Implements KoToolBase.
Definition at line 607 of file KoPathTool.cpp.
References PointHandle::activePoint(), PointHandle::activePointType(), KoPointerEvent::button(), KoPathToolSelection::contains(), KoPathPoint::ControlPoint1, KoPathPoint::ControlPoint2, KoShape::documentToShape(), KoToolBase::handleGrabRect(), KoParameterShape::handleIdAt(), KoParameterShape::isParametricShape(), m_actionBreakSelection, m_activeHandle, m_activeSegment, m_currentStrategy, m_lastPoint, m_moveCursor, m_pointSelection, m_selectCursor, KoPointerEvent::modifiers(), KoPathPoint::Node, p, KoPointerEvent::point, KoPathShape::pointsAt(), repaintDecorations(), segmentAtPoint(), KoPathToolSelection::selectedShapes(), KoPathToolSelection::size(), squaredDistance(), KoToolBase::statusTextChanged(), and KoToolBase::useCursor().
|
overridevirtual |
Called when (one of) the mouse or stylus buttons is pressed. Implementors should call event->ignore() if they do not actually use the event.
| event | state and reason of this mouse or stylus press |
Implements KoToolBase.
Definition at line 553 of file KoPathTool.cpp.
References KoPathToolSelection::add(), KoPointerEvent::button(), KoToolBase::canvas(), KoPathSegment::first, KoPointerEvent::isTouchEvent(), KIS_ASSERT_RECOVER_RETURN, m_activeHandle, m_activeSegment, m_currentStrategy, m_pointSelection, m_textOutlineHelper, KoPointerEvent::modifiers(), mouseMoveEvent(), KoPathShape::pathPointIndex(), KoPointerEvent::point, KoPathSegment::second, KoPathShape::segmentByIndex(), KoShapeManager::selection, selection(), KoShapeManager::shapeAt(), KoCanvasBase::shapeManager(), and KoFlake::ShapeOnTop.
|
overridevirtual |
Called when (one of) the mouse or stylus buttons is released. Implementors should call event->ignore() if they do not actually use the event.
| event | state and reason of this mouse or stylus release |
Implements KoToolBase.
Definition at line 732 of file KoPathTool.cpp.
References KoPathToolSelection::hasSelection(), m_currentStrategy, m_pointSelection, KoPointerEvent::modifiers(), and repaintDecorations().
| void KoPathTool::notifyPathPointsChanged | ( | KoPathShape * | shape | ) |
Definition at line 904 of file KoPathTool.cpp.
References m_activeHandle, and m_activeSegment.
|
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 440 of file KoPathTool.cpp.
References KoPathPoint::controlPoint1, KoPathPoint::controlPoint2, KoShape::createHandlePainterHelperView(), KoToolBase::decorationThickness(), KoViewConverter::documentToView(), KisHandlePainterHelper::drawPath(), KoPathSegment::first, KoToolBase::handleRadius(), KoParameterShape::isParametricShape(), KoPathSegment::isValid(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_activeHandle, m_activeSegment, m_currentStrategy, m_pointSelection, m_textOutlineHelper, KoPathShape::outline(), KoPathToolSelection::paint(), KoParameterShape::paintHandles(), KoPathShape::paintPoints(), KoPathShape::pathPointIndex(), KoPathPoint::point, KisHandleStyle::primarySelection(), KoPathSegment::second, KisHandleStyle::secondarySelection(), KoPathShape::segmentByIndex(), KoPathToolSelection::selectedShapes(), KisHandlePainterHelper::setHandleStyle(), KoShape::stroke(), and KoPathSegment::toCubic().
|
privateslot |
Definition at line 1101 of file KoPathTool.cpp.
References KoPathToolSelection::hasSelection(), m_pointSelection, KoPathToolSelection::selectedPoints(), KoToolBase::selectionChanged(), and updateActions().
|
privateslot |
Definition at line 232 of file KoPathTool.cpp.
References createPointToCurveCommand(), KoPathToolSelection::hasSelection(), m_pointSelection, and KoPathToolSelection::selectedPointsData().
|
privateslot |
Definition at line 212 of file KoPathTool.cpp.
References KoPathPoint::activeControlPoint1, KoPathPoint::activeControlPoint2, KoPathToolSelection::hasSelection(), KoPathPointTypeCommand::Line, m_pointSelection, and KoPathToolSelection::selectedPointsData().
|
privateslot |
Definition at line 146 of file KoPathTool.cpp.
References createPointToCurveCommand(), KoPathToolSelection::hasSelection(), m_pointSelection, KUndo2Command::redo(), KoPathToolSelection::selectedPointsData(), and KUndo2Command::text().
|
privateslot |
Definition at line 136 of file KoPathTool.cpp.
References KoPathPointTypeCommand::Corner, and pointTypeChanged().
|
privateslot |
Definition at line 139 of file KoPathTool.cpp.
References pointTypeChanged(), and KoPathPointTypeCommand::Smooth.
|
privateslot |
Definition at line 142 of file KoPathTool.cpp.
References pointTypeChanged(), and KoPathPointTypeCommand::Symmetric.
|
overridevirtual |
Reimplemented from KoToolBase.
Definition at line 1130 of file KoPathTool.cpp.
References KoPathToolSelection::add(), KoPathSegment::first, m_actionAddPoint, m_actionBreakPoint, m_actionBreakSegment, m_actionConvertToPath, m_actionCurvePoint, m_actionCurveSegment, m_actionJoinSegment, m_actionLinePoint, m_actionLineSegment, m_actionMergePoints, m_actionPathPointCorner, m_actionPathPointSmooth, m_actionPathPointSymmetric, m_actionRemovePoint, m_activeHandle, m_activeSegment, m_contextMenu, m_pointSelection, KoPathShape::pathPointIndex(), KoPathSegment::second, and KoPathShape::segmentByIndex().
|
privateslot |
Definition at line 198 of file KoPathTool.cpp.
References PointHandle::activePoint(), clearActivePointSelectionReferences(), KoPathToolSelection::contains(), KoPathPointRemoveCommand::createCommand(), m_activeHandle, m_pointSelection, KoPathToolSelection::selectedPointsData(), and KoPathToolSelection::size().
|
overridevirtual |
request a repaint of the decorations to be made. This triggers an update call on the canvas, but does not paint directly.
Reimplemented from KoToolBase.
Definition at line 547 of file KoPathTool.cpp.
References KoToolBase::repaintDecorations(), and updateOptionsWidget().
|
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 1195 of file KoPathTool.cpp.
References explicitUserStrokeEndRequest().
|
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 1200 of file KoPathTool.cpp.
|
overridevirtual |
Called when the user requested undo while the stroke is active. If you tool supports undo of the part of its actions, override this method and do the needed work there.
NOTE: Default implementation forwards this request to requestStrokeCancellation() method, so that the stroke would be cancelled.
Default implementation just cancels the stroke
Reimplemented from KoToolBase.
Definition at line 1190 of file KoPathTool.cpp.
|
private |
Definition at line 834 of file KoPathTool.cpp.
References KoShape::documentToShape(), KoPathSegment::first, KoToolBase::handleGrabRect(), KoParameterShape::isParametricShape(), KoPathSegment::isValid(), m_pointSelection, KoPathSegment::nearestPoint(), KoPathShape::segmentAtPoint(), and KoPathToolSelection::selectedShapes().
|
privateslot |
Definition at line 276 of file KoPathTool.cpp.
References KoPathSegmentTypeCommand::Curve, m_pointSelection, KoPathToolSelection::selectedSegmentsData(), and KoPathToolSelection::size().
|
privateslot |
Definition at line 265 of file KoPathTool.cpp.
References KoPathSegmentTypeCommand::Line, m_pointSelection, KoPathToolSelection::selectedSegmentsData(), and KoPathToolSelection::size().
|
overridevirtual |
selectAll select all data the tool can select.
Reimplemented from KoToolBase.
Definition at line 1210 of file KoPathTool.cpp.
References m_pointSelection, repaintDecorations(), and KoPathToolSelection::selectAll().
|
overridevirtual |
Returns the internal selection object of this tool. Each tool can have a selection which is private to that tool and the specified shape that it comes with. The default returns 0.
Reimplemented from KoToolBase.
Definition at line 1185 of file KoPathTool.cpp.
References m_pointSelection.
|
signal |
|
privateslot |
Definition at line 895 of file KoPathTool.cpp.
References initializeWithShapes().
|
signal |
|
privateslot |
Definition at line 957 of file KoPathTool.cpp.
References KoPathPoint::activeControlPoint1, KoPathPoint::activeControlPoint2, KoToolBase::canvas(), KoPathSegment::degree(), KoPathShape::isClosedSubpath(), KoParameterShape::isParametricShape(), KoPathPoint::IsSmooth, KoPathPoint::IsSymmetric, m_actionAddPoint, m_actionBreakPoint, m_actionBreakSegment, m_actionBreakSelection, m_actionConvertToPath, m_actionCurvePoint, m_actionCurveSegment, m_actionJoinSegment, m_actionLinePoint, m_actionLineSegment, m_actionMergePoints, m_actionPathPointCorner, m_actionPathPointSmooth, m_actionPathPointSymmetric, m_actionRemovePoint, m_pointSelection, KoPathPointData::pathShape, KoPathShape::pointByIndex(), KoPathPointData::pointIndex, KoPathPoint::properties, KoPathShape::segmentByIndex(), KoPathToolSelection::selectedPointsData(), KoPathToolSelection::selectedSegmentsData(), KoCanvasBase::selectedShapesProxy(), selection(), KoSelectedShapesProxy::selection(), and KoPathShape::subpathPointCount().
|
private |
Definition at line 943 of file KoPathTool.cpp.
References KoParameterShape::isParametricShape(), m_pointSelection, PathToolOptionWidget::ParametricShape, PathToolOptionWidget::PlainPath, KoPathToolSelection::selectedShapes(), singleShapeChanged(), and typeChanged().
|
friend |
Definition at line 123 of file KoPathTool.h.
|
private |
Definition at line 134 of file KoPathTool.h.
|
private |
Definition at line 136 of file KoPathTool.h.
|
private |
Definition at line 137 of file KoPathTool.h.
|
private |
Definition at line 138 of file KoPathTool.h.
|
private |
Definition at line 141 of file KoPathTool.h.
|
private |
Definition at line 130 of file KoPathTool.h.
|
private |
Definition at line 133 of file KoPathTool.h.
|
private |
Definition at line 139 of file KoPathTool.h.
|
private |
Definition at line 131 of file KoPathTool.h.
|
private |
Definition at line 132 of file KoPathTool.h.
|
private |
Definition at line 140 of file KoPathTool.h.
|
private |
Definition at line 127 of file KoPathTool.h.
|
private |
Definition at line 128 of file KoPathTool.h.
|
private |
Definition at line 129 of file KoPathTool.h.
|
private |
Definition at line 135 of file KoPathTool.h.
|
private |
the currently active handle
Definition at line 118 of file KoPathTool.h.
|
private |
Definition at line 120 of file KoPathTool.h.
|
private |
Definition at line 145 of file KoPathTool.h.
|
private |
Definition at line 143 of file KoPathTool.h.
|
private |
the rubber selection strategy
Definition at line 125 of file KoPathTool.h.
|
private |
needed for interaction strategy
Definition at line 119 of file KoPathTool.h.
|
private |
Definition at line 142 of file KoPathTool.h.
|
protected |
the point selection
Definition at line 114 of file KoPathTool.h.
|
protected |
Definition at line 115 of file KoPathTool.h.
|
private |
Definition at line 146 of file KoPathTool.h.
|
private |
Definition at line 144 of file KoPathTool.h.