diff options
author | Jaime van Kessel <nallath@gmail.com> | 2017-09-04 16:33:04 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2017-09-04 16:33:04 +0300 |
commit | dd7ea80b6821ed4178e454512a7a26046729aab9 (patch) | |
tree | e096b407675abffb2bac3a413facda7bf8cf8b39 /cura/PrinterOutputDevice.py | |
parent | 182c2f9fb69e1b74b54aad06e6d83a3488ec3809 (diff) |
Also added canPreheatBed option
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 64544d3d3f..ea00122105 100644 --- a/cura/PrinterOutputDevice.py +++ b/cura/PrinterOutputDevice.py @@ -73,6 +73,7 @@ class PrinterOutputDevice(QObject, OutputDevice): self._qml_context = None self._can_pause = True self._can_abort = True + self._can_pre_heat_bed = True def requestWrite(self, nodes, file_name = None, filter_by_machine = False, file_handler = None): raise NotImplementedError("requestWrite needs to be implemented") @@ -128,6 +129,11 @@ class PrinterOutputDevice(QObject, OutputDevice): # Signal to be emitted when some drastic change occurs in the remaining time (not when the time just passes on normally). preheatBedRemainingTimeChanged = pyqtSignal() + # Does the printer support pre-heating the bed at all + @pyqtProperty(bool, constant=True) + def canPreHeatBed(self): + return self._can_pre_heat_bed + # Does the printer support pause at all @pyqtProperty(bool, constant=True) def canPause(self): |