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 );
129 Q_DECL_DEPRECATED
void setShowLabel(
bool showLabel )
SIP_DEPRECATED;
134 QVariant nmRelationId() const;
140 void setNmRelationId( const QVariant &nmRelationId = QVariant() );
152 void setLabel( const QString &label = QString() );
170 bool forceSuppressFormPopup() const;
176 void setForceSuppressFormPopup(
bool forceSuppressFormPopup );
181 virtual QVariantMap config() const = 0;
186 virtual
void setConfig( const QVariantMap &config ) = 0;
192 bool multiEditModeActive() const;
203 void relatedFeaturesChanged();
210 virtual
void parentFormValueChanged( const QString &attribute, const QVariant &newValue ) = 0;
217 void toggleEditing(
bool state );
243 void onLinkFeatureDlgAccepted();
267 bool mLayerInSameTransactionGroup = false;
269 bool mForceSuppressFormPopup = false;
274 void showEvent( QShowEvent * );
300 virtual
void updateUi();
306 Q_DECL_DEPRECATED virtual
void setTitle( const QString &title )
SIP_DEPRECATED;
312 virtual
void beforeSetRelationFeature( const
QgsRelation &newRelation, const
QgsFeature &newFeature );
318 virtual
void afterSetRelationFeature();
330 virtual
void afterSetRelations();
348 if ( qobject_cast<QgsRelationEditorConfigWidget *>( sipCpp ) )
349 sipType = sipType_QgsRelationEditorConfigWidget;
378 virtual void setConfig(
const QVariantMap &config ) = 0;
399 virtual void setNmRelation(
const QgsRelation &nmRelation );
438 virtual QString
type()
const = 0;
443 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)
QList< QgsFeature > QgsFeatureList
QSet< QgsFeatureId > QgsFeatureIds
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features