|
Krita Source Code Documentation
|
#include <kis_color_input.h>
Inheritance diagram for KisHexColorInput:Public Slots | |
| void | setValue () |
| void | update () |
Public Member Functions | |
| KisHexColorInput (QWidget *parent, KoColor *color, KoColorDisplayRendererInterface *displayRenderer=KoDumbColorDisplayRenderer::instance(), bool usePercentage=false, bool usePreview=false) | |
Public Member Functions inherited from KisColorInput | |
| KisColorInput (QWidget *parent, const KoChannelInfo *, KoColor *color, KoColorDisplayRendererInterface *displayRenderer=KoDumbColorDisplayRenderer::instance(), bool usePercentage=false) | |
| virtual void | setPercentageWise (bool val) |
| bool | usePercentage () const |
Protected Member Functions | |
| QWidget * | createInput () override |
Protected Member Functions inherited from KisColorInput | |
| void | init () |
Private Attributes | |
| QLabel * | m_colorPreview =nullptr |
| QLineEdit * | m_hexInput {nullptr} |
Additional Inherited Members | |
Signals inherited from KisColorInput | |
| void | updated () |
Protected Attributes inherited from KisColorInput | |
| const KoChannelInfo * | m_channelInfo {nullptr} |
| KoColor * | m_color {nullptr} |
| KoColorSlider * | m_colorSlider {nullptr} |
| KoColorDisplayRendererInterface * | m_displayRenderer {nullptr} |
| bool | m_usePercentage {false} |
Definition at line 90 of file kis_color_input.h.
| KisHexColorInput::KisHexColorInput | ( | QWidget * | parent, |
| KoColor * | color, | ||
| KoColorDisplayRendererInterface * | displayRenderer = KoDumbColorDisplayRenderer::instance(), | ||
| bool | usePercentage = false, | ||
| bool | usePreview = false ) |
Definition at line 330 of file kis_color_input.cpp.
References createInput(), and m_colorPreview.
|
overrideprotectedvirtual |
Implements KisColorInput.
Definition at line 392 of file kis_color_input.cpp.
References KoColorSpace::colorChannelCount(), KoColor::colorSpace(), connect(), KisColorInput::m_color, m_hexInput, and setValue().
|
slot |
Definition at line 353 of file kis_color_input.cpp.
References KoColorSpace::channels, KoChannelInfo::channelType(), KoChannelInfo::channelValueType(), KoChannelInfo::COLOR, KoColor::colorSpace(), KoColor::data(), KoChannelInfo::displayOrderSorted(), KisColorInput::m_color, m_hexInput, KoChannelInfo::pos(), KoChannelInfo::UINT8, KisColorInput::updated(), and value().
|
slot |
Definition at line 373 of file kis_color_input.cpp.
References KoColorSpace::channels, KoChannelInfo::channelType(), KoChannelInfo::channelValueType(), KoChannelInfo::COLOR, KoColor::colorSpace(), KoColor::data(), KoChannelInfo::displayOrderSorted(), KisColorInput::m_color, m_colorPreview, KisColorInput::m_displayRenderer, m_hexInput, KoChannelInfo::pos(), KoColorDisplayRendererInterface::toQColor(), and KoChannelInfo::UINT8.
|
private |
Definition at line 102 of file kis_color_input.h.
|
private |
Definition at line 101 of file kis_color_input.h.