KSeExpr  4.0.4.0
Public Member Functions | Private Slots | Private Attributes | List of all members
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) More...
 
void setColor (QColor color) override
 Interface for setting the color (used for linked color picking) More...
 
- 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 More...
 
ExprColorCurve_curve {nullptr}
 color curve widget More...
 

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()

CCurveControl::CCurveControl ( int  id,
ColorCurveEditable stringEditable 
)

Member Function Documentation

◆ curveChanged

void CCurveControl::curveChanged ( )
privateslot

◆ 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, and ExprColorCurve::getSwatchColor().

◆ 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, and ExprColorCurve::setSwatchColor().

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: