KSeExpr 6.0.0.0
|
Control for editing a color ramp curve. More...
#include <ExprControl.h>
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) | |
![]() | |
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 | |
![]() | |
void | linkStateChange (int state) |
![]() | |
void | controlChanged (int id) |
void | linkColorEdited (int id, QColor color) |
void | linkColorLink (int id) |
![]() | |
void | resizeEvent (QResizeEvent *event) override |
![]() | |
int | _id |
std::atomic< bool > | _updating {} |
QHBoxLayout * | hbox {nullptr} |
QCheckBox * | _colorLinkCB {nullptr} |
QLabel * | _label {nullptr} |
Editable * | _editable {nullptr} |
Control for editing a color ramp curve.
Definition at line 263 of file ExprControl.h.
CCurveControl::CCurveControl | ( | int | id, |
ColorCurveEditable * | stringEditable | ||
) |
Definition at line 508 of file ExprControl.cpp.
References _curve, _curveEditable, KSeExpr::Curve< T >::CV::_interp, KSeExpr::Curve< T >::CV::_pos, ExprColorCurve::_scene, KSeExpr::Curve< T >::CV::_val, ExprColorCurve::addPoint(), curveChanged(), GenericCurveEditable< TVAL >::cvs, and ExprControl::hbox.
|
privateslot |
Definition at line 524 of file ExprControl.cpp.
References _curve, _curveEditable, CCurveScene::_cvs, ExprControl::_id, ExprColorCurve::_scene, ExprControl::controlChanged(), and GenericCurveEditable< TVAL >::cvs.
Referenced by CCurveControl().
|
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().
|
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().
|
private |
color curve widget
Definition at line 270 of file ExprControl.h.
Referenced by CCurveControl(), curveChanged(), getColor(), and setColor().
|
private |
color curve model
Definition at line 268 of file ExprControl.h.
Referenced by CCurveControl(), and curveChanged().