QGIS API Documentation 3.29.0-Master (19d7edcfed)
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | 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 ()
 
QgsAttributeEditorElementcreateAttributeEditorWidget (QTreeWidgetItem *item, QgsAttributeEditorElement *parent, bool forceGroup=true)
 
QgsExpressionContext createExpressionContext () const override
 This method needs to be reimplemented in all classes which implement this interface and return an expression context. More...
 
void init ()
 
void initAvailableWidgetsTree ()
 
void initFormLayoutTree ()
 
void initInitPython ()
 
void initLayoutConfig ()
 
void initSuppressCombo ()
 
void loadRelations ()
 
- Public Member Functions inherited from QgsExpressionContextGenerator
virtual ~QgsExpressionContextGenerator ()=default
 
virtual QgsExpressionContext createExpressionContext () const =0
 This method needs to be reimplemented in all classes which implement this interface and return an expression context. More...
 

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
 

Detailed Description

Definition at line 61 of file qgsattributesformproperties.h.

Member Enumeration Documentation

◆ FieldPropertiesRoles

Enumerator
DnDTreeRole 
FieldConfigRole 
FieldNameRole 

Definition at line 67 of file qgsattributesformproperties.h.

Constructor & Destructor Documentation

◆ QgsAttributesFormProperties()

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

Definition at line 41 of file qgsattributesformproperties.cpp.

Member Function Documentation

◆ apply()

void QgsAttributesFormProperties::apply ( )

Definition at line 915 of file qgsattributesformproperties.cpp.

◆ createAttributeEditorWidget()

QgsAttributeEditorElement * QgsAttributesFormProperties::createAttributeEditorWidget ( QTreeWidgetItem *  item,
QgsAttributeEditorElement parent,
bool  forceGroup = true 
)

Definition at line 744 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.

Since
QGIS 3.0

Implements QgsExpressionContextGenerator.

Definition at line 220 of file qgsattributesformproperties.cpp.

◆ init()

void QgsAttributesFormProperties::init ( )

Definition at line 83 of file qgsattributesformproperties.cpp.

◆ initAvailableWidgetsTree()

void QgsAttributesFormProperties::initAvailableWidgetsTree ( )

Definition at line 93 of file qgsattributesformproperties.cpp.

◆ initFormLayoutTree()

void QgsAttributesFormProperties::initFormLayoutTree ( )

Definition at line 186 of file qgsattributesformproperties.cpp.

◆ initInitPython()

void QgsAttributesFormProperties::initInitPython ( )

Definition at line 237 of file qgsattributesformproperties.cpp.

◆ initLayoutConfig()

void QgsAttributesFormProperties::initLayoutConfig ( )

Definition at line 227 of file qgsattributesformproperties.cpp.

◆ initSuppressCombo()

void QgsAttributesFormProperties::initSuppressCombo ( )

Definition at line 204 of file qgsattributesformproperties.cpp.

◆ loadRelations()

void QgsAttributesFormProperties::loadRelations ( )

◆ updateButtons()

void QgsAttributesFormProperties::updateButtons ( )
protected

Member Data Documentation

◆ mAttributeContainerEdit

QgsAttributeFormContainerEdit* QgsAttributesFormProperties::mAttributeContainerEdit = nullptr
protected

Definition at line 327 of file qgsattributesformproperties.h.

◆ mAttributeTypeDialog

QgsAttributeTypeDialog* QgsAttributesFormProperties::mAttributeTypeDialog = nullptr
protected

Definition at line 326 of file qgsattributesformproperties.h.

◆ mAttributeWidgetEdit

QgsAttributeWidgetEdit* QgsAttributesFormProperties::mAttributeWidgetEdit = nullptr
protected

Definition at line 325 of file qgsattributesformproperties.h.

◆ mAvailableWidgetsTree

QgsAttributesDnDTree* QgsAttributesFormProperties::mAvailableWidgetsTree = nullptr
protected

Definition at line 322 of file qgsattributesformproperties.h.

◆ mFormLayoutTree

QgsAttributesDnDTree* QgsAttributesFormProperties::mFormLayoutTree = nullptr
protected

Definition at line 323 of file qgsattributesformproperties.h.

◆ mInfoTextWidget

QLabel* QgsAttributesFormProperties::mInfoTextWidget = nullptr
protected

Definition at line 328 of file qgsattributesformproperties.h.

◆ mLayer

QgsVectorLayer* QgsAttributesFormProperties::mLayer = nullptr
protected

Definition at line 320 of file qgsattributesformproperties.h.


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