Go to the documentation of this file.
21 #ifndef _ExprControlCollection_h
22 #define _ExprControlCollection_h
27 #include <QTextBrowser>
28 #include <QPlainTextEdit>
std::vector< ExprControl * > _controls
static void setAnimCurveCallback(AnimCurveCallback callback)
QRadioButton * grayPaletteBtn
QLineEdit * vectorDefault0
Factors a SeExpr into an editable expression with controls (i.e. value boxes, curve boxes)
QRadioButton * rainbowPaletteBtn
const char * initSwatch()
ExprControlCollection(QWidget *parent=0, bool showAddButton=true)
</pre > Once we have this we need an instance to store our variable and provide a reference to that We make it because it may be useful to use the same ExprVarRef from multiple expressions ! For if you have expressions that all have access to the same variables
static void setAnimCurveCallback(AnimCurveControl::AnimCurveCallback callback)
Anim curve callback.
void linkColorOutput(QColor color)
Gives information about when a link color was changed.
QLineEdit * colorCurveLookup
void linkColorLink(int id)
Notification by a control that a new color link is desired.
QVBoxLayout * controlLayout
QLineEdit * vectorDefault1
void insertString(const std::string &controlString)
QComboBox * stringTypeWidget
int numControls()
Number of controls.
void colorChooseClicked()
EditableExpression * editableExpression
void updateText(const int id, QString &text)
Request new text, given taking into account control id's new values.
bool rebuildControls(const QString &expressionText, std::vector< QString > &variables)
Rebuild the controls given the new expressionText. Return any local variables found.
void linkColorEdited(int id, QColor color)
Notification by a control that a color is edited (when it is linked)
void(* AnimCurveCallback)(const std::string &, animlib::AnimCurve &curve)
QLineEdit * animCurveLookup
QPushButton * colorWidget
This class is the UI for adding widgets.
ExprAddDialog(int &count, QWidget *parent=0)
QLineEdit * deepWaterLookup
QLineEdit * stringDefaultWidget
QLineEdit * vectorDefault2
void addControlDialog()
When a user clicks "Add Widget" button.
void singleControlChanged(int id)
Notification when by a control whenever it is edited.
QLineEdit * stringNameWidget
void controlChanged(int id)
Notification that a specific control was changed.
QLineEdit * animCurveLink
void linkColorInput(QColor color)