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:
authorGhostkeeper <rubend@tutanota.com>2017-02-07 19:16:19 +0300
committerGhostkeeper <rubend@tutanota.com>2017-02-07 19:16:19 +0300
commitd30430381f5e37094aea9a4743861132e4675092 (patch)
treea5b0ebd1e29d46b2bc1784f44b276b5b8d7c5595 /cura/PrinterOutputDevice.py
parent57ec987cd9a350db4b08998695d26a9fcf3667ca (diff)
Add default implementations for preheatBed and cancelPreheatBed
It is a no-op implementation that gives a warning. I'd rather give an exception and have that handled by whatever calls it, but this is how the other methods here do it. Contributes to issue CURA-3161.
Diffstat (limited to 'cura/PrinterOutputDevice.py')
-rw-r--r--cura/PrinterOutputDevice.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py
index 56ae34b6f4..f7b5ccbe05 100644
--- a/cura/PrinterOutputDevice.py
+++ b/cura/PrinterOutputDevice.py
@@ -260,6 +260,23 @@ class PrinterOutputDevice(QObject, OutputDevice):
def _setTargetBedTemperature(self, temperature):
Logger.log("w", "_setTargetBedTemperature is not implemented by this output device")
+ ## Pre-heats the heated bed of the printer.
+ #
+ # \param temperature The temperature to heat the bed to, in degrees
+ # Celsius.
+ # \param duration How long the bed should stay warm, in seconds. Defaults
+ # to a quarter hour.
+ @pyqtSlot(float, float)
+ def preheatBed(self, temperature, duration):
+ Logger.log("w", "preheatBed is not implemented by this output device.")
+
+ ## Cancels pre-heating the heated bed of the printer.
+ #
+ # If the bed is not pre-heated, nothing happens.
+ @pyqtSlot()
+ def cancelPreheatBed(self):
+ Logger.log("w", "cancelPreheatBed is not implemented by this output device.")
+
## Protected setter for the current bed temperature.
# This simply sets the bed temperature, but ensures that a signal is emitted.
# /param temperature temperature of the bed.