blob: e9bafeeb55ca8ce6a14d9641b5d3b40a22c485e9 (
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
import QtQuick 2.0
import Label 2.0//ADD #F0182 2017/02/03 baojinfeng begin
import "../com/neusoft/auto/widgets"
import "../windowsList.js" as WindowsList
import "../layoutList.js" as Layout
import "../Setting/Settinglist.js" as Settinglist
HMIMask
{
id:disconnect_wifi
x:0
y:0//70
width:960
height:1050//1120//1280-160
widowsType: Layout.POP_TYPE
formId: WindowsList.SETTING_DISCONNECTWIFI
//property string bgImageStyle: systemCtrl.style//DEL #F0182 2017/02/03 baojinfeng begin
property string currConnSSID: settingCtrl.currConnSSID
property int iLanguage: systemCtrl.iLanguage
//DEL #F0182 2017/02/03 baojinfeng begin
onVisibleChanged:
{
if(disconnect_wifi.visible == true)
{
// console.log("tx_chinese.contentWidth"+tx_chinese.contentWidth)
// console.log("tx_chinese.width"+tx_chinese.width)
// console.log("tx_english.contentWidth"+tx_english.contentWidth)
// console.log("tx_english.width"+tx_english.width)
//ADD #159684 baojinfeng 2017/3/23 begin
if(iLanguage == Settinglist.LANGUAGE_CHINESE)
{
if(tx_chinese.contentWidth <= tx_chinese.width)
{
tx_chinese.visible = true
tx_chinese_chaochu.visible = false
tx_chinese_chaochu_biaohao.visible = false
}
else
{
tx_chinese.visible = false
tx_chinese_chaochu.visible = true
tx_chinese_chaochu_biaohao.visible = true
}
}
else
{
if(tx_english.contentWidth <= tx_english.width)
{
tx_english.visible = true
tx_english_chaochu.visible = false
tx_english_chaochu_biaohao.visible = false
}
else
{
tx_english.visible = false
tx_english_chaochu.visible = true
tx_english_chaochu_biaohao.visible = true
}
}
//ADD #159684 baojinfeng 2017/3/23 end
}
}
//DEL #F0182 2017/02/03 baojinfeng end
Image
{
id: im_itemBackground
x:58
y:419
width:844
height:352
source: "qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING"+bgImageStyle
}
// HMILabel
// {
// id: tx_chn
// x: 120
// y: 480
// width:720
// height: 35
// text: qsTr("Warning")+ systemCtrl.emptyString
// font.pixelSize: 30
// //color: "red"
// color: "#e1e1e1"
// horizontalAlignment: Text.AlignHCenter
// verticalAlignment: Text.AlignVCenter
// }
HMILabel
{
id: tx_english
x: 120
y: 513//532 //FOD #173178 2017/5/10 baojinfeng
width: 720
height: 40//40//40//82 //FOD #F0145 2017/1/6 liuming end
// text:"Do you want to disconnect" + "\"" + currConnSSID+"\"" +"?"
text:qsTr("Do you want to disconnect") + "\"" + currConnSSID + "\"" + qsTr(" ?") + systemCtrl.emptyString //ST_315790 ly
font.pixelSize: 30
color: "#e1e1e1"
//DEL #F0192 2017/2/6 BAOJINFENG begin
//horizontalAlignment:Text.AlignHCenter
//verticalAlignment:Text.AlignVCenter
//DEL #F0192 2017/2/6 BAOJINFENG end
elide: Text.ElideRight
visible: ((iLanguage == Settinglist.LANGUAGE_ENGLISH)&&(tx_english.contentWidth <= tx_english.width)) ? true:false
wtitesize:1//ADD #159684 baojinfeng 2017/3/23 begin
}
HMILabel
{
id: tx_english_chaochu
x: 120
y: 513//518-5//532 //FOD #F0182 2017/02/03 baojinfeng begin
width: 660//720
height: 40//40//82
// text:"Do you want to disconnect" + "\"" + currConnSSID
text:qsTr("Do you want to disconnect") + "\"" + currConnSSID + "\"" + qsTr(" ?") + systemCtrl.emptyString //ST_317493 ly
font.pixelSize: 30
color: "#e1e1e1"
//DEL #F0192 2017/2/6 BAOJINFENG begin
//horizontalAlignment:Text.AlignHCenter//AlignLeft
//verticalAlignment:Text.AlignVCenter
//DEL #F0192 2017/2/6 BAOJINFENG begin
elide: Text.ElideRight
visible: ((iLanguage == Settinglist.LANGUAGE_ENGLISH)&&(tx_english.contentWidth > tx_english.width)) ? true:false
wtitesize:1//ADD #159684 baojinfeng 2017/3/23 begin
}
HMILabel
{
id: tx_english_chaochu_biaohao
x: 780//720+120
y: 513//518-5//532 //FOD #F0182 2017/02/03 baojinfeng begin
width: 60
height: 40//82
text:"\"" +"?"
font.pixelSize: 30
color: "#e1e1e1"
horizontalAlignment:Label.AlignLeft//FOD #F0192 2017/2/6 BAOJINFENG begin
//verticalAlignment:Text.AlignVCenter//DEL #F0192 2017/2/6 BAOJINFENG begin
visible: ((iLanguage == Settinglist.LANGUAGE_ENGLISH)&&(tx_english.contentWidth > tx_english.width)) ? true:false
wtitesize:1//ADD #159684 baojinfeng 2017/3/23 begin
}
HMILabel
{
id: tx_chinese
x: 120
y: 513//518-5//532 //FOD #F0182 2017/02/03 baojinfeng begin
width: 720//720
height: 40//40//82
// text:"确定要断开" + "\“" + currConnSSID + "\”" +"吗?"
text:qsTr("Do you want to disconnect") + "\“" + currConnSSID + "\“" + qsTr(" ?") + systemCtrl.emptyString //ST_315790 ly
font.pixelSize: 30
color: "#e1e1e1"
//DEL #F0192 2017/2/6 BAOJINFENG begin
//horizontalAlignment:Text.AlignHCenter//AlignLeft
//verticalAlignment:Text.AlignVCenter
//DEL #F0192 2017/2/6 BAOJINFENG end
visible: ((iLanguage == Settinglist.LANGUAGE_CHINESE)&&(tx_chinese.contentWidth <= tx_chinese.width)) ? true:false
wtitesize:2//ADD #159684 baojinfeng 2017/3/23 begin
}
HMILabel
{
id: tx_chinese_chaochu
x: 120
y: 513//518-5//532 //FOD #F0182 2017/02/03 baojinfeng begin
width: 630//720
height: 40//40//82
// text:"确定要断开" + "\“" + currConnSSID
text:qsTr("Do you want to disconnect") + "\“" + currConnSSID + "\“" + qsTr(" ?") + systemCtrl.emptyString //ST_315790 ly
font.pixelSize: 30
color: "#e1e1e1"
//DEL #F0192 2017/2/6 BAOJINFENG begin
//horizontalAlignment:Text.AlignHCenter//AlignLeft
//verticalAlignment:Text.AlignVCenter
//DEL #F0192 2017/2/6 BAOJINFENG end
elide: Text.ElideRight
visible: ((iLanguage == Settinglist.LANGUAGE_CHINESE)&&(tx_chinese.contentWidth > tx_chinese.width)) ? true:false
wtitesize:2//ADD #159684 baojinfeng 2017/3/23 begin
}
HMILabel
{
id: tx_chinese_chaochu_biaohao
x: 750//840//720+120
y: 513//518-5//532 //FOD #F0182 2017/02/03 baojinfeng begin
width: 150
height: 40//82
text:"\”" +"吗?"
font.pixelSize: 30
color: "#e1e1e1"
horizontalAlignment:Label.AlignLeft//Fod #F0192 2017/2/6 BAOJINFENG begin
//verticalAlignment:Text.AlignVCenter//DEL #F0192 2017/2/6 BAOJINFENG begin
visible: ((iLanguage == Settinglist.LANGUAGE_CHINESE)&&(tx_chinese.contentWidth > tx_chinese.width)) ? true:false
wtitesize:2//ADD #159684 baojinfeng 2017/3/23 begin
}
HMIButton //the button of Cancel
{
id:btn_ng
x:549
y:647
width: 248//186//add lqy for 326476
height: 78
btnImg:pressed?"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248"+bgImageStyle
labelText: qsTr("Cancel") + systemCtrl.emptyString
labelColor:"#e1e1e1"
labelPixelSize:30
onClicked:
{
btnImg="qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248"+bgImageStyle
ScreenManager.hideOverlay(WindowsList.SETTING_DISCONNECTWIFI)//add lqy for 326476
//add by plc for #318900
settingCtrl.iDisconnectwififlag = false
}
}
HMIButton //the button of OK
{
id:btn_ok
x:225
y:647
width: 248//186//add lqy for 326476
height: 78
btnImg:pressed?"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248"+bgImageStyle
labelText: qsTr("Confirm") + systemCtrl.emptyString
labelColor:"#e1e1e1"
labelPixelSize:30
onPressed:
{
custom_btn.btnImg = "qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248_P"+bgImageStyle
}
onClicked:
{
btnImg="qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248"+bgImageStyle//add lqy for 326476
ScreenManager.hideOverlay(WindowsList.SETTING_DISCONNECTWIFI)
settingCtrl.requestDisConnectWifi()
}
}
// Connections
// {
// target: acCtrl
// onShowAdjustment:
// {
// ScreenManager.hideOverlay(WindowsList.SETTING_MEDIARESETWARNING)
// }
// onShowPassengerTemp:
// {
// ScreenManager.hideOverlay(WindowsList.SETTING_MEDIARESETWARNING)
// }
// onShowDriverTemp:
// {
// ScreenManager.hideOverlay(WindowsList.SETTING_MEDIARESETWARNING)
// }
// }
}
|