16#ifndef QGSATTRIBUTEEDITORCONTAINER_H
17#define QGSATTRIBUTEEDITORCONTAINER_H
42 , mBackgroundColor( backgroundColor )
60 virtual void setIsGroupBox(
bool isGroupBox ) { mIsGroupBox = isGroupBox; }
93 QList<QgsAttributeEditorElement *>
children()
const {
return mChildren; }
102 virtual QList<QgsAttributeEditorElement *> findElements( AttributeEditorType type )
const;
112 void setName(
const QString &name );
117 int columnCount()
const;
122 void setColumnCount(
int columnCount );
178 QColor backgroundColor() const;
183 void setBackgroundColor( const QColor &backgroundColor );
186 void saveConfiguration( QDomElement &elem, QDomDocument &doc ) const override;
187 void loadConfiguration( const QDomElement &element, const QString &layerId, const
QgsReadWriteContext &context, const
QgsFields &fields ) override;
188 QString typeIdentifier() const override;
194 QColor mBackgroundColor;
195 bool mCollapsed = false;
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 a group box.
bool collapsed() const
For group box containers returns if this group box is collapsed.
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.
void setCollapsed(bool collapsed)
For group box containers sets if this group box is collapsed.
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.