6 #ifndef __EXPRESSIONVSIEW_H_
7 #define __EXPRESSIONVSIEW_H_
9 #include "ocurvesconfig.h"
19 class QListWidgetItem;
140 QTableWidget *createFunctionsTable(
const QVector<const FunctionDefinition *> &functions, QWidget *parent =
nullptr);
142 Ui::ExpressionsView *_ui;
144 bool _suppressEvents;
153 #endif // __EXPRESSIONSVIEW_H_
void showExpressions()
Clears and repopulates the expressions display list.
const Expressions * expressions() const
Returns the Expressions object being viewed and edited.
Definition: expressionsview.h:148
Definition: coloursview.h:16
void removeExpr()
Removes the currently selected expression (if any).
void updateExpr()
Attempts to update the currently selected expression with the current UI editor text.
QListWidgetItem * createItem(PlotExpression *expression)
Create a list widget for expression.
void expressionRemoved(const PlotExpression *expression)
Handles removal from the Expressions object, removing the corresponding expression from the display l...
void addExpr()
Handler for add button presses.
void expressionAdded(PlotExpression *expression)
Handles additions to the Expressions object, adding the expression to the display list...
PlotExpression * parseExpression(const QString &text, QStringList &errors) const
Parses the text expression text returning a compiled PlotExpression.
bool removeExpression(QListWidgetItem *item)
Remove the expression associated with item.
Manages and edits current expressions.
Definition: expressionsview.h:33
~ExpressionsView()
Destructor.
ExpressionsView(Expressions *expressions=nullptr, QWidget *parent=nullptr)
Constructor.
PlotExpression * addExpression()
Attempts to add an expression based on the current UI state.
void editingDone()
Handles explicit completion of editing in the expression editor (i.e., the enter key).
void setExpressions(Expressions *expressions)
Sets the Expressions object to view and edit.
Defines a function which can be used with the FunctionRegister.
Definition: functiondefinition.h:34
Maintains the current expressions available for generation and plotting.
Definition: expressions.h:27
A PlotExpression represents an operation in a plot equation.
Definition: plotexpression.h:91
void currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous)
Handles changes in the current expression selection, updating the editor text.