16 #ifndef QGSATTRIBUTEEDITORCONTEXT_H 17 #define QGSATTRIBUTEEDITORCONTEXT_H 60 : mParentContext( &parentContext )
61 , mVectorLayerTools( parentContext.mVectorLayerTools )
62 , mDistanceArea( parentContext.mDistanceArea )
63 , mFormMode( formMode )
69 : mParentContext( &parentContext )
70 , mVectorLayerTools( parentContext.mVectorLayerTools )
71 , mDistanceArea( parentContext.mDistanceArea )
72 , mRelation( relation )
73 , mRelationMode( relationMode )
74 , mFormMode( widgetMode )
83 mDistanceArea = distanceArea;
137 bool mAllowCustomUi =
true;
140 #endif // QGSATTRIBUTEEDITORCONTEXT_H
const QgsVectorLayerTools * vectorLayerTools() const
A form was opened as a new dialog.
This class contains context information for attribute editor widgets.
QgsAttributeEditorContext(const QgsAttributeEditorContext &parentContext, FormMode formMode)
When showing a list of features (e.g. houses as an embedded form in a district form) ...
QgsAttributeEditorContext(const QgsAttributeEditorContext &parentContext, const QgsRelation &relation, RelationMode relationMode, FormMode widgetMode)
void setVectorLayerTools(QgsVectorLayerTools *vlTools)
void setAllowCustomUi(bool allow)
Sets whether the attribute editor should permit use of custom UI forms.
QgsCoordinateTransformContext transformContext() const
Returns a copy of the project's coordinate transform context, which stores various information regard...
This context is not defined by a relation.
RelationMode
Determines in which direction a relation was resolved.
const QgsRelation & relation() const
void setDistanceArea(const QgsDistanceArea &distanceArea)
const QgsAttributeEditorContext * parentContext() const
FormMode formMode() const
Returns the form mode.
A general purpose distance and area calculator, capable of performing ellipsoid based calculations...
void setFormMode(FormMode mode)
Sets the form mode.
bool allowCustomUi() const
Returns true if the attribute editor should permit use of custom UI forms.
static QgsProject * instance()
Returns the QgsProject singleton instance.
const QgsDistanceArea & distanceArea() const
void setSourceCrs(const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &context)
Sets source spatial reference system crs.
RelationMode relationMode() const
Represents a vector layer which manages a vector based data sets.
void setRelation(const QgsRelation &relation, RelationMode mode)
A form was embedded as a widget on another form.