18#ifndef QGSEDITFORMCONFIG_H
19#define QGSEDITFORMCONFIG_H
25#include <QDomDocument>
31class QgsEditFormConfigPrivate;
53 Q_ENUM( EditorLayout )
59 GroupData(
const QString &name,
const QList<QString> &fields )
71 TabData(
const QString &name,
const QList<QString> &fields,
const QList<QgsEditFormConfig::GroupData> &groups )
78 QList<QgsEditFormConfig::GroupData>
mGroups;
90 Q_ENUM( FeatureFormSuppress )
100 CodeSourceEnvironment = 3
102 Q_ENUM( PythonInitCodeSource )
140 QList< QgsAttributeEditorElement * > tabs()
const;
155 EditorLayout layout()
const;
158 void setLayout( EditorLayout editorLayout );
163 QString uiForm()
const;
173 void setUiForm(
const QString &ui );
193 bool setWidgetConfig(
const QString &widgetName,
const QVariantMap &config );
202 QVariantMap widgetConfig(
const QString &widgetName )
const;
211 bool removeWidgetConfig(
const QString &widgetName );
217 bool readOnly(
int idx )
const;
222 void setReadOnly(
int idx,
bool readOnly =
true );
229 bool labelOnTop(
int idx )
const;
237 void setLabelOnTop(
int idx,
bool onTop );
246 bool reuseLastValue(
int index )
const;
255 void setReuseLastValue(
int index,
bool reuse );
265 QString initFunction()
const;
273 void setInitFunction(
const QString &function );
278 QString initCode()
const;
285 void setInitCode(
const QString &code );
290 QString initFilePath()
const;
297 void setInitFilePath(
const QString &filePath );
304 PythonInitCodeSource initCodeSource()
const;
307 void setInitCodeSource( PythonInitCodeSource initCodeSource );
310 FeatureFormSuppress suppress()
const;
312 void setSuppress( FeatureFormSuppress s );
343 void setDataDefinedFieldProperties( const QString &fieldName, const
QgsPropertyCollection &properties );
364 void setFields( const
QgsFields &fields );
369 void onRelationsLoaded();
375 bool legacyUpdateRelationWidgetInTabs(
QgsAttributeEditorContainer *container, const QString &widgetName, const QVariantMap &config );
378 void fixLegacyConfig( QDomElement &el );
380 QExplicitlySharedDataPointer<QgsEditFormConfigPrivate> d;
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.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.