mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add plugins for prepare and monitor stages
This commit is contained in:
parent
840e80a1fb
commit
84ba486d57
4 changed files with 32 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
# Copyright (c) 2017 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from UM.Stage import Stage
|
||||
|
||||
class CuraStage(Stage):
|
||||
|
|
0
plugins/MonitorStage/__init__.py
Normal file
0
plugins/MonitorStage/__init__.py
Normal file
11
plugins/PrepareStage/PrepareStage.py
Normal file
11
plugins/PrepareStage/PrepareStage.py
Normal file
|
@ -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 preparing model (slicing).
|
||||
class PrepareStage(CuraStage):
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
18
plugins/PrepareStage/__init__.py
Normal file
18
plugins/PrepareStage/__init__.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2017 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from . import PrepareStage
|
||||
|
||||
from UM.i18n import i18nCatalog
|
||||
i18n_catalog = i18nCatalog("cura")
|
||||
|
||||
def getMetaData():
|
||||
return {
|
||||
"stage": {
|
||||
"name": i18n_catalog.i18nc("@item:inmenu", "Prepare"),
|
||||
"weight": 0
|
||||
}
|
||||
}
|
||||
|
||||
def register(app):
|
||||
return { "stage": PrepareStage.PrepareStage() }
|
Loading…
Add table
Add a link
Reference in a new issue