18#ifndef QGSABSTRACTRELATIONEDITORWIDGET_H
19#define QGSABSTRACTRELATIONEDITORWIDGET_H
49 if ( qobject_cast<QgsRelationEditorWidget *>( sipCpp ) )
50 sipType = sipType_QgsRelationEditorWidget;
95 void setFeature(
const QgsFeature &feature,
bool update =
true );
126 Q_DECL_DEPRECATED
void setShowLabel(
bool showLabel )
SIP_DEPRECATED;
131 QVariant nmRelationId() const;
137 void setNmRelationId( const QVariant &nmRelationId = QVariant() );
149 void setLabel( const QString &label = QString() );
167 bool forceSuppressFormPopup() const;
173 void setForceSuppressFormPopup(
bool forceSuppressFormPopup );
178 virtual QVariantMap config() const = 0;
183 virtual
void setConfig( const QVariantMap &config ) = 0;
189 bool multiEditModeActive() const;
200 void relatedFeaturesChanged();
207 virtual
void parentFormValueChanged( const QString &attribute, const QVariant &newValue ) = 0;
214 void toggleEditing(
bool state );
236 void linkFeature( const QString &filterExpression = QString() );
241 void onLinkFeatureDlgAccepted();
264 bool mLayerInSameTransactionGroup = false;
266 bool mForceSuppressFormPopup = false;
271 void showEvent( QShowEvent * );
297 virtual
void updateUi();
303 Q_DECL_DEPRECATED virtual
void setTitle( const QString &title )
SIP_DEPRECATED;
309 virtual
void beforeSetRelationFeature( const
QgsRelation &newRelation, const
QgsFeature &newFeature );
315 virtual
void afterSetRelationFeature();
327 virtual
void afterSetRelations();
344 if ( qobject_cast<QgsRelationEditorConfigWidget *>( sipCpp ) )
345 sipType = sipType_QgsRelationEditorConfigWidget;
373 virtual void setConfig(
const QVariantMap &config ) = 0;
394 virtual void setNmRelation(
const QgsRelation &nmRelation );
432 virtual QString
type()
const = 0;
437 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 relationship between two vector layers.
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