12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- // Copyright (c) 2015 Ultimaker B.V.
- // Cura is released under the terms of the AGPLv3 or higher.
- import QtQuick 2.2
- import QtQuick.Window 2.2
- import QtQuick.Controls 1.2
- import UM 1.0 as UM
- UM.Dialog
- {
- id: base;
- width: 500 * Screen.devicePixelRatio;
- height: 100 * Screen.devicePixelRatio;
- visible: true;
- modality: Qt.ApplicationModal;
- title: "Firmware Update";
- Column
- {
- anchors.fill: parent;
- Text
- {
- 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;
- }
- }
-
- SystemPalette {
- id: palette;
- }
- }
- rightButtons: [
- Button {
- text: "Close";
- enabled: manager.progress >= 100;
- onClicked: base.visible = false;
- }
- ]
- }
|