QGIS API Documentation
2.6.0-Brighton
|
A generic dialog for building expression strings. More...
#include <qgsexpressionbuilderdialog.h>
Public Member Functions | |
QgsExpressionBuilderDialog (QgsVectorLayer *layer, QString startText=QString(), QWidget *parent=NULL, QString key="generic") | |
QgsExpressionBuilderWidget * | expressionBuilder () |
The builder widget that is used by the dialog. | |
void | setExpressionText (const QString &text) |
QString | expressionText () |
void | setGeomCalculator (const QgsDistanceArea &da) |
Sets geometry calculator used in distance/area calculations. |
Protected Member Functions | |
virtual void | done (int r) |
Is called when the dialog get accepted or rejected Used to save geometry. | |
virtual void | accept () |
A generic dialog for building expression strings.
QgsExpressionBuilderDialog::QgsExpressionBuilderDialog | ( | QgsVectorLayer * | layer, |
QString | startText = QString() , |
||
QWidget * | parent = NULL , |
||
QString | key = "generic" |
||
) |
|
protectedvirtual |
|
protectedvirtual |
Is called when the dialog get accepted or rejected Used to save geometry.
r | result value (unused) |
QgsExpressionBuilderWidget * QgsExpressionBuilderDialog::expressionBuilder | ( | ) |
The builder widget that is used by the dialog.
QString QgsExpressionBuilderDialog::expressionText | ( | ) |
void QgsExpressionBuilderDialog::setExpressionText | ( | const QString & | text | ) |
void QgsExpressionBuilderDialog::setGeomCalculator | ( | const QgsDistanceArea & | da | ) |
Sets geometry calculator used in distance/area calculations.