2017-05-18 07:50:23 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgspluginlayerregistry.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-26 15:43:54 +00:00
|
|
|
|
|
|
|
class QgsPluginLayerType
|
|
|
|
{
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
|
|
|
class for creating plugin specific layers
|
|
|
|
%End
|
|
|
|
|
2010-01-26 15:43:54 +00:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgspluginlayerregistry.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsPluginLayerType( const QString &name );
|
2010-01-26 15:43:54 +00:00
|
|
|
virtual ~QgsPluginLayerType();
|
|
|
|
|
|
|
|
QString name();
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
virtual QgsPluginLayer *createLayer() /Factory/;
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2019-02-26 09:11:18 +10:00
|
|
|
Returns new layer of this type. Return None on error
|
2017-05-18 07:50:23 +02:00
|
|
|
%End
|
2010-01-26 15:43:54 +00:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
virtual QgsPluginLayer *createLayer( const QString &uri ) /Factory/;
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2019-02-26 09:11:18 +10:00
|
|
|
Returns new layer of this type, using layer URI (specific to this plugin layer type). Return None on error.
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
.. versionadded:: 2.10
|
|
|
|
%End
|
2015-03-18 14:17:32 +07:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
virtual bool showLayerProperties( QgsPluginLayer *layer );
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2019-02-26 19:54:09 +10:00
|
|
|
Show plugin layer properties dialog. Return ``False`` if the dialog cannot be shown.
|
2017-05-18 07:50:23 +02:00
|
|
|
%End
|
2010-01-26 15:43:54 +00:00
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
protected:
|
2010-01-26 15:43:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsPluginLayerRegistry
|
|
|
|
{
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A registry of plugin layers types.
|
2017-05-18 07:50:23 +02:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
QgsPluginLayerRegistry is not usually directly created, but rather accessed through
|
2017-12-19 11:43:52 -04:00
|
|
|
:py:func:`QgsApplication.pluginLayerRegistry()`
|
2017-05-18 07:50:23 +02:00
|
|
|
%End
|
|
|
|
|
2010-01-26 15:43:54 +00:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgspluginlayerregistry.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2016-12-28 16:09:05 +10:00
|
|
|
QgsPluginLayerRegistry();
|
2017-09-11 21:43:15 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsPluginLayerRegistry.
|
2017-09-11 21:43:15 +10:00
|
|
|
%End
|
2010-01-26 15:43:54 +00:00
|
|
|
~QgsPluginLayerRegistry();
|
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
|
2013-10-08 17:57:54 +07:00
|
|
|
QStringList pluginLayerTypes();
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
List all known layer types
|
2017-05-18 07:50:23 +02:00
|
|
|
%End
|
2013-10-08 17:57:54 +07:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
bool addPluginLayerType( QgsPluginLayerType *pluginLayerType /Transfer/ );
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2019-02-26 19:54:09 +10:00
|
|
|
Add plugin layer type (take ownership) and return ``True`` on success
|
2017-05-18 07:50:23 +02:00
|
|
|
%End
|
2010-01-26 15:43:54 +00:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
bool removePluginLayerType( const QString &typeName );
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2019-02-26 19:54:09 +10:00
|
|
|
Remove plugin layer type and return ``True`` on success
|
2017-05-18 07:50:23 +02:00
|
|
|
%End
|
2010-01-26 15:43:54 +00:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsPluginLayerType *pluginLayerType( const QString &typeName );
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2019-02-26 09:11:18 +10:00
|
|
|
Returns plugin layer type metadata or None if doesn't exist
|
2017-05-18 07:50:23 +02:00
|
|
|
%End
|
2010-01-26 15:43:54 +00:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsPluginLayer *createLayer( const QString &typeName, const QString &uri = QString() ) /Factory/;
|
2017-05-18 07:50:23 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns new layer if corresponding plugin has been found else returns a None.
|
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
.. note::
|
2010-01-26 15:43:54 +00:00
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
parameter uri has been added in QGIS 2.10
|
|
|
|
%End
|
2010-01-26 15:43:54 +00:00
|
|
|
|
2017-05-18 07:50:23 +02:00
|
|
|
private:
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsPluginLayerRegistry( const QgsPluginLayerRegistry &rh );
|
2010-01-26 15:43:54 +00:00
|
|
|
};
|
2017-05-18 07:50:23 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgspluginlayerregistry.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|