16 #ifndef QGSATTRIBUTEEDITORCONTAINER_H 
   17 #define QGSATTRIBUTEEDITORCONTAINER_H 
   19 #include "qgis_core.h" 
   42       , mBackgroundColor( backgroundColor )
 
   60     virtual void setIsGroupBox( 
bool isGroupBox ) { mIsGroupBox = isGroupBox; }
 
   74     QList<QgsAttributeEditorElement *> 
children()
 const { 
return mChildren; }
 
   83     virtual QList<QgsAttributeEditorElement *> findElements( AttributeEditorType type ) 
const;
 
   93     void setName( 
const QString &name );
 
   98     int columnCount() 
const;
 
  103     void setColumnCount( 
int columnCount );
 
  135     QColor backgroundColor() 
const;
 
  140     void setBackgroundColor( 
const QColor &backgroundColor );
 
  143     void saveConfiguration( QDomElement &elem, QDomDocument &doc ) 
const override;
 
  144     void loadConfiguration( 
const QDomElement &element,  
const QString &layerId, 
const QgsReadWriteContext &context, 
const QgsFields &fields ) 
override;
 
  145     QString typeIdentifier() 
const override;
 
  148     QList<QgsAttributeEditorElement *> mChildren;
 
  151     QColor mBackgroundColor;
 
This is a container for attribute editors, used to group them visually in the attribute form if it is...
QgsAttributeEditorContainer(const QString &name, QgsAttributeEditorElement *parent, const QColor &backgroundColor=QColor())
Creates a new attribute editor container.
virtual bool isGroupBox() const
Returns if this container is going to be rendered as a group box.
virtual void setIsGroupBox(bool isGroupBox)
Determines if this container is rendered as collapsible group box or tab in a tabwidget.
QList< QgsAttributeEditorElement * > children() const
Gets a list of the children elements of this container.
This is an abstract base class for any elements of a drag and drop form.
virtual QgsAttributeEditorElement * clone(QgsAttributeEditorElement *parent) const =0
Returns a clone of this element.
Container of fields for a vector layer.
An expression with an additional enabled flag.
The class is used as a container of context for various read/write operations on other objects.