21 #ifndef _ExprControlCollection_h 
   22 #define _ExprControlCollection_h 
   25 #include <QtGui/QTextBrowser> 
   26 #include <QtGui/QPlainTextEdit> 
   27 #include <QtGui/QDialog> 
   28 #include <QtCore/QTimer> 
   29 #include <QtCore/QRegExp> 
   30 #include <QtGui/QLineEdit> 
   31 #include <QtGui/QCheckBox> 
   32 #include <QtGui/QSlider> 
QLineEdit * deepWaterLookup
 
void controlChanged(int id)
Notification that a specific control was changed. 
 
void singleControlChanged(int id)
Notification when by a control whenever it is edited. 
 
QRadioButton * grayPaletteBtn
 
static void setAnimCurveCallback(AnimCurveControl::AnimCurveCallback callback)
Anim curve callback. 
 
QLineEdit * vectorDefault2
 
QLineEdit * stringDefaultWidget
 
ExprAddDialog(int &count, QWidget *parent=0)
 
void linkColorInput(QColor color)
 
int numControls()
Number of controls. 
 
void addControlDialog()
When a user clicks "Add Widget" button. 
 
QPushButton * colorWidget
 
QLineEdit * animCurveLink
 
const char * initSwatch()
 
QLineEdit * vectorDefault0
 
void(* AnimCurveCallback)(const std::string &, animlib::AnimCurve &curve)
 
QVBoxLayout * controlLayout
 
</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
 
void linkColorLink(int id)
Notification by a control that a new color link is desired. 
 
ExprControlCollection(QWidget *parent=0, bool showAddButton=true)
 
QLineEdit * vectorDefault1
 
QLineEdit * animCurveLookup
 
QComboBox * stringTypeWidget
 
std::vector< ExprControl * > _controls
 
EditableExpression * editableExpression
 
static void setAnimCurveCallback(AnimCurveCallback callback)
 
Factors a SeExpr into an editable expression with controls (i.e. value boxes, curve boxes) ...
 
bool rebuildControls(const QString &expressionText, std::vector< QString > &variables)
Rebuild the controls given the new expressionText. Return any local variables found. 
 
void updateText(const int id, QString &text)
Request new text, given taking into account control id's new values. 
 
QRadioButton * rainbowPaletteBtn
 
void insertString(const std::string &controlString)
 
This class is the UI for adding widgets. 
 
QLineEdit * stringNameWidget
 
QLineEdit * colorCurveLookup
 
void colorChooseClicked()
 
void linkColorOutput(QColor color)
Gives information about when a link color was changed. 
 
void linkColorEdited(int id, QColor color)
Notification by a control that a color is edited (when it is linked)