QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
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#include "qgsguiutils.h"
27#include "qgis_gui.h"
28
29class QTreeWidgetItem;
30class QgsVectorLayer;
31
39class GUI_EXPORT QgsAddAttributeFormContainerDialog : public QDialog, private Ui::QgsAddTabOrGroupBase
40{
41 Q_OBJECT
42
43 public:
44 typedef QPair<QString, QTreeWidgetItem *> ContainerPair;
45
46 public:
48 QgsAddAttributeFormContainerDialog( QgsVectorLayer *lyr, const QList<ContainerPair> &existingContainerList, QTreeWidgetItem *currentTab = nullptr, QWidget *parent = nullptr );
49
51 QString name();
52
58 QTreeWidgetItem *parentContainerItem();
59
61 int columnCount() const;
62
68 Qgis::AttributeEditorContainerType containerType() const;
69
71 void accept() override;
72
73 private slots:
74 void showHelp();
75 void containerTypeChanged();
76
77 protected:
78 QgsVectorLayer *mLayer = nullptr;
79 QList< ContainerPair > mExistingContainers;
80};
81
82#endif
AttributeEditorContainerType
Attribute editor container types.
Definition qgis.h:5073
Dialog to add a tab or group of attributes.
QPair< QString, QTreeWidgetItem * > ContainerPair
QList< ContainerPair > mExistingContainers
Represents a vector layer which manages a vector based data sets.