|
Krita Source Code Documentation
|
#include <artisticcolorselector_dock.h>
Inheritance diagram for ArtisticColorSelectorDock:Public Member Functions | |
| ArtisticColorSelectorDock () | |
| QString | observerName () override |
| void | setCanvas (KoCanvasBase *canvas) override |
| void | setViewManager (KisViewManager *kisview) override |
| void | unsetCanvas () override |
| ~ArtisticColorSelectorDock () override | |
Public Member Functions inherited from KisMainwindowObserver | |
| KisMainwindowObserver () | |
| ~KisMainwindowObserver () override | |
Public Member Functions inherited from KoCanvasObserverBase | |
| KoCanvasObserverBase () | |
| KoCanvasBase * | observedCanvas () const |
| void | setObservedCanvas (KoCanvasBase *canvas) |
| void | unsetObservedCanvas () |
| virtual | ~KoCanvasObserverBase () |
Private Slots | |
| void | slotBgColorChanged (const KisColor &color) |
| void | slotCanvasResourceChanged (int key, const QVariant &value) |
| void | slotColorSpaceSelected () |
| void | slotFgColorChanged (const KisColor &color) |
| void | slotGamutMaskDeactivate () |
| void | slotGamutMaskPreviewUpdate () |
| void | slotGamutMaskSet (KoGamutMaskSP mask) |
| void | slotGamutMaskToggle (bool value) |
| void | slotGamutMaskUnset () |
| void | slotPreferenceChanged () |
| void | slotResetDefaultSettings () |
| void | slotSelectorSettingsChanged () |
Private Attributes | |
| KisCanvas2 * | m_canvas |
| QButtonGroup * | m_hsxButtons |
| QIcon | m_iconMaskOff |
| QIcon | m_iconMaskOn |
| QPixmap | m_infinityPixmap |
| ARCSSettingsUI * | m_preferencesUI |
| KisCanvasResourceProvider * | m_resourceProvider |
| KoGamutMaskSP | m_selectedMask |
| ArtisticColorSelectorUI * | m_selectorUI |
| WheelPreferencesPopupUI * | m_wheelPrefsUI |
Additional Inherited Members |
Definition at line 31 of file artisticcolorselector_dock.h.
| ArtisticColorSelectorDock::ArtisticColorSelectorDock | ( | ) |
Definition at line 65 of file artisticcolorselector_dock.cpp.
References connect(), KisColor::HSI, KisColor::HSL, KisColor::HSV, KisColor::HSY, KisIconUtils::loadIcon(), m_hsxButtons, m_infinityPixmap, m_preferencesUI, m_selectorUI, m_wheelPrefsUI, MAX_NUM_HUE_PIECES, MAX_NUM_LIGHT_PIECES, MAX_NUM_SATURATION_RINGS, MIN_NUM_HUE_PIECES, MIN_NUM_LIGHT_PIECES, MIN_NUM_SATURATION_RINGS, MIN_NUM_UI_HUE_PIECES, MIN_NUM_UI_LIGHT_PIECES, slotBgColorChanged(), slotColorSpaceSelected(), slotFgColorChanged(), slotPreferenceChanged(), and slotResetDefaultSettings().
|
override |
Definition at line 205 of file artisticcolorselector_dock.cpp.
References m_hsxButtons, and m_selectorUI.
|
inlineoverridevirtual |
Reimplemented from KoCanvasObserverBase.
Definition at line 38 of file artisticcolorselector_dock.h.
|
overridevirtual |
re-implement this method in your canvas observer. It will be called whenever a canvas becomes active. Note that you are responsible for not connecting more than one time to the signals of a canvas or any of the QObjects you can access through the canvas.
Implements KoCanvasObserverBase.
Definition at line 378 of file artisticcolorselector_dock.cpp.
References connect(), KisCanvas2::disconnectCanvasObserver(), KisCanvas2::displayColorConverter, m_canvas, m_selectorUI, KoCanvasBase::resourceManager, slotCanvasResourceChanged(), and slotSelectorSettingsChanged().
|
overridevirtual |
Implements KisMainwindowObserver.
Definition at line 211 of file artisticcolorselector_dock.cpp.
References KoCanvasResourceProvider::backgroundColor(), KisViewManager::canvasResourceProvider(), connect(), KoCanvasResourceProvider::foregroundColor(), m_resourceProvider, m_selectorUI, KisCanvasResourceProvider::resourceManager(), slotGamutMaskDeactivate(), slotGamutMaskPreviewUpdate(), slotGamutMaskSet(), and slotGamutMaskUnset().
Definition at line 248 of file artisticcolorselector_dock.cpp.
References KoCanvasResourceProvider::backgroundColor(), KoColor::colorSpace(), m_resourceProvider, KisCanvasResourceProvider::resourceManager(), KoCanvasResourceProvider::setBackgroundColor(), and KisColor::toKoColor().
|
privateslot |
Definition at line 232 of file artisticcolorselector_dock.cpp.
References KoCanvasResource::BackgroundColor, KoCanvasResource::ForegroundColor, m_selectorUI, and value().
|
privateslot |
Definition at line 255 of file artisticcolorselector_dock.cpp.
References KisColor::HSY, m_hsxButtons, m_preferencesUI, and m_selectorUI.
Definition at line 241 of file artisticcolorselector_dock.cpp.
References KoColor::colorSpace(), KoCanvasResourceProvider::foregroundColor(), m_resourceProvider, KisCanvasResourceProvider::resourceManager(), KoCanvasResourceProvider::setForegroundColor(), and KisColor::toKoColor().
|
privateslot |
Definition at line 442 of file artisticcolorselector_dock.cpp.
References slotGamutMaskToggle().
|
privateslot |
Definition at line 437 of file artisticcolorselector_dock.cpp.
References m_selectorUI.
|
privateslot |
Definition at line 409 of file artisticcolorselector_dock.cpp.
References m_selectedMask, m_selectorUI, and slotGamutMaskToggle().
|
privateslot |
Definition at line 367 of file artisticcolorselector_dock.cpp.
References m_selectedMask, and m_selectorUI.
|
privateslot |
Definition at line 425 of file artisticcolorselector_dock.cpp.
References m_selectedMask, m_selectorUI, and slotGamutMaskToggle().
|
privateslot |
Definition at line 276 of file artisticcolorselector_dock.cpp.
References DEFAULT_HUE_STEPS, m_preferencesUI, m_selectorUI, and m_wheelPrefsUI.
|
privateslot |
Definition at line 329 of file artisticcolorselector_dock.cpp.
References m_selectorUI, and m_wheelPrefsUI.
|
privateslot |
Definition at line 447 of file artisticcolorselector_dock.cpp.
References m_selectorUI.
|
overridevirtual |
Re-implement to notify the observer that its canvas is no longer among the living. The daisies, it is pushing up. This means you don't have to disconnect, it's dead.
The old canvas should be deleted already, so if you stored a pointer to it, don't touch!
Note that currently there is a bug where in certain specific circumstances unsetCanvas can be called when it shouldn't, see for example KWStatisticsDocker for a workaround for this problem.
Implements KoCanvasObserverBase.
Definition at line 402 of file artisticcolorselector_dock.cpp.
References KisDisplayColorConverter::dumbConverterInstance(), m_canvas, and m_selectorUI.
|
private |
Definition at line 58 of file artisticcolorselector_dock.h.
|
private |
Definition at line 60 of file artisticcolorselector_dock.h.
|
private |
Definition at line 66 of file artisticcolorselector_dock.h.
|
private |
Definition at line 67 of file artisticcolorselector_dock.h.
|
private |
Definition at line 69 of file artisticcolorselector_dock.h.
|
private |
Definition at line 62 of file artisticcolorselector_dock.h.
|
private |
Definition at line 59 of file artisticcolorselector_dock.h.
|
private |
Definition at line 64 of file artisticcolorselector_dock.h.
|
private |
Definition at line 61 of file artisticcolorselector_dock.h.
|
private |
Definition at line 63 of file artisticcolorselector_dock.h.