A generic dialog for building expression strings.
More...
#include <qgsexpressionbuilderdialog.h>
|
void | accept () override |
|
void | done (int r) override |
| Is called when the dialog get accepted or rejected Used to save geometry. More...
|
|
void | reject () override |
|
A generic dialog for building expression strings.
Definition at line 30 of file qgsexpressionbuilderdialog.h.
◆ QgsExpressionBuilderDialog()
◆ accept()
void QgsExpressionBuilderDialog::accept |
( |
| ) |
|
|
overrideprotected |
◆ allowEvalErrors()
bool QgsExpressionBuilderDialog::allowEvalErrors |
( |
| ) |
const |
Allow accepting invalid expressions.
This can be useful when we are not able to provide an expression context of which we are sure it's completely populated.
- Since
- QGIS 3.0
Definition at line 130 of file qgsexpressionbuilderdialog.cpp.
◆ allowEvalErrorsChanged
void QgsExpressionBuilderDialog::allowEvalErrorsChanged |
( |
| ) |
|
|
signal |
Allow accepting expressions with evaluation errors.
This can be useful when we are not able to provide an expression context of which we are sure it's completely populated.
- Since
- QGIS 3.0
◆ done()
void QgsExpressionBuilderDialog::done |
( |
int |
r | ) |
|
|
overrideprotected |
◆ expectedOutputFormat()
QString QgsExpressionBuilderDialog::expectedOutputFormat |
( |
| ) |
|
◆ expressionBuilder()
◆ expressionContext()
Returns the expression context for the dialog.
The context is used for the expression preview result and for populating the list of available functions and variables.
- See also
- setExpressionContext
- Since
- QGIS 2.12
Definition at line 68 of file qgsexpressionbuilderdialog.cpp.
◆ expressionText()
QString QgsExpressionBuilderDialog::expressionText |
( |
| ) |
|
◆ reject()
void QgsExpressionBuilderDialog::reject |
( |
| ) |
|
|
overrideprotected |
◆ setAllowEvalErrors()
void QgsExpressionBuilderDialog::setAllowEvalErrors |
( |
bool |
allowEvalErrors | ) |
|
Allow accepting expressions with evaluation errors.
This can be useful when we are not able to provide an expression context of which we are sure it's completely populated.
- Since
- QGIS 3.0
Definition at line 135 of file qgsexpressionbuilderdialog.cpp.
◆ setExpectedOutputFormat()
void QgsExpressionBuilderDialog::setExpectedOutputFormat |
( |
const QString & |
expected | ) |
|
◆ setExpressionContext()
Sets the expression context for the dialog.
The context is used for the expression preview result and for populating the list of available functions and variables.
- Parameters
-
context | expression context |
- See also
- expressionContext
- Since
- QGIS 2.12
Definition at line 73 of file qgsexpressionbuilderdialog.cpp.
◆ setExpressionText()
void QgsExpressionBuilderDialog::setExpressionText |
( |
const QString & |
text | ) |
|
◆ setGeomCalculator()
void QgsExpressionBuilderDialog::setGeomCalculator |
( |
const QgsDistanceArea & |
da | ) |
|
◆ allowEvalErrors
bool QgsExpressionBuilderDialog::allowEvalErrors |
|
readwrite |
The documentation for this class was generated from the following files: