QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
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
[legend]

Public Types

typedef QPair< QString, QTreeWidgetItem * > ContainerPair
 

Public Member Functions

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

Protected Attributes

QList< ContainerPairmExistingContainers
 
QgsVectorLayermLayer = nullptr
 

Detailed Description

Dialog to add a tab or group of attributes.

Note
This class is not a part of public API
Since
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 
)

constructor

Definition at line 29 of file qgsaddtaborgroup.cpp.

Member Function Documentation

◆ accept()

void QgsAddAttributeFormContainerDialog::accept ( )
override

Accepts the dialog.

Definition at line 95 of file qgsaddtaborgroup.cpp.

◆ columnCount()

int QgsAddAttributeFormContainerDialog::columnCount ( ) const

Returns the column count.

Definition at line 85 of file qgsaddtaborgroup.cpp.

◆ containerType()

Qgis::AttributeEditorContainerType QgsAddAttributeFormContainerDialog::containerType ( ) const

Returns the container type.

Since
QGIS 3.32

Definition at line 90 of file qgsaddtaborgroup.cpp.

◆ name()

QString QgsAddAttributeFormContainerDialog::name ( )

Returns the name of the tab or group.

Definition at line 68 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 73 of file qgsaddtaborgroup.cpp.

Member Data Documentation

◆ mExistingContainers

QList< ContainerPair > QgsAddAttributeFormContainerDialog::mExistingContainers
protected

Definition at line 79 of file qgsaddtaborgroup.h.

◆ mLayer

QgsVectorLayer* QgsAddAttributeFormContainerDialog::mLayer = nullptr
protected

Definition at line 78 of file qgsaddtaborgroup.h.


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