16#ifndef QGSATTRIBUTEEDITORCONTAINER_H
17#define QGSATTRIBUTEEDITORCONTAINER_H
41 , mBackgroundColor( backgroundColor )
75 Q_DECL_DEPRECATED
virtual void setIsGroupBox(
bool isGroupBox )
SIP_DEPRECATED;
94 bool collapsed()
const {
return mCollapsed; };
110 QList<QgsAttributeEditorElement *>
children()
const {
return mChildren; }
129 void setName(
const QString &name );
136 int columnCount()
const;
143 void setColumnCount(
int columnCount );
200 QColor backgroundColor() const;
207 void setBackgroundColor( const QColor &backgroundColor );
210 void saveConfiguration( QDomElement &elem, QDomDocument &doc ) const override;
211 void loadConfiguration( const QDomElement &element, const QString &layerId, const
QgsReadWriteContext &context, const
QgsFields &fields ) override;
212 QString typeIdentifier() const override;
214 Qgis::AttributeEditorContainerType mType =
Qgis::AttributeEditorContainerType::GroupBox;
216 int mColumnCount = 1;
218 QColor mBackgroundColor;
219 bool mCollapsed = false;
The Qgis class provides global constants for use throughout the application.
AttributeEditorContainerType
Attribute editor container types.
AttributeEditorType
Attribute editor types.
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.
Qgis::AttributeEditorContainerType type() const
Returns the container type.
void setType(Qgis::AttributeEditorContainerType type)
Sets the container type.
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.
Qgis::AttributeEditorType type() const
The type of this element.
Qgis::AttributeEditorType mType
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.