QGIS API Documentation  2.0.1-Dufour
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
QgsPluginLayerType Class Reference

class for creating plugin specific layers More...

#include <qgspluginlayerregistry.h>

Public Member Functions

 QgsPluginLayerType (QString name)
virtual ~QgsPluginLayerType ()
QString name ()
virtual QgsPluginLayercreateLayer ()
 return new layer of this type.
virtual bool showLayerProperties (QgsPluginLayer *layer)
 show plugin layer properties dialog.

Protected Attributes

QString mName

Detailed Description

class for creating plugin specific layers

added in v1.5

Definition at line 32 of file qgspluginlayerregistry.h.

Constructor & Destructor Documentation

QgsPluginLayerType::QgsPluginLayerType ( QString  name)

Definition at line 24 of file qgspluginlayerregistry.cpp.

QgsPluginLayerType::~QgsPluginLayerType ( )

Definition at line 29 of file qgspluginlayerregistry.cpp.

Member Function Documentation

QgsPluginLayer * QgsPluginLayerType::createLayer ( )

return new layer of this type.

Return NULL on error

Definition at line 38 of file qgspluginlayerregistry.cpp.

Referenced by QgsPluginLayerRegistry::createLayer().

QString QgsPluginLayerType::name ( )

Definition at line 33 of file qgspluginlayerregistry.cpp.

References mName.

Referenced by QgsPluginLayerRegistry::addPluginLayerType().

bool QgsPluginLayerType::showLayerProperties ( QgsPluginLayer layer)

show plugin layer properties dialog.

Return false if the dialog cannot be shown.

Definition at line 43 of file qgspluginlayerregistry.cpp.

Member Data Documentation

QString QgsPluginLayerType::mName

Definition at line 48 of file qgspluginlayerregistry.h.

Referenced by name().

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