mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Add new Abstract machine stack type. This represents a type of printers (ultimaker_s3 etc).
These are created whenever a cloud printer of a new printer type is added. CURA-9277 Co-authored-by: casperlamboo <c.lamboo@ultimaker.com>
This commit is contained in:
parent
bf6422825b
commit
b82f1f4a8c
4 changed files with 88 additions and 8 deletions
16
cura/Settings/AbstractMachine.py
Normal file
16
cura/Settings/AbstractMachine.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from typing import List
|
||||
|
||||
from cura.Settings.GlobalStack import GlobalStack
|
||||
|
||||
|
||||
class AbstractMachine(GlobalStack):
|
||||
""" Behaves as a type of machine, represents multiple machines of the same type """
|
||||
|
||||
def __init__(self):
|
||||
super(self)
|
||||
self.setMetaDataEntry("type", "abstract_machine")
|
||||
|
||||
def getMachinesOfType(self) -> List[GlobalStack]:
|
||||
pass
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue