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;
105 QList< QgsAttributeEditorElement * > tabs()
const;
128 QString uiForm()
const;
138 void setUiForm(
const QString &ui );
158 bool setWidgetConfig(
const QString &widgetName,
const QVariantMap &config );
167 QVariantMap widgetConfig(
const QString &widgetName )
const;
176 bool removeWidgetConfig(
const QString &widgetName );
182 bool readOnly(
int idx )
const;
187 void setReadOnly(
int idx,
bool readOnly =
true );
194 bool labelOnTop(
int idx )
const;
202 void setLabelOnTop(
int idx,
bool onTop );
212 Q_DECL_DEPRECATED
bool reuseLastValue(
int index )
const;
222 Q_DECL_DEPRECATED
void setReuseLastValue(
int index,
bool reuse );
248 QString initFunction()
const;
256 void setInitFunction(
const QString &function );
261 QString initCode()
const;
268 void setInitCode(
const QString &code );
273 QString initFilePath()
const;
280 void setInitFilePath(
const QString &filePath );
328 void setDataDefinedFieldProperties( const QString &fieldName, const
QgsPropertyCollection &properties );
347 void setFields( const
QgsFields &fields );
352 void onRelationsLoaded();
358 bool legacyUpdateRelationWidgetInTabs(
QgsAttributeEditorContainer *container, const QString &widgetName, const QVariantMap &config );
361 void fixLegacyConfig( QDomElement &el ) const;
363 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.