QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
|
#include <qgssublayersdialog.h>
Classes | |
struct | LayerDefinition |
A structure that defines layers for the purpose of this dialog. More... | |
Public Types | |
typedef QList< QgsSublayersDialog::LayerDefinition > | LayerDefinitionList |
List of layer definitions for the purpose of this dialog. More... | |
enum | ProviderType { Ogr, Gdal, Vsifile } |
Public Slots | |
int | exec () override |
Public Member Functions | |
QgsSublayersDialog (ProviderType providerType, const QString &name, QWidget *parent=nullptr, Qt::WindowFlags fl=nullptr) | |
Constructor for QgsSublayersDialog. More... | |
~QgsSublayersDialog () override | |
bool | addToGroupCheckbox () const |
If we should add layers in a group. More... | |
int | countColumn () const |
Returns column with count or -1. More... | |
void | populateLayerTable (const LayerDefinitionList &list) |
Populate the table with layers. More... | |
LayerDefinitionList | selection () |
Returns list of selected layers. More... | |
void | setShowAddToGroupCheckbox (bool showAddToGroupCheckbox) |
Set if we should display the add to group checkbox. More... | |
bool | showAddToGroupCheckbox () const |
If we should display the add to group checkbox. More... | |
Protected Attributes | |
QString | mName |
QStringList | mSelectedSubLayers |
bool | mShowCount = false |
Whether to show number of features in the table. More... | |
bool | mShowDescription = false |
Whether to show description in the table. More... | |
bool | mShowType = false |
Whether to show type in the table. More... | |
Definition at line 29 of file qgssublayersdialog.h.
List of layer definitions for the purpose of this dialog.
Definition at line 58 of file qgssublayersdialog.h.
Enumerator | |
---|---|
Ogr | |
Gdal | |
Vsifile |
Definition at line 34 of file qgssublayersdialog.h.
QgsSublayersDialog::QgsSublayersDialog | ( | ProviderType | providerType, |
const QString & | name, | ||
QWidget * | parent = nullptr , |
||
Qt::WindowFlags | fl = nullptr |
||
) |
Constructor for QgsSublayersDialog.
Definition at line 45 of file qgssublayersdialog.cpp.
|
override |
Definition at line 87 of file qgssublayersdialog.cpp.
|
inline |
If we should add layers in a group.
Definition at line 96 of file qgssublayersdialog.h.
|
inline |
|
overrideslot |
Definition at line 168 of file qgssublayersdialog.cpp.
void QgsSublayersDialog::populateLayerTable | ( | const LayerDefinitionList & | list | ) |
Populate the table with layers.
Definition at line 133 of file qgssublayersdialog.cpp.
QgsSublayersDialog::LayerDefinitionList QgsSublayersDialog::selection | ( | ) |
Returns list of selected layers.
Definition at line 109 of file qgssublayersdialog.cpp.
|
inline |
Set if we should display the add to group checkbox.
Definition at line 84 of file qgssublayersdialog.h.
|
inline |
If we should display the add to group checkbox.
Definition at line 90 of file qgssublayersdialog.h.
|
protected |
Definition at line 108 of file qgssublayersdialog.h.
|
protected |
Definition at line 109 of file qgssublayersdialog.h.
|
protected |
Whether to show number of features in the table.
Definition at line 110 of file qgssublayersdialog.h.
|
protected |
Whether to show description in the table.
Definition at line 112 of file qgssublayersdialog.h.
|
protected |
Whether to show type in the table.
Definition at line 111 of file qgssublayersdialog.h.