16#ifndef QGSATTRIBUTEEDITORRELATION_H
17#define QGSATTRIBUTEEDITORRELATION_H
63 , mRelationId( relationId )
83 , mRelationId( relationId )
120 bool forceSuppressFormPopup()
const;
128 void setForceSuppressFormPopup(
bool forceSuppressFormPopup );
134 QVariant nmRelationId()
const;
141 void setNmRelationId(
const QVariant &nmRelationId = QVariant() );
147 QString label()
const;
154 void setLabel(
const QString &label = QString() );
160 QString relationWidgetTypeId()
const;
166 void setRelationWidgetTypeId(
const QString &relationWidgetTypeId );
173 QVariantMap relationEditorConfiguration()
const;
180 void setRelationEditorConfiguration(
const QVariantMap &config );
183 void saveConfiguration( QDomElement &elem, QDomDocument &doc )
const override;
184 void loadConfiguration(
const QDomElement &element,
const QString &layerId,
const QgsReadWriteContext &context,
const QgsFields &fields )
override;
185 QString typeIdentifier()
const override;
189 Buttons mButtons = Buttons( Button::AllButtons );
191 bool mForceSuppressFormPopup =
false;
192 QVariant mNmRelationId;
194 QString mRelationWidgetTypeId;
195 QVariantMap mRelationEditorConfig;
Provides global constants and enumerations for use throughout the application.
An abstract base class for any elements of a drag and drop form.
QgsAttributeEditorElement * parent() const
Gets the parent of this element.
QgsAttributeEditorElement(Qgis::AttributeEditorType type, const QString &name, QgsAttributeEditorElement *parent=nullptr)
Constructor.
QString name() const
Returns the name of this element.
virtual QgsAttributeEditorElement * clone(QgsAttributeEditorElement *parent) const =0
Returns a clone of this element.
const QgsRelation & relation() const
Gets the id of the relation which shall be embedded.
Q_DECL_DEPRECATED QgsAttributeEditorRelation(const QString &name, const QgsRelation &relation, QgsAttributeEditorElement *parent)
Button
Possible buttons shown in the relation editor.
@ DeleteChildFeature
Delete child feature button.
@ ZoomToChildFeature
Zoom to child feature.
@ AddChildFeature
Add child feature (as in some projects we only want to allow linking/unlinking existing features).
@ DuplicateChildFeature
Duplicate child feature.
@ SaveChildEdits
Save child edits button.
Q_DECL_DEPRECATED QgsAttributeEditorRelation(const QString &name, const QString &relationId, QgsAttributeEditorElement *parent)
QgsAttributeEditorRelation(const QString &relationId, QgsAttributeEditorElement *parent)
Creates a new element which embeds a relation.
QgsAttributeEditorRelation(const QgsRelation &relation, QgsAttributeEditorElement *parent)
Creates a new element which embeds a relation.
Container of fields for a vector layer.
A container for the context for various read/write operations on objects.
Manages a set of relations between layers.
Represents a relationship between two vector layers.
#define Q_NOWARN_DEPRECATED_POP
#define Q_NOWARN_DEPRECATED_PUSH
#define SIP_ENUM_BASETYPE(type)