|
QGIS API Documentation 4.1.0-Master (3b8ef1f72a3)
|
Dialog to add a container for attribute widgets. More...
#include <qgsaddtaborgroup.h>

Public Types | |
| typedef QPair< QString, QModelIndex > | ContainerPair |
Public Member Functions | |
| QgsAddAttributeFormContainerDialog (QgsVectorLayer *layer, const QList< ContainerPair > &existingContainerList, QModelIndex ¤tItemIndex, 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. | |
Static Public Attributes | |
| static const QgsSettingsEntryInteger * | settingsDefaultGroupColumnCount = new QgsSettingsEntryInteger( u"default-group-column-count"_s, QgsSettingsTree::sTreeAttributeForm, 1, QObject::tr( "Default column count for group box containers in attribute forms" ) ) |
| Settings entry for the default column count for group box containers. | |
| static const QgsSettingsEntryInteger * | settingsDefaultTabColumnCount = new QgsSettingsEntryInteger( u"default-tab-column-count"_s, QgsSettingsTree::sTreeAttributeForm, 1, QObject::tr( "Default column count for tab containers in attribute forms" ) ) |
| Settings entry for the default column count for tab containers. | |
Protected Attributes | |
| QList< ContainerPair > | mExistingContainers |
| QgsVectorLayer * | mLayer = nullptr |
Dialog to add a container for attribute widgets.
Definition at line 41 of file qgsaddtaborgroup.h.
| typedef QPair<QString, QModelIndex> QgsAddAttributeFormContainerDialog::ContainerPair |
Definition at line 46 of file qgsaddtaborgroup.h.
| QgsAddAttributeFormContainerDialog::QgsAddAttributeFormContainerDialog | ( | QgsVectorLayer * | layer, |
| const QList< ContainerPair > & | existingContainerList, | ||
| QModelIndex & | currentItemIndex, | ||
| QWidget * | parent = nullptr ) |
constructor
Definition at line 40 of file qgsaddtaborgroup.cpp.
|
override |
Accepts the dialog.
Definition at line 106 of file qgsaddtaborgroup.cpp.
| int QgsAddAttributeFormContainerDialog::columnCount | ( | ) | const |
Returns the column count.
Definition at line 96 of file qgsaddtaborgroup.cpp.
| Qgis::AttributeEditorContainerType QgsAddAttributeFormContainerDialog::containerType | ( | ) | const |
| QString QgsAddAttributeFormContainerDialog::name | ( | ) |
Returns the name of the container.
Definition at line 79 of file qgsaddtaborgroup.cpp.
| 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.
Definition at line 84 of file qgsaddtaborgroup.cpp.
|
protected |
Definition at line 82 of file qgsaddtaborgroup.h.
|
protected |
Definition at line 81 of file qgsaddtaborgroup.h.
|
static |
Settings entry for the default column count for group box containers.
Definition at line 88 of file qgsaddtaborgroup.h.
|
static |
Settings entry for the default column count for tab containers.
Definition at line 86 of file qgsaddtaborgroup.h.