62    if ( qobject_cast<QgsRelationReferenceWidget *>( sipCpp ) )
 
   63      sipType = sipType_QgsRelationReferenceWidget;
 
   70    Q_PROPERTY( 
bool openFormButtonVisible READ openFormButtonVisible WRITE setOpenFormButtonVisible )
 
   85    void setRelation( 
const QgsRelation &relation, 
bool allowNullValue );
 
   87    void setRelationEditable( 
bool editable );
 
   93    Q_DECL_DEPRECATED 
void setForeignKey( 
const QVariant &value ) 
SIP_DEPRECATED;
 
   99    void setForeignKeys( 
const QVariantList &values );
 
  113    QVariantList foreignKeys() const;
 
  123    bool embedForm() { 
return mEmbedForm; }
 
  124    void setEmbedForm( 
bool display );
 
  128    void setReadOnlySelector( 
bool readOnly );
 
  132    void setAllowMapIdentification( 
bool allowMapIdentification );
 
  135    void setFilterFields( 
const QStringList &filterFields );
 
  139    void setOpenFormButtonVisible( 
bool openFormButtonVisible );
 
  154    void setChainFilters( 
bool chainFilters );
 
  165    void setFilterExpression( 
const QString &filterExpression );
 
  176    void showIndeterminateState();
 
  182    bool allowAddFeatures() 
const;
 
  188    void setAllowAddFeatures( 
bool allowAddFeatures );
 
  201    void setFormFeature( 
const QgsFeature &formFeature );
 
  207    QString referencedLayerDataSource() 
const;
 
  213    void setReferencedLayerDataSource( 
const QString &referencedLayerDataSource );
 
  219    QString referencedLayerProviderKey() 
const;
 
  225    void setReferencedLayerProviderKey( 
const QString &referencedLayerProviderKey );
 
  231    QString referencedLayerId() 
const;
 
  237    void setReferencedLayerId( 
const QString &referencedLayerId );
 
  243    QString referencedLayerName() 
const;
 
  249    void setReferencedLayerName( 
const QString &referencedLayerName );
 
  269    void mapIdentification();
 
  272    void deleteForeignKeys();
 
  275    void showEvent( QShowEvent *e ) 
override;
 
  294    void highlightActionTriggered( QAction *action );
 
  295    void deleteHighlight();
 
  296    void comboReferenceChanged();
 
  297    void featureIdentified( 
const QgsFeature &feature );
 
  300    void mapToolDeactivated();
 
  301    void filterChanged();
 
  303    void updateAddEntryButton();
 
  305    void onKeyPressed( QKeyEvent *e );
 
  309    void updateAttributeEditorFrame( 
const QgsFeature &feature );
 
  310    void disableChainedComboBoxes( 
const QComboBox *cb );
 
  311    void emitForeignKeysChanged( 
const QVariantList &foreignKeys, 
bool force = 
false );
 
  317    QVariantList mForeignKeys;
 
  321    QStringList mReferencedFields;
 
  322    bool mAllowNull = 
true;
 
  332    QList<QComboBox *> mFilterComboBoxes;
 
  333    QString mFilterExpression;
 
  334    QWidget *mWindowWidget = 
nullptr;
 
  337    bool mIsEditable = 
true;
 
  338    QStringList mFilterFields;
 
  339    QMap<QString, QMap<QString, QSet<QString> > > mFilterCache;
 
  340    bool mInitialized = 
false;
 
  344    bool mEmbedForm = 
false;
 
  345    bool mReadOnlySelector = 
false;
 
  346    bool mAllowMapIdentification = 
false;
 
  347    bool mOpenFormButtonVisible = 
true;
 
  348    bool mChainFilters = 
false;
 
  349    bool mAllowAddFeatures = 
false;
 
  350    QString mReferencedLayerId;
 
  351    QString mReferencedLayerName;
 
  352    QString mReferencedLayerDataSource;
 
  353    QString mReferencedLayerProviderKey;
 
  356    QVBoxLayout *mTopLayout = 
nullptr;
 
  357    QToolButton *mMapIdentificationButton = 
nullptr;
 
  358    QToolButton *mRemoveFKButton = 
nullptr;
 
  359    QToolButton *mOpenFormButton = 
nullptr;
 
  360    QToolButton *mHighlightFeatureButton = 
nullptr;
 
  361    QToolButton *mAddEntryButton = 
nullptr;
 
  362    QAction *mHighlightFeatureAction = 
nullptr;
 
  363    QAction *mScaleHighlightFeatureAction = 
nullptr;
 
  364    QAction *mPanHighlightFeatureAction = 
nullptr;
 
  365    QWidget *mChooserContainer = 
nullptr;
 
  366    QWidget *mFilterContainer = 
nullptr;
 
  367    QHBoxLayout *mFilterLayout = 
nullptr;
 
  369    QVBoxLayout *mAttributeEditorLayout = 
nullptr;
 
  370    QLabel *mInvalidLabel = 
nullptr;
 
  372    friend class TestQgsRelationReferenceWidget;
 
 
This class contains context information for attribute editor widgets.