Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2017-09-04 16:33:04 +0300
committerJaime van Kessel <nallath@gmail.com>2017-09-04 16:33:04 +0300
commitdd7ea80b6821ed4178e454512a7a26046729aab9 (patch)
treee096b407675abffb2bac3a413facda7bf8cf8b39 /cura/PrinterOutputDevice.py
parent182c2f9fb69e1b74b54aad06e6d83a3488ec3809 (diff)
Also added canPreheatBed option
Diffstat (limited to 'cura/PrinterOutputDevice.py')
-rw-r--r--cura/PrinterOutputDevice.py6
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):