summaryrefstree
path: root/usr/bin/qml/Setting/Setting_WifiErrorKeyMessage.qml
blob: 5c3acc6797d2709e34b6b94a89d34eabf70836fe (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
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:wifierrorkey_message
    x:0
    y:0//40
    //width:960
    //height:1050
    widowsType:Layout.MESSAGE_TYPE
    formId:WindowsList.SETTING_WIFIERRORKEY_MESSAGE
    property string reqConnSSID: settingCtrl.reqConnSSID
    property int iLanguage: systemCtrl.iLanguage

    Component.onCompleted:
    {

    }
    onVisibleChanged:
    {
        if(wifierrorkey_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_chaochu_text.visible = false
                    chinese_label_text.visible = true
                }
                else
                {
                    chinese_label_chaochu_text.visible = true
                    chinese_label_text.visible = false
                }
            }
            else
            {
                if(english_label_text.contentWidth <= english_label_text.width)
                {
                    english_label_chaochu_text.visible = false
                }
                else
                {
                    english_label_chaochu_text.visible = true
                }
            }
            //ADD #159684 baojinfeng 2017/3/23 end
            //settingCtrl.bConnWifiError = false
            //FOD #126239 2106/12/05 BAOJINFENG begin
            //            if(screenShotSwt == true)
            //            {
            //                //do nothing
            //            }
            //            else
            //            {
            messggeTimer.start()
            //            }
            //FOD #126239 2106/12/05 BAOJINFENG end
        }
        else
        {
            //settingCtrl.bConnWifiError = true
            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

//del by lqy for 329503
//        HMIMouseArea
//        {
//            anchors.fill: parent
//            bBeep:false

//            onClicked:
//            {
//                ScreenManager.hideOverlay(WindowsList.SETTING_WIFIERRORKEY_MESSAGE)
//            }
//        }

        Item
        {
            id: englishItem
            x:120-58//10
            //fod F0182 liuming 20170206 begin
            //y:580-419-5//480-419//0  //FOD #F0145 2017/1/6 liuming end
            y:156
            //fod F0182 liuming 20170206 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:"Incorrect password for" + "\"" + reqConnSSID +"\""
                    text:qsTr("Incorrect password for") + qsTr("\"") + reqConnSSID + qsTr("\"") + systemCtrl.emptyString //ST_315790 ly
                    font.pixelSize:30
                    //visible: iLanguage == Settinglist.LANGUAGE_ENGLISH? 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: english_label.contentWidth > english_label.width? false : true
                    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:  "\""
                    font.pixelSize:30
                    verticalAlignment: Text.AlignVCenter   //FOD #F0145 2017/1/6 liuming end
                    //visible: english_label_text.contentWidth > english_label_text.width? true:false
                    wtitesize:1//ADD #159684 baojinfeng 2017/3/23 begin
                }
            }
        }

        Item
        {
            id: chineseItem
            x:120-58//10
            //fod F0182 liuming 20170206 begin
            //y:580-419-5//480-419//0  //FOD #F0145 2017/1/6 liuming end
            y:156
            //fod F0182 liuming 20170206 end
            visible: iLanguage == 1? true:false  //ST_315790 ly
            HMILabel
            {
                id:chinese_label_text
                width: 720
                height: 40//134 //FOD #F0145 2017/1/6 liuming end
//                text:"Incorrect password for" + "\"" + reqConnSSID +"\""//FOD #F0172 2017/1/6 baojinfeng end
                text:qsTr("密码错误") + qsTr("\"") + reqConnSSID + qsTr("\"") + systemCtrl.emptyString //ST_315790 ly
                font.pixelSize:30
                //visible: iLanguage == Settinglist.LANGUAGE_CHINESE? 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  //ST_315790 ly
                visible: chinese_label.contentWidth > chinese_label.width? false : true
                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//40//134 //FOD #F0145 2017/1/6 liuming end
                visible: chinese_label_text.contentWidth <= chinese_label_text.width? false:true
                HMILabel
                {
                    id: join
                    width: 570//FOD #F0172 2017/1/6 baojinfeng end
                    height: 40//134
                    text:"\“"  + reqConnSSID//FOD #F0172 2017/1/6 baojinfeng end
                    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: fail
                    width: 150
                    height: 40
                    text: "\”" + "密码错误"
                    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_WIFIERRORKEY_MESSAGE)
        }
    }
}