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:
joeydelarago 2022-08-19 13:53:43 +02:00
parent bf6422825b
commit b82f1f4a8c
4 changed files with 88 additions and 8 deletions

View 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