QGIS API Documentation  2.4.0-Chugiak
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
QgsAttributeEditorContext Class Reference

This class contains context information for attribute editor widgets. More...

#include <qgsattributeeditorcontext.h>

Collaboration diagram for QgsAttributeEditorContext:
Collaboration graph

Public Member Functions

 QgsAttributeEditorContext ()
QWidget * proxyWidget (QgsVectorLayer *vl, int fieldIdx)
void addProxyWidgets (QgsVectorLayer *vl, QMap< int, QWidget * > proxyWidgets)
void addProxyWidget (QgsVectorLayer *vl, int idx, QWidget *widget)
void setDistanceArea (const QgsDistanceArea &distanceArea)
const QgsDistanceAreadistanceArea ()
void setVectorLayerTools (QgsVectorLayerTools *vlTools)
QgsVectorLayerToolsvectorLayerTools ()
void adjustForLayer (QgsVectorLayer *layer)
 When copying the context for another layer, call this. More...

Private Attributes

QMap< QgsVectorLayer *, QMap
< int, QWidget * > > 
 vectorlayer => ( fieldIdx, proxyWidget ) More...
QgsDistanceArea mDistanceArea

Detailed Description

This class contains context information for attribute editor widgets.

It will be passed to embedded widgets whenever this occurs (e.g. when showing an embedded form due to relations)

Definition at line 33 of file qgsattributeeditorcontext.h.

Constructor & Destructor Documentation

QgsAttributeEditorContext::QgsAttributeEditorContext ( )

Definition at line 18 of file qgsattributeeditorcontext.cpp.

Member Function Documentation

void QgsAttributeEditorContext::addProxyWidget ( QgsVectorLayer vl,
int  idx,
QWidget *  widget 
void QgsAttributeEditorContext::addProxyWidgets ( QgsVectorLayer vl,
QMap< int, QWidget * >  proxyWidgets 
not available in python bindings
void QgsAttributeEditorContext::adjustForLayer ( QgsVectorLayer layer)

When copying the context for another layer, call this.

Will adjast the distance area for this layer

layerThe layer to adjust for.

Definition at line 24 of file qgsattributeeditorcontext.cpp.

References QgsMapLayer::crs(), mDistanceArea, and QgsDistanceArea::setSourceCrs().

const QgsDistanceArea& QgsAttributeEditorContext::distanceArea ( )

Definition at line 44 of file qgsattributeeditorcontext.h.

QWidget* QgsAttributeEditorContext::proxyWidget ( QgsVectorLayer vl,
int  fieldIdx 
void QgsAttributeEditorContext::setDistanceArea ( const QgsDistanceArea distanceArea)

Definition at line 43 of file qgsattributeeditorcontext.h.

Referenced by QgsAttributeDialog::QgsAttributeDialog().

void QgsAttributeEditorContext::setVectorLayerTools ( QgsVectorLayerTools vlTools)

Definition at line 46 of file qgsattributeeditorcontext.h.

QgsVectorLayerTools* QgsAttributeEditorContext::vectorLayerTools ( )

Member Data Documentation

QgsDistanceArea QgsAttributeEditorContext::mDistanceArea

Definition at line 63 of file qgsattributeeditorcontext.h.

Referenced by adjustForLayer().

QMap<QgsVectorLayer*, QMap<int, QWidget*> > QgsAttributeEditorContext::mProxyWidgets

vectorlayer => ( fieldIdx, proxyWidget )

Definition at line 61 of file qgsattributeeditorcontext.h.

QgsVectorLayerTools* QgsAttributeEditorContext::mVectorLayerTools

Definition at line 58 of file qgsattributeeditorcontext.h.

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