18#ifndef QGSEDITFORMCONFIG_H
19#define QGSEDITFORMCONFIG_H
25#include <QDomDocument>
31class QgsEditFormConfigPrivate;
50 GroupData(
const QString &name,
const QList<QString> &fields )
61 TabData(
const QString &name,
const QList<QString> &fields,
const QList<QgsEditFormConfig::GroupData> &groups )
68 QList<QgsEditFormConfig::GroupData>
mGroups;
106 QList< QgsAttributeEditorElement * > tabs()
const;
129 QString uiForm()
const;
139 void setUiForm(
const QString &ui );
159 bool setWidgetConfig(
const QString &widgetName,
const QVariantMap &config );
168 QVariantMap widgetConfig(
const QString &widgetName )
const;
177 bool removeWidgetConfig(
const QString &widgetName );
183 bool readOnly(
int idx )
const;
188 void setReadOnly(
int idx,
bool readOnly =
true );
195 bool labelOnTop(
int idx )
const;
203 void setLabelOnTop(
int idx,
bool onTop );
212 bool reuseLastValue(
int index )
const;
221 void setReuseLastValue(
int index,
bool reuse );
231 QString initFunction()
const;
239 void setInitFunction(
const QString &function );
244 QString initCode()
const;
251 void setInitCode(
const QString &code );
256 QString initFilePath()
const;
263 void setInitFilePath(
const QString &filePath );
309 void setDataDefinedFieldProperties( const QString &fieldName, const
QgsPropertyCollection &properties );
329 void setFields( const
QgsFields &fields );
334 void onRelationsLoaded();
340 bool legacyUpdateRelationWidgetInTabs(
QgsAttributeEditorContainer *container, const QString &widgetName, const QVariantMap &config );
343 void fixLegacyConfig( QDomElement &el ) const;
345 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.
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.