summaryrefstree
path: root/usr/bin/qml/Reminder/Reminder_AlertDetail.qml
blob: 409bc8ae8547a1fbce8833908dbcd5950b691030 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "coordinate.js" as CONFIG
import "../windowsList.js" as WindowsList
import "../layoutList.js" as Layout
import Event 1.0
import Label 2.0

Item
{
    property string bgImageStyle: systemCtrl.style
    width: 769
    height: 1024
    x:0
    y:0
    id:alertDetailPopup

    onVisibleChanged:
    {
        console.log("[Reminder_AlertDetail][onVisibleChanged][alertDetailPopup.visible]-->" + alertDetailPopup.visible)
    }

    Image
    {
        id:maskImg
        x: CONFIG.MASK_IMG_LAY_XY[0]-14
        y: CONFIG.MASK_IMG_LAY_XY[1]-132+40
        width:CONFIG.MASK_IMG_WIDTH_HEIGHT[0]+29
        height:CONFIG.MASK_IMG_WIDTH_HEIGHT[1]+100+92
        source:"qrc:MATERIAL/MATERIAL_M8X_MASK_FULL-SCREEN"+ bgImageStyle

        HMIMouseArea{
            anchors.fill: parent
            propagateComposedEvents:false
            bBeep: false
            onClicked: {
                //systemCtrl.RequestHide(CONFIG.RMD_ALERT_DETAIL)
                console.log("[HMI][Reminder_AlertDetail.qml][maskImg]-->>clicked")
            }
        }
    }

    Image
    {
        x: 54
        y: 218
        width:660
        height:524
        source: "qrc:MATERIAL/MATERIAL_M8X_POPUP_BK_524"+ bgImageStyle

        HMILabel
        {
            id: popup
            x:0
            y:0
            height: 58
            width:parent.width
            anchors.horizontalCenter: parent.horizontalCenter
            text:qsTr("Alert Detail") + systemCtrl.emptyString
            font.pixelSize: CONFIG.REMINDER_LABEL_FONT_SIZE
            color:CONFIG.POPUP_FONT_COLOR
        }

        Image
        {
            id:startDateTimeBG
            x:20
            y:58
            source:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BK_62"+ bgImageStyle

            HMILabel
            {
                id:startDateTime
                anchors.fill:parent
                anchors.leftMargin: 20
                horizontalAlignment: Label.AlignLeft
                text: mEvtManage.getAlertStartDateTimeFromEvtListShowingInListAlert()
                font.pixelSize: CONFIG.REMINDER_BTN_FONT_SIZE
                color:CONFIG.POPUP_FONT_COLOR
            }
        }

        Item
        {
            x:20
            y:120
            width: 620
            height: 66
            HMILabel
            {
                id:evtTitle
                anchors.fill:parent
                anchors.leftMargin: 20
                horizontalAlignment: Label.AlignLeft
                text: mEvtManage.getAlertTitleFromEvtListShowingInListAlert()
                font.pixelSize: CONFIG.REMINDER_BTN_FONT_SIZE
                color:CONFIG.POPUP_FONT_COLOR
            }

        }


        Image
        {
            id:evtContentBG
            x:20
            y:186
            source:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BK_254"+ bgImageStyle

            HMILabel
            {
                id:evtContent
                anchors.fill:parent
                anchors.leftMargin: 5
                anchors.topMargin: 20
                horizontalAlignment: Label.AlignLeft
                verticalAlignment: Label.AlignTop
                text: mEvtManage.getAlertContentFromEvtListShowingInListAlert()
                font.pixelSize: CONFIG.REMINDER_BTN_FONT_SIZE
                color:CONFIG.POPUP_FONT_COLOR
            }
        }

        //关闭
        HMIButton
        {
            id:closeBtn
            x:165
            y:454
            btnImg: closeBtn.pressed ? "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_PUSHED"+ bgImageStyle
                                     : "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON"+ bgImageStyle
            HMILabel
            {
                id:lab_close
                width: parent.width
                height: parent.height
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.verticalCenter: parent.verticalCenter
                font.pixelSize: CONFIG.REMINDER_BTN_FONT_SIZE
                text:qsTr("Close") + systemCtrl.emptyString
                color:CONFIG.POPUP_FONT_COLOR
            }

            onClicked:
            {
                console.log("[Reminder_AlertDetail][closeBtn][onClicked]-->")
                systemCtrl.RequestHide(CONFIG.RMD_ALERT_DETAIL)
                mEvtManage.setEvtTriggeredInDBByOper(mCalendar.currentDate)
            }
        }
        //再次
        HMIButton
        {
            id:againBtn

            x:335
            y:454
            btnImg: againBtn.pressed ? "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_PUSHED"+ bgImageStyle
                                     : "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON"+ bgImageStyle
            HMILabel
            {
                id:lab_again
                width: parent.width
                height: parent.height
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.verticalCenter: parent.verticalCenter
                text:qsTr("Again") + systemCtrl.emptyString
                color:CONFIG.POPUP_FONT_COLOR
                font.pixelSize: CONFIG.REMINDER_BTN_FONT_SIZE
            }

            onClicked:
            {
                console.log("[Reminder_AlertDetail][againBtn][onClicked]-->")
                systemCtrl.RequestHide(CONFIG.RMD_ALERT_DETAIL)
                systemCtrl.RequestShow(CONFIG.RMD_ALERT_AGAIN)
            }
        }
    }


    /*========================================Function Start==============================================*/

    /*========================================Function End================================================*/

}