QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
#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. | |
enum | PromptMode { PromptAlways , PromptIfNeeded , PromptNever , PromptLoadAll } |
Prompt behavior of the QgsSublayersDialog. More... | |
enum | ProviderType { Ogr , Gdal , Vsifile , Mdal } |
Public Slots | |
int | exec () override |
Public Member Functions | |
Q_DECL_DEPRECATED | QgsSublayersDialog (ProviderType providerType, const QString &name, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags(), const QString &dataSourceUri=QString()) |
Constructor for QgsSublayersDialog. | |
~QgsSublayersDialog () override | |
bool | addToGroupCheckbox () const |
If we should add layers in a group. | |
int | countColumn () const |
Returns column with count or -1. | |
void | populateLayerTable (const LayerDefinitionList &list) |
Populate the table with layers. | |
LayerDefinitionList | selection () |
Returns list of selected layers. | |
void | setShowAddToGroupCheckbox (bool showAddToGroupCheckbox) |
Set if we should display the add to group checkbox. | |
bool | showAddToGroupCheckbox () const |
If we should display the add to group checkbox. | |
Protected Attributes | |
QString | mName |
Provider type name. | |
QStringList | mSelectedSubLayers |
bool | mShowCount = false |
Whether to show number of features in the table. | |
bool | mShowDescription = false |
Whether to show description in the table. | |
bool | mShowType = false |
Whether to show type in the table. | |
Definition at line 31 of file qgssublayersdialog.h.
List of layer definitions for the purpose of this dialog.
Definition at line 101 of file qgssublayersdialog.h.
Prompt behavior of the QgsSublayersDialog.
Definition at line 40 of file qgssublayersdialog.h.
Enumerator | |
---|---|
Ogr | |
Gdal | |
Vsifile | |
Mdal |
|
Definition at line 65 of file qgssublayersdialog.h.
QgsSublayersDialog::QgsSublayersDialog | ( | ProviderType | providerType, |
const QString & | name, | ||
QWidget * | parent = nullptr , |
||
Qt::WindowFlags | fl = Qt::WindowFlags() , |
||
const QString & | dataSourceUri = QString() |
||
) |
Constructor for QgsSublayersDialog.
Construct a new QgsSublayersDialog object - a dialog to select which sub layers to be imported from a data source (e.g. from geopackage or zipfile)
providerType | provider type |
name | provider type name |
parent | parent widget of the dialog |
fl | window flags |
dataSourceUri | data source URI |
Definition at line 47 of file qgssublayersdialog.cpp.
|
override |
Definition at line 101 of file qgssublayersdialog.cpp.
|
inline |
If we should add layers in a group.
Definition at line 147 of file qgssublayersdialog.h.
|
inline |
Returns column with count or -1.
Definition at line 152 of file qgssublayersdialog.h.
|
overrideslot |
Definition at line 184 of file qgssublayersdialog.cpp.
void QgsSublayersDialog::populateLayerTable | ( | const LayerDefinitionList & | list | ) |
Populate the table with layers.
Definition at line 147 of file qgssublayersdialog.cpp.
QgsSublayersDialog::LayerDefinitionList QgsSublayersDialog::selection | ( | ) |
Returns list of selected layers.
Definition at line 123 of file qgssublayersdialog.cpp.
|
inline |
Set if we should display the add to group checkbox.
Definition at line 137 of file qgssublayersdialog.h.
|
inline |
If we should display the add to group checkbox.
Definition at line 142 of file qgssublayersdialog.h.
|
protected |
Provider type name.
Definition at line 166 of file qgssublayersdialog.h.
|
protected |
Definition at line 167 of file qgssublayersdialog.h.
|
protected |
Whether to show number of features in the table.
Definition at line 170 of file qgssublayersdialog.h.
|
protected |
Whether to show description in the table.
Definition at line 174 of file qgssublayersdialog.h.
|
protected |
Whether to show type in the table.
Definition at line 172 of file qgssublayersdialog.h.