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 );
239 void linkFeature( const QString &filterExpression = QString() );
244 void onLinkFeatureDlgAccepted();
268 bool mLayerInSameTransactionGroup = false;
270 bool mForceSuppressFormPopup = false;
275 void showEvent( QShowEvent * );
301 virtual
void updateUi();
307 Q_DECL_DEPRECATED virtual
void setTitle( const QString &title )
SIP_DEPRECATED;
313 virtual
void beforeSetRelationFeature( const
QgsRelation &newRelation, const
QgsFeature &newFeature );
319 virtual
void afterSetRelationFeature();
331 virtual
void afterSetRelations();
349 if ( qobject_cast<QgsRelationEditorConfigWidget *>( sipCpp ) )
350 sipType = sipType_QgsRelationEditorConfigWidget;
379 virtual void setConfig(
const QVariantMap &config ) = 0;
400 virtual void setNmRelation(
const QgsRelation &nmRelation );
439 virtual QString
type()
const = 0;
444 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