SeExpr
Public Member Functions | Private Slots | Private Attributes | List of all members
ColorSwatchControl Class Reference

A control for editing color swatches. More...

#include <ExprControl.h>

Inheritance diagram for ColorSwatchControl:
ExprControl

Public Member Functions

 ColorSwatchControl (int id, ColorSwatchEditable *swatchEditable)
 
- 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 buildSwatchWidget ()
 
void colorChanged (int index, SeExpr2::Vec3d value)
 
void colorAdded (int index, SeExpr2::Vec3d value)
 
void colorRemoved (int index)
 

Private Attributes

ColorSwatchEditable_swatchEditable
 model for the color swatches control More...
 
ExprColorSwatchWidget_swatch
 Edit box for the color swatches. More...
 
bool _indexLabel
 

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

A control for editing color swatches.

Definition at line 289 of file ExprControl.h.

Constructor & Destructor Documentation

ColorSwatchControl::ColorSwatchControl ( int  id,
ColorSwatchEditable swatchEditable 
)

Member Function Documentation

void ColorSwatchControl::buildSwatchWidget ( )
privateslot
void ColorSwatchControl::colorAdded ( int  index,
SeExpr2::Vec3d  value 
)
privateslot
void ColorSwatchControl::colorChanged ( int  index,
SeExpr2::Vec3d  value 
)
privateslot
void ColorSwatchControl::colorRemoved ( int  index)
privateslot

Member Data Documentation

bool ColorSwatchControl::_indexLabel
private

Definition at line 305 of file ExprControl.h.

Referenced by buildSwatchWidget(), and ColorSwatchControl().

ExprColorSwatchWidget* ColorSwatchControl::_swatch
private

Edit box for the color swatches.

Definition at line 296 of file ExprControl.h.

Referenced by buildSwatchWidget(), and colorRemoved().

ColorSwatchEditable* ColorSwatchControl::_swatchEditable
private

model for the color swatches control

Definition at line 294 of file ExprControl.h.

Referenced by buildSwatchWidget(), colorAdded(), colorChanged(), colorRemoved(), and ColorSwatchControl().


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