9 #include "ocurvesconfig.h"
14 #include "expr/functiondefinition.h"
15 #include "expr/plotexpression.h"
44 void clear(
bool suppressSignals =
true);
54 void loadExpressions(
const QSettings &settings,
bool delaySignals =
true);
117 QList<PlotExpression *> _expressions;
129 return *_functionRegister;
133 #endif // EXPRESSIONS_H_
const PlotFunctionRegister & functionRegister() const
Access the function register.
Definition: expressions.h:127
void functionRegistered(const FunctionDefinition *function)
Raised when a function is successfully added via registerFunction().
void expressionRemoved(const PlotExpression *expression)
Raised when an expression is removed.
void saveExpressions(QSettings &settings)
Save expressions to the given settings.
void clear(bool suppressSignals=true)
Delete all expressions optionally suppressing event signals.
Expressions(QObject *parent=nullptr)
Create an expressions data model object.
const QList< PlotExpression * > & expressions() const
Access the list of expressions.
Definition: expressions.h:121
~Expressions()
Destructor.
bool registerFunction(FunctionDefinition *functionDef, bool takeOwnership=true)
Registers a function for use in expressions.
A PlotFunctionRegister stores function implementations to expose to the plot expression generator...
Definition: plotfunctionregister.h:26
void addExpression(PlotExpression *expression)
Adds an expression.
void loadExpressions(const QSettings &settings, bool delaySignals=true)
Load expressions from the given settings.
void expressionAdded(PlotExpression *expression)
Raised when an expression is added.
Defines a function which can be used with the FunctionRegister.
Definition: functiondefinition.h:34
bool contains(const PlotExpression *expression) const
Check if expression is a known expression (check by pointer).
Maintains the current expressions available for generation and plotting.
Definition: expressions.h:27
bool removeExpression(PlotExpression *expression)
Remove expression if it is present.
A PlotExpression represents an operation in a plot equation.
Definition: plotexpression.h:91
static const unsigned missingTolerance
Internally used in settings serialisation.
Definition: expressions.h:32