|
Krita Source Code Documentation
|
#include <KisCurveOptionWidget.h>
Inheritance diagram for KisCurveOptionWidget:Classes | |
| struct | Private |
Public Types | |
| using | data_type = KisCurveOptionDataCommon |
| enum | Flag { None = 0x0 , SupportsCommonCurve = 0x1 , SupportsCurveMode = 0x2 , UseFloatingPointStrength = 0x4 } |
Public Types inherited from KisPaintOpOption | |
| using | OptionalLodLimitationsReader = std::optional<lager::reader<KisPaintopLodLimitations>> |
| enum | PaintopCategory { GENERAL , COLOR , TEXTURE , FILTER , MASKING_BRUSH } |
Public Member Functions | |
| bool | isCheckable () const override |
| KisCurveOptionWidget (lager::cursor< KisCurveOptionDataCommon > optionData, KisPaintOpOption::PaintopCategory category, const QString &curveMinLabel, const QString &curveMaxLabel, int curveMinValue, int curveMaxValue, const QString &curveValueSuffix, lager::reader< bool > enabledLink=lager::make_constant(true), std::optional< lager::reader< std::tuple< qreal, qreal > > > strengthRangeReader=std::nullopt) | |
| KisCurveOptionWidget (lager::cursor< KisCurveOptionDataCommon > optionData, KisPaintOpOption::PaintopCategory category, const QString &curveMinLabel, const QString &curveMaxLabel, lager::reader< bool > enabledLink=lager::make_constant(true), std::optional< lager::reader< std::tuple< qreal, qreal > > > strengthRangeReader=std::nullopt) | |
| KisCurveOptionWidget (lager::cursor< KisCurveOptionDataCommon > optionData, KisPaintOpOption::PaintopCategory category, lager::reader< bool > enabledLink=lager::make_constant(true), std::optional< lager::reader< std::tuple< qreal, qreal > > > strengthRangeReader=std::nullopt) | |
| KisCurveOptionWidget (lager::cursor< KisCurveOptionDataCommon > optionData, PaintopCategory category, const QString &curveMinLabel, const QString &curveMaxLabel, int curveMinValue, int curveMaxValue, const QString &curveValueSuffix, const QString &strengthPrefix, const QString &strengthSuffix, qreal strengthDisplayMultiplier, lager::reader< bool > enabledLink=lager::make_constant(true), std::optional< lager::reader< std::tuple< qreal, qreal > > > strengthRangeReader=std::nullopt) | |
| void | readOptionSetting (const KisPropertiesConfigurationSP setting) override |
| void | show () |
| void | writeOptionSetting (KisPropertiesConfigurationSP setting) const override |
| ~KisCurveOptionWidget () override | |
Public Member Functions inherited from KisPaintOpOption | |
| KisPaintOpOption::PaintopCategory | category () const |
| QWidget * | configurationPage () const |
| OptionalLodLimitationsReader | effectiveLodLimitations () const |
| virtual bool | isChecked () const |
| bool | isEnabled () const |
| bool | isLocked () const |
| KisPaintOpOption (const QString &label, KisPaintOpOption::PaintopCategory category, bool checked) | |
| KisPaintOpOption (const QString &label, KisPaintOpOption::PaintopCategory category, lager::cursor< bool > checkedCursor) | |
| KisPaintOpOption (const QString &label, KisPaintOpOption::PaintopCategory category, lager::cursor< bool > checkedCursor, lager::reader< bool > externallyEnabledLink) | |
| QString | label () const |
| virtual void | lodLimitations (KisPaintopLodLimitations *l) const |
| virtual void | setCanvasResourcesInterface (KoCanvasResourcesInterfaceSP canvasResourcesInterface) |
| virtual void | setChecked (bool checked) |
| virtual void | setImage (KisImageWSP image) |
| void | setLocked (bool value) |
| virtual void | setNode (KisNodeWSP node) |
| virtual void | setResourcesInterface (KisResourcesInterfaceSP resourcesInterface) |
| void | startReadOptionSetting (const KisPropertiesConfigurationSP setting) |
| void | startWriteOptionSetting (KisPropertiesConfigurationSP setting) const |
| ~KisPaintOpOption () override | |
Protected Slots | |
| void | changeCurveArchShape () |
| void | changeCurveJShape () |
| void | changeCurveLinear () |
| void | changeCurveLShape () |
| void | changeCurveReverseLinear () |
| void | changeCurveReverseSShape () |
| void | changeCurveSShape () |
| void | changeCurveUShape () |
| void | updateThemedIcons () |
Protected Slots inherited from KisPaintOpOption | |
| void | emitCheckedChanged (bool checked) |
| void | emitEnabledChanged (bool enabled) |
| void | emitSettingChanged () |
Protected Member Functions | |
| QWidget * | curveWidget () |
| KisCurveOptionWidget (lager::cursor< KisCurveOptionDataCommon > optionData, KisPaintOpOption::PaintopCategory category, const QString &strengthPrefix, const QString &strengthSuffix, qreal strengthDisplayMultiplier, lager::reader< bool > enabledLink, std::optional< lager::reader< std::tuple< qreal, qreal > > > strengthRangeReader, KisCurveRangeModelFactory curveRangeModelFactory, KisCurveOptionInputControlsStrategyFactory inputControlsFactory, KisCurveOptionRangeControlsStrategyFactory rangeControlsFactory, Flags flags) | |
| void | setCurveWidgetsEnabled (bool value) |
| lager::cursor< qreal > | strengthValueDenorm () |
Protected Member Functions inherited from KisPaintOpOption | |
| KoCanvasResourcesInterfaceSP | canvasResourcesInterface () const |
| virtual OptionalLodLimitationsReader | lodLimitationsReader () const |
| KisResourcesInterfaceSP | resourcesInterface () const |
| void | setConfigurationPage (QWidget *page) |
Protected Attributes | |
| QScopedPointer< KisCurveOptionInputControlsStrategyInterface > | m_curveInputControlsStrategy |
| QComboBox * | m_curveMode {nullptr} |
| Ui_WdgCurveOption2 * | m_curveOptionWidget {nullptr} |
| QScopedPointer< KisCurveOptionRangeControlsStrategyInterface > | m_curveRangeControlsStrategy |
| const QScopedPointer< Private > | m_d |
| QWidget * | m_widget {nullptr} |
Protected Attributes inherited from KisPaintOpOption | |
| bool | m_checkable {false} |
| bool | m_locked {false} |
Additional Inherited Members | |
Signals inherited from KisPaintOpOption | |
| void | sigCheckedChanged (bool value) |
| void | sigEnabledChanged (bool value) |
| void | sigSettingChanged () |
Definition at line 23 of file KisCurveOptionWidget.h.
Definition at line 37 of file KisCurveOptionWidget.h.
| Enumerator | |
|---|---|
| None | |
| SupportsCommonCurve | |
| SupportsCurveMode | |
| UseFloatingPointStrength | |
Definition at line 27 of file KisCurveOptionWidget.h.
| KisCurveOptionWidget::KisCurveOptionWidget | ( | lager::cursor< KisCurveOptionDataCommon > | optionData, |
| KisPaintOpOption::PaintopCategory | category, | ||
| lager::reader< bool > | enabledLink = lager::make_constant(true), | ||
| std::optional< lager::reader< std::tuple< qreal, qreal > > > | strengthRangeReader = std::nullopt ) |
Definition at line 41 of file KisCurveOptionWidget.cpp.
| KisCurveOptionWidget::KisCurveOptionWidget | ( | lager::cursor< KisCurveOptionDataCommon > | optionData, |
| KisPaintOpOption::PaintopCategory | category, | ||
| const QString & | curveMinLabel, | ||
| const QString & | curveMaxLabel, | ||
| lager::reader< bool > | enabledLink = lager::make_constant(true), | ||
| std::optional< lager::reader< std::tuple< qreal, qreal > > > | strengthRangeReader = std::nullopt ) |
Definition at line 53 of file KisCurveOptionWidget.cpp.
| KisCurveOptionWidget::KisCurveOptionWidget | ( | lager::cursor< KisCurveOptionDataCommon > | optionData, |
| KisPaintOpOption::PaintopCategory | category, | ||
| const QString & | curveMinLabel, | ||
| const QString & | curveMaxLabel, | ||
| int | curveMinValue, | ||
| int | curveMaxValue, | ||
| const QString & | curveValueSuffix, | ||
| lager::reader< bool > | enabledLink = lager::make_constant(true), | ||
| std::optional< lager::reader< std::tuple< qreal, qreal > > > | strengthRangeReader = std::nullopt ) |
Definition at line 68 of file KisCurveOptionWidget.cpp.
| KisCurveOptionWidget::KisCurveOptionWidget | ( | lager::cursor< KisCurveOptionDataCommon > | optionData, |
| PaintopCategory | category, | ||
| const QString & | curveMinLabel, | ||
| const QString & | curveMaxLabel, | ||
| int | curveMinValue, | ||
| int | curveMaxValue, | ||
| const QString & | curveValueSuffix, | ||
| const QString & | strengthPrefix, | ||
| const QString & | strengthSuffix, | ||
| qreal | strengthDisplayMultiplier, | ||
| lager::reader< bool > | enabledLink = lager::make_constant(true), | ||
| std::optional< lager::reader< std::tuple< qreal, qreal > > > | strengthRangeReader = std::nullopt ) |
Definition at line 84 of file KisCurveOptionWidget.cpp.
|
protected |
Definition at line 108 of file KisCurveOptionWidget.cpp.
References changeCurveArchShape(), changeCurveJShape(), changeCurveLinear(), changeCurveLShape(), changeCurveReverseLinear(), changeCurveReverseSShape(), changeCurveSShape(), changeCurveUShape(), KisPaintOpOption::emitSettingChanged(), KisCurveOptionInputControlsStrategy< QSpinBox >::factory(), KisMultiSensorsSelector::highlightedSensorChanged(), KIS_SAFE_ASSERT_RECOVER, m_curveInputControlsStrategy, m_curveOptionWidget, m_curveRangeControlsStrategy, m_d, m_widget, KisPaintOpOption::setConfigurationPage(), KisMultiSensorsSelector::setCurrent(), setCurveWidgetsEnabled(), SupportsCommonCurve, SupportsCurveMode, kismpl::unzip_wrapper, updateThemedIcons(), UseFloatingPointStrength, and value().
|
override |
Definition at line 230 of file KisCurveOptionWidget.cpp.
References m_curveOptionWidget.
|
protectedslot |
Definition at line 352 of file KisCurveOptionWidget.cpp.
References m_d.
|
protectedslot |
Definition at line 325 of file KisCurveOptionWidget.cpp.
References m_d.
|
protectedslot |
Definition at line 288 of file KisCurveOptionWidget.cpp.
References m_d.
|
protectedslot |
Definition at line 334 of file KisCurveOptionWidget.cpp.
References m_d.
|
protectedslot |
Definition at line 296 of file KisCurveOptionWidget.cpp.
References m_d.
|
protectedslot |
Definition at line 315 of file KisCurveOptionWidget.cpp.
References m_d.
|
protectedslot |
Definition at line 304 of file KisCurveOptionWidget.cpp.
References m_d.
|
protectedslot |
Definition at line 343 of file KisCurveOptionWidget.cpp.
References m_d.
|
protected |
Definition at line 283 of file KisCurveOptionWidget.cpp.
References m_widget.
|
overridevirtual |
Reimplemented from KisPaintOpOption.
Definition at line 247 of file KisCurveOptionWidget.cpp.
References m_d.
|
overridevirtual |
Re-implement this to set the widgets with the values in setting.
Reimplemented from KisPaintOpOption.
Reimplemented in KisPaintThicknessOptionWidget, KisSmudgeLengthOptionWidget, KisMirrorOptionWidget, KisScatterOptionWidget, KisSharpnessOptionWidget, and KisSpacingOptionWidget.
Definition at line 240 of file KisCurveOptionWidget.cpp.
References KisSharedPtr< T >::data(), m_d, and KisCurveOptionDataCommon::read().
|
protected |
Definition at line 257 of file KisCurveOptionWidget.cpp.
References m_curveOptionWidget, and value().
| void KisCurveOptionWidget::show | ( | ) |
|
protected |
Definition at line 252 of file KisCurveOptionWidget.cpp.
References m_d, and strengthValueDenorm().
|
protectedslot |
Definition at line 361 of file KisCurveOptionWidget.cpp.
References KisIconUtils::loadIcon(), and m_curveOptionWidget.
|
overridevirtual |
Re-implement this to save the configuration to the paint configuration.
Reimplemented from KisPaintOpOption.
Reimplemented in KisPaintThicknessOptionWidget, KisSmudgeLengthOptionWidget, KisMirrorOptionWidget, KisScatterOptionWidget, KisSharpnessOptionWidget, and KisSpacingOptionWidget.
Definition at line 235 of file KisCurveOptionWidget.cpp.
References KisSharedPtr< T >::data(), and m_d.
|
protected |
Definition at line 111 of file KisCurveOptionWidget.h.
|
protected |
Definition at line 113 of file KisCurveOptionWidget.h.
|
protected |
Definition at line 110 of file KisCurveOptionWidget.h.
|
protected |
Definition at line 112 of file KisCurveOptionWidget.h.
|
protected |
Definition at line 115 of file KisCurveOptionWidget.h.
|
protected |
Definition at line 109 of file KisCurveOptionWidget.h.