18 #ifndef QGSEDITFORMCONFIG_H 19 #define QGSEDITFORMCONFIG_H 21 #include "qgis_core.h" 24 #include <QDomElement> 25 #include <QDomDocument> 31 class QgsEditFormConfigPrivate;
53 GroupData(
const QString &name,
const QList<QString> &fields )
65 TabData(
const QString &name,
const QList<QString> &fields,
const QList<QgsEditFormConfig::GroupData> &groups )
72 QList<QgsEditFormConfig::GroupData>
mGroups;
93 CodeSourceEnvironment = 3
118 QList< QgsAttributeEditorElement * > tabs()
const;
141 QString uiForm()
const;
151 void setUiForm(
const QString &ui );
170 bool setWidgetConfig(
const QString &widgetName,
const QVariantMap &config );
179 QVariantMap widgetConfig(
const QString &widgetName )
const;
188 bool removeWidgetConfig(
const QString &widgetName );
194 bool readOnly(
int idx )
const;
199 void setReadOnly(
int idx,
bool readOnly =
true );
206 bool labelOnTop(
int idx )
const;
214 void setLabelOnTop(
int idx,
bool onTop );
225 QString initFunction()
const;
233 void setInitFunction(
const QString &
function );
238 QString initCode()
const;
245 void setInitCode(
const QString &code );
250 QString initFilePath()
const;
257 void setInitFilePath(
const QString &filePath );
304 void setFields(
const QgsFields &fields );
309 void onRelationsLoaded();
312 QExplicitlySharedDataPointer<QgsEditFormConfigPrivate> d;
317 #endif // QGSEDITFORMCONFIG_H The class is used as a container of context for various read/write operations on other objects...
This is an abstract base class for any elements of a drag and drop form.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Container of fields for a vector layer.
This class manages a set of relations between layers.
This is a container for attribute editors, used to group them visually in the attribute form if it is...
Represents a vector layer which manages a vector based data sets.