16#ifndef QGSATTRIBUTEEDITORCONTAINER_H
17#define QGSATTRIBUTEEDITORCONTAINER_H
75 Q_DECL_DEPRECATED
virtual void setIsGroupBox(
bool isGroupBox )
SIP_DEPRECATED;
110 QList<QgsAttributeEditorElement *>
children()
const {
return mChildren; }
129 void setName(
const QString &name );
136 int columnCount()
const;
143 void setColumnCount(
int columnCount );
197 QColor backgroundColor() const;
204 void setBackgroundColor( const QColor &backgroundColor );
207 void saveConfiguration( QDomElement &elem, QDomDocument &doc ) const override;
208 void loadConfiguration( const QDomElement &element, const QString &layerId, const
QgsReadWriteContext &context, const
QgsFields &fields ) override;
209 QString typeIdentifier() const override;
211 Qgis::AttributeEditorContainerType mType =
Qgis::AttributeEditorContainerType::GroupBox;
213 int mColumnCount = 1;
215 QColor mBackgroundColor;
216 bool mCollapsed = false;
Provides global constants and enumerations for use throughout the application.
AttributeEditorContainerType
Attribute editor container types.
AttributeEditorType
Attribute editor types.
A container for attribute editors, used to group them visually in the attribute form if it is set to ...
QgsAttributeEditorContainer(const QString &name, QgsAttributeEditorElement *parent, const QColor &backgroundColor=QColor())
Creates a new attribute editor container.
bool collapsed() const
For group box containers returns true if this group box is collapsed.
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.
QColor backgroundColor() const
Returns the background color of the container.
void setCollapsed(bool collapsed)
For group box containers sets if this group box is collapsed.
An abstract base class for any elements of a drag and drop form.
QgsAttributeEditorElement * parent() const
Gets the parent of this element.
QgsAttributeEditorElement(Qgis::AttributeEditorType type, const QString &name, QgsAttributeEditorElement *parent=nullptr)
Constructor.
QString name() const
Returns the name of this element.
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.
A container for the context for various read/write operations on objects.