16 #ifndef QGSATTRIBUTEEDITORCONTEXT_H 17 #define QGSATTRIBUTEEDITORCONTEXT_H 54 : mParentContext( nullptr )
56 , mVectorLayerTools( nullptr )
57 , mRelationMode( Undefined )
59 , mAllowCustomUi( true )
63 : mParentContext( &parentContext )
65 , mVectorLayerTools( parentContext.mVectorLayerTools )
66 , mDistanceArea( parentContext.mDistanceArea )
67 , mRelationMode( Undefined )
68 , mFormMode( formMode )
69 , mAllowCustomUi( true )
75 : mParentContext( &parentContext )
77 , mVectorLayerTools( parentContext.mVectorLayerTools )
78 , mDistanceArea( parentContext.mDistanceArea )
79 , mRelation( relation )
80 , mRelationMode( relationMode )
81 , mFormMode( widgetMode )
82 , mAllowCustomUi( true )
91 mDistanceArea = distanceArea;
144 #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)
void setSourceCrs(long srsid)
sets source spatial reference system (by QGIS CRS)
When showing a list of features (e.g. houses as an embedded form in a district form) ...
QgsAttributeEditorContext()
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.
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.
General purpose distance and area calculator.
void setFormMode(FormMode mode)
Sets the form mode.
bool allowCustomUi() const
Returns true if the attribute editor should permit use of custom UI forms.
const QgsDistanceArea & distanceArea() const
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.