Cura/plugins/USBPrinting/ControlWindow.qml
Arjen Hiemstra 63e8cf72a3 Add 'plugins/USBPrinting/' from commit 'b28ca0881a6c2564f5447476f7b21de5645c10bd'
git-subtree-dir: plugins/USBPrinting
git-subtree-mainline: 3823afd8cca1fe92b69082d51d0d50946b904e91
git-subtree-split: b28ca0881a6c2564f5447476f7b21de5645c10bd
2015-04-30 12:30:37 +02:00

55 lines
1.3 KiB
QML

import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
Rectangle
{
width: 300; height: 100
ColumnLayout
{
RowLayout
{
Text
{
text: "extruder temperature " + manager.extruderTemperature
}
Text
{
text: "bed temperature " + manager.bedTemperature
}
Text
{
text: "" + manager.error
}
}
RowLayout
{
Button
{
text: "Print"
onClicked: { manager.startPrint() }
enabled: manager.progress == 0 ? true : false
}
Button
{
text: "Cancel"
onClicked: { manager.cancelPrint() }
enabled: manager.progress == 0 ? false: true
}
}
ProgressBar
{
id: prog;
value: manager.progress
minimumValue: 0;
maximumValue: 100;
Layout.maximumWidth:parent.width
Layout.preferredWidth:230
Layout.preferredHeight:25
Layout.minimumWidth:230
Layout.minimumHeight:25
width: 230
height: 25
}
}
}