ClusterOutputController.py 876 B

123456789101112131415161718192021
  1. # Copyright (c) 2019 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from cura.PrinterOutput.Models.PrintJobOutputModel import PrintJobOutputModel
  4. from cura.PrinterOutput.PrinterOutputController import PrinterOutputController
  5. from cura.PrinterOutput.PrinterOutputDevice import PrinterOutputDevice
  6. class ClusterOutputController(PrinterOutputController):
  7. def __init__(self, output_device: PrinterOutputDevice) -> None:
  8. super().__init__(output_device)
  9. self.can_pause = True
  10. self.can_abort = True
  11. self.can_pre_heat_bed = False
  12. self.can_pre_heat_hotends = False
  13. self.can_send_raw_gcode = False
  14. self.can_control_manually = False
  15. self.can_update_firmware = False
  16. def setJobState(self, job: PrintJobOutputModel, state: str):
  17. self._output_device.setJobState(job.key, state)