2024-08-13 09:54:41 +08:00
|
|
|
import QtQuick
|
2024-08-13 20:06:10 +08:00
|
|
|
import QtQuick.Controls
|
2024-08-14 20:01:38 +08:00
|
|
|
import QtQuick.Layouts
|
2024-08-13 20:06:10 +08:00
|
|
|
import AntiClipSettings
|
2024-08-13 09:54:41 +08:00
|
|
|
|
2024-08-13 20:06:10 +08:00
|
|
|
ApplicationWindow {
|
2024-08-14 20:01:38 +08:00
|
|
|
width: 680
|
2024-08-13 09:54:41 +08:00
|
|
|
height: 480
|
|
|
|
visible: true
|
|
|
|
title: qsTr("Hello World")
|
2024-08-13 20:06:10 +08:00
|
|
|
|
2024-08-14 20:01:38 +08:00
|
|
|
header: ToolBar {
|
|
|
|
RowLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
Button {
|
|
|
|
text: "搜索设备"
|
|
|
|
}
|
|
|
|
Button {
|
|
|
|
text: "连接"
|
|
|
|
onClicked: App.open()
|
|
|
|
}
|
|
|
|
Button {
|
|
|
|
text: "开始"
|
|
|
|
onClicked: App.start()
|
|
|
|
}
|
|
|
|
Text {
|
|
|
|
Layout.alignment: Qt.AlignRight
|
|
|
|
text: qsTr("当前设备版本号: RD_T009_V02R001B001")
|
|
|
|
}
|
2024-08-13 20:06:10 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: deviceList
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
width: 250
|
|
|
|
color: "red"
|
|
|
|
}
|
|
|
|
|
|
|
|
DeviceView {
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.left: deviceList.right
|
|
|
|
anchors.right: parent.right
|
2024-08-14 20:01:38 +08:00
|
|
|
openDoorAreaEnabled: App.currentOpenDoorAreaEnabled
|
2024-08-13 20:06:10 +08:00
|
|
|
openDoorAreaPoints: App.currentOpenDoorAreaPoints
|
2024-08-14 20:01:38 +08:00
|
|
|
shieldedAreaEnabled: App.currentShieldedAreaEnabled
|
|
|
|
shieldedAreaPoints: App.currentShieldedAreaPoints
|
|
|
|
antiClipAreaEnabled: App.currentAntiClipAreaEnabled
|
|
|
|
antiClipAreaPoints: App.currentAntiClipAreaPoints
|
|
|
|
}
|
|
|
|
|
|
|
|
footer: RowLayout {
|
|
|
|
width: parent.width
|
|
|
|
Item {}
|
|
|
|
Button {
|
|
|
|
text: "数据采集"
|
|
|
|
}
|
|
|
|
Item {}
|
|
|
|
Button {
|
|
|
|
text: "升级"
|
|
|
|
}
|
|
|
|
Item {}
|
|
|
|
spacing: (parent.width - (2 * 100)) / 3
|
2024-08-13 20:06:10 +08:00
|
|
|
}
|
2024-08-13 09:54:41 +08:00
|
|
|
}
|