mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Code style & switch to translation catalog
This commit is contained in:
parent
f17cc811c4
commit
d195c859a2
16 changed files with 496 additions and 317 deletions
|
@ -6,13 +6,14 @@ import QtQuick.Controls 1.1
|
|||
import QtQuick.Layouts 1.1
|
||||
import QtQuick.Window 2.1
|
||||
|
||||
import UM 1.0 as UM
|
||||
import UM 1.1 as UM
|
||||
|
||||
UM.Dialog {
|
||||
UM.Dialog
|
||||
{
|
||||
width: 500 * Screen.devicePixelRatio;
|
||||
height: 100 * Screen.devicePixelRatio;
|
||||
|
||||
title: "Print with USB"
|
||||
title: catalog.i18nc("@title:window", "Print with USB")
|
||||
|
||||
Column
|
||||
{
|
||||
|
@ -23,18 +24,20 @@ UM.Dialog {
|
|||
Text
|
||||
{
|
||||
//: USB Printing dialog label, %1 is head temperature
|
||||
text: qsTr("Extruder Temperature %1").arg(manager.extruderTemperature)
|
||||
text: catalog.i18nc("@label","Extruder Temperature %1").arg(manager.extruderTemperature)
|
||||
}
|
||||
Text
|
||||
{
|
||||
//: USB Printing dialog label, %1 is bed temperature
|
||||
text: qsTr("Bed Temperature %1").arg(manager.bedTemperature)
|
||||
text: catalog.i18nc("@label","Bed Temperature %1").arg(manager.bedTemperature)
|
||||
}
|
||||
Text
|
||||
{
|
||||
text: "" + manager.error
|
||||
}
|
||||
|
||||
UM.I18nCatalog{id: catalog; name:"cura"}
|
||||
|
||||
}
|
||||
|
||||
ProgressBar
|
||||
|
@ -50,16 +53,17 @@ UM.Dialog {
|
|||
}
|
||||
|
||||
rightButtons: [
|
||||
Button {
|
||||
Button
|
||||
{
|
||||
//: USB Printing dialog start print button
|
||||
text: qsTr("Print");
|
||||
text: catalog.i18nc("@action:button","Print");
|
||||
onClicked: { manager.startPrint() }
|
||||
enabled: manager.progress == 0 ? true : false
|
||||
},
|
||||
Button
|
||||
{
|
||||
//: USB Printing dialog cancel print button
|
||||
text: qsTr("Cancel");
|
||||
text: catalog.i18nc("@action:button","Cancel");
|
||||
onClicked: { manager.cancelPrint() }
|
||||
enabled: manager.progress == 0 ? false: true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue