|
Krita Source Code Documentation
|
#include <WGActionManager.h>
Inheritance diagram for WGActionManager:Public Member Functions | |
| void | registerActions (KisViewManager *viewManager) |
| void | setCanvas (KisCanvas2 *canvas, KisCanvas2 *oldCanvas) |
| void | setLastUsedColor (const KoColor &col) |
| WGActionManager (WGColorSelectorDock *parentDock=nullptr) | |
| ~WGActionManager () override | |
Private Slots | |
| void | slotChannelValuesChanged () |
| void | slotColorInteraction (bool active) |
| void | slotColorPatchInteraction (bool active) |
| void | slotColorSelected (const KoColor &color) |
| void | slotConfigChanged () |
| void | slotDecreaseLightness () |
| void | slotDecreaseSaturation () |
| void | slotIncreaseLightness () |
| void | slotIncreaseSaturation () |
| void | slotPopupClosed (WGSelectorPopup *popup) |
| void | slotSelectorConfigChanged () |
| void | slotShiftHueCCW () |
| void | slotShiftHueCW () |
| void | slotShowColorHistoryPopup () |
| void | slotShowColorSelectorPopup () |
| void | slotShowMyPaintSelectorPopup () |
| void | slotShowShadeSelectorPopup () |
| void | slotUpdateDocker () |
Private Member Functions | |
| void | loadColorSelectorSettings (WGConfig::Accessor &cfg) |
| void | modifyHSX (int channel, float amount) |
| void | showPopup (WGSelectorPopup *popup) |
| void | updateWidgetSize (QWidget *widget, int size) |
Definition at line 30 of file WGActionManager.h.
|
explicit |
Definition at line 29 of file WGActionManager.cpp.
References connect(), m_colorChangeCompressor, m_colorModel, m_lastUsedColor, WGConfig::notifier(), KoColor::setOpacity(), slotChannelValuesChanged(), slotConfigChanged(), slotSelectorConfigChanged(), and slotUpdateDocker().
|
override |
Definition at line 45 of file WGActionManager.cpp.
References m_colorHistoryPopup, m_colorSelectorPopup, m_myPaintSelectorPopup, and m_shadeSelectorPopup.
|
private |
Definition at line 130 of file WGActionManager.cpp.
References m_colorSelector, WGConfig::selectorRenderMode, KisVisualColorSelector::setRenderMode(), and slotSelectorConfigChanged().
|
private |
Definition at line 136 of file WGActionManager.cpp.
References KisVisualColorModel::channelValues(), WGColorSelectorDock::colorModel(), KisVisualColorModel::isHSXModel(), m_docker, and WGColorSelectorDock::setChannelValues().
| void WGActionManager::registerActions | ( | KisViewManager * | viewManager | ) |
Definition at line 63 of file WGActionManager.cpp.
References KisViewManager::actionManager(), connect(), KisActionManager::createAction(), slotDecreaseLightness(), slotDecreaseSaturation(), slotIncreaseLightness(), slotIncreaseSaturation(), slotShiftHueCCW(), slotShiftHueCW(), slotShowColorHistoryPopup(), slotShowColorSelectorPopup(), slotShowMyPaintSelectorPopup(), and slotShowShadeSelectorPopup().
| void WGActionManager::setCanvas | ( | KisCanvas2 * | canvas, |
| KisCanvas2 * | oldCanvas ) |
Definition at line 53 of file WGActionManager.cpp.
References KisCanvas2::displayColorConverter, m_colorSelector, m_displayConfig, and KisVisualColorSelector::setDisplayRenderer().
Definition at line 89 of file WGActionManager.cpp.
References m_lastUsedColor.
|
private |
Definition at line 109 of file WGActionManager.cpp.
References WGColorSelectorDock::colorModel(), m_colorModel, m_colorTooltip, m_currentPopup, m_displayConfig, m_docker, m_isSynchronizing, m_lastUsedColor, WGColorPreviewToolTip::setCurrentColor(), WGColorPreviewToolTip::setLastUsedColor(), WGColorPreviewToolTip::setPreviousColor(), WGColorPreviewToolTip::show(), and WGSelectorPopup::slotShowPopup().
|
privateslot |
Definition at line 305 of file WGActionManager.cpp.
References m_colorChangeCompressor, m_colorModel, m_colorTooltip, m_currentPopup, m_displayConfig, m_isSynchronizing, WGColorPreviewToolTip::setCurrentColor(), and KisSignalCompressor::start().
|
privateslot |
Definition at line 318 of file WGActionManager.cpp.
References m_colorModel, m_colorTooltip, m_displayConfig, WGColorPreviewToolTip::setCurrentColor(), and WGColorPreviewToolTip::setPreviousColor().
|
privateslot |
Definition at line 327 of file WGActionManager.cpp.
References WGColorSelectorDock::displayColorConverter(), m_colorTooltip, m_docker, KoCanvasObserverBase::observedCanvas(), KoCanvasBase::resourceManager, WGColorPreviewToolTip::setCurrentColor(), WGColorPreviewToolTip::setPreviousColor(), and KisDisplayColorConverter::toQColor().
Definition at line 340 of file WGActionManager.cpp.
References WGColorSelectorDock::displayColorConverter(), m_colorTooltip, m_docker, KoCanvasObserverBase::observedCanvas(), KoCanvasBase::resourceManager, WGColorPreviewToolTip::setCurrentColor(), and KisDisplayColorConverter::toQColor().
|
privateslot |
Definition at line 148 of file WGActionManager.cpp.
References KIS_ASSERT, loadColorSelectorSettings(), m_colorHistoryPopup, m_colorSelector, m_displayConfig, m_myPaintSelector, m_shadeSelector, WGConfig::popupSize, WGConfig::proofToPaintingColors, WGSelectorPopup::selectorWidget(), KisVisualColorSelector::setProofColors(), WGSelectorWidgetBase::updateSettings(), WGShadeSelector::updateSettings(), and updateWidgetSize().
|
privateslot |
Definition at line 280 of file WGActionManager.cpp.
References modifyHSX().
|
privateslot |
Definition at line 290 of file WGActionManager.cpp.
References modifyHSX().
|
privateslot |
Definition at line 275 of file WGActionManager.cpp.
References modifyHSX().
|
privateslot |
Definition at line 285 of file WGActionManager.cpp.
References modifyHSX().
|
privateslot |
Definition at line 185 of file WGActionManager.cpp.
References m_colorTooltip, and m_currentPopup.
|
privateslot |
Definition at line 176 of file WGActionManager.cpp.
References m_colorSelector, and KisVisualColorSelector::setConfiguration().
|
privateslot |
Definition at line 300 of file WGActionManager.cpp.
References modifyHSX().
|
privateslot |
Definition at line 295 of file WGActionManager.cpp.
References modifyHSX().
|
privateslot |
Definition at line 257 of file WGActionManager.cpp.
References WGColorSelectorDock::colorHistory(), connect(), get(), WGColorPatches::History, m_colorHistoryPopup, m_displayConfig, m_docker, WGSelectorWidgetBase::PopupMode, WGConfig::popupSize, WGColorPatches::setPreset(), WGSelectorPopup::setSelectorWidget(), WGSelectorWidgetBase::setUiMode(), showPopup(), slotColorPatchInteraction(), slotColorSelected(), slotPopupClosed(), WGColorPatches::updateSettings(), and updateWidgetSize().
|
privateslot |
Definition at line 193 of file WGActionManager.cpp.
References connect(), KisCanvasResourceProvider::currentGamutMask(), KisCanvasResourceProvider::gamutMaskActive(), KisCanvas2::imageView(), loadColorSelectorSettings(), m_colorModel, m_colorSelector, m_colorSelectorPopup, m_displayConfig, m_docker, KoCanvasObserverBase::observedCanvas(), WGConfig::popupSize, KisVisualColorSelector::setDisplayRenderer(), WGSelectorPopup::setSelectorWidget(), showPopup(), slotColorInteraction(), KisVisualColorSelector::slotGamutMaskChanged(), KisVisualColorSelector::slotGamutMaskUnset(), slotPopupClosed(), and updateWidgetSize().
|
privateslot |
Definition at line 240 of file WGActionManager.cpp.
References connect(), get(), m_colorModel, m_displayConfig, m_myPaintSelector, m_myPaintSelectorPopup, WGSelectorWidgetBase::PopupMode, WGConfig::popupSize, WGMyPaintShadeSelector::setModel(), WGSelectorPopup::setSelectorWidget(), showPopup(), slotColorInteraction(), slotPopupClosed(), and updateWidgetSize().
|
privateslot |
Definition at line 224 of file WGActionManager.cpp.
References connect(), get(), m_colorModel, m_displayConfig, m_shadeSelector, m_shadeSelectorPopup, WGConfig::popupSize, WGSelectorPopup::setSelectorWidget(), showPopup(), slotColorInteraction(), slotPopupClosed(), WGShadeSelector::updateSettings(), and updateWidgetSize().
|
privateslot |
Definition at line 352 of file WGActionManager.cpp.
References m_colorModel, m_docker, and WGColorSelectorDock::setChannelValues().
|
private |
Definition at line 94 of file WGActionManager.cpp.
|
private |
Definition at line 70 of file WGActionManager.h.
|
private |
Definition at line 75 of file WGActionManager.h.
|
private |
Definition at line 79 of file WGActionManager.h.
|
private |
Definition at line 76 of file WGActionManager.h.
|
private |
Definition at line 72 of file WGActionManager.h.
|
private |
Definition at line 69 of file WGActionManager.h.
|
private |
Definition at line 71 of file WGActionManager.h.
|
private |
Definition at line 68 of file WGActionManager.h.
|
private |
Definition at line 67 of file WGActionManager.h.
|
private |
Definition at line 81 of file WGActionManager.h.
|
private |
Definition at line 80 of file WGActionManager.h.
|
private |
Definition at line 78 of file WGActionManager.h.
|
private |
Definition at line 74 of file WGActionManager.h.
|
private |
Definition at line 77 of file WGActionManager.h.
|
private |
Definition at line 73 of file WGActionManager.h.