-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgsaddtaborgroup.h
59 lines (44 loc) · 1.88 KB
/
qgsaddtaborgroup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/***************************************************************************
qgsaddtaborgroup.h
Add a tab or a group for the tab and group display of fields
-------------------
begin : 2012-07-30
copyright : (C) 2012 by Denis Rouzaud
email : denis dot rouzaud at gmail dot com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSADDTABORGROUP
#define QGSADDTABORGROUP
#include "ui_qgsaddtaborgroupbase.h"
#include "qgisgui.h"
#include "qgis_app.h"
class QTreeWidgetItem;
class QgsVectorLayer;
class APP_EXPORT QgsAddTabOrGroup : public QDialog, private Ui::QgsAddTabOrGroupBase
{
Q_OBJECT
public:
typedef QPair<QString, QTreeWidgetItem *> TabPair;
public:
QgsAddTabOrGroup( QgsVectorLayer *lyr, const QList<TabPair> &tabList, QWidget *parent = nullptr );
~QgsAddTabOrGroup();
QString name();
QTreeWidgetItem *tab();
int columnCount() const;
bool tabButtonIsChecked();
virtual void accept() override;
private slots:
void on_mGroupButton_toggled( bool checked );
void on_mTabButton_toggled( bool checked );
protected:
QgsVectorLayer *mLayer = nullptr;
QList< TabPair > mTabs;
};
#endif