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;
112 QList< QgsAttributeEditorElement * > tabs()
const;
135 QString uiForm()
const;
145 void setUiForm(
const QString &ui );
165 bool setWidgetConfig(
const QString &widgetName,
const QVariantMap &config );
174 QVariantMap widgetConfig(
const QString &widgetName )
const;
183 bool removeWidgetConfig(
const QString &widgetName );
189 bool readOnly(
int idx )
const;
194 void setReadOnly(
int idx,
bool readOnly =
true );
201 bool labelOnTop(
int idx )
const;
209 void setLabelOnTop(
int idx,
bool onTop );
218 bool reuseLastValue(
int index )
const;
227 void setReuseLastValue(
int index,
bool reuse );
237 QString initFunction()
const;
245 void setInitFunction(
const QString &function );
250 QString initCode()
const;
257 void setInitCode(
const QString &code );
262 QString initFilePath()
const;
269 void setInitFilePath(
const QString &filePath );
315 void setDataDefinedFieldProperties( const QString &fieldName, const
QgsPropertyCollection &properties );
335 void setFields( const
QgsFields &fields );
340 void onRelationsLoaded();
346 bool legacyUpdateRelationWidgetInTabs(
QgsAttributeEditorContainer *container, const QString &widgetName, const QVariantMap &config );
349 void fixLegacyConfig( QDomElement &el );
351 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.