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 ()
 
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 249 of file ExprControl.h.

Constructor & Destructor Documentation

CCurveControl::CCurveControl ( int  id,
ColorCurveEditable stringEditable 
)

Member Function Documentation

void CCurveControl::curveChanged ( )
privateslot
QColor CCurveControl::getColor ( )
virtual

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

Reimplemented from ExprControl.

Definition at line 604 of file ExprControl.cpp.

References _curve, and ExprColorCurve::getSwatchColor().

void CCurveControl::setColor ( QColor  color)
virtual

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

Reimplemented from ExprControl.

Definition at line 609 of file ExprControl.cpp.

References _curve, and ExprColorCurve::setSwatchColor().

Member Data Documentation

ExprColorCurve* CCurveControl::_curve
private

color curve widget

Definition at line 256 of file ExprControl.h.

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

ColorCurveEditable* CCurveControl::_curveEditable
private

color curve model

Definition at line 254 of file ExprControl.h.

Referenced by CCurveControl(), and curveChanged().


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