Cura/resources/qml/WizardPages/UpgradeFirmware.qml
Tamara Hogenhout 28aec71c02 adds/adapts translation context markers
all nescessary in folder: Cura/resources

Contributes to: issue CURA-116
2015-09-08 16:30:10 +02:00

70 lines
1.4 KiB
QML

// Copyright (c) 2015 Ultimaker B.V.
// Cura is released under the terms of the AGPLv3 or higher.
import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
import QtQuick.Window 2.1
import UM 1.0 as UM
Column
{
id: wizardPage
property string title
anchors.fill: parent;
UM.I18nCatalog { id: catalog; name:"cura"}
Label
{
text: parent.title
font.pointSize: 18;
}
ScrollView
{
height: parent.height - 50
width: parent.width
ListView
{
id: machineList;
model: UM.USBPrinterManager.connectedPrinterList
delegate:Row
{
id: derp
Text
{
id: text_area
text: model.name
}
Button
{
text: catalog.i18nc("@action:button","Update")
onClicked:
{
if(!UM.USBPrinterManager.updateFirmwareBySerial(text_area.text))
{
status_text.text = catalog.i18nc("@info:status","ERROR")
}
}
}
}
}
}
Label
{
id: status_text
text: ""
}
Item
{
Layout.fillWidth: true;
Layout.fillHeight: true;
}
}