mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
72 lines
1.6 KiB
QML
72 lines
1.6 KiB
QML
// Copyright (c) 2015 Ultimaker B.V.
|
|
// Cura is released under the terms of the AGPLv3 or higher.
|
|
|
|
import QtQuick 2.1
|
|
import QtQuick.Controls 1.1
|
|
import QtQuick.Window 2.1
|
|
|
|
Rectangle
|
|
{
|
|
id: base;
|
|
|
|
width: 500 * Screen.devicePixelRatio;
|
|
height: 100 * Screen.devicePixelRatio;
|
|
|
|
color: palette.window;
|
|
|
|
signal close();
|
|
|
|
Column
|
|
{
|
|
anchors.fill: parent;
|
|
anchors.margins: 8 * Screen.devicePixelRatio;
|
|
Label
|
|
{
|
|
anchors {
|
|
left: parent.left;
|
|
right: parent.right;
|
|
}
|
|
|
|
text: {
|
|
if (manager.progress == 0)
|
|
{
|
|
//: Firmware update status label
|
|
return qsTr("Starting firmware update, this may take a while.")
|
|
}
|
|
else if (manager.progress > 99)
|
|
{
|
|
//: Firmware update status label
|
|
return qsTr("Firmware update completed.")
|
|
}
|
|
else
|
|
{
|
|
//: Firmware update status label
|
|
return qsTr("Updating firmware.")
|
|
}
|
|
}
|
|
|
|
wrapMode: Text.Wrap;
|
|
}
|
|
ProgressBar
|
|
{
|
|
id: prog;
|
|
value: manager.progress
|
|
minimumValue: 0;
|
|
maximumValue: 100;
|
|
anchors {
|
|
left: parent.left;
|
|
right: parent.right;
|
|
}
|
|
|
|
}
|
|
Button {
|
|
anchors.right: parent.right;
|
|
text: qsTr("Close");
|
|
onClicked: base.close();
|
|
}
|
|
}
|
|
|
|
SystemPalette {
|
|
id: palette;
|
|
}
|
|
}
|