QGIS API Documentation  2.3.0-Master
 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
[legend]

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

QgsVectorLayerToolsmVectorLayerTools
 
QMap< QgsVectorLayer *, QMap
< int, QWidget * > > 
mProxyWidgets
 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 
)

Definition at line 34 of file qgsattributeeditorcontext.cpp.

References mProxyWidgets.

Referenced by QgsAttributeEditor::createAttributeEditor().

void QgsAttributeEditorContext::addProxyWidgets ( QgsVectorLayer vl,
QMap< int, QWidget * >  proxyWidgets 
)
Note
not available in python bindings

Definition at line 29 of file qgsattributeeditorcontext.cpp.

References mProxyWidgets.

Referenced by QgsAttributeEditor::createAttributeEditor().

void QgsAttributeEditorContext::adjustForLayer ( QgsVectorLayer layer)

When copying the context for another layer, call this.

Will adjast the distance area for this layer

Parameters
layerThe layer to adjust for.

Definition at line 40 of file qgsattributeeditorcontext.cpp.

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

Referenced by QgsAttributeDialog::QgsAttributeDialog().

const QgsDistanceArea& QgsAttributeEditorContext::distanceArea ( )
inline

Definition at line 44 of file qgsattributeeditorcontext.h.

Referenced by QgsAttributeDialog::init().

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

Definition at line 43 of file qgsattributeeditorcontext.h.

Referenced by QgsAttributeDialog::QgsAttributeDialog().

void QgsAttributeEditorContext::setVectorLayerTools ( QgsVectorLayerTools vlTools)
inline

Definition at line 46 of file qgsattributeeditorcontext.h.

QgsVectorLayerTools* QgsAttributeEditorContext::vectorLayerTools ( )
inline

Member Data Documentation

QgsDistanceArea QgsAttributeEditorContext::mDistanceArea
private

Definition at line 64 of file qgsattributeeditorcontext.h.

Referenced by adjustForLayer().

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

vectorlayer => ( fieldIdx, proxyWidget )

Definition at line 62 of file qgsattributeeditorcontext.h.

Referenced by addProxyWidget(), addProxyWidgets(), and proxyWidget().

QgsVectorLayerTools* QgsAttributeEditorContext::mVectorLayerTools
private

Definition at line 59 of file qgsattributeeditorcontext.h.


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