1 Star 0 Fork 0

AdrianW / SDMonitor_GUI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
SDGUIForm.ui.qml 3.03 KB
一键复制 编辑 原始数据 按行查看 历史
AdrianW 提交于 2018-07-27 09:56 . Init Files
import QtQuick 2.4
import QtQuick.Controls 2.2
import "buildview"
Item {
id: item1
width: 600
height: 400
OfflineBaiduMap {
id: sdoffmap
width: parent.width + 20
height: parent.height + 20
}
BuildView {
id: buildView
objectName: "objsdbuildview"
width: parent.width + 20
height: parent.height + 20
visible: false
}
Connections {
target: buildView
onUsrBuildClicked: {
buildView.data[1].clearMapIcon()
SDController.getFloorDevice(btype, bstrIndex)
}
}
Connections {
target: SDController
onSdEvent: {
buildView.data[1].deviceEvent(isn, event, islt)
if(!islt)
SDController.updateSDEmgCntInfo(isn ,event)
}
onSdInit: {
buildView.data[1].createObject(devtype, sdisn, ltisn, port, state,
x, y, power, emgno, emgtime)
}
}
DevRecordPage {
id: devRecordPage
visible: false
anchors.fill: parent
}
TabBar {
id: tabBar
x: 31
y: 360
width: 369
height: 40
anchors.bottom: parent.bottom
anchors.right: parent.right
TabButton {
id: tabbtndismap
text: qsTr("区域地图")
}
TabButton {
id: tabbtnbuildview
text: qsTr("建筑地图")
}
TabButton {
id: tabbrnrecord
text: qsTr("设备记录")
}
// TabButton {
// id: tabbtntest
// text: qsTr("TestBtn")
// }
}
Connections {
target: tabbtnbuildview
onClicked: item1.state = "buildmap"
}
// Connections {
// target: tabbtntest
// onClicked: sdoffmap.data[1].createmarker(113.948124, 23.026141,
// "神山工业城精恒电子茂强办公楼二楼")
// }
Connections {
target: tabbtndismap
onClicked: item1.state = ""
}
Connections {
target: tabbrnrecord
onClicked: item1.state = "staterecord"
}
states: [
State {
name: "buildmap"
PropertyChanges {
target: sdoffmap
visible: false
}
PropertyChanges {
target: buildView
visible: true
}
PropertyChanges {
target: devRecordPage
visible: false
}
},
State {
name: "staterecord"
PropertyChanges {
target: sdoffmap
visible: false
}
PropertyChanges {
target: buildView
visible: false
}
PropertyChanges {
target: devRecordPage
visible: true
opacity: 1
}
}
]
}
1
https://gitee.com/adrianW/SDMonitor_GUI.git
git@gitee.com:adrianW/SDMonitor_GUI.git
adrianW
SDMonitor_GUI
SDMonitor_GUI
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891