18#ifndef QGSEDITFORMCONFIG_H
19#define QGSEDITFORMCONFIG_H
26#include <QDomDocument>
31class QgsEditFormConfigPrivate;
48 GroupData(
const QString &name,
const QList<QString> &fields )
59 TabData(
const QString &name,
const QList<QString> &fields,
const QList<QgsEditFormConfig::GroupData> &groups )
66 QList<QgsEditFormConfig::GroupData>
mGroups;
104 QList< QgsAttributeEditorElement * > tabs()
const;
127 QString uiForm()
const;
137 void setUiForm(
const QString &ui );
157 bool setWidgetConfig(
const QString &widgetName,
const QVariantMap &config );
166 QVariantMap widgetConfig(
const QString &widgetName )
const;
175 bool removeWidgetConfig(
const QString &widgetName );
181 bool readOnly(
int idx )
const;
186 void setReadOnly(
int idx,
bool readOnly =
true );
193 bool labelOnTop(
int idx )
const;
201 void setLabelOnTop(
int idx,
bool onTop );
211 Q_DECL_DEPRECATED
bool reuseLastValue(
int index )
const;
221 Q_DECL_DEPRECATED
void setReuseLastValue(
int index,
bool reuse );
247 QString initFunction()
const;
255 void setInitFunction(
const QString &function );
260 QString initCode()
const;
267 void setInitCode(
const QString &code );
272 QString initFilePath()
const;
279 void setInitFilePath(
const QString &filePath );
327 void setDataDefinedFieldProperties( const QString &fieldName, const
QgsPropertyCollection &properties );
346 void setFields( const
QgsFields &fields );
351 void onRelationsLoaded();
357 bool legacyUpdateRelationWidgetInTabs(
QgsAttributeEditorContainer *container, const QString &widgetName, const QVariantMap &config );
360 void fixLegacyConfig( QDomElement &el ) const;
362 QExplicitlySharedDataPointer<QgsEditFormConfigPrivate> d;
AttributeFormReuseLastValuePolicy
Attribute form policy for reusing last entered values.
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.
A container for attribute editors, used to group them visually in the attribute form if it is set to ...
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 an integer key value.
A container for the context for various read/write operations on objects.
Manages a set of relations between layers.
#define SIP_MONKEYPATCH_SCOPEENUM_UNNEST(OUTSIDE_CLASS, FORMERNAME)
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.