QGIS API Documentation
2.12.0-Lyon
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
gui
qgssublayersdialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgssublayersdialog.h - dialog for selecting sublayers
3
---------------------
4
begin : January 2009
5
copyright : (C) 2009 by Florian El Ahdab
6
email : felahdab at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSSUBLAYERSDIALOG_H
17
#define QGSSUBLAYERSDIALOG_H
18
19
#include <QDialog>
20
#include <ui_qgssublayersdialogbase.h>
21
#include "
qgscontexthelp.h
"
22
23
24
class
GUI_EXPORT
QgsSublayersDialog
:
public
QDialog
,
private
Ui::QgsSublayersDialogBase
25
{
26
Q_OBJECT
27
public
:
28
29
enum
ProviderType
30
{
31
Ogr
,
32
Gdal
,
33
Vsifile
34
};
35
36
QgsSublayersDialog
( ProviderType providerType,
const
QString
& name,
QWidget
* parent = 0,
const
Qt::WindowFlags
& fl = 0 );
37
~
QgsSublayersDialog
();
38
39
void
populateLayerTable(
const
QStringList
& theList,
const
QString
& delim =
":"
);
40
// Returns list of selected layers, if there are more layers with the same name,
41
// geometry type is appended separated by semicolon, example: <layer>:<geometryType>
42
QStringList
selectionNames();
43
QList<int>
selectionIndexes();
44
45
public
slots:
46
void
on_buttonBox_helpRequested
() {
QgsContextHelp::run
(
metaObject
()->
className
() ); }
47
int
exec
();
48
49
protected
:
50
QString
mName
;
51
QStringList
mSelectedSubLayers
;
52
};
53
54
#endif
QObject::className
const char * className() const
QWidget
QgsSublayersDialog::ProviderType
ProviderType
Definition:
qgssublayersdialog.h:29
qgscontexthelp.h
QgsSublayersDialog::mName
QString mName
Definition:
qgssublayersdialog.h:50
QObject::metaObject
virtual const QMetaObject * metaObject() const
QDialog::exec
int exec()
QgsSublayersDialog::mSelectedSubLayers
QStringList mSelectedSubLayers
Definition:
qgssublayersdialog.h:51
QgsSublayersDialog::Ogr
Definition:
qgssublayersdialog.h:31
QgsSublayersDialog::Gdal
Definition:
qgssublayersdialog.h:32
QgsContextHelp::run
static void run(const QString &context)
Definition:
qgscontexthelp.cpp:32
QgsSublayersDialog
Definition:
qgssublayersdialog.h:24
QString
QList< int >
QStringList
QDialog
Qt::WindowFlags
typedef WindowFlags
QgsSublayersDialog::on_buttonBox_helpRequested
void on_buttonBox_helpRequested()
Definition:
qgssublayersdialog.h:46
Generated on Sat Oct 24 2015 04:11:26 for QGIS API Documentation by
1.8.9.1