16#ifndef QGSSUBLAYERSDIALOG_H
17#define QGSSUBLAYERSDIALOG_H
19#include "ui_qgssublayersdialogbase.h"
156 void layersTable_selectionChanged(
const QItemSelection &,
const QItemSelection & );
157 void mBtnDeselectAll_pressed();
175 bool mShowAddToGroupCheckbox =
false;
bool mShowType
Whether to show type in the table.
QList< QgsSublayersDialog::LayerDefinition > LayerDefinitionList
List of layer definitions for the purpose of this dialog.
PromptMode
Prompt behavior of the QgsSublayersDialog.
@ PromptNever
never prompt, will not load anything
@ PromptAlways
always ask if there are existing sublayers
@ PromptIfNeeded
always ask if there are existing sublayers, but skip if there are bands for rasters
@ PromptLoadAll
never prompt, but load all sublayers
Q_DECL_DEPRECATED QgsSublayersDialog(ProviderType providerType, const QString &name, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags(), const QString &dataSourceUri=QString())
Constructor for QgsSublayersDialog.
bool showAddToGroupCheckbox() const
If we should display the add to group checkbox.
LayerDefinitionList selection()
Returns list of selected layers.
bool mShowCount
Whether to show number of features in the table.
void setShowAddToGroupCheckbox(bool showAddToGroupCheckbox)
Set if we should display the add to group checkbox.
bool mShowDescription
Whether to show description in the table.
QStringList mSelectedSubLayers
void populateLayerTable(const LayerDefinitionList &list)
Populate the table with layers.
int countColumn() const
Returns column with count or -1.
bool addToGroupCheckbox() const
If we should add layers in a group.
QString mName
Provider type name.
A structure that defines layers for the purpose of this dialog.
QString layerName
Name of the layer (not necessarily unique).
QString type
Extra type depending on the use (e.g. geometry type for vector sublayers).
QString description
Description.
int count
Number of features (might be unused).
int layerId
Identifier of the layer (one unique layer id may have multiple types though).