From 623596ca59de0a117842d50d2b8649003251b0f2 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 13 Apr 2016 13:45:07 +0200 Subject: [PATCH] Added isConnecting CURA-1339 --- cura/PrinterOutputDevice.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py index ce236ed620..d9f119bf83 100644 --- a/cura/PrinterOutputDevice.py +++ b/cura/PrinterOutputDevice.py @@ -22,6 +22,7 @@ class PrinterOutputDevice(OutputDevice, QObject): self._head_y = 0 self._head_z = 0 self._connected = False + self._connecting = False def requestWrite(self, node, file_name = None, filter_by_machine = False): raise NotImplementedError("requestWrite needs to be implemented") @@ -38,6 +39,7 @@ class PrinterOutputDevice(OutputDevice, QObject): headPositionChanged = pyqtSignal() conectedChanged = pyqtSignal() + connectingChanged = pyqtSignal() ## Get the bed temperature of the bed (if any) # This function is "final" (do not re-implement) @@ -107,6 +109,10 @@ class PrinterOutputDevice(OutputDevice, QObject): def connected(self): return self._connected + @pyqtProperty(bool, notify = connectingChanged) + def isConnecting(self): + return self._connecting + ## Ensure that close gets called when object is destroyed def __del__(self): self.close()