QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Types | Public Member Functions | Protected Attributes | List of all members
QgsAddAttributeFormContainerDialog Class Reference

Dialog to add a tab or group of attributes. More...

#include <qgsaddtaborgroup.h>

Inheritance diagram for QgsAddAttributeFormContainerDialog:
Inheritance graph

Public Types

typedef QPair< QString, QTreeWidgetItem * > ContainerPair

Public Member Functions

 QgsAddAttributeFormContainerDialog (QgsVectorLayer *lyr, const QList< ContainerPair > &existingContainerList, QTreeWidgetItem *currentTab=nullptr, QWidget *parent=nullptr)
 constructor More...
void accept () override
 Accepts the dialog. More...
int columnCount () const
 Returns the column count. More...
Qgis::AttributeEditorContainerType containerType () const
 Returns the container type. More...
QString name ()
 Returns the name of the tab or group. More...
QTreeWidgetItem * parentContainerItem ()
 Returns tree item corresponding to the selected parent container. More...

Protected Attributes

QList< ContainerPairmExistingContainers
QgsVectorLayermLayer = nullptr

Detailed Description

Dialog to add a tab or group of attributes.

This class is not a part of public API
QGIS 3.14

Definition at line 39 of file qgsaddtaborgroup.h.

Member Typedef Documentation

◆ ContainerPair

typedef QPair<QString, QTreeWidgetItem *> QgsAddAttributeFormContainerDialog::ContainerPair

Definition at line 44 of file qgsaddtaborgroup.h.

Constructor & Destructor Documentation

◆ QgsAddAttributeFormContainerDialog()

QgsAddAttributeFormContainerDialog::QgsAddAttributeFormContainerDialog ( QgsVectorLayer lyr,
const QList< ContainerPair > &  existingContainerList,
QTreeWidgetItem *  currentTab = nullptr,
QWidget *  parent = nullptr 


Definition at line 28 of file qgsaddtaborgroup.cpp.

Member Function Documentation

◆ accept()

void QgsAddAttributeFormContainerDialog::accept ( )

Accepts the dialog.

Definition at line 94 of file qgsaddtaborgroup.cpp.

◆ columnCount()

int QgsAddAttributeFormContainerDialog::columnCount ( ) const

Returns the column count.

Definition at line 84 of file qgsaddtaborgroup.cpp.

◆ containerType()

Qgis::AttributeEditorContainerType QgsAddAttributeFormContainerDialog::containerType ( ) const

Returns the container type.

QGIS 3.32

Definition at line 89 of file qgsaddtaborgroup.cpp.

◆ name()

QString QgsAddAttributeFormContainerDialog::name ( )

Returns the name of the tab or group.

Definition at line 67 of file qgsaddtaborgroup.cpp.

◆ parentContainerItem()

QTreeWidgetItem * QgsAddAttributeFormContainerDialog::parentContainerItem ( )

Returns tree item corresponding to the selected parent container.

Will be nullptr when a new tab is created.

Definition at line 72 of file qgsaddtaborgroup.cpp.

Member Data Documentation

◆ mExistingContainers

QList< ContainerPair > QgsAddAttributeFormContainerDialog::mExistingContainers

Definition at line 79 of file qgsaddtaborgroup.h.

◆ mLayer

QgsVectorLayer* QgsAddAttributeFormContainerDialog::mLayer = nullptr

Definition at line 78 of file qgsaddtaborgroup.h.

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