summaryrefstree
path: root/usr/bin/qml/ipod/IPod_Search.qml
blob: e4b7bab2b5c2163704e99dd68ab516c4b6483534 (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
import QtQuick 2.0
import Label 2.0
import "../com/neusoft/auto/widgets"
import "ipod_define.js" as StatusList
import "../eventsList.js" as EventsList
import "../layoutList.js" as Layout
import "../windowsList.js" as WindowsList
HMIWindow
{
    id:win_search


    property string ipod_songtitle: ipodCtrl.ipod_titleName
    property int ipod_playstatus: ipodCtrl.ipod_playstatus
    property int listheight: 44
    //property int firstListIndex:0
    property int searchtype:ipodCtrl.ipod_getSearchType()
    property int searchlevel: ipodCtrl.ipod_getLevelType()
    property int listviewshoworhide:ipodCtrl.ipod_listViewShoworHide
    property int gridviewshoworhide:ipodCtrl.ipod_gridViewShoworHide
    property int iLanguage: systemCtrl.iLanguage

//    property string songpath: ""
    property string listpath:ipodCtrl.ipod_list_path
    property QtObject listtmp
    Component.onCompleted:
    {
        windowID = WindowsList.IPOD_SEARCH
    }
    onCloseWindow: {
        console.log(" ********************colse window ipod search------------------extendType="+extendType +" closeType="+closeType)
        if((extendType == Layout.FORM_EXTEND_MAIN)&&(closeType == Layout.CLOSE_BY_CLOSE))
        {
            //systemCtrl.reqSource(Layout.HMI_SRC_DUMMY,Layout.HMI_SRC_START,Layout.HMI_SRC_Front);
        }
    }
//    function songpath_change()
//    {

//        switch(ipodCtrl.ipod_getListPath())
//        {
//        case StatusList.IPOD_SEARCH_PLAYLIST:
//            songpath = qsTr("../Play list")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_ALLSONG:
//            songpath = qsTr("../All song")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_ALBUM:
//            songpath = qsTr("../Albums")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_ARTIST:
//            songpath = qsTr("../Artists")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_GENRE:
//            songpath = qsTr("../Genres")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_PODCAST:
//            songpath = qsTr("../Podcasts")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_AUDIOBOOK:
//            songpath = qsTr("../Audio book")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_PLAYLIST_TO_SONG:
//            songpath = qsTr("../Playlists/Songs")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_ALBUM_TO_SONG:
//            songpath = qsTr("../Albums/Songs")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_GENRE_TO_ARTIST:
//            songpath = qsTr("../Genres/Artists")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_GENRE_TO_ARTIST_TO_ALBUM:
//            songpath = qsTr("../Genres/Artists/Albums")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_GENRE_TO_ARTIST_TO_ALBUM_TO_SONG:
//            songpath = qsTr("../Genres/Artists/Albums/Songs")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_ARTIST_TO_ALBUM:
//            songpath = qsTr( "../Artists/Albums")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_ARTIST_TO_ALBUM_TO_SONG:
//            songpath = qsTr("../Artists/Albums/Songs")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_PODCAST_TO_SONG:
//            songpath = qsTr("../Podcasts/Songs")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_AUDIOBOOK_TO_SONG:
//            songpath = qsTr("../Audio book/Songs")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_COMPOSER:
//            songpath = qsTr("../Composers")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_COMPOSER_TO_ALBUM:
//            songpath = qsTr("../Composers/Albums")+systemCtrl.emptyString
//            break;
//        case StatusList.IPOD_SEARCH_COMPOSER_TO_ALBUM_TO_SONG:
//            songpath = qsTr("../Composers/Albums/Songs")+systemCtrl.emptyString
//            break;
//        default:
//            break;

//        }
//    }

    onVisibleChanged:
    {
        if(win_search.visible ==true)
        {
           bNoSwitchBarVisiable = true  //FOD 2018/09/26 by wangyuecheng for formChange
           // ipod_search_list.visible = false
            if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
            {
                ipodCtrl.ipod_setLevelType(0)
                //FOD by lishunan for #309437 start
                ipodCtrl.ipod_setSearchType(1)
                //ipodCtrl.ipod_setSearchType(4)
                //FOD by lishunan for #309437 end
            }
            else
            {
                searchtype = ipodCtrl.ipod_getSearchType()
                searchlevel = ipodCtrl.ipod_getLevelType()
                ipodCtrl.ipod_setSearchType(searchtype)
                ipodCtrl.ipod_setLevelType(searchlevel)

            }
            search_list_view.model = ipodCtrl.ipod_GridViwListModel

            play_list_view.currentIndex = searchtype
            search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
            //songpath_change();
            // ipodCtrl.ipod_getFolderListPath(0,"","","0","");
            console.log("IPod_Search.qml onVisibleChanged")
            ipodCtrl.ipod_set_Path();
//DEL 2018/09/27 for formChange
            /*if(((((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 2)
                || (((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 3))
                    && (((ScreenManager.getFormInfo(WindowsList.IPOD_MAIN))&7) == 0))
            {
                folderBack_button.visible = true
            }
            else
            {
	        //DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
                //folderBack_button.visible = false
		//DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
            }
*/
            ipodCtrl.ipodCtrlExtendedBodyStateChange(StatusList.IPOD_FOLDER_OPEN)

        }
        else
        {

            ipodCtrl.ipodCtrlExtendedBodyStateChange(StatusList.IPOD_FOLDER_CLOSE)
            search_list_view.model = listtmp
            bNoSwitchBarVisiable = false    //FOD 2018/09/27 by wangyuecheng for changeForm
        }

    }
    //ADD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
    //DEL by wyc 2018/10/11 begin
    /*Image {
        id: bottomFunctionBG
        x: 0
        y: 876
        source: "qrc:MATERIAL/MATERIAL_FUNCTION_BUTTON_BG"+bgImageStyle
    }*/
    //DEL by wyc 2018/10/11 end
    //ADD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end

    HMILabel
    {
        id:ipod_search
        x: 240//436//53-Layout.FORM_X
        y: 25
        width: 480//108//201
        height: 30//29
        //        verticalAlignment: Label.AlignVCenter
                horizontalAlignment: Label.AlignHCenter//Label.AlignLeft
        font.pixelSize: 30
        text: qsTr("Folder")+systemCtrl.emptyString
    }
    HMIButton
    {
        id:folderBack_button
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
        x:5//0
        y:8//5
        width:90//50//138
        height:64//34//64//70
        visible:true
        //btnImg:folderBack_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON"+bgImageStyle
        //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
	onClicked:
        {
            //FOD 2018/09/27 by wangyuecheng for changeForm begin
            //ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.IPOD_MAIN)
            ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.IPOD_MAIN)
	    //FOD 2018/09/27 by wangyuecheng for changeForm end
        }
    }
    Image{
        //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
        x:5//20
        y: 8//23//21
        width:50//20
        height:64//34
        //source:"qrc:MATERIAL/MATERIAL_M8X_ICON_BACK"+bgImageStyle
        source:folderBack_button.pressed?"qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle
        //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
	visible: folderBack_button.visible
    }
    HMILabel{
        //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
        x: 58//40//51-4//61
        y: 25//5//23
        width: 145//90//98//87//67
        height: 35//70//30//28
        font.pixelSize: 30
        text: qsTr("Back")+systemCtrl.emptyString
        horizontalAlignment: Label.AlignLeft
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
        verticalAlignment: Label.AlignVCenter
        visible: folderBack_button.visible
    }






    HMILabel
    {
        id: filePath
        x:174//156//392
        y:60//50//59
        width:612//648//175
        height:20//30 //21
        //verticalAlignment: Label.AlignVCenter
        horizontalAlignment: Label.AlignHCenter
        elide: Label.ElideLeft
        font.pixelSize: 18
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
        //Fod #ST127672  2016/11/16 cxx begin
        //text: "> "+listpath
        //text: ":/"+listpath
        //Fod #ST127672  2016/11/16 cxx end
        text: listpath
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
        wtitesize:2
        //visible: (StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?false:true
    }
    HMIButton
    {
        id:back_button
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
        x: 853//822
        y: 9//5
        //width:76//138
        //height:61//70
        //btnIcon:"qrc:MATERIAL/MATERIAL_M8X_ICON_RETURN-FOLDER"+bgImageStyle
        //btnImg:back_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle
        btnIcon:"qrc:MATERIAL/MATERIAL_ICON_RETURN-FOLDER"+bgImageStyle
        btnImg:back_button.pressed?"qrc:MATERIAL/MATERIAL_ICON_RETURN-FOLDER_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_RETURN-FOLDER"+bgImageStyle
        //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
	onClicked:
        {
            ipodCtrl.ipod_setLevelType(-1)
            ipodCtrl.ipod_getFolderListBackPath();
            console.log("IPod_Search.qml back_button onClicked")
            ipodCtrl.ipod_set_Path();
        }
        visible:((0==ipodCtrl.ipod_getLevelType())?false:true)
    }
    Component //play_list_delegate
    {
        id:play_list_delegate
        Item
        {
            id: list_item1
            width: 842
            height: 78
            HMIButton
            {
                width: 842
                height: 78
                id: list_button
		//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
                //btnImg:list_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle
                //                          :"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle
                btnImg:list_button.pressed?"qrc:MATERIAL/MATERIAL_LIST_78_P"+bgImageStyle
                                          :"qrc:MATERIAL/MATERIAL_LIST_78"+bgImageStyle
                //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
		/*
		//delete by cxx for 344456
		//add by ghy for 329576
                Image
		{
			//FOD [2017-2-6] pengc begin
			x: 40//98-58
			y: 23//183-160
			//FOD [2017-2-6] pengc end
			width: 21
			height: 32
			//modify by Jiyulong for #171870 start 2017/5/9
			//modify by Jiyulong for STbugList_4488 start 2017/7/14
			visible:col0 == ipod_songtitle?true:false
			//modify by Jiyulong for STbugList_4488 end
			//modify by Jiyulong for #171870 end
			source:"qrc:MATERIAL/MATERIAL_TRIANGLE_PLAY"+bgImageStyle
		}
		//add by ghy for 329576
		//delete by cxx for 344456
		*/
                HMILabel
                {

                    id:song_name
                    x:84
                    //y:24//20
//                    anchors.left: list_filetype.right
                    width: 690//842//690//694//690//674//700-list_filetype.width
                    height:78//38//40//32
                    verticalAlignment: Label.AlignVCenter
                    horizontalAlignment: Label.AlignLeft
                    elide: Label.ElideRight
                    font.pixelSize:30
                    text:((ipodCtrl.ipod_getListPath() == StatusList.IPOD_SEARCH_PLAYLIST)||(ipodCtrl.ipod_getListPath() == StatusList.IPOD_SEARCH_PODCAST)||(ipodCtrl.ipod_getListPath() == StatusList.IPOD_SEARCH_AUDIOBOOK))?col0
                         :"" == col0?qsTr("Unknown")+systemCtrl.emptyString:col0
                    wtitesize:2
                }
                onClicked:
                {
//                    if(ipod_search_list.visible == true)
//                    {
//                        ipod_search_list.visible = false;
//                    }

                    if(listviewshoworhide == StatusList.IPOD_LISTVIEW_GRIDEVIEW_SHOW)
                    {
		    	//Fod by cxx for CarPlay and ipod  2018/11/12 start
		        //if(Layout.HMI_SRC_IPOD != systemCtrl.getCurrentSource())
                        if((Layout.HMI_SRC_IPOD != systemCtrl.getCurrentSource()) && (Layout.HMI_SRC_CARPLAY_MUSIC != systemCtrl.getCurrentSource()))
                        //Fod by cxx for CarPlay and ipod  2018/11/12 end
			{

                        }
                        else
                        {
                            ipodCtrl.ipod_playSelectSong(index);
                            //FOD 2018/09/27 by wangyuecheng for changeForm begin
                            //ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.IPOD_MAIN)
                            ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.IPOD_MAIN)
	                    //FOD 2018/09/27 by wangyuecheng for changeForm end

                        }

                        //ipodCtrl.ipod_SetLoadingFlag(StatusList.IPOD_START_LOADING)
                    }
                    else
                    {
                        search_list_view.cancelFlick();
                        ipodCtrl.ipod_setLevelType(-2)
                        ipodCtrl.ipod_get_playList_or_AlbumPath(col0);
                        ipodCtrl.ipod_getFolderListPath(col2,col0,col0,col1,col0);
                        console.log("IPod_Search.qml song_name onClicked")
                        ipodCtrl.ipod_set_Path();

                    }
                }

            }
        }
    }

    HMIListView
    {
        id: search_list_view
        x:58
        y: 81
        height: 720//bMaxWindow == true?719:239//bMaxWindow == true?574:190
        width:878//872// 2017/01/23 cxx 930-58//842//add by lqy
        spacing: 2
        rightMargin:1
        scrollBar:true
        scrollBar_edge:0
        scrollBar_width:8
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
        //scrollBar_img:"qrc:MATERIAL/MATERIAL_M8X_SLIDER_BAR"+bgImageStyle
        scrollBar_img:"qrc:MATERIAL/MATERIAL_SLIDER_BAR_CENTRE"+bgImageStyle
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
        model:ipodCtrl.ipod_GridViwListModel
        delegate: play_list_delegate
        snapMode:ListView.SnapToItem
//        boundsBehavior: Flickable.StopAtBounds
//        focus: true

        Component.onCompleted:{
        }

    }

//    ListModel
//    {
//        id:mychnModel
//        ListElement{text1:"播放列表"}
//        ListElement{text1:"流派"}
//        ListElement{text1:"艺术家"}
//        ListElement{text1:"专辑"}
//        ListElement{text1:"全部歌曲"}
//        ListElement{text1:"作曲家"}
//        ListElement{text1:"播客"}
//        ListElement{text1:"有声读物"}
//    }
    ListModel
    {
        id:myEnglishModel
        //FOD by lishunan for #309437 start
        ListElement{text1:QT_TR_NOOP("Play list")}
        ListElement{text1:QT_TR_NOOP("All song")}
        ListElement{text1:QT_TR_NOOP("Albums")}
        ListElement{text1:QT_TR_NOOP("Artists")}
        ListElement{text1:QT_TR_NOOP("Genres")}
        ListElement{text1:QT_TR_NOOP("Composers")}
        ListElement{text1:QT_TR_NOOP("Podcasts")}
        ListElement{text1:QT_TR_NOOP("Audio book")}
        //FOD by lishunan for #309437 end
    }

    Component
    {
        id:myDegate
        Item
        {
            id: list_item
            width: 154
            height: 70
            HMIButton
            {
                width: 154
                height: 70
                id: eight_button
		//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
                //btnImg:eight_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_RADIO_BUTTON_154_P"+bgImageStyle
                //        :(play_list_view.currentIndex == index)?"qrc:MATERIAL/MATERIAL_M8X_RADIO_BUTTON_154_P"+bgImageStyle
                //                           :"qrc:MATERIAL/MATERIAL_M8X_RADIO_BUTTON_154"+bgImageStyle
                btnImg:eight_button.pressed?"qrc:MATERIAL/MATERIAL_RADIO_BUTTON_154_P"+bgImageStyle
                        :(play_list_view.currentIndex == index)?"qrc:MATERIAL/MATERIAL_RADIO_BUTTON_154_P"+bgImageStyle
                                           :"qrc:MATERIAL/MATERIAL_RADIO_BUTTON_154"+bgImageStyle

                //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
		labelText:qsTr(myEnglishModel.get(index).text1)+systemCtrl.emptyString
                // Fod #FunctionDesign 2016/12/30 ln begin
                // labelSize:26
                labelSize:((systemCtrl.iLanguage == 0) || (systemCtrl.iLanguage == 2))?26:20//30
                // Fod #FunctionDesign 2016/12/30 ln end

                onClicked:
                {

                    play_list_view.currentIndex = index

                    //firstListIndex = index
                    ipodCtrl.ipod_setLevelType(0)

                    //ipod_search_list.visible = false

                    if(index == 0)
                    {
                        search_list_view.cancelFlick();
                        search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
                        search_list_view.listViewBar = 0//ADD #161345 2017/3/29 baojinfeng begin
                        ipodCtrl.ipod_setSearchType(StatusList.IPOD_LIST_PLAYLIST)
                        ipodCtrl.ipod_getFolderListPath(0,"","","","");
//                        songpath = qsTr("../Play list")+systemCtrl.emptyString

                    }
                    //FOD by lishunan for #309437 start
                    else if(index == 1)//else if(index == 4)
                    //FOD by lishunan for #309437 end
                    {
                        search_list_view.cancelFlick();
                        search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
                        search_list_view.listViewBar = 0//ADD #161345 2017/3/29 baojinfeng begin
                        ipodCtrl.ipod_setSearchType(StatusList.IPOD_LIST_ALLSONG)
                        ipodCtrl.ipod_getFolderListPath(0,"","","0","");
//                        songpath = qsTr("../All song")+systemCtrl.emptyString

                    }
                    //FOD by lishunan for #309437 start
                    else if(index == 2)//else if(index == 3)
                    //FOD by lishunan for #309437 end
                    {
                        search_list_view.cancelFlick();
                        search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
                        search_list_view.listViewBar = 0//ADD #161345 2017/3/29 baojinfeng begin
                        ipodCtrl.ipod_setSearchType(StatusList.IPOD_LIST_ALBUM)
                        ipodCtrl.ipod_getFolderListPath(0,"","","0","");
//                        songpath = qsTr("../Albums")+systemCtrl.emptyString

                    }
                    //FOD by lishunan for #309437 start
                    else if(index == 3)//else if(index == 2)
                    //FOD by lishunan for #309437 end
                    {
                        search_list_view.cancelFlick();
                        search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
                        search_list_view.listViewBar = 0//ADD #161345 2017/3/29 baojinfeng begin
                        ipodCtrl.ipod_setSearchType(StatusList.IPOD_LIST_ARIST)
                        ipodCtrl.ipod_getFolderListPath(0,"","","0","");
 //                       songpath = qsTr("../Artists")+systemCtrl.emptyString

                    }
                    //FOD by lishunan for #309437 start
                    else if(index == 4)//else if(index == 1)
                    //FOD by lishunan for #309437 end
                    {
                        search_list_view.cancelFlick();
                        search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
                        search_list_view.listViewBar = 0//ADD #161345 2017/3/29 baojinfeng begin
                        ipodCtrl.ipod_setSearchType(StatusList.IPOD_LIST_GENRE)
                        ipodCtrl.ipod_getFolderListPath(0,"","","0","");
//                        songpath = qsTr("../Genres")+systemCtrl.emptyString

                    }
                    else if(index == 5)
                    {
                        search_list_view.cancelFlick();
                        search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
                        search_list_view.listViewBar = 0//ADD #161345 2017/3/29 baojinfeng begin
                        ipodCtrl.ipod_setSearchType(StatusList.MH_MEDIA_COMPOSER)
                        ipodCtrl.ipod_getFolderListPath(0,"","","0","");
//                        songpath = qsTr("../Composers")+systemCtrl.emptyString

                    }
                    else if(index == 6)
                    {
                        search_list_view.cancelFlick();
                        search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
                        search_list_view.listViewBar = 0//ADD #161345 2017/3/29 baojinfeng begin
                        ipodCtrl.ipod_setSearchType(StatusList.MH_MEDIA_PODCAST)
                        ipodCtrl.ipod_getFolderListPath(0,"","","0","");
//                        songpath = qsTr("../Podcasts")+systemCtrl.emptyString

                    }
                    else if(index == 7)
                    {
                        search_list_view.cancelFlick();
                        search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
                        search_list_view.listViewBar = 0//ADD #161345 2017/3/29 baojinfeng begin
                        ipodCtrl.ipod_setSearchType(StatusList.MH_MEDIA_AUDIOBOOK)
                        ipodCtrl.ipod_getFolderListPath(0,"","","0","");
//                        songpath = qsTr("../Audio book")+systemCtrl.emptyString

                    }

                    else
                    {
                    }
                    console.log("IPod_Search.qml eight_button onClicked")
                    ipodCtrl.ipod_set_Path();



                }
            }
        }
    }
    //Add #129445  2016/11/24 cxx begin
    MouseArea
    {
        id:scroolbarcover
        x:900// 2017/01/23 cxx 58+842
        y:81
        width:60
        height: 720//bMaxWindow == true?719:239//719:235//bMaxWindow == true?574:190

    }
    //Add #129445  2016/11/24 cxx end
    HMIButton
    {
        id:leftarrow
        x:0
        y:805//bMaxWindow == true?805:325
        width:89
        height: 70
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
        //btnImg:leftarrow.pressed?"qrc:MATERIAL/MATERIAL_M8X_RADIO_BUTTON_89_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_RADIO_BUTTON_89"+bgImageStyle
        //btnIcon:"qrc:MATERIAL/MATERIAL_M8X_RADIO_ARROW_LEFT"+bgImageStyle
        btnImg:leftarrow.pressed?"qrc:MATERIAL/MATERIAL_RADIO_BUTTON_89_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_RADIO_BUTTON_89"+bgImageStyle
        btnIcon:"qrc:MATERIAL/MATERIAL_RADIO_ARROW__LEFT"+bgImageStyle
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
        onClicked:
        {
            play_list_view.positionViewAtIndex(0 , ListView.Beginning)
        }

    }
    HMIButton
    {
        id:rigntarrow
        x:871
        y:805//bMaxWindow == true?805:325
        width:89
        height: 70
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
        //btnImg:rigntarrow.pressed?"qrc:MATERIAL/MATERIAL_M8X_RADIO_BUTTON_89_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_RADIO_BUTTON_89"+bgImageStyle
        //btnIcon:"qrc:MATERIAL/MATERIAL_M8X_RADIO_ARROW_RIGHT"+bgImageStyle
        btnImg:rigntarrow.pressed?"qrc:MATERIAL/MATERIAL_RADIO_BUTTON_89_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_RADIO_BUTTON_89"+bgImageStyle
        btnIcon:"qrc:MATERIAL/MATERIAL_RADIO_ARROW_RIGHT"+bgImageStyle
	//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
        onClicked:
        {
            play_list_view.positionViewAtIndex(3 , ListView.Beginning)
            //play_list_view.currentIndex =3

        }

    }
    HMIListView
    {
        id: play_list_view
        x:91
        y:805//bMaxWindow == true?805:325
        width: 780//779
        height:70
        spacing: 2
        model: myEnglishModel//(iLanguage == 0)?myEnglishModel:mychnModel
        delegate: myDegate
        orientation: ListView.Horizontal
        snapMode: ListView.SnapToItem

    }



    HMILabel{
        id:no_File   // wu wen jian
	//modify by Jiyulong for #161347 start 2017/3/29
        x:135//ln 136//335
        y:385//bMaxWindow == true?364:144//440:171//ln 402:163//274-132

        width:690//ln 690//420-349+5
        height:35//30//78 //ln 78//295-274
	//modify by Jiyulong for #161347 end
        font.pixelSize: 30//24
        text: qsTr("No file")+systemCtrl.emptyString
        //anchors.horizontalCenter: //parent.horizontalCenter
        horizontalAlignment: Label.AlignHCenter
        //anchors.verticalCenter: search_list_view.verticalCenter
        verticalAlignment: Label.AlignVCenter
        wrapMode: Label.NoWrap
        visible:(ipodCtrl.ipod_nofile == StatusList.IPOD_NOT_HAVE_FILE)?true:false
    }
    //DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
    /*Image
    {
        id:no_use_button
        x:90
        //Fod #154605 2017/3/3 cxx begin
        y:881//bMaxWindow?881:401//882:402
        //Fod #154605 2017/3/3 cxx end
        width:780
        height:78
        visible:true
        source:"qrc:MATERIAL/MATERIAL_M8X_FUNCTION_1_BUTTON"+bgImageStyle
    }*/
    //DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end


    //    Item
    //    {
    //        id:serch_loading_window
    //        height:parent.height
    //        width: parent.width
    //        visible: false
    //        Image
    //        {
    //            id: loadingBackGroundImg1
    //            width:156
    //            height: 151
    //            x:306-17
    //            y:systemCtrl.isDispFullScreen?(416-139):(286-139)
    //            source: "../images/Type_E_Audio/E_11/E_11_Audio_playing_Loading_BG.png"
    //        }
    //        IPod_Loading
    //        {
    //            id: serchLoading
    //            width:140
    //            height: 140
    //            anchors.centerIn:loadingBackGroundImg1

    //        }
    //        MouseArea
    //        {
    //            anchors.fill: parent
    //        }
    //    }
    //**********************************************************************//
    //                            Connections                               //
    //**********************************************************************//
    Connections
    {
        target:ipodCtrl
        onIpod_underwaySynchronizationChanged:
        {
            //FOD by lishunan for #309437 start
            play_list_view.currentIndex = 1//4
            //FOD by lishunan for #309437 end
        }
        onIpod_listViewShoworHidechange:
        {
            searchtype = ipodCtrl.ipod_getSearchType()
            searchlevel = ipodCtrl.ipod_getLevelType()
            console.log("onIpod_listViewShoworHidechange")
            ipodCtrl.ipod_set_Path();
            //songpath_change();
            //ADD #161345 2017/3/29 baojinfeng begin
            search_list_view.cancelFlick();
            search_list_view.listViewBar = 0
            search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
            //ADD #161345 2017/3/29 baojinfeng end
            if(0 == ipodCtrl.ipod_getLevelType())
            {
                back_button.visible = false
            }
            else
            {
                back_button.visible = true
            }

        }
        onIpod_gridViewShoworHidechange:
        {

            searchtype = ipodCtrl.ipod_getSearchType()
            searchlevel = ipodCtrl.ipod_getLevelType()
            console.log("onIpod_gridViewShoworHidechange")
            ipodCtrl.ipod_set_Path();
            //songpath_change();
            //ADD #161345 2017/3/29 baojinfeng begin
            search_list_view.cancelFlick();
            search_list_view.listViewBar = 0
            search_list_view.positionViewAtIndex(0,search_list_view.Beginning)
            //ADD #161345 2017/3/29 baojinfeng end
            if(0 == ipodCtrl.ipod_getLevelType())
            {
                back_button.visible = false
            }
            else
            {
                back_button.visible = true
            }

        }
        onIpod_noFile:
        {

            if(ipodCtrl.ipod_nofile == StatusList.IPOD_NOT_HAVE_FILE)
            {
                search_list_view.visible = false
                no_File.visible = true
            }
            else
            {
                search_list_view.visible = true
                no_File.visible = false
            }
            //songpath_change();
            //ipodCtrl.ipod_set_Path();
            if(0 == ipodCtrl.ipod_getLevelType())
            {
                back_button.visible = false
            }
            else
            {
                back_button.visible = true
            }
        }
        onIpod_list_path_changed:
        {
			console.log("onIpod_list_path_changed000000000000",listpath)
            listpath = ipodCtrl.ipod_list_path
			if(listpath == "All song")
			{
				play_list_view.currentIndex = 1
			}
        }

        onIpod_disconnect:
        {
	    // Add 2017/01/12 cxx begin
            play_list_view.positionViewAtIndex(0 , play_list_view.Beginning)
	    // Add 2017/01/12 cxx end
            play_list_view.currentIndex = 0
            //filePath.visible = false
        }

    }
    Connections
        {
            target: systemCtrl
            onAppLanguageChangOk:
            {
                console.log("onAppLanguageChangOk")
                ipodCtrl.ipod_set_Path();
                //songpath_change();
            }
        }
    //shang xia ping fan zhuan zhong disconnect iPod begin
    Connections
    {
        target:ScreenManager
//        onExchangeStateChanged://del by lium for screenchange begin
//        {
//            if((exchangeState == false)&&(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()))
//            {

//                if(((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 3||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 2)
//                {
//                    ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.IPOD_MAIN)
//                }

//            }
//        }//del by lium for screenchange end
    }
    //shang xia ping fan zhuan zhong disconnect iPod end
}