QGIS API Documentation
2.2.0-Valmiera
|
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. |
Private Attributes | |
QgsVectorLayerTools * | mVectorLayerTools |
QMap< QgsVectorLayer *, QMap < int, QWidget * > > | mProxyWidgets |
vectorlayer => ( fieldIdx, proxyWidget ) | |
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 | ||
) |
Definition at line 34 of file qgsattributeeditorcontext.cpp.
References mProxyWidgets.
Referenced by QgsAttributeEditor::createAttributeEditor().
void QgsAttributeEditorContext::addProxyWidgets | ( | QgsVectorLayer * | vl, |
QMap< int, QWidget * > | proxyWidgets | ||
) |
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
layer | The layer to adjust for. |
Definition at line 40 of file qgsattributeeditorcontext.cpp.
References QgsMapLayer::crs(), mDistanceArea, and QgsDistanceArea::setSourceCrs().
Referenced by QgsAttributeDialog::QgsAttributeDialog().
|
inline |
Definition at line 44 of file qgsattributeeditorcontext.h.
Referenced by QgsAttributeDialog::init().
QWidget * QgsAttributeEditorContext::proxyWidget | ( | QgsVectorLayer * | vl, |
int | fieldIdx | ||
) |
Definition at line 24 of file qgsattributeeditorcontext.cpp.
References mProxyWidgets.
Referenced by QgsAttributeDialog::accept(), and QgsAttributeEditor::createAttributeEditor().
|
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 64 of file qgsattributeeditorcontext.h.
Referenced by adjustForLayer().
|
private |
vectorlayer => ( fieldIdx, proxyWidget )
Definition at line 62 of file qgsattributeeditorcontext.h.
Referenced by addProxyWidget(), addProxyWidgets(), and proxyWidget().
|
private |
Definition at line 59 of file qgsattributeeditorcontext.h.