KSeExpr 4.0.4.0
CCurveControl Class Reference

Control for editing a color ramp curve. More...

#include <ExprControl.h>

Inheritance diagram for CCurveControl:
ExprControl

Public Member Functions

 CCurveControl (int id, ColorCurveEditable *stringEditable)
QColor getColor () override
 Interface for getting the color (used for linked color picking)
void setColor (QColor color) override
 Interface for setting the color (used for linked color picking)
Public Member Functions inherited from ExprControl
 ExprControl (int id, Editable *editable, bool showColorLink)
 ~ExprControl () override=default
void linkDisconnect (int newId)

Private Slots

void curveChanged ()

Private Attributes

ColorCurveEditable_curveEditable {nullptr}
 color curve model
ExprColorCurve_curve {nullptr}
 color curve widget

Additional Inherited Members

Public Slots inherited from ExprControl
void linkStateChange (int state)
Signals inherited from ExprControl
void controlChanged (int id)
void linkColorEdited (int id, QColor color)
void linkColorLink (int id)
Protected Member Functions inherited from ExprControl
void resizeEvent (QResizeEvent *event) override
Protected Attributes inherited from ExprControl
int _id
std::atomic< bool > _updating {}
QHBoxLayout * hbox {nullptr}
QCheckBox * _colorLinkCB {nullptr}
QLabel * _label {nullptr}
Editable_editable {nullptr}

Detailed Description

Control for editing a color ramp curve.

Definition at line 263 of file ExprControl.h.

Constructor & Destructor Documentation

◆ CCurveControl()

Member Function Documentation

◆ curveChanged

void CCurveControl::curveChanged ( )
privateslot

Definition at line 524 of file ExprControl.cpp.

References _curve, _curveEditable, ExprControl::_id, and ExprControl::controlChanged().

Referenced by CCurveControl().

◆ getColor()

QColor CCurveControl::getColor ( )
overridevirtual

Interface for getting the color (used for linked color picking)

Reimplemented from ExprControl.

Definition at line 532 of file ExprControl.cpp.

References _curve.

◆ setColor()

void CCurveControl::setColor ( QColor )
overridevirtual

Interface for setting the color (used for linked color picking)

Reimplemented from ExprControl.

Definition at line 537 of file ExprControl.cpp.

References _curve.

Member Data Documentation

◆ _curve

ExprColorCurve* CCurveControl::_curve {nullptr}
private

color curve widget

Definition at line 270 of file ExprControl.h.

Referenced by CCurveControl(), curveChanged(), getColor(), and setColor().

◆ _curveEditable

ColorCurveEditable* CCurveControl::_curveEditable {nullptr}
private

color curve model

Definition at line 268 of file ExprControl.h.

Referenced by CCurveControl(), and curveChanged().


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