Go to the documentation of this file.
17 #ifndef _ExprControl_h_
18 #define _ExprControl_h_
19 #include <QTextBrowser>
20 #include <QPlainTextEdit>
73 virtual void setColor(QColor color) {Q_UNUSED(color)};
93 template <
class T,
class T2,
class T3>
94 T
clamp(
const T val,
const T2 minval,
const T3 maxval) {
97 else if (val > maxval)
110 QLineEdit::setText(t);
130 ExprSlider(Qt::Orientation orientation, QWidget* parent = 0) : QSlider(orientation, parent) {}
QColor getColor()
Interface for getting the color (used for linked color picking)
The result is computed int int< br >< div style="margin-left: 40px;"> Picks values randomly between loRange and hiRange based on supplied index(which is automatically hashed).  
void linkStateChange(int state)
static void setAnimCurveCallback(AnimCurveCallback callback)
DeepWaterControl(int id, DeepWaterEditable *stringEditable)
ExprLineEdit(int id, QWidget *parent)
void textChanged(int id, const QString &text)
CurveControl(int id, CurveEditable *stringEditable)
ExprSlider(QWidget *parent=0)
void setColor(QColor color)
Interface for setting the color (used for linked color picking)
GenericCurveEditable< SeExpr2::Vec3d > ColorCurveEditable
void setValue(float value)
Update the model with the value and notify the collection.
virtual void paintEvent(QPaintEvent *e)
SeExpr2::CurveFuncX curve
void linkColorEdited(int id, QColor color)
void updateControl()
Update values in slider and textbox given what the model contains.
ExprColorSwatchWidget * _swatch
Edit box for the color swatches.
CurveEditable * _curveEditable
curve model
QLineEdit * _edit
Edit box for the string.
void linkColorLink(int id)
virtual void mouseMoveEvent(QMouseEvent *e)
T clamp(const T val, const T2 minval, const T3 maxval)
clamp val to the specified range [minval,maxval]
void sliderChanged(int val)
ExprGraphPreview * _preview
void editChanged(int id, const QString &text)
virtual void wheelEvent(QWheelEvent *e)
void setValue(float value)
void textChanged(const QString &newText)
static AnimCurveCallback callback
Control for displaying a deep water spectrum.
ExprChannelSlider(int id, QWidget *parent)
void swatchChanged(QColor color)
ExprSlider(Qt::Orientation orientation, QWidget *parent=0)
AnimCurveControl(int id, AnimCurveEditable *curveEditable)
virtual void setText(const QString &t)
void linkDisconnect(int newId)
GenericCurveEditable< double > CurveEditable
void textChangedCB(const QString &text)
virtual void mouseMoveEvent(QMouseEvent *e)
virtual void wheelEvent(QWheelEvent *e)
Control for editing a color ramp curve.
void valueChanged(int id, float value)
virtual void leaveEvent(QEvent *event)
void controlChanged(int id)
NumberControl(int id, NumberEditable *number)
DeepWaterEditable * _deepWaterEditable
curve model
CCurveControl(int id, ColorCurveEditable *stringEditable)
ColorSwatchEditable * _swatchEditable
model for the color swatches control
void setColor(QColor color)
Interface for setting the color (used for linked color picking)
void setValue(int id, float value)
set the value in the model (in response to editing from controls)
Channel Slider (i.e. for colors)
AnimCurveEditable * _editable
void colorChanged(int index, SeExpr2::Vec3d value)
ColorSwatchControl(int id, ColorSwatchEditable *swatchEditable)
void setDisplayColor(QColor c)
void colorAdded(int index, SeExpr2::Vec3d value)
VectorControl(int id, VectorEditable *number)
ExprColorCurve * _curve
color curve widget
ExprChannelSlider * _sliders[3]
All three channel sliders (for each component)
A control for editing color swatches.
ExprLineEdit * _edit
Text box for the number.
For any rgb or hsl value(except for negative s values)
virtual void mousePressEvent(QMouseEvent *e)
void sliderChanged(int id, float val)
virtual void setColor(QColor color)
Interface for setting the color (used for linked color picking)
ExprLineEdit * _edits[3]
All three line edit widgets (for each component)
Control for editing a normal curve ramp.
ExprCSwatchFrame * _swatch
VectorEditable * _numberEditable
Number model.
void editChanged(int id, const QString &text)
ExprDeepWater * _deepWater
deep water widget
Line Editor Widget(used for numbers)
A control for editing strings, filenames, and directories.
ColorCurveEditable * _curveEditable
color curve model
void(* AnimCurveCallback)(const std::string &, animlib::AnimCurve &curve)
StringControl(int id, StringEditable *stringEditable)
void updateControl()
update the individual slider and eidt box controls
void colorRemoved(int index)
ExprControl(int id, Editable *editable, bool showColorLink)
virtual void enterEvent(QEvent *event)
Number slider for either float or int data.
virtual void paintEvent(QPaintEvent *e)
Base class for all controls for Expressions.
Generic Slider (used for int and float sliders)
NumberEditable * _numberEditable
Pointer to the number control model.
QColor getColor()
Interface for getting the color (used for linked color picking)
A vector or color control (named vector because it edits a SeExpr2::Vec3d literal)
virtual void mousePressEvent(QMouseEvent *e)
virtual QColor getColor()
Interface for getting the color (used for linked color picking)
ExprCurve * _curve
curve edit widget
StringEditable * _stringEditable
model for the string control
ExprSlider * _slider
Slider for the number.