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

Dialog to add a container for attribute widgets. More...

#include <qgsaddtaborgroup.h>

Inheritance diagram for QgsAddAttributeFormContainerDialog:
Inheritance graph
[legend]

Public Types

typedef QPair< QString, QModelIndex > ContainerPair
 

Public Member Functions

 QgsAddAttributeFormContainerDialog (QgsVectorLayer *layer, const QList< ContainerPair > &existingContainerList, QModelIndex &currentItemIndex, 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 container.
 
QModelIndex parentContainerItem () const
 Returns tree model index corresponding to the selected parent container.
 

Protected Attributes

QList< ContainerPairmExistingContainers
 
QgsVectorLayermLayer = nullptr
 

Detailed Description

Dialog to add a container for attribute widgets.

Note
This class is not a part of public API
Since
QGIS 3.14

Definition at line 38 of file qgsaddtaborgroup.h.

Member Typedef Documentation

◆ ContainerPair

typedef QPair<QString, QModelIndex> QgsAddAttributeFormContainerDialog::ContainerPair

Definition at line 43 of file qgsaddtaborgroup.h.

Constructor & Destructor Documentation

◆ QgsAddAttributeFormContainerDialog()

QgsAddAttributeFormContainerDialog::QgsAddAttributeFormContainerDialog ( QgsVectorLayer layer,
const QList< ContainerPair > &  existingContainerList,
QModelIndex &  currentItemIndex,
QWidget *  parent = nullptr 
)

constructor

Definition at line 28 of file qgsaddtaborgroup.cpp.

Member Function Documentation

◆ accept()

void QgsAddAttributeFormContainerDialog::accept ( )
override

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.

Since
QGIS 3.32

Definition at line 89 of file qgsaddtaborgroup.cpp.

◆ name()

QString QgsAddAttributeFormContainerDialog::name ( )

Returns the name of the container.

Definition at line 67 of file qgsaddtaborgroup.cpp.

◆ parentContainerItem()

QModelIndex QgsAddAttributeFormContainerDialog::parentContainerItem ( ) const

Returns tree model index corresponding to the selected parent container.

Will be an invalid index when a new tab is created.

Since
QGIS 3.44

Definition at line 72 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: