QGIS/python/core/auto_additions/qgsmaplayer.py

20 lines
1.2 KiB
Python
Raw Normal View History

# The following has been generated automatically from src/core/qgsmaplayer.h
2019-03-09 22:55:35 +01:00
QgsMapLayer.LayerType = QgsMapLayerType
# monkey patching scoped based enum
2019-03-09 12:55:26 +01:00
QgsMapLayer.VectorLayer = QgsMapLayerType.VectorLayer
2019-03-09 14:13:01 +01:00
QgsMapLayer.VectorLayer.__doc__ = ""
2019-03-09 12:55:26 +01:00
QgsMapLayer.RasterLayer = QgsMapLayerType.RasterLayer
2019-03-09 14:13:01 +01:00
QgsMapLayer.RasterLayer.__doc__ = ""
2019-03-09 12:55:26 +01:00
QgsMapLayer.PluginLayer = QgsMapLayerType.PluginLayer
2019-03-09 14:13:01 +01:00
QgsMapLayer.PluginLayer.__doc__ = ""
2019-03-09 12:55:26 +01:00
QgsMapLayer.MeshLayer = QgsMapLayerType.MeshLayer
2019-03-09 14:13:01 +01:00
QgsMapLayer.MeshLayer.__doc__ = "Added in 3.2"
QgsMapLayerType.__doc__ = 'Types of layers that can be added to a map\n\n.. versionadded:: 3.8\n\n' + '* ``VectorLayer``: ' + QgsMapLayerType.VectorLayer.__doc__ + '\n' + '* ``RasterLayer``: ' + QgsMapLayerType.RasterLayer.__doc__ + '\n' + '* ``PluginLayer``: ' + QgsMapLayerType.PluginLayer.__doc__ + '\n' + '* ``MeshLayer``: ' + QgsMapLayerType.MeshLayer.__doc__
# --
QgsMapLayer.LayerFlag.baseClass = QgsMapLayer
QgsMapLayer.LayerFlags.baseClass = QgsMapLayer
LayerFlags = QgsMapLayer # dirty hack since SIP seems to introduce the flags in module
QgsMapLayer.StyleCategory.baseClass = QgsMapLayer
QgsMapLayer.StyleCategories.baseClass = QgsMapLayer
StyleCategories = QgsMapLayer # dirty hack since SIP seems to introduce the flags in module