|
@@ -17,6 +17,8 @@ Cura.MachineAction
|
|
|
property int rightRow: checkupMachineAction.width * 0.60
|
|
|
property bool heatupHotendStarted: false
|
|
|
property bool heatupBedStarted: false
|
|
|
+ property bool usbConnected: Cura.USBPrinterManager.connectedPrinterList.rowCount() > 0
|
|
|
+
|
|
|
UM.I18nCatalog { id: catalog; name:"cura"}
|
|
|
Label
|
|
|
{
|
|
@@ -96,7 +98,7 @@ Cura.MachineAction
|
|
|
anchors.left: connectionLabel.right
|
|
|
anchors.top: parent.top
|
|
|
wrapMode: Text.WordWrap
|
|
|
- text: Cura.USBPrinterManager.connectedPrinterList.rowCount() > 0 ? catalog.i18nc("@info:status","Connected"): catalog.i18nc("@info:status","Not connected")
|
|
|
+ text: checkupMachineAction.usbConnected ? catalog.i18nc("@info:status","Connected"): catalog.i18nc("@info:status","Not connected")
|
|
|
}
|
|
|
//////////////////////////////////////////////////////////
|
|
|
Label
|
|
@@ -107,6 +109,7 @@ Cura.MachineAction
|
|
|
anchors.top: connectionLabel.bottom
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: catalog.i18nc("@label","Min endstop X: ")
|
|
|
+ visible: checkupMachineAction.usbConnected
|
|
|
}
|
|
|
Label
|
|
|
{
|
|
@@ -116,6 +119,7 @@ Cura.MachineAction
|
|
|
anchors.top: connectionLabel.bottom
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: manager.xMinEndstopTestCompleted ? catalog.i18nc("@info:status","Works") : catalog.i18nc("@info:status","Not checked")
|
|
|
+ visible: checkupMachineAction.usbConnected
|
|
|
}
|
|
|
//////////////////////////////////////////////////////////////
|
|
|
Label
|
|
@@ -126,6 +130,7 @@ Cura.MachineAction
|
|
|
anchors.top: endstopXLabel.bottom
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: catalog.i18nc("@label","Min endstop Y: ")
|
|
|
+ visible: checkupMachineAction.usbConnected
|
|
|
}
|
|
|
Label
|
|
|
{
|
|
@@ -135,6 +140,7 @@ Cura.MachineAction
|
|
|
anchors.top: endstopXLabel.bottom
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: manager.yMinEndstopTestCompleted ? catalog.i18nc("@info:status","Works") : catalog.i18nc("@info:status","Not checked")
|
|
|
+ visible: checkupMachineAction.usbConnected
|
|
|
}
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
Label
|
|
@@ -145,6 +151,7 @@ Cura.MachineAction
|
|
|
anchors.top: endstopYLabel.bottom
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: catalog.i18nc("@label","Min endstop Z: ")
|
|
|
+ visible: checkupMachineAction.usbConnected
|
|
|
}
|
|
|
Label
|
|
|
{
|
|
@@ -154,6 +161,7 @@ Cura.MachineAction
|
|
|
anchors.top: endstopYLabel.bottom
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: manager.zMinEndstopTestCompleted ? catalog.i18nc("@info:status","Works") : catalog.i18nc("@info:status","Not checked")
|
|
|
+ visible: checkupMachineAction.usbConnected
|
|
|
}
|
|
|
////////////////////////////////////////////////////////////
|
|
|
Label
|
|
@@ -165,6 +173,7 @@ Cura.MachineAction
|
|
|
anchors.top: endstopZLabel.bottom
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: catalog.i18nc("@label","Nozzle temperature check: ")
|
|
|
+ visible: checkupMachineAction.usbConnected
|
|
|
}
|
|
|
Label
|
|
|
{
|
|
@@ -174,6 +183,7 @@ Cura.MachineAction
|
|
|
anchors.left: nozzleTempLabel.right
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: catalog.i18nc("@info:status","Not checked")
|
|
|
+ visible: checkupMachineAction.usbConnected
|
|
|
}
|
|
|
Item
|
|
|
{
|
|
@@ -183,6 +193,7 @@ Cura.MachineAction
|
|
|
anchors.top: nozzleTempLabel.top
|
|
|
anchors.left: bedTempStatus.right
|
|
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width/2
|
|
|
+ visible: checkupMachineAction.usbConnected
|
|
|
Button
|
|
|
{
|
|
|
text: checkupMachineAction.heatupHotendStarted ? catalog.i18nc("@action:button","Stop Heating") : catalog.i18nc("@action:button","Start Heating")
|
|
@@ -211,6 +222,7 @@ Cura.MachineAction
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: manager.hotendTemperature + "°C"
|
|
|
font.bold: true
|
|
|
+ visible: checkupMachineAction.usbConnected
|
|
|
}
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
Label
|
|
@@ -222,6 +234,7 @@ Cura.MachineAction
|
|
|
anchors.top: nozzleTempLabel.bottom
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: catalog.i18nc("@label","Bed temperature check:")
|
|
|
+ visible: checkupMachineAction.usbConnected && manager.hasHeatedBed
|
|
|
}
|
|
|
|
|
|
Label
|
|
@@ -232,6 +245,7 @@ Cura.MachineAction
|
|
|
anchors.left: bedTempLabel.right
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: manager.bedTestCompleted ? catalog.i18nc("@info:status","Not checked"): catalog.i18nc("@info:status","Checked")
|
|
|
+ visible: checkupMachineAction.usbConnected && manager.hasHeatedBed
|
|
|
}
|
|
|
Item
|
|
|
{
|
|
@@ -241,6 +255,7 @@ Cura.MachineAction
|
|
|
anchors.top: bedTempLabel.top
|
|
|
anchors.left: bedTempStatus.right
|
|
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width/2
|
|
|
+ visible: checkupMachineAction.usbConnected && manager.hasHeatedBed
|
|
|
Button
|
|
|
{
|
|
|
text: checkupMachineAction.heatupBedStarted ?catalog.i18nc("@action:button","Stop Heating") : catalog.i18nc("@action:button","Start Heating")
|
|
@@ -268,6 +283,7 @@ Cura.MachineAction
|
|
|
wrapMode: Text.WordWrap
|
|
|
text: manager.bedTemperature + "°C"
|
|
|
font.bold: true
|
|
|
+ visible: checkupMachineAction.usbConnected && manager.hasHeatedBed
|
|
|
}
|
|
|
Label
|
|
|
{
|