Browse Source

Scaffold monitor stage

ChrisTerBeke 7 years ago
parent
commit
a5b99bd862
2 changed files with 30 additions and 0 deletions
  1. 11 0
      plugins/MonitorStage/MonitorStage.py
  2. 19 0
      plugins/MonitorStage/__init__.py

+ 11 - 0
plugins/MonitorStage/MonitorStage.py

@@ -0,0 +1,11 @@
+# Copyright (c) 2017 Ultimaker B.V.
+# Cura is released under the terms of the LGPLv3 or higher.
+
+from cura.Stages.CuraStage import CuraStage
+
+
+##  Stage for monitoring a 3D printing while it's printing.
+class MonitorStage(CuraStage):
+
+    def __init__(self):
+        super().__init__()

+ 19 - 0
plugins/MonitorStage/__init__.py

@@ -0,0 +1,19 @@
+# Copyright (c) 2017 Ultimaker B.V.
+# Cura is released under the terms of the LGPLv3 or higher.
+
+from . import MonitorStage
+
+from UM.i18n import i18nCatalog
+i18n_catalog = i18nCatalog("cura")
+
+def getMetaData():
+    return {
+        "stage": {
+            "name": i18n_catalog.i18nc("@item:inmenu", "Monitor"),
+            "weight": 0,
+            "icon": ""
+        }
+    }
+
+def register(app):
+    return { "stage": MonitorStage.MonitorStage() }