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;
371 virtual QVariantMap config() = 0;
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;
469 #endif // QGSABSTRACTRELATIONEDITORWIDGET_H