13 #include <QVBoxLayout>
48 bool rebuildControls(
const QString &expressionText, std::vector<QString> &variables);
Factors a SeExpr into an editable expression with controls (i.e. value boxes, curve boxes)
void controlChanged(int id)
Notification that a specific control was changed.
~ExprControlCollection() override
void updateText(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 insertString(const QString &controlString)
void singleControlChanged(int id)
Notification when by a control whenever it is edited.
void linkColorOutput(QColor color)
Gives information about when a link color was changed.
QVBoxLayout * controlLayout
ExprControlCollection(QWidget *parent=nullptr, bool showAddButton=true)
void addControlDialog()
When a user clicks "Add new variable" button.
std::vector< ExprControl * > _controls
void linkColorLink(int id)
Notification by a control that a new color link is desired.
int numControls()
Number of controls.
void linkColorEdited(int id, QColor color)
Notification by a control that a color is edited (when it is linked)
EditableExpression * editableExpression
void linkColorInput(QColor color)