summaryrefstree
path: root/usr/bin/qml/Setting/Setting_WifiLoading.qml
blob: 344135d8907ebb3e71aa645d913ebd32fdd832dd (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
import QtQuick 2.0
import Label 2.0//ADD #F0192 2017/2/6 BAOJINFENG end
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.POP_TYPE//Layout.MESSAGE_TYPE//FOD #169795 baojinfeng 2017/5/23 begin
    formId:WindowsList.SETTING_WIFILOADING
    property string reqConnSSID: settingCtrl.reqConnSSID
    property int iLanguage: systemCtrl.iLanguage
//ADD By qu-shh for auto display off start    
    property bool display_flag:false
//ADD By qu-shh for auto display off end   
    Component.onCompleted:
    {
        //windowID = WindowsList.SETTING_WIFIPASSWD_MESSAGE
    }

    onVisibleChanged:
    {
        if(wifipasswd_message.visible == true)
        {
//ADD By qu-shh for auto display off start
            if(!display_flag)
            {
                systemCtrl.auto_Displayoff_Shield()
                display_flag = true
            }
//ADD By qu-shh for auto display off end         
            //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
            //FOD #126239 2106/12/05 BAOJINFENG begin
            //            if(screenShotSwt == true)
            //            {
            //                //do nothing
            //            }
            //            else
            //            {
            //messggeTimer.start()
            //            }
            //FOD #126239 2106/12/05 BAOJINFENG end
        }
        else
        {
//ADD By qu-shh for auto display off start	
            if(display_flag)
            {
                systemCtrl.auto_Displayoff_Unshield()
                display_flag = false
            }
//ADD By qu-shh for auto display off end	            
            //messggeTimer.stop()
        }
    }
    Image
    {
        x: 58//270  //FOD #F0145 2017/1/6 liuming end
        y: 419//530  //FOD #F0145 2017/1/6 liuming end
        width: 844
        height: 352
        source: "qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING"+bgImageStyle
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenter: parent.verticalCenter

        HMIMouseArea
        {
            anchors.fill: parent
            bBeep:false
        }

        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
            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:"Joining" + "\"" + reqConnSSID +"\""
                    text:qsTr("Joining ") + qsTr("\"") + reqConnSSID + qsTr("\"") + systemCtrl.emptyString //ST_315790 ly

                    font.pixelSize:30
                    //visible: iLanguage == Settinglist.LANGUAGE_ENGLISH? true:false
                    visible: english_label_text.contentWidth > english_label_text.width? false : true
                    //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:  "\""
                    font.pixelSize:30
                    verticalAlignment: Text.AlignTop
                    wtitesize:1//ADD #159684 baojinfeng 2017/3/23 begin
                    visible: english_label_text.contentWidth > english_label_text.width? true:false
                }
            }
        }

        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
            width: 720
            height: 40//134  //FOD #F0145 2017/1/6 liuming 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:"加入"+ "\“" + reqConnSSID + "\”"//FOD #145880 2017/1/20 baojinfeng begin
                text:qsTr("Joining ") + 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_text.contentWidth > chinese_label_text.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//134  //FOD #F0145 2017/1/6 liuming end
                visible: chinese_label_text.contentWidth <= chinese_label_text.width? false:true
                HMILabel
                {
                    id: join
                    width: 690
                    height: 40
                    text: "正在加入" + "\“" + reqConnSSID
                    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: 30
                    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_WIFILOADING)
        }
    }
}