1 Star 0 Fork 0

AdrianW / SDMonitor_GUI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
SPGUIForm.ui.qml 3.19 KB
一键复制 编辑 原始数据 按行查看 历史
AdrianW 提交于 2018-07-27 09:56 . Init Files
import QtQuick 2.4
import QtQuick.Controls 2.2
import "buildview"
Item {
width: 1000
height: 700
BroadcastPage {
id: broadcastPage
width: parent.width
height: parent.height
visible: true
}
MusicPage {
id: musicPage
width: parent.width
height: parent.height
visible: false
}
BuildView {
id: spbuildview
visible: false
objectName: "objspbuildview"
anchors.fill: parent
}
Connections {
target: spbuildview
onUsrBuildClicked: SPController.getFloorDevice(btype, bstrIndex)
}
Connections {
target: SPController
onSpEvent: {
spbuildview.data[1].deviceEvent(isn, event, islt)
}
onSpInit: {
spbuildview.data[1].createObject(type, sdisn, state, x, y, emgno)
}
}
Connections {
target: tabMusic
onClicked: state = "statemusic"
}
DevRecordPage {
id: devRecordPage
x: 0
y: 0
visible: false
opacity: 0
}
TabBar {
id: tabBar
x: 0
y: 360
anchors.bottom: parent.bottom
anchors.right: parent.right
width: 400
height: 40
TabButton {
id: tabBroadcast
text: qsTr("Broadcast")
}
TabButton {
id: tabMusic
text: qsTr("Music")
}
TabButton {
id: tabBuildView
x: 0
y: 0
text: qsTr("BuildView")
}
TabButton {
id: tabRecord
text: qsTr("Record")
}
}
Connections {
target: tabBroadcast
onClicked: state = "statebroadcast"
}
Connections {
target: tabBuildView
onClicked: state = "statebuildview"
}
Connections {
target: tabRecord
onClicked: state = "staterecord"
}
states: [
State {
name: "statemusic"
PropertyChanges {
target: broadcastPage
visible: false
}
PropertyChanges {
target: musicPage
visible: true
}
PropertyChanges {
target: devRecordPage
visible: false
}
},
State {
name: "statebroadcast"
PropertyChanges {
target: devRecordPage
visible: false
}
},
State {
name: "statebuildview"
PropertyChanges {
target: broadcastPage
visible: false
}
PropertyChanges {
target: spbuildview
visible: true
}
PropertyChanges {
target: devRecordPage
visible: false
}
},
State {
name: "staterecord"
PropertyChanges {
target: broadcastPage
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