62 if ( qobject_cast<QgsRelationReferenceWidget *>( sipCpp ) )
63 sipType = sipType_QgsRelationReferenceWidget;
84 void setRelation(
const QgsRelation &relation,
bool allowNullValue );
86 void setRelationEditable(
bool editable );
92 Q_DECL_DEPRECATED
void setForeignKey(
const QVariant &value )
SIP_DEPRECATED;
98 void setForeignKeys(
const QVariantList &values );
112 QVariantList foreignKeys() const;
123 void setEmbedForm(
bool display );
127 void setReadOnlySelector(
bool readOnly );
131 void setAllowMapIdentification(
bool allowMapIdentification );
134 void setFilterFields(
const QStringList &filterFields );
138 void setOpenFormButtonVisible(
bool openFormButtonVisible );
153 void setChainFilters(
bool chainFilters );
164 void setFilterExpression(
const QString &filterExpression );
175 void showIndeterminateState();
181 bool allowAddFeatures()
const;
187 void setAllowAddFeatures(
bool allowAddFeatures );
200 void setFormFeature(
const QgsFeature &formFeature );
207 void setParentFormFeature(
const QgsFeature &parentFormFeature );
213 QString referencedLayerDataSource()
const;
219 void setReferencedLayerDataSource(
const QString &referencedLayerDataSource );
225 QString referencedLayerProviderKey()
const;
231 void setReferencedLayerProviderKey(
const QString &referencedLayerProviderKey );
237 QString referencedLayerId()
const;
243 void setReferencedLayerId(
const QString &referencedLayerId );
249 QString referencedLayerName()
const;
255 void setReferencedLayerName(
const QString &referencedLayerName );
302 void mapIdentification();
305 void deleteForeignKeys();
313 bool saveReferencedAttributeForm();
316 void showEvent( QShowEvent *e )
override;
335 void highlightActionTriggered( QAction *action );
336 void deleteHighlight();
337 void comboReferenceChanged();
338 void comboReferenceFoundChanged(
bool found );
339 void featureIdentified(
const QgsFeature &feature );
342 void mapToolDeactivated();
343 void filterChanged();
345 void updateAddEntryButton();
347 void onKeyPressed( QKeyEvent *e );
351 void updateAttributeEditorFrame(
const QgsFeature &feature );
352 void disableChainedComboBoxes(
const QComboBox *cb );
353 void emitForeignKeysChanged(
const QVariantList &
foreignKeys,
bool force =
false );
359 QVariantList mForeignKeys;
362 QStringList mReferencedFields;
363 bool mAllowNull =
true;
373 QList<QComboBox *> mFilterComboBoxes;
374 QString mFilterExpression;
375 QWidget *mWindowWidget =
nullptr;
378 bool mIsEditable =
true;
379 QStringList mFilterFields;
380 QMap<QString, QMap<QString, QSet<QString>>> mFilterCache;
381 bool mInitialized =
false;
385 bool mEmbedForm =
false;
386 bool mReadOnlySelector =
false;
387 bool mAllowMapIdentification =
false;
388 bool mOpenFormButtonVisible =
true;
389 bool mChainFilters =
false;
390 bool mAllowAddFeatures =
false;
391 QString mReferencedLayerId;
392 QString mReferencedLayerName;
393 QString mReferencedLayerDataSource;
394 QString mReferencedLayerProviderKey;
395 QString mOrderExpression;
396 Qt::SortOrder mSortOrder = Qt::AscendingOrder;
399 QVBoxLayout *mTopLayout =
nullptr;
400 QToolButton *mMapIdentificationButton =
nullptr;
401 QToolButton *mRemoveFKButton =
nullptr;
402 QToolButton *mOpenFormButton =
nullptr;
403 QToolButton *mHighlightFeatureButton =
nullptr;
404 QToolButton *mAddEntryButton =
nullptr;
405 QAction *mHighlightFeatureAction =
nullptr;
406 QAction *mScaleHighlightFeatureAction =
nullptr;
407 QAction *mPanHighlightFeatureAction =
nullptr;
408 QWidget *mChooserContainer =
nullptr;
409 QWidget *mFilterContainer =
nullptr;
410 QHBoxLayout *mFilterLayout =
nullptr;
412 QVBoxLayout *mAttributeEditorLayout =
nullptr;
413 QLabel *mInvalidLabel =
nullptr;
Contains context information for attribute editor widgets.