18 #ifndef QGSABSTRACTRELATIONEDITORWIDGET_H
19 #define QGSABSTRACTRELATIONEDITORWIDGET_H
50 if ( qobject_cast<QgsRelationEditorWidget *>( sipCpp ) )
51 sipType = sipType_QgsRelationEditorWidget;
98 void setFeature(
const QgsFeature &feature,
bool update =
true );
122 Q_DECL_DEPRECATED
void setShowLabel(
bool showLabel )
SIP_DEPRECATED;
127 QVariant nmRelationId() const;
133 void setNmRelationId( const QVariant &nmRelationId = QVariant() );
145 void setLabel( const QString &label = QString() );
155 bool forceSuppressFormPopup() const;
161 void setForceSuppressFormPopup(
bool forceSuppressFormPopup );
166 virtual QVariantMap config() const = 0;
171 virtual
void setConfig( const QVariantMap &config ) = 0;
178 virtual
void parentFormValueChanged( const QString &attribute, const QVariant &newValue ) = 0;
185 void toggleEditing(
bool state );
210 void onLinkFeatureDlgAccepted();
234 bool mLayerInSameTransactionGroup = false;
236 bool mForceSuppressFormPopup = false;
241 void showEvent( QShowEvent * );
267 virtual
void updateUi();
273 Q_DECL_DEPRECATED virtual
void setTitle( const QString &title )
SIP_DEPRECATED;
279 virtual
void beforeSetRelationFeature( const
QgsRelation &newRelation, const
QgsFeature &newFeature );
285 virtual
void afterSetRelationFeature();
297 virtual
void afterSetRelations();
315 if ( qobject_cast<QgsRelationEditorConfigWidget *>( sipCpp ) )
316 sipType = sipType_QgsRelationEditorConfigWidget;
345 virtual void setConfig(
const QVariantMap &config ) = 0;
366 virtual void setNmRelation(
const QgsRelation &nmRelation );
405 virtual QString
type()
const = 0;
410 virtual QString
name()
const = 0;
This class contains context information for attribute editor widgets.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
A geometry is the spatial representation of a feature.
Represents a vector layer which manages a vector based data sets.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
QSet< QgsFeatureId > QgsFeatureIds
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features