16#ifndef QGSEXPRESSIONPREVIEWWIDGET_H
17#define QGSEXPRESSIONPREVIEWWIDGET_H
19#include "ui_qgsexpressionpreviewbase.h"
85 Py_BEGIN_ALLOW_THREADS
86 sipCpp->setCustomPreviewGenerator( *a0, *a1, [a2](
const QVariant &value ) ->
QgsExpressionContext {
89 PyObject *s = sipCallMethod( NULL, a2,
"D", &value, sipType_QVariant, NULL );
93 if ( sipIsError == 0 )
97 sipReleaseType( t1, sipType_QgsExpressionContext, state );
130 bool evalError()
const;
136 bool parserError()
const;
142 QList<QgsExpression::ParserError>
parserErrors()
const {
return mExpression.parserErrors(); }
149 QString currentPreviewText()
const;
182 void linkActivated(
const QString & );
185 void copyFullExpressionValue();
186 void setCustomChoice(
int );
189 void setExpressionToolTip(
const QString &toolTip );
190 void refreshPreview();
195 bool mUseGeomCalculator =
false;
197 bool mEvalError =
true;
198 bool mParserError =
true;
199 QString mExpressionText;
201 QAction *mCopyPreviewAction =
nullptr;
A general purpose distance and area calculator, capable of performing ellipsoid based calculations.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Abstract base class for all nodes that can appear in an expression.
Handles parsing and evaluation of expressions (formerly called "search strings").
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Represents a vector layer which manages a vector based dataset.