16#ifndef QGSATTRIBUTEEDITORRELATION_H
17#define QGSATTRIBUTEEDITORRELATION_H
64 , mRelationId( relationId )
84 , mRelationId( relationId )
121 bool forceSuppressFormPopup()
const;
129 void setForceSuppressFormPopup(
bool forceSuppressFormPopup );
135 QVariant nmRelationId()
const;
142 void setNmRelationId(
const QVariant &nmRelationId = QVariant() );
148 QString label()
const;
155 void setLabel(
const QString &label = QString() );
161 QString relationWidgetTypeId()
const;
167 void setRelationWidgetTypeId(
const QString &relationWidgetTypeId );
174 QVariantMap relationEditorConfiguration()
const;
181 void setRelationEditorConfiguration(
const QVariantMap &config );
184 void saveConfiguration( QDomElement &elem, QDomDocument &doc )
const override;
185 void loadConfiguration(
const QDomElement &element,
const QString &layerId,
const QgsReadWriteContext &context,
const QgsFields &fields )
override;
186 QString typeIdentifier()
const override;
190 Buttons mButtons = Buttons( Button::AllButtons );
192 bool mForceSuppressFormPopup =
false;
193 QVariant mNmRelationId;
195 QString mRelationWidgetTypeId;
196 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)