QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsaddtaborgroup.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsaddtaborgroup.h
3 Add a tab or a group for the tab and group display of fields
4 -------------------
5 begin : 2012-07-30
6 copyright : (C) 2012 by Denis Rouzaud
7 email : denis dot rouzaud at gmail dot com
8***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19#ifndef QGSADDTABORGROUP
20#define QGSADDTABORGROUP
21
22// We don't want to expose this in the public API
23#define SIP_NO_FILE
24
25#include "ui_qgsaddtaborgroupbase.h"
26
27#include "qgis_gui.h"
28#include "qgsguiutils.h"
29
30class QgsVectorLayer;
31
39class GUI_EXPORT QgsAddAttributeFormContainerDialog : public QDialog, private Ui::QgsAddTabOrGroupBase
40{
41 Q_OBJECT
42
43 public:
44 typedef QPair<QString, QModelIndex> ContainerPair;
45
46 public:
48 QgsAddAttributeFormContainerDialog( QgsVectorLayer *layer, const QList<ContainerPair> &existingContainerList, QModelIndex &currentItemIndex, QWidget *parent = nullptr );
49
51 QString name();
52
59 QModelIndex parentContainerItem() const;
60
62 int columnCount() const;
63
70
72 void accept() override;
73
74 private slots:
75 void showHelp();
76 void containerTypeChanged();
77
78 protected:
80 QList<ContainerPair> mExistingContainers;
81};
82
83#endif
AttributeEditorContainerType
Attribute editor container types.
Definition qgis.h:5470
QPair< QString, QModelIndex > ContainerPair
QModelIndex parentContainerItem() const
Returns tree model index corresponding to the selected parent container.
QgsAddAttributeFormContainerDialog(QgsVectorLayer *layer, const QList< ContainerPair > &existingContainerList, QModelIndex &currentItemIndex, QWidget *parent=nullptr)
constructor
Qgis::AttributeEditorContainerType containerType() const
Returns the container type.
QString name()
Returns the name of the container.
void accept() override
Accepts the dialog.
int columnCount() const
Returns the column count.
QList< ContainerPair > mExistingContainers
Represents a vector layer which manages a vector based dataset.