mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
57 lines
2.6 KiB
Python
57 lines
2.6 KiB
Python
# The following has been generated automatically from src/core/layout/qgslayoutguidecollection.h
|
|
QgsLayoutGuideCollection.Roles = QgsLayoutGuideCollection.CustomRole
|
|
# monkey patching scoped based enum
|
|
QgsLayoutGuideCollection.OrientationRole = QgsLayoutGuideCollection.CustomRole.Orientation
|
|
QgsLayoutGuideCollection.Roles.OrientationRole = QgsLayoutGuideCollection.CustomRole.Orientation
|
|
QgsLayoutGuideCollection.OrientationRole.is_monkey_patched = True
|
|
QgsLayoutGuideCollection.OrientationRole.__doc__ = "Guide orientation role"
|
|
QgsLayoutGuideCollection.PositionRole = QgsLayoutGuideCollection.CustomRole.Position
|
|
QgsLayoutGuideCollection.Roles.PositionRole = QgsLayoutGuideCollection.CustomRole.Position
|
|
QgsLayoutGuideCollection.PositionRole.is_monkey_patched = True
|
|
QgsLayoutGuideCollection.PositionRole.__doc__ = "Guide position role"
|
|
QgsLayoutGuideCollection.UnitsRole = QgsLayoutGuideCollection.CustomRole.Units
|
|
QgsLayoutGuideCollection.Roles.UnitsRole = QgsLayoutGuideCollection.CustomRole.Units
|
|
QgsLayoutGuideCollection.UnitsRole.is_monkey_patched = True
|
|
QgsLayoutGuideCollection.UnitsRole.__doc__ = "Guide position units role"
|
|
QgsLayoutGuideCollection.PageRole = QgsLayoutGuideCollection.CustomRole.Page
|
|
QgsLayoutGuideCollection.Roles.PageRole = QgsLayoutGuideCollection.CustomRole.Page
|
|
QgsLayoutGuideCollection.PageRole.is_monkey_patched = True
|
|
QgsLayoutGuideCollection.PageRole.__doc__ = "Guide page role"
|
|
QgsLayoutGuideCollection.LayoutPositionRole = QgsLayoutGuideCollection.CustomRole.LayoutPosition
|
|
QgsLayoutGuideCollection.Roles.LayoutPositionRole = QgsLayoutGuideCollection.CustomRole.LayoutPosition
|
|
QgsLayoutGuideCollection.LayoutPositionRole.is_monkey_patched = True
|
|
QgsLayoutGuideCollection.LayoutPositionRole.__doc__ = "Guide position in layout coordinates"
|
|
QgsLayoutGuideCollection.CustomRole.__doc__ = """Custom model roles.
|
|
|
|
.. note::
|
|
|
|
Prior to QGIS 3.36 this was available as QgsLayoutGuideCollection.Roles
|
|
|
|
.. versionadded:: 3.36
|
|
|
|
* ``OrientationRole``: Guide orientation role
|
|
* ``PositionRole``: Guide position role
|
|
* ``UnitsRole``: Guide position units role
|
|
* ``PageRole``: Guide page role
|
|
* ``LayoutPositionRole``: Guide position in layout coordinates
|
|
|
|
"""
|
|
# --
|
|
QgsLayoutGuideCollection.CustomRole.baseClass = QgsLayoutGuideCollection
|
|
try:
|
|
QgsLayoutGuide.__attribute_docs__ = {'positionChanged': "Emitted when the guide's position is changed.\n"}
|
|
except NameError:
|
|
pass
|
|
try:
|
|
QgsLayoutGuide.__group__ = ['layout']
|
|
except NameError:
|
|
pass
|
|
try:
|
|
QgsLayoutGuideCollection.__group__ = ['layout']
|
|
except NameError:
|
|
pass
|
|
try:
|
|
QgsLayoutGuideProxyModel.__group__ = ['layout']
|
|
except NameError:
|
|
pass
|