QGIS/python/gui/auto_generated/qgssublayersdialog.sip.in

103 lines
2.6 KiB
Plaintext
Raw Normal View History

2017-06-08 11:26:03 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgssublayersdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsSublayersDialog : QDialog
{
2017-06-08 11:26:03 +02:00
%TypeHeaderCode
2017-06-08 11:26:03 +02:00
#include "qgssublayersdialog.h"
%End
public:
2013-06-23 16:00:16 +02:00
enum ProviderType
{
Ogr,
Gdal,
Vsifile
};
struct LayerDefinition
{
int layerId;
2017-06-08 11:26:03 +02:00
QString layerName; //!< Name of the layer (not necessarily unique)
int count;
2017-06-08 11:26:03 +02:00
QString type; //!< Extra type depending on the use (e.g. geometry type for vector sublayers)
};
typedef QList<QgsSublayersDialog::LayerDefinition> LayerDefinitionList;
2017-06-08 11:26:03 +02:00
QgsSublayersDialog( ProviderType providerType,
const QString &name,
QWidget *parent /TransferThis/ = 0,
Qt::WindowFlags fl = 0 );
%Docstring
Constructor for QgsSublayersDialog
%End
2017-06-08 11:26:03 +02:00
~QgsSublayersDialog();
2017-06-08 11:26:03 +02:00
void populateLayerTable( const LayerDefinitionList &list );
%Docstring
2017-12-15 10:36:55 -04:00
Populate the table with layers
2017-06-08 11:26:03 +02:00
.. versionadded:: 2.16
%End
2017-06-08 11:26:03 +02:00
LayerDefinitionList selection();
%Docstring
2017-12-15 10:36:55 -04:00
Returns list of selected layers
2017-06-08 11:26:03 +02:00
.. versionadded:: 2.16
%End
void setShowAddToGroupCheckbox( bool showAddToGroupCheckbox );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set if we should display the add to group checkbox
2017-06-08 11:26:03 +02:00
.. versionadded:: 3.0
%End
bool showAddToGroupCheckbox() const;
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
If we should display the add to group checkbox
2017-06-08 11:26:03 +02:00
.. versionadded:: 3.0
%End
bool addToGroupCheckbox() const;
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
If we should add layers in a group
2017-06-08 11:26:03 +02:00
.. versionadded:: 3.0
%End
int countColumn() const;
%Docstring
Returns column with count or -1
2017-12-15 10:36:55 -04:00
.. versionadded:: 3.0
%End
public slots:
virtual int exec();
2017-06-08 11:26:03 +02:00
protected:
};
2017-06-08 11:26:03 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgssublayersdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/