From 00a5127b192325c99d5f2e5e23850cebade54e8c Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 17 Nov 2017 17:00:09 +0100 Subject: [PATCH] Added home head & bed CL-541 --- cura/PrinterOutput/PrinterOutputController.py | 6 ++++++ cura/PrinterOutput/PrinterOutputModel.py | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/cura/PrinterOutput/PrinterOutputController.py b/cura/PrinterOutput/PrinterOutputController.py index be077dd352..0625a8ef9f 100644 --- a/cura/PrinterOutput/PrinterOutputController.py +++ b/cura/PrinterOutput/PrinterOutputController.py @@ -30,4 +30,10 @@ class PrinterOutputController: pass def moveHead(self, printer: "PrinterOutputModel", x, y, z, speed): + pass + + def homeBed(self, printer): + pass + + def homeHead(self, printer): pass \ No newline at end of file diff --git a/cura/PrinterOutput/PrinterOutputModel.py b/cura/PrinterOutput/PrinterOutputModel.py index 407a433bb4..ab8ca83ec6 100644 --- a/cura/PrinterOutput/PrinterOutputModel.py +++ b/cura/PrinterOutput/PrinterOutputModel.py @@ -40,6 +40,14 @@ class PrinterOutputModel(QObject): self._can_pre_heat_bed = True self._can_control_manually = True + @pyqtSlot() + def homeHead(self): + self._controller.homeHead(self) + + @pyqtSlot() + def homeBed(self): + self._controller.homeBed(self) + @pyqtProperty("QVariantList", constant = True) def extruders(self): return self._extruders