summaryrefstree
path: root/usr/bin/qml/Setting/Setting_Defaults.qml
blob: 232f1b79b8ffb16eaa54ed2385660eaf8c1724e7 (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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
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 "Settinglist.js"   as Settinglist
import "../Assistance/Assistancelist.js" as Assistancelist  //ADD #125801 baojinfeng 2016/12/23
import "../eventsList.js" as EventsList
HMIWindow
{
    id:setting_defaults

    Component.onCompleted:
    {
        windowID = WindowsList.SETTING_DEFAULTS
    }
    onVisibleChanged:
    {
        bFullWindow = true
        bNoSwitchBarVisiable = true

    }
    //property string bgImageStyle: systemCtrl.style//DEL #F0182 2017/02/03 baojinfeng begin
    property int iLanguage: systemCtrl.iLanguage
    property int setIndex: 0//ADD 125801 baojinfeng 2017/02/17 begin
    property bool naviRecoverFinish: false
    property int iWirelessChargSwitch: settingCtrl.iWirelessChargSwitch
    Image
    {
        id: setting_defaultsBackground
        x: 0 - setting_defaults.x
        y: 0 - setting_defaults.y
        width: 960
        height: 1280
        Item{
            id:back
            //visible:bDefaultBackvisible
            Item
            {
                id:setting_defaultsback
                x:0//52-14
                y:165
                width: 960
                height:70//78
                HMIButton
                {
                    id:back_btn
                    x:0
                    y:0
                    width: 138
                    height: 70
                    //btnImg:pressed?"qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle
                    opacity: 1
                    Image
                    {
                        id:back_btn_image
                        x:5//20
                        y:3//18//194-174
                        width: 50//20//24
                        height:64//34
                        anchors.verticalCenter:parent.verticalCenter
                        source:back_btn.pressed?"qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle
                        //"qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle
                    }
                    HMILabel
                    {
                        id:back_btn_label
                        x:54//44//20+24
                        y:0
                        width: 138//94//138-44
                        height:70
                        text: qsTr("Back") + systemCtrl.emptyString
                        font.pixelSize: 30
                        anchors.verticalCenter:parent.verticalCenter
                        horizontalAlignment: Text.AlignLeft
                        //DEL #F0192 2017/2/6 BAOJINFENG begin
                        //verticalAlignment: Text.AlignVCenter
                        //horizontalAlignment: Text.AlignHCenter
                        //DEL #F0192 2017/2/6 BAOJINFENG begin
                    }
                    onClicked:
                    {
                        ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.SETTING_MAIN)
                    }
                }
            }
        }
        Item
        {
            id:setting_defaults_title
            x:240
            //DEL F0035 2016/10/12 liuming begin
            //y:196
            //width: 480
            //height: 35
            //DEL F0035 2016/10/12 liuming end
            //ADD F0035 2016/10/12 liuming begin
            y:165
            width: 480
            height: 70//35
            //ADD F0035 2016/10/12 liuming end
            HMILabel
            {

                width: 480
                //DEL F0035 2016/10/12 liuming begin
                //height: 35
                //DEL F0035 2016/10/12 liuming end
                //ADD F0035 2016/10/12 liuming begin
                height: 70//35
                //ADD F0035 2016/10/12 liuming end
                text:qsTr("Defaults") + systemCtrl.emptyString
                color:"#e1e1e1"
                font.pixelSize: 30
                anchors.verticalCenter: parent.verticalCenter
                anchors.horizontalCenter: parent.horizontalCenter
                //DEL #F0192 2017/2/6 BAOJINFENG begin
                //verticalAlignment: Text.AlignVCenter
                //horizontalAlignment: Text.AlignHCenter
                //DEL #F0192 2017/2/6 BAOJINFENG begin

            }
        }


        /**********************************  Setting Default Start  ********************************/
        Item
        {
            id: setting_defaults_Flickable
            x:142
            //FOD F0056 2016/10/24 liuming begin
            //y:266
            y: 241
            //FOD F0056 2016/10/24 liuming end
            width: 930
            height: 796
            Flickable
            {
                id:flick
                width: 930
                height: 796
                anchors.topMargin: 0
                anchors.fill: parent
                contentHeight: flick1.height
                contentWidth: parent.width
                clip:true
                interactive:false//true
                Column
                {
                    id:flick1
                    width: flick.width
                    spacing: 2
                    /************************************  Set Media Default  ***********************************/
                    Row
                    {
                        id: media_Default
                        height: 78
                        width: flick.width
                        visible: set_media_Default.visible

                        HMILabel
                        {
                            width: 480//496//638 - 142//fod F0182 liuming 20170206 end
                            //FOD F0056 2016/10/24 liuming begin
                            //height: 78
                            y:25
                            height: 78
                            //FOD F0056 2016/10/24 liuming end
                            text:qsTr("Media defaults") + systemCtrl.emptyString
                            color:"#e1e1e1"
                            font.pixelSize: 30
                            //verticalAlignment: Text.AlignVCenter//DEL #F0192 2017/2/6 BAOJINFENG begin
                            horizontalAlignment: Label.AlignLeft//FOD #F0192 2017/2/6 BAOJINFENG begin
                        }
                        HMIButton
                        {
                            id: setting_button1
                            width: 248//262
                            height: 78
                            btnImg: "qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248"+bgImageStyle
                            HMILabel
                            {
                                width: 248//262
                                height: 78
                                text:qsTr("Set") + systemCtrl.emptyString
                                color:"#e1e1e1"
                                font.pixelSize: 30
                                anchors.horizontalCenter: parent.horizontalCenter
                                anchors.verticalCenter:  parent.verticalCenter
                            }

                            onPressed:
                            {
                                setting_button1.btnImg="qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248_P" + bgImageStyle
                            }
                            onReleased:
                            {
                                setting_button1.btnImg="qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248" + bgImageStyle
                            }
                            //ADD #145890  2017/01/24 xubowen begin
                            onCanceled:
                            {
                                setting_button1.btnImg="qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248" + bgImageStyle
                            }
                            //ADD #145890  2017/01/24 xubowen end
                            onClicked:
                            {
                                ScreenManager.showOverlay(WindowsList.SETTING_MEDIARESETWARNING)
                            }
                        }
                    }

                    Row
                    {
                        id: set_media_Default
                        width: flick.width
                        //FOD F0056 2016/10/24 liuming begin
                        //height: 158
                        height: 78//162
                        //FOD F0056 2016/10/24 liuming end
                        visible: true

                        Item
                        {
                            HMILabel
                            {
                                id:description1
                                //ADD F0056 2016/10/24 liuming begin
                                y:36
                                //ADD F0056 2016/10/24 liuming end
                                width: 676
                                //FOD F0056 2016/10/24 liuming begin
                                //height: 86
                                height: 60 //30 ST_315790 ly
                                //FOD F0056 2016/10/24 liuming end
                                text:qsTr("This will restore all media preference settings.") + systemCtrl.emptyString
                                color:"#656565"
                                font.pixelSize: 26
                                horizontalAlignment: Label.AlignLeft//FOD #F0192 2017/2/6 BAOJINFENG begin
                                visible: iLanguage != Settinglist.LANGUAGE_CHINESE?true:false
                            }

                            HMILabel
                            {
                                id:description1_c1
                                //FOD F0056 2016/10/24 liuming begin
                                //y: 30
                                y: 36
                                width: 676
                                //height: 44//150
                                height: 30
                                //FOD F0056 2016/10/24 liuming end
                                font.pixelSize: 26
                                text:qsTr("这会将您的收音机收藏列表、音效设置、音量设置等媒体相") + systemCtrl.emptyString
                                color:"#656565"
                                horizontalAlignment: Label.AlignLeft//FOD #F0192 2017/2/6 BAOJINFENG begin
                                //anchors.verticalCenter: parent.verticalCenter
                                visible:iLanguage == Settinglist.LANGUAGE_CHINESE?true:false
                            }

                            HMILabel
                            {
                                id:description1_c2
                                //FOD F0056 2016/10/24 liuming begin
                                //y: 85
                                y:96//34+38+26
                                width: 676
                                //height: 44//150
                                height: 30
                                //FOD F0056 2016/10/24 liuming end
                                font.pixelSize: 26
                                text:qsTr("关设置恢复至默认值。") + systemCtrl.emptyString
                                color:"#656565"
                                horizontalAlignment: Label.AlignLeft//FOD #F0192 2017/2/6 BAOJINFENG begin
                                //anchors.verticalCenter: parent.verticalCenter
                                visible: iLanguage == Settinglist.LANGUAGE_CHINESE?true:false
                            }
                        }
                    }
                    /***************************  Set vehicle Default  ******************************/
                    Row
                    {
                        id: vehicle_Default
                        width: flick.width
                        height: 78
                        visible: set_vehicle_Default.visible

                        HMILabel
                        {
                            width: 480//638 - 142//fod F0182 liuming 20170206 end
                            //FOD F0056 2016/10/24 liuming begin
                            //height: 78
                            y:122
                            height: 78//30
                            //FOD F0056 2016/10/24 liuming end
                            text:qsTr("Vehicle factory defaults") + systemCtrl.emptyString
                            color:"#e1e1e1"
                            font.pixelSize: 30
                            //verticalAlignment: Text.AlignVCenter//DEL #F0192 2017/2/6 BAOJINFENG begin
                            horizontalAlignment: Label.AlignLeft//FOD #F0192 2017/2/6 BAOJINFENG begin
                        }

                        HMIButton
                        {
                            id: setting_button2
                            y:112
                            width: 248//262
                            height: 78
                            btnImg: "qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248"+bgImageStyle
                            HMILabel
                            {
                                width: 248//262
                                height: 78
                                text:qsTr("Set") + systemCtrl.emptyString
                                color:"#e1e1e1"
                                font.pixelSize: 30
                                anchors.horizontalCenter: parent.horizontalCenter
                                anchors.verticalCenter:  parent.verticalCenter
                            }

                            onPressed:
                            {
                                setting_button2.btnImg="qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248_P"+bgImageStyle
                            }
                            onReleased:
                            {
                                setting_button2.btnImg="qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248"+bgImageStyle
                            }
                            //ADD #145890  2017/01/24 xubowen begin
                            onCanceled:
                            {
                                setting_button2.btnImg="qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248"+bgImageStyle
                            }
                            //ADD #145890  2017/01/24 xubowen end
                            onClicked:
                            {
                                ScreenManager.showOverlay(WindowsList.SETTING_MHURESETWARNING)
                            }
                        }

                    }
                    Row
                    {
                        id: set_vehicle_Default
                        width: flick.width
                        height: 78
                        visible: true

                        HMILabel
                        {
                            id:description2
                            //FOD F0056 2016/10/24 liuming begin
                            y:145
                            width: 676
                            //height: 86
                            height: 60//30 ST_315790 ly
                            //FOD F0056 2016/10/24 liuming end
                            text:qsTr("This will restore vehicle factory defaults.") + systemCtrl.emptyString
                            color:"#656565"
                            font.pixelSize: 26
                            horizontalAlignment: Label.AlignLeft//FOD #F0192 2017/2/6 BAOJINFENG begin
                        }
                    }
                    //DEl #128980 2016/12/14 liuming begin
                    //add F0078 2016/11/1 liuming begin
                    /***************************  Set Picture Default  ******************************/
                    //                    Row
                    //                    {
                    //                        id: set_picture_Default
                    //                        width: flick.width
                    //                        height: 86
                    //                        HMILabel
                    //                        {
                    //                            width: 638 - 142
                    //                            y:25
                    //                            height: 30
                    //                            text:qsTr("Picture defaults") + systemCtrl.emptyString
                    //                            color:"#e1e1e1"
                    //                            font.pixelSize: 30
                    //                            verticalAlignment: Text.AlignVCenter
                    //                            horizontalAlignment: Text.AlignLeft
                    //                        }
                    //                        HMIButton
                    //                        {
                    //                            id: picture_Default_btn
                    //                            width: 262
                    //                            height: 78
                    //                            btnImg: "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262"+bgImageStyle
                    //                            HMILabel
                    //                            {
                    //                                width: 262
                    //                                height: 78
                    //                                text:qsTr("Set") + systemCtrl.emptyString
                    //                                color:"#e1e1e1"
                    //                                font.pixelSize: 30
                    //                                anchors.horizontalCenter: parent.horizontalCenter
                    //                                anchors.verticalCenter:  parent.verticalCenter
                    //                            }

                    //                            onPressed:
                    //                            {
                    //                                picture_Default_btn.btnImg="qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262_P" + bgImageStyle
                    //                            }
                    //                            onReleased:
                    //                            {
                    //                                picture_Default_btn.btnImg="qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262" + bgImageStyle
                    //                            }
                    //                            onClicked:
                    //                            {
                    //                                console.log("[onClicked] picture_Default_btn picture_Default_btn")
                    //                                settingCtrl.requesPictureDefault()
                    //                            }
                    //                        }

                    //                    }
                    //add F0078 2016/11/1 liuming end
                    //DEl #128980 2016/12/14 liuming end
                }
            }
        }
    }
    //ADD 125801 baojinfeng 2017/02/17 begin
    Timer
    {
        id:test
        interval: 320//120
        repeat: false
        running: false
        onTriggered:
        {
            switch(setIndex)
            {
            case 0:
            {
                //console.log("case 0 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                //ADD By qushh for bug 162780 start
                settingCtrl.setInternetDNS("8.8.8.8")
                //ADD By qushh for bug 162780 end
                settingCtrl.setDefaultBrightness(7,0)
                break;
            }
            case 1:
            {
                //console.log("case 1 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.setDefaultBrightness(4,1)
                break;
            }
            case 2:
            {
                //console.log("case 2 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.setDefaultIPCBrightness(7,0)
                break;
            }
            case 3:
            {
                //console.log("case 3 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.setDefaultIPCBrightness(7,1)
                break;
            }
            case 4:
            {
                //console.log("case 4 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.setDefaultHUDBrightness(7,0)
                break;
            }
            case 5:
            {
                //console.log("case 5 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.setDefaultHUDBrightness(7,1)
                break;
            }
            case 6:
            {
                //console.log("case 6 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                //FOD baojinfeng 2017/02/22 begin
//                if(2 == acCtrl.getIgnitionDate())
//                {
//                    settingCtrl.iAssistance = 0;
//                    settingCtrl.iEba = Assistancelist.EBA_ON
//                }
//                else
//                {
//                    //do nothing
//                }
                //FOD baojinfeng 2017/02/22 end

                break;
            }
            case 7:
            {
                //console.log("case 7 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.setseatmemoryswitch(1,1);//ADD #125801 baojinfeng 2016/12/29
                break;
            }
            case 8:
            {
                //console.log("case 8 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iHorn = Settinglist.HORN_LIGHTS
                break;
            }
            case 9:
            {
                //console.log("case 9 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iAmbient =Settinglist.AMBIENT_CHOICE_CHECKED
                break;
            }
            case 10:
            {
                //console.log("case 10 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iSpeedAutoLock  = Settinglist.SPEED_AUTOLOCK_CHOICE_CHECKED
                break;
            }
            case 11:
            {
                //console.log("case 11 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iDoor  = Settinglist.DOORS_ALLDOORS
                break;
            }
            case 12:
            {
                //console.log("case 12 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iAutoUnlock  = Settinglist.DOORS_ALLDOORS
                break;
            }
            case 13:
            {
                //console.log("case 13 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iAutoRelock  = Settinglist.AUTORELOCK_CHOICE_BOX_CHECKED
                break;
            }
            case 14:
            {
                //console.log("case 14 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iETG  = Settinglist.ETG_CHOICE_CHECKED
                break;
            }
            case 15:
            {
                //console.log("case 15 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.setCurrentTime(2018,1,1,0,0,0)
                break;
            }
            case 16:
            {
                //console.log("case 16 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iHourMode = Settinglist.HOURMODE_12
                break;
            }
            case 17:
            {  
               //console.log("case 17 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                   systemCtrl.changLanguage(2);
                break;
            }
            case 18:
            {
                //console.log("case 18 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iMirrorAutoFold  = Settinglist.MIRROR_AUTO_FOLD_CHOICE_CHECKED
                break;
            }
            case 19:
            {
                //console.log("case 19 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iEasyentry = Settinglist.EASYENTRY_EASYEXIT_CHOICE_CHECKED
                break;
            }
            case 20:
            {
                //console.log("case 20 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iDaytimeRunning  = Settinglist.DAYTIME_CHOICE_BOX_CHECKED
                break;
            }
            case 21:
            {
                //console.log("case 21 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iFollowMeHomeT  = Settinglist.FOLLOWMEHOME_TIME_SIXTY
                break;
            }
            case 22:
            {
                //console.log("case 22 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iWelcomeLight  = Settinglist.WELCOMELIGHT_SIXTY
                break;
            }
            case 23:
            {
                console.log("case 23 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                if(acCtrl.getIgnitionDate() == Assistancelist.IGNITION_ON || acCtrl.getIgnitionDate() == Assistancelist.ENGINE_ON)
                {
                    if(settingCtrl.iWirelessChargSwitch  == Settinglist.WIRELESSCHARGE_CHOICE_CHECKED)
                    {
                       settingCtrl.iWirelessChargSwitch  = Settinglist.WIRELESSCHARGE_CHOICE_BOX
                    }
                    else
                    {
                         settingCtrl.iWirelessChargSwitch  = Settinglist.WIRELESSCHARGE_CHOICE_BOX
                    }
                }
                else if(acCtrl.getIgnitionDate() == Assistancelist.IGNITION_ACC)
                {
                    if(settingCtrl.iWirelessChargSwitch  == Settinglist.WIRELESSCHARGE_CHOICE_CHECKED)
                    {
                    settingCtrl.iWirelessChargSwitch  = Settinglist.WIRELESSCHARGE_CHOICE_CHECKED
                    }
                    else
                    {
                      settingCtrl.iWirelessChargSwitch  = Settinglist.WIRELESSCHARGE_CHOICE_BOX
                    }
                }
               break;
            }
            case 24:
            {
                console.log("case 24 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                settingCtrl.iMemorymode = Settinglist.MEMORYMODE_KEY
                break;
            }
            case 25:
            {
                //console.log("case 25 print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
                //FOD baojinfeng 2017/02/22 begin
//                if(2 == acCtrl.getIgnitionDate())
//                {
//                    settingCtrl.iAssistance = 2;
//                    settingCtrl.setFcw(1,2,0)
//                }
//                else
//                {
//                    //do nothing
//                }
                //FOD baojinfeng 2017/02/22 end
                //timerFinish = true
               // diagCtrl.eepromInitialize();
                break;
            }
            default:
            {
                break;
            }
            }
            //add by plc for #330559
            console.debug("#### systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_SYS_NAVI) = "+systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_SYS_NAVI))

               if(1 == systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_SYS_NAVI))
                {
                    if(setIndex == 25)
                    {
                        console.log("@@@ naviRecoverFinish = "+naviRecoverFinish)
                        if(naviRecoverFinish)//add by plc for #316245
                        {
                            console.log("setIndex == 25")
                            settingCtrl.requestMHURecovery();
                        }
                        else
                        {
                            console.log("----plc---->rest.start")
                            rest.start()
                        }
                    }
                    else if(setIndex < 25)
                    {
                        console.log("setIndex--------------------->:"+setIndex)
                        setIndex = setIndex+1;
                        test.running = true;
                    }
                }
               else
               {
                   if(setIndex == 25)
                   {
                      settingCtrl.requestMHURecovery();
                   }
                   else if(setIndex < 25)
                   {
                       console.log("setIndex--------------------->:"+setIndex)
                       setIndex = setIndex+1;
                       test.running = true;
                   }
               }

        }
        //add by plc for #330559
        }
	//add by plc for #317225 start
    Timer
    {
        id:rest
        running: false
        repeat: false
        interval: 10000
        onTriggered:
        {
            console.log("----plc--->2222222")
            ScreenManager.hideOverlay(WindowsList.SETTING_VEHICLERECOVERINGPOP)
            ScreenManager.showOverlay(WindowsList.SETTING_DEFAULTFAILE)
        }
	//add by plc for #317225 end
    }
    //ADD 125801 baojinfeng 2017/02/17 end
    
    //ADD #125801 baojinfeng 2016/12/22 begin
    Connections{
        target: naviCtrl

        onNavigetRestoreFactory:
        {
            console.debug("#### onNavigetRestoreFactory MessageTransfer.getLineDiagClearNaviInfoFlag() = "+MessageTransfer.getLineDiagClearNaviInfoFlag())
            if(MessageTransfer.getLineDiagClearNaviInfoFlag() == true)
            {

            }
            else
            {
                //add by plc for #325294
                naviRecoverFinish=true
                console.log("@1111@ naviRecoverFinish = "+naviRecoverFinish)
                if(0 == systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_SYS_NAVI))
                {
                    naviRecoverFinish = true;
                    if (setIndex == 25)
                    {
                        settingCtrl.requestMHURecovery();
                    }
                }
                else if(1 == systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_SYS_NAVI))
                {
                    if(naviRecoverFinish)
                    {
                        if (setIndex == 25)
                        {
                            settingCtrl.requestMHURecovery();
                        }
                    }
                    else
                    {
                        rest.start()
                    }
                }
                else
                {
                    if(naviRecoverFinish)
                    {
                        if (setIndex == 25)
                        {
                            settingCtrl.requestMHURecovery();
                        }
                    }
                    else
                    {
                        rest.start()
                    }
                }
            }
        }
    }
//    Connections
//    {
//        target: diagCtrl
//        onEepRomInitRes:
//        {
//            eppromFinish == true;
//            console.log("##### onEepRomInitRes")
//            if (setIndex == 25)
//            {
//                settingCtrl.requestMHURecovery();
//            }
//        }
//    }
    Connections
    {
        target: settingCtrl
        onVehicleResetFlagChanged:
        {
	//add by plc for #326094
            console.log("#444# settingCtrl.iBsd = "+settingCtrl.iBsd)
            //FOD #125801 baojinfeng 2016/12/29 begin
            //FOD baojinfeng 2017/02/22 begin
            if(2 == acCtrl.getIgnitionDate() || 3 == acCtrl.getIgnitionDate())
            {
                settingCtrl.iAssistance = 1;
                settingCtrl.iBsd = Assistancelist.BSD_ON
            }
            else if(1 == acCtrl.getIgnitionDate())
            {
              if(settingCtrl.iBsd == Assistancelist.BSD_ON)
              {
                  settingCtrl.iAssistance = 1;
                  console.log("### settingCtrl.iBsd = "+settingCtrl.iBsd)
                   settingCtrl.iBsd = Assistancelist.BSD_ON
              }
              else
              {
                   settingCtrl.iAssistance = 1;
                  console.log("#222# settingCtrl.iBsd = "+settingCtrl.iBsd)
                   settingCtrl.iBsd = Assistancelist.BSD_OFF
              }
            }
            //FOD baojinfeng 2017/02/22 end

            test.running = true;
            //DEL 125801 baojinfeng 2017/02/17 begin
            //            settingCtrl.iAssistance = 0;
            //            settingCtrl.iEba = Assistancelist.EBA_ON
            //            settingCtrl.iAssistance = 2;
            //            settingCtrl.setFcw(1,2,0)

            //            settingCtrl.iHorn = Settinglist.HORN_LIGHTS
            //            settingCtrl.iAmbient =Settinglist.AMBIENT_CHOICE_CHECKED

            //            settingCtrl.iSpeedAutoLock  = Settinglist.SPEED_AUTOLOCK_CHOICE_CHECKED
            //            settingCtrl.iDoor  = Settinglist.DOORS_ALLDOORS
            //            settingCtrl.iAutoUnlock  = Settinglist.DOORS_ALLDOORS
            //            settingCtrl.iAutoRelock  = Settinglist.AUTORELOCK_CHOICE_BOX_CHECKED
            //            settingCtrl.iETG  = Settinglist.ETG_CHOICE_CHECKED

            //            settingCtrl.setCurrentTime(2018,1,1,0,0)
            //            settingCtrl.iHourMode = Settinglist.HOURMODE_12
            //            systemCtrl.changLanguage(Layout.LANGUAGE_CHINESE);

            //            settingCtrl.iMirrorAutoFold  = Settinglist.MIRROR_AUTO_FOLD_CHOICE_CHECKED
            //            settingCtrl.iEasyentry = Settinglist.EASYENTRY_EASYEXIT_CHOICE_CHECKED
            //            settingCtrl.iDaytimeRunning  = Settinglist.DAYTIME_CHOICE_BOX_CHECKED
            //            settingCtrl.iFollowMeHomeT  = Settinglist.FOLLOWMEHOME_TIME_SIXTY
            //            settingCtrl.iWelcomeLight  = Settinglist.WELCOMELIGHT_SIXTY
            //            settingCtrl.iWirelessChargSwitch  = Settinglist.WIRELESSCHARGE_CHOICE_CHECKED
            //            settingCtrl.iMemorymode = Settinglist.MEMORYMODE_KEY
            //            //FOD #125801 baojinfeng 2016/12/29 begin

            //            settingCtrl.setseatmemoryswitch(1,1);//ADD #125801 baojinfeng 2016/12/29
            //            settingCtrl.requestMHURecovery();
            //DEL 125801 baojinfeng 2017/02/17 end
        }
    }
    //ADD #125801 baojinfeng 2016/12/22 end
}