|
Krita Source Code Documentation
|
#include <kis_tool_fill.h>
Inheritance diagram for KisToolFill:Public Slots | |
| void | activate (const QSet< KoShape * > &shapes) override |
| void | deactivate () override |
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 | beginAlternateAction (KoPointerEvent *event, 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 |
| KisToolFill (KoCanvasBase *canvas) | |
| ~KisToolFill () override | |
Public Member Functions inherited from KisToolPaint | |
| int | flags () const override |
| KisToolPaint (KoCanvasBase *canvas, const QCursor &cursor) | |
| void | mouseMoveEvent (KoPointerEvent *event) override |
| void | mousePressEvent (KoPointerEvent *event) override |
| void | mouseReleaseEvent (KoPointerEvent *event) override |
| KisPopupWidgetInterface * | popupWidget () override |
| ~KisToolPaint () override | |
Public Member Functions inherited from KisTool | |
| virtual bool | alternateActionSupportsHiResEvents (AlternateAction action) const |
| virtual void | beginAlternateDoubleClickAction (KoPointerEvent *event, AlternateAction action) |
| virtual void | beginPrimaryDoubleClickAction (KoPointerEvent *event) |
| void | deleteSelection () override |
| bool | isActive () const |
| KisTool (KoCanvasBase *canvas, const QCursor &cursor) | |
| void | mouseDoubleClickEvent (KoPointerEvent *event) override |
| void | mouseTripleClickEvent (KoPointerEvent *event) override |
| virtual void | newActivationWithExternalSource (KisPaintDeviceSP externalSource) |
| newActivationWithExternalSource Makes sure that the tool is active and starts a new stroke, which will be able to access the pixels from the specified external source. | |
| KisTool::NodePaintAbility | nodePaintAbility () |
| 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 Enter key or any equivalent. This callback comes before requestStrokeEnd(), which comes from a different source. | |
| KoToolFactoryBase * | factory () const |
| virtual void | focusInEvent (QFocusEvent *event) |
| virtual void | focusOutEvent (QFocusEvent *event) |
| virtual bool | hasSelection () |
| virtual void | inputMethodEvent (QInputMethodEvent *event) |
| virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const |
| bool | isInTextMode () const |
| bool | isOpacityPresetMode () const |
| virtual void | keyPressEvent (QKeyEvent *event) |
| virtual void | keyReleaseEvent (QKeyEvent *event) |
| KoToolBase (KoCanvasBase *canvas) | |
| bool | maskSyntheticEvents () const |
| QList< QPointer< QWidget > > | optionWidgets () |
| virtual bool | paste () |
| virtual QMenu * | popupActionsMenu () |
| virtual bool | selectAll () |
| selectAll select all data the tool can select. | |
| virtual KoToolSelection * | selection () |
| Q_INVOKABLE QString | toolId () const |
| ~KoToolBase () override | |
Protected Slots | |
| void | resetCursorStyle () override |
| void | slotUpdateFill () |
Protected Slots inherited from KisTool | |
| virtual void | resetCursorStyle () |
Protected Member Functions | |
| bool | wantsAutoScroll () const override |
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 |
| QWidget * | createOptionWidget () 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 |
| virtual void | requestUpdateOutline (const QPointF &outlineDocPoint, const KoPointerEvent *event) |
| void | setMode (ToolMode mode) override |
| void | setOutlineEnabled (bool enabled) |
| void | setOutlineVisible (bool visible) |
| void | setSupportOutline (bool supportOutline) |
| void | showControl (QWidget *control, bool value) |
Protected Member Functions inherited from KisTool | |
| bool | blockUntilOperationsFinished () |
| void | blockUntilOperationsFinishedForced () |
| QPointF | convertDocumentToWidget (const QPointF &pt) |
| QPoint | convertToImagePixelCoordFloored (KoPointerEvent *e) |
| QPointF | convertToPixelCoord (const QPointF &pt) |
| QPointF | convertToPixelCoord (KoPointerEvent *e) |
| QPointF | convertToPixelCoordAndAlignOnWidget (const QPointF &pt) |
| QPointF | convertToPixelCoordAndSnap (const QPointF &pt, const QPointF &offset=QPointF()) |
| QPointF | convertToPixelCoordAndSnap (KoPointerEvent *e, const QPointF &offset=QPointF(), bool useModifiers=true) |
| QRectF | convertToPt (const QRectF &rect) |
| qreal | convertToPt (qreal value) |
| KoColor | currentBgColor () |
| KoColor | currentFgColor () |
| KisFilterConfigurationSP | currentGenerator () |
| KoAbstractGradientSP | currentGradient () |
| KisImageWSP | currentImage () |
| KisNodeSP | currentNode () const |
| KisPaintOpPresetSP | currentPaintOpPreset () |
| KoPatternSP | currentPattern () |
| QCursor | cursor () const |
| KisImageWSP | image () const |
| virtual bool | listeningToModifiers () |
| virtual void | listenToModifiers (bool listen) |
| virtual ToolMode | mode () const |
| bool | nodeEditable () |
| Checks checks if the current node is editable. | |
| bool | overrideCursorIfNotEditable () |
| Override the cursor appropriately if current node is not editable. | |
| void | paintToolOutline (QPainter *painter, const KisOptimizedBrushOutline &path) |
| KisOptimizedBrushOutline | pixelToView (const KisOptimizedBrushOutline &path) const |
| QPainterPath | pixelToView (const QPainterPath &pixelPath) const |
| Convert a pixel path into a view path. | |
| QPointF | pixelToView (const QPoint &pixelCoord) const |
| QPointF | pixelToView (const QPointF &pixelCoord) const |
| Convert a floating point pixel coordinate into a view coordinate. | |
| QPolygonF | pixelToView (const QPolygonF &pixelPolygon) const |
| Convert a pixel polygon into a view path. | |
| QRectF | pixelToView (const QRectF &pixelRect) const |
| Convert a pixel rectangle into a view rectangle. | |
| KisNodeList | selectedNodes () const |
| bool | selectionEditable () |
| Checks checks if the selection is editable, only applies to local selection as global selection is always editable. | |
| void | setCursor (const QCursor &cursor) |
| void | updateCanvasPixelRect (const QRectF &pixelRect) |
| Update the canvas for the given rectangle in image pixel coordinates. | |
| void | updateCanvasViewRect (const QRectF &viewRect) |
| Update the canvas for the given rectangle in view coordinates. | |
| QPointF | viewToPixel (const QPointF &viewCoord) const |
| QPointF | widgetCenterInWidgetPixels () |
Protected Member Functions inherited from KoToolBase | |
| virtual QList< QPointer< QWidget > > | createOptionWidgets () |
| int | grabSensitivity () const |
| Convenience function to get the current grab sensitivity. | |
| qreal | handleDocRadius () const |
| QRectF | handleGrabRect (const QPointF &position) const |
| QRectF | handlePaintRect (const QPointF &position) const |
| int | handleRadius () const |
| Convenience function to get the current handle radius. | |
| bool | isActivated () const |
| KoToolBase (KoToolBasePrivate &dd) | |
| KoPointerEvent * | lastDeliveredPointerEvent () const |
| void | setAbstractResource (KoAbstractCanvasResourceInterfaceSP abstractResource) |
| void | setConverter (KoDerivedResourceConverterSP converter) |
| void | setIsOpacityPresetMode (bool value) |
| void | setMaskSyntheticEvents (bool value) |
| void | setTextMode (bool value) |
| QHash< int, KoAbstractCanvasResourceInterfaceSP > | toolAbstractResources () |
| QHash< int, KoDerivedResourceConverterSP > | toolConverters () |
| void | useCursor (const QCursor &cursor) |
Private Member Functions | |
| void | addFillingOperation (const QPoint &seedPoint) |
| void | addFillingOperation (const QVector< QPoint > &seedPoints) |
| void | addUpdateOperation () |
| void | beginFilling (const QPoint &seedPoint) |
| void | endFilling () |
| void | loadConfiguration () |
| KoColor | loadContiguousFillBoundaryColorFromConfig () |
Static Private Attributes | |
| static constexpr int | minimumDragDistance {4} |
| static constexpr int | minimumDragDistanceSquared {minimumDragDistance * minimumDragDistance} |
Definition at line 40 of file kis_tool_fill.h.
| Enumerator | |
|---|---|
| ContiguousFillMode_FloodFill | |
| ContiguousFillMode_BoundaryFill | |
Definition at line 59 of file kis_tool_fill.h.
| Enumerator | |
|---|---|
| ContinuousFillMode_DoNotUse | |
| ContinuousFillMode_FillAnyRegion | |
| ContinuousFillMode_FillSimilarRegions | |
Definition at line 72 of file kis_tool_fill.h.
| Enumerator | |
|---|---|
| FillMode_FillSelection | |
| FillMode_FillContiguousRegion | |
| FillMode_FillSimilarRegions | |
Definition at line 45 of file kis_tool_fill.h.
| Enumerator | |
|---|---|
| FillType_FillWithForegroundColor | |
| FillType_FillWithBackgroundColor | |
| FillType_FillWithPattern | |
Definition at line 52 of file kis_tool_fill.h.
| Enumerator | |
|---|---|
| Reference_CurrentLayer | |
| Reference_AllLayers | |
| Reference_ColorLabeledLayers | |
Definition at line 65 of file kis_tool_fill.h.
| KisToolFill::KisToolFill | ( | KoCanvasBase * | canvas | ) |
Definition at line 67 of file kis_tool_fill.cc.
References Private::canvas, KisViewManager::canvasResourceProvider(), connect(), m_compressorFillUpdate, resetCursorStyle(), slotUpdateFill(), and KisCanvas2::viewManager().
|
override |
Definition at line 85 of file kis_tool_fill.cc.
Definition at line 100 of file kis_tool_fill.cc.
References KisToolPaint::activate(), Private::canvas, KisViewManager::canvasResourceProvider(), connect(), KisTool::currentNode(), m_configGroup, slot_currentNodeChanged(), KoToolBase::toolId(), and KisCanvas2::viewManager().
|
private |
Definition at line 342 of file kis_tool_fill.cc.
References addFillingOperation().
Definition at line 348 of file kis_tool_fill.cc.
References KisResourcesSnapshot::activeSelection(), KisImage::addJob(), KisImage::bounds(), bounds, COMPOSITE_OVER, KisResourcesSnapshot::compositeOpId(), ContiguousFillMode_BoundaryFill, ContiguousFillMode_FloodFill, FillProcessingVisitor::ContinuousFillMode_FillAnyRegion, ContinuousFillMode_FillAnyRegion, FillProcessingVisitor::ContinuousFillMode_FillSimilarRegions, KisFillPainter::createSimilarColorsSelectionJobs(), KisTool::currentImage(), KisTool::currentNode(), KisStrokeJobData::EXCLUSIVE, FillMode_FillSelection, FillMode_FillSimilarRegions, FillType_FillWithBackgroundColor, FillType_FillWithPattern, KisTool::image(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_antiAlias, m_closeGap, m_contiguousFillBoundaryColor, m_contiguousFillMode, m_continuousFillMode, m_customCompositeOp, m_customOpacity, m_dirtyRect, m_effectiveFillMode, m_feather, m_fillMask, m_fillStrokeId, m_fillType, m_isDragging, m_opacitySpread, m_reference, m_referenceColor, m_referencePaintDevice, m_resourcesSnapshot, m_sizemod, m_stopGrowingAtDarkestPixel, m_threshold, m_useCustomBlendingOptions, m_useSelectionAsBoundary, KisResourcesSnapshot::opacity(), OPACITY_OPAQUE_F, KisSelection::pixelSelection, qFuzzyCompare(), Reference_CurrentLayer, KisFillPainter::RegionFillingMode_BoundaryFill, KisFillPainter::RegionFillingMode_FloodFill, KoToolBase::selection(), KisStrokeJobData::SEQUENTIAL, KisFillPainter::setAntiAlias(), FillProcessingVisitor::setAntiAlias(), FillProcessingVisitor::setCloseGap(), FillProcessingVisitor::setContinuousFillMask(), FillProcessingVisitor::setContinuousFillMode(), FillProcessingVisitor::setContinuousFillReferenceColor(), FillProcessingVisitor::setCustomCompositeOp(), FillProcessingVisitor::setCustomOpacity(), KisFillPainter::setFeather(), FillProcessingVisitor::setFeather(), FillProcessingVisitor::setFillThreshold(), KisFillPainter::setFillThreshold(), KisFillPainter::setOpacitySpread(), FillProcessingVisitor::setOpacitySpread(), FillProcessingVisitor::setOutDirtyRect(), FillProcessingVisitor::setProgressHelper(), FillProcessingVisitor::setRegionFillingBoundaryColor(), FillProcessingVisitor::setRegionFillingMode(), FillProcessingVisitor::setSeedPoints(), FillProcessingVisitor::setSelectionOnly(), KisFillPainter::setSizemod(), FillProcessingVisitor::setSizeMod(), KisFillPainter::setStopGrowingAtDarkestPixel(), FillProcessingVisitor::setStopGrowingAtDarkestPixel(), FillProcessingVisitor::setUseBgColor(), FillProcessingVisitor::setUseCustomBlendingOptions(), FillProcessingVisitor::setUseFastMode(), FillProcessingVisitor::setUsePattern(), and FillProcessingVisitor::setUseSelectionAsBoundary().
|
private |
Definition at line 481 of file kis_tool_fill.cc.
References KisImage::addJob(), KisTool::currentNode(), KisStrokeJobData::EXCLUSIVE, KisTool::image(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_dirtyRect, m_fillStrokeId, and KisStrokeJobData::SEQUENTIAL.
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 220 of file kis_tool_fill.cc.
References KoToolBase::action(), KisToolPaint::beginAlternateAction(), beginPrimaryAction(), and KisTool::ChangeSize.
|
private |
Definition at line 247 of file kis_tool_fill.cc.
References KisImage::addJob(), KisImage::animationInterface(), Private::canvas, KisMergeLabeledLayersCommand::createRefPaintDevice(), KisTool::currentImage(), KisTool::currentNode(), KisImageAnimationInterface::currentTime(), KisStrokeJobData::EXCLUSIVE, FillMode_FillSelection, KisMergeLabeledLayersCommand::GroupSelectionPolicy_SelectIfColorLabeled, KisTool::image(), KIS_SAFE_ASSERT_RECOVER_RETURN, kundo2_i18n(), m_dirtyRect, m_effectiveFillMode, m_fillMask, m_fillStrokeId, m_patternRotation, m_patternScale, m_previousTime, m_reference, m_referenceColor, m_referenceNodeList, m_referencePaintDevice, m_resourcesSnapshot, m_selectedColorLabels, m_transform, m_useActiveLayer, KisTool::PAINT_MODE, KisBaseNode::paintDevice(), KisPaintDevice::pixel(), KisImage::projection(), Reference_AllLayers, Reference_ColorLabeledLayers, Reference_CurrentLayer, KisStrokeJobData::SEQUENTIAL, KisResourcesSnapshot::setFillTransform(), KisToolPaint::setMode(), KisStrokeStrategyUndoCommandBased::setSupportsWrapAroundMode(), and KisImage::startStroke().
|
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 131 of file kis_tool_fill.cc.
References beginFilling(), bounds, Private::canvas, KisTool::convertToImagePixelCoordFloored(), KisTool::currentNode(), FillMode_FillContiguousRegion, FillMode_FillSelection, FillMode_FillSimilarRegions, KisTool::image(), m_effectiveFillMode, m_fillMode, m_fillStartWidgetPosition, m_isFilling, m_seedPoints, KisFloatingMessage::Medium, KoPointerEvent::modifiers(), KisTool::nodeEditable(), KisTool::nodePaintAbility(), KisTool::PAINT, slotUpdateFill(), and KisCanvas2::viewManager().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 229 of file kis_tool_fill.cc.
References KoToolBase::action(), KisTool::ChangeSize, KisToolPaint::continueAlternateAction(), and continuePrimaryAction().
|
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 183 of file kis_tool_fill.cc.
References ContinuousFillMode_DoNotUse, KisTool::convertToImagePixelCoordFloored(), FillMode_FillContiguousRegion, m_compressorFillUpdate, m_continuousFillMode, m_effectiveFillMode, m_fillStartWidgetPosition, m_isDragging, m_isFilling, m_seedPoints, minimumDragDistanceSquared, KoPointerEvent::pos(), pow2(), and KisSignalCompressor::start().
|
overridevirtual |
Reimplement this if your tool actually has an option widget. Sets the option widget to 0 by default.
Reimplemented from KisTool.
Definition at line 522 of file kis_tool_fill.cc.
References KisOptionButtonStrip::addButton(), KisOptionCollectionWidget::appendWidget(), KisOptionCollectionWidgetWithHeader::appendWidget(), connect(), ContiguousFillMode_BoundaryFill, ContinuousFillMode_DoNotUse, ContinuousFillMode_FillSimilarRegions, KisTool::currentNode(), FillMode_FillContiguousRegion, FillMode_FillSelection, FillMode_FillSimilarRegions, FillType_FillWithBackgroundColor, FillType_FillWithPattern, KisAngleSelector::FlipOptionsMode_ContextMenu, KisAngleGauge::IncreasingDirection_Clockwise, loadConfiguration(), KisIconUtils::loadIcon(), m_angleSelectorPatternRotation, m_antiAlias, m_buttonContiguousFillBoundaryColor, m_buttonContiguousFillModeBoundaryFill, m_buttonContiguousFillModeFloodFill, m_buttonDragFillAny, m_buttonDragFillDoNotUse, m_buttonDragFillSimilar, m_buttonFillWithBG, m_buttonFillWithFG, m_buttonFillWithPattern, m_buttonReferenceAll, m_buttonReferenceCurrent, m_buttonReferenceLabeled, m_buttonStopGrowingAtDarkestPixel, m_buttonWhatToFillContiguous, m_buttonWhatToFillSelection, m_buttonWhatToFillSimilar, m_checkBoxAntiAlias, m_checkBoxCustomBlendingOptions, m_checkBoxSelectionAsBoundary, m_checkBoxUseActiveLayer, m_closeGap, m_comboBoxCustomCompositeOp, m_contiguousFillBoundaryColor, m_contiguousFillMode, m_continuousFillMode, m_customCompositeOp, m_customOpacity, m_feather, m_fillMode, m_fillType, m_opacitySpread, m_optionWidget, m_patternRotation, m_patternScale, m_reference, m_selectedColorLabels, m_sizemod, m_sliderCloseGap, m_sliderCustomOpacity, m_sliderFeather, m_sliderGrow, m_sliderPatternScale, m_sliderSpread, m_sliderThreshold, m_stopGrowingAtDarkestPixel, m_threshold, m_useActiveLayer, m_useCustomBlendingOptions, m_useSelectionAsBoundary, m_widgetLabels, Reference_AllLayers, Reference_ColorLabeledLayers, KisCompositeOpComboBox::selectCompositeOp(), KoToolBase::selectionChanged(), KisAngleSelector::setAngle(), KisColorLabelSelectorWidget::setButtonSize(), KisColorLabelSelectorWidget::setButtonWrapEnabled(), KisColorButton::setColor(), KisColorLabelSelectorWidget::setExclusive(), KisAngleSelector::setFlipOptionsMode(), KisAngleSelector::setIncreasingDirection(), KisColorLabelSelectorWidget::setMouseDragEnabled(), KisOptionCollectionWidget::setOrientation(), KisOptionCollectionWidgetWithHeader::setPrimaryWidget(), KisOptionCollectionWidgetWithHeader::setPrimaryWidgetVisible(), KisSliderSpinBox::setRange(), KisDoubleSliderSpinBox::setRange(), KisColorLabelSelectorWidget::setSelection(), KisOptionCollectionWidget::setSeparatorsVisible(), KisDoubleSliderSpinBox::setSoftMaximum(), KisSliderSpinBox::setSoftRange(), KisSpinBoxI18nHelper::setText(), KisSliderSpinBox::setValue(), KisDoubleSliderSpinBox::setValue(), KisOptionCollectionWidget::setWidgetsMargin(), KisOptionCollectionWidget::setWidgetVisible(), KisOptionCollectionWidgetWithHeader::setWidgetVisible(), slot_angleSelectorPatternRotation_angleChanged(), slot_buttonContiguousFillBoundaryColor_changed(), slot_buttonReset_clicked(), slot_buttonStopGrowingAtDarkestPixel_toggled(), slot_checkBoxAntiAlias_toggled(), slot_checkBoxSelectionAsBoundary_toggled(), slot_checkBoxUseActiveLayer_toggled(), slot_checkBoxUseCustomBlendingOptions_toggled(), slot_colorSpaceChanged(), slot_comboBoxCustomCompositeOp_currentIndexChanged(), slot_optionButtonStripContiguousFillMode_buttonToggled(), slot_optionButtonStripDragFill_buttonToggled(), slot_optionButtonStripFillWith_buttonToggled(), slot_optionButtonStripReference_buttonToggled(), slot_optionButtonStripWhatToFill_buttonToggled(), slot_sliderCloseGap_valueChanged(), slot_sliderCustomOpacity_valueChanged(), slot_sliderFeather_valueChanged(), slot_sliderGrow_valueChanged(), slot_sliderPatternScale_valueChanged(), slot_sliderSpread_valueChanged(), slot_sliderThreshold_valueChanged(), and slot_widgetLabels_selectionChanged().
|
overrideslot |
Definition at line 115 of file kis_tool_fill.cc.
References Private::canvas, KisViewManager::canvasResourceProvider(), KisToolPaint::deactivate(), m_referenceNodeList, m_referencePaintDevice, slot_currentNodeChanged(), and KisCanvas2::viewManager().
|
overridevirtual |
Reimplemented from KisTool.
Definition at line 238 of file kis_tool_fill.cc.
References KoToolBase::action(), KisTool::ChangeSize, KisToolPaint::endAlternateAction(), and endPrimaryAction().
|
private |
Definition at line 496 of file kis_tool_fill.cc.
References CHECK_MODE_SANITY_OR_RETURN, KisImage::endStroke(), KisTool::HOVER_MODE, KisTool::image(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_dirtyRect, m_fillMask, m_fillStrokeId, KisTool::PAINT_MODE, and KisToolPaint::setMode().
|
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 208 of file kis_tool_fill.cc.
References endFilling(), m_compressorFillUpdate, m_isDragging, m_isFilling, m_seedPoints, and KisSignalCompressor::stop().
|
private |
Definition at line 863 of file kis_tool_fill.cc.
References COMPOSITE_OVER, ContiguousFillMode_BoundaryFill, ContiguousFillMode_FloodFill, ContinuousFillMode_DoNotUse, ContinuousFillMode_FillAnyRegion, ContinuousFillMode_FillSimilarRegions, FillMode_FillContiguousRegion, FillMode_FillSelection, FillMode_FillSimilarRegions, FillType_FillWithBackgroundColor, FillType_FillWithForegroundColor, FillType_FillWithPattern, KoCompositeOpRegistry::getKoID(), KoID::id(), KoCompositeOpRegistry::instance(), loadContiguousFillBoundaryColorFromConfig(), m_antiAlias, m_closeGap, m_configGroup, m_contiguousFillBoundaryColor, m_contiguousFillMode, m_continuousFillMode, m_customCompositeOp, m_customOpacity, m_feather, m_fillMode, m_fillType, m_opacitySpread, m_patternRotation, m_patternScale, m_reference, m_selectedColorLabels, m_sizemod, m_stopGrowingAtDarkestPixel, m_threshold, m_useActiveLayer, m_useCustomBlendingOptions, m_useSelectionAsBoundary, Reference_AllLayers, Reference_ColorLabeledLayers, and Reference_CurrentLayer.
|
private |
Definition at line 960 of file kis_tool_fill.cc.
References KoColor::fromXML(), KoID::id(), Integer16BitsColorDepthID, and m_configGroup.
|
overrideprotectedslot |
Definition at line 89 of file kis_tool_fill.cc.
References KisToolPaint::isEraser(), KisCursor::load(), m_useCustomBlendingOptions, KisTool::overrideCursorIfNotEditable(), KisTool::resetCursorStyle(), and KoToolBase::useCursor().
|
privateslot |
Definition at line 1060 of file kis_tool_fill.cc.
References m_configGroup, m_patternRotation, and value().
|
privateslot |
Definition at line 1124 of file kis_tool_fill.cc.
References m_configGroup, m_contiguousFillBoundaryColor, and KoColor::toXML().
|
privateslot |
Definition at line 1268 of file kis_tool_fill.cc.
References COMPOSITE_OVER, m_angleSelectorPatternRotation, m_buttonDragFillAny, m_buttonFillWithFG, m_buttonReferenceCurrent, m_buttonStopGrowingAtDarkestPixel, m_buttonWhatToFillContiguous, m_checkBoxAntiAlias, m_checkBoxCustomBlendingOptions, m_checkBoxSelectionAsBoundary, m_comboBoxCustomCompositeOp, m_sliderCloseGap, m_sliderCustomOpacity, m_sliderFeather, m_sliderGrow, m_sliderPatternScale, m_sliderSpread, m_sliderThreshold, m_widgetLabels, KisCompositeOpComboBox::selectCompositeOp(), KisAngleSelector::setAngle(), KisColorLabelSelectorWidget::setSelection(), KisSliderSpinBox::setValue(), and KisDoubleSliderSpinBox::setValue().
|
privateslot |
Definition at line 1187 of file kis_tool_fill.cc.
References m_configGroup, and m_stopGrowingAtDarkestPixel.
|
privateslot |
Definition at line 1169 of file kis_tool_fill.cc.
References m_antiAlias, and m_configGroup.
|
privateslot |
Definition at line 1160 of file kis_tool_fill.cc.
References m_configGroup, and m_useSelectionAsBoundary.
|
privateslot |
Definition at line 1323 of file kis_tool_fill.cc.
References m_configGroup, and m_useActiveLayer.
|
privateslot |
Definition at line 1069 of file kis_tool_fill.cc.
References m_configGroup, m_optionWidget, m_useCustomBlendingOptions, KisOptionCollectionWidgetWithHeader::setWidgetVisible(), and KisOptionCollectionWidget::widgetAs().
|
privateslot |
Definition at line 1308 of file kis_tool_fill.cc.
References KisPaintDevice::compositionSourceColorSpace(), KisTool::currentNode(), m_comboBoxCustomCompositeOp, KisBaseNode::paintDevice(), and KisCompositeOpComboBox::validate().
|
privateslot |
Definition at line 1088 of file kis_tool_fill.cc.
References KoID::id(), m_comboBoxCustomCompositeOp, m_configGroup, m_customCompositeOp, and KisCompositeOpComboBox::selectedCompositeOp().
Definition at line 1290 of file kis_tool_fill.cc.
References KisPaintDevice::colorSpace(), connect(), KisSharedPtr< T >::data(), m_previousNode, KisBaseNode::paintDevice(), and slot_colorSpaceChanged().
|
privateslot |
Definition at line 1099 of file kis_tool_fill.cc.
References button(), ContiguousFillMode_BoundaryFill, ContiguousFillMode_FloodFill, m_buttonContiguousFillModeBoundaryFill, m_buttonContiguousFillModeFloodFill, m_configGroup, m_contiguousFillMode, m_optionWidget, KisOptionCollectionWidgetWithHeader::setWidgetVisible(), and KisOptionCollectionWidget::widgetAs().
|
privateslot |
Definition at line 1246 of file kis_tool_fill.cc.
References button(), ContinuousFillMode_DoNotUse, ContinuousFillMode_FillAnyRegion, ContinuousFillMode_FillSimilarRegions, m_buttonDragFillAny, m_buttonDragFillDoNotUse, m_configGroup, and m_continuousFillMode.
|
privateslot |
Definition at line 1025 of file kis_tool_fill.cc.
References button(), FillType_FillWithBackgroundColor, FillType_FillWithForegroundColor, FillType_FillWithPattern, m_buttonFillWithBG, m_buttonFillWithFG, m_buttonFillWithPattern, m_configGroup, m_fillType, m_optionWidget, KisOptionCollectionWidgetWithHeader::setWidgetVisible(), and KisOptionCollectionWidget::widgetAs().
|
privateslot |
Definition at line 1205 of file kis_tool_fill.cc.
References button(), m_buttonReferenceAll, m_buttonReferenceCurrent, m_buttonReferenceLabeled, m_configGroup, m_optionWidget, m_reference, Reference_AllLayers, Reference_ColorLabeledLayers, Reference_CurrentLayer, KisOptionCollectionWidgetWithHeader::setWidgetVisible(), and KisOptionCollectionWidget::widgetAs().
|
privateslot |
Definition at line 977 of file kis_tool_fill.cc.
References button(), ContiguousFillMode_BoundaryFill, FillMode_FillContiguousRegion, FillMode_FillSelection, FillMode_FillSimilarRegions, m_buttonWhatToFillContiguous, m_buttonWhatToFillSelection, m_configGroup, m_contiguousFillMode, m_fillMode, m_optionWidget, KisOptionCollectionWidget::setWidgetVisible(), and KisOptionCollectionWidget::widgetAs().
|
privateslot |
Definition at line 1151 of file kis_tool_fill.cc.
References m_closeGap, m_configGroup, and value().
|
privateslot |
Definition at line 1079 of file kis_tool_fill.cc.
References m_configGroup, m_customOpacity, and value().
|
privateslot |
Definition at line 1196 of file kis_tool_fill.cc.
References m_configGroup, m_feather, and value().
|
privateslot |
Definition at line 1178 of file kis_tool_fill.cc.
References m_configGroup, m_sizemod, and value().
|
privateslot |
Definition at line 1051 of file kis_tool_fill.cc.
References m_configGroup, m_patternScale, and value().
|
privateslot |
Definition at line 1142 of file kis_tool_fill.cc.
References m_configGroup, m_opacitySpread, and value().
|
privateslot |
Definition at line 1133 of file kis_tool_fill.cc.
References m_configGroup, m_threshold, and value().
|
privateslot |
Definition at line 1229 of file kis_tool_fill.cc.
References m_configGroup, m_selectedColorLabels, m_widgetLabels, and KisColorLabelSelectorWidget::selection().
|
protectedslot |
Definition at line 508 of file kis_tool_fill.cc.
References addFillingOperation(), addUpdateOperation(), FillMode_FillContiguousRegion, KIS_SAFE_ASSERT_RECOVER_RETURN, m_effectiveFillMode, m_fillStrokeId, m_seedPoints, and KritaUtils::rasterizePolylineDDA().
|
inlineoverrideprotectedvirtual |
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 96 of file kis_tool_fill.h.
|
private |
Definition at line 163 of file kis_tool_fill.h.
|
private |
Definition at line 122 of file kis_tool_fill.h.
|
private |
Definition at line 170 of file kis_tool_fill.h.
|
private |
Definition at line 169 of file kis_tool_fill.h.
|
private |
Definition at line 168 of file kis_tool_fill.h.
|
private |
Definition at line 188 of file kis_tool_fill.h.
|
private |
Definition at line 187 of file kis_tool_fill.h.
|
private |
Definition at line 189 of file kis_tool_fill.h.
|
private |
Definition at line 160 of file kis_tool_fill.h.
|
private |
Definition at line 159 of file kis_tool_fill.h.
|
private |
Definition at line 161 of file kis_tool_fill.h.
|
private |
Definition at line 182 of file kis_tool_fill.h.
|
private |
Definition at line 181 of file kis_tool_fill.h.
|
private |
Definition at line 183 of file kis_tool_fill.h.
|
private |
Definition at line 178 of file kis_tool_fill.h.
|
private |
Definition at line 156 of file kis_tool_fill.h.
|
private |
Definition at line 155 of file kis_tool_fill.h.
|
private |
Definition at line 157 of file kis_tool_fill.h.
|
private |
Definition at line 176 of file kis_tool_fill.h.
|
private |
Definition at line 164 of file kis_tool_fill.h.
|
private |
Definition at line 174 of file kis_tool_fill.h.
|
private |
Definition at line 185 of file kis_tool_fill.h.
|
private |
Definition at line 119 of file kis_tool_fill.h.
|
private |
Definition at line 166 of file kis_tool_fill.h.
|
private |
Definition at line 145 of file kis_tool_fill.h.
|
private |
Definition at line 151 of file kis_tool_fill.h.
|
private |
Definition at line 116 of file kis_tool_fill.h.
|
private |
Definition at line 115 of file kis_tool_fill.h.
|
private |
Definition at line 131 of file kis_tool_fill.h.
|
private |
Definition at line 113 of file kis_tool_fill.h.
|
private |
Definition at line 112 of file kis_tool_fill.h.
|
private |
Definition at line 146 of file kis_tool_fill.h.
|
private |
Definition at line 141 of file kis_tool_fill.h.
|
private |
Definition at line 125 of file kis_tool_fill.h.
|
private |
Definition at line 133 of file kis_tool_fill.h.
|
private |
Definition at line 106 of file kis_tool_fill.h.
|
private |
Definition at line 144 of file kis_tool_fill.h.
|
private |
Definition at line 148 of file kis_tool_fill.h.
|
private |
Definition at line 108 of file kis_tool_fill.h.
|
private |
Definition at line 143 of file kis_tool_fill.h.
|
private |
Definition at line 142 of file kis_tool_fill.h.
|
private |
Definition at line 118 of file kis_tool_fill.h.
|
private |
Definition at line 153 of file kis_tool_fill.h.
|
private |
Definition at line 110 of file kis_tool_fill.h.
|
private |
Definition at line 109 of file kis_tool_fill.h.
|
private |
Definition at line 149 of file kis_tool_fill.h.
|
private |
Definition at line 137 of file kis_tool_fill.h.
|
private |
Definition at line 127 of file kis_tool_fill.h.
|
private |
Definition at line 134 of file kis_tool_fill.h.
|
private |
Definition at line 136 of file kis_tool_fill.h.
|
private |
Definition at line 135 of file kis_tool_fill.h.
|
private |
Definition at line 138 of file kis_tool_fill.h.
|
private |
Definition at line 147 of file kis_tool_fill.h.
|
private |
Definition at line 128 of file kis_tool_fill.h.
|
private |
Definition at line 123 of file kis_tool_fill.h.
|
private |
Definition at line 173 of file kis_tool_fill.h.
|
private |
Definition at line 165 of file kis_tool_fill.h.
|
private |
Definition at line 179 of file kis_tool_fill.h.
|
private |
Definition at line 177 of file kis_tool_fill.h.
|
private |
Definition at line 162 of file kis_tool_fill.h.
|
private |
Definition at line 172 of file kis_tool_fill.h.
|
private |
Definition at line 171 of file kis_tool_fill.h.
|
private |
Definition at line 124 of file kis_tool_fill.h.
|
private |
Definition at line 117 of file kis_tool_fill.h.
|
private |
Definition at line 139 of file kis_tool_fill.h.
|
private |
Definition at line 129 of file kis_tool_fill.h.
|
private |
Definition at line 111 of file kis_tool_fill.h.
|
private |
Definition at line 120 of file kis_tool_fill.h.
|
private |
Definition at line 184 of file kis_tool_fill.h.
|
staticconstexprprivate |
Definition at line 103 of file kis_tool_fill.h.
|
staticconstexprprivate |
Definition at line 104 of file kis_tool_fill.h.