123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- import QtQuick 2.7
- import QtQuick.Window 2.2
- import com.gfa.ipc.appctrl 1.0
- Window {
- visible: true
- width: 640
- height: 480
- title: qsTr("GfA App Control")
- property var appInfoRem: qAppCtrl.appInfo[qAppCtrl.idxRemanent]
- property var appInfoRest: qAppCtrl.appInfo[qAppCtrl.idxRest]
- property var appInfoMqtt: qAppCtrl.appInfo[qAppCtrl.idxMqttCl]
- Text {
- x: 50
- y: 60
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoRem.name
- }
- Text {
- x: 150
- y: 60
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoRem.stateText
- }
- Rectangle
- {
- x: 250
- y: 50
- width: 90
- height: 40
- color: "lightgrey"
- Text {
- text: "Pause"
- font.pixelSize: 14
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: appInfoRem.pause()
- }
- }
- Rectangle
- {
- x: 350
- y: 50
- width: 90
- height: 40
- color: "lightgrey"
- Text {
- text: "Resume"
- font.pixelSize: 14
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: appInfoRem.resume()
- }
- }
- Rectangle
- {
- x: 450
- y: 50
- width: 90
- height: 40
- color: "lightgrey"
- Text {
- text: "Stop"
- font.pixelSize: 14
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: appInfoRem.stop()
- }
- }
- Text {
- x: 550
- y: 60
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoRem.cycMin
- }
- Text {
- x: 650
- y: 60
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoRem.cycMax
- }
- ////////////////////////////////////////////////////////////
- Text {
- x: 50
- y: 110
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoRest.name
- }
- Text {
- x: 150
- y: 110
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoRest.stateText
- }
- Rectangle
- {
- x: 250
- y: 100
- width: 90
- height: 40
- color: "lightgrey"
- Text {
- text: "Pause"
- font.pixelSize: 14
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: appInfoRest.pause()
- }
- }
- Rectangle
- {
- x: 350
- y: 100
- width: 90
- height: 40
- color: "lightgrey"
- Text {
- text: "Resume"
- font.pixelSize: 14
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: appInfoRest.resume()
- }
- }
- Rectangle
- {
- x: 450
- y: 100
- width: 90
- height: 40
- color: "lightgrey"
- Text {
- text: "Stop"
- font.pixelSize: 14
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: appInfoRest.stop()
- }
- }
- Text {
- x: 550
- y: 110
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoRest.cycMin
- }
- Text {
- x: 650
- y: 110
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoRest.cycMax
- }
- ////////////////////////////////////////////////////////////
- Text {
- x: 50
- y: 160
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoMqtt.name
- }
- Text {
- x: 150
- y: 160
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoMqtt.stateText
- }
- Rectangle
- {
- x: 250
- y: 150
- width: 90
- height: 40
- color: "lightgrey"
- Text {
- text: "Pause"
- font.pixelSize: 14
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: appInfoMqtt.pause()
- }
- }
- Rectangle
- {
- x: 350
- y: 150
- width: 90
- height: 40
- color: "lightgrey"
- Text {
- text: "Resume"
- font.pixelSize: 14
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: appInfoMqtt.resume()
- }
- }
- Rectangle
- {
- x: 450
- y: 150
- width: 90
- height: 40
- color: "lightgrey"
- Text {
- text: "Stop"
- font.pixelSize: 14
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: appInfoMqtt.stop()
- }
- }
- Text {
- x: 550
- y: 160
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoMqtt.cycMin
- }
- Text {
- x: 650
- y: 160
- width: 80
- height: 40
- font.pixelSize: 14
- text: appInfoMqtt.cycMax
- }
- ////////////////////////////////////////////////////////////
- Rectangle
- {
- x: 50
- y: 400
- width: 90
- height: 40
- color: "lightgrey"
- Text {
- text: "Quit"
- font.pixelSize: 14
- anchors.centerIn: parent
- }
- MouseArea {
- anchors.fill: parent
- onClicked: Qt.quit()
- }
- }
- }
|