KSeExpr
4.0.4.0
|
Factors a SeExpr into an editable expression with controls (i.e. value boxes, curve boxes) More...
#include <EditableExpression.h>
Public Member Functions | |
EditableExpression ()=default | |
virtual | ~EditableExpression () |
EditableExpression & | operator= (const EditableExpression &)=default |
EditableExpression & | operator= (EditableExpression &&)=default |
EditableExpression (const EditableExpression &)=default | |
EditableExpression (EditableExpression &&)=default | |
void | setExpr (const std::string &expr) |
Set's expressions and parses it into "control editable form". More... | |
std::string | getEditedExpr () const |
Return a reconstructed expression using all the editable's current values. More... | |
bool | controlsMatch (const EditableExpression &other) const |
Check if the other editable expression has editables that all match i.e. the controls are same. More... | |
void | updateString (const EditableExpression &other) |
Update the string refered to into the controls (this is only valid if controlsmatch) More... | |
Editable * | operator[] (const int i) |
Access an editable parameter. More... | |
size_t | size () const |
Return the count of editable parameters. More... | |
const std::vector< std::string > & | getVariables () const |
Get list of commentsø More... | |
Private Types | |
using | Editables = std::vector< Editable * > |
Private Member Functions | |
void | cleanup () |
clean memeory More... | |
Private Attributes | |
std::string | _expr |
Editables | _editables |
std::vector< std::string > | _variables |
Factors a SeExpr into an editable expression with controls (i.e. value boxes, curve boxes)
Definition at line 19 of file EditableExpression.h.
|
private |
Definition at line 22 of file EditableExpression.h.
|
default |
|
virtual |
Definition at line 12 of file EditableExpression.cpp.
References cleanup().
|
default |
|
default |
|
private |
clean memeory
Definition at line 51 of file EditableExpression.cpp.
References _editables, and _variables.
Referenced by setExpr(), and ~EditableExpression().
bool EditableExpression::controlsMatch | ( | const EditableExpression & | other | ) | const |
Check if the other editable expression has editables that all match i.e. the controls are same.
Definition at line 87 of file EditableExpression.cpp.
References _editables, and Editable::controlsMatch().
Referenced by ExprControlCollection::rebuildControls().
std::string EditableExpression::getEditedExpr | ( | ) | const |
Return a reconstructed expression using all the editable's current values.
Definition at line 59 of file EditableExpression.cpp.
References _editables, _expr, Editable::appendString(), Editable::endPos, and Editable::startPos.
Referenced by ExprControlCollection::updateText().
|
inline |
Get list of commentsø
Definition at line 60 of file EditableExpression.h.
References _variables.
Referenced by ExprControlCollection::rebuildControls().
|
default |
|
default |
|
inline |
Access an editable parameter.
Definition at line 48 of file EditableExpression.h.
References _editables.
void EditableExpression::setExpr | ( | const std::string & | expr | ) |
Set's expressions and parses it into "control editable form".
Definition at line 17 of file EditableExpression.cpp.
References _editables, _expr, _variables, cleanup(), Editable::endPos, ExprSpecParse(), and Editable::parseComment().
Referenced by ExprControlCollection::rebuildControls().
|
inline |
Return the count of editable parameters.
Definition at line 54 of file EditableExpression.h.
References _editables.
Referenced by ExprControlCollection::rebuildControls().
void EditableExpression::updateString | ( | const EditableExpression & | other | ) |
Update the string refered to into the controls (this is only valid if controlsmatch)
Definition at line 73 of file EditableExpression.cpp.
References _editables, _expr, _variables, Editable::controlsMatch(), and Editable::updatePositions().
Referenced by ExprControlCollection::rebuildControls().
|
private |
Definition at line 23 of file EditableExpression.h.
Referenced by cleanup(), controlsMatch(), getEditedExpr(), operator[](), setExpr(), size(), and updateString().
|
private |
Definition at line 21 of file EditableExpression.h.
Referenced by getEditedExpr(), setExpr(), and updateString().
|
private |
Definition at line 24 of file EditableExpression.h.
Referenced by cleanup(), getVariables(), setExpr(), and updateString().