summaryrefslogtreecommitdiffstats
path: root/app/system.qml
blob: 1d4727c45af2651a03732c857e57f3ca1bdefd9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import QtQuick 2.6
import QtQuick.Window 2.2
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.0
import AGL.Demo.Controls 1.0

Item {
    id: onScreenSystem
    visible: true
    width: 1080
    height: 1488

    function qmlOnScreenMessage(text) {
        console.log(qsTr('OnScreenApp:QML:System >>> qmlOnScreenMessage.'));
        label.text = text;
    }

    // Image {
    //     id : background_image
    //     anchors.fill: parent
    //     anchors.topMargin: 0
    //     anchors.bottomMargin: 0
    //     source: "images/oval_1079x400.png"
    // }

    Label {
        id: label
        x: 40
        y: 72
        width: 1000
        height: 100
        color: "#eeeeec"
        text: "system alert"
        font.pixelSize: 50
        textFormat: Text.AutoText
        font.wordSpacing: 0
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
    }

    Button {
        id: button
        x: 490
        y: 250
        text: qsTr("OK")

        onClicked: {
            label.text = "system reject"
            eventHandler.onScreenReply("{ \"System\": \"system reject\" }");
        }
    }

}