Add in all of the changes for Cura Connect

CURA-4376
This commit is contained in:
Simon Edwards 2017-09-26 16:25:10 +02:00 committed by Ghostkeeper
parent 823807144f
commit 85efd9249c
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75
13 changed files with 1769 additions and 42 deletions

View file

@ -272,6 +272,28 @@ Cura.MachineAction
text: base.selectedPrinter ? base.selectedPrinter.ipAddress : ""
}
}
Label
{
width: parent.width
wrapMode: Text.WordWrap
text:{
// The property cluster size does not exist for older UM3 devices.
if(base.selectedPrinter.clusterSize == null || base.selectedPrinter.clusterSize == 1)
{
return "";
}
else if (base.selectedPrinter.clusterSize === 0)
{
return catalog.i18nc("@label", "Cura Connect: This printer is not set up to host a group of connected Ultimaker 3 printers.");
}
else
{
return catalog.i18nc("@label", "Cura Connect: This printer is set up to host a group of %1 connected Ultimaker 3 printers".arg(base.selectedPrinter.clusterSize));
}
}
}
Label
{
width: parent.width