QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
attributetable
qgsorganizetablecolumnsdialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsorganizetablecolumnsdialog.h - dialog for attribute table
3
-------------------
4
date : Feb 2016
5
copyright : Stéphane Brunner
6
email : stephane.brunner@gmail.com
7
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
17
#ifndef QGSORGANIZEFILTERTABLESDIALOG_H_
18
#define QGSORGANIZEFILTERTABLESDIALOG_H_
19
20
#include "ui_qgsorganizetablecolumnsdialog.h"
21
22
#include "qgis_gui.h"
23
#include "
qgis_sip.h
"
24
#include "
qgsattributetableconfig.h
"
25
26
#include <QDialog>
27
28
class
QgsVectorLayer
;
29
35
class
GUI_EXPORT
QgsOrganizeTableColumnsDialog
:
public
QDialog,
private
Ui::QgsOrganizeTableColumnsDialog
36
{
37
Q_OBJECT
38
39
public
:
47
QgsOrganizeTableColumnsDialog
(
const
QgsVectorLayer
*vl,
const
QgsAttributeTableConfig
&
config
, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
, Qt::WindowFlags flags = Qt::Window );
48
50
57
QgsOrganizeTableColumnsDialog
(
const
QgsVectorLayer
*vl, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
, Qt::WindowFlags flags = Qt::Window );
59
63
QgsAttributeTableConfig
config
()
const
;
64
65
public
slots:
66
70
void
showAll
();
71
75
void
hideAll
();
76
81
void
toggleSelection
();
82
83
private
:
84
QgsAttributeTableConfig
mConfig;
85
};
86
87
#endif
QgsAttributeTableConfig
A container for configuration of the attribute table.
Definition
qgsattributetableconfig.h:36
QgsOrganizeTableColumnsDialog::toggleSelection
void toggleSelection()
Toggle the check state of selected fields to hide or show them in the attribute table.
Definition
qgsorganizetablecolumnsdialog.cpp:128
QgsOrganizeTableColumnsDialog::showAll
void showAll()
showAll checks all the fields to show them all in the attribute table
Definition
qgsorganizetablecolumnsdialog.cpp:112
QgsOrganizeTableColumnsDialog::QgsOrganizeTableColumnsDialog
QgsOrganizeTableColumnsDialog(const QgsVectorLayer *vl, const QgsAttributeTableConfig &config, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::Window)
Constructor.
Definition
qgsorganizetablecolumnsdialog.cpp:39
QgsOrganizeTableColumnsDialog::hideAll
void hideAll()
hideAll unchecks all the fields to hide them all in the attribute table
Definition
qgsorganizetablecolumnsdialog.cpp:120
QgsOrganizeTableColumnsDialog::config
QgsAttributeTableConfig config() const
Gets the updated configuration.
Definition
qgsorganizetablecolumnsdialog.cpp:92
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgsattributetableconfig.h
Generated on
for QGIS API Documentation by
1.17.0