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;
182 void relatedFeaturesChanged();
189 virtual
void parentFormValueChanged( const QString &attribute, const QVariant &newValue ) = 0;
196 void toggleEditing(
bool state );
221 void onLinkFeatureDlgAccepted();
245 bool mLayerInSameTransactionGroup = false;
247 bool mForceSuppressFormPopup = false;
252 void showEvent( QShowEvent * );
278 virtual
void updateUi();
284 Q_DECL_DEPRECATED virtual
void setTitle( const QString &title )
SIP_DEPRECATED;
290 virtual
void beforeSetRelationFeature( const
QgsRelation &newRelation, const
QgsFeature &newFeature );
296 virtual
void afterSetRelationFeature();
308 virtual
void afterSetRelations();
326 if ( qobject_cast<QgsRelationEditorConfigWidget *>( sipCpp ) )
327 sipType = sipType_QgsRelationEditorConfigWidget;
356 virtual void setConfig(
const QVariantMap &config ) = 0;
377 virtual void setNmRelation(
const QgsRelation &nmRelation );
416 virtual QString
type()
const = 0;
421 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