24     , mMessageBar( messageBar )
    44   cfg.
insert( 
"AllowNULL", configElement.
attribute( 
"AllowNULL" ) == 
"1" );
    45   cfg.
insert( 
"OrderByValue", configElement.
attribute( 
"OrderByValue" ) == 
"1" );
    48   cfg.
insert( 
"MapIdentification", configElement.
attribute( 
"MapIdentification" ) == 
"1" );
    52   if ( !filterNode.
isNull() )
    57     for ( 
int i = 0; i < fieldNodes.
size(); i++ )
    60       filterFields << fieldElement.
attribute( 
"name" );
    62     cfg.
insert( 
"FilterFields", filterFields );
    75   configElement.
setAttribute( 
"AllowNULL", config[
"AllowNULL"].toBool() );
    76   configElement.
setAttribute( 
"OrderByValue", config[
"OrderByValue"].toBool() );
    77   configElement.
setAttribute( 
"ShowForm", config[
"ShowForm"].toBool() );
    78   configElement.
setAttribute( 
"Relation", config[
"Relation"].toString() );
    79   configElement.
setAttribute( 
"MapIdentification", config[
"MapIdentification"].toBool() );
    80   configElement.
setAttribute( 
"ReadOnly", config[
"ReadOnly"].toBool() );
    82   if ( config.
contains( 
"FilterFields" ) )
    86     Q_FOREACH ( 
const QString& field, config[
"FilterFields"].toStringList() )
    94     filterFields.
setAttribute( 
"ChainFilters", config[
"ChainFilters"].toBool() );
   101   map.
insert( QgsRelationReferenceWidget::staticMetaObject.className(), 10 );
 virtual QgsEditorConfigWidget * configWidget(QgsVectorLayer *vl, int fieldIdx, QWidget *parent) const override
Override this in your implementation. 
 
QDomNodeList elementsByTagName(const QString &tagname) const
 
bool contains(const Key &key) const
 
QDomNode appendChild(const QDomNode &newChild)
 
QString attribute(const QString &name, const QString &defValue) const
 
A bar for displaying non-blocking messages to the user. 
 
virtual void writeConfig(const QgsEditorWidgetConfig &config, QDomElement &configElement, QDomDocument &doc, const QgsVectorLayer *layer, int fieldIdx) override
Serialize your configuration and save it in a xml doc. 
 
Map canvas is a class for displaying all GIS data types on a canvas. 
 
QDomElement toElement() const
 
virtual QMap< const char *, int > supportedWidgetTypes() override
Returns a list of widget types which this editor widget supports. 
 
void setAttribute(const QString &name, const QString &value)
 
virtual QgsEditorWidgetConfig readConfig(const QDomElement &configElement, QgsVectorLayer *layer, int fieldIdx) override
Read the config from an XML file and map it to a proper QgsEditorWidgetConfig. 
 
QgsRelationReferenceFactory(const QString &name, QgsMapCanvas *canvas, QgsMessageBar *messageBar)
 
iterator insert(const Key &key, const T &value)
 
QDomElement createElement(const QString &tagName)
 
Represents a vector layer which manages a vector based data sets. 
 
virtual QgsEditorWidgetWrapper * create(QgsVectorLayer *vl, int fieldIdx, QWidget *editor, QWidget *parent) const override
Override this in your implementation. 
 
QDomNode at(int index) const