blob: 6ca56f565cf69915be7a4028809c684ac16809e7 (
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
|
import QtQuick 2.0
import Label 2.0//ADD #F0192 2017/2/6 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:wifipasswd_message
x:0
y:0//40
//width:960
//height:1050
widowsType:Layout.MESSAGE_TYPE
formId:WindowsList.SETTING_WIFIPASSWD_MESSAGE
property string reqConnSSID: settingCtrl.reqConnSSID
property int iLanguage: systemCtrl.iLanguage
Component.onCompleted:
{
//windowID = WindowsList.SETTING_WIFIPASSWD_MESSAGE
}
onVisibleChanged:
{
if(wifipasswd_message.visible == true)
{
//console.log("chinese_label_text.contentWidth"+chinese_label_text.contentWidth)
//console.log("chinese_label_text.width"+chinese_label_text.width)
//console.log("english_label_text.contentWidth"+english_label_text.contentWidth)
//console.log("english_label_text.width"+english_label_text.width)
//ADD #159684 baojinfeng 2017/3/23 begin
if(iLanguage == Settinglist.LANGUAGE_CHINESE)
{
if(chinese_label_text.contentWidth <= chinese_label_text.width)
{
chinese_label_text.visible = true
chinese_label_chaochu_text.visible = false
fail.visible = false
}
else
{
chinese_label_text.visible = false
chinese_label_chaochu_text.visible = true
fail.visible = true
}
}
else
{
if(english_label_text.contentWidth <= english_label_text.width)
{
english_label_text.visible = true
//english_label_chaochu_text.visible = false
}
else
{
english_label_text.visible = false
//english_label_chaochu_text.visible = true
}
}
//ADD #159684 baojinfeng 2017/3/23 end
//FOD #126239 2106/12/05 BAOJINFENG begin
// if(screenShotSwt == true)
// {
// //do nothing
// }
// else
// {
messggeTimer.start()
// }
//FOD #126239 2106/12/05 BAOJINFENG end
}
else
{
messggeTimer.stop()
}
}
Image
{
//FOD 2106/10/26 BAOJINFENG begin
id: im_itemBackground
x:58
y:419
width:844
height:352
source:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING"+bgImageStyle
//FOD 2106/10/26 BAOJINFENG end
HMIMouseArea
{
anchors.fill: parent
bBeep:false
onClicked:
{
ScreenManager.hideOverlay(WindowsList.SETTING_WIFIPASSWD_MESSAGE)
}
}
Item
{
id: englishItem
x:62//120-58//10//FOD #F0182 2017/02/03 baojinfeng begin
y:156//580-419-5//480-419//0 //FOD #F0182 2017/02/03 baojinfeng begin
width: 720
height: 40//134 //FOD #F0145 2017/1/6 liuming end
//visible: iLanguage == Settinglist.LANGUAGE_ENGLISH? true:false
Row
{
HMILabel
{
id:english_label_text
width: 720
height: 40//134 //FOD #F0145 2017/1/6 liuming end
// text:qsTr("Fail to join" + "\"" + reqConnSSID +"\"")+ systemCtrl.emptyString //change 2018/12/12 ly
text:qsTr("Connection failed")+ systemCtrl.emptyString
font.pixelSize:30
visible: iLanguage == 0? true:false
//DEL #F0192 2017/2/6 BAOJINFENG begin
//horizontalAlignment: Text.AlignHCenter
//verticalAlignment: Text.AlignVCenter //FOD #F0145 2017/1/6 liuming end
//DEL #F0192 2017/2/6 BAOJINFENG end
elide: Text.ElideRight
wtitesize:1//ADD #159684 baojinfeng 2017/3/23 begin
}
// HMILabel
// {
// id: english_label_chaochu_text
// x: 720
// width: 10
// height:40//134 //FOD #F0145 2017/1/6 liuming end
// text: qsTr("\"")+ systemCtrl.emptyString
// font.pixelSize:30
// verticalAlignment: Text.AlignTop
// //visible: english_label_text.contentWidth > english_label_text.width? true:false
// wtitesize:1//ADD #159684 baojinfeng 2017/3/23 begin
// }
}
}
Item
{
id: chineseItem
x:62//120-58//10
y:156//580-419-5//480-419//0 //FOD #F0182 2017/02/03 baojinfeng begin
width: 720
height: 40//134 //FOD #F0145 2017/1/6 liuming end
//visible: iLanguage == Settinglist.LANGUAGE_CHINESE? true:false
HMILabel
{
id:chinese_label_text
width: 720
height: 40//134 //FOD #F0145 2017/1/6 liuming end
// text:qsTr("加入"+ "\“" + reqConnSSID + "\”" + "失败")+ systemCtrl.emptyString//FOD #177164 2017/05/23 baojinfeng end
text:qsTr("连接失败")+ systemCtrl.emptyString//FOD #177164 2017/05/23 baojinfeng end
font.pixelSize:30
visible: iLanguage == 1? true:false
//DEL #F0192 2017/2/6 BAOJINFENG begin
//horizontalAlignment: Text.AlignHCenter
//verticalAlignment: Text.AlignVCenter //FOD #F0145 2017/1/6 liuming end
//DEL #F0192 2017/2/6 BAOJINFENG end
//visible: chinese_label_text.contentWidth <= chinese_label_text.width? true:false
wtitesize:2//ADD #159684 baojinfeng 2017/3/23 begin
}
//FOD #F0172 2017/1/6 baojinfeng begin
// Row
// {
// id:chinese_label_chaochu_text
// width: 720
// height: 40//134 //FOD #F0145 2017/1/6 liuming end
// //visible: chinese_label_text.contentWidth <= chinese_label_text.width? false:true
// HMILabel
// {
// id: join
// width:630
// height: 40
// text: qsTr("加入" + "\“" + reqConnSSID)+ systemCtrl.emptyString
// font.pixelSize:30
// elide: Text.ElideRight
// wtitesize:2//ADD #159684 baojinfeng 2017/3/23 begin
// //DEL #F0192 2017/2/6 BAOJINFENG begin
// //verticalAlignment: Text.AlignVCenter
// //horizontalAlignment: Text.AlignHCenter
// //DEL #F0192 2017/2/6 BAOJINFENG end
// //anchors.horizontalCenter: parent.horizontalCenter
// //verticalAlignment: Text.AlignVCenter
// //horizontalAlignment: Text.AlignHCenter
// }
// // HMILabel
// // {
// // id: ssid
// // width: 540
// // height: 40//134 //FOD #F0145 2017/1/6 liuming end
// // text: reqConnSSID
// // font.pixelSize:28
// // elide: Text.ElideRight
// // }
// HMILabel
// {
// id: fail
// width:90
// height: 40
// text: qsTr("\”" + "失败")+ systemCtrl.emptyString
// font.pixelSize:30
// wtitesize:2//ADD #159684 baojinfeng 2017/3/23 begin
// //DEL #F0192 2017/2/6 BAOJINFENG begin
// //verticalAlignment: Text.AlignVCenter
// //horizontalAlignment: Text.AlignHCenter
// //DEL #F0192 2017/2/6 BAOJINFENG end
// }
// }
//FOD #F0172 2017/1/6 baojinfeng end
}
}
Timer
{
id:messggeTimer
interval: 4000 //3000->4000 #ST_315308 ly
running: false
repeat: false
onTriggered:
{
ScreenManager.hideOverlay(WindowsList.SETTING_WIFIPASSWD_MESSAGE)
}
}
}
|