37 lines
951 B
Python
37 lines
951 B
Python
# SPDX-License: LGPL-2.1-or-later
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from Base.Metadata import export
|
|
|
|
from App.DocumentObject import DocumentObject
|
|
|
|
|
|
@export(
|
|
Include="Mod/TechDraw/App/DrawView.h",
|
|
Namespace="TechDraw",
|
|
)
|
|
class DrawView(DocumentObject):
|
|
"""
|
|
Feature for creating and manipulating Technical Drawing Views
|
|
|
|
Author: WandererFan (wandererfan@gmail.com)
|
|
License: LGPL-2.1-or-later
|
|
"""
|
|
|
|
def translateLabel(self) -> Any:
|
|
"""
|
|
translateLabel(translationContext, objectBaseName, objectUniqueName).
|
|
No return value. Replace the current label with a translated version where possible.
|
|
"""
|
|
...
|
|
|
|
def getScale(self) -> Any:
|
|
"""
|
|
float scale = getScale(). Returns the correct scale for this view. Handles whether to
|
|
use this view's scale property or a parent's view (as in a projection group).
|
|
"""
|
|
...
|