QGIS API Documentation
2.4.0-Chugiak
|
This class contains context information for attribute editor widgets. More...
#include <qgsattributeeditorcontext.h>
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 QgsDistanceArea & | distanceArea () |
void | setVectorLayerTools (QgsVectorLayerTools *vlTools) |
QgsVectorLayerTools * | vectorLayerTools () |
void | adjustForLayer (QgsVectorLayer *layer) |
When copying the context for another layer, call this. More... | |
Private Attributes | |
QgsVectorLayerTools * | mVectorLayerTools |
QMap< QgsVectorLayer *, QMap < int, QWidget * > > | mProxyWidgets |
vectorlayer => ( fieldIdx, proxyWidget ) More... | |
QgsDistanceArea | mDistanceArea |
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.
QgsAttributeEditorContext::QgsAttributeEditorContext | ( | ) |
Definition at line 18 of file qgsattributeeditorcontext.cpp.
void QgsAttributeEditorContext::addProxyWidget | ( | QgsVectorLayer * | vl, |
int | idx, | ||
QWidget * | widget | ||
) |
void QgsAttributeEditorContext::addProxyWidgets | ( | QgsVectorLayer * | vl, |
QMap< int, QWidget * > | proxyWidgets | ||
) |
void QgsAttributeEditorContext::adjustForLayer | ( | QgsVectorLayer * | layer | ) |
When copying the context for another layer, call this.
Will adjast the distance area for this layer
layer | The layer to adjust for. |
Definition at line 24 of file qgsattributeeditorcontext.cpp.
References QgsMapLayer::crs(), mDistanceArea, and QgsDistanceArea::setSourceCrs().
|
inline |
Definition at line 44 of file qgsattributeeditorcontext.h.
QWidget* QgsAttributeEditorContext::proxyWidget | ( | QgsVectorLayer * | vl, |
int | fieldIdx | ||
) |
|
inline |
Definition at line 43 of file qgsattributeeditorcontext.h.
Referenced by QgsAttributeDialog::QgsAttributeDialog().
|
inline |
Definition at line 46 of file qgsattributeeditorcontext.h.
|
inline |
Definition at line 47 of file qgsattributeeditorcontext.h.
Referenced by QgsRelationEditorWidget::on_mAddFeatureButton_clicked(), and QgsRelationEditorWidget::on_mToggleEditingButton_toggled().
|
private |
Definition at line 63 of file qgsattributeeditorcontext.h.
Referenced by adjustForLayer().
|
private |
vectorlayer => ( fieldIdx, proxyWidget )
Definition at line 61 of file qgsattributeeditorcontext.h.
|
private |
Definition at line 58 of file qgsattributeeditorcontext.h.