QGIS API Documentation 3.40.11-Bratislava (exported)
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
QgsAttributesFormProperties Class Reference

#include <qgsattributesformproperties.h>

Inheritance diagram for QgsAttributesFormProperties:
Inheritance graph
[legend]

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.
 
QgsAttributeEditorElementcreateAttributeEditorWidget (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
 
QgsAttributesDnDTreemAvailableWidgetsTree = nullptr
 
QgsAttributesDnDTreemFormLayoutTree = nullptr
 
QLabel * mInfoTextWidget = nullptr
 
QgsVectorLayermLayer = nullptr
 

Friends

class TestQgsAttributesFormProperties
 

Detailed Description

Definition at line 53 of file qgsattributesformproperties.h.

Member Enumeration Documentation

◆ FieldPropertiesRoles

Enumerator
DnDTreeRole 
FieldConfigRole 
FieldNameRole 

Definition at line 58 of file qgsattributesformproperties.h.

Constructor & Destructor Documentation

◆ QgsAttributesFormProperties()

QgsAttributesFormProperties::QgsAttributesFormProperties ( QgsVectorLayer layer,
QWidget *  parent = nullptr 
)
explicit

Definition at line 48 of file qgsattributesformproperties.cpp.

Member Function Documentation

◆ apply()

void QgsAttributesFormProperties::apply ( )

Applies the attribute from properties to the vector layer.

Definition at line 960 of file qgsattributesformproperties.cpp.

◆ createAttributeEditorWidget()

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 776 of file qgsattributesformproperties.cpp.

◆ createExpressionContext()

QgsExpressionContext QgsAttributesFormProperties::createExpressionContext ( ) const
overridevirtual

This method needs to be reimplemented in all classes which implement this interface and return an expression context.

Implements QgsExpressionContextGenerator.

Definition at line 240 of file qgsattributesformproperties.cpp.

◆ init()

void QgsAttributesFormProperties::init ( )

Definition at line 95 of file qgsattributesformproperties.cpp.

◆ initAvailableWidgetsTree()

void QgsAttributesFormProperties::initAvailableWidgetsTree ( )

Definition at line 105 of file qgsattributesformproperties.cpp.

◆ initFormLayoutTree()

void QgsAttributesFormProperties::initFormLayoutTree ( )

Definition at line 206 of file qgsattributesformproperties.cpp.

◆ initInitPython()

void QgsAttributesFormProperties::initInitPython ( )

Definition at line 257 of file qgsattributesformproperties.cpp.

◆ initLayoutConfig()

void QgsAttributesFormProperties::initLayoutConfig ( )

Definition at line 247 of file qgsattributesformproperties.cpp.

◆ initSuppressCombo()

void QgsAttributesFormProperties::initSuppressCombo ( )

Definition at line 224 of file qgsattributesformproperties.cpp.

◆ loadRelations()

void QgsAttributesFormProperties::loadRelations ( )

◆ store()

void QgsAttributesFormProperties::store ( )

Stores currently opened widget configuration.

Since
QGIS 3.36

Definition at line 953 of file qgsattributesformproperties.cpp.

◆ updateButtons()

void QgsAttributesFormProperties::updateButtons ( )
protected

Friends And Related Symbol Documentation

◆ TestQgsAttributesFormProperties

friend class TestQgsAttributesFormProperties
friend

Definition at line 426 of file qgsattributesformproperties.h.

Member Data Documentation

◆ mAttributeContainerEdit

QgsAttributeFormContainerEdit* QgsAttributesFormProperties::mAttributeContainerEdit = nullptr
protected

Definition at line 386 of file qgsattributesformproperties.h.

◆ mAttributeTypeDialog

QgsAttributeTypeDialog* QgsAttributesFormProperties::mAttributeTypeDialog = nullptr
protected

Definition at line 385 of file qgsattributesformproperties.h.

◆ mAttributeWidgetEdit

QgsAttributeWidgetEdit* QgsAttributesFormProperties::mAttributeWidgetEdit = nullptr
protected

Definition at line 384 of file qgsattributesformproperties.h.

◆ mAvailableWidgetsTree

QgsAttributesDnDTree* QgsAttributesFormProperties::mAvailableWidgetsTree = nullptr
protected

Definition at line 381 of file qgsattributesformproperties.h.

◆ mFormLayoutTree

QgsAttributesDnDTree* QgsAttributesFormProperties::mFormLayoutTree = nullptr
protected

Definition at line 382 of file qgsattributesformproperties.h.

◆ mInfoTextWidget

QLabel* QgsAttributesFormProperties::mInfoTextWidget = nullptr
protected

Definition at line 387 of file qgsattributesformproperties.h.

◆ mLayer

QgsVectorLayer* QgsAttributesFormProperties::mLayer = nullptr
protected

Definition at line 379 of file qgsattributesformproperties.h.


The documentation for this class was generated from the following files: