mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -04:00
36 lines
3.4 KiB
Python
36 lines
3.4 KiB
Python
# The following has been generated automatically from src/core/layout/qgslayoutitemmap.h
|
|
QgsLayoutItemMap.Fixed = QgsLayoutItemMap.AtlasScalingMode.Fixed
|
|
QgsLayoutItemMap.Predefined = QgsLayoutItemMap.AtlasScalingMode.Predefined
|
|
QgsLayoutItemMap.Auto = QgsLayoutItemMap.AtlasScalingMode.Auto
|
|
QgsLayoutItemMap.ShowPartialLabels = QgsLayoutItemMap.MapItemFlag.ShowPartialLabels
|
|
QgsLayoutItemMap.ShowUnplacedLabels = QgsLayoutItemMap.MapItemFlag.ShowUnplacedLabels
|
|
QgsLayoutItemMap.MapItemFlags = lambda flags=0: QgsLayoutItemMap.MapItemFlag(flags)
|
|
from enum import Enum
|
|
|
|
|
|
def _force_int(v): return int(v.value) if isinstance(v, Enum) else v
|
|
|
|
|
|
QgsLayoutItemMap.MapItemFlag.__bool__ = lambda flag: bool(_force_int(flag))
|
|
QgsLayoutItemMap.MapItemFlag.__eq__ = lambda flag1, flag2: _force_int(flag1) == _force_int(flag2)
|
|
QgsLayoutItemMap.MapItemFlag.__and__ = lambda flag1, flag2: _force_int(flag1) & _force_int(flag2)
|
|
QgsLayoutItemMap.MapItemFlag.__or__ = lambda flag1, flag2: QgsLayoutItemMap.MapItemFlag(_force_int(flag1) | _force_int(flag2))
|
|
try:
|
|
QgsLayoutItemMapAtlasClippingSettings.__attribute_docs__ = {'changed': 'Emitted when the atlas clipping settings are changed.\n'}
|
|
QgsLayoutItemMapAtlasClippingSettings.__group__ = ['layout']
|
|
except (NameError, AttributeError):
|
|
pass
|
|
try:
|
|
QgsLayoutItemMapItemClipPathSettings.__attribute_docs__ = {'changed': 'Emitted when the item clipping settings are changed.\n'}
|
|
QgsLayoutItemMapItemClipPathSettings.__group__ = ['layout']
|
|
except (NameError, AttributeError):
|
|
pass
|
|
try:
|
|
QgsLayoutItemMap.__attribute_docs__ = {'extentChanged': "Emitted when the map's extent changes.\n\n.. seealso:: :py:func:`setExtent`\n\n.. seealso:: :py:func:`extent`\n", 'mapRotationChanged': "Emitted when the map's rotation changes.\n\n.. seealso:: :py:func:`setMapRotation`\n\n.. seealso:: :py:func:`mapRotation`\n", 'preparedForAtlas': 'Emitted when the map has been prepared for atlas rendering, just before actual rendering\n', 'layerStyleOverridesChanged': 'Emitted when layer style overrides are changed... a means to let\nassociated legend items know they should update\n', 'themeChanged': "Emitted when the map's associated ``theme`` is changed.\n\n.. note::\n\n This signal is not emitted when the definition of the theme changes, only the map\n is linked to a different theme then it previously was.\n\n.. versionadded:: 3.14\n", 'crsChanged': "Emitted when the map's coordinate reference system is changed.\n\n.. versionadded:: 3.18\n", 'previewRefreshed': "Emitted whenever the item's map preview has been refreshed.\n\n.. versionadded:: 3.20\n"}
|
|
QgsLayoutItemMap.create = staticmethod(QgsLayoutItemMap.create)
|
|
QgsLayoutItemMap.__overridden_methods__ = ['type', 'icon', 'itemFlags', 'displayName', 'paint', 'numberExportLayers', 'startLayeredExport', 'stopLayeredExport', 'nextExportPart', 'exportLayerBehavior', 'exportLayerDetails', 'setFrameStrokeWidth', 'moveContent', 'setMoveContentPreviewOffset', 'zoomContent', 'requiresRasterization', 'containsAdvancedEffects', 'createExpressionContext', 'finalizeRestoreFromXml', 'accept', 'estimatedFrameBleed', 'draw', 'writePropertiesToElement', 'readPropertiesFromElement', 'framePath', 'boundingRect', 'refresh', 'invalidateCache', 'refreshDataDefinedProperty']
|
|
QgsLayoutItemMap.__signal_arguments__ = {'mapRotationChanged': ['newRotation: float'], 'themeChanged': ['theme: str']}
|
|
QgsLayoutItemMap.__group__ = ['layout']
|
|
except (NameError, AttributeError):
|
|
pass
|