QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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>

Inheritance diagram for QgsExpressionBuilderDialog:
Inheritance graph
[legend]

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. More...
 
void setExpressionText (const QString &text)
 
QString expressionText ()
 
void setGeomCalculator (const QgsDistanceArea &da)
 Sets geometry calculator used in distance/area calculations. More...
 

Protected Member Functions

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

Detailed Description

A generic dialog for building expression strings.

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

Constructor & Destructor Documentation

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

Member Function Documentation

void QgsExpressionBuilderDialog::accept ( )
protectedvirtual
void QgsExpressionBuilderDialog::done ( int  r)
protectedvirtual

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

Parameters
rresult 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.


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