Krita Source Code Documentation
Loading...
Searching...
No Matches
MyPaintCurveOptionWidget Class Reference

#include <MyPaintCurveOptionWidget.h>

+ Inheritance diagram for MyPaintCurveOptionWidget:

Classes

struct  Private
 

Public Types

using data_type = MyPaintCurveOptionData
 
- Public Types inherited from KisCurveOptionWidget
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

OptionalLodLimitationsReader lodLimitationsReader () const override
 
 MyPaintCurveOptionWidget (lager::cursor< MyPaintCurveOptionData > optionData, qreal maxYRange, const QString &yValueSuffix)
 
lager::cursor< qreal > strengthValueDenorm ()
 
 ~MyPaintCurveOptionWidget ()
 
- Public Member Functions inherited from KisCurveOptionWidget
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
 

Private Attributes

const QScopedPointer< Privatem_d
 

Additional Inherited Members

- Signals inherited from KisPaintOpOption
void sigCheckedChanged (bool value)
 
void sigEnabledChanged (bool value)
 
void sigSettingChanged ()
 
- Protected Slots inherited from KisCurveOptionWidget
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 inherited from KisCurveOptionWidget
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
 
KisResourcesInterfaceSP resourcesInterface () const
 
void setConfigurationPage (QWidget *page)
 
- Protected Attributes inherited from KisCurveOptionWidget
QScopedPointer< KisCurveOptionInputControlsStrategyInterfacem_curveInputControlsStrategy
 
QComboBox * m_curveMode {nullptr}
 
Ui_WdgCurveOption2 * m_curveOptionWidget {nullptr}
 
QScopedPointer< KisCurveOptionRangeControlsStrategyInterfacem_curveRangeControlsStrategy
 
const QScopedPointer< Privatem_d
 
QWidget * m_widget {nullptr}
 
- Protected Attributes inherited from KisPaintOpOption
bool m_checkable {false}
 
bool m_locked {false}
 

Detailed Description

Definition at line 13 of file MyPaintCurveOptionWidget.h.

Member Typedef Documentation

◆ data_type

Constructor & Destructor Documentation

◆ MyPaintCurveOptionWidget()

MyPaintCurveOptionWidget::MyPaintCurveOptionWidget ( lager::cursor< MyPaintCurveOptionData > optionData,
qreal maxYRange,
const QString & yValueSuffix )

Definition at line 39 of file MyPaintCurveOptionWidget.cpp.

42 : KisCurveOptionWidget(optionData.zoom(kislager::lenses::to_base<KisCurveOptionDataCommon>),
44 i18n("Base Value: "), yValueSuffix, 1.0,
45 lager::make_constant(true),
46 std::nullopt,
47 MyPaintCurveRangeModel::factory(maxYRange, yValueSuffix),
51 , m_d(new Private(optionData))
52{
53 m_curveOptionWidget->curveWidget->setGlobalPointConstrain(KisCurveWidget::PointConstrain_AlwaysCorner);
54}
static KisCurveOptionInputControlsStrategyFactory factory()
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)
Ui_WdgCurveOption2 * m_curveOptionWidget
static KisCurveOptionRangeControlsStrategyFactory factory()
const QScopedPointer< Private > m_d
static KisCurveRangeModelFactory factory(qreal maxYRange, const QString &yValueSuffix)

References KisCurveOptionWidget::curveWidget(), KisCurveOptionWidget::m_curveOptionWidget, and KisCurveWidget::PointConstrain_AlwaysCorner.

◆ ~MyPaintCurveOptionWidget()

MyPaintCurveOptionWidget::~MyPaintCurveOptionWidget ( )

Definition at line 56 of file MyPaintCurveOptionWidget.cpp.

57{
58}

Member Function Documentation

◆ lodLimitationsReader()

KisPaintOpOption::OptionalLodLimitationsReader MyPaintCurveOptionWidget::lodLimitationsReader ( ) const
overridevirtual

Reimplemented from KisPaintOpOption.

Definition at line 60 of file MyPaintCurveOptionWidget.cpp.

61{
62 return m_d->lodLimitations;
63}

References m_d.

◆ strengthValueDenorm()

lager::cursor< qreal > KisCurveOptionWidget::strengthValueDenorm ( )

Definition at line 88 of file KisCurveOptionWidget.cpp.

252{
253 return m_d->model.LAGER_QT(strengthValueDenorm);
254}
lager::cursor< qreal > strengthValueDenorm()

Member Data Documentation

◆ m_d

const QScopedPointer<Private> MyPaintCurveOptionWidget::m_d
private

Definition at line 29 of file MyPaintCurveOptionWidget.h.


The documentation for this class was generated from the following files: