|
Krita Source Code Documentation
|
#include <KisToolEncloseAndFill.h>
Inheritance diagram for KisToolEncloseAndFill:Public Slots | |
| void | activate (const QSet< KoShape * > &shapes) override |
| void | deactivate () override |
Public Slots inherited from KisDynamicDelegatedTool< KisToolShape > | |
| void | activate (const QSet< KoShape * > &shapes) override |
| void | canvasResourceChanged (int key, const QVariant &res) override |
| void | deactivate () override |
| void | documentResourceChanged (int key, const QVariant &res) override |
| void | repaintDecorations () override |
| void | requestRedoDuringStroke () override |
| void | requestStrokeCancellation () override |
| void | requestStrokeEnd () override |
| void | requestUndoDuringStroke () override |
| void | updateSettingsViews () override |
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 | activate (const QSet< KoShape * > &shapes) |
| virtual void | deactivate () |
| virtual void | documentResourceChanged (int key, const QVariant &res) |
| virtual void | repaintDecorations () |
| virtual void | requestRedoDuringStroke () |
| virtual void | requestStrokeCancellation () |
| virtual void | requestStrokeEnd () |
| virtual void | requestUndoDuringStroke () |
| void | setStatusText (const QString &statusText) |
| void | updateOptionsWidgetIcons () |
Public Member Functions | |
| void | activateAlternateAction (AlternateAction action) override |
| void | beginAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| void | beginAlternateDoubleClickAction (KoPointerEvent *event, AlternateAction action) override |
| void | beginPrimaryAction (KoPointerEvent *event) override |
| void | continueAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| QWidget * | createOptionWidget () override |
| void | deactivateAlternateAction (AlternateAction action) override |
| void | endAlternateAction (KoPointerEvent *event, AlternateAction action) override |
| int | flags () const override |
| KisToolEncloseAndFill (KoCanvasBase *canvas) | |
| ~KisToolEncloseAndFill () override | |
Public Member Functions inherited from KisDynamicDelegatedTool< KisToolShape > | |
| void | activateAlternateAction (typename BaseClass::AlternateAction action) override |
| void | activatePrimaryAction () override |
| bool | alternateActionSupportsHiResEvents (typename BaseClass::AlternateAction action) const override |
| void | beginAlternateAction (KoPointerEvent *event, typename BaseClass::AlternateAction action) override |
| void | beginAlternateDoubleClickAction (KoPointerEvent *event, typename BaseClass::AlternateAction action) override |
| void | beginPrimaryDoubleClickAction (KoPointerEvent *event) override |
| void | continueAlternateAction (KoPointerEvent *event, typename BaseClass::AlternateAction action) override |
| void | continuePrimaryAction (KoPointerEvent *event) override |
| void | deactivateAlternateAction (typename BaseClass::AlternateAction action) override |
| void | deactivatePrimaryAction () override |
| QRectF | decorationsRect () const override |
| DelegateType * | delegateTool () const |
| void | endAlternateAction (KoPointerEvent *event, typename BaseClass::AlternateAction action) override |
| void | endPrimaryAction (KoPointerEvent *event) override |
| void | explicitUserStrokeEndRequest () override |
| void | keyPressEvent (QKeyEvent *event) override |
| void | keyReleaseEvent (QKeyEvent *event) override |
| KisDynamicDelegatedTool ()=delete | |
| KisDynamicDelegatedTool (const KisDynamicDelegatedTool &)=delete | |
| KisDynamicDelegatedTool (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 |
| void | newActivationWithExternalSource (KisPaintDeviceSP externalSource) override |
| KisDynamicDelegatedTool & | operator= (const KisDynamicDelegatedTool &)=delete |
| void | paint (QPainter &painter, const KoViewConverter &converter) override |
| QMenu * | popupActionsMenu () override |
| KisPopupWidgetInterface * | popupWidget () override |
| bool | primaryActionSupportsHiResEvents () const override |
| void | requestUpdateOutline (const QPointF &outlineDocPoint, const KoPointerEvent *event) override |
| void | setDelegateTool (DelegateType *newDelegateTool) |
| ~KisDynamicDelegatedTool () 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 |
| void | deleteSelection () override |
| bool | isActive () const |
| KisTool (KoCanvasBase *canvas, const QCursor &cursor) | |
| void | mouseDoubleClickEvent (KoPointerEvent *event) override |
| void | mouseTripleClickEvent (KoPointerEvent *event) override |
| KisTool::NodePaintAbility | nodePaintAbility () |
| 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 () |
| 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) |
| 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 |
| QList< QPointer< QWidget > > | optionWidgets () |
| virtual bool | paste () |
| virtual bool | selectAll () |
| selectAll select all data the tool can select. | |
| virtual KoToolSelection * | selection () |
| Q_INVOKABLE QString | toolId () const |
| ~KoToolBase () override | |
Static Private Member Functions | |
| static constexpr EnclosingMethod | defaultEnclosingMethod () |
| static constexpr Reference | defaultReference () |
| static constexpr RegionSelectionMethod | defaultRegionSelectionMethod () |
Additional Inherited Members | |
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 Slots inherited from KisDynamicDelegatedTool< KisToolShape > | |
| void | resetCursorStyle () override |
Protected Slots inherited from KisTool | |
| virtual void | resetCursorStyle () |
Protected Member Functions inherited from KisDynamicDelegatedTool< KisToolShape > | |
| QCursor | cursor () const |
| bool | listeningToModifiers () override |
| void | listenToModifiers (bool listen) override |
| BaseClass::ToolMode | mode () const override |
| void | setCursor (const QCursor &cursor) |
| void | setMode (typename BaseClass::ToolMode mode) override |
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 QString | quickHelp () const |
| 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 |
| 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 40 of file KisToolEncloseAndFill.h.
| using KisToolEncloseAndFill::RegionSelectionMethod = KisEncloseAndFillPainter::RegionSelectionMethod |
Definition at line 68 of file KisToolEncloseAndFill.h.
| Enumerator | |
|---|---|
| FillWithForegroundColor | |
| FillWithBackgroundColor | |
| FillWithPattern | |
Definition at line 54 of file KisToolEncloseAndFill.h.
| Enumerator | |
|---|---|
| CurrentLayer | |
| AllLayers | |
| ColorLabeledLayers | |
Definition at line 61 of file KisToolEncloseAndFill.h.
| KisToolEncloseAndFill::KisToolEncloseAndFill | ( | KoCanvasBase * | canvas | ) |
Definition at line 70 of file KisToolEncloseAndFill.cpp.
|
override |
Definition at line 76 of file KisToolEncloseAndFill.cpp.
Definition at line 85 of file KisToolEncloseAndFill.cpp.
References KisDynamicDelegatedTool< BaseClass >::activate(), Private::canvas, KisViewManager::canvasResourceProvider(), connect(), KisTool::currentNode(), m_configGroup, slot_currentNodeChanged(), KoToolBase::toolId(), and KisCanvas2::viewManager().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 193 of file KisToolEncloseAndFill.cpp.
References KoToolBase::action(), KisDynamicDelegatedTool< BaseClass >::activateAlternateAction(), KisDynamicDelegatedTool< KisToolShape >::delegateTool(), and subtoolHasUserInteractionRunning().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 212 of file KisToolEncloseAndFill.cpp.
References KoToolBase::action(), KisDynamicDelegatedTool< BaseClass >::beginAlternateAction(), KisDynamicDelegatedTool< KisToolShape >::delegateTool(), m_alternateActionStarted, and subtoolHasUserInteractionRunning().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 253 of file KisToolEncloseAndFill.cpp.
References KoToolBase::action(), KisDynamicDelegatedTool< BaseClass >::beginAlternateDoubleClickAction(), KisDynamicDelegatedTool< KisToolShape >::delegateTool(), and subtoolHasUserInteractionRunning().
|
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 KisDynamicDelegatedTool< KisToolShape >.
Definition at line 171 of file KisToolEncloseAndFill.cpp.
References KisDynamicDelegatedTool< BaseClass >::beginPrimaryAction(), Private::canvas, KisTool::currentNode(), KisFloatingMessage::Medium, KisTool::nodeEditable(), KisTool::nodePaintAbility(), KisTool::PAINT, and KisCanvas2::viewManager().
|
private |
Definition at line 888 of file KisToolEncloseAndFill.cpp.
|
private |
Definition at line 1041 of file KisToolEncloseAndFill.cpp.
References AllLayers, ColorLabeledLayers, and CurrentLayer.
|
private |
Definition at line 974 of file KisToolEncloseAndFill.cpp.
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 224 of file KisToolEncloseAndFill.cpp.
References KoToolBase::action(), KisDynamicDelegatedTool< BaseClass >::continueAlternateAction(), KisDynamicDelegatedTool< KisToolShape >::delegateTool(), m_alternateActionStarted, and subtoolHasUserInteractionRunning().
|
overridevirtual |
Reimplement this if your tool actually has an option widget. Sets the option widget to 0 by default.
Reimplemented from KisDynamicDelegatedTool< KisToolShape >.
Definition at line 382 of file KisToolEncloseAndFill.cpp.
References KisOptionButtonStrip::addButton(), AllLayers, KisOptionCollectionWidget::appendWidget(), KisOptionCollectionWidgetWithHeader::appendWidget(), ColorLabeledLayers, connect(), KisTool::currentNode(), FillWithBackgroundColor, FillWithPattern, KisAngleSelector::FlipOptionsMode_ContextMenu, KisAngleGauge::IncreasingDirection_Clockwise, Lasso, loadConfiguration(), KisIconUtils::loadIcon(), m_angleSelectorPatternRotation, m_antiAlias, m_buttonEnclosingMethodBrush, m_buttonEnclosingMethodEllipse, m_buttonEnclosingMethodLasso, m_buttonEnclosingMethodPath, m_buttonEnclosingMethodRectangle, m_buttonFillWithBG, m_buttonFillWithFG, m_buttonFillWithPattern, m_buttonReferenceAll, m_buttonReferenceCurrent, m_buttonReferenceLabeled, m_buttonRegionSelectionColor, m_buttonStopGrowingAtDarkestPixel, m_checkBoxAntiAlias, m_checkBoxCustomBlendingOptions, m_checkBoxRegionSelectionIncludeContourRegions, m_checkBoxRegionSelectionInvert, m_checkBoxSelectionAsBoundary, m_checkBoxUseActiveLayer, m_closeGap, m_comboBoxCustomCompositeOp, m_comboBoxRegionSelectionMethod, m_customCompositeOp, m_customOpacity, m_enclosingMethod, m_expand, m_feather, m_fillOpacitySpread, m_fillThreshold, m_fillType, m_optionWidget, m_patternRotation, m_patternScale, m_reference, m_regionSelectionColor, m_regionSelectionIncludeContourRegions, m_regionSelectionInvert, m_regionSelectionMethod, m_selectedColorLabels, m_sliderCloseGap, m_sliderCustomOpacity, m_sliderExpand, m_sliderFeather, m_sliderFillOpacitySpread, m_sliderFillThreshold, m_sliderPatternScale, m_stopGrowingAtDarkestPixel, m_useActiveLayer, m_useCustomBlendingOptions, m_useSelectionAsBoundary, m_widgetLabels, Rectangle, regionSelectionMethodToUserString(), KisCompositeOpComboBox::selectCompositeOp(), KoToolBase::selectionChanged(), KisAngleSelector::setAngle(), KisColorLabelSelectorWidget::setButtonSize(), KisColorLabelSelectorWidget::setButtonWrapEnabled(), KisColorButton::setColor(), KisColorLabelSelectorWidget::setExclusive(), KisAngleSelector::setFlipOptionsMode(), KisAngleSelector::setIncreasingDirection(), KisColorLabelSelectorWidget::setMouseDragEnabled(), KisOptionCollectionWidget::setOrientation(), KisOptionCollectionWidgetWithHeader::setPrimaryWidget(), KisSliderSpinBox::setRange(), KisDoubleSliderSpinBox::setRange(), KisColorLabelSelectorWidget::setSelection(), KisOptionCollectionWidget::setSeparatorsVisible(), KisDoubleSliderSpinBox::setSoftMaximum(), KisSliderSpinBox::setSoftRange(), KisSpinBoxI18nHelper::setText(), KisSliderSpinBox::setValue(), KisDoubleSliderSpinBox::setValue(), KisOptionCollectionWidget::setWidgetsMargin(), KisOptionCollectionWidgetWithHeader::setWidgetVisible(), slot_angleSelectorPatternRotation_angleChanged(), slot_buttonRegionSelectionColor_changed(), slot_buttonReset_clicked(), slot_buttonStopGrowingAtDarkestPixel_toggled(), slot_checkBoxAntiAlias_toggled(), slot_checkBoxRegionSelectionIncludeContourRegions_toggled(), slot_checkBoxRegionSelectionInvert_toggled(), slot_checkBoxSelectionAsBoundary_toggled(), slot_checkBoxUseActiveLayer_toggled(), slot_checkBoxUseCustomBlendingOptions_toggled(), slot_colorSpaceChanged(), slot_comboBoxCustomCompositeOp_currentIndexChanged(), slot_comboBoxRegionSelectionMethod_currentIndexChanged(), slot_optionButtonStripEnclosingMethod_buttonToggled(), slot_optionButtonStripFillWith_buttonToggled(), slot_optionButtonStripReference_buttonToggled(), slot_sliderCloseGap_valueChanged(), slot_sliderCustomOpacity_valueChanged(), slot_sliderExpand_valueChanged(), slot_sliderFeather_valueChanged(), slot_sliderFillOpacitySpread_valueChanged(), slot_sliderFillThreshold_valueChanged(), slot_sliderPatternScale_valueChanged(), and slot_widgetLabels_selectionChanged().
|
overrideslot |
Definition at line 100 of file KisToolEncloseAndFill.cpp.
References Private::canvas, KisViewManager::canvasResourceProvider(), KisDynamicDelegatedTool< BaseClass >::deactivate(), m_referenceNodeList, m_referencePaintDevice, slot_currentNodeChanged(), and KisCanvas2::viewManager().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 204 of file KisToolEncloseAndFill.cpp.
References KoToolBase::action(), KisDynamicDelegatedTool< BaseClass >::deactivateAlternateAction(), and subtoolHasUserInteractionRunning().
|
inlinestaticconstexprprivate |
|
inlinestaticconstexprprivate |
|
inlinestaticconstexprprivate |
Definition at line 179 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 877 of file KisToolEncloseAndFill.cpp.
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 238 of file KisToolEncloseAndFill.cpp.
References KoToolBase::action(), KisDynamicDelegatedTool< KisToolShape >::delegateTool(), KisDynamicDelegatedTool< BaseClass >::endAlternateAction(), m_alternateActionStarted, and subtoolHasUserInteractionRunning().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 377 of file KisToolEncloseAndFill.cpp.
References KisTool::FLAG_USES_CUSTOM_PRESET, and KisTool::FLAG_USES_CUSTOM_SIZE.
|
private |
Definition at line 801 of file KisToolEncloseAndFill.cpp.
References AllLayers, ColorLabeledLayers, COMPOSITE_OVER, CurrentLayer, FillWithBackgroundColor, FillWithForegroundColor, FillWithPattern, KoCompositeOpRegistry::getKoID(), KoID::id(), KoCompositeOpRegistry::instance(), loadEnclosingMethodFromConfig(), loadRegionSelectionColorFromConfig(), loadRegionSelectionMethodFromConfig(), m_antiAlias, m_closeGap, m_configGroup, m_customCompositeOp, m_customOpacity, m_enclosingMethod, m_expand, m_feather, m_fillOpacitySpread, m_fillThreshold, m_fillType, m_patternRotation, m_patternScale, m_reference, m_regionSelectionColor, m_regionSelectionIncludeContourRegions, m_regionSelectionInvert, m_regionSelectionMethod, m_selectedColorLabels, m_stopGrowingAtDarkestPixel, m_useActiveLayer, m_useCustomBlendingOptions, m_useSelectionAsBoundary, and setupEnclosingSubtool().
|
private |
Definition at line 867 of file KisToolEncloseAndFill.cpp.
References configStringToEnclosingMethod(), defaultEnclosingMethod(), enclosingMethodToConfigString(), and m_configGroup.
|
private |
Definition at line 1015 of file KisToolEncloseAndFill.cpp.
References AllLayers, configStringToReference(), CurrentLayer, defaultReference(), m_configGroup, and referenceToConfigString().
|
private |
Definition at line 998 of file KisToolEncloseAndFill.cpp.
References KoColor::fromXML(), KoID::id(), Integer16BitsColorDepthID, and m_configGroup.
|
private |
Definition at line 938 of file KisToolEncloseAndFill.cpp.
References configStringToRegionSelectionMethod(), defaultRegionSelectionMethod(), m_configGroup, and regionSelectionMethodToConfigString().
|
private |
Definition at line 1031 of file KisToolEncloseAndFill.cpp.
References AllLayers, and ColorLabeledLayers.
|
private |
|
private |
Definition at line 948 of file KisToolEncloseAndFill.cpp.
|
private |
Definition at line 902 of file KisToolEncloseAndFill.cpp.
|
overrideprivateslot |
Definition at line 79 of file KisToolEncloseAndFill.cpp.
References KisTool::overrideCursorIfNotEditable(), and KisDynamicDelegatedTool< BaseClass >::resetCursorStyle().
|
private |
Definition at line 872 of file KisToolEncloseAndFill.cpp.
References enclosingMethodToConfigString(), and m_configGroup.
Definition at line 1026 of file KisToolEncloseAndFill.cpp.
References m_configGroup, and referenceToConfigString().
|
private |
Definition at line 943 of file KisToolEncloseAndFill.cpp.
References m_configGroup, and regionSelectionMethodToConfigString().
|
private |
Definition at line 116 of file KisToolEncloseAndFill.cpp.
References Brush, Private::canvas, connect(), KisTool::cursor, KisDynamicDelegatedTool< KisToolShape >::delegateTool(), KoToolBase::isActivated(), Lasso, m_enclosingMethod, KisDynamicDelegatedTool< KisToolShape >::setCursor(), KisDynamicDelegatedTool< KisToolShape >::setDelegateTool(), and slot_delegateTool_enclosingMaskProduced().
|
privateslot |
Definition at line 1163 of file KisToolEncloseAndFill.cpp.
References m_configGroup, m_patternRotation, and value().
|
privateslot |
Definition at line 1105 of file KisToolEncloseAndFill.cpp.
References m_configGroup, m_regionSelectionColor, and KoColor::toXML().
|
privateslot |
Definition at line 1311 of file KisToolEncloseAndFill.cpp.
References COMPOSITE_OVER, m_angleSelectorPatternRotation, m_buttonEnclosingMethodLasso, m_buttonFillWithFG, m_buttonReferenceCurrent, m_buttonRegionSelectionColor, m_buttonStopGrowingAtDarkestPixel, m_checkBoxAntiAlias, m_checkBoxCustomBlendingOptions, m_checkBoxRegionSelectionIncludeContourRegions, m_checkBoxRegionSelectionInvert, m_checkBoxSelectionAsBoundary, m_comboBoxCustomCompositeOp, m_comboBoxRegionSelectionMethod, m_sliderCloseGap, m_sliderCustomOpacity, m_sliderExpand, m_sliderFeather, m_sliderFillOpacitySpread, m_sliderFillThreshold, m_sliderPatternScale, m_widgetLabels, KisCompositeOpComboBox::selectCompositeOp(), KisAngleSelector::setAngle(), KisColorButton::setColor(), KisColorLabelSelectorWidget::setSelection(), KisSliderSpinBox::setValue(), and KisDoubleSliderSpinBox::setValue().
|
privateslot |
Definition at line 1256 of file KisToolEncloseAndFill.cpp.
References m_configGroup, and m_stopGrowingAtDarkestPixel.
|
privateslot |
Definition at line 1238 of file KisToolEncloseAndFill.cpp.
References m_antiAlias, and m_configGroup.
|
privateslot |
Definition at line 1123 of file KisToolEncloseAndFill.cpp.
References m_configGroup, and m_regionSelectionIncludeContourRegions.
|
privateslot |
Definition at line 1114 of file KisToolEncloseAndFill.cpp.
References m_configGroup, and m_regionSelectionInvert.
|
privateslot |
Definition at line 1229 of file KisToolEncloseAndFill.cpp.
References m_configGroup, and m_useSelectionAsBoundary.
|
privateslot |
Definition at line 1371 of file KisToolEncloseAndFill.cpp.
References m_configGroup, and m_useActiveLayer.
|
privateslot |
Definition at line 1172 of file KisToolEncloseAndFill.cpp.
References m_configGroup, m_optionWidget, m_useCustomBlendingOptions, KisOptionCollectionWidgetWithHeader::setWidgetVisible(), and KisOptionCollectionWidget::widgetAs().
|
privateslot |
Definition at line 1356 of file KisToolEncloseAndFill.cpp.
References KisPaintDevice::compositionSourceColorSpace(), KisTool::currentNode(), m_comboBoxCustomCompositeOp, KisBaseNode::paintDevice(), and KisCompositeOpComboBox::validate().
|
privateslot |
Definition at line 1191 of file KisToolEncloseAndFill.cpp.
References KoID::id(), m_comboBoxCustomCompositeOp, m_configGroup, m_customCompositeOp, and KisCompositeOpComboBox::selectedCompositeOp().
|
privateslot |
Definition at line 1075 of file KisToolEncloseAndFill.cpp.
References m_comboBoxRegionSelectionMethod, m_optionWidget, m_regionSelectionMethod, saveRegionSelectionMethodToConfig(), KisOptionCollectionWidgetWithHeader::setWidgetVisible(), and KisOptionCollectionWidget::widgetAs().
Definition at line 1338 of file KisToolEncloseAndFill.cpp.
References KisPaintDevice::colorSpace(), connect(), KisSharedPtr< T >::data(), m_previousNode, KisBaseNode::paintDevice(), and slot_colorSpaceChanged().
|
privateslot |
Definition at line 264 of file KisToolEncloseAndFill.cpp.
References KisResourcesSnapshot::activeSelection(), KisImage::addJob(), AllLayers, KisImage::animationInterface(), Private::canvas, ColorLabeledLayers, KisMergeLabeledLayersCommand::createRefPaintDevice(), KisTool::currentImage(), CurrentLayer, KisTool::currentNode(), KisImageAnimationInterface::currentTime(), KisImage::endStroke(), KisStrokeJobData::EXCLUSIVE, FillWithBackgroundColor, FillWithPattern, KisMergeLabeledLayersCommand::GroupSelectionPolicy_SelectIfColorLabeled, KisTool::image(), KIS_SAFE_ASSERT_RECOVER_RETURN, kundo2_i18n(), m_antiAlias, m_closeGap, m_customCompositeOp, m_customOpacity, m_dirtyRect, m_expand, m_feather, m_fillOpacitySpread, m_fillStrokeId, m_fillThreshold, m_fillType, m_patternRotation, m_patternScale, m_previousTime, m_reference, m_referenceNodeList, m_referencePaintDevice, m_regionSelectionColor, m_regionSelectionIncludeContourRegions, m_regionSelectionInvert, m_regionSelectionMethod, m_selectedColorLabels, m_stopGrowingAtDarkestPixel, m_useActiveLayer, m_useCustomBlendingOptions, m_useSelectionAsBoundary, KisBaseNode::paintDevice(), KisImage::projection(), KisStrokeJobData::SEQUENTIAL, KisResourcesSnapshot::setFillTransform(), KisStrokeStrategyUndoCommandBased::setSupportsWrapAroundMode(), and KisImage::startStroke().
|
privateslot |
Definition at line 1051 of file KisToolEncloseAndFill.cpp.
References Brush, button(), Ellipse, Lasso, m_buttonEnclosingMethodEllipse, m_buttonEnclosingMethodLasso, m_buttonEnclosingMethodPath, m_buttonEnclosingMethodRectangle, m_enclosingMethod, Path, Rectangle, saveEnclosingMethodToConfig(), and setupEnclosingSubtool().
|
privateslot |
Definition at line 1132 of file KisToolEncloseAndFill.cpp.
References button(), FillWithBackgroundColor, FillWithForegroundColor, FillWithPattern, m_buttonFillWithBG, m_buttonFillWithFG, m_buttonFillWithPattern, m_configGroup, m_fillType, m_optionWidget, KisOptionCollectionWidgetWithHeader::setWidgetVisible(), and KisOptionCollectionWidget::widgetAs().
|
privateslot |
Definition at line 1274 of file KisToolEncloseAndFill.cpp.
References AllLayers, button(), ColorLabeledLayers, CurrentLayer, m_buttonReferenceAll, m_buttonReferenceCurrent, m_buttonReferenceLabeled, m_configGroup, m_optionWidget, m_reference, KisOptionCollectionWidgetWithHeader::setWidgetVisible(), and KisOptionCollectionWidget::widgetAs().
|
privateslot |
Definition at line 1220 of file KisToolEncloseAndFill.cpp.
References m_closeGap, m_configGroup, and value().
|
privateslot |
Definition at line 1182 of file KisToolEncloseAndFill.cpp.
References m_configGroup, m_customOpacity, and value().
|
privateslot |
Definition at line 1247 of file KisToolEncloseAndFill.cpp.
References m_configGroup, m_expand, and value().
|
privateslot |
Definition at line 1265 of file KisToolEncloseAndFill.cpp.
References m_configGroup, m_feather, and value().
|
privateslot |
Definition at line 1211 of file KisToolEncloseAndFill.cpp.
References m_configGroup, m_fillOpacitySpread, and value().
|
privateslot |
Definition at line 1202 of file KisToolEncloseAndFill.cpp.
References m_configGroup, m_fillThreshold, and value().
|
privateslot |
Definition at line 1154 of file KisToolEncloseAndFill.cpp.
References m_configGroup, m_patternScale, and value().
|
privateslot |
Definition at line 1294 of file KisToolEncloseAndFill.cpp.
References m_configGroup, m_selectedColorLabels, m_widgetLabels, and KisColorLabelSelectorWidget::selection().
|
private |
Definition at line 151 of file KisToolEncloseAndFill.cpp.
References Brush, KisDynamicDelegatedTool< KisToolShape >::delegateTool(), Lasso, m_enclosingMethod, and Rectangle.
|
inlineoverrideprivatevirtual |
Return if dragging (moving with the mouse down) to the edge of a canvas should scroll the canvas (default is true).
Reimplemented from KisDynamicDelegatedTool< KisToolShape >.
Definition at line 166 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 164 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 141 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 108 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 130 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 127 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 129 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 128 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 126 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 138 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 137 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 139 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 157 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 156 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 158 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 133 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 153 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 151 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 142 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 135 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 134 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 149 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 160 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 105 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 144 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 132 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 162 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 101 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 100 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 121 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 89 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 109 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 111 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 104 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 122 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 103 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 96 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 124 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 98 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 97 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 120 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 119 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 114 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 118 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 117 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 92 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 94 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 93 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 91 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 115 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 148 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 143 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 152 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 154 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 147 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 146 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 140 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 110 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 112 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 99 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 106 of file KisToolEncloseAndFill.h.
|
private |
Definition at line 159 of file KisToolEncloseAndFill.h.