Merge pull request 'feature/variable-name-hinzugefügt' (#12) from feature/variable-name-hinzugefügt into unstable
Reviewed-on: #12
This commit was merged in pull request #12.
This commit is contained in:
@@ -29,6 +29,7 @@ QgsCoordinateReferenceSystem: Type[Any]
|
||||
QgsPrintLayout: Type[Any]
|
||||
QgsLayoutItemMap: Type[Any]
|
||||
QgsLayoutItemLabel: Type[Any]
|
||||
QgsLayoutItemLegend: Type[Any]
|
||||
QgsLayoutPoint: Type[Any]
|
||||
QgsLayoutSize: Type[Any]
|
||||
QgsUnitTypes: Type[Any]
|
||||
@@ -58,6 +59,7 @@ try:
|
||||
QgsPrintLayout as _QgsPrintLayout,
|
||||
QgsLayoutItemMap as _QgsLayoutItemMap,
|
||||
QgsLayoutItemLabel as _QgsLayoutItemLabel,
|
||||
QgsLayoutItemLegend as _QgsLayoutItemLegend,
|
||||
QgsLayoutPoint as _QgsLayoutPoint,
|
||||
QgsLayoutSize as _QgsLayoutSize,
|
||||
QgsUnitTypes as _QgsUnitTypes,
|
||||
@@ -80,6 +82,7 @@ try:
|
||||
QgsPrintLayout = _QgsPrintLayout
|
||||
QgsLayoutItemMap = _QgsLayoutItemMap
|
||||
QgsLayoutItemLabel = _QgsLayoutItemLabel
|
||||
QgsLayoutItemLegend = _QgsLayoutItemLegend
|
||||
QgsLayoutPoint = _QgsLayoutPoint
|
||||
QgsLayoutSize = _QgsLayoutSize
|
||||
QgsUnitTypes = _QgsUnitTypes
|
||||
@@ -247,6 +250,61 @@ except Exception:
|
||||
def attemptResize(self, size: Any) -> None:
|
||||
pass
|
||||
|
||||
class _MockLegendRootGroup:
|
||||
def __init__(self) -> None:
|
||||
self.layers: list[Any] = []
|
||||
|
||||
def clear(self) -> None:
|
||||
self.layers = []
|
||||
|
||||
def addLayer(self, layer: Any) -> None:
|
||||
self.layers.append(layer)
|
||||
|
||||
class _MockLegendModel:
|
||||
def __init__(self) -> None:
|
||||
self._root_group = _MockLegendRootGroup()
|
||||
|
||||
def rootGroup(self) -> _MockLegendRootGroup:
|
||||
return self._root_group
|
||||
|
||||
class _MockQgsLayoutItemLegend:
|
||||
def __init__(self, layout: Any):
|
||||
self.layout = layout
|
||||
self._model = _MockLegendModel()
|
||||
|
||||
def setId(self, item_id: str) -> None:
|
||||
pass
|
||||
|
||||
def setObjectName(self, name: str) -> None:
|
||||
pass
|
||||
|
||||
def setLinkedMap(self, map_item: Any) -> None:
|
||||
pass
|
||||
|
||||
def setAutoUpdateModel(self, enabled: bool) -> None:
|
||||
pass
|
||||
|
||||
def setLegendFilterByMapEnabled(self, enabled: bool) -> None:
|
||||
pass
|
||||
|
||||
def setTitle(self, title: str) -> None:
|
||||
pass
|
||||
|
||||
def setReferencePoint(self, point: Any) -> None:
|
||||
pass
|
||||
|
||||
def attemptMove(self, point: Any) -> None:
|
||||
pass
|
||||
|
||||
def attemptResize(self, size: Any) -> None:
|
||||
pass
|
||||
|
||||
def model(self) -> _MockLegendModel:
|
||||
return self._model
|
||||
|
||||
def refresh(self) -> None:
|
||||
pass
|
||||
|
||||
class _MockQgsLayoutPoint:
|
||||
def __init__(self, x: float, y: float, unit: Any):
|
||||
self.x = x
|
||||
@@ -265,6 +323,7 @@ except Exception:
|
||||
QgsPrintLayout = _MockQgsPrintLayout
|
||||
QgsLayoutItemMap = _MockQgsLayoutItemMap
|
||||
QgsLayoutItemLabel = _MockQgsLayoutItemLabel
|
||||
QgsLayoutItemLegend = _MockQgsLayoutItemLegend
|
||||
QgsLayoutPoint = _MockQgsLayoutPoint
|
||||
QgsLayoutSize = _MockQgsLayoutSize
|
||||
QgsUnitTypes = _MockQgsUnitTypes
|
||||
|
||||
@@ -22,6 +22,7 @@ class SettingsLogic:
|
||||
"landkreis_user",
|
||||
"sachgebiet",
|
||||
"bezeichnung",
|
||||
"name",
|
||||
"verfahrensnummer",
|
||||
"gemeinden",
|
||||
"landkreise_proj",
|
||||
|
||||
@@ -32,6 +32,7 @@ class SettingsTab(QWidget):
|
||||
|
||||
self.project_fields = {
|
||||
"bezeichnung": "Bezeichnung:",
|
||||
"name": "Name:",
|
||||
"verfahrensnummer": "Verfahrensnummer:",
|
||||
"gemeinden": "Gemeinde(n):",
|
||||
"landkreise_proj": "Landkreis(e):",
|
||||
|
||||
Reference in New Issue
Block a user