SeExpr
|
A vector or color control (named vector because it edits a SeExpr2::Vec3d literal) More...
#include <ExprControl.h>
Public Member Functions | |
VectorControl (int id, VectorEditable *number) | |
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 | sliderChanged (int id, float val) |
void | editChanged (int id, const QString &text) |
void | swatchChanged (QColor color) |
Private Member Functions | |
void | setValue (int id, float value) |
set the value in the model (in response to editing from controls) More... | |
void | updateControl () |
update the individual slider and eidt box controls More... | |
Private Attributes | |
VectorEditable * | _numberEditable |
Number model. More... | |
ExprLineEdit * | _edits [3] |
All three line edit widgets (for each component) More... | |
ExprCSwatchFrame * | _swatch |
ExprChannelSlider * | _sliders [3] |
All three channel sliders (for each component) 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 |
A vector or color control (named vector because it edits a SeExpr2::Vec3d literal)
Definition at line 187 of file ExprControl.h.
VectorControl::VectorControl | ( | int | id, |
VectorEditable * | number | ||
) |
Definition at line 381 of file ExprControl.cpp.
References _edits, _numberEditable, _sliders, _swatch, editChanged(), ExprControl::hbox, VectorEditable::isColor, ExprChannelSlider::setDisplayColor(), sliderChanged(), swatchChanged(), updateControl(), and VectorEditable::v.
|
privateslot |
Definition at line 450 of file ExprControl.cpp.
References ExprControl::_updating, and setValue().
Referenced by VectorControl().
|
virtual |
Interface for getting the color (used for linked color picking)
Reimplemented from ExprControl.
Definition at line 429 of file ExprControl.cpp.
References _numberEditable, SeExpr2::clamp(), and VectorEditable::v.
Referenced by sliderChanged().
|
virtual |
Interface for setting the color (used for linked color picking)
Reimplemented from ExprControl.
Definition at line 436 of file ExprControl.cpp.
References setValue().
|
private |
set the value in the model (in response to editing from controls)
Definition at line 487 of file ExprControl.cpp.
References ExprControl::_id, _numberEditable, _swatch, ExprControl::controlChanged(), ExprCSwatchFrame::setValue(), updateControl(), VectorEditable::v, and value().
Referenced by editChanged(), setColor(), sliderChanged(), and swatchChanged().
|
privateslot |
Definition at line 443 of file ExprControl.cpp.
References ExprControl::_id, _numberEditable, ExprControl::_updating, getColor(), VectorEditable::isColor, ExprControl::linkColorEdited(), VectorEditable::max, VectorEditable::min, and setValue().
Referenced by VectorControl().
|
privateslot |
Definition at line 420 of file ExprControl.cpp.
References _swatch, ExprCSwatchFrame::getValue(), and setValue().
Referenced by VectorControl().
|
private |
update the individual slider and eidt box controls
Definition at line 459 of file ExprControl.cpp.
References _edits, ExprControl::_label, _numberEditable, _sliders, ExprControl::_updating, b, SeExpr2::clamp(), VectorEditable::isColor, SeExpr2::max(), VectorEditable::max, SeExpr2::min(), VectorEditable::min, ExprChannelSlider::setValue(), and VectorEditable::v.
Referenced by setValue(), and VectorControl().
|
private |
All three line edit widgets (for each component)
Definition at line 194 of file ExprControl.h.
Referenced by updateControl(), and VectorControl().
|
private |
Number model.
Definition at line 192 of file ExprControl.h.
Referenced by getColor(), setValue(), sliderChanged(), updateControl(), and VectorControl().
|
private |
All three channel sliders (for each component)
Definition at line 195 of file ExprControl.h.
Referenced by updateControl(), and VectorControl().
|
private |
Definition at line 195 of file ExprControl.h.
Referenced by setValue(), swatchChanged(), and VectorControl().