SeExpr
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 ()
 Interface for getting the color (used for linked color picking) More...
 
void setColor (QColor color)
 Interface for setting the color (used for linked color picking) More...
 
- Public Member Functions inherited from ExprControl
 ExprControl (int id, Editable *editable, bool showColorLink)
 
virtual ~ExprControl ()
 
virtual QColor getColor ()
 Interface for getting the color (used for linked color picking) More...
 
virtual void setColor (QColor color)
 Interface for setting the color (used for linked color picking) More...
 
void linkDisconnect (int newId)
 

Private Slots

void curveChanged ()
 

Private Attributes

ColorCurveEditable_curveEditable
 color curve model More...
 
ExprColorCurve_curve
 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 Attributes inherited from ExprControl
int _id
 
bool _updating
 
QHBoxLayout * hbox
 
QCheckBox * _colorLinkCB
 
QLabel * _label
 
Editable_editable
 

Detailed Description

Control for editing a color ramp curve.

Definition at line 264 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 ( )
virtual

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

Reimplemented from ExprControl.

Definition at line 471 of file ExprControl.cpp.

References _curve, and ExprColorCurve::getSwatchColor().

◆ setColor()

void CCurveControl::setColor ( QColor  color)
virtual

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

Reimplemented from ExprControl.

Definition at line 473 of file ExprControl.cpp.

References _curve, and ExprColorCurve::setSwatchColor().

Member Data Documentation

◆ _curve

ExprColorCurve* CCurveControl::_curve
private

color curve widget

Definition at line 270 of file ExprControl.h.

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

◆ _curveEditable

ColorCurveEditable* CCurveControl::_curveEditable
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: