File: WorkspaceReader.py

package info (click to toggle)
uranium 5.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,304 kB
  • sloc: python: 31,765; sh: 132; makefile: 12
file content (23 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) 2016 Ultimaker B.V.
# Uranium is released under the terms of the LGPLv3 or higher.

from UM.FileHandler.FileReader import FileReader
from typing import Optional, Union, Tuple, List, Dict, Any

from UM.Scene.SceneNode import SceneNode


class WorkspaceReader(FileReader):
    def __init__(self) -> None:
        super().__init__()
        self._workspace_name = None  # type: Optional[str]

    ##  Read an entire workspace
    def read(self, file_name: str) -> Union[Tuple[List[SceneNode], Dict[str, Dict[str, Any]]], List[SceneNode]]:
        pass

    def workspaceName(self) -> Optional[str]:
        return self._workspace_name

    def setWorkspaceName(self, workspace_name: str) -> None:
        self._workspace_name = workspace_name