18#ifndef QGSEDITFORMCONFIG_H
19#define QGSEDITFORMCONFIG_H
25#include <QDomDocument>
31class QgsEditFormConfigPrivate;
51 GroupData(
const QString &name,
const QList<QString> &fields )
63 TabData(
const QString &name,
const QList<QString> &fields,
const QList<QgsEditFormConfig::GroupData> &groups )
70 QList<QgsEditFormConfig::GroupData>
mGroups;
110 QList< QgsAttributeEditorElement * > tabs()
const;
133 QString uiForm()
const;
143 void setUiForm(
const QString &ui );
163 bool setWidgetConfig(
const QString &widgetName,
const QVariantMap &config );
172 QVariantMap widgetConfig(
const QString &widgetName )
const;
181 bool removeWidgetConfig(
const QString &widgetName );
187 bool readOnly(
int idx )
const;
192 void setReadOnly(
int idx,
bool readOnly =
true );
199 bool labelOnTop(
int idx )
const;
207 void setLabelOnTop(
int idx,
bool onTop );
216 bool reuseLastValue(
int index )
const;
225 void setReuseLastValue(
int index,
bool reuse );
235 QString initFunction()
const;
243 void setInitFunction(
const QString &function );
248 QString initCode()
const;
255 void setInitCode(
const QString &code );
260 QString initFilePath()
const;
267 void setInitFilePath(
const QString &filePath );
313 void setDataDefinedFieldProperties( const QString &fieldName, const
QgsPropertyCollection &properties );
333 void setFields( const
QgsFields &fields );
338 void onRelationsLoaded();
344 bool legacyUpdateRelationWidgetInTabs(
QgsAttributeEditorContainer *container, const QString &widgetName, const QVariantMap &config );
347 void fixLegacyConfig( QDomElement &el );
349 QExplicitlySharedDataPointer<QgsEditFormConfigPrivate> d;
AttributeFormSuppression
Available form types for layout of the attribute form editor.
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
AttributeFormLayout
Available form types for layout of the attribute form editor.
This is a container for attribute editors, used to group them visually in the attribute form if it is...
This is an abstract base class for any elements of a drag and drop form.
Container of fields for a vector layer.
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
The class is used as a container of context for various read/write operations on other objects.
This class manages a set of relations between layers.
Represents a vector layer which manages a vector based data sets.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.