|
Krita Source Code Documentation
|
#include <kis_color_selector.h>
Inheritance diagram for KisColorSelector:Classes | |
| struct | ColorRing |
Public Slots | |
| void | reset () override |
| void | slotGamutMaskDeactivate () |
| void | slotGamutMaskPreviewUpdate () |
| void | slotGamutMaskSet (KoGamutMaskSP gamutMask) |
| void | slotGamutMaskToggle (bool state) |
| void | slotGamutMaskUnset () |
| void | updateSettings () override |
Public Slots inherited from KisColorSelectorBase | |
| virtual void | reset () |
| virtual void | showPopup (Move move=MoveToMousePosition) |
| virtual void | updateSettings () |
Signals | |
| void | settingsButtonClicked () |
| void | sigBgColorChanged (const KisColor &color) |
| void | sigFgColorChanged (const KisColor &color) |
Protected Member Functions | |
| bool | displaySettingsButton () |
| void | mouseMoveEvent (QMouseEvent *) override |
| void | mousePressEvent (QMouseEvent *) override |
| void | mouseReleaseEvent (QMouseEvent *) override |
| void | paintEvent (QPaintEvent *) override |
| void | resizeEvent (QResizeEvent *) override |
Protected Member Functions inherited from KisColorSelectorBase | |
| void | changeEvent (QEvent *event) override |
| void | dragEnterEvent (QDragEnterEvent *) override |
| void | dropEvent (QDropEvent *) override |
| bool | isPopup () const |
| void | keyPressEvent (QKeyEvent *) override |
| void | mouseMoveEvent (QMouseEvent *event) override |
| void | requestUpdateColorAndPreview (const KoColor &color, Acs::ColorRole role) |
| void | setHidingTime (int time) |
| void | showEvent (QShowEvent *event) override |
Private Types | |
| typedef KisSignalCompressorWithParam< QPair< KisColor, Acs::ColorRole > > | ColorCompressorType |
| typedef KisRadian< qreal > | Radian |
Private Member Functions | |
| bool | colorIsClear (const KisColor &color) |
| bool | colorIsClear (const QPointF &colorPoint) |
| void | createRing (ColorRing &wheel, quint8 numPieces, qreal innerRadius, qreal outerRadius) |
| void | drawBlip (QPainter &painter, const QRect &rect) |
| void | drawColorPreview (QPainter &painter, const QRect &rect) |
| void | drawGamutMaskShape (QPainter &painter, const QRect &rect) |
| void | drawLightStrip (QPainter &painter, const QRect &rect) |
| void | drawOutline (QPainter &painter, const QRect &rect) |
| void | drawRing (QPainter &painter, ColorRing &wheel, const QRect &rect) |
| qreal | getHue (int hueIdx, Radian shift=0.0f) const |
| qint8 | getHueIndex (Radian hue) const |
| qreal | getLight (const QPointF &pt) const |
| qint8 | getLightIndex (const QPointF &pt) const |
| qint8 | getLightIndex (qreal light) const |
| qreal | getSaturation (int saturationIdx) const |
| qint8 | getSaturationIndex (const QPointF &pt) const |
| qint8 | getSaturationIndex (qreal saturation) const |
| void | init () |
| void | leaveEvent (QEvent *e) override |
| QPointF | mapColorToUnit (const KisColor &color, bool invertSaturation=true) const |
| Radian | mapCoordToAngle (qreal x, qreal y) const |
| QPointF | mapCoordToUnit (const QPointF &pt, const QRectF &viewRect) const |
| QPointF | mapCoordToView (const QPointF &pt, const QRectF &viewRect) const |
| QPointF | mapHueToAngle (qreal hue) const |
| void | mouseEvent (QMouseEvent *e) |
| void | mouseMoveEvent (QMouseEvent *event) override |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
| void | paintEvent (QPaintEvent *event) override |
| void | recalculateAreas (quint8 numLightPieces) |
| void | recalculateRings (quint8 numRings, quint8 numPieces) |
| void | requestUpdateColorAndPreview (const KisColor &color, Acs::ColorRole role) |
| void | resizeEvent (QResizeEvent *event) override |
Additional Inherited Members | |
Public Types inherited from KisColorSelectorBase | |
| enum | Move { MoveToMousePosition , DontMove } |
Protected Slots inherited from KisColorSelectorBase | |
| virtual void | canvasResourceChanged (int key, const QVariant &v) |
| if you overwrite this, keep in mind, that you should set the color only, if m_colorUpdateAllowed is true | |
| void | hidePopup () |
| void | updateLastUsedColorPreview (const KoColor &color) |
Protected Attributes inherited from KisColorSelectorBase | |
| QPointer< KisCanvas2 > | m_canvas |
| bool | m_colorUpdateAllowed |
| bool | m_colorUpdateSelf |
| QWidget * | m_parent |
| KisColorSelectorBase * | m_popup |
Definition at line 22 of file kis_color_selector.h.
|
private |
Definition at line 194 of file kis_color_selector.h.
|
private |
Definition at line 30 of file kis_color_selector.h.
| KisColorSelector::KisColorSelector | ( | KisColorSelectorConfiguration | conf, |
| QWidget * | parent = 0 ) |
Definition at line 38 of file kis_color_selector.cpp.
References init(), setConfiguration(), and updateSettings().
| KisColorSelector::KisColorSelector | ( | QWidget * | parent = 0 | ) |
Definition at line 55 of file kis_color_selector.cpp.
References init(), and updateSettings().
| KisColorSelector::KisColorSelector | ( | QWidget * | parent, |
| KisColor::Type | type = KisColor::HSL ) |
Definition at line 28 of file kis_color_selector.cpp.
References DEFAULT_HUE_STEPS, DEFAULT_LUMA_B, DEFAULT_LUMA_G, DEFAULT_LUMA_GAMMA, DEFAULT_LUMA_R, DEFAULT_SATURATION_STEPS, DEFAULT_VALUE_SCALE_STEPS, KisColor::HSY, m_colorConverter, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, m_updateColorCompressor, recalculateAreas(), recalculateRings(), selectColor(), setLumaCoefficients(), and slotUpdateColorAndPreview().
|
private |
Definition at line 489 of file kis_color_selector.cpp.
References m_currentGamutMask, m_gamutMaskOn, m_maskPreviewActive, m_renderArea, mapColorToUnit(), and mapCoordToView().
|
private |
| KisColorSelectorConfiguration KisColorSelector::configuration | ( | ) | const |
Definition at line 136 of file kis_color_selector.cpp.
References m_configuration.
|
overridevirtual |
Implements KisColorSelectorBase.
Definition at line 72 of file kis_color_selector.cpp.
References KisColorSelector(), m_lastRealColor, and KisColorSelectorBase::setColor().
|
private |
Definition at line 463 of file kis_color_selector.cpp.
References KisColorSelector::ColorRing::innerRadius, KisColorSelector::ColorRing::outerRadius, and KisColorSelector::ColorRing::pieced.
|
inline |
|
protected |
Definition at line 362 of file kis_color_selector.cpp.
|
private |
Definition at line 812 of file kis_color_selector.cpp.
References COLOR_SELECTED_DARK, COLOR_SELECTED_LIGHT, dbgPlugins, KisColor::getH(), KisColor::getS(), m_fgColor, and mapColorToUnit().
|
private |
Definition at line 863 of file kis_color_selector.cpp.
References m_bgColor, m_fgColor, m_showBgColor, and KisColor::toQColor().
|
private |
Definition at line 838 of file kis_color_selector.cpp.
References COLOR_MASK_FILL, m_currentGamutMask, m_gamutMaskViewTransform, and m_maskPreviewActive.
|
private |
Definition at line 680 of file kis_color_selector.cpp.
References COLOR_DARK, COLOR_LIGHT, COLOR_SELECTED_DARK, COLOR_SELECTED_LIGHT, getNumLightPieces(), KisColor::getX(), KisColor::HSY, m_colorConverter, m_colorSpace, m_fgColor, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, m_selectedColor, m_selectedLightPiece, m_showValueScaleNumbers, KisColor::setX(), and KisColor::toQColor().
|
private |
Definition at line 619 of file kis_color_selector.cpp.
References COLOR_NORMAL_OUTLINE, COLOR_SELECTED_DARK, COLOR_SELECTED_LIGHT, KisColor::getH(), getNumPieces(), getNumRings(), KisColor::getX(), m_colorRings, m_selectedColor, m_selectedPiece, m_selectedRing, and mapHueToAngle().
|
private |
Definition at line 551 of file kis_color_selector.cpp.
References COLOR_MASK_CLEAR, COLOR_MASK_FILL, COLOR_NORMAL_OUTLINE, colorIsClear(), KisColor::getX(), m_colorConverter, m_colorSpace, m_enforceGamutMask, m_gamutMaskOn, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, m_selectedColor, KisColorSelector::ColorRing::pieced, KisColorSelector::ColorRing::saturation, KisColor::setS(), KisColor::setX(), and KisColor::toQColor().
|
inline |
| KoGamutMaskSP KisColorSelector::gamutMask | ( | ) |
Definition at line 238 of file kis_color_selector.cpp.
References m_currentGamutMask.
| bool KisColorSelector::gamutMaskOn | ( | ) |
Definition at line 243 of file kis_color_selector.cpp.
References m_gamutMaskOn.
|
inline |
|
inline |
|
inline |
Definition at line 90 of file kis_color_selector.h.
References m_defaultSaturationSteps.
|
inline |
Definition at line 91 of file kis_color_selector.h.
References m_defaultValueScaleSteps.
|
private |
Definition at line 368 of file kis_color_selector.cpp.
References getNumPieces(), PI2, and KisRadian< TReal >::scaled().
|
private |
Definition at line 362 of file kis_color_selector.cpp.
References getNumPieces(), and KisRadian< TReal >::scaled().
|
private |
Definition at line 348 of file kis_color_selector.cpp.
References getLightIndex(), getNumLightPieces(), and m_lightStripArea.
|
private |
Definition at line 332 of file kis_color_selector.cpp.
References getNumLightPieces(), and m_lightStripArea.
|
private |
Definition at line 342 of file kis_color_selector.cpp.
References getNumLightPieces().
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 394 of file kis_color_selector.cpp.
References getNumRings(), and m_inverseSaturation.
|
private |
Definition at line 382 of file kis_color_selector.cpp.
References length(), and m_colorRings.
|
private |
Definition at line 375 of file kis_color_selector.cpp.
References getNumRings(), and m_inverseSaturation.
|
inline |
|
inline |
| void KisColorSelector::hasAtLeastOneDocument | ( | bool | value | ) |
Definition at line 201 of file kis_color_selector.cpp.
References m_hasAtLeastOneDocumentOpen, and value().
|
private |
Definition at line 390 of file kis_color_selector.cpp.
References connect(), displaySettingsButton(), KisSignalCompressor::FIRST_INACTIVE, Acs::Foreground, KisIconUtils::loadIcon(), m_button, m_lastColorRole, m_ring, m_signalCompressor, m_slider, m_square, m_triangle, m_wheel, and settingsButtonClicked().
|
inline |
|
overrideprivate |
Definition at line 1073 of file kis_color_selector.cpp.
References dbgPlugins, and m_widgetUpdatesSelf.
| void KisColorSelector::loadSettings | ( | ) |
Definition at line 1111 of file kis_color_selector.cpp.
References KisColorSelectorBase::colorSpace(), DEFAULT_HUE_STEPS, DEFAULT_LUMA_B, DEFAULT_LUMA_G, DEFAULT_LUMA_GAMMA, DEFAULT_LUMA_R, DEFAULT_SATURATION_STEPS, DEFAULT_VALUE_SCALE_STEPS, KisColor::HSY, m_defaultHueSteps, m_defaultSaturationSteps, m_defaultValueScaleSteps, m_enforceGamutMask, m_selectedColor, m_showBgColor, m_showValueScaleNumbers, KisConfig::readEntry(), selectColor(), setColorSpace(), KisColor::setH(), setInverseSaturation(), setLight(), setLumaCoefficients(), setNumLightPieces(), setNumPieces(), setNumRings(), KisColor::setS(), and KisColor::setX().
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 292 of file kis_color_selector.cpp.
References KisColor::getH(), KisColor::getS(), m_inverseSaturation, and mapHueToAngle().
|
private |
Definition at line 308 of file kis_color_selector.cpp.
References dbgPlugins.
|
private |
Definition at line 283 of file kis_color_selector.cpp.
|
private |
|
private |
Definition at line 322 of file kis_color_selector.cpp.
References M_PI.
|
private |
Definition at line 376 of file kis_color_selector.cpp.
References Acs::buttonsToRole(), KisColorSelectorComponent::currentColor(), m_currentRealColor, m_grabbingComponent, m_mainComponent, KisColorSelectorComponent::mouseEvent(), and requestUpdateColorAndPreview().
|
overrideprotected |
Definition at line 335 of file kis_color_selector.cpp.
References mouseEvent(), and KisColorSelectorBase::mouseMoveEvent().
|
overrideprivate |
|
overrideprotected |
Definition at line 318 of file kis_color_selector.cpp.
References m_grabbingComponent, m_mainComponent, m_subComponent, mouseEvent(), KisColorSelectorBase::mousePressEvent(), KisColorSelectorBase::updatePreviousColorPreview(), and KisColorSelectorComponent::wantsGrab().
|
overrideprivate |
|
overrideprotected |
Definition at line 343 of file kis_color_selector.cpp.
References Acs::buttonToRole(), m_currentRealColor, m_grabbingComponent, m_lastColorRole, m_lastRealColor, KisColorSelectorBase::mouseReleaseEvent(), KisColorSelectorBase::updateBaseColorPreview(), and KisColorSelectorBase::updateColor().
|
overrideprivate |
|
overrideprotected |
Definition at line 219 of file kis_color_selector.cpp.
References m_hasAtLeastOneDocumentOpen, m_mainComponent, m_subComponent, p, and KisColorSelectorComponent::paintEvent().
|
overrideprivate |
|
private |
Definition at line 400 of file kis_color_selector.cpp.
References m_colorPreviewBuffer, m_currentGamutMask, m_gamutMaskViewTransform, m_isDirtyColorPreview, m_isDirtyGamutMask, m_isDirtyLightStrip, m_isDirtyWheel, m_lightStripArea, m_lightStripBuffer, m_maskBuffer, m_numLightPieces, m_renderArea, m_renderBuffer, m_showValueScaleNumbers, and m_widgetArea.
|
private |
Definition at line 446 of file kis_color_selector.cpp.
References createRing(), m_colorRings, m_inverseSaturation, m_isDirtyWheel, and m_numPieces.
|
private |
Definition at line 512 of file kis_color_selector.cpp.
References dbgPlugins, KisColor::getH(), KisColor::getS(), KisColor::getX(), and m_updateColorCompressor.
|
overrideslot |
Definition at line 206 of file kis_color_selector.cpp.
References m_mainComponent, m_subComponent, KisColorSelectorBase::reset(), and KisColorSelectorComponent::setDirty().
|
overrideprotected |
Definition at line 258 of file kis_color_selector.cpp.
References buttonSize(), displaySettingsButton(), iconSize(), KisColorSelectorRing::innerRadius(), m_button, m_configuration, m_lastRealColor, m_mainComponent, m_ring, m_square, m_subComponent, m_triangle, KisColorSelectorConfiguration::mainType, KisColorSelectorConfiguration::Ring, setColor(), KisColorSelectorComponent::setGeometry(), KisColorSelectorConfiguration::subType, KisColorSelectorConfiguration::Triangle, and KisColorSelectorConfiguration::Wheel.
|
overrideprivate |
| void KisColorSelector::saveSettings | ( | ) |
Definition at line 1081 of file kis_color_selector.cpp.
References KisColor::getH(), KisColor::getS(), KisColor::getX(), m_colorRings, m_colorSpace, m_defaultHueSteps, m_defaultSaturationSteps, m_defaultValueScaleSteps, m_enforceGamutMask, m_inverseSaturation, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, m_numLightPieces, m_numPieces, m_selectedColor, m_showBgColor, m_showValueScaleNumbers, and KisConfig::writeEntry().
Definition at line 122 of file kis_color_selector.cpp.
References KisColor::getH(), getHueIndex(), getLightIndex(), KisColor::getS(), getSaturationIndex(), KisColor::getX(), m_colorConverter, m_colorSpace, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, m_selectedColor, m_selectedLightPiece, m_selectedPiece, m_selectedRing, and PI2.
Definition at line 155 of file kis_color_selector.cpp.
References dbgPlugins, KisColor::getH(), KisColor::getS(), KisColor::getX(), m_bgColor, m_colorConverter, m_colorSpace, m_isDirtyColorPreview, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, and m_widgetUpdatesSelf.
Reimplemented from KisColorSelectorBase.
Definition at line 367 of file kis_color_selector.cpp.
References m_lastRealColor, m_mainComponent, m_signalCompressor, m_subComponent, KisColorSelectorComponent::setColor(), and KisSignalCompressor::start().
| void KisColorSelector::setColorConverter | ( | KisDisplayColorConverter * | colorConverter | ) |
Definition at line 75 of file kis_color_selector.cpp.
References m_bgColor, m_colorConverter, m_colorSpace, m_fgColor, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, and m_selectedColor.
| void KisColorSelector::setColorSpace | ( | KisColor::Type | type | ) |
Definition at line 60 of file kis_color_selector.cpp.
References dbgPlugins, m_colorConverter, m_colorSpace, m_isDirtyLightStrip, m_isDirtyWheel, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, and m_selectedColor.
| void KisColorSelector::setConfiguration | ( | KisColorSelectorConfiguration | conf | ) |
Definition at line 79 of file kis_color_selector.cpp.
References connect(), KisColorSelectorConfiguration::Hluma, m_configuration, m_mainComponent, m_ring, m_signalCompressor, m_slider, m_square, m_subComponent, m_triangle, m_wheel, KisColorSelectorConfiguration::mainType, KisColorSelectorConfiguration::mainTypeParameter, resizeEvent(), KisColorSelectorConfiguration::Ring, KisColorSelectorComponent::setConfiguration(), KisColorSelectorComponent::setGeometry(), KisColorSelectorConfiguration::Slider, KisColorSelectorConfiguration::Square, KisColorSelectorConfiguration::subType, KisColorSelectorConfiguration::subTypeParameter, KisColorSelectorConfiguration::SY, KisColorSelectorConfiguration::Triangle, and KisColorSelectorConfiguration::Wheel.
| void KisColorSelector::setDefaultHueSteps | ( | int | num | ) |
Definition at line 1148 of file kis_color_selector.cpp.
References m_defaultHueSteps, MAX_NUM_HUE_PIECES, and MIN_NUM_HUE_PIECES.
| void KisColorSelector::setDefaultSaturationSteps | ( | int | num | ) |
Definition at line 1154 of file kis_color_selector.cpp.
References m_defaultSaturationSteps, MAX_NUM_SATURATION_RINGS, and MIN_NUM_SATURATION_RINGS.
| void KisColorSelector::setDefaultValueScaleSteps | ( | int | num | ) |
Definition at line 1160 of file kis_color_selector.cpp.
References m_defaultValueScaleSteps, MAX_NUM_LIGHT_PIECES, and MIN_NUM_LIGHT_PIECES.
| void KisColorSelector::setDirty | ( | ) |
Definition at line 228 of file kis_color_selector.cpp.
References m_isDirtyColorPreview, m_isDirtyGamutMask, m_isDirtyLightStrip, and m_isDirtyWheel.
|
inline |
Definition at line 91 of file kis_color_selector.h.
References m_blipDisplay.
| void KisColorSelector::setEnforceGamutMask | ( | bool | enforce | ) |
Definition at line 264 of file kis_color_selector.cpp.
References m_enforceGamutMask, m_isDirtyGamutMask, and m_isDirtyWheel.
Definition at line 131 of file kis_color_selector.cpp.
References dbgPlugins, KisColor::getH(), KisColor::getS(), KisColor::getX(), m_colorConverter, m_colorSpace, m_fgColor, m_isDirtyColorPreview, m_isDirtyLightStrip, m_isDirtyWheel, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, m_selectedColor, and m_widgetUpdatesSelf.
| void KisColorSelector::setGamutMask | ( | KoGamutMaskSP | gamutMask | ) |
Definition at line 210 of file kis_color_selector.cpp.
References gamutMask(), m_currentGamutMask, m_enforceGamutMask, m_gamutMaskViewTransform, m_isDirtyGamutMask, m_isDirtyWheel, and m_renderArea.
| void KisColorSelector::setGamutMaskOn | ( | bool | gamutMaskOn | ) |
Definition at line 249 of file kis_color_selector.cpp.
References gamutMaskOn(), m_currentGamutMask, m_enforceGamutMask, m_gamutMaskOn, m_isDirtyGamutMask, and m_isDirtyWheel.
| void KisColorSelector::setInverseSaturation | ( | bool | inverse | ) |
Definition at line 200 of file kis_color_selector.cpp.
References getNumPieces(), getNumRings(), m_inverseSaturation, m_selectedRing, and recalculateRings().
| void KisColorSelector::setLight | ( | qreal | light = 0.0f | ) |
Definition at line 172 of file kis_color_selector.cpp.
References getLightIndex(), KisColor::getX(), m_isDirtyLightStrip, m_selectedColor, m_selectedLightPiece, and KisColor::setX().
| void KisColorSelector::setLumaCoefficients | ( | qreal | lR, |
| qreal | lG, | ||
| qreal | lB, | ||
| qreal | lGamma ) |
Definition at line 180 of file kis_color_selector.cpp.
References dbgPlugins, m_colorConverter, m_colorSpace, m_isDirtyLightStrip, m_isDirtyWheel, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, and m_selectedColor.
| void KisColorSelector::setNumLightPieces | ( | int | num | ) |
Definition at line 86 of file kis_color_selector.cpp.
References getLightIndex(), KisColor::getX(), m_selectedColor, m_selectedLightPiece, MAX_NUM_LIGHT_PIECES, MIN_NUM_LIGHT_PIECES, and recalculateAreas().
| void KisColorSelector::setNumPieces | ( | int | num | ) |
Definition at line 98 of file kis_color_selector.cpp.
References KisColor::getH(), getHueIndex(), getNumRings(), m_selectedColor, m_selectedPiece, MAX_NUM_HUE_PIECES, MIN_NUM_HUE_PIECES, PI2, and recalculateRings().
| void KisColorSelector::setNumRings | ( | int | num | ) |
Definition at line 110 of file kis_color_selector.cpp.
References getNumPieces(), KisColor::getS(), getSaturationIndex(), m_selectedColor, m_selectedRing, MAX_NUM_SATURATION_RINGS, MIN_NUM_SATURATION_RINGS, and recalculateRings().
| void KisColorSelector::setShowBgColor | ( | bool | value | ) |
Definition at line 1166 of file kis_color_selector.cpp.
References m_isDirtyColorPreview, m_showBgColor, and value().
| void KisColorSelector::setShowValueScaleNumbers | ( | bool | value | ) |
Definition at line 1173 of file kis_color_selector.cpp.
References getNumLightPieces(), m_showValueScaleNumbers, recalculateAreas(), and value().
|
signal |
|
slot |
Definition at line 184 of file kis_color_selector.cpp.
References slotGamutMaskToggle().
|
slot |
Definition at line 178 of file kis_color_selector.cpp.
References m_mainComponent, m_subComponent, and KisColorSelectorComponent::updateGamutMaskPreview().
|
slot |
Definition at line 162 of file kis_color_selector.cpp.
References gamutMask(), m_mainComponent, m_subComponent, KisColorSelectorComponent::setGamutMask(), and slotGamutMaskToggle().
|
slot |
Definition at line 189 of file kis_color_selector.cpp.
References m_mainComponent, m_subComponent, and KisColorSelectorComponent::toggleGamutMask().
|
slot |
Definition at line 170 of file kis_color_selector.cpp.
References m_mainComponent, m_subComponent, slotGamutMaskToggle(), and KisColorSelectorComponent::unsetGamutMask().
| void KisColorSelector::slotUpdateColorAndPreview | ( | QPair< KisColor, Acs::ColorRole > | color | ) |
Definition at line 524 of file kis_color_selector.cpp.
References dbgPlugins, Acs::Foreground, KisColor::getH(), KisColor::getS(), KisColor::getX(), m_bgColor, m_colorConverter, m_colorSpace, m_fgColor, m_isDirtyColorPreview, m_isDirtyLightStrip, m_isDirtyWheel, m_lumaB, m_lumaG, m_lumaGamma, m_lumaR, m_selectedColor, sigBgColorChanged(), and sigFgColorChanged().
| void KisColorSelector::updateIcons | ( | ) |
update icons when a theme update happens
Definition at line 195 of file kis_color_selector.cpp.
References KisIconUtils::loadIcon(), and m_button.
|
overrideslot |
Definition at line 141 of file kis_color_selector.cpp.
References KisColorSelectorConfiguration::fromString(), KisColorSelectorBase::m_canvas, setConfiguration(), slotGamutMaskSet(), slotGamutMaskToggle(), and KisColorSelectorBase::updateSettings().
|
private |
Definition at line 154 of file kis_color_selector.h.
|
private |
Definition at line 80 of file kis_color_selector.h.
|
private |
Definition at line 69 of file kis_color_selector.h.
|
private |
Definition at line 164 of file kis_color_selector.h.
|
private |
Definition at line 163 of file kis_color_selector.h.
|
private |
Definition at line 144 of file kis_color_selector.h.
|
private |
Definition at line 158 of file kis_color_selector.h.
Definition at line 165 of file kis_color_selector.h.
|
private |
Definition at line 145 of file kis_color_selector.h.
|
private |
Definition at line 76 of file kis_color_selector.h.
|
private |
Definition at line 176 of file kis_color_selector.h.
|
private |
Definition at line 79 of file kis_color_selector.h.
|
private |
Definition at line 169 of file kis_color_selector.h.
|
private |
Definition at line 170 of file kis_color_selector.h.
|
private |
Definition at line 171 of file kis_color_selector.h.
|
private |
Definition at line 177 of file kis_color_selector.h.
|
private |
Definition at line 153 of file kis_color_selector.h.
|
private |
Definition at line 175 of file kis_color_selector.h.
|
private |
Definition at line 181 of file kis_color_selector.h.
|
private |
Definition at line 72 of file kis_color_selector.h.
|
private |
if Krita starts with a reference to this component that is attached to a canvas, it will call setCanvas() that check will be what ultimately decides whether this component will look enabled or disabled This color selector is sometimes not attached to the canvas, so we shouldn't disable it in that situation One instance of that is when you select the color wheel type from the settings.
Definition at line 88 of file kis_color_selector.h.
|
private |
Definition at line 148 of file kis_color_selector.h.
|
private |
Definition at line 187 of file kis_color_selector.h.
|
private |
Definition at line 186 of file kis_color_selector.h.
|
private |
Definition at line 185 of file kis_color_selector.h.
|
private |
Definition at line 184 of file kis_color_selector.h.
|
private |
Definition at line 81 of file kis_color_selector.h.
|
private |
Definition at line 78 of file kis_color_selector.h.
|
private |
Definition at line 161 of file kis_color_selector.h.
|
private |
Definition at line 157 of file kis_color_selector.h.
|
private |
Definition at line 191 of file kis_color_selector.h.
|
private |
Definition at line 190 of file kis_color_selector.h.
|
private |
Definition at line 192 of file kis_color_selector.h.
|
private |
Definition at line 189 of file kis_color_selector.h.
|
private |
Definition at line 70 of file kis_color_selector.h.
|
private |
Definition at line 156 of file kis_color_selector.h.
|
private |
Definition at line 179 of file kis_color_selector.h.
|
private |
Definition at line 162 of file kis_color_selector.h.
|
private |
Definition at line 147 of file kis_color_selector.h.
|
private |
Definition at line 146 of file kis_color_selector.h.
|
private |
Definition at line 166 of file kis_color_selector.h.
|
private |
Definition at line 160 of file kis_color_selector.h.
|
private |
Definition at line 155 of file kis_color_selector.h.
|
private |
Definition at line 64 of file kis_color_selector.h.
|
private |
Definition at line 152 of file kis_color_selector.h.
|
private |
Definition at line 151 of file kis_color_selector.h.
|
private |
Definition at line 150 of file kis_color_selector.h.
|
private |
Definition at line 149 of file kis_color_selector.h.
|
private |
Definition at line 173 of file kis_color_selector.h.
|
private |
Definition at line 172 of file kis_color_selector.h.
|
private |
Definition at line 74 of file kis_color_selector.h.
|
private |
Definition at line 66 of file kis_color_selector.h.
|
private |
Definition at line 67 of file kis_color_selector.h.
|
private |
Definition at line 71 of file kis_color_selector.h.
|
private |
Definition at line 65 of file kis_color_selector.h.
|
private |
Definition at line 195 of file kis_color_selector.h.
|
private |
Definition at line 68 of file kis_color_selector.h.
|
private |
Definition at line 159 of file kis_color_selector.h.
|
private |
Definition at line 183 of file kis_color_selector.h.