QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
#include <qgsattributesformproperties.h>
Classes | |
class | DnDTreeItemData |
struct | FieldConfig |
Holds the configuration for a field. More... | |
struct | HtmlElementEditorConfiguration |
struct | QmlElementEditorConfiguration |
struct | RelationEditorConfiguration |
struct | SpacerElementEditorConfiguration |
struct | TextElementEditorConfiguration |
Public Types | |
enum | FieldPropertiesRoles { DnDTreeRole = Qt::UserRole , FieldConfigRole , FieldNameRole } |
Public Member Functions | |
QgsAttributesFormProperties (QgsVectorLayer *layer, QWidget *parent=nullptr) | |
void | apply () |
Applies the attribute from properties to the vector layer. | |
QgsAttributeEditorElement * | createAttributeEditorWidget (QTreeWidgetItem *item, QgsAttributeEditorElement *parent, bool isTopLevel=false) |
Creates a new attribute editor element based on the definition stored in item. | |
QgsExpressionContext | createExpressionContext () const override |
This method needs to be reimplemented in all classes which implement this interface and return an expression context. | |
void | init () |
void | initAvailableWidgetsTree () |
void | initFormLayoutTree () |
void | initInitPython () |
void | initLayoutConfig () |
void | initSuppressCombo () |
void | loadRelations () |
void | store () |
Stores currently opened widget configuration. | |
Public Member Functions inherited from QgsExpressionContextGenerator | |
virtual | ~QgsExpressionContextGenerator ()=default |
Protected Member Functions | |
void | updateButtons () |
Protected Attributes | |
QgsAttributeFormContainerEdit * | mAttributeContainerEdit = nullptr |
QgsAttributeTypeDialog * | mAttributeTypeDialog = nullptr |
QgsAttributeWidgetEdit * | mAttributeWidgetEdit = nullptr |
QgsAttributesDnDTree * | mAvailableWidgetsTree = nullptr |
QgsAttributesDnDTree * | mFormLayoutTree = nullptr |
QLabel * | mInfoTextWidget = nullptr |
QgsVectorLayer * | mLayer = nullptr |
Definition at line 53 of file qgsattributesformproperties.h.
Enumerator | |
---|---|
DnDTreeRole | |
FieldConfigRole | |
FieldNameRole |
Definition at line 59 of file qgsattributesformproperties.h.
|
explicit |
Definition at line 47 of file qgsattributesformproperties.cpp.
void QgsAttributesFormProperties::apply | ( | ) |
Applies the attribute from properties to the vector layer.
Definition at line 955 of file qgsattributesformproperties.cpp.
QgsAttributeEditorElement * QgsAttributesFormProperties::createAttributeEditorWidget | ( | QTreeWidgetItem * | item, |
QgsAttributeEditorElement * | parent, | ||
bool | isTopLevel = false |
||
) |
Creates a new attribute editor element based on the definition stored in item.
Definition at line 770 of file qgsattributesformproperties.cpp.
|
overridevirtual |
This method needs to be reimplemented in all classes which implement this interface and return an expression context.
Implements QgsExpressionContextGenerator.
Definition at line 232 of file qgsattributesformproperties.cpp.
void QgsAttributesFormProperties::init | ( | ) |
Definition at line 95 of file qgsattributesformproperties.cpp.
void QgsAttributesFormProperties::initAvailableWidgetsTree | ( | ) |
Definition at line 105 of file qgsattributesformproperties.cpp.
void QgsAttributesFormProperties::initFormLayoutTree | ( | ) |
Definition at line 198 of file qgsattributesformproperties.cpp.
void QgsAttributesFormProperties::initInitPython | ( | ) |
Definition at line 249 of file qgsattributesformproperties.cpp.
void QgsAttributesFormProperties::initLayoutConfig | ( | ) |
Definition at line 239 of file qgsattributesformproperties.cpp.
void QgsAttributesFormProperties::initSuppressCombo | ( | ) |
Definition at line 216 of file qgsattributesformproperties.cpp.
void QgsAttributesFormProperties::loadRelations | ( | ) |
void QgsAttributesFormProperties::store | ( | ) |
Stores currently opened widget configuration.
Definition at line 948 of file qgsattributesformproperties.cpp.
|
protected |
|
protected |
Definition at line 387 of file qgsattributesformproperties.h.
|
protected |
Definition at line 386 of file qgsattributesformproperties.h.
|
protected |
Definition at line 385 of file qgsattributesformproperties.h.
|
protected |
Definition at line 382 of file qgsattributesformproperties.h.
|
protected |
Definition at line 383 of file qgsattributesformproperties.h.
|
protected |
Definition at line 388 of file qgsattributesformproperties.h.
|
protected |
Definition at line 380 of file qgsattributesformproperties.h.