diff options
author | Ghostkeeper <rubend@tutanota.com> | 2017-02-07 18:29:41 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2017-02-07 18:29:41 +0300 |
commit | 1a902b21bb8704dca2fea80a2199a8fe2c699a86 (patch) | |
tree | 0de0990966853ad84301c082d794de763ed77471 /cura/PrinterOutputDevice.py | |
parent | d705fb1d763e3f1065c7774cb4ed74d35927d3d4 (diff) |
Store default pre-heat time in central location
Its default is 900s or 15 minutes. QML now requests the time-out time and sends it on to the printer.
Contributes to issue CURA-3161.
Diffstat (limited to 'cura/PrinterOutputDevice.py')
-rw-r--r-- | cura/PrinterOutputDevice.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py index ed67bbb1ca..56ae34b6f4 100644 --- a/cura/PrinterOutputDevice.py +++ b/cura/PrinterOutputDevice.py @@ -45,6 +45,7 @@ class PrinterOutputDevice(QObject, OutputDevice): self._job_name = "" self._error_text = "" self._accepts_commands = True + self._preheat_bed_timeout = 900 #Default time-out for pre-heating the bed, in seconds. self._printer_state = "" self._printer_type = "unknown" @@ -199,6 +200,11 @@ class PrinterOutputDevice(QObject, OutputDevice): self._target_bed_temperature = temperature self.targetBedTemperatureChanged.emit() + ## + @pyqtProperty(int) + def preheatBedTimeout(self): + return self._preheat_bed_timeout + ## Time the print has been printing. # Note that timeTotal - timeElapsed should give time remaining. @pyqtProperty(float, notify = timeElapsedChanged) |