18#ifndef QGSEDITFORMCONFIG_H
19#define QGSEDITFORMCONFIG_H
26#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 );
213 Q_DECL_DEPRECATED
bool reuseLastValue(
int index )
const;
223 Q_DECL_DEPRECATED
void setReuseLastValue(
int index,
bool reuse );
249 QString initFunction()
const;
257 void setInitFunction(
const QString &function );
262 QString initCode()
const;
269 void setInitCode(
const QString &code );
274 QString initFilePath()
const;
281 void setInitFilePath(
const QString &filePath );
327 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.