#include <WGShadeSelector.h>
Definition at line 19 of file WGShadeSelector.h.
◆ WGShadeSelector()
Definition at line 15 of file WGShadeSelector.cpp.
18{
19 QVBoxLayout* l = new QVBoxLayout(this);
20 l->setSpacing(1);
21 l->setContentsMargins(0, 0, 0, 0);
22 setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed));
23
25}
KisVisualColorModelSP m_model
References connectToModel().
◆ connectToModel()
| void WGShadeSelector::connectToModel |
( |
| ) |
|
|
protected |
◆ mousePressEvent()
| void WGShadeSelector::mousePressEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ setModel()
◆ slotChannelValuesChanged
| void WGShadeSelector::slotChannelValuesChanged |
( |
const QVector4D & | values | ) |
|
|
slot |
◆ slotReset
| void WGShadeSelector::slotReset |
( |
| ) |
|
|
privateslot |
◆ slotSliderInteraction
| void WGShadeSelector::slotSliderInteraction |
( |
bool | active | ) |
|
|
privateslot |
◆ slotSliderValuesChanged
| void WGShadeSelector::slotSliderValuesChanged |
( |
const QVector4D & | values | ) |
|
|
privateslot |
◆ updateSettings()
| void WGShadeSelector::updateSettings |
( |
| ) |
|
|
overridevirtual |
Reimplemented from WGSelectorWidgetBase.
Definition at line 43 of file WGShadeSelector.cpp.
44{
48
49 while (config.size() >
m_sliders.size()) {
55 }
56 while (config.size() <
m_sliders.size()) {
59 }
60
61 for (int i=0; i < config.size(); i++) {
62 m_sliders[i]->setGradient(config[i].gradient, config[i].offset);
63 m_sliders[i]->setDisplayMode(config[i].patchCount < 0, config[i].patchCount);
65 }
69
73 }
74}
void slotSliderValuesChanged(const QVector4D &values)
void slotSliderInteraction(bool active)
const NumericSetting< int > shadeSelectorLineHeight
const GenericSetting< bool > shadeSelectorUpdateOnExternalChanges
const GenericSetting< bool > shadeSelectorUpdateOnInteractionEnd
const GenericSetting< bool > shadeSelectorUpdateOnRightClick
References connect(), WGSelectorWidgetBase::displayConfiguration(), m_lineHeight, m_model, m_resetOnExternalUpdate, m_resetOnInteractions, m_resetOnRightClick, m_sliders, KisVisualColorModel::None, WGConfig::shadeSelectorLineHeight, WGConfig::shadeSelectorUpdateOnExternalChanges, WGConfig::shadeSelectorUpdateOnInteractionEnd, WGConfig::shadeSelectorUpdateOnRightClick, WGSelectorWidgetBase::sigChannelValuesChanged(), slotChannelValuesChanged(), slotReset(), slotSliderInteraction(), and slotSliderValuesChanged().
◆ m_allowUpdates
| bool WGShadeSelector::m_allowUpdates {true} |
|
private |
◆ m_initialized
| bool WGShadeSelector::m_initialized {false} |
|
private |
◆ m_lineHeight
| int WGShadeSelector::m_lineHeight {10} |
|
private |
◆ m_model
◆ m_resetOnExternalUpdate
| bool WGShadeSelector::m_resetOnExternalUpdate {true} |
|
private |
◆ m_resetOnInteractions
| bool WGShadeSelector::m_resetOnInteractions {false} |
|
private |
◆ m_resetOnRightClick
| bool WGShadeSelector::m_resetOnRightClick {true} |
|
private |
◆ m_sliders
The documentation for this class was generated from the following files: