mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 10:06:07 +08:00
Merge branch 'master' of github.com:Ultimaker/Cura
This commit is contained in:
commit
c76a1043b0
@ -6,3 +6,6 @@ class MultiMaterialDecorator(SceneNodeDecorator):
|
|||||||
|
|
||||||
def isMultiMaterial(self):
|
def isMultiMaterial(self):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def __deepcopy__(self, memo):
|
||||||
|
return MultiMaterialDecorator()
|
@ -45,6 +45,7 @@ class SliceInfo(Extension):
|
|||||||
Preferences.getInstance().setValue("info/asked_send_slice_info", True)
|
Preferences.getInstance().setValue("info/asked_send_slice_info", True)
|
||||||
|
|
||||||
def _onWriteStarted(self, output_device):
|
def _onWriteStarted(self, output_device):
|
||||||
|
try:
|
||||||
if not Preferences.getInstance().getValue("info/send_slice_info"):
|
if not Preferences.getInstance().getValue("info/send_slice_info"):
|
||||||
Logger.log("d", "'info/send_slice_info' is turned off.")
|
Logger.log("d", "'info/send_slice_info' is turned off.")
|
||||||
return # Do nothing, user does not want to send data
|
return # Do nothing, user does not want to send data
|
||||||
@ -115,4 +116,8 @@ class SliceInfo(Extension):
|
|||||||
Logger.log("i", "Sent anonymous slice info to %s", self.info_url)
|
Logger.log("i", "Sent anonymous slice info to %s", self.info_url)
|
||||||
f.close()
|
f.close()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Logger.logException("e", e)
|
Logger.logException("e", "An exception occurred while trying to send slice information")
|
||||||
|
except:
|
||||||
|
# We really can't afford to have a mistake here, as this would break the sending of g-code to a device
|
||||||
|
# (Either saving or directly to a printer). The functionality of the slice data is not *that* important.
|
||||||
|
pass
|
@ -79,7 +79,6 @@ class UMOCheckupMachineAction(MachineAction):
|
|||||||
|
|
||||||
@pyqtProperty(bool, notify = onBedTestCompleted)
|
@pyqtProperty(bool, notify = onBedTestCompleted)
|
||||||
def bedTestCompleted(self):
|
def bedTestCompleted(self):
|
||||||
print("zomg?")
|
|
||||||
return self._bed_test_completed
|
return self._bed_test_completed
|
||||||
|
|
||||||
@pyqtProperty(bool, notify = onHotendTestCompleted)
|
@pyqtProperty(bool, notify = onHotendTestCompleted)
|
||||||
|
@ -51,7 +51,6 @@ Cura.MachineAction
|
|||||||
text: catalog.i18nc("@action:button","Start Printer Check");
|
text: catalog.i18nc("@action:button","Start Printer Check");
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
//checkupContent.visible = true
|
|
||||||
manager.startCheck()
|
manager.startCheck()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -157,6 +156,7 @@ Cura.MachineAction
|
|||||||
{
|
{
|
||||||
id: nozzleTempLabel
|
id: nozzleTempLabel
|
||||||
width: checkupMachineAction.leftRow
|
width: checkupMachineAction.leftRow
|
||||||
|
height: nozzleTempButton.height
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: endstopZLabel.bottom
|
anchors.top: endstopZLabel.bottom
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
@ -175,15 +175,12 @@ Cura.MachineAction
|
|||||||
{
|
{
|
||||||
id: nozzleTempButton
|
id: nozzleTempButton
|
||||||
width: checkupMachineAction.rightRow * 0.3
|
width: checkupMachineAction.rightRow * 0.3
|
||||||
height: nozzleTemp.height
|
height: childrenRect.height
|
||||||
anchors.top: nozzleTempLabel.top
|
anchors.top: nozzleTempLabel.top
|
||||||
anchors.left: bedTempStatus.right
|
anchors.left: bedTempStatus.right
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width/2
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width/2
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
height: nozzleTemp.height - 2
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
text: catalog.i18nc("@action:button","Start Heating")
|
text: catalog.i18nc("@action:button","Start Heating")
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
@ -207,10 +204,11 @@ Cura.MachineAction
|
|||||||
{
|
{
|
||||||
id: bedTempLabel
|
id: bedTempLabel
|
||||||
width: checkupMachineAction.leftRow
|
width: checkupMachineAction.leftRow
|
||||||
|
height: bedTempButton.height
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: nozzleTempLabel.bottom
|
anchors.top: nozzleTempLabel.bottom
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: catalog.i18nc("@label","bed temperature check:")
|
text: catalog.i18nc("@label","Bed temperature check:")
|
||||||
}
|
}
|
||||||
|
|
||||||
Label
|
Label
|
||||||
@ -226,15 +224,12 @@ Cura.MachineAction
|
|||||||
{
|
{
|
||||||
id: bedTempButton
|
id: bedTempButton
|
||||||
width: checkupMachineAction.rightRow * 0.3
|
width: checkupMachineAction.rightRow * 0.3
|
||||||
height: bedTemp.height
|
height: childrenRect.height
|
||||||
anchors.top: bedTempLabel.top
|
anchors.top: bedTempLabel.top
|
||||||
anchors.left: bedTempStatus.right
|
anchors.left: bedTempStatus.right
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width/2
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width/2
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
height: bedTemp.height - 2
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
text: catalog.i18nc("@action:button","Start Heating")
|
text: catalog.i18nc("@action:button","Start Heating")
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
|
@ -24,7 +24,7 @@ Rectangle
|
|||||||
return UM.Theme.getColor("status_offline")
|
return UM.Theme.getColor("status_offline")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing" || Cura.MachineManager.printerOutputDevices[0].jobState == "pre_print")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing" || Cura.MachineManager.printerOutputDevices[0].jobState == "pre_print")
|
||||||
return UM.Theme.getColor("status_busy")
|
return UM.Theme.getColor("status_busy")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready" || Cura.MachineManager.printerOutputDevices[0].jobState == "")
|
||||||
return UM.Theme.getColor("status_ready")
|
return UM.Theme.getColor("status_ready")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "paused")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "paused")
|
||||||
return UM.Theme.getColor("status_paused")
|
return UM.Theme.getColor("status_paused")
|
||||||
|
@ -103,7 +103,7 @@ Rectangle
|
|||||||
return UM.Theme.getIcon("tab_monitor")
|
return UM.Theme.getIcon("tab_monitor")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing" || Cura.MachineManager.printerOutputDevices[0].jobState == "pre_print")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing" || Cura.MachineManager.printerOutputDevices[0].jobState == "pre_print")
|
||||||
return UM.Theme.getIcon("tab_monitor_busy")
|
return UM.Theme.getIcon("tab_monitor_busy")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready" || Cura.MachineManager.printerOutputDevices[0].jobState == "")
|
||||||
return UM.Theme.getIcon("tab_monitor_connected")
|
return UM.Theme.getIcon("tab_monitor_connected")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "paused")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "paused")
|
||||||
return UM.Theme.getIcon("tab_monitor_paused")
|
return UM.Theme.getIcon("tab_monitor_paused")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user