|
Krita Source Code Documentation
|
#include <kis_assistant_tool.h>
Inheritance diagram for KisAssistantTool:Public Member Functions | |
| void | beginAlternateAction (KoPointerEvent *event, KisTool::AlternateAction action) override |
| void | beginPrimaryAction (KoPointerEvent *event) override |
| void | continueAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| void | continuePrimaryAction (KoPointerEvent *event) override |
| QWidget * | createOptionWidget () override |
| void | endAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| void | endPrimaryAction (KoPointerEvent *event) override |
| void | keyPressEvent (QKeyEvent *event) override |
| KisAssistantTool (KoCanvasBase *canvas) | |
| void | mouseMoveEvent (KoPointerEvent *event) override |
| virtual quint32 | priority () |
| ~KisAssistantTool () override | |
Public Member Functions inherited from KisTool | |
| virtual void | activateAlternateAction (AlternateAction action) |
| virtual void | activatePrimaryAction () |
| virtual bool | alternateActionSupportsHiResEvents (AlternateAction action) const |
| virtual void | beginAlternateDoubleClickAction (KoPointerEvent *event, AlternateAction action) |
| virtual void | beginPrimaryDoubleClickAction (KoPointerEvent *event) |
| virtual void | deactivateAlternateAction (AlternateAction action) |
| virtual void | deactivatePrimaryAction () |
| void | deleteSelection () override |
| virtual int | flags () const |
| bool | isActive () const |
| KisTool (KoCanvasBase *canvas, const QCursor &cursor) | |
| void | mouseDoubleClickEvent (KoPointerEvent *event) override |
| void | mouseMoveEvent (KoPointerEvent *event) override |
| void | mousePressEvent (KoPointerEvent *event) override |
| void | mouseReleaseEvent (KoPointerEvent *event) override |
| void | mouseTripleClickEvent (KoPointerEvent *event) override |
| virtual void | newActivationWithExternalSource (KisPaintDeviceSP externalSource) |
| newActivationWithExternalSource Makes sure that the tool is active and starts a new stroke, which will be able to access the pixels from the specified external source. | |
| KisTool::NodePaintAbility | nodePaintAbility () |
| virtual bool | primaryActionSupportsHiResEvents () const |
| virtual bool | supportsPaintingAssistants () const |
| ~KisTool () override | |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Member Functions inherited from KoToolBase | |
| QAction * | action (const QString &name) const |
| KoCanvasBase * | canvas () const |
| Returns the canvas the tool is working on. | |
| virtual void | copy () const |
| QCursor | cursor () const |
| return the last emitted cursor | |
| virtual void | customMoveEvent (KoPointerEvent *event) |
| virtual void | customPressEvent (KoPointerEvent *event) |
| virtual void | customReleaseEvent (KoPointerEvent *event) |
| virtual void | cut () |
| virtual QRectF | decorationsRect () const |
| int | decorationThickness () const |
| decorationThickness The minimum thickness for tool decoration lines, this is derived from the screen magnification, thus the HiDPI settings. Note: to use this effectively, also set the pen to isCosmetic(true); | |
| virtual void | deselect () |
| deselect the tool should clear the selection if it has one. | |
| virtual void | dragLeaveEvent (QDragLeaveEvent *event) |
| virtual void | dragMoveEvent (QDragMoveEvent *event, const QPointF &point) |
| virtual void | dropEvent (QDropEvent *event, const QPointF &point) |
| virtual void | explicitUserStrokeEndRequest () |
| explicitUserStrokeEndRequest is called by the input manager when the user presses the Enter key or any equivalent key. This callback comes before requestStrokeEnd(), which comes from a different source. | |
| KoToolFactoryBase * | factory () const |
| virtual void | focusInEvent (QFocusEvent *event) |
| virtual void | focusOutEvent (QFocusEvent *event) |
| virtual bool | hasSelection () |
| virtual void | inputMethodEvent (QInputMethodEvent *event) |
| virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const |
| bool | isInTextMode () const |
| bool | isOpacityPresetMode () const |
| virtual void | keyReleaseEvent (QKeyEvent *event) |
| KoToolBase (KoCanvasBase *canvas) | |
| bool | maskSyntheticEvents () const |
| QList< QPointer< QWidget > > | optionWidgets () |
| virtual bool | paste () |
| virtual QMenu * | popupActionsMenu () |
| virtual KisPopupWidgetInterface * | popupWidget () |
| 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 Member Functions | |
| void | paint (QPainter &gc, const KoViewConverter &converter) override |
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) |
| QWidget * | createOptionWidget () override |
| 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) |
| virtual void | setMode (ToolMode mode) |
| 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 | assistantDuplicatingFlag {false} |
| KisPaintingAssistantSP | m_assistantDrag |
| QPointer< KisCanvas2 > | m_canvas |
| QPointF | m_currentAdjustment |
| QPointF | m_cursorStart |
| QPointF | m_dragEnd |
| QPointF | m_dragStart |
| KisPaintingAssistantHandleSP | m_handleCombine |
| KisPaintingAssistantHandleSP | m_handleDrag |
| KisPaintingAssistantHandleSP | m_handleHover |
| int | m_handleMaxDist {81} |
| QList< KisPaintingAssistantHandleSP > | m_handles |
| int | m_handleSize {17} |
| KisPaintingAssistantSP | m_newAssistant |
| Ui::AssistantsToolOptions | m_options |
| QWidget * | m_optionsWidget {0} |
| QPointF | m_previousHandlePos |
| QLineF | m_radius |
| QList< KisPaintingAssistantHandleSP > | m_sideHandles |
| bool | m_snapIsRadial {false} |
Protected Attributes inherited from KoToolBase | |
| KoToolBasePrivate * | d_ptr |
Private Types | |
| enum | PerspectiveAssistantEditionMode { MODE_CREATION , MODE_EDITING , MODE_DRAGGING_NODE , MODE_DRAGGING_TRANSLATING_TWONODES , MODE_DRAGGING_EDITOR_WIDGET } |
Private Slots | |
| void | loadAssistants () |
| void | removeAllAssistants () |
| void | saveAssistants () |
| void | slotChangeFixedLengthUnit (int index) |
| void | slotCustomOpacityChanged () |
| void | slotGlobalAssistantOpacityChanged () |
| void | slotGlobalAssistantsColorChanged (const QColor &) |
| void | slotLocalAssistantCheckboxChanged () |
| void | slotSelectedAssistantTypeChanged () |
| void | slotToggleDeleteButton (int index) |
| void | slotToggleDockToolOptionsVisible () |
| void | slotToggleDuplicateButton (int index) |
| void | slotToggleLockButton (int index) |
| void | slotToggleMoveButton (int index) |
| void | slotToggleSnapButton (int index) |
| void | slotUpdateCustomColor () |
| void | updateToolOptionsUI () |
Private Member Functions | |
| void | addAssistant () |
| void | assistantSelected (KisPaintingAssistantSP assistant) |
| void | beginActionImpl (KoPointerEvent *event) |
| void | continueActionImpl (KoPointerEvent *event) |
| void | drawEditorWidget (KisPaintingAssistantSP assistant, QPainter &_gc) |
| void | endActionImpl (KoPointerEvent *event) |
| void | removeAssistant (KisPaintingAssistantSP assistant) |
| bool | snap (KoPointerEvent *event) |
| void | updateEditorWidgetData () |
Definition at line 34 of file kis_assistant_tool.h.
|
private |
| Enumerator | |
|---|---|
| MODE_CREATION | |
| MODE_EDITING | |
| MODE_DRAGGING_NODE | |
| MODE_DRAGGING_TRANSLATING_TWONODES | |
| MODE_DRAGGING_EDITOR_WIDGET | |
Definition at line 37 of file kis_assistant_tool.h.
| KisAssistantTool::KisAssistantTool | ( | KoCanvasBase * | canvas | ) |
Definition at line 53 of file kis_assistant_tool.cc.
References m_canvas.
|
override |
Definition at line 65 of file kis_assistant_tool.cc.
Definition at line 69 of file kis_assistant_tool.cc.
References KisTool::activate(), m_canvas, m_handles, m_handleSize, m_internalMode, m_optionsWidget, MODE_CREATION, and updateToolOptionsUI().
|
private |
Definition at line 791 of file kis_assistant_tool.cc.
References EditAssistantsCommand::ADD, KisPaintingAssistant::cloneAssistantList(), m_canvas, m_handles, m_newAssistant, m_origAssistantList, p1, p2, p3, SIDE, and updateToolOptionsUI().
|
private |
Definition at line 970 of file kis_assistant_tool.cc.
References m_canvas, and updateToolOptionsUI().
|
private |
Definition at line 97 of file kis_assistant_tool.cc.
References EditAssistantsCommand::ADD, addAssistant(), assistantDuplicatingFlag, assistantSelected(), AssistantEditorData::boundingSize, AssistantEditorData::buttonSize, KisPaintingAssistant::cloneAssistantList(), AssistantEditorData::deleteButtonActivated, AssistantEditorData::deleteIconPosition, KisCoordinatesConverter::documentToWidgetTransform(), AssistantEditorData::duplicateButtonActivated, AssistantEditorData::duplicateIconPosition, get(), KisPaintingAssistantFactoryRegistry::instance(), AssistantEditorData::lockButtonActivated, AssistantEditorData::lockedIconPosition, m_assistantDrag, m_canvas, m_currentAdjustment, m_cursorStart, m_dragEnd, m_dragStart, m_handleDrag, m_handleMaxDist, m_handles, m_internalMode, m_newAssistant, m_options, m_origAssistantList, m_radius, m_selectedNode1, m_selectedNode2, m_snapIsRadial, MODE_CREATION, MODE_DRAGGING_EDITOR_WIDGET, MODE_DRAGGING_NODE, MODE_DRAGGING_TRANSLATING_TWONODES, MODE_EDITING, AssistantEditorData::moveButtonActivated, AssistantEditorData::moveIconPosition, KisPaintingAssistant::norm2(), NORMAL, p1, p2, p3, KisTool::PAINT_MODE, removeAssistant(), KisTool::setMode(), snap(), AssistantEditorData::snapButtonActivated, AssistantEditorData::snapIconPosition, KisPaintingAssistantsDecoration::snapToGuide(), KoToolBase::toolId(), toQShared(), updateToolOptionsUI(), and AssistantEditorData::widgetOffset.
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 1965 of file kis_assistant_tool.cc.
References KoToolBase::action(), and beginActionImpl().
|
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 1983 of file kis_assistant_tool.cc.
References beginActionImpl().
|
private |
Definition at line 515 of file kis_assistant_tool.cc.
References distance(), length(), m_assistantDrag, m_canvas, m_currentAdjustment, m_cursorStart, m_dragEnd, m_handleCombine, m_handleDrag, m_handles, m_highlightedNode, m_internalMode, M_PI, m_previousHandlePos, m_selectedNode1, m_selectedNode2, MODE_DRAGGING_EDITOR_WIDGET, KoPointerEvent::modifiers(), KisPaintingAssistant::norm2(), KoPointerEvent::point, snap(), snapToClosestNiceAngle(), KisPaintingAssistantsDecoration::snapToGuide(), and KisPaintingAssistantHandle::uncache().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 1971 of file kis_assistant_tool.cc.
References KoToolBase::action(), and continueActionImpl().
|
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 1988 of file kis_assistant_tool.cc.
References continueActionImpl().
|
overridevirtual |
Reimplement this if your tool actually has an option widget. Sets the option widget to 0 by default.
Reimplemented from KoToolBase.
Definition at line 1686 of file kis_assistant_tool.cc.
References KoID::compareNames(), AssistantEditorData::deleteButtonActivated, AssistantEditorData::duplicateButtonActivated, KoGenericRegistry< T >::get(), KisPaintingAssistantFactoryRegistry::instance(), KisSpinBoxUnitManager::LENGTH, loadAssistants(), KisIconUtils::loadIcon(), AssistantEditorData::lockButtonActivated, m_canvas, m_options, m_optionsWidget, m_unitManager, AssistantEditorData::moveButtonActivated, KisPaintingAssistantFactory::name(), removeAllAssistants(), saveAssistants(), KisSpinBoxUnitManager::setApparentUnitFromSymbol(), KisSpinBoxUnitManager::setUnitDimension(), slotChangeFixedLength(), slotChangeFixedLengthUnit(), slotChangeMinorSubdivisions(), slotChangeSubdivisions(), slotChangeTwoPointDensity(), slotChangeTwoPointUseVertical(), slotChangeVanishingPointAngle(), slotCustomOpacityChanged(), slotEnableFixedLength(), slotGlobalAssistantOpacityChanged(), slotGlobalAssistantsColorChanged(), slotLocalAssistantCheckboxChanged(), slotSelectedAssistantTypeChanged(), slotToggleDeleteButton(), slotToggleDockToolOptionsVisible(), slotToggleDuplicateButton(), slotToggleLockButton(), slotToggleMoveButton(), slotToggleSnapButton(), slotUpdateCustomColor(), AssistantEditorData::snapButtonActivated, KoToolBase::toolId(), and updateToolOptionsUI().
|
overrideslot |
Definition at line 90 of file kis_assistant_tool.cc.
References KisTool::deactivate(), and m_canvas.
|
private |
|
private |
Definition at line 737 of file kis_assistant_tool.cc.
References addAssistant(), assistantDuplicatingFlag, KisPaintingAssistant::cloneAssistantList(), dbgUI, KisCoordinatesConverter::effectiveZoom(), KisTool::HOVER_MODE, m_assistantDrag, m_canvas, m_dragEnd, m_dragStart, m_handleCombine, m_handleDrag, m_handles, m_internalMode, m_origAssistantList, KisPaintingAssistantHandle::mergeWith(), MODE_CREATION, MODE_DRAGGING_EDITOR_WIDGET, MODE_DRAGGING_TRANSLATING_TWONODES, KoPointerEvent::modifiers(), KoPointerEvent::point, KisTool::setMode(), and KisPaintingAssistantHandle::uncache().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 1977 of file kis_assistant_tool.cc.
References KoToolBase::action(), and endActionImpl().
|
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 1993 of file kis_assistant_tool.cc.
References endActionImpl().
|
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 1357 of file kis_assistant_tool.cc.
References m_canvas, and m_newAssistant.
|
privateslot |
Definition at line 1435 of file kis_assistant_tool.cc.
References KisPaintingAssistant::cloneAssistantList(), KoToolBase::factory(), KoGenericRegistry< T >::get(), KisPaintingAssistantFactoryRegistry::instance(), m_canvas, m_handles, m_origAssistantList, NORMAL, KoFileDialog::OpenFile, KisDomUtils::qStringToQColor(), SIDE, and toQShared().
|
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 1314 of file kis_assistant_tool.cc.
References KisSharedPtr< T >::data(), KisTool::HOVER_MODE, m_canvas, m_dragEnd, m_handleHover, m_handleMaxDist, m_internalMode, m_newAssistant, m_selectedNode1, m_selectedNode2, KisTool::mode(), MODE_CREATION, MODE_DRAGGING_TRANSLATING_TWONODES, KisPaintingAssistant::norm2(), KoPointerEvent::point, snap(), and KisPaintingAssistantsDecoration::snapToGuide().
|
overrideprotectedvirtual |
Draws the editor widget controls with move, activate, and delete This also creates a lot of assistant specific stuff for vanishing points and perspective grids Whatever is painted here will be underneath the content painted in the kis_painting_assistant_decoration The kis_painting_assistant_decoration paints the final assistant, so this is more of just editor controls
Implements KoToolBase.
Definition at line 1372 of file kis_assistant_tool.cc.
References KisPaintingAssistantHandle::chiefAssistant(), KoViewConverter::documentToView(), KoColorSpaceRegistry::instance(), KisPaintingAssistant::isLocked(), m_canvas, m_handleCombine, m_handleDrag, m_handleHover, m_handles, m_handleSize, m_newAssistant, and KoColorSpaceRegistry::rgb8().
|
inlinevirtual |
Definition at line 48 of file kis_assistant_tool.h.
|
privateslot |
Definition at line 1419 of file kis_assistant_tool.cc.
References KisPaintingAssistant::cloneAssistantList(), m_canvas, m_handles, m_origAssistantList, and updateToolOptionsUI().
|
private |
Definition at line 956 of file kis_assistant_tool.cc.
References KisPaintingAssistant::cloneAssistantList(), m_canvas, m_handles, m_origAssistantList, EditAssistantsCommand::REMOVE, and updateToolOptionsUI().
|
privateslot |
Definition at line 1594 of file kis_assistant_tool.cc.
References m_canvas, m_handles, KisDomUtils::qColorToQString(), and KoFileDialog::SaveFile.
|
slot |
Definition at line 1240 of file kis_assistant_tool.cc.
References KisSpinBoxUnitManager::getApparentUnitSymbol(), m_canvas, m_options, and m_unitManager.
|
privateslot |
Definition at line 1268 of file kis_assistant_tool.cc.
References KisSpinBoxUnitManager::getApparentUnitSymbol(), m_canvas, m_options, m_unitManager, and KisSpinBoxUnitManager::selectApparentUnitFromIndex().
|
slot |
Definition at line 1187 of file kis_assistant_tool.cc.
|
slot |
Definition at line 1159 of file kis_assistant_tool.cc.
|
slot |
Definition at line 1119 of file kis_assistant_tool.cc.
|
slot |
Definition at line 1139 of file kis_assistant_tool.cc.
|
slot |
Definition at line 1099 of file kis_assistant_tool.cc.
|
privateslot |
Definition at line 1893 of file kis_assistant_tool.cc.
|
slot |
Definition at line 1207 of file kis_assistant_tool.cc.
References length(), m_canvas, m_options, and KisPaintingAssistant::norm2().
|
privateslot |
Definition at line 1863 of file kis_assistant_tool.cc.
|
privateslot |
send the color and opacity information from the UI to the kis_painting_decoration which manages the assistants
Definition at line 1849 of file kis_assistant_tool.cc.
References m_canvas.
|
privateslot |
Definition at line 1909 of file kis_assistant_tool.cc.
References m_options, and KoToolBase::toolId().
|
privateslot |
Definition at line 1915 of file kis_assistant_tool.cc.
References updateToolOptionsUI().
|
privateslot |
Definition at line 1958 of file kis_assistant_tool.cc.
References AssistantEditorData::deleteButtonActivated, m_canvas, and updateEditorWidgetData().
|
privateslot |
Definition at line 1919 of file kis_assistant_tool.cc.
References KisIconUtils::loadIcon(), m_options, and ToggleDockToolOptionsVisible.
|
privateslot |
Definition at line 1952 of file kis_assistant_tool.cc.
References AssistantEditorData::duplicateButtonActivated, m_canvas, and updateEditorWidgetData().
|
privateslot |
Definition at line 1946 of file kis_assistant_tool.cc.
References AssistantEditorData::lockButtonActivated, m_canvas, and updateEditorWidgetData().
|
privateslot |
Definition at line 1934 of file kis_assistant_tool.cc.
References m_canvas, AssistantEditorData::moveButtonActivated, and updateEditorWidgetData().
|
privateslot |
Definition at line 1940 of file kis_assistant_tool.cc.
References m_canvas, AssistantEditorData::snapButtonActivated, and updateEditorWidgetData().
|
privateslot |
Definition at line 1874 of file kis_assistant_tool.cc.
References m_canvas, m_options, and updateToolOptionsUI().
|
private |
Definition at line 1998 of file kis_assistant_tool.cc.
References m_canvas, m_currentAdjustment, m_dragStart, m_handleDrag, m_internalMode, m_newAssistant, m_radius, m_snapIsRadial, MODE_CREATION, KoPointerEvent::modifiers(), p1, p2, KoPointerEvent::point, qFuzzyCompare(), qFuzzyIsNull(), KisPaintingAssistantsDecoration::selectedAssistant(), and snapToClosestNiceAngle().
|
private |
Definition at line 853 of file kis_assistant_tool.cc.
References AssistantEditorData::boundingSize, AssistantEditorData::buttonPadding, AssistantEditorData::buttonSize, AssistantEditorData::deleteButtonActivated, AssistantEditorData::deleteIconPosition, AssistantEditorData::dragDecorationWidth, AssistantEditorData::duplicateButtonActivated, AssistantEditorData::duplicateIconPosition, AssistantEditorData::horizontalButtonLimit, AssistantEditorData::lockButtonActivated, AssistantEditorData::lockedIconPosition, m_canvas, AssistantEditorData::moveButtonActivated, AssistantEditorData::moveIconPosition, AssistantEditorData::snapButtonActivated, AssistantEditorData::snapIconPosition, and AssistantEditorData::widgetActivated.
|
privateslot |
Definition at line 976 of file kis_assistant_tool.cc.
References AssistantEditorData::deleteButtonActivated, AssistantEditorData::duplicateButtonActivated, KisSpinBoxUnitManager::getApparentUnitId(), AssistantEditorData::lockButtonActivated, m_canvas, m_options, m_unitManager, AssistantEditorData::moveButtonActivated, KisSpinBoxUnitManager::setApparentUnitFromSymbol(), and AssistantEditorData::snapButtonActivated.
|
protected |
Definition at line 172 of file kis_assistant_tool.h.
|
protected |
Definition at line 155 of file kis_assistant_tool.h.
|
private |
Definition at line 178 of file kis_assistant_tool.h.
|
protected |
this class manipulates the kis_painting_assistant_decorations a lot, so this class is a helper to get a reference to it and call "updateCanvas" which refreshes the display
Definition at line 146 of file kis_assistant_tool.h.
|
protected |
Definition at line 162 of file kis_assistant_tool.h.
|
protected |
Definition at line 161 of file kis_assistant_tool.h.
|
protected |
Definition at line 169 of file kis_assistant_tool.h.
|
protected |
Definition at line 166 of file kis_assistant_tool.h.
|
protected |
Definition at line 153 of file kis_assistant_tool.h.
|
protected |
Definition at line 152 of file kis_assistant_tool.h.
|
protected |
Definition at line 154 of file kis_assistant_tool.h.
|
protected |
Definition at line 171 of file kis_assistant_tool.h.
|
protected |
the handles are retrieved from the kis_painting_decoration originally They are used here to generate and manipulate editor handles with the tool's primary action
Definition at line 150 of file kis_assistant_tool.h.
|
protected |
Definition at line 170 of file kis_assistant_tool.h.
|
private |
Definition at line 177 of file kis_assistant_tool.h.
|
private |
Definition at line 176 of file kis_assistant_tool.h.
|
protected |
Used while a new assistant is being created. Most assistants need multiple points to exist so this helps manage the visual state while this creation process is going on
Definition at line 159 of file kis_assistant_tool.h.
|
protected |
Definition at line 164 of file kis_assistant_tool.h.
|
protected |
Definition at line 165 of file kis_assistant_tool.h.
|
private |
Definition at line 179 of file kis_assistant_tool.h.
|
protected |
Definition at line 163 of file kis_assistant_tool.h.
|
protected |
Definition at line 167 of file kis_assistant_tool.h.
|
private |
Definition at line 177 of file kis_assistant_tool.h.
|
private |
Definition at line 177 of file kis_assistant_tool.h.
|
protected |
Definition at line 151 of file kis_assistant_tool.h.
|
protected |
Definition at line 168 of file kis_assistant_tool.h.
|
private |
Definition at line 180 of file kis_assistant_tool.h.
|
private |
Definition at line 89 of file kis_assistant_tool.h.