62 if ( qobject_cast<QgsRelationReferenceWidget *>( sipCpp ) )
63 sipType = sipType_QgsRelationReferenceWidget;
70 Q_PROPERTY(
bool openFormButtonVisible READ openFormButtonVisible WRITE setOpenFormButtonVisible )
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;
122 bool embedForm() {
return mEmbedForm; }
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 );
274 void mapIdentification();
277 void deleteForeignKeys();
285 bool saveReferencedAttributeForm();
288 void showEvent( QShowEvent *e )
override;
307 void highlightActionTriggered( QAction *action );
308 void deleteHighlight();
309 void comboReferenceChanged();
310 void comboReferenceFoundChanged(
bool found );
311 void featureIdentified(
const QgsFeature &feature );
314 void mapToolDeactivated();
315 void filterChanged();
317 void updateAddEntryButton();
319 void onKeyPressed( QKeyEvent *e );
323 void updateAttributeEditorFrame(
const QgsFeature &feature );
324 void disableChainedComboBoxes(
const QComboBox *cb );
325 void emitForeignKeysChanged(
const QVariantList &foreignKeys,
bool force =
false );
331 QVariantList mForeignKeys;
334 QStringList mReferencedFields;
335 bool mAllowNull =
true;
345 QList<QComboBox *> mFilterComboBoxes;
346 QString mFilterExpression;
347 QWidget *mWindowWidget =
nullptr;
350 bool mIsEditable =
true;
351 QStringList mFilterFields;
352 QMap<QString, QMap<QString, QSet<QString>>> mFilterCache;
353 bool mInitialized =
false;
357 bool mEmbedForm =
false;
358 bool mReadOnlySelector =
false;
359 bool mAllowMapIdentification =
false;
360 bool mOpenFormButtonVisible =
true;
361 bool mChainFilters =
false;
362 bool mAllowAddFeatures =
false;
363 QString mReferencedLayerId;
364 QString mReferencedLayerName;
365 QString mReferencedLayerDataSource;
366 QString mReferencedLayerProviderKey;
369 QVBoxLayout *mTopLayout =
nullptr;
370 QToolButton *mMapIdentificationButton =
nullptr;
371 QToolButton *mRemoveFKButton =
nullptr;
372 QToolButton *mOpenFormButton =
nullptr;
373 QToolButton *mHighlightFeatureButton =
nullptr;
374 QToolButton *mAddEntryButton =
nullptr;
375 QAction *mHighlightFeatureAction =
nullptr;
376 QAction *mScaleHighlightFeatureAction =
nullptr;
377 QAction *mPanHighlightFeatureAction =
nullptr;
378 QWidget *mChooserContainer =
nullptr;
379 QWidget *mFilterContainer =
nullptr;
380 QHBoxLayout *mFilterLayout =
nullptr;
382 QVBoxLayout *mAttributeEditorLayout =
nullptr;
383 QLabel *mInvalidLabel =
nullptr;
385 friend class TestQgsRelationReferenceWidget;
Contains context information for attribute editor widgets.