QGIS API Documentation 3.43.0-Master (0cdc48caa8d)
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
QgsAttributesFormProperties Class Reference

Creates panels to configure attributes forms. More...

#include <qgsattributesformproperties.h>

Inheritance diagram for QgsAttributesFormProperties:
Inheritance graph
[legend]

Public Member Functions

 QgsAttributesFormProperties (QgsVectorLayer *layer, QWidget *parent=nullptr)
 
void apply ()
 Applies the attribute from properties to the vector layer.
 
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 initAvailableWidgetsActions (const QList< QgsAction > actions)
 Refresh layer actions in the Available Widgets view.
 
void initAvailableWidgetsView ()
 Initializes the available widgets tree view, repopulating the underlying model.
 
void initFormLayoutView ()
 Initializes the form layout tree view, repopulating the underlying model.
 
void initInitPython ()
 
void initLayoutConfig ()
 
void initSuppressCombo ()
 
void loadRelations ()
 
void store ()
 Stores currently opened widget configuration.
 
- Public Member Functions inherited from QgsExpressionContextGenerator
virtual ~QgsExpressionContextGenerator ()=default
 

Static Public Attributes

static const QgsSettingsEntryBoolsettingShowAliases = new QgsSettingsEntryBool( QStringLiteral( "show-aliases" ), sTreeAttributesForm, false, QStringLiteral( "Whether to show aliases (true) or names (false) in both the Available Widgets and the Form Layout panels." ) )
 
static QgsSettingsTreeNodesTreeAttributesForm = QgsSettingsTree::sTreeApp->createChildNode( QStringLiteral( "attributes-form" ) )
 

Protected Member Functions

void updateButtons ()
 

Protected Attributes

QgsAttributeFormContainerEdit * mAttributeContainerEdit = nullptr
 
QgsAttributeTypeDialog * mAttributeTypeDialog = nullptr
 
QgsAttributeWidgetEdit * mAttributeWidgetEdit = nullptr
 
QgsAttributesFormBaseViewmAvailableWidgetsView = nullptr
 
QgsAttributesFormBaseViewmFormLayoutView = nullptr
 
QLabel * mInfoTextWidget = nullptr
 
QgsVectorLayermLayer = nullptr
 

Friends

class TestQgsAttributesFormProperties
 

Detailed Description

Creates panels to configure attributes forms.

Warning
Not part of stable API and may change in future QGIS releases.
Since
QGIS 3.0

Definition at line 59 of file qgsattributesformproperties.h.

Constructor & Destructor Documentation

◆ QgsAttributesFormProperties()

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

Definition at line 43 of file qgsattributesformproperties.cpp.

Member Function Documentation

◆ apply()

void QgsAttributesFormProperties::apply ( )

Applies the attribute from properties to the vector layer.

Definition at line 747 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 174 of file qgsattributesformproperties.cpp.

◆ init()

void QgsAttributesFormProperties::init ( )

Definition at line 113 of file qgsattributesformproperties.cpp.

◆ initAvailableWidgetsActions()

void QgsAttributesFormProperties::initAvailableWidgetsActions ( const QList< QgsAction actions)

Refresh layer actions in the Available Widgets view.

Parameters
actionsUp-to-date list of actions

Definition at line 169 of file qgsattributesformproperties.cpp.

◆ initAvailableWidgetsView()

void QgsAttributesFormProperties::initAvailableWidgetsView ( )

Initializes the available widgets tree view, repopulating the underlying model.

Definition at line 123 of file qgsattributesformproperties.cpp.

◆ initFormLayoutView()

void QgsAttributesFormProperties::initFormLayoutView ( )

Initializes the form layout tree view, repopulating the underlying model.

Definition at line 136 of file qgsattributesformproperties.cpp.

◆ initInitPython()

void QgsAttributesFormProperties::initInitPython ( )

Definition at line 191 of file qgsattributesformproperties.cpp.

◆ initLayoutConfig()

void QgsAttributesFormProperties::initLayoutConfig ( )

Definition at line 181 of file qgsattributesformproperties.cpp.

◆ initSuppressCombo()

void QgsAttributesFormProperties::initSuppressCombo ( )

Definition at line 153 of file qgsattributesformproperties.cpp.

◆ loadRelations()

void QgsAttributesFormProperties::loadRelations ( )

◆ store()

void QgsAttributesFormProperties::store ( )

Stores currently opened widget configuration.

Since
QGIS 3.36

Definition at line 740 of file qgsattributesformproperties.cpp.

◆ updateButtons()

void QgsAttributesFormProperties::updateButtons ( )
protected

Friends And Related Symbol Documentation

◆ TestQgsAttributesFormProperties

friend class TestQgsAttributesFormProperties
friend

Definition at line 189 of file qgsattributesformproperties.h.

Member Data Documentation

◆ mAttributeContainerEdit

QgsAttributeFormContainerEdit* QgsAttributesFormProperties::mAttributeContainerEdit = nullptr
protected

Definition at line 117 of file qgsattributesformproperties.h.

◆ mAttributeTypeDialog

QgsAttributeTypeDialog* QgsAttributesFormProperties::mAttributeTypeDialog = nullptr
protected

Definition at line 116 of file qgsattributesformproperties.h.

◆ mAttributeWidgetEdit

QgsAttributeWidgetEdit* QgsAttributesFormProperties::mAttributeWidgetEdit = nullptr
protected

Definition at line 115 of file qgsattributesformproperties.h.

◆ mAvailableWidgetsView

QgsAttributesFormBaseView* QgsAttributesFormProperties::mAvailableWidgetsView = nullptr
protected

Definition at line 112 of file qgsattributesformproperties.h.

◆ mFormLayoutView

QgsAttributesFormBaseView* QgsAttributesFormProperties::mFormLayoutView = nullptr
protected

Definition at line 113 of file qgsattributesformproperties.h.

◆ mInfoTextWidget

QLabel* QgsAttributesFormProperties::mInfoTextWidget = nullptr
protected

Definition at line 118 of file qgsattributesformproperties.h.

◆ mLayer

QgsVectorLayer* QgsAttributesFormProperties::mLayer = nullptr
protected

Definition at line 110 of file qgsattributesformproperties.h.

◆ settingShowAliases

const QgsSettingsEntryBool * QgsAttributesFormProperties::settingShowAliases = new QgsSettingsEntryBool( QStringLiteral( "show-aliases" ), sTreeAttributesForm, false, QStringLiteral( "Whether to show aliases (true) or names (false) in both the Available Widgets and the Form Layout panels." ) )
static

Definition at line 65 of file qgsattributesformproperties.h.

◆ sTreeAttributesForm

QgsSettingsTreeNode* QgsAttributesFormProperties::sTreeAttributesForm = QgsSettingsTree::sTreeApp->createChildNode( QStringLiteral( "attributes-form" ) )
inlinestatic

Definition at line 64 of file qgsattributesformproperties.h.


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