18 #ifndef QGSEDITFORMCONFIG_H    19 #define QGSEDITFORMCONFIG_H    94     bool showLabel() 
const;
   101     void setShowLabel( 
bool showLabel );
   114     virtual void saveConfiguration( 
QDomElement& elem ) 
const = 0;
   122     virtual QString typeIdentifier() 
const = 0;
   143         , mIsGroupBox( true )
   195     int columnCount() 
const;
   200     void setColumnCount( 
int columnCount );
   217     virtual void saveConfiguration( 
QDomElement& elem ) 
const override;
   218     virtual QString typeIdentifier() 
const override;
   253     int idx()
 const { 
return mIdx; }
   256     virtual void saveConfiguration( 
QDomElement& elem ) 
const override;
   257     virtual QString typeIdentifier() 
const override;
   278         , mRelationId( relationId )
   279         , mShowLinkButton( true )
   280         , mShowUnlinkButton( true )
   292         , mRelationId( relation.id() )
   293         , mRelation( relation )
   294         , mShowLinkButton( true )
   295         , mShowUnlinkButton( true )
   321     bool showLinkButton() 
const;
   327     void setShowLinkButton( 
bool showLinkButton );
   334     bool showUnlinkButton() 
const;
   340     void setShowUnlinkButton( 
bool showUnlinkButton );
   343     virtual void saveConfiguration( 
QDomElement& elem ) 
const override;
   344     virtual QString typeIdentifier() 
const override;
   347     bool mShowLinkButton;
   348     bool mShowUnlinkButton;
   410       CodeSourceDialog = 2,           
   411       CodeSourceEnvironment = 3       
   446     void setUiForm( 
const QString& ui );
   479     void setWidgetType( 
int fieldIdx, 
const QString& widgetType );
   488     QString widgetType( 
int fieldIdx ) 
const;
   558     bool removeWidgetConfig( 
int fieldIdx );
   567     bool removeWidgetConfig( 
const QString& widgetName );
   573     bool readOnly( 
int idx ) 
const;
   578     void setReadOnly( 
int idx, 
bool readOnly = 
true );
   586     QString expression( 
int idx ) 
const;
   594     void setExpression( 
int idx, 
const QString& str );
   602     QString expressionDescription( 
int idx ) 
const;
   610     void setExpressionDescription( 
int idx, 
const QString &descr );
   615     bool notNull( 
int fieldidx ) 
const;
   619     void setNotNull( 
int idx, 
bool notnull = 
true );
   626     bool labelOnTop( 
int idx ) 
const;
   634     void setLabelOnTop( 
int idx, 
bool onTop );
   699     void readXml( 
const QDomNode& node );
   705     void writeXml( 
QDomNode& node ) 
const;
   713     void onRelationsLoaded();
   731     void setFields( 
const QgsFields& fields );
   771 #endif // QGSEDITFORMCONFIG_H 
QgsAttributeEditorRelation(const QString &name, const QString &relationId, QObject *parent)
Creates a new element which embeds a relation. 
 
virtual ~QgsAttributeEditorContainer()
Destructor. 
 
This is an abstract base class for any elements of a drag and drop form. 
 
QgsAttributeEditorRelation(const QString &name, const QgsRelation &relation, QObject *parent)
Creates a new element which embeds a relation. 
 
const QgsRelation & relation() const
Get the id of the relation which shall be embedded. 
 
Container of fields for a vector layer. 
 
This element will load a field's widget onto the form. 
 
virtual ~QgsAttributeEditorElement()
Destructor. 
 
This element will load a relation editor onto the form. 
 
AttributeEditorType type() const
The type of this element. 
 
QVariantMap QgsEditorWidgetConfig
Holds a set of configuration parameters for a editor widget wrapper. 
 
An expression with an additional enabled flag. 
 
QgsAttributeEditorField(const QString &name, int idx, QObject *parent)
Creates a new attribute editor element which represents a field. 
 
virtual ~QgsAttributeEditorField()
Destructor. 
 
int idx() const
Return the index of the field. 
 
QgsAttributeEditorContainer(const QString &name, QObject *parent)
Creates a new attribute editor container. 
 
void setName(const char *name)
 
virtual ~QgsAttributeEditorRelation()
Destructor. 
 
QgsAttributeEditorElement(AttributeEditorType type, const QString &name, QObject *parent=nullptr)
Constructor. 
 
virtual void setIsGroupBox(bool isGroupBox)
Determines if this container is rendered as collapsible group box or tab in a tabwidget. 
 
This class manages a set of relations between layers. 
 
This is a container for attribute editors, used to group them visually in the attribute form if it is...
 
QList< QgsAttributeEditorElement * > children() const
Get a list of the children elements of this container. 
 
virtual bool isGroupBox() const
Returns if this container is going to be rendered as a group box. 
 
Represents a vector layer which manages a vector based data sets. 
 
QString name() const
Return the name of this element. 
 
AttributeEditorType mType