QGIS API Documentation  2.99.0-Master (6a61179)
Classes | Public Types | Public Slots | Public Member Functions | Protected Attributes | List of all members
QgsSublayersDialog Class Reference

#include <qgssublayersdialog.h>

Inheritance diagram for QgsSublayersDialog:
Inheritance graph
[legend]

Classes

struct  LayerDefinition
 A structure that defines layers for the purpose of this dialog. More...
 

Public Types

typedef struct QgsSublayersDialog::LayerDefinition LayerDefinition
 A structure that defines layers for the purpose of this dialog. More...
 
typedef QList< LayerDefinitionLayerDefinitionList
 List of layer definitions for the purpose of this dialog. More...
 
enum  ProviderType { Ogr, Gdal, Vsifile }
 

Public Slots

int exec ()
 
void on_buttonBox_helpRequested ()
 

Public Member Functions

 QgsSublayersDialog (ProviderType providerType, const QString &name, QWidget *parent=nullptr, Qt::WindowFlags fl=0)
 
 ~QgsSublayersDialog ()
 
void populateLayerTable (const LayerDefinitionList &list)
 Populate the table with layers. More...
 
LayerDefinitionList selection ()
 Returns list of selected layers. More...
 

Protected Attributes

QString mName
 
QStringList mSelectedSubLayers
 
bool mShowCount
 Whether to show number of features in the table. More...
 
bool mShowType
 Whether to show type in the table. More...
 

Detailed Description

Definition at line 26 of file qgssublayersdialog.h.

Member Typedef Documentation

§ LayerDefinition

A structure that defines layers for the purpose of this dialog.

Note
added in 2.16

§ LayerDefinitionList

List of layer definitions for the purpose of this dialog.

Note
added in 2.16

Definition at line 52 of file qgssublayersdialog.h.

Member Enumeration Documentation

§ ProviderType

Enumerator
Ogr 
Gdal 
Vsifile 

Definition at line 31 of file qgssublayersdialog.h.

Constructor & Destructor Documentation

§ QgsSublayersDialog()

QgsSublayersDialog::QgsSublayersDialog ( ProviderType  providerType,
const QString &  name,
QWidget *  parent = nullptr,
Qt::WindowFlags  fl = 0 
)

Definition at line 25 of file qgssublayersdialog.cpp.

§ ~QgsSublayersDialog()

QgsSublayersDialog::~QgsSublayersDialog ( )

Definition at line 65 of file qgssublayersdialog.cpp.

Member Function Documentation

§ exec

int QgsSublayersDialog::exec ( )
slot

Definition at line 141 of file qgssublayersdialog.cpp.

§ on_buttonBox_helpRequested

void QgsSublayersDialog::on_buttonBox_helpRequested ( )
inlineslot

Definition at line 66 of file qgssublayersdialog.h.

§ populateLayerTable()

void QgsSublayersDialog::populateLayerTable ( const LayerDefinitionList list)

Populate the table with layers.

Note
added in 2.16

Definition at line 110 of file qgssublayersdialog.cpp.

§ selection()

QgsSublayersDialog::LayerDefinitionList QgsSublayersDialog::selection ( )

Returns list of selected layers.

Note
added in 2.16

Definition at line 86 of file qgssublayersdialog.cpp.

Member Data Documentation

§ mName

QString QgsSublayersDialog::mName
protected

Definition at line 70 of file qgssublayersdialog.h.

§ mSelectedSubLayers

QStringList QgsSublayersDialog::mSelectedSubLayers
protected

Definition at line 71 of file qgssublayersdialog.h.

§ mShowCount

bool QgsSublayersDialog::mShowCount
protected

Whether to show number of features in the table.

Definition at line 72 of file qgssublayersdialog.h.

§ mShowType

bool QgsSublayersDialog::mShowType
protected

Whether to show type in the table.

Definition at line 73 of file qgssublayersdialog.h.


The documentation for this class was generated from the following files: