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 )
141 QList< QgsAttributeEditorElement * > tabs()
const;
156 EditorLayout layout()
const;
159 void setLayout( EditorLayout editorLayout );
164 QString uiForm()
const;
174 void setUiForm(
const QString &ui );
194 bool setWidgetConfig(
const QString &widgetName,
const QVariantMap &config );
203 QVariantMap widgetConfig(
const QString &widgetName )
const;
212 bool removeWidgetConfig(
const QString &widgetName );
218 bool readOnly(
int idx )
const;
223 void setReadOnly(
int idx,
bool readOnly =
true );
230 bool labelOnTop(
int idx )
const;
238 void setLabelOnTop(
int idx,
bool onTop );
247 bool reuseLastValue(
int index )
const;
256 void setReuseLastValue(
int index,
bool reuse );
266 QString initFunction()
const;
274 void setInitFunction(
const QString &function );
279 QString initCode()
const;
286 void setInitCode(
const QString &code );
291 QString initFilePath()
const;
298 void setInitFilePath(
const QString &filePath );
305 PythonInitCodeSource initCodeSource()
const;
308 void setInitCodeSource( PythonInitCodeSource initCodeSource );
311 FeatureFormSuppress suppress()
const;
313 void setSuppress( FeatureFormSuppress s );
344 void setDataDefinedFieldProperties( const QString &fieldName, const
QgsPropertyCollection &properties );
365 void setFields( const
QgsFields &fields );
370 void onRelationsLoaded();
376 bool legacyUpdateRelationWidgetInTabs(
QgsAttributeEditorContainer *container, const QString &widgetName, const QVariantMap &config );
379 void fixLegacyConfig( QDomElement &el );
381 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.