mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 22:39:06 +08:00
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.
This commit is contained in:
parent
57ec987cd9
commit
d30430381f
@ -260,6 +260,23 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
|||||||
def _setTargetBedTemperature(self, temperature):
|
def _setTargetBedTemperature(self, temperature):
|
||||||
Logger.log("w", "_setTargetBedTemperature is not implemented by this output device")
|
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.
|
## Protected setter for the current bed temperature.
|
||||||
# This simply sets the bed temperature, but ensures that a signal is emitted.
|
# This simply sets the bed temperature, but ensures that a signal is emitted.
|
||||||
# /param temperature temperature of the bed.
|
# /param temperature temperature of the bed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user