|
SeExpr
|
A control for editing color swatches. More...
#include <ExprControl.h>
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) | |
| virtual void | setColor (QColor color) |
| Interface for setting the color (used for linked color picking) | |
| 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 | |
| ExprColorSwatchWidget * | _swatch |
| Edit box for the color swatches. | |
| 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 |
A control for editing color swatches.
Definition at line 307 of file ExprControl.h.
| ColorSwatchControl::ColorSwatchControl | ( | int | id, |
| ColorSwatchEditable * | swatchEditable ) |
Definition at line 674 of file ExprControl.cpp.
References _indexLabel, _swatchEditable, buildSwatchWidget(), and ExprControl::ExprControl().
|
privateslot |
Definition at line 705 of file ExprControl.cpp.
References _indexLabel, _swatch, _swatchEditable, ExprControl::_updating, colorAdded(), colorChanged(), colorRemoved(), and ExprControl::hbox.
Referenced by colorRemoved(), and ColorSwatchControl().
|
privateslot |
Definition at line 687 of file ExprControl.cpp.
References ExprControl::_id, _swatchEditable, ExprControl::_updating, ExprControl::controlChanged(), index(), and value().
Referenced by buildSwatchWidget().
|
privateslot |
Definition at line 681 of file ExprControl.cpp.
References ExprControl::_id, _swatchEditable, ExprControl::_updating, ExprControl::controlChanged(), index(), and value().
Referenced by buildSwatchWidget().
|
privateslot |
Definition at line 694 of file ExprControl.cpp.
References ExprControl::_id, _swatch, _swatchEditable, ExprControl::_updating, buildSwatchWidget(), ExprControl::controlChanged(), and index().
Referenced by buildSwatchWidget().
|
private |
Definition at line 325 of file ExprControl.h.
Referenced by buildSwatchWidget(), and ColorSwatchControl().
|
private |
Edit box for the color swatches.
Definition at line 313 of file ExprControl.h.
Referenced by buildSwatchWidget(), and colorRemoved().
|
private |
model for the color swatches control
Definition at line 311 of file ExprControl.h.
Referenced by buildSwatchWidget(), colorAdded(), colorChanged(), colorRemoved(), and ColorSwatchControl().