123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- // 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;
- }
- }
|