16#ifndef QGSSUBLAYERSDIALOG_H
17#define QGSSUBLAYERSDIALOG_H
21#include "ui_qgssublayersdialogbase.h"
119 Qt::WindowFlags fl = Qt::WindowFlags(),
137 void setShowAddToGroupCheckbox(
bool showAddToGroupCheckbox ) { mShowAddToGroupCheckbox = showAddToGroupCheckbox; }
158 void layersTable_selectionChanged(
const QItemSelection &,
const QItemSelection & );
159 void mBtnDeselectAll_pressed();
170 bool mShowCount =
false;
172 bool mShowType =
false;
174 bool mShowDescription =
false;
178 bool mShowAddToGroupCheckbox =
false;
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
bool showAddToGroupCheckbox() const
If we should display the add to group checkbox.
QStringList mSelectedSubLayers
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.