QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
QgsExpressionBuilderDialog Class Reference

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")
QgsExpressionBuilderWidgetexpressionBuilder ()
 The builder widget that is used by the dialog.
QString expressionText ()
void setExpressionText (const QString &text)
void setGeomCalculator (const QgsDistanceArea &da)
 Sets geometry calculator used in distance/area calculations.

Protected Member Functions

virtual void accept () override
virtual void done (int r) override
 Is called when the dialog get accepted or rejected Used to save geometry.

Detailed Description

A generic dialog for building expression strings.

Remarks
This class also shows an example on how to use QgsExpressionBuilderWidget

Definition at line 26 of file qgsexpressionbuilderdialog.h.

Constructor & Destructor Documentation

QgsExpressionBuilderDialog::QgsExpressionBuilderDialog ( QgsVectorLayer layer,
QString  startText = QString(),
QWidget *  parent = NULL,
QString  key = "generic" 
)

Definition at line 19 of file qgsexpressionbuilderdialog.cpp.

Member Function Documentation

void QgsExpressionBuilderDialog::accept ( )
overrideprotectedvirtual

Definition at line 59 of file qgsexpressionbuilderdialog.cpp.

void QgsExpressionBuilderDialog::done ( int  r)
overrideprotectedvirtual

Is called when the dialog get accepted or rejected Used to save geometry.

Parameters
rresult value (unused)

Definition at line 51 of file qgsexpressionbuilderdialog.cpp.

QgsExpressionBuilderWidget * QgsExpressionBuilderDialog::expressionBuilder ( )

The builder widget that is used by the dialog.

Definition at line 36 of file qgsexpressionbuilderdialog.cpp.

QString QgsExpressionBuilderDialog::expressionText ( )

Definition at line 46 of file qgsexpressionbuilderdialog.cpp.

void QgsExpressionBuilderDialog::setExpressionText ( const QString &  text)

Definition at line 41 of file qgsexpressionbuilderdialog.cpp.

void QgsExpressionBuilderDialog::setGeomCalculator ( const QgsDistanceArea da)

Sets geometry calculator used in distance/area calculations.

Definition at line 65 of file qgsexpressionbuilderdialog.cpp.


The documentation for this class was generated from the following files: