mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-19 07:07:28 +08:00
Added camera image overlay when monitoring print
CURA-1036
This commit is contained in:
parent
3a46bb8d8a
commit
a735e92dfa
@ -16,7 +16,7 @@ UM.MainWindow
|
|||||||
//: Cura application window title
|
//: Cura application window title
|
||||||
title: catalog.i18nc("@title:window","Cura");
|
title: catalog.i18nc("@title:window","Cura");
|
||||||
viewportRect: Qt.rect(0, 0, (base.width - sidebar.width) / base.width, 1.0)
|
viewportRect: Qt.rect(0, 0, (base.width - sidebar.width) / base.width, 1.0)
|
||||||
|
property bool monitoringPrint: false
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: backgroundItem;
|
id: backgroundItem;
|
||||||
@ -531,11 +531,39 @@ UM.MainWindow
|
|||||||
bottom: parent.bottom;
|
bottom: parent.bottom;
|
||||||
right: parent.right;
|
right: parent.right;
|
||||||
}
|
}
|
||||||
|
onMonitoringPrintChanged: base.monitoringPrint = monitoringPrint
|
||||||
width: UM.Theme.getSize("sidebar").width;
|
width: UM.Theme.getSize("sidebar").width;
|
||||||
}
|
}
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
color: "black"
|
||||||
|
anchors
|
||||||
|
{
|
||||||
|
top: parent.top
|
||||||
|
bottom: parent.bottom
|
||||||
|
left:parent.left
|
||||||
|
right: sidebar.left
|
||||||
|
}
|
||||||
|
visible: base.monitoringPrint
|
||||||
|
opacity: 0.5
|
||||||
|
}
|
||||||
|
|
||||||
|
Image
|
||||||
|
{
|
||||||
|
id: cameraImage
|
||||||
|
width: 800
|
||||||
|
height: 600
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
anchors.horizontalCenterOffset: -(UM.Theme.getSize("sidebar").width/ 2)
|
||||||
|
visible: base.monitoringPrint
|
||||||
|
source: Cura.MachineManager.printerOutputDevices[0].cameraImage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
UM.PreferencesDialog
|
UM.PreferencesDialog
|
||||||
{
|
{
|
||||||
|
@ -314,7 +314,8 @@ Rectangle
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle
|
||||||
|
{
|
||||||
id: footerSeparator
|
id: footerSeparator
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: UM.Theme.getSize("sidebar_lining").height
|
height: UM.Theme.getSize("sidebar_lining").height
|
||||||
|
Loading…
x
Reference in New Issue
Block a user