QGIS/python/PyQt6/gui/auto_additions/qgsadvanceddigitizingdockwidget.py

28 lines
12 KiB
Python

# The following has been generated automatically from src/gui/qgsadvanceddigitizingdockwidget.h
QgsAdvancedDigitizingDockWidget.AbsoluteAngle = QgsAdvancedDigitizingDockWidget.CadCapacity.AbsoluteAngle
QgsAdvancedDigitizingDockWidget.RelativeAngle = QgsAdvancedDigitizingDockWidget.CadCapacity.RelativeAngle
QgsAdvancedDigitizingDockWidget.RelativeCoordinates = QgsAdvancedDigitizingDockWidget.CadCapacity.RelativeCoordinates
QgsAdvancedDigitizingDockWidget.Distance = QgsAdvancedDigitizingDockWidget.CadCapacity.Distance
QgsAdvancedDigitizingDockWidget.CadCapacities = lambda flags=0: QgsAdvancedDigitizingDockWidget.CadCapacity(flags)
QgsAdvancedDigitizingDockWidget.CadCapacities.baseClass = QgsAdvancedDigitizingDockWidget
CadCapacities = QgsAdvancedDigitizingDockWidget # dirty hack since SIP seems to introduce the flags in module
QgsAdvancedDigitizingDockWidget.ReturnPressed = QgsAdvancedDigitizingDockWidget.WidgetSetMode.ReturnPressed
QgsAdvancedDigitizingDockWidget.CadConstraint.NoLock = QgsAdvancedDigitizingDockWidget.CadConstraint.LockMode.NoLock
QgsAdvancedDigitizingDockWidget.CadConstraint.SoftLock = QgsAdvancedDigitizingDockWidget.CadConstraint.LockMode.SoftLock
QgsAdvancedDigitizingDockWidget.CadConstraint.HardLock = QgsAdvancedDigitizingDockWidget.CadConstraint.LockMode.HardLock
from enum import Enum
def _force_int(v): return int(v.value) if isinstance(v, Enum) else v
QgsAdvancedDigitizingDockWidget.CadCapacity.__bool__ = lambda flag: bool(_force_int(flag))
QgsAdvancedDigitizingDockWidget.CadCapacity.__eq__ = lambda flag1, flag2: _force_int(flag1) == _force_int(flag2)
QgsAdvancedDigitizingDockWidget.CadCapacity.__and__ = lambda flag1, flag2: _force_int(flag1) & _force_int(flag2)
QgsAdvancedDigitizingDockWidget.CadCapacity.__or__ = lambda flag1, flag2: QgsAdvancedDigitizingDockWidget.CadCapacity(_force_int(flag1) | _force_int(flag2))
try:
QgsAdvancedDigitizingDockWidget.__attribute_docs__ = {'pushWarning': 'Push a warning\n\n:param message: An informative message\n', 'popWarning': 'Remove any previously emitted warnings (if any)\n', 'pointChangedV2': 'Sometimes a constraint may change the current point out of a mouse event. This happens normally\nwhen a constraint is toggled.\n\n:param point: The last known digitizing point. Can be used to emulate a mouse event.\n\n.. versionadded:: 3.22\n', 'pointChanged': 'Sometimes a constraint may change the current point out of a mouse event. This happens normally\nwhen a constraint is toggled.\n\n:param point: The last known digitizing point. Can be used to emulate a mouse event.\n\n.. deprecated:: 3.22\n\n No longer used, will be removed in QGIS 4.0. Use pointChangedV2 instead.\n', 'cadEnabledChanged': 'Emitted whenever CAD is enabled or disabled\n\n:param enabled: Whether CAD is enabled or not\n\n.. note::\n\n unstable API (will likely change).\n\n.. versionadded:: 3.8\n', 'valueXChanged': 'Emitted whenever the X ``value`` changes (either the mouse moved, or the user changed the input).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'valueYChanged': 'Emitted whenever the Y ``value`` changes (either the mouse moved, or the user changed the input).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'valueZChanged': 'Emitted whenever the Z ``value`` changes (either the mouse moved, or the user changed the input).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.22\n', 'valueMChanged': 'Emitted whenever the M ``value`` changes (either the mouse moved, or the user changed the input).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.22\n', 'valueAngleChanged': 'Emitted whenever the angle ``value`` changes (either the mouse moved, or the user changed the input).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'valueDistanceChanged': 'Emitted whenever the distance ``value`` changes (either the mouse moved, or the user changed the input).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'valueBearingChanged': 'Emitted whenever the bearing ``value`` changes.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.32\n', 'lockXChanged': 'Emitted whenever the X parameter is ``locked``.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'lockYChanged': 'Emitted whenever the Y parameter is ``locked``.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'lockZChanged': 'Emitted whenever the Z parameter is ``locked``.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.22\n', 'lockMChanged': 'Emitted whenever the M parameter is ``locked``.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.22\n', 'lockAngleChanged': 'Emitted whenever the angle parameter is ``locked``.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'lockDistanceChanged': 'Emitted whenever the distance parameter is ``locked``.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'relativeXChanged': 'Emitted whenever the X parameter is toggled between absolute and relative.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param relative: Whether the X parameter is relative or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'relativeYChanged': 'Emitted whenever the Y parameter is toggled between absolute and relative.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param relative: Whether the Y parameter is relative or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'relativeZChanged': 'Emitted whenever the Z parameter is toggled between absolute and relative.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param relative: Whether the Z parameter is relative or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.22\n', 'relativeMChanged': 'Emitted whenever the M parameter is toggled between absolute and relative.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param relative: Whether the M parameter is relative or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.22\n', 'relativeAngleChanged': 'Emitted whenever the angleX parameter is toggled between absolute and relative.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param relative: Whether the angle parameter is relative or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'softLockLineExtensionChanged': 'Emitted whenever the soft line extension parameter is ``locked``.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.26\n', 'softLockXyChanged': 'Emitted whenever the soft x/y extension parameter is ``locked``.\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.26\n', 'enabledChangedX': 'Emitted whenever the X field is enabled or disabled. Depending on the context, some parameters\ndo not make sense (e.g. you need a previous point to define a distance).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param enabled: Whether the X parameter is enabled or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'enabledChangedY': 'Emitted whenever the Y field is enabled or disabled. Depending on the context, some parameters\ndo not make sense (e.g. you need a previous point to define a distance).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param enabled: Whether the Y parameter is enabled or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'enabledChangedZ': 'Emitted whenever the Z field is enabled or disabled. Depending on the context, some parameters\ndo not make sense (e.g. you need a previous point to define a distance).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param enabled: Whether the Z parameter is enabled or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.22\n', 'enabledChangedM': 'Emitted whenever the M field is enabled or disabled. Depending on the context, some parameters\ndo not make sense (e.g. you need a previous point to define a distance).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param enabled: Whether the M parameter is enabled or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.22\n', 'enabledChangedAngle': 'Emitted whenever the angle field is enabled or disabled. Depending on the context, some parameters\ndo not make sense (e.g. you need a previous point to define a distance).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param enabled: Whether the angle parameter is enabled or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'enabledChangedDistance': 'Emitted whenever the distance field is enabled or disabled. Depending on the context, some parameters\ndo not make sense (e.g. you need a previous point to define a distance).\nCould be used by widgets that must reflect the current advanced digitizing state.\n\n:param enabled: Whether the distance parameter is enabled or not.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'focusOnXRequested': 'Emitted whenever the X field should get the focus using the shortcuts (X).\nCould be used by widgets to capture the focus when a field is being edited.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'focusOnYRequested': 'Emitted whenever the Y field should get the focus using the shortcuts (Y).\nCould be used by widgets to capture the focus when a field is being edited.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'focusOnZRequested': 'Emitted whenever the Z field should get the focus using the shortcuts (Z).\nCould be used by widgets to capture the focus when a field is being edited.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.22\n', 'focusOnMRequested': 'Emitted whenever the M field should get the focus using the shortcuts (M).\nCould be used by widgets to capture the focus when a field is being edited.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.22\n', 'focusOnAngleRequested': 'Emitted whenever the angle field should get the focus using the shortcuts (A).\nCould be used by widgets to capture the focus when a field is being edited.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'focusOnDistanceRequested': 'Emitted whenever the distance field should get the focus using the shortcuts (D).\nCould be used by widgets to capture the focus when a field is being edited.\n\n.. note::\n\n unstable API (will likely change)\n\n.. versionadded:: 3.8\n', 'valueCommonAngleSnappingChanged': 'Emitted whenever the snapping to common angle option changes, angle = 0 means that the functionality is disabled.\n\n.. versionadded:: 3.32\n'}
except NameError:
pass
QgsAdvancedDigitizingDockWidget.CadConstraint.removeSuffix = staticmethod(QgsAdvancedDigitizingDockWidget.CadConstraint.removeSuffix)