|
Krita Source Code Documentation
|
#include <DefaultTool.h>
Inheritance diagram for DefaultTool:Classes | |
| class | MoveGradientHandleInteractionFactory |
| class | MoveMeshGradientHandleInteractionFactory |
Public Types | |
| enum | CanvasResource { HotPosition = 1410100299 } |
Public Slots | |
| void | activate (const QSet< KoShape * > &shapes) override |
| void | deactivate () override |
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 () |
Signals | |
| void | meshgradientHandleSelected (KoShapeMeshGradientHandles::Handle) |
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 | copy () const override |
| reimplemented | |
| QRectF | decorationsRect () const override |
| DefaultTool (KoCanvasBase *canvas, bool connectToSelectedShapesProxy=false) | |
| void | deleteSelection () override |
| reimplemented | |
| void | deselect () override |
| reimplemented | |
| 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. | |
| KoFlake::SelectionHandle | handleAt (const QPointF &point, bool *innerHandleMeaning=0) |
| void | keyPressEvent (QKeyEvent *event) override |
| void | mouseDoubleClickEvent (KoPointerEvent *event) override |
| void | mouseMoveEvent (KoPointerEvent *event) override |
| void | mousePressEvent (KoPointerEvent *event) override |
| void | mouseReleaseEvent (KoPointerEvent *event) override |
| void | paint (QPainter &painter, const KoViewConverter &converter) override |
| bool | paste () override |
| reimplemented | |
| QMenu * | popupActionsMenu () override |
| bool | selectAll () override |
| reimplemented | |
| KoToolSelection * | selection () override |
| reimplemented | |
| bool | wantsAutoScroll () const override |
| ~DefaultTool () override | |
Public Member Functions inherited from KoInteractionTool | |
| void | keyPressEvent (QKeyEvent *event) override |
| void | keyReleaseEvent (QKeyEvent *event) override |
| KoInteractionTool (KoCanvasBase *canvas) | |
| void | mouseMoveEvent (KoPointerEvent *event) override |
| void | mousePressEvent (KoPointerEvent *event) override |
| void | mouseReleaseEvent (KoPointerEvent *event) override |
| void | paint (QPainter &painter, const KoViewConverter &converter) override |
| ~KoInteractionTool () override | |
Public Member Functions inherited from KoToolBase | |
| QAction * | action (const QString &name) const |
| KoCanvasBase * | canvas () const |
| Returns the canvas the tool is working on. | |
| 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 KisPopupWidgetInterface * | popupWidget () |
| Q_INVOKABLE QString | toolId () const |
| ~KoToolBase () override | |
Protected Slots | |
| void | updateActions () |
| Update actions on selection change. | |
Protected Attributes | |
| QScopedPointer< QMenu > | m_contextMenu |
Protected Attributes inherited from KoToolBase | |
| KoToolBasePrivate * | d_ptr |
Private Slots | |
| void | selectionAlign (int _align) |
| void | selectionBooleanOp (int booleanOp) |
| void | selectionBringToFront () |
| void | selectionDistribute (int _distribute) |
| void | selectionGroup () |
| void | selectionMoveDown () |
| void | selectionMoveUp () |
| void | selectionSendToBack () |
| void | selectionSplitShapes () |
| void | selectionTransform (int transformAction) |
| void | selectionUngroup () |
| void | slotActivateEditFillGradient (bool value) |
| void | slotActivateEditFillMeshGradient (bool value) |
| void | slotActivateEditStrokeGradient (bool value) |
| void | slotChangeTextType (int index) |
| void | slotResetMeshGradientState () |
Private Member Functions | |
| void | addMappedAction (KisSignalMapper *mapper, const QString &actionId, int type) |
| void | canvasResourceChanged (int key, const QVariant &res) override |
| QRectF | handlesSize () |
| Returns selection rectangle adjusted by handle proximity threshold. | |
| bool | moveSelection (int direction, Qt::KeyboardModifiers modifiers) |
| void | recalcSelectionBox (KoSelection *selection) |
| qreal | rotationOfHandle (KoFlake::SelectionHandle handle, bool useEdgeRotation) |
| Returns rotation angle of given handle of the current selection. | |
| void | selectionReorder (KoShapeReorderCommand::MoveShapeType order) |
| void | setupActions () |
| void | updateCursor () |
Private Attributes | |
| KisSignalMapper * | m_alignSignalsMapper {0} |
| qreal | m_angle |
| KisSignalMapper * | m_booleanSignalsMapper {0} |
| QScopedPointer< SelectionDecorator > | m_decorator |
| KisSignalMapper * | m_distributeSignalsMapper {0} |
| KoFlake::AnchorPosition | m_hotPosition |
| KoShapeMeshGradientHandles::Handle | m_hoveredMeshHandle |
| KoFlake::SelectionHandle | m_lastHandle |
| QPointF | m_lastPoint |
| bool | m_mouseWasInsideHandles |
| QCursor | m_rotateCursors [8] |
| KoShapeMeshGradientHandles::Handle | m_selectedMeshHandle |
| QPointF | m_selectionBox [8] |
| KoToolSelection * | m_selectionHandler |
| QPolygonF | m_selectionOutline |
| QCursor | m_shearCursors [8] |
| QCursor | m_sizeCursors [8] |
| DefaultToolTabbedWidget * | m_tabbedOptionWidget |
| DefaultToolTextPropertiesInterface * | m_textPropertyInterface {0} |
| KisSignalMapper * | m_textTypeSignalsMapper {0} |
| KisSignalMapper * | m_transformSignalsMapper {0} |
Friends | |
| class | SelectionHandler |
| class | SelectionInteractionStrategy |
The default tool (associated with the arrow icon) implements the default interactions you have with flake objects.
The tool provides scaling, moving, selecting, rotation and soon skewing of any number of shapes.
Note that the implementation of those different strategies are delegated to the InteractionStrategy class and its subclasses.
Definition at line 40 of file DefaultTool.h.
| Enumerator | |
|---|---|
| HotPosition | |
Definition at line 52 of file DefaultTool.h.
|
explicit |
Constructor for basic interaction tool where user actions are translated and handled by interaction strategies of type KoInteractionStrategy.
| canvas | the canvas this tool will be working for. |
Definition at line 415 of file DefaultTool.cpp.
References KoToolBase::canvas(), connect(), m_rotateCursors, m_shearCursors, m_sizeCursors, m_textPropertyInterface, KoToolBase::repaintDecorations(), KoCanvasBase::selectedShapesProxy(), KoToolBase::selectionChanged(), setupActions(), and updateActions().
|
override |
Definition at line 476 of file DefaultTool.cpp.
Definition at line 1201 of file DefaultTool.cpp.
References KoToolBase::action(), DefaultToolTabbedWidget::activate(), KoToolBase::activate(), KoToolBase::canvas(), connect(), m_alignSignalsMapper, m_booleanSignalsMapper, m_distributeSignalsMapper, m_lastHandle, m_mouseWasInsideHandles, m_tabbedOptionWidget, m_textPropertyInterface, m_textTypeSignalsMapper, m_transformSignalsMapper, KoFlake::NoHandle, KoToolBase::repaintDecorations(), selectionAlign(), selectionBooleanOp(), selectionBringToFront(), selectionDistribute(), selectionGroup(), selectionMoveDown(), selectionMoveUp(), selectionSendToBack(), selectionSplitShapes(), selectionTransform(), selectionUngroup(), KisTextPropertiesManager::setTextPropertiesInterface(), slotChangeTextType(), DefaultToolTextPropertiesInterface::slotSelectionChanged(), KisViewManager::textPropertyManager(), updateActions(), KoToolBase::useCursor(), and KisCanvas2::viewManager().
|
private |
Definition at line 556 of file DefaultTool.cpp.
References KoToolBase::action(), connect(), and KisSignalMapper::setMapping().
|
protected |
Definition at line 1971 of file DefaultTool.cpp.
References KoToolBase::action().
|
overrideprivatevirtual |
This method is called whenever a property in the resource provider associated with the canvas this tool belongs to changes. An example is currently selected foreground color.
Reimplemented from KoToolBase.
Definition at line 1674 of file DefaultTool.cpp.
References HotPosition, m_hotPosition, and KoToolBase::repaintDecorations().
|
overridevirtual |
reimplemented
Reimplemented from KoToolBase.
Definition at line 1053 of file DefaultTool.cpp.
References KoDrag::addToClipboard(), koSelection(), KoSelection::selectedShapes(), and KoDrag::setSvg().
Reimplemented from KoToolBase.
Reimplemented in ToolReferenceImages.
Definition at line 1643 of file DefaultTool.cpp.
References DefaultToolTabbedWidget::activate(), connect(), KoToolBase::isActivated(), m_tabbedOptionWidget, slotActivateEditFillGradient(), slotActivateEditFillMeshGradient(), slotActivateEditStrokeGradient(), and slotResetMeshGradientState().
|
overrideprotectedvirtual |
Implements KoInteractionTool.
Definition at line 1682 of file DefaultTool.cpp.
References KoFlake::Bottom, KoFlake::BottomLeft, KoFlake::BottomLeftHandle, KoFlake::BottomMiddleHandle, KoFlake::BottomRight, KoFlake::BottomRightHandle, KoPointerEvent::buttons(), KoToolBase::canvas(), KoFlake::Center, KoViewConverter::documentToView(), HANDLE_DISTANCE_SQ, handleAt(), HotPosition, KoPointerEvent::isTabletEvent(), kisSquareDistance(), koSelection(), KoFlake::Left, KoFlake::LeftMiddleHandle, m_hotPosition, m_tabbedOptionWidget, KoFlake::NextUnselected, KoFlake::NoHandle, KoPointerEvent::point, KoCanvasBase::resourceManager, KoFlake::Right, KoFlake::RightMiddleHandle, selection(), SelectionInteractionStrategy, KoShapeManager::shapeAt(), shapeManager(), KoFlake::ShapeOnTop, KoFlake::Top, KoFlake::TopLeft, KoFlake::TopLeftHandle, KoFlake::TopMiddleHandle, KoFlake::TopRight, KoFlake::TopRightHandle, DefaultToolTabbedWidget::useUniformScaling(), and KoCanvasBase::viewConverter().
|
overrideslot |
Definition at line 1249 of file DefaultTool.cpp.
References KoToolBase::action(), KoToolBase::canvas(), DefaultToolTextPropertiesInterface::clearSelection(), KoToolBase::deactivate(), DefaultToolTabbedWidget::deactivate(), m_alignSignalsMapper, m_booleanSignalsMapper, m_distributeSignalsMapper, m_tabbedOptionWidget, m_textPropertyInterface, m_textTypeSignalsMapper, m_transformSignalsMapper, KisTextPropertiesManager::setTextPropertiesInterface(), KisViewManager::textPropertyManager(), and KisCanvas2::viewManager().
|
overridevirtual |
TODO: avoid cons_cast by implementing proper caching strategy inrecalcSelectionBox() and handlesSize()
Reimplemented from KoToolBase.
Definition at line 1035 of file DefaultTool.cpp.
References KoSnapGuide::boundingRect(), KoToolBase::canvas(), handlesSize(), KoSnapGuide::isSnapping(), koSelection(), and KoCanvasBase::snapGuide.
|
overridevirtual |
reimplemented
Reimplemented from KoToolBase.
Reimplemented in ToolReferenceImages.
Definition at line 1065 of file DefaultTool.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), KoShape::isGeometryProtected(), and koSelection().
|
overridevirtual |
reimplemented
Reimplemented from KoToolBase.
Definition at line 1098 of file DefaultTool.cpp.
References KoToolBase::canvas(), KoSelection::deselectAll(), KoToolBase::repaintDecorations(), KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
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 1982 of file DefaultTool.cpp.
References KoToolManager::instance(), koSelection(), KoToolManager::preferredToolForSelection(), KoSelection::selectedEditableShapesAndDelegates(), and KoToolManager::switchToolRequested().
| KoFlake::SelectionHandle DefaultTool::handleAt | ( | const QPointF & | point, |
| bool * | innerHandleMeaning = 0 ) |
Returns which selection handle is at params point (or NoHandle if none).
| point | the location (in pt) where we should look for a handle |
| innerHandleMeaning | this boolean is altered to true if the point is inside the selection rectangle and false if it is just outside. The value of innerHandleMeaning is undefined if the handle location is NoHandle |
Definition at line 1113 of file DefaultTool.cpp.
References KoFlake::BottomLeftHandle, KoFlake::BottomMiddleHandle, KoFlake::BottomRightHandle, KoToolBase::canvas(), KoViewConverter::documentToView(), HANDLE_DISTANCE_SQ, KoToolBase::handlePaintRect(), INNER_HANDLE_DISTANCE_SQ, kisSquareDistance(), koSelection(), KoFlake::LeftMiddleHandle, m_selectionBox, m_selectionOutline, KoFlake::NoHandle, recalcSelectionBox(), KoFlake::RightMiddleHandle, selection(), KoFlake::TopLeftHandle, KoFlake::TopMiddleHandle, KoFlake::TopRightHandle, and KoCanvasBase::viewConverter().
|
private |
Returns selection rectangle adjusted by handle proximity threshold.
Definition at line 938 of file DefaultTool.cpp.
References KoToolBase::canvas(), HANDLE_DISTANCE, koSelection(), m_selectionOutline, recalcSelectionBox(), selection(), KoCanvasBase::viewConverter(), and KoViewConverter::viewToDocument().
|
protectedvirtual |
Reimplemented in ToolReferenceImages.
Definition at line 882 of file DefaultTool.cpp.
References KoToolBase::canvas(), and KisCanvas2::localShapeManager().
|
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 1016 of file DefaultTool.cpp.
References KoInteractionTool::currentStrategy(), KoInteractionTool::keyPressEvent(), and moveSelection().
|
protectedvirtual |
Reimplemented in ToolReferenceImages.
Definition at line 1106 of file DefaultTool.cpp.
References KoToolBase::canvas(), KoCanvasBase::selectedShapesProxy(), and KoSelectedShapesProxy::selection().
|
signal |
|
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.
Reimplemented in ToolReferenceImages.
Definition at line 963 of file DefaultTool.cpp.
References explicitUserStrokeEndRequest(), koSelection(), KoPointerEvent::modifiers(), KoPointerEvent::point, selection(), KoShapeManager::shapeAt(), shapeManager(), and KoFlake::ShapeOnTop.
|
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 910 of file DefaultTool.cpp.
References KoInteractionTool::currentStrategy(), handleAt(), handlesSize(), koSelection(), m_lastHandle, m_mouseWasInsideHandles, KoInteractionTool::mouseMoveEvent(), KoFlake::NoHandle, KoPointerEvent::point, and updateCursor().
|
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 895 of file DefaultTool.cpp.
References KoToolBase::canvas(), isValidForCurrentLayer(), KisFloatingMessage::Medium, KoInteractionTool::mousePressEvent(), KisViewManager::showFloatingMessage(), updateCursor(), and KisCanvas2::viewManager().
|
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 957 of file DefaultTool.cpp.
References KoInteractionTool::mouseReleaseEvent(), and updateCursor().
|
private |
Definition at line 980 of file DefaultTool.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), koSelection(), and KoSelection::selectedEditableShapes().
|
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. |
Selection masks don't render the outline of the shapes, so we should do that explicitly when rendering them via selection
Implements KoToolBase.
Definition at line 846 of file DefaultTool.cpp.
References KisNodeManager::activeNode(), KoToolBase::canvas(), KoToolBase::decorationThickness(), KoViewConverter::documentToView(), KoToolBase::handleRadius(), KoInteractionTool::hasInteractionFactory(), isSelectionMask(), koSelection(), m_decorator, m_hoveredMeshHandle, m_selectedMeshHandle, KisViewManager::nodeManager(), KoSnapGuide::paint(), KoInteractionTool::paint(), selection(), KoCanvasBase::snapGuide, and KisCanvas2::viewManager().
|
overridevirtual |
reimplemented
Reimplemented from KoToolBase.
Definition at line 1079 of file DefaultTool.cpp.
|
overridevirtual |
Reimplemented from KoToolBase.
Reimplemented in ToolReferenceImages.
Definition at line 1914 of file DefaultTool.cpp.
References KoToolBase::action(), and m_contextMenu.
|
private |
Definition at line 1166 of file DefaultTool.cpp.
References KoFlake::BottomLeftHandle, KoFlake::BottomMiddleHandle, KoFlake::BottomRightHandle, KoSelection::firstSelectedShape(), KIS_ASSERT_RECOVER_RETURN, koSelection(), KoFlake::LeftMiddleHandle, m_angle, m_selectionBox, m_selectionOutline, KoFlake::RightMiddleHandle, selection(), KoFlake::TopLeftHandle, KoFlake::TopMiddleHandle, and KoFlake::TopRightHandle.
|
private |
Returns rotation angle of given handle of the current selection.
Definition at line 609 of file DefaultTool.cpp.
References KoShape::absolutePosition(), KoFlake::BottomLeft, KoFlake::BottomLeftHandle, KoFlake::BottomMiddleHandle, KoFlake::BottomRight, KoFlake::BottomRightHandle, koSelection(), KoFlake::LeftMiddleHandle, M_PI, KoFlake::NoHandle, KoFlake::RightMiddleHandle, KoFlake::TopLeft, KoFlake::TopLeftHandle, KoFlake::TopMiddleHandle, KoFlake::TopRight, and KoFlake::TopRightHandle.
|
overridevirtual |
reimplemented
Reimplemented from KoToolBase.
Definition at line 1085 of file DefaultTool.cpp.
References KoToolBase::canvas(), KoShape::isSelectable(), KoToolBase::repaintDecorations(), KoSelection::select(), KoCanvasBase::selectedShapesProxy(), KoSelectedShapesProxy::selection(), and shapeManager().
|
overridevirtual |
reimplemented
Reimplemented from KoToolBase.
Definition at line 1909 of file DefaultTool.cpp.
References m_selectionHandler.
|
privateslot |
Definition at line 1555 of file DefaultTool.cpp.
References KoShape::absoluteOutlineRect(), KoCanvasBase::addCommand(), KoToolBase::canvas(), koSelection(), KoCanvasResource::PageSize, and selection().
|
privateslot |
Definition at line 1427 of file DefaultTool.cpp.
References KoShape::absoluteTransformation(), KoCanvasBase::addCommand(), KoShape::background(), KoToolBase::canvas(), KoPathShape::createShapeFromPainterPath(), KisCanvas2::image(), KIS_SAFE_ASSERT_RECOVER_RETURN, koSelection(), kundo2_i18n(), kundo2_noi18n(), KoShape::outline(), KoShape::parent(), KritaUtils::pathShapeBooleanSpaceWorkaround(), KoCanvasBase::selectedShapesProxy(), selection(), KoShape::setBackground(), KoShape::setStroke(), KoShape::setZIndex(), KoCanvasBase::shapeController, KoShape::stroke(), and KoShape::zIndex().
|
privateslot |
Definition at line 1605 of file DefaultTool.cpp.
References KoShapeReorderCommand::BringToFront, and selectionReorder().
|
privateslot |
Definition at line 1587 of file DefaultTool.cpp.
References KoShape::absoluteOutlineRect(), KoCanvasBase::addCommand(), KoToolBase::canvas(), koSelection(), and selection().
|
privateslot |
Definition at line 1291 of file DefaultTool.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), KoShape::compareShapeZIndex(), koSelection(), kundo2_i18n(), KoCanvasBase::selectedShapesProxy(), selection(), KoShape::setZIndex(), and KoCanvasBase::shapeController.
|
privateslot |
Definition at line 1615 of file DefaultTool.cpp.
References KoShapeReorderCommand::LowerShape, and selectionReorder().
|
privateslot |
Definition at line 1610 of file DefaultTool.cpp.
References KoShapeReorderCommand::RaiseShape, and selectionReorder().
|
private |
Definition at line 1625 of file DefaultTool.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), KoShapeReorderCommand::createCommand(), koSelection(), selection(), and shapeManager().
|
privateslot |
Definition at line 1620 of file DefaultTool.cpp.
References selectionReorder(), and KoShapeReorderCommand::SendToBack.
|
privateslot |
Definition at line 1520 of file DefaultTool.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), koSelection(), kundo2_i18n(), KoShape::parent(), KoCanvasBase::selectedShapesProxy(), selection(), KoPathShape::separate(), and KoCanvasBase::shapeController.
|
privateslot |
Definition at line 1349 of file DefaultTool.cpp.
References KoShape::absoluteOutlineRect(), KoShape::absoluteTransformation(), KoCanvasBase::addCommand(), KoToolBase::canvas(), koSelection(), kundo2_i18n(), kundo2_noi18n(), KoShape::outlineRect(), selection(), KUndo2Command::setText(), and KoShape::transformation().
|
privateslot |
Definition at line 1317 of file DefaultTool.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), KoShape::compareShapeZIndex(), koSelection(), kundo2_i18n(), KoShape::parent(), KoCanvasBase::selectedShapesProxy(), selection(), KoCanvasBase::shapeController, shapeManager(), KoShapeContainer::shapes(), and KoShapeManager::topLevelShapes().
|
private |
Definition at line 563 of file DefaultTool.cpp.
References addMappedAction(), KoShapeAlignCommand::HorizontalCenterAlignment, KoShapeDistributeCommand::HorizontalCenterDistribution, KoShapeDistributeCommand::HorizontalGapsDistribution, KoShapeAlignCommand::HorizontalLeftAlignment, KoShapeDistributeCommand::HorizontalLeftDistribution, KoShapeAlignCommand::HorizontalRightAlignment, KoShapeDistributeCommand::HorizontalRightDistribution, KoSvgTextShape::InlineWrap, m_alignSignalsMapper, m_booleanSignalsMapper, m_contextMenu, m_distributeSignalsMapper, m_textTypeSignalsMapper, m_transformSignalsMapper, KoSvgTextShape::PreformattedText, KoSvgTextShape::PrePositionedText, KoShapeAlignCommand::VerticalBottomAlignment, KoShapeDistributeCommand::VerticalBottomDistribution, KoShapeAlignCommand::VerticalCenterAlignment, KoShapeDistributeCommand::VerticalCenterDistribution, KoShapeDistributeCommand::VerticalGapsDistribution, KoShapeAlignCommand::VerticalTopAlignment, and KoShapeDistributeCommand::VerticalTopDistribution.
|
protectedvirtual |
Reimplemented in ToolReferenceImages.
Definition at line 891 of file DefaultTool.cpp.
References KoToolBase::canvas(), and KoCanvasBase::shapeManager().
|
privateslot |
Definition at line 480 of file DefaultTool.cpp.
References KoInteractionTool::addInteractionFactory(), KoFlake::Fill, KoInteractionTool::removeInteractionFactory(), KoToolBase::repaintDecorations(), and value().
|
privateslot |
Definition at line 504 of file DefaultTool.cpp.
References KoInteractionTool::addInteractionFactory(), connect(), KoFlake::Fill, m_tabbedOptionWidget, meshgradientHandleSelected(), KoInteractionTool::removeInteractionFactory(), and value().
|
privateslot |
Definition at line 492 of file DefaultTool.cpp.
References KoInteractionTool::addInteractionFactory(), KoInteractionTool::removeInteractionFactory(), KoToolBase::repaintDecorations(), KoFlake::StrokeFill, and value().
|
privateslot |
Definition at line 524 of file DefaultTool.cpp.
References KoCanvasBase::addCommand(), KoToolBase::canvas(), KisCommandUtils::FlipFlopCommand::FINALIZING, KisCommandUtils::FlipFlopCommand::INITIALIZING, koSelection(), KoSelection::selectedShapes(), KoCanvasBase::selectedShapesProxy(), KUndo2Command::setText(), KUndo2Command::text(), and KoSvgTextShape::textType().
|
privateslot |
Definition at line 519 of file DefaultTool.cpp.
References m_selectedMeshHandle.
|
protectedslot |
Update actions on selection change.
Definition at line 1804 of file DefaultTool.cpp.
References KoToolBase::action(), KoToolBase::canvas(), koSelection(), KoCanvasResource::PageSize, KoCanvasBase::resourceManager, KoSelection::selectedEditableShapes(), KoToolBase::selectionChanged(), and updateDistinctiveActions().
|
private |
Definition at line 728 of file DefaultTool.cpp.
References KoFlake::BottomLeftHandle, KoFlake::BottomMiddleHandle, KoFlake::BottomRightHandle, KoInteractionTool::currentStrategy(), KoToolBase::cursor(), koSelection(), KoFlake::LeftMiddleHandle, m_angle, m_lastHandle, m_mouseWasInsideHandles, m_rotateCursors, m_shearCursors, m_sizeCursors, KoFlake::NoHandle, KoFlake::RightMiddleHandle, rotationOfHandle(), selection(), KoToolBase::statusTextChanged(), KoFlake::TopLeftHandle, KoFlake::TopMiddleHandle, KoFlake::TopRightHandle, KoInteractionTool::tryUseCustomCursor(), and KoToolBase::useCursor().
|
protectedvirtual |
Enable/disable actions specific to the tool (vector vs. reference images)
Reimplemented in ToolReferenceImages.
Definition at line 1857 of file DefaultTool.cpp.
References KoToolBase::action(), KoSvgTextShape::PreformattedText, KoSvgTextShape::PrePositionedText, KoPathShape::subpathCount(), and KoSvgTextShape::textType().
|
overridevirtual |
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 551 of file DefaultTool.cpp.
|
friend |
Definition at line 198 of file DefaultTool.h.
|
friend |
Definition at line 145 of file DefaultTool.h.
|
private |
Definition at line 202 of file DefaultTool.h.
|
private |
Definition at line 196 of file DefaultTool.h.
|
private |
Definition at line 205 of file DefaultTool.h.
|
protected |
Definition at line 156 of file DefaultTool.h.
|
private |
Definition at line 187 of file DefaultTool.h.
|
private |
Definition at line 203 of file DefaultTool.h.
|
private |
Definition at line 181 of file DefaultTool.h.
|
private |
Definition at line 190 of file DefaultTool.h.
|
private |
Definition at line 180 of file DefaultTool.h.
|
private |
Definition at line 185 of file DefaultTool.h.
|
private |
Definition at line 182 of file DefaultTool.h.
|
private |
Definition at line 194 of file DefaultTool.h.
|
private |
Definition at line 189 of file DefaultTool.h.
|
private |
Definition at line 183 of file DefaultTool.h.
|
private |
Definition at line 197 of file DefaultTool.h.
|
private |
Definition at line 184 of file DefaultTool.h.
|
private |
Definition at line 195 of file DefaultTool.h.
|
private |
Definition at line 193 of file DefaultTool.h.
|
private |
Definition at line 200 of file DefaultTool.h.
|
private |
Definition at line 208 of file DefaultTool.h.
|
private |
Definition at line 206 of file DefaultTool.h.
|
private |
Definition at line 204 of file DefaultTool.h.