QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
This class contains context information for attribute editor widgets. More...
#include <qgsattributeeditorcontext.h>
Public Types | |
enum | FormMode { Embed, StandaloneDialog, Popup } |
enum | Mode { SingleEditMode, AddFeatureMode, MultiEditMode, SearchMode, AggregateSearchMode, IdentifyMode } |
modes More... | |
enum | RelationMode { Undefined, Multiple, Single } |
Determines in which direction a relation was resolved. More... | |
Public Member Functions | |
QgsAttributeEditorContext ()=default | |
Constructor for QgsAttributeEditorContext. More... | |
QgsAttributeEditorContext (const QgsAttributeEditorContext &parentContext, FormMode formMode) | |
QgsAttributeEditorContext (const QgsAttributeEditorContext &parentContext, const QgsRelation &relation, RelationMode relationMode, FormMode widgetMode) | |
bool | allowCustomUi () const |
Returns true if the attribute editor should permit use of custom UI forms. More... | |
Mode | attributeFormMode () const |
Returns current attributeFormMode. More... | |
QString | attributeFormModeString () const |
Returns given attributeFormMode as string. More... | |
const QgsDistanceArea & | distanceArea () const |
Returns the distance area object used for area/length calculations. More... | |
QgsFeature | formFeature () const |
Returns current feature from the currently edited form or table row. More... | |
FormMode | formMode () const |
Returns the form mode. More... | |
QgsMapCanvas * | mapCanvas () const |
Returns the associated map canvas (e.g. More... | |
const QgsAttributeEditorContext * | parentContext () const |
const QgsRelation & | relation () const |
Returns the attribute relation. More... | |
RelationMode | relationMode () const |
Returns the attribute relation mode. More... | |
void | setAllowCustomUi (bool allow) |
Sets whether the attribute editor should permit use of custom UI forms. More... | |
void | setAttributeFormMode (const Mode &attributeFormMode) |
Set attributeFormMode for the edited form. More... | |
void | setDistanceArea (const QgsDistanceArea &distanceArea) |
Sets distance area object, distanceArea, for area/length calculations. More... | |
void | setFormFeature (const QgsFeature &feature) |
Set current feature for the currently edited form or table row. More... | |
void | setFormMode (FormMode mode) |
Sets the form mode. More... | |
void | setMapCanvas (QgsMapCanvas *mapCanvas) |
Sets the associated map canvas, mapCanvas, (e.g. More... | |
void | setRelation (const QgsRelation &relation, RelationMode mode) |
Set attribute relation and mode. More... | |
void | setVectorLayerTools (QgsVectorLayerTools *vlTools) |
Sets the associated vector layer tools. More... | |
const QgsVectorLayerTools * | vectorLayerTools () const |
Returns the associated vector layer tools. More... | |
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 38 of file qgsattributeeditorcontext.h.
Enumerator | |
---|---|
Embed |
A form was embedded as a widget on another form. |
StandaloneDialog |
A form was opened as a new dialog. |
Popup |
A widget was opened as a popup (e.g. attribute table editor widget) |
Definition at line 67 of file qgsattributeeditorcontext.h.
modes
Definition at line 45 of file qgsattributeeditorcontext.h.
Determines in which direction a relation was resolved.
Definition at line 60 of file qgsattributeeditorcontext.h.
|
default |
Constructor for QgsAttributeEditorContext.
|
inline |
Definition at line 77 of file qgsattributeeditorcontext.h.
|
inline |
Definition at line 88 of file qgsattributeeditorcontext.h.
|
inline |
Returns true if the attribute editor should permit use of custom UI forms.
Definition at line 196 of file qgsattributeeditorcontext.h.
|
inline |
Returns current attributeFormMode.
Definition at line 227 of file qgsattributeeditorcontext.h.
|
inline |
Returns given attributeFormMode as string.
Definition at line 239 of file qgsattributeeditorcontext.h.
|
inline |
Returns the distance area object used for area/length calculations.
Definition at line 119 of file qgsattributeeditorcontext.h.
|
inline |
Returns current feature from the currently edited form or table row.
Definition at line 214 of file qgsattributeeditorcontext.h.
|
inline |
Returns the form mode.
Definition at line 181 of file qgsattributeeditorcontext.h.
|
inline |
Returns the associated map canvas (e.g.
to zoom to related features).
Definition at line 133 of file qgsattributeeditorcontext.h.
|
inline |
Definition at line 207 of file qgsattributeeditorcontext.h.
|
inline |
Returns the attribute relation.
Definition at line 167 of file qgsattributeeditorcontext.h.
|
inline |
Returns the attribute relation mode.
Definition at line 175 of file qgsattributeeditorcontext.h.
|
inline |
Sets whether the attribute editor should permit use of custom UI forms.
allow | set to true to allow custom UI forms, or false to disable them and use default generated QGIS forms |
Definition at line 205 of file qgsattributeeditorcontext.h.
|
inline |
Set attributeFormMode for the edited form.
Definition at line 233 of file qgsattributeeditorcontext.h.
|
inline |
Sets distance area object, distanceArea, for area/length calculations.
Definition at line 105 of file qgsattributeeditorcontext.h.
|
inline |
Set current feature for the currently edited form or table row.
Definition at line 221 of file qgsattributeeditorcontext.h.
|
inline |
Sets the form mode.
mode | form mode |
Definition at line 189 of file qgsattributeeditorcontext.h.
|
inline |
Sets the associated map canvas, mapCanvas, (e.g.
to zoom to related features).
Definition at line 126 of file qgsattributeeditorcontext.h.
|
inline |
Set attribute relation and mode.
relation | relation |
mode | relation mode |
Definition at line 159 of file qgsattributeeditorcontext.h.
|
inline |
Sets the associated vector layer tools.
vlTools | vector layer tools |
Definition at line 141 of file qgsattributeeditorcontext.h.
|
inline |
Returns the associated vector layer tools.
Definition at line 149 of file qgsattributeeditorcontext.h.