16#ifndef QGSEXPRESSIONPREVIEWWIDGET_H
17#define QGSEXPRESSIONPREVIEWWIDGET_H
19#include "ui_qgsexpressionpreviewbase.h"
85 Py_BEGIN_ALLOW_THREADS sipCpp->setCustomPreviewGenerator( *a0, *a1, [a2](
const QVariant &value ) ->
QgsExpressionContext {
88 PyObject *s = sipCallMethod( NULL, a2,
"D", &value, sipType_QVariant, NULL );
92 if ( sipIsError == 0 )
96 sipReleaseType( t1, sipType_QgsExpressionContext, state );
129 bool evalError()
const;
135 bool parserError()
const;
141 QList<QgsExpression::ParserError>
parserErrors()
const {
return mExpression.parserErrors(); }
148 QString currentPreviewText()
const;
181 void linkActivated(
const QString & );
184 void copyFullExpressionValue();
185 void setCustomChoice(
int );
188 void setExpressionToolTip(
const QString &toolTip );
189 void refreshPreview();
194 bool mUseGeomCalculator =
false;
196 bool mEvalError =
true;
197 bool mParserError =
true;
198 QString mExpressionText;
200 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.