|
| QgsEditFormConfig () |
| Create a new edit form config. More...
|
|
| QgsEditFormConfig (const QgsEditFormConfig &o) |
| Copy constructor. More...
|
|
| ~QgsEditFormConfig () |
|
void | addTab (QgsAttributeEditorElement *data) |
| Adds a new element to the invisible root container in the layout. More...
|
|
Q_DECL_DEPRECATED QgsAttributeEditorElement * | attributeEditorElementFromDomElement (QDomElement &elem, QgsAttributeEditorElement *parent, const QString &layerId=QString(), const QgsReadWriteContext &context=QgsReadWriteContext()) |
| Deserialize drag and drop designer elements. More...
|
|
void | clearTabs () |
| Clears all the tabs for the attribute editor form with EditorLayout::TabLayout. More...
|
|
QgsPropertyCollection | dataDefinedFieldProperties (const QString &fieldName) const |
| Returns data defined properties for fieldName. More...
|
|
QString | initCode () const |
| Gets Python code for edit form initialization. More...
|
|
PythonInitCodeSource | initCodeSource () const |
| Returns Python code source for edit form initialization (if it shall be loaded from a file, read from the provided dialog editor or inherited from the environment) More...
|
|
QString | initFilePath () const |
| Gets Python external file path for edit form initialization. More...
|
|
QString | initFunction () const |
| Gets Python function for edit form initialization. More...
|
|
QgsAttributeEditorContainer * | invisibleRootContainer () |
| Gets the invisible root container for the drag and drop designer form (EditorLayout::TabLayout). More...
|
|
bool | labelOnTop (int idx) const |
| If this returns true , the widget at the given index will receive its label on the previous line while if it returns false , the widget will receive its label on the left hand side. More...
|
|
EditorLayout | layout () const |
| Gets the active layout style for the attribute editor for this layer. More...
|
|
QgsEditFormConfig & | operator= (const QgsEditFormConfig &o) |
|
bool | operator== (const QgsEditFormConfig &o) const |
|
bool | readOnly (int idx) const |
| This returns true if the field is manually set to read only or if the field does not support editing like joins or virtual fields. More...
|
|
void | readXml (const QDomNode &node, QgsReadWriteContext &context) |
| Read XML information Deserialize on project load. More...
|
|
bool | removeWidgetConfig (const QString &widgetName) |
| Remove the configuration for the editor widget with the given name. More...
|
|
bool | reuseLastValue (int index) const |
| If this returns true , the widget at the given index will remember the previously entered value from this QGIS session when creating new features. More...
|
|
void | setDataDefinedFieldProperties (const QString &fieldName, const QgsPropertyCollection &properties) |
| Set data defined properties for fieldName to properties. More...
|
|
void | setInitCode (const QString &code) |
| Set Python code for edit form initialization. More...
|
|
void | setInitCodeSource (PythonInitCodeSource initCodeSource) |
| Sets if Python code shall be used for edit form initialization and its origin. More...
|
|
void | setInitFilePath (const QString &filePath) |
| Set Python external file path for edit form initialization. More...
|
|
void | setInitFunction (const QString &function) |
| Set Python function for edit form initialization. More...
|
|
void | setLabelOnTop (int idx, bool onTop) |
| If this is set to true , the widget at the given index will receive its label on the previous line while if it is set to false , the widget will receive its label on the left hand side. More...
|
|
void | setLayout (EditorLayout editorLayout) |
| Sets the active layout style for the attribute editor for this layer. More...
|
|
void | setReadOnly (int idx, bool readOnly=true) |
| If set to false , the widget at the given index will be read-only. More...
|
|
void | setReuseLastValue (int index, bool reuse) |
| Sets whether the widget at the given index will remember the previously entered value from this QGIS session when creating new features. More...
|
|
void | setSuppress (FeatureFormSuppress s) |
| Sets type of feature form pop-up suppression after feature creation (overrides app setting) More...
|
|
void | setUiForm (const QString &ui) |
| Set path to the .ui form. More...
|
|
bool | setWidgetConfig (const QString &widgetName, const QVariantMap &config) |
| Set the editor widget config for a widget which is not for a simple field. More...
|
|
FeatureFormSuppress | suppress () const |
| Type of feature form pop-up suppression after feature creation (overrides app setting) More...
|
|
QList< QgsAttributeEditorElement * > | tabs () const |
| Returns a list of tabs for EditorLayout::TabLayout obtained from the invisible root container. More...
|
|
QString | uiForm () const |
| Returns the path or URL to the .ui form. More...
|
|
QVariantMap | widgetConfig (const QString &widgetName) const |
| Gets the configuration for the editor widget with the given name. More...
|
|
void | writeXml (QDomNode &node, const QgsReadWriteContext &context) const |
| Write XML information Serialize on project save. More...
|
|