blob: 34efad482b36ca8807e61c654ee42704d9ce8fde (
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
|
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 Label 2.0
Item
{
property string bgImageStyle: systemCtrl.style
width: 769
height: 1024
x:0
y:0
id:singleAlertPopup
onVisibleChanged:
{
console.log("[Reminder_SingleAlert][onVisibleChanged][singleAlertPopup.visible]-->" + singleAlertPopup.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: {
console.log("[HMI][Reminder_SingleAlert][maskImg]-->>clicked")
}
}
}
Image
{
id: asel_popup
x: 54
y: 346
width:660
height:268
source: "qrc:MATERIAL/MATERIAL_M8X_POPUP_BK_268"+ bgImageStyle
HMILabel
{
id: popup
x:0
y:0
height: 50
width:parent.width
anchors.horizontalCenter: parent.horizontalCenter
text:qsTr("Calendar Alert") + systemCtrl.emptyString
font.pixelSize: CONFIG.REMINDER_LABEL_FONT_SIZE
color:CONFIG.POPUP_FONT_COLOR
}
HMIButton
{
id:alertDetailBtn
x:20
y:58
btnImg:alertDetailBtn.pressed?"qrc:MATERIAL/MATERIAL_M8X_POPUP_LIST_126_P"+ bgImageStyle
:"qrc:MATERIAL/MATERIAL_M8X_POPUP_LIST_126"+ bgImageStyle
HMILabel
{
x:10
y:8
width: 620
height: 110
anchors.leftMargin: 20
anchors.topMargin: 10
horizontalAlignment: Label.AlignLeft
verticalAlignment: Label.AlignTop
text: mEvtManage.getSingleAlertContentFromEvtListShowingInListAlert()
// wrapMode: Label.WordWrap
// elide:Label.ElideRight
font.pixelSize: CONFIG.REMINDER_BTN_FONT_SIZE
color:CONFIG.POPUP_FONT_COLOR
}
onClicked:
{
console.log("[Reminder_SingleAlert.qml][alertDetailBtn][onClicked]-->")
mEvtManage.setIndexOfRemindAgainOperInListAlert(0)
systemCtrl.RequestShow(CONFIG.RMD_ALERT_DETAIL)
}
}
//关闭
HMIButton
{
id:closeBtn
x:165
y:198
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("[closeBtn][onClicked]-->")
mEvtManage.setIndexOfRemindAgainOperInListAlert(0)
mEvtManage.setEvtTriggeredInDBByOper(mCalendar.currentDate)
}
}
//再次
HMIButton
{
id:againBtn
x:335
y:198
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("[againBtn][onClicked]-->")
mEvtManage.setIndexOfRemindAgainOperInListAlert(0)
systemCtrl.RequestShow(CONFIG.RMD_ALERT_AGAIN)
}
}
}
/*========================================Function Start==============================================*/
Connections
{
target: mEvtManage
onToRefreshAlertShowing:
{
console.log("[HMI][Reminder_SingleAlert][onToRefreshAlertShowing]")
mEvtManage.getEvtListShowingInListAlertFromDBWhenAlert(mCalendar.currentDate,mEvtAlertTimer.getLastEfectAlertTimeOfToday())
if(mEvtManage.getCntOfEvtListShowingInListAlert() == 0){
systemCtrl.RequestHide(CONFIG.RMD_SINGLE_ALERT)
mEvtManage.SetIsSingleAlert(false);
// mEvtManage.sendSetAlertTimerSignal()
}
}
}
/*========================================Function End================================================*/
}
|