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 307 of file ExprControl.h.

Constructor & Destructor Documentation

◆ ColorSwatchControl()

ColorSwatchControl::ColorSwatchControl ( int  id,
ColorSwatchEditable swatchEditable 
)

Member Function Documentation

◆ buildSwatchWidget

void ColorSwatchControl::buildSwatchWidget ( )
privateslot

◆ colorAdded

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

◆ colorChanged

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

◆ colorRemoved

void ColorSwatchControl::colorRemoved ( int  index)
privateslot

Member Data Documentation

◆ _indexLabel

bool ColorSwatchControl::_indexLabel
private

Definition at line 325 of file ExprControl.h.

Referenced by buildSwatchWidget(), and ColorSwatchControl().

◆ _swatch

ExprColorSwatchWidget* ColorSwatchControl::_swatch
private

Edit box for the color swatches.

Definition at line 313 of file ExprControl.h.

Referenced by buildSwatchWidget(), and colorRemoved().

◆ _swatchEditable

ColorSwatchEditable* ColorSwatchControl::_swatchEditable
private

model for the color swatches control

Definition at line 311 of file ExprControl.h.

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


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