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
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
|
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:ipod_main_play_window
property string ipod_CoverPath: ipodCtrl.ipod_coveraddress
property string ipod_name: ipodCtrl.ipod_deviceName
property int ipod_repeatStatus: ipodCtrl.ipod_repeat_status
property int ipod_shuffelStatus: ipodCtrl.ipod_shuffel_status
// property int ipod_connectState:ipodCtrl.ipod_getDeviceConnectStatus()
//Fod review 2017/01/23 cxx begin
//property int ipod_scanState:ipodCtrl.ipod_underwaySynchronization // bool -> NG
property bool ipod_scanState:ipodCtrl.ipod_underwaySynchronization
//Fod review 2017/01/23 cxx end
property int ipod_loadingState:StatusList.IPOD_END_LOADING
//tag start
property string ipod_titlename: ipodCtrl.ipod_titleName
property string ipod_artistname: ipodCtrl.ipod_artistName
property string ipod_albumname: ipodCtrl.ipod_albumName
//tag end
//play start
property int ipod_playpausestatus: ipodCtrl.ipod_playstatus
//play end
property int songArea: 0
signal songChange()
//jin du tiao start
property string ipod_ptime:ipodCtrl.ipod_ptime
property double ipod_playbarscale: ipodCtrl.ipod_playbarscale
property string ipod_totaltime:ipodCtrl.ipod_totaltime
property int isDrafting:0
//jin du tiao end
property int ipod_which_apply: ipodCtrl.ipod_applay
property int ipod_third_apply: ipodCtrl.ipod_third_applay
// Fod review 2017/01/23 cxx begin
//property int ipod_overCurrentState: USBControl1.usb_overCurrentState // bool -> NG
property bool ipod_overCurrentState: USBControl1.usb_overCurrentState
// Fod review 2017/01/23 cxx end
property bool ipod_extendedbodystate:StatusList.IPOD_EXTENDED_BODY_CLOSE
//property bool ipod_folderWindowState:StatusList.IPOD_FOLDER_CLOSE//Delete #145405 2017/3/28 cxx
//Add #120136 2016/10/18 cxx Start
property bool ipod_seeking_end_flag:false
//Add #120136 2016/10/18 cxx End
//Add Design 2017/3/14 cxx begin
property int iLanguage: systemCtrl.iLanguage
//Add Design 2017/3/14 cxx begin
//ADD By qu-shh for auto display off start
property bool display_flag:false
//ADD By qu-shh for auto display off end
//modify by Jiyulong for #210943 start 2017/10/13
property bool ipod_scanErrorState:false
//modify by Jiyulong for #210943 end
property int ipod_write_error:139
Component.onCompleted:
{
windowID = WindowsList.IPOD_MAIN
}
onVisibleChanged:
{
if(true == ipod_main_play_window.visible)
{
systemCtrl.setiPodorCarpalyFlag(1)
//ScreenManager.sm_setMediaType(Layout.MEDIA_IPOD)//del by lium for screenchange
bMainWindow = true
bMediaEnterBarVisiable = true
mediaEnterBarType=Layout.MEDIA_TYPE_IPOD
//Add #F0096 2016/11/16 cxx begin
if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
//330858
console.log("timechange",ipod_ptime ,ipod_totaltime ,ipod_titlename ,ipod_artistname ,ipod_albumname ,ipod_playbarscale)
if(ipod_ptime != "00:00:00")
{
ipod_ptime = "00:00:00"
}
if(ipod_totaltime != "00:00:00")
{
ipod_totaltime = "00:00:00"
}
if(ipod_titlename != "")
{
ipod_titlename = ""
}
if(ipod_artistname != "")
{
ipod_artistname = ""
}
if(ipod_albumname != "")
{
ipod_albumname = ""
}
if(ipod_playbarscale != 0)
{
ipod_playbarscale = 0
}
//330858
//Fod IPC 2017/06/14 cxx begin
if(systemCtrl.getCurrentSource()==Layout.HMI_SRC_DUMMY)
{
ipodCtrl.ipod_enter_disconnect()
}
else
{
iPod_disconnect_for_ipc.start()
}
//Fod IPC 2017/06/14 cxx end
}
//Add #F0096 2016/11/16 cxx end
//modify by Jiyulong for #210943 start 2017/10/13
if(true == ipodCtrl.ipod_getScanErrorFlag())
{
ipodDisconnect.visible = false
ipod_no_file.visible = false
ipodLoading.visible = false
ipod_artistName.visible = false
ipod_current_play_song.visible = false
main_processbar_small.dragflag = false
ipod_scanErrorState = true
}
//modify by Jiyulong for #210943 end
if(ipodCtrl.getcp_ipod_status() == ipod_write_error)
{
ipodDisconnect.visible = false
ipod_no_file.visible = false
ipodLoading.visible = false
ipod_artistName.visible = false
ipod_current_play_song.visible = false
main_processbar_small.dragflag = false
ipod_scanErrorState = false
}
//add by ghy for 320026
ipodCtrl.setipod_flag(true);
//add by ghy for 320026
if(ipod_playpausestatus == StatusList.IPOD_PAUSE && StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())//330858
{
if(0 == isDrafting)
{
ipod_playbarscale=ipodCtrl.ipod_playbarscale
main_processbar_small.enterValue = ipod_playbarscale * main_processbar_small.totalValue
}
}
//add by ghy for 330248
console.log("ggggggggggggggggggggggggggggggg",systemCtrl.getCurrentSource())
if(systemCtrl.getCurrentSource()== Layout.HMI_SRC_PHONE)
{
main_processbar_small.dragflag = false
}
//add by ghy for 330248
}
//Add IPC 2017/06/14 cxx begin
else
{
iPod_disconnect_for_ipc.stop()
}
//Add IPC 2017/06/14 cxx end
}
//DEL 2018/09/27 by wangyuecheng for formChange begin
/*
onExtendWindow:
{
if((StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH))
{
ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.IPOD_SEARCH)
}
else
{
}
}
onOpenExtendForm:
{
if((StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH))
{
ScreenManager.changeForm(Layout.FM_OPEN_EXTEND_CALL,WindowsList.IPOD_SEARCH)
}
else
{
ScreenManager.changeForm(Layout.FM_OPEN_EXTEND_CALL,Layout.INVALID_FORMID)
}
}*/
//DEL 2018/09/27 by wangyuecheng for formChange end
onCloseWindow:
{
//console.log(" ********************colse window audio home------------------extendType="+extendType +" closeType="+closeType)
//if((extendType == Layout.FORM_MAIN)&&(closeType == Layout.CLOSE_BY_CLOSE))
if(closeType == Layout.CLOSE_BY_CLOSE)
{
//systemCtrl.reqSource(Layout.HMI_SRC_DUMMY,Layout.HMI_SRC_START,Layout.HMI_SRC_Front);
}
}
//Del Design 2017/3/14 cxx begin
/*
Image{
x:10
y:209
visible: bMaxWindow
source:"qrc:MATERIAL/MATERIAL_M8X_FREQUENCY-SPECTRUM_LINE"+bgImageStyle
}
Image{
x:0
y:168
visible: bMaxWindow
source:"qrc:MATERIAL/MATERIAL_M8X_FREQUENCY-SPECTRUM_1"+bgImageStyle
}
Image{
x:0
y:176
visible: bMaxWindow
source:"qrc:MATERIAL/MATERIAL_M8X_FREQUENCY-SPECTRUM_2"+bgImageStyle
}
Image{
x:0
y:172
visible: bMaxWindow
source:"qrc:MATERIAL/MATERIAL_M8X_FREQUENCY-SPECTRUM_3"+bgImageStyle
}
Image{
x:0
y:0
visible: !bMaxWindow
source:"qrc:MATERIAL/MATERIAL_M8X_PICTURE+VIDEO_BG"+bgImageStyle
}
// HMIRoundBar_small{
// id:main_processbar_small
// x:bMaxWindow?287:346
// y:bMaxWindow?145:-11
// visible: false//!bMaxWindow
// dragflag:true
// progress:ipod_playbarscale*360
// onDragingStart:
// {
// isDrafting = 1
// }
// onDragingEnd:
// {
// isDrafting = 0
// ipodCtrl.ipod_setSeektoPosition(((progress/360)*100))
// }
// }
// Image
// {
// id: music_Picture_bg
// x: 268
// y: 1
// width: 400
// height: 400
// visible: !bMaxWindow
// source: "qrc:MATERIAL/MATERIAL_M8X_USB-PLAY_BK"+bgImageStyle
// }
Image
{
id:music_cover_small
x:268
y:1
width: 400
height: 400
visible: !bMaxWindow
//fillMode: Image.PreserveAspectFit
fillMode: ipod_CoverPath == ""?Image.Stretch:Image.PreserveAspectFit
source:(ipod_CoverPath != "")?ipod_CoverPath:"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_400"+bgImageStyle
}
HMIRoundBar_big{
id:main_processbar_big // da yuan jin du tiao
x:288//ln 287//bMaxWindow?287:346
y:145//bMaxWindow?145:-11
visible: bMaxWindow
dragflag:((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH))?true:false//true
progress:ipod_playbarscale*360
onDragingStart:
{
isDrafting = 1
}
onDragingEnd:
{
//Add #120136 2016/10/18 cxx Start
ipod_seeking_end_flag = true
//Add #120136 2016/10/18 cxx End
isDrafting = 0
//Add #ST127659 2016/11/21 cxx Start
systemCtrl.touchBeep(0)
//Add #ST127659 2016/11/21 cxx End
ipodCtrl.ipod_setSeektoPosition(((progress/360)*100))
}
}
HMIRoundCover
{
id: music_Picture_big
//FOD No.124847 2016/11/11 cxx start
x:324// 2017/01/23 cxx 328-4
y:182// 2017/01/23 cxx 186-4
width:312// 2017/01/23 cxx 304+8
height:312// 2017/01/23 cxx 304+8
//FOD No.124847 2016/11/11 cxx end
border:0
visible: bMaxWindow
source:(ipod_CoverPath != "")?ipod_CoverPath:"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304"+bgImageStyle//ipod_CoverPath == ""?"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304":ipod_CoverPath
}
Image
{
id: music_Picture_big_cover
x:327
y:185
width:306
height:306
visible: bMaxWindow
source:(ipod_CoverPath != "")?"":"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304"+bgImageStyle//ipod_CoverPath == ""?"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304":ipod_CoverPath
}
//ADD No.124847 2016/11/11 cxx start
Rectangle {
x:322// 2017/01/23 cxx 328-6
y:180// 2017/01/23 cxx 186-6
width: 316// 2017/01/23 cxx 304+12
height: 316// 2017/01/23 cxx 304+12
color: "#00000000"
border.color: "black"
border.width: 6//5//FOD No.146813 20170203 cxx
radius: 158// 2017/01/23 cxx 152+6
visible:bMaxWindow
}
//ADD No.124847 2016/11/11 cxx end
Image{
x:0
y:1
visible: !bMaxWindow
source:"qrc:MATERIAL/MATERIAL_M8X_MEDIA_TITLE_MASK"+bgImageStyle
}
Image{
x:0
y:224
visible:!bMaxWindow
source:"qrc:MATERIAL/MATERIAL_M8X_PICTURE+VIDEO_MASK"+bgImageStyle
}
*/
//Del Design 2017/3/14 cxx end
// HMIRoundCover
// {
// id: music_Picture_small
// x:384
// y:27
// width:192
// height:192
// border:0
// visible:false
// source:(ipod_CoverPath != "")?ipod_CoverPath:"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_192"+bgImageStyle//ipod_CoverPath == ""?"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_192":ipod_CoverPath
// }
//ADD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
Image {
id: album_iPod
x: 324
y: 59
width: 312
height: 312
visible: bMaxWindow&&(!ipodDisconnect.visible)
source: ipod_main_play_window.visible?((ipod_CoverPath != "")?ipod_CoverPath:"qrc:MATERIAL/MATERIAL_ALBUM_IPOD"+bgImageStyle):""
}
//ADD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
HMILabel
{
id: playtime // start play time
//Fod Design 2017/3/14 cxx begin
x:18//13 //bMaxWindow == true?320:13//ln333:25//383
y: bMaxWindow?636:166//bMaxWindow == true?680:239//bMaxWindow == true?543:239//ln546:248-10//541:238
width: 110//130//bMaxWindow == true?157:130//ln196:120//96
//Fod Design 2017/3/14 cxx end
height: 22//26//ln30//20
text:ipod_ptime==""?"00:00:00":ipod_ptime
font.pixelSize: 22//26//18
horizontalAlignment: Label.AlignHCenter// ln Label.AlignLeft
wtitesize:1
}
//Fod Design 2017/3/14 cxx begin
/*
HMILabel
{
id:time_midle // quan ping shi jian zhong jian |
x:479
y:543//ln 546 //bMaxWindow == true?546:243//541:238
width: 2
height:26//ln30//20
text:"|"
font.pixelSize: 26//18
visible: bMaxWindow
wtitesize:1
}
*/
//Fod Design 2017/3/14 cxx end
HMILabel
{
id: totaltime // zong time
//Fod Design 2017/3/14 cxx begin
x:832//817 //bMaxWindow == true?482:817//ln 462:813//764//481
y: bMaxWindow?636:166//bMaxWindow == true?680:239//bMaxWindow == true?543:239//ln546:248-10//541:238
width: 110//130//bMaxWindow == true?158:130//ln167:120//96
//Fod Design 2017/3/14 cxx end
height:22//26//ln30//20
text:ipod_totaltime==""?"00:00:00":ipod_totaltime
font.pixelSize:22//26//18
horizontalAlignment:Label.AlignHCenter // ln Label.AlignRight
wtitesize:1
}
HMILabel
{
id: ipodDisconnect
x:150//150 //30//150//bMaxWindow == true?60:150//345
y: (bMaxWindow == true)?298:77//(iLanguage==0)?(bMaxWindow == true)?298:77:(bMaxWindow == true)?324:103//1//bMaxWindow == true?35:1//15//85//0:27//38:81
width: 660//660//900//660//bMaxWindow == true?840:660//271
height:82//78//bMaxWindow == true?160:192//140 //25
// anchors.horizontalCenter: parent.horizontalCenter
// verticalAlignment:Label.verticalCenter
horizontalAlignment: Label.AlignHCenter
verticalAlignment:Label.AlignVCenter// Fod 2017/01/17 cxx // verticalAlignment:Label.verticalCenter
font.pixelSize: 30//24
visible: ((StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&( StatusList.IPOD_NOT_OVER_CURRENT == ipod_overCurrentState))?true:false
//Fod #ST140405 2016/12/26 cxx begin
//text: qsTr("no apple device connected, please connect apple device with USB")+ systemCtrl.emptyString
text: qsTr("No apple device connected, please connect apple device with USB")+ systemCtrl.emptyString
//Fod #ST140405 2016/12/26 cxx end
}
HMILabel
{
id: ipod_no_file
//Fod Design 2017/3/14 cxx begin
x: 90//150//60//bMaxWindow == true?60:150//345
y:bMaxWindow?505:95//bMaxWindow == true?324:103// 1//bMaxWindow == true?35:1//85//0:27//38:81
width: 780//660//840//bMaxWindow == true?840:660//271
height:34//78//bMaxWindow == true?160:192//140 //25
//Fod Design 2017/3/14 cxx end
// anchors.horizontalCenter: parent.horizontalCenter
// verticalAlignment:Label.verticalCenter
horizontalAlignment: Label.AlignHCenter
verticalAlignment:Label.AlignVCenter// Fod 2017/01/17 cxx //verticalAlignment:Label.verticalCenter
font.pixelSize: 30//24
visible:((StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipodCtrl.ipod_get_allsong_num() == 0) && ipod_write_error_text.visible == false)?true:false
text: qsTr("No file in iPod") + systemCtrl.emptyString
}
HMILabel
{
id: ipodLoading
//Fod Design 2017/3/14 cxx begin
x:90//150// 60//bMaxWindow == true?60:150//345
y: bMaxWindow?505:95//bMaxWindow == true?324:103//1//bMaxWindow == true?35:1//85//0:27//38:81
width: 780//660//840//bMaxWindow == true?840:660//271
height:34//78//bMaxWindow == true?160:192//140 //25
//Fod Design 2017/3/14 cxx end
// anchors.horizontalCenter: parent.horizontalCenter
// verticalAlignment:Label.verticalCenter
horizontalAlignment: Label.AlignHCenter
verticalAlignment:Label.AlignVCenter// Fod 2017/01/17 cxx //verticalAlignment:Label.verticalCenter
font.pixelSize: 30//24
visible:((StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_NOT_FINISH)&& ipod_write_error_text.visible == false)?true:false
text: qsTr("iPod data loading...") + systemCtrl.emptyString
//ADD By qu-shh for auto display off start
onVisibleChanged:
{
if(ipodLoading.visible == true)
{
if(!display_flag)
{
systemCtrl.auto_Displayoff_Shield()
display_flag = true
}
}
else
{
if(display_flag)
{
systemCtrl.auto_Displayoff_Unshield()
display_flag = false
}
}
}
//ADD By qu-shh for auto display off end
}
HMILabel
{
id: ipodovercurrent
//Fod Design 2017/3/14 cxx begin
x: 90//150//60//bMaxWindow == true?60:150//345
y: bMaxWindow?505:95//bMaxWindow == true?324:103//1//bMaxWindow == true?35:1//85//0:27//38:81
width: 780//660//840//bMaxWindow == true?840:660//271
height:34//78//bMaxWindow == true?160:192//140 //25
//Fod Design 2017/3/14 cxx end
// anchors.horizontalCenter: parent.horizontalCenter
// verticalAlignment:Label.verticalCenter
horizontalAlignment: Label.AlignHCenter
verticalAlignment:Label.AlignVCenter// Fod 2017/01/17 cxx //verticalAlignment:Label.verticalCenter
font.pixelSize: 30//24
visible:( StatusList.IPOD_OVER_CURRENT == ipod_overCurrentState)?true:false
text: qsTr("USB defect,please restart your car to repair") + systemCtrl.emptyString
}
/*//DEL #F0085 2016/11/08 cxx begin
HMILabel{
id: ipod_artistName
x:110// bMaxWindow == true?110:150//440
y: bMaxWindow == true?78:53//135//85:128
width:740//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80
height:24 //22
horizontalAlignment: Label.AlignHCenter//bMaxWindow == true?Label.AlignHCenter:Label.AlignRight
elide: Label.ElideRight
font.pixelSize: 20//18
visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true))?false:true
text: ((bMaxWindow == true)||(ipod_albumname == ""))?ipod_artistname:ipod_artistname+"<<"+ipod_albumname+">>"
wtitesize:2
}
// HMILabel
// {
// id: artist_album
// x: (ipod_artistName.width <= ipod_artistName.contentWidth)?(ipod_artistName.x+ipod_artistName.width):(ipod_artistName.x+ipod_artistName.contentWidth)
// y:ipod_artistName.y
// width: 10
// height: 40//24
// font.pixelSize: 28
// visible:((bMaxWindow == true)&&((ipodDisconnect.visible == false)&&(ipod_no_file.visible == false)&&(ipodLoading.visible == false)))?true:false
// text: qsTr("/")
// }
HMILabel
{
id: ipod_albumName
x: 110//bMaxWindow == true?110:480//bMaxWindow == true?150:110//150//150//bMaxWindow == true?110:150//440
y: 120//bMaxWindow == true?120:53//bMaxWindow == true?120-6:56//176-6
width: 740//bMaxWindow == true?740:370//660//bMaxWindow == true?740:660//80
height:24// 22
horizontalAlignment:Label.AlignHCenter//bMaxWindow == true?Label.AlignHCenter:Label.AlignLeft
elide: Label.ElideRight
font.pixelSize: 20//18
visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true))?false:true
text: ((bMaxWindow == true)&&(ipod_albumname != ""))?("<<"+ipod_albumname+">>"):""
wtitesize:2
}
//DEL #F0085 2016/11/08 cxx end */
//ADD #F0085 2016/11/08 cxx begin
HMILabel{
id:ipod_artist_length
//Fod Design 2017/3/14 cxx begin
x:90//150//110// bMaxWindow == true?110:150//440
y: bMaxWindow?505:95//bMaxWindow == true?352:131//bMaxWindow == true?78:53//135//85:128
width:780//660 //668//740//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80
//Fod Design 2017/3/14 cxx end
height:30//24 //22
font.pixelSize: 30//20//18
visible: false
text:ipod_artistname
wtitesize:2
}
HMILabel{
id:ipod_artistName_length
//Fod Design 2017/3/14 cxx begin
x:90//150//110// bMaxWindow == true?110:150//440
y: bMaxWindow?505:95//bMaxWindow == true?352:131//bMaxWindow == true?78:53//135//85:128
width:780//660//714//740//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80
//Fod Design 2017/3/14 cxx end
height:30//24 //22
font.pixelSize: 30//20//18
visible: false
//Fod Design 2017/3/14 cxx begin
// text:((bMaxWindow == true)||(ipod_albumname == ""))?ipod_artistname:ipod_artistname+"<<"+ipod_albumname
text:(ipod_albumname == "")?ipod_artistname:ipod_artistname+"<<"+ipod_albumname
//Fod Design 2017/3/14 cxx end
wtitesize:2
}
HMILabel{
id: ipod_artistName
//Fod Design 2017/3/14 cxx begin
x:90//150//110// bMaxWindow == true?110:150//440
//FOD by lishunan for #309434 start
y: bMaxWindow?515:105//bMaxWindow?505:95//bMaxWindow == true?352:131//78:53//135//85:128
//FOD by lishunan for #309434 end
//modify 20180905
//width: ((bMaxWindow == true)||(ipod_albumname == "")||(ipod_artistName_length.contentWidth<714)||(ipod_artist_length.contentWidth>668))?740:714//740//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80
//width:((ipod_albumname == "")||(ipod_artistName_length.contentWidth<744)||(ipod_artist_length.contentWidth>678))?780:744
width: 780
//Fod Design 2017/3/14 cxx end
//FOD by lishunan for #309434 start
height:36//30//24 //22
//FOD by lishunan for #309434 end
horizontalAlignment: Label.AlignHCenter//bMaxWindow == true?Label.AlignHCenter:Label.AlignRight
elide: Label.ElideRight
font.pixelSize: 30//20//18
visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true) || ipod_write_error_text.visible == true)?false:true
//Fod Design 2017/3/14 cxx begin
//text: ((bMaxWindow == true)||(ipod_albumname == "")||(ipod_artist_length.contentWidth>668))?((bMaxWindow != true && ipod_albumname != "" && ipod_artist_length.contentWidth>668 && ipod_artist_length.contentWidth<740)?(ipod_artistname+"…"):ipod_artistname):((ipod_artistName_length.contentWidth<714)?(ipod_artistname+"<<"+ipod_albumname+">>"):(ipod_artistname+"<<"+ipod_albumname))
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
text: ipod_artistname
//text: ((ipod_albumname == "")||(ipod_artist_length.contentWidth>678))?((ipod_albumname != "" && ipod_artist_length.contentWidth>678 && ipod_artist_length.contentWidth<660)?(ipod_artistname+"…"):ipod_artistname):((ipod_artistName_length.contentWidth<744)?(ipod_artistname+"<<"+ipod_albumname+">>"):(ipod_artistname+"<<"+ipod_albumname))
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
//Fod Design 2017/3/14 cxx end
wtitesize:2
}
//DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
/*
HMILabel{
id: ipod_artistName_kuohao
//Fod Design 2017/3/14 cxx begin
x:834//784//824// 2017/01/23 cxx 110+714//(ipod_artistName.contentWidth>700)?110+700:110+ipod_artistName.contentWidth
//anchors.left: ipod_artistName.right// bMaxWindow == true?110:150//440
y:bMaxWindow?505:95//bMaxWindow == true?352:131//53// bMaxWindow == true?78:53//135//85:128
//Fod Design 2017/3/14 cxx end
width:60//40//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80
height:30//24 //22
font.pixelSize: 30//20//18
horizontalAlignment: Label.AlignLeft
//Fod Design 2017/3/14 cxx begin
//visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true)||(ipod_artistName_length.contentWidth<668))?false:true
//visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true)||(ipod_artistName_length.contentWidth<588))?false:true
visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true)||(ipod_artistName_length.contentWidth<678))?false:true
//text: ((bMaxWindow == true)||(ipod_albumname == "")||(ipod_artistName_length.contentWidth<714)||(ipod_artist_length.contentWidth>668))?"":">>"
//text: ((ipod_albumname == "")||(ipod_artistName_length.contentWidth<634)||(ipod_artist_length.contentWidth>588))?"":">>"
text: ((ipod_albumname == "")||(ipod_artistName_length.contentWidth<744)||(ipod_artist_length.contentWidth>678))?"":">>"
//Fod Design 2017/3/14 cxx end
wtitesize:2
}*/
//DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
//Del Design 2017/3/14 cxx begin
/*
HMILabel{
id:ipod_albumName_length
x:110
y: 120
width:714//740//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80
height:24 //22
font.pixelSize: 20//18
visible: false
text:((bMaxWindow == true)&&(ipod_albumname != ""))?("<<"+ipod_albumname):""
wtitesize:2
}
HMILabel
{
id: ipod_albumName
x: 110//bMaxWindow == true?110:480//bMaxWindow == true?150:110//150//150//bMaxWindow == true?110:150//440
y: 120//bMaxWindow == true?120:53//bMaxWindow == true?120-6:56//176-6
width:((bMaxWindow == true)&&(ipod_albumname != "")&&(ipod_albumName_length.contentWidth<714))?740:714//bMaxWindow == true?740:370//660//bMaxWindow == true?740:660//80
height:24// 22
horizontalAlignment:Label.AlignHCenter//bMaxWindow == true?Label.AlignHCenter:Label.AlignLeft
elide: Label.ElideRight
font.pixelSize: 20//18
visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true))?false:true
text: ((bMaxWindow == false)||(ipod_albumname == ""))?"":(((bMaxWindow == true)&&(ipod_albumname != "")&&(ipod_albumName_length.contentWidth<714))?("<<"+ipod_albumname+">>"):("<<"+ipod_albumname))
wtitesize:2
}
HMILabel
{
id: ipod_albumName_kuohao
x: 824// 2017/01/23 cxx 110+714//bMaxWindow == true?110:480//bMaxWindow == true?150:110//150//150//bMaxWindow == true?110:150//440
y: 120//bMaxWindow == true?120:53//bMaxWindow == true?120-6:56//176-6
width:40//bMaxWindow == true?740:370//660//bMaxWindow == true?740:660//80
height:24// 22
font.pixelSize: 20//18
horizontalAlignment:Label.AlignLeft//bMaxWindow == true?Label.AlignHCenter:Label.AlignLeft
visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true)||(ipod_albumName_length.contentWidth<668))?false:true
text: ((bMaxWindow == true)&&(ipod_albumname != "")&&(ipod_albumName_length.contentWidth>=714))?">>":""
wtitesize:2
}
*/
//Del Design 2017/3/14 cxx begin
//ADD #F0085 2016/11/08 cxx end
// HMILabel
// {
// id: current_play_song
// x: 345
// y: bMaxWindow == true?38:81
// width: 271
// height: 25
// elide: Label.ElideRight
// font.pixelSize: 24
// visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true))?false:true
// text: ipod_titlename
// }
HMILableRoll
{
id: ipod_current_play_song
//Fod Design 2017/3/14 cxx begin
x:138//150//60//150//bMaxWindow == true?60:150//345
y: bMaxWindow?417:7//bMaxWindow == true?310:89//bMaxWindow == true?25:15//35:15//35:85//38:81
width:684//660//840//660//bMaxWindow == true?840:660//280:270
//Fod Design 2017/3/14 cxx end
//FOD by lishunan for #309434 start
height: 100//82//36
//FOD by lishunan for #309434 end
anmitextposition:Label.AlignHCenter
rollfont:76//30
font_not_change:2
rolltext:(ipod_titlename==""?" ":ipod_titlename)
visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true) || ipod_write_error_text.visible == true)?false:true
}
//modify by Jiyulong for #210943 start 2017/10/13
HMILabel
{
id: ipod_scan_error_text
x: 90//150
y: bMaxWindow?505:95//bMaxWindow == true?324:103
width: 780//660
height: 82
horizontalAlignment: Label.AlignHCenter
verticalAlignment:Label.AlignVCenter
font.pixelSize: 30
visible: ( StatusList.IPOD_SCAN_IS_ERROR == ipod_scanErrorState ) ?true:false
text:(systemCtrl.iLanguage == 0)?qsTr("Device connection is abnormal, please reconnect")+systemCtrl.emptyString:
(systemCtrl.iLanguage == 2)?qsTr("Lỗi kết nối thiết bị, xin kết nối lại")+systemCtrl.emptyString:
(systemCtrl.iLanguage == 3)?qsTr("Подключ. устройства ненормально, пожалуйста, переподключите")+systemCtrl.emptyString:""
}
//modify by Jiyulong for #210943 end
//ADD BY GHY 2019/5/14
HMILabel
{
id: ipod_write_error_text
x: 90//150
y: bMaxWindow?505:95//bMaxWindow == true?324:103
width: 780//660
height: 82
horizontalAlignment: Label.AlignHCenter
verticalAlignment:Label.AlignVCenter
font.pixelSize: 30
visible:false
text:(systemCtrl.iLanguage == 0)?qsTr("Abnormal phone status")+systemCtrl.emptyString:
(systemCtrl.iLanguage == 2)?qsTr("Điện thoại bị lỗi")+systemCtrl.emptyString:
(systemCtrl.iLanguage == 3)?qsTr("Ненормальный статус телефона")+systemCtrl.emptyString:
(systemCtrl.iLanguage == 1)?qsTr("手机状态异常")+systemCtrl.emptyString:""
}
//ADD BY GHY 2019/5/14
IPod_PlayCtrlButton
{
x:0//198
y:bMaxWindow?524:44//bMaxWindow?724:283//bMaxWindow?703:256
}
// IPod_ProgressAndTime
// {
// id: main_processbar_small
// x: 155//bMaxWindow == true?50:25
// y: 253//bMaxWindow == true?653:272//638:266
// bar_width:690//bMaxWindow == true?640:370//522:246
// visible:!bMaxWindow
// enterValue_test: (StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?(ipodCtrl.ipod_playbarscale * totalValue):0
// }
HMIProcessBarDrag
{
id:main_processbar_small // xi chang jin du tiao
//update by zlx 2019/1/24 #319233 begin
x: 146//136//150//ln 135//(bMaxWindow == true?48:23)
//Fod Design 2017/3/14 cxx begin
y: bMaxWindow? 645:175//646:176//bMaxWindow==true? 689:248 //248//(bMaxWindow == true?653:272)
//Fod Design 2017/3/14 cxx end
//update by zlx 2019/1/24 #319233 end
width: 688//660//ln 690
//Fod #ST146534 2017/01/22 cxx begin
//height: 8//ln 20
height: 30//20
//Fod #ST146534 2017/01/22 cxx end
//enabled: (StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?true:false
//Fod by cxx for CarPlay and ipod 2018/11/12 start
//dragflag:((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH))?true:false
dragflag:((((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())||((ipodCtrl.ipod_Ctrl_Get_whether_carplay_or_ipod()== 2)&&(Layout.HMI_SRC_CARPLAY_MUSIC == systemCtrl.getCurrentSource())))&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH)) && ipod_write_error_text.visible == false)?true:false
//Fod by cxx for CarPlay and ipod 2018/11/12 end
dragflagpress :true
//barBackgroundMiddlewidth:662//bMaxWindow == true?640:370
//Fod Design 2017/3/14 cxx begin
visible:true//!bMaxWindow
//Fod Design 2017/3/14 cxx end
//enterValue:(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?(ipodCtrl.ipod_playbarscale * totalValue):0
onDragingStart:
{
isDrafting = 1
}
onDragingEnd:
{
//Add #120136 2016/10/18 cxx Start
ipod_seeking_end_flag = true
//Add #120136 2016/10/18 cxx End
isDrafting = 0
ipodCtrl.ipod_setSeektoPosition(barScale)
}
onBarClicked:
{
ipodCtrl.ipod_setSeektoPosition(barScale)
}
//Add 2017/3/28 for #160052 cxx begin
onSendCancele:
{
//ipod_seeking_end_flag=true
isDrafting = 0
main_processbar_small.enterValue = ipod_playbarscale * main_processbar_small.totalValue
}
//Add 2017/3/28 for #160052 cxx end
}
// onBMaxWindowChanged:
// {
// ipod_playbarscale = ipodCtrl.ipod_playbarscale
// if(bMaxWindow == true)
// {
// main_processbar.enterValue = ipod_playbarscale * 640
// if((StatusList.HMI_IPOD_SCAN_FINISH == ipod_scanState)&&(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(StatusList.IPOD_NOT_OVER_CURRENT == ipod_overCurrentState))
// {
// artist_album.visible = true
// }
// else
// {
// artist_album.visible = false
// }
// }
// else
// {
// main_processbar.enterValue = ipod_playbarscale * 370
// artist_album.visible = false
// }
// }
// HMILabel
// {
// id: playtime
// anchors.left: main_processbar.left
// y: bMaxWindow == true?626:245//bMaxWindow == true?758:377-Layout.FORM_Y
// width: 76
// height: 20
// text:ipod_ptime==""?"00:00:00":ipod_ptime
// font.pixelSize: 14//18
// horizontalAlignment: Label.AlignLeft
// }
// HMILabel
// {
// id: totaltime
// anchors.right: main_processbar.right
// anchors.verticalCenter:playtime.verticalCenter
// //x: bMaxWindow == true?615:320//bMaxWindow == true?629:334-Layout.FORM_X
// width: 75//115
// height: 20
// text:ipod_totaltime==""?"00:00:00":ipod_totaltime
// font.pixelSize: 14//18
// horizontalAlignment: Label.AlignRight
// }
// IPod_SearchAndPlayMode
// {
// x: bMaxWindow == true?394:418//448:419
// y: bMaxWindow == true?551:228
// }
HMIButton
{
id:search_button
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
x:33 //22
y:bMaxWindow?733:253//bMaxWindow?703:256
//btnIcon:"qrc:MATERIAL/MATERIAL_M8X_ICON_FOLDER"+bgImageStyle
btnIcon:"qrc:MATERIAL/MATERIAL_ICON_FOLDER"+bgImageStyle
//btnImg:search_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle
//btnImg: (StatusList.IPOD_EXTENDED_BODY_OPEN == ipod_extendedbodystate)?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle
// :((search_button.pressed)?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle
// :("qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle))
btnImg: (StatusList.IPOD_EXTENDED_BODY_OPEN == ipod_extendedbodystate)?"qrc:MATERIAL/MATERIAL_ICON_FOLDER_P"+bgImageStyle
:((search_button.pressed)?"qrc:MATERIAL/MATERIAL_ICON_FOLDER_P"+bgImageStyle
:("qrc:MATERIAL/MATERIAL_ICON_FOLDER"+bgImageStyle))
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
onClicked:
{
//FOD 2019/2/15 by SXD for #324721 BTtonghuazhong media wuxiao begin
if((StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH)&&(Layout.HMI_SRC_PHONE != systemCtrl.getCurrentSource()))
//FOD 2019/2/15 by SXD for #324721 BTtonghuazhong media wuxiao end
{
//FOD by wangyuecheng 2018/09/27 FOR formChange begin
//ScreenManager.changeForm(Layout.FM_OPEN_EXTEND_SELF,WindowsList.IPOD_SEARCH)
ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.IPOD_SEARCH)
//FOD by wangyuecheng 2018/09/27 FOR formChange end
}
else
{
}
}
}
HMIButton
{
id:playmode_button_shuffle
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
x:bMaxWindow?69:29 //22//bMaxWindow?22:198
//Fod Design 2017/3/14 cxx begin
y:bMaxWindow?164:4 //bMaxWindow?283:62//bMaxWindow?282:96//67
//Fod Design 2017/3/14 cxx end
visible:(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?true:(((ipod_which_apply == 1 )||(ipod_which_apply == 2 )||(ipod_third_apply == 1))?false:true)
//btnIcon:"qrc:MATERIAL/MATERIAL_M8X_ICON_SHUFFLE"+bgImageStyle
btnIcon:( StatusList.IPOD_RANDOM_ALL == ipod_shuffelStatus)? ("qrc:MATERIAL/MATERIAL_ICON_SHUFFLE"+bgImageStyle):("qrc:MATERIAL/MATERIAL_IPOD_ICON_SHUFFLE_NO"+bgImageStyle)
//btnImg:playmode_button_shuffle.pressed?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle:(ipod_shuffelStatus == StatusList.IPOD_RANDOM_ALL)?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle
btnImg:playmode_button_shuffle.pressed?"qrc:MATERIAL/MATERIAL_MEDIA_BUTTON_CIRCLE_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_MEDIA_BUTTON_CIRCLE"+bgImageStyle
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
onClicked:
{
if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
}
else
{
//FOD 2019/2/15 by SXD for #324721 BTtonghuazhong media wuxiao begin
//modify by Jiyulong for #210943 start 2017/10/13
if( StatusList.IPOD_SCAN_NOT_ERROR == ipod_scanErrorState &&(Layout.HMI_SRC_PHONE != systemCtrl.getCurrentSource())&& ipodCtrl.ipod_underwaySynchronization == StatusList.HMI_IPOD_SCAN_FINISH)
//FOD 2019/2/15 by SXD for #324721 BTtonghuazhong media wuxiao end
{
//ipodCtrl.ipod_random_repeat_ModeClick();
if(ipod_shuffelStatus == StatusList.IPOD_RANDOM_ALL)
{
ipodCtrl.ipod_randomModeClick(StatusList.IPOD_RANDOM_OFF)
}
else
{
ipodCtrl.ipod_randomModeClick(StatusList.IPOD_RANDOM_ALL)
}
}
//modify by Jiyulong for #210943 end
}
}
}
HMIButton
{
id:playmode_button_repeat
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
x:bMaxWindow?789:829//826//bMaxWindow?826:650
//Fod Design 2017/3/14 cxx begin
y:bMaxWindow?164:4//bMaxWindow?283:62 //bMaxWindow?282:96//67
//Fod Design 2017/3/14 cxx end
visible:(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?true:(((ipod_which_apply == 1 )||(ipod_which_apply == 2 )||(ipod_third_apply == 1))?false:true)
//btnIcon:(ipod_repeatStatus == StatusList.IPOD_REPEAT_ALL)?"qrc:MATERIAL/MATERIAL_M8X_ICON_REPEAT-LIST"+bgImageStyle
// :(ipod_repeatStatus == StatusList.IPOD_REPEAT_ONE)?"qrc:MATERIAL/MATERIAL_M8X_ICON_REPEAT-ONE"+bgImageStyle
// :"qrc:MATERIAL/MATERIAL_M8X_ICON_ORDER"+bgImageStyle
btnIcon:(ipod_repeatStatus == StatusList.IPOD_REPEAT_ALL)?"qrc:MATERIAL/MATERIAL_ICON_REPEAT-LIST"+bgImageStyle
:(ipod_repeatStatus == StatusList.IPOD_REPEAT_ONE)?"qrc:MATERIAL/MATERIAL_ICON_REPEAT-ONE"+bgImageStyle
:"qrc:MATERIAL/MATERIAL_ICON_ORDER"+bgImageStyle
//btnImg:playmode_button_repeat.pressed?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle
btnImg:playmode_button_repeat.pressed?"qrc:MATERIAL/MATERIAL_MEDIA_BUTTON_CIRCLE_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_MEDIA_BUTTON_CIRCLE"+bgImageStyle
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
onClicked:
{
if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
}
else
{
//modify by Jiyulong for #210943 start 2017/10/13
if( StatusList.IPOD_SCAN_NOT_ERROR == ipod_scanErrorState && StatusList.HMI_IPOD_SCAN_FINISH == ipodCtrl.ipod_underwaySynchronization &&(Layout.HMI_SRC_PHONE != systemCtrl.getCurrentSource()))
{
// ipodCtrl.ipod_random_repeat_ModeClick();
if(ipod_repeatStatus == StatusList.IPOD_REPEAT_ALL)
{
ipodCtrl.ipod_repeatModeClick(StatusList.IPOD_REPEAT_ONE)
}
else if(ipod_repeatStatus == StatusList.IPOD_REPEAT_OFF)
{
ipodCtrl.ipod_repeatModeClick(StatusList.IPOD_REPEAT_ALL)
}
else if(ipod_repeatStatus == StatusList.IPOD_REPEAT_ONE)
{
ipodCtrl.ipod_repeatModeClick(StatusList.IPOD_REPEAT_OFF)
}
}
//modify by Jiyulong for #210943 end
}
}
}
//Del Design 2017/3/14 cxx begin
/*
//Add #F0108 2016/11/24 liduo begin
Image
{
id:hlineimg
visible: true
y:-1 //0 FOD #146075 2017/2/12 ld
height: 20
source:"qrc:MATERIAL/MATERIAL_M8X_LINE_SPLIT-SCREEN_H2" + bgImageStyle;
}
*/
//Del Design 2017/3/14 cxx end
//Add #F0108 2016/11/24 liduo end
onBMaxWindowChanged:
{
ipod_playbarscale = ipodCtrl.ipod_playbarscale
//ADD #ST144156 2017/01/11 cxx begin
//Del Design 2017/3/14 cxx begin
//main_processbar_big.visible = bMaxWindow
//main_processbar_small.visible = !bMaxWindow
//Del Design 2017/3/14 cxx end
//ADD #ST144156 2017/01/11 cxx end
//Delete #145405 2017/3/28 cxx begin
/*
if (true == bMaxWindow)
{
ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_CLOSE
}
else
{
// Fod #ST146536 2017/01/22 cxx begin
// main_processbar_small.enterValue = ipod_playbarscale * 690
main_processbar_small.enterValue = ipod_playbarscale * 660 // 690
// Fod #ST146536 2017/01/22 cxx end
if (StatusList.IPOD_FOLDER_OPEN ==ipod_folderWindowState)
{
ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_OPEN
}
}
*/
//Delete #145405 2017/3/28 cxx end
}
Connections
{
target: ipodCtrl
onIpod_playstatuschange:
{
ipod_playpausestatus = ipodCtrl.ipod_playstatus
if(ipod_playpausestatus == StatusList.IPOD_PLAY)
{
//ipod_loadingState = StatusList.IPOD_END_LOADING
}
//Add 2017/3/28 for #160052 cxx begin
ipod_playbarscale= ipodCtrl.ipod_playbarscale
//Add 2017/3/28 for #160052 cxx end
}
onIpod_songinfochange:
{
//if(ipod_titlename != ipodCtrl.ipod_titleName)
{
ipod_titlename = ipodCtrl.ipod_titleName
ipod_current_play_song.rolltext = ipod_titlename
}
if(ipod_artistname != ipodCtrl.ipod_artistName)
{
ipod_artistname = ipodCtrl.ipod_artistName
}
if(ipod_albumname != ipodCtrl.ipod_albumName)
{
ipod_albumname = ipodCtrl.ipod_albumName
}
}
onIpod_underwaySynchronizationChanged:
{
if(StatusList.IPOD_OVER_CURRENT == ipod_overCurrentState)
{
ipodDisconnect.visible = false;
ipod_no_file.visible = false;
ipodLoading.visible = false
ipod_artistName.visible = false
//artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
ipodovercurrent.visible =true
}
else if((StatusList.HMI_IPOD_SCAN_FINISH == ipod_scanState)&&(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()))
{
ipodDisconnect.visible = false
ipodLoading.visible = false
//modify by Jiyulong for #210943 start 2017/10/13
ipod_scanErrorState = false
//modify by Jiyulong for #210943 end
if(ipodCtrl.ipod_get_allsong_num() == 0)
{
ipod_artistName.visible = false
//artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
if(ipod_write_error_text.visible == false)
{
ipod_no_file.visible = true
}
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
// main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
}
else
{
ipod_no_file.visible = false
if(ipod_write_error_text.visible == false)
{
ipod_artistName.visible = true
ipod_current_play_song.visible = true
}
if(bMaxWindow == true)
{
//artist_album.visible = true
}
else
{
// artist_album.visible = false
}
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = true
//Del Design 2017/3/14 cxx end
//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()||(((ipodCtrl.ipod_Ctrl_Get_whether_carplay_or_ipod()== 2)&&(Layout.HMI_SRC_CARPLAY_MUSIC == systemCtrl.getCurrentSource()))))
//Fod by cxx for CarPlay and ipod 2018/11/12 end
{
if(ipod_write_error_text.visible == false)
{
main_processbar_small.dragflag = true
}
//Del Design 2017/3/14 cxx begin
// main_processbar_big.dragflag = true
//Del Design 2017/3/14 cxx end
}
}
//ipodCtrl.ipod_getFolderListPath(0,"","","0","");
}
//modify by Jiyulong for #216939 start 2017/11/21
else if((StatusList.HMI_IPOD_SCAN_NOT_FINISH == ipod_scanState)&&(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
&& ( StatusList.IPOD_SCAN_NOT_ERROR == ipod_scanErrorState ) )
{
//modify by Jiyulong for #216939 end
ipodDisconnect.visible = false
ipod_artistName.visible = false
// artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
ipod_no_file.visible = false
if(ipod_write_error_text.visible == false)
{
ipodLoading.visible = true
}
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
}
else if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
ipodLoading.visible = false
ipod_artistName.visible = false
//artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
ipod_no_file.visible = false
ipodDisconnect.visible = true
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
}
}
onIpod_disconnect:
{
//ADD #ST144156 2017/01/11 cxx begin
//Del Design 2017/3/14 cxx begin
// main_processbar_big.visible = false
// main_processbar_big.visible = bMaxWindow
//Del Design 2017/3/14 cxx end
main_processbar_small.visible = false
//Fod Design 2017/3/14 cxx begin
main_processbar_small.visible = true //!bMaxWindow
//Fod Design 2017/3/14 cxx end
//Del Design 2017/3/14 cxx begin
// main_processbar_big.progress = 0
//Del Design 2017/3/14 cxx end
main_processbar_small.enterValue = 0
ipod_ptime = "00:00:00"
ipod_totaltime = "00:00:00"
//ADD #ST144156 2017/01/11 cxx end
//modify by Jiyulong for #210943 start 2017/10/13
ipod_scanErrorState = false
//modify by Jiyulong for #210943 end
ipod_write_error_text.visible = false //add by ghy 2019/5/14
if(StatusList.IPOD_OVER_CURRENT == ipod_overCurrentState)
{
ipodDisconnect.visible = false;
ipod_no_file.visible = false;
ipodLoading.visible = false
ipod_artistName.visible = false
// artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
ipodovercurrent.visible =true
}
else if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
ipodDisconnect.visible = true;
ipod_no_file.visible = false;
ipodLoading.visible = false
ipod_artistName.visible = false
//artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
playmode_button_shuffle.visible = true
playmode_button_repeat.visible = true
ipod_current_play_song.rolltext = ""
}
}
onIpod_connect:
{
//Add IPC 2017/06/14 cxx begin
iPod_disconnect_for_ipc.stop()
//Add IPC 2017/06/14 cxx end
if(StatusList.IPOD_OVER_CURRENT == ipod_overCurrentState)
{
ipodDisconnect.visible = false;
ipod_no_file.visible = false;
ipodLoading.visible = false
ipod_artistName.visible = false
//artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
ipodovercurrent.visible =true
}
else if((StatusList.HMI_IPOD_SCAN_FINISH == ipod_scanState)&&(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()))
{
ipodDisconnect.visible = false
ipodLoading.visible = false
if(ipodCtrl.ipod_get_allsong_num() == 0)
{
ipod_artistName.visible = false
//artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
if(ipod_write_error_text.visible == false)
{
ipod_no_file.visible = true
}
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
// main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
}
else
{
ipod_no_file.visible = false
if(ipod_write_error_text.visible == false)
{
ipod_artistName.visible = true
ipod_current_play_song.visible = true
}
if(bMaxWindow == true)
{
//artist_album.visible = true
}
else
{
// artist_album.visible = false
}
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = true
//Del Design 2017/3/14 cxx end
if(ipod_write_error_text.visible == false)
{
main_processbar_small.dragflag = true
}
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = true
//Del Design 2017/3/14 cxx end
}
}
//modify by Jiyulong for #216939 start 2017/11/21
else if((StatusList.HMI_IPOD_SCAN_NOT_FINISH == ipod_scanState)&&(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
&& ( StatusList.IPOD_SCAN_NOT_ERROR == ipod_scanErrorState ) )
{
//modify by Jiyulong for #216939 end
ipodDisconnect.visible = false
ipod_artistName.visible = false
// artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
ipod_no_file.visible = false
if(ipod_write_error_text.visible == false)
{
ipodLoading.visible = true
}
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
}
}
//Del Design 2017/3/14 cxx begin
/*
onIpod_coverPathchanged:
{
ipod_CoverPath = ipodCtrl.ipod_coveraddress
if(ipod_CoverPath != "")
{
music_Picture_big.source = ipod_CoverPath
music_cover_small.source = ipod_CoverPath
}
else
{
if(bMaxWindow == true)
{
music_Picture_big.source = "qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304"+bgImageStyle
music_cover_small.source = "qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_400"+bgImageStyle
}
else
{
music_Picture_big.source = "qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304"+bgImageStyle
music_cover_small.source = "qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_400"+bgImageStyle
}
}
music_Picture_big.repaintUI()
//music_cover_small.repaintUI()
}
*/
//Del Design 2017/3/14 cxx end
onIpod_allsong_zero:
{
console.log("00000000000000000000 ",ipodCtrl.ipod_getDeviceConnectStatus())
if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
console.log("111111111111111111111")
return
}
if(eventid == 0)
{
ipodDisconnect.visible = false
ipodLoading.visible = false
ipod_artistName.visible = false
//artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
if(ipod_write_error_text.visible == false)
{
ipod_no_file.visible = true
}
}
else
{
ipod_no_file.visible = false
if(StatusList.HMI_IPOD_SCAN_FINISH == ipod_scanState && ipod_write_error_text.visible == false)
{
ipod_artistName.visible = true
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = true
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = true
}
if((bMaxWindow == true)&&(StatusList.HMI_IPOD_SCAN_FINISH == ipod_scanState))
{
//artist_album.visible = true
}
//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()||(((ipodCtrl.ipod_Ctrl_Get_whether_carplay_or_ipod()== 2)&&(Layout.HMI_SRC_CARPLAY_MUSIC == systemCtrl.getCurrentSource()))))
//Fod by cxx for CarPlay and ipod 2018/11/12 end
{
if(ipod_write_error_text.visible == false)
{
main_processbar_small.dragflag = true
}
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = true
//Del Design 2017/3/14 cxx end
}
}
}
onIpod_ptimechange:
{
if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
}
else
{
//Add #120136 2016/10/18 cxx Start
if(ipod_seeking_end_flag == true)
{
ipod_seeking_end_flag = false
if(ipod_playpausestatus == StatusList.IPOD_PAUSE )
{
ipod_ptime = ipodCtrl.ipod_ptime
ipod_totaltime=ipodCtrl.ipod_totaltime
}
}
else
//Add #120136 2016/10/18 cxx End
{
ipod_ptime = ipodCtrl.ipod_ptime
ipod_totaltime=ipodCtrl.ipod_totaltime
if(0 == isDrafting)
{
ipod_playbarscale=ipodCtrl.ipod_playbarscale
main_processbar_small.enterValue = ipod_playbarscale * main_processbar_small.totalValue
// main_processbar_small.enterValue = ipod_playbarscale * main_processbar_small.totalValue
//main_processbar_small.progress =( ipodCtrl.ipod_playbarscale*360)
//Del Design 2017/3/14 cxx begin
//main_processbar_big.progress =( ipodCtrl.ipod_playbarscale*360)
//Del Design 2017/3/14 cxx end
}
//Add 2017/3/28 for #160052 cxx begin
else
{
ipod_playbarscale= ipodCtrl.ipod_playbarscale
}
//Add 2017/3/28 for #160052 cxx end
}
}
}
onIpod_totaltimechange:
{
if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
}
else
{
ipod_totaltime = ipodCtrl.ipod_totaltime
}
}
onIpod_shuffel_Changed:
{
if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
}
else
{
ipod_shuffelStatus = ipodCtrl.ipod_shuffel_status
if(ipod_shuffelStatus == StatusList.IPOD_RANDOM_ALL)
{
//DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
//playmode_button_shuffle.btnImg = "qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle
//DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
}
else
{
//DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
//playmode_button_shuffle.btnImg = "qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle
//DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
}
}
}
onIpod_repeat_Changed:
{
if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
}
else
{
ipod_repeatStatus = ipodCtrl.ipod_repeat_status
if(ipod_repeatStatus == StatusList.IPOD_REPEAT_ALL)
{
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
//playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_M8X_ICON_REPEAT-LIST"+bgImageStyle
playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_ICON_REPEAT-LIST"+bgImageStyle
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
}
else if(ipod_repeatStatus == StatusList.IPOD_REPEAT_OFF)
{
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
//playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_M8X_ICON_ORDER"+bgImageStyle
playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_ICON_ORDER"+bgImageStyle
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end
}
else if(ipod_repeatStatus == StatusList.IPOD_REPEAT_ONE)
{
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
//playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_M8X_ICON_REPEAT-ONE"+bgImageStyle
playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_ICON_REPEAT-ONE"+bgImageStyle
//FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin
}
}
}
onIpod_apply_changed:
{
if((ipod_which_apply ==1 )||(ipod_which_apply ==2 )||(ipod_third_apply == 1))
{
playmode_button_shuffle.visible = false
playmode_button_repeat.visible = false
}
else
{
playmode_button_shuffle.visible = true
playmode_button_repeat.visible = true
}
}
onIpodExtendedBodyStateChange:
{
//Delete #145405 2017/3/28 cxx begin
/*
if (StatusList.IPOD_FOLDER_CLOSE == ebodystate )
{
ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_CLOSE
ipod_folderWindowState=StatusList.IPOD_FOLDER_CLOSE
}
else if (StatusList.IPOD_EXTENDED_BODY_OPEN == ebodystate)
{
ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_OPEN
ipod_folderWindowState=StatusList.IPOD_FOLDER_OPEN
}
*/
//Delete #145405 2017/3/28 cxx end
}
//modify by Jiyulong for #210943 start 2017/10/13
onIpod_scan_isError:
{
ipodDisconnect.visible = false
ipod_no_file.visible = false
ipodLoading.visible = false
ipod_artistName.visible = false
ipod_current_play_song.visible = false
main_processbar_small.dragflag = false
ipod_scanErrorState = true
}
//modify by Jiyulong for #210943 end
onIpod_write_error:
{
ipodDisconnect.visible = false
ipod_no_file.visible = false
ipodLoading.visible = false
ipod_artistName.visible = false
ipod_current_play_song.visible = false
main_processbar_small.dragflag = false
ipod_scanErrorState = false
ipod_write_error_text.visible = true
}
}
Connections
{
target: systemCtrl
onSrcChangeOK:
{
//Fod by cxx for CarPlay and ipod 2018/11/12 start
//if((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH))
if(((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())||((ipodCtrl.ipod_Ctrl_Get_whether_carplay_or_ipod()== 2)&&(Layout.HMI_SRC_CARPLAY_MUSIC == systemCtrl.getCurrentSource())))&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH))
//Fod by cxx for CarPlay and ipod 2018/11/12 end
{
if(ipod_write_error_text.visible == false)
{
main_processbar_small.dragflag = true
}
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = true
//Del Design 2017/3/14 cxx end
}
else
{
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
}
}
onSrcChangeNG:
{
//Fod by cxx for CarPlay and ipod 2018/11/12 start
//if((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH))
if(((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())||((ipodCtrl.ipod_Ctrl_Get_whether_carplay_or_ipod()== 2)&&(Layout.HMI_SRC_CARPLAY_MUSIC == systemCtrl.getCurrentSource())))&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH))
//Fod by cxx for CarPlay and ipod 2018/11/12 end
{
if(ipod_write_error_text.visible == false)
{
main_processbar_small.dragflag = true
}
//Del Design 2017/3/14 cxx begin
// main_processbar_big.dragflag = true
//Del Design 2017/3/14 cxx end
}
else
{
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
// main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
}
}
}
//Add #145405 2017/3/28 cxx begin
Connections
{
target:ScreenManager
onFormchange:
{
//Fod #177708 2017/5/25 cxx begin
//if(((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 3||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 2)
//DEL 2018/09/27 for formChange begin
//if(((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 3||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 2||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 4)
// if(((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 3||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 2||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 4)
//Fod #177708 2017/5/25 cxx end
// {
// ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_OPEN
// }
// else
// {
// ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_CLOSE
// }
//DEL 2018/09/27 for formChange end
}
//shang xia ping fan zhuan zhong disconnect iPod begin
//DEL 2018/09/27 for formChange
// onExchangeStateChanged:
// {
//
// if((exchangeState == false)&&(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()))
// {
// if( ScreenManager.getZ3FromID()!= -1)
// {
// if( ScreenManager.getZ3FromID()==WindowsList.IPOD_SEARCH)
// {
// ScreenManager.changeForm(Layout.ACT_BACK,ScreenManager.getZ3FromID());
// }
// }
// }
// }
//shang xia ping fan zhuan zhong disconnect iPod end
}
//Add #145405 2017/3/28 cxx end
Connections
{
target: USBControl1
onUsbOverCurrent:
{
ipod_overCurrentState = USBControl1.usb_overCurrentState
if(StatusList.IPOD_OVER_CURRENT == ipod_overCurrentState)
{
ipodDisconnect.visible = false;
ipod_no_file.visible = false;
ipodLoading.visible = false
ipod_artistName.visible = false
//artist_album.visible = false
//Del Design 2017/3/14 cxx begin
//ipod_albumName.visible = false
//Del Design 2017/3/14 cxx end
ipod_current_play_song.visible = false
main_processbar_small.dragflag = false
//Del Design 2017/3/14 cxx begin
//main_processbar_big.dragflag = false
//Del Design 2017/3/14 cxx end
ipodovercurrent.visible =true
//Add #F0096 2016/11/16 cxx begin
ipodCtrl.ipod_overcurrent()
//Add #F0096 2016/11/16 cxx begin
}
else
{
ipodovercurrent.visible = false
if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())
{
ipodDisconnect.visible = true
}
}
}
}
//Add IPC 2017/06/14 cxx begin
Timer{
id:iPod_disconnect_for_ipc
interval: 200
repeat: true
onTriggered:
{
if(systemCtrl.getCurrentSource()==Layout.HMI_SRC_DUMMY)
{
ipodCtrl.ipod_enter_disconnect()
iPod_disconnect_for_ipc.stop()
}
}
}
//Add IPC 2017/06/14 cxx end
}
|