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
|
import QtQuick 2.0
import Label 2.0
import "../com/neusoft/auto/widgets"
import "../windowsList.js" as WindowsList
import "../layoutList.js" as Layout
//HMIWindow {
Item{
id:user_manual
y:45//user manual change
width: 960
height: 1075//user manual change
property int iImageMaxWidth : 960
property int iImageMaxHeight : 970//1050
property int total_num: 0
property int movedirflag:0 //0:no change;1:right;2:left
property real movingstartcontentx:0.0
property real scalenum: 1.0
property real scalenum1: 1.0
property int settype: 0
property string bgImageStyle: systemCtrl.style
property int moveSatrtIndex: 0
property bool movingflag:false
property real allreleasecontentx:0.0
property bool movetoadjflag:false
property int movingcompareindex:0
property int movingcurtindex:0
signal setscale()
property string searchInfo: ""
property int iType : 3
property bool iNum : true
property string style: systemCtrl.style
property int iLanguage: systemCtrl.iLanguage
property string the_one_text:""
property string the_two_text:""
property string the_three_text:""
property bool input_num_flag : false
property int currentIndexforDisplay:0
//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 vr_help start 2018/2/28
property int vr_start_page_num: 0
property int iBackground: settingCtrl.iBackground//add by lium for 342444 20190718
//modify by Jiyulong for vr_help end
//modify by lium for 342444 20190718 begin
// Rectangle{
// anchors.fill: parent
// color:"black"
// }
Image
{
anchors.fill: parent
source: "qrc:MATERIAL/MATERIAL_BLURBACKGROUND_"+iBackground+"_USER-MANUAL"+bgImageStyle
}
//modify by lium for 342444 20190718 end
Component.onCompleted:
{
//modify by Jiyulong for #176644 start 2017/5/23
total_num = USBControl1.usbGet_UserManualFileNum()
USBControl1.usbsetFileList_user_manual(total_num)
//modify by Jiyulong for vr_help start 2018/2/28
vr_start_page_num = USBControl1.usbCtrlGetVrStartPage();
console.log("****user_manual onCompleted**** vr_start_page_num = "+vr_start_page_num)
//modify by Jiyulong for vr_help end
// console.log("*********user_manual onCompleted**************** total_num ="+total_num)
//modify by Jiyulong for #176644 end
}
onVisibleChanged:
{
if( true == user_manual.visible)
{
systemCtrl.menuBarVisibleCtrl(false,1)//user manual change//modify by liuming 20190626
nameSearch_keyBoard.visible = false
// button_timer.restart()
the_one_text = ""
the_two_text = ""
the_three_text = ""
nameSearchInput.text = ""
input_num_flag = false
//modify by Jiyulong for vr_help start 2018/2/28
/*if( true == vrCtrl.GetEnterUserManualFromVRFlag() )
{
vrCtrl.SetEnterUserManualFromVRFlag(false)
if(total_num > 0 && 0 != vr_start_page_num )
{
big_Grid_View.cancelFlick()
if(scalenum > 1)
{
scalenum = 1
settype = 2
setscale()
}
big_Grid_View.currentIndex = (vr_start_page_num - 1)
big_Grid_View.contentX = big_Grid_View.currentIndex*big_gridview_Rec.width
}
}*///del by yx
//modify by Jiyulong for vr_help end
// console.log("***********************************user_manual visible true ")
//ADD By qu-shh for auto display off start
if(!display_flag)
{
systemCtrl.auto_Displayoff_Shield()
display_flag = true
}
ScreenManager.setFormZ(WindowsList.HOME_STATE_BAR,WindowsList.Z_OVERLAY_2) //ADD 2019/06/27 by wyc FOR 340683
}
else
{
//ADD 2019/06/22 by wyc FOR 340683 begin
if((ScreenManager.getFormInformation(WindowsList.BTP_HOME) == Layout.SHOW_FULL)||(ScreenManager.getFormInformation(WindowsList.BTP_HOME) == Layout.SHOW_BODYA)||(ScreenManager.getFormInformation(WindowsList.BTP_HOME) == Layout.SHOW_BODYB))
{
btCtrl.setTalkingStateBar(false)
}
else
{
//do nothing
}
//ADD 2019/06/22 by wyc FOR 340683 end
systemCtrl.menuBarVisibleCtrl(true,1)//user manual change//modify by liuming 20190626
if(display_flag)
{
systemCtrl.auto_Displayoff_Unshield()
display_flag = false
}
//ADD By qu-shh for auto display off end
ScreenManager.setFormZ(WindowsList.HOME_STATE_BAR,WindowsList.Z_OVERLAY_0) //ADD 2019/06/27 by wyc FOR 340683
}
}
function scale_reset()
{
if(scalenum > 1)
{
big_Grid_View.cancelFlick()
scalenum = 1
settype = 2
// setscale()
}
}
Component {
id: delegate
Flickable
{
id: picFlick
width: 960
height: 970//1050
clip:true
property real oldwidth: 0
property real oldheight: 0
property real oldx: 0.0
property real oldy: 0.0
property int tempcontentWidth: ungif.width
property int tempcontentHeight: ungif.height
property bool image_ungif_States: false
property bool imageFlag: true
property int imagetempindex: 0
property bool pinchstop: false
contentWidth:
{
if((ungif.width > iImageMaxWidth))
{
picFlick.tempcontentWidth
}
else
{
iImageMaxWidth
}
}
contentHeight:
{
if((ungif.height > iImageMaxHeight))
{
picFlick.tempcontentHeight
}
else
{
iImageMaxHeight
}
}
boundsBehavior: Flickable.StopAtBounds
Connections
{
target: user_manual
// function setscale()
onSetscale:
{
switch(settype)
{
case 2://cancle zoom effets
{
if((index>= (big_Grid_View.currentIndex-1)) && (index<= (big_Grid_View.currentIndex+1)))
{
ungif.width = picFlick.oldwidth
ungif.height = picFlick.oldheight
ungif.x = picFlick.oldx
ungif.y = picFlick.oldy
picFlick.contentY = 0//add by lium for 342446
picFlick.contentX = 0//add by lium for 342446
ungif.rotation = 0
}
break
}
default:
break
}
}
}
Image
{
id: ungif
// anchors.fill:parent
source: col0 == "" ? "":"file://"+col0
sourceSize.width:960
sourceSize.height:970//1050
fillMode:Image.PreserveAspectFit
asynchronous:true
clip:false
smooth:false
cache:false
property int realwidth:0
property int realheight:0
onStatusChanged:
{
if(ungif.status == Image.Ready)
{
picFlick.image_ungif_States = true
realwidth = ungif.width//bigimage1.sourceSize.width
realheight = ungif.height// bigimage1.sourceSize.height
ungifanalyze()
// console.log("onStatusChanged Ready ")
// defaultpic.visible = false
}
else if(ungif.status == Image.Error)
{
picFlick.imageFlag = false
picFlick.image_ungif_States = false
}
}
}
// Text {
// id:text_num
// anchors.bottom: parent.bottom
// anchors.left: parent.left
// text: col1== "" ? 'name is kong':'<b>Name:</b> ' + col1
// font.pixelSize: 30//24
// }
PinchArea
{
id:pinch_area
property real p1toC_X
property real p1toC_Y
property real contentInitX
property real contentInitY
property real tempscalenum
x:ungif.x
y:ungif.y
width:ungif.width
height:ungif.height
onPinchStarted:
{
USBControl1.usbCtrlImageTouchReleaseTimerOff()
// USBControl1.usbCtrlImageDisplayTimerOff()
picFlick.cancelFlick()
// USBControl1.imagePlayStatus = StatusList.USB_PAUSE
// USBControl1.usbCtrlImageTimeTimerOff()
// softkeyappear()
//identify if less than two finger or finger out of picture
if(pinch.point1.x<0||pinch.point1.y<0||pinch.startPoint1.x<0||pinch.startPoint1.y<0||
pinch.point2.x<0||pinch.point2.y<0||pinch.startPoint2.x<0||pinch.startPoint2.y<0||
pinch.point1.x>pinch_area.width||pinch.point1.y>pinch_area.height||pinch.startPoint1.x>pinch_area.width||pinch.startPoint1.y>pinch_area.height||
pinch.point2.x>pinch_area.width||pinch.point2.y>pinch_area.height||pinch.startPoint2.x>pinch_area.width||pinch.startPoint2.y>pinch_area.height)
{
pinch.accepted = false
}
else
{
pinch.accepted = true
if( (picFlick.imageFlag == true)&&(picFlick.image_ungif_States == true) )
{
picFlick.interactive = false
big_Grid_View.interactive = false
scalenum1 = scalenum
pinch_area.tempscalenum = scalenum
p1toC_X = pinch.center.x//(pinch.center.x-ungif.x)
p1toC_Y = pinch.center.y//(pinch.center.y-ungif.y)
contentInitX = picFlick.contentX
contentInitY = picFlick.contentY
// console.log(" onPinchStarted ``````````````````````````````")
}
}
}
onPinchUpdated:
{
if(pinchstop == true)
{
//pinch don't update
}
else if(pinch.point1.x<0||pinch.point1.y<0||pinch.startPoint1.x<0||pinch.startPoint1.y<0||
pinch.point2.x<0||pinch.point2.y<0||pinch.startPoint2.x<0||pinch.startPoint2.y<0||
pinch.point1.x>pinch_area.width||pinch.point1.y>pinch_area.height||pinch.startPoint1.x>pinch_area.width||pinch.startPoint1.y>pinch_area.height||
pinch.point2.x>pinch_area.width||pinch.point2.y>pinch_area.height||pinch.startPoint2.x>pinch_area.width||pinch.startPoint2.y>pinch_area.height||
pinch.pointCount < 2)
{
pinch.accepted = false
pinchstop = true
//identify if less than two finger or finger out of picture,pinch don't update,wait pinch finish
}
else
{
if( (picFlick.imageFlag == true)&&(picFlick.image_ungif_States == true))
{
scalenum = scalenum1*pinch.scale
//scalenum1 mini is 1,max is 4,other tiaozheng scalenum wei zhengchangzhi
if(((scalenum1 == 1)&&(scalenum < 1))||((scalenum1 == 4)&&(scalenum > 4)))
{
if(scalenum >= 4.0)
{
scalenum = 4.0
}
if(scalenum < 1.0)
{
scalenum = 1.0
}
}
else
{
//naca no.58152 shuangzhi fangda tupian paofei wei heiping
if(scalenum >= 4.0)
{
scalenum = 4.0
}
if(scalenum < 1.0)
{
scalenum = 1.0
}
//shangci he benci chayi guoxiao ze buchuli,fouze tiaozheng tupian
if(((scalenum - pinch_area.tempscalenum) >= 0.001)||((pinch_area.tempscalenum - scalenum) >= 0.001))
{
// console.log(" onPinchUpdated ``````````````````````````````scalenum="+scalenum)
pinch_area.tempscalenum = scalenum
ungif.width = picFlick.oldwidth*scalenum
ungif.height = picFlick.oldheight*scalenum
var contentDriftX = ((1-pinch.scale)*p1toC_X)
var contentDriftY = ((1-pinch.scale)*p1toC_Y)
picFlick.contentX = contentInitX-contentDriftX
picFlick.contentY = contentInitY-contentDriftY
if(ungif.width > (picFlick.oldwidth*4)||(ungif.width < picFlick.oldwidth))
{
pinch.accepted = false
}
// console.log(" onPinchUpdated ``````````ungif.width="+ungif.width+"ungif.height"+ungif.height)
}
else
{
/*do nothing*/
}
}
}
}
}
onPinchFinished:
{
pinchstop = false
pinch.accepted = true
// softkeyappear()
// display_timer.running = true
// USBControl1.usbCtrlImageDisplayTimerOn()
// twoFingerCtrl = 0
if( (picFlick.imageFlag == true)&&(picFlick.image_ungif_States == true) )
{
if(scalenum <= 1.0)
{
scalenum = 1.0
}
if(scalenum >= 4.0)
{
scalenum = 4.0
}
if(ungif.width >= iImageMaxWidth)
{
picFlick.contentX = picFlick.contentX - ungif.x
ungif.x = 0
}
else
{
ungif.x = (iImageMaxWidth - ungif.width)/2
picFlick.contentX = 0
}
if(ungif.height >= iImageMaxHeight)
{
picFlick.contentY = picFlick.contentY - ungif.y
ungif.y = 0
}
else
{
ungif.y = (iImageMaxHeight - ungif.height)/2
picFlick.contentY = 0
}
if(picFlick.contentX < 0)
{
picFlick.contentX = 0
}
if((ungif.width >= iImageMaxWidth)&&(picFlick.contentX > (ungif.width - iImageMaxWidth)))
{
picFlick.contentX = ungif.width - iImageMaxWidth
}
if(picFlick.contentY < 0)
{
picFlick.contentY = 0
}
if((ungif.height >= iImageMaxHeight)&&(picFlick.contentY > (ungif.height - iImageMaxHeight)))
{
picFlick.contentY = ungif.height - iImageMaxHeight
}
picFlick.interactive = true
big_Grid_View.interactive = true
}
picFlick.imagetempindex = big_Grid_View.currentIndex
big_Grid_View.currentIndex = big_Grid_View.indexAt(big_Grid_View.contentX,0)
if(big_Grid_View.currentIndex != picFlick.imagetempindex)
{
settype = 2
setscale()
scalenum = 1.0
}
big_Grid_View.positionViewAtIndex(big_Grid_View.currentIndex,big_Grid_View.Beginning)
updateIndex()//add by lium for 344450 20190724
// if (playstate == true)
// {
// bigview_menu.visible = true
// big_gridview_Rec.menu_showing_flg = true
// playstate = false
// imageControl.bFullScreenFlag = false
// }
}
HMIMouseArea
{
id: dragArea
anchors.fill: parent
onPressed:
{
USBControl1.usbCtrlImageTouchReleaseTimerOff()
}
onReleased:
{
// if( true == all_button_area.visible && false == nameSearch_keyBoard.visible )
// {
// // console.log (" all_button_area.visible = false 2222");
// all_button_area.visible = false
// button_timer.stop()
// }
// else
// {
// // console.log (" all_button_area.visible = true 2222");
// all_button_area.visible = true
// button_timer.restart()
// }
}
}
}
function ungifanalyze()
{
// console.log(" onPinchUpdated ``````````ungif.realheight="+ungif.realheight+"ungif.realwidth"+ungif.realwidth)
if(ungif.realheight <= iImageMaxHeight)
{
if(ungif.realwidth <= iImageMaxWidth)
{
ungif.width = ungif.realwidth
ungif.height = ungif.realheight
}
else
{
ungif.width = iImageMaxWidth
ungif.height = ungif.width*ungif.realheight/ungif.realwidth
}
}
else
{
if(ungif.realwidth <= iImageMaxWidth)
{
ungif.height = iImageMaxHeight
ungif.width = ungif.height*ungif.realwidth/ungif.realheight
}
else
{
if(ungif.realwidth/ungif.realheight >= iImageMaxWidth/iImageMaxHeight)
{
ungif.width = iImageMaxWidth
ungif.height = ungif.width*ungif.realheight/ungif.realwidth
}
else
{
ungif.height = iImageMaxHeight
ungif.width = ungif.height*ungif.realwidth/ungif.realheight
}
}
}
ungif.x = (iImageMaxWidth - ungif.width)/2
ungif.y = (iImageMaxHeight - ungif.height)/2
picFlick.oldwidth = ungif.width
picFlick.oldheight = ungif.height
// console.log(" onPinchUpdated ``````````picFlick.width="+picFlick.oldwidth+"picFlick.height"+picFlick.oldheight)
picFlick.oldx = ungif.x
picFlick.oldy = ungif.y
// console.log(" picFlick.oldx="+ picFlick.oldx+" picFlick.oldy="+ picFlick.oldy)
}
}
}
Item
{
id:big_gridview_Item
x:0
y:105 //MOD Myf correct User_manual display problem
width:960
height:970//1050
visible:true
Rectangle
{
// width:768
// height:704
color: "white"//"black" //modify by lium 342445 342437
id:big_gridview_Rec
anchors.fill:parent
// anchors.verticalCenter: big_gridview_Item.verticalCenter
// anchors.horizontalCenter: big_gridview_Item.horizontalCenter
// property bool clickedFlag: false
/*
Image
{
id: picture_bg
anchors.fill:parent
source: bMaxWindow == true?"qrc:MATERIAL/MATERIAL_M8X_PICTURE+VIDEO_BG_FULL-SCREEN"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_PICTURE+VIDEO_BG"+bgImageStyle
// source: bMaxWindow == true?"qrc:MATERIAL/MATERIAL_M8X_PICTURE_DEFAULT_FULL-SCREEN"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_PICTURE_DEFAULT"+bgImageStyle
}
*/
GridView
{
id:big_Grid_View
anchors.fill: parent
cellWidth:big_gridview_Rec.width
cellHeight:big_gridview_Rec.height
model:USBControl1.manualimagemodel
delegate: delegate
clip: false //true
smooth:false //true
flow:GridView.TopToBottom
focus: true
snapMode : GridView.SnapOneRow
boundsBehavior:Flickable.StopAtBounds
//FOD review yx 20170208 begin
cacheBuffer:50 //960 //960*3//5002*20
//FOD review yx 20170208 end
onFlickStarted:
{
}
onFlickEnded:
{
}
onMovementStarted:
{
input_num_flag = false//add by lium for 340693 20190627
nameSearch_keyBoard.visible = false//add by lium for 340693 20190627
movingflag = true
moveSatrtIndex = big_Grid_View.currentIndex
USBControl1.usbCtrlImageTouchReleaseTimerOff()
movingcompareindex = big_Grid_View.currentIndex
moving_timer.running = true
if(scalenum > 1)
{
movetoadjflag = true
}
// console.log (" onMovementStarted ="+big_Grid_View.currentIndex);
}
onMovementEnded:
{
if( true == movingflag )
{
USBControl1.usbCtrlImageTouchReleaseTimerOff()
movingflag = false
movetoadjflag = false
moving_timer.running = false
big_Grid_View.currentIndex = big_Grid_View.indexAt(big_Grid_View.contentX,big_Grid_View.contentY)
// if( (total_num -1) == big_Grid_View.currentIndex )
// {
// total_num= total_num +10
// USBControl1.usbsetFileList_user_manual(total_num)
// }
if( big_Grid_View.currentIndex != moveSatrtIndex)
{
scale_reset()
}
// console.log (" onMovementEnded ="+big_Grid_View.currentIndex);
}
}
onCurrentIndexChanged:
{
// console.log (" big_Grid_View.currentIndex ="+big_Grid_View.currentIndex);
currentIndexforDisplay = big_Grid_View.currentIndex
}
}
}
}
Item
{
id:all_button_area
y:30 //ADD Myf correct User_manual display problem//modify by lium for 342444 20190718
Item//modify by lium for 342444 20190718
{
x:0
y:0
width:960
height:78
//color:"black"//del by lium for 342444 20190718
MouseArea{
anchors.fill: parent
onClicked: {
// console.log(",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, click ")
}
}
}
HMIButton
{
id:nameSearchBack_button
x:0
y:5
width:190//138//modify by lium for 340567 20190620
height:70
visible: true
//add by lium for 340567 20190620 begin
Image
{
id:back_btn_image
x:5
y:3
width: 50
height:64
anchors.verticalCenter:parent.verticalCenter
source:nameSearchBack_button.pressed?"qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle
}
//add by lium for 340567 20190620 end
HMILabel
{
id:fanhui
x: 54//46//40//modify by lium 20190620
y: 1//0
width: 138//90//modify by lium 20190620
height: 70
text:"Back"
font.pixelSize: 30
wtitesize:0
anchors.verticalCenter:parent.verticalCenter//add by lium for 340567 20190620
horizontalAlignment: Text.AlignLeft//add by lium for 340567 20190620
}
//btnImg:nameSearchBack_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON"+bgImageStyle//del by lium for 340567 20190620
Image
{
x: 20
y: 18
width:20
height:34
source:"qrc:MATERIAL/MATERIAL_M8X_ICON_BACK"+bgImageStyle
}
onClicked:
{
// ScreenManager.changeForm(Layout.FM_CLOSE,WindowsList.USER_MANUAL)
ScreenManager.hideOverlay(WindowsList.USER_MANUAL)
}
}
Image//modify by lium for 342444 20190718
{
id:input_background
x: 260//330
y: 5
width:300
height:70
//color: "#101010" //Hexadecimal//del by lium for 342444 20190718
source: "qrc:MATERIAL/MATERIAL_INPUT_70_W300"+bgImageStyle//add by lium for 342444 20190718
MouseArea
{
anchors.fill: parent
onClicked:
{
input_num_flag = true
if(false == nameSearch_keyBoard.visible )
{
nameSearch_keyBoard.visible = true
}
}
}
}
HMILabel
{
id: indexcurt
x:(input_background.x+70)//400//396
y:23
width:80
height:36
text:(0 == total_num)?"0"+systemCtrl.emptyString:currentIndexforDisplay+1
font.pixelSize: 30
horizontalAlignment: Label.AlignRight
visible: !input_num_flag
wtitesize:1
color: "#656565"
}
HMILabel
{
id:of
x:(input_background.x+150)//480//476
y:23
width:8
height:36
text:"/"
font.pixelSize: 30
visible:!input_num_flag
wtitesize:1
color: "#656565"
}
HMILabel
{
id: indextotal
x:(input_background.x+158)//488//484
y:23
width:80
height:36
text:total_num
font.pixelSize: 30
horizontalAlignment: Label.AlignLeft
visible:!input_num_flag
wtitesize:1
color: "#656565"
}
TextInput
{
id: nameSearchInput
x: input_background.x
anchors.verticalCenter: input_background.verticalCenter
width: 300
height: 70
font.pixelSize: 30//24
readOnly: false
enabled: true
clip: true
horizontalAlignment: TextInput.AlignHCenter //Text.AlignLeft
verticalAlignment: Text.AlignVCenter
text:""
color:"white" //"#130f0f"
maximumLength: 3
cursorVisible:true
selectedTextColor:"white" //"#676767"
selectionColor: "#676767"
font.family:"Montserrat"
cursorDelegate:mCursorDelegate
visible: input_num_flag
Component
{
id:mCursorDelegate
Rectangle
{
id:mCursorRectangle
color: "white"
height: nameSearchInput.cursorRectangle.height
width: nameSearchInput.cursorRectangle.width
Timer
{
running: true
repeat: true
interval: 800
onTriggered:
{
mCursorRectangle.visible = ! mCursorRectangle.visible
// console.log(",,,,,,,,,,,cursorPosition="+nameSearchInput.cursorPosition)
}
}
}
}
Label
{
id:nameSearchLable
x:(nameSearchInput.contentWidth>nameSearchInput.width)?0-(nameSearchInput.contentWidth-nameSearchInput.width):0
y:0
height: 70
width: 842
text:nameSearchInput.text
font.family:"Montserrat" //add lqy for 325925
color: "white"
font.pixelSize: 30
horizontalAlignment: Label.AlignHCenter //Label.AlignLeft AlignHCenter
verticalAlignment: Label.AlignVCenter
}
onCursorPositionChanged:
{
if(nameSearchInput.text.length == 3)
{
// keyBoard.maximumState = true
}
else if(nameSearchInput.text.length < 3)
{
// keyBoard.maximumState = false
}
}
HMIMouseArea{
anchors.fill: parent
onClicked: {
systemCtrl.pinyinsreachclear()
nameSearchInput.cursorPosition = nameSearchInput.positionAt(mouseX,mouseY)
if(false == nameSearch_keyBoard.visible )
{
nameSearch_keyBoard.visible = true
// bKeyboardVisiable = true
}
// if(handWrite.visible==true)
// bhandwritebar=true
// if(keyBoard.visible==true)
// bhandwritebar=false
// if(handWrite.changecanvas==false)
// handWrite.changecanvas=true
}
onDoubleClicked:
{
nameSearchInput.selectAll()
}
}
}
// Rectangle
// {
// id:jump_to_button_bg
// anchors.fill: jump_to_button
// color:"black"
// }
HMIButton
{
id:jump_to_button
x:562
y:5
width:138
height:70
visible: true
HMILabel
{
id:jump_to
text:"Go"
width:138
height:70
font.pixelSize: 30
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenterOffset:1
anchors.verticalCenterOffset:2
// horizontalAlignment: Label.AlignHCenter
// verticalAlignment: Label.AlignVCenter
wtitesize:0
// font.family:"方正兰亭黑简体"
}
btnImg:jump_to_button.pressed?"qrc:MATERIAL/MATERIAL_GOTO_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_GOTO_BUTTON"+bgImageStyle//user manual change//modify by lium for 342444 20190718
onClicked:
{
if(nameSearchInput.text > 0 && nameSearchInput.text <= total_num )
{
big_Grid_View.cancelFlick()
if(scalenum > 1)
{
scalenum = 1
settype = 2
setscale()
}
big_Grid_View.currentIndex = (nameSearchInput.text-1)
big_Grid_View.contentX = big_Grid_View.currentIndex*big_gridview_Rec.width
nameSearchInput.text = ""
nameSearch_keyBoard.visible = false
input_num_flag = false
// button_timer.restart()
}
else
{
// console.log("nameSearchInput.text out range ")
}
}
}
HMIButton
{
id:contents_button
x:822
y:5
width:138
height:70
visible: true
//add by lium for 344451 20190724 begin
Image
{
id: contents_button_image
anchors.fill: parent
source: contents_button.pressed?"qrc:MATERIAL/MATERIAL_GOTO_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_GOTO_BUTTON"+bgImageStyle
//onSourceChanged:
//{
//console.log(" onSourceChanged 11111111111111111")
//}
}
//add by lium for 344451 20190724 end
HMILabel
{
id:contents
text:"Index"
width:138
height:70
font.pixelSize: 30
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenterOffset:1
anchors.verticalCenterOffset:2
wtitesize:0
}
//btnImg:contents_button.pressed?"qrc:MATERIAL/MATERIAL_GOTO_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_GOTO_BUTTON"+bgImageStyle//user manual change//modify by lium for 342444 20190718//del by lium for 344451 20190724
//add by lium for 344451 20190724 begin
onPressed:
{
//console.log("~~~~~~~~~~contents_button,onPressed",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
contents_button_image.source = "qrc:MATERIAL/MATERIAL_GOTO_BUTTON_P"+bgImageStyle
}
onReleased:
{
//console.log("~~~~~~~~~~contents_button,onReleased",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
contents_button_image.source = "qrc:MATERIAL/MATERIAL_GOTO_BUTTON"+bgImageStyle
}
//add by lium for 344451 begin
onCanceled:
{
contents_button_image.source = "qrc:MATERIAL/MATERIAL_GOTO_BUTTON"+bgImageStyle
}
//add by lium for 344451 end
//add by lium for 344451 20190724 end
onClicked:
{
if(total_num > 0)
{
big_Grid_View.cancelFlick()
if(scalenum > 1)
{
scalenum = 1
settype = 2
setscale()
}
moving_timer.running = true//add by lium for 342447 20190708
big_Grid_View.currentIndex = 0
big_Grid_View.contentX = big_Grid_View.currentIndex*big_gridview_Rec.width
nameSearchInput.text = ""
nameSearch_keyBoard.visible = false
input_num_flag = false
}
}
}
}
Item
{
id:nameSearch_keyBoard
y: 677 //MOD Myf correct User_manual display problem
visible: true
onVisibleChanged:
{
if (nameSearch_keyBoard.visible == true)
{
}
}
Rectangle{
id:keyBoard_bg
width: 960
height: 400
color: "black"
// anchors.fill: parent
}
Item{
id: keyBoard
width:960
height: 400
MouseArea
{
anchors.fill: parent
}
Column{
id: keyboardColumn
Item{
id:keyRowItem
width: 960
height: 400
Row
{
id:firstRow
anchors{top:parent.top;topMargin:0;horizontalCenter: parent.horizontalCenter}
Image
{
width: 96*9
source:("qrc:MATERIAL/MATERIAL_M8X_CANDIDATE-KEY_BG"+style)
}
HMIKeyBtn
{
id:closeKeyboard
Image {
id: closeKeyboardicon
anchors.horizontalCenter: closeKeyboard.horizontalCenter
y:28
source: "qrc:MATERIAL/MATERIAL_M8X_ARROW_RETRACT"+style
}
onClicked:
{
nameSearch_keyBoard.visible = false
// button_timer.restart()
}
}
}
Row{
id: secondRow
x:1
anchors{top:firstRow.bottom;topMargin:2;horizontalCenter: parent.horizontalCenter}
spacing: 2
Repeater{
model: ["1","2","3","4","5","6","7","8","9","0"]
HMIKeyBtn{
id:secondRowKey;
labelText:qsTr(modelData);
labelSize:30
cursize: 1
labelPixelSize:28
onPressed: {
if(nameSearchInput.text.length == nameSearchInput.cursorPosition)
{
if(nameSearchInput.text.length < 3)
{
if( 0 == nameSearchInput.cursorPosition)
{
the_one_text = modelData
}
else if( 1 == nameSearchInput.cursorPosition)
{
the_two_text = modelData
}
else if( 2 == nameSearchInput.cursorPosition)
{
the_three_text = modelData
}
}
nameSearchInput.text =nameSearchInput.text+modelData
}
else if(nameSearchInput.text.length < 3)
{
if(0 == nameSearchInput.cursorPosition)
{
the_three_text = the_two_text
the_two_text = the_one_text
the_one_text = modelData
nameSearchInput.text= modelData+ nameSearchInput.text
nameSearchInput.cursorPosition = 1
}
else if(1 == nameSearchInput.cursorPosition)
{
nameSearchInput.text= the_one_text+ modelData + the_two_text
the_three_text = the_two_text
the_two_text = modelData
nameSearchInput.cursorPosition = 2
}
}
}
}
}
}
Row{
id: thirdRow
anchors{top:secondRow.bottom;topMargin: 2}
x:49
spacing: 2
Repeater{
model: ["-","/",":",";","(",")","!","《","》"]
HMIKeyBtn{
id:thirdRowKey;
labelSize:30
labelPixelSize:30
cursize: 1
labelText: qsTr(modelData);
labelColor:iNum?"#424242":"white"
enabled:iNum?false:true
onPressed: {
}
}
}
}
Row{
id:fourRow
anchors{top:thirdRow.bottom;topMargin: 2}
x:secondRow.x
spacing: 2
HMIKeyBtn{
id:shift
labelText: iType==3?"#+=":""
labelSize:30
z:1
cursize: 1
labelPixelSize:30
width:142
height:78
labelColor:iNum?"#424242":"white"
enabled:iNum?false:true
btnImg:shift.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style)
onClicked: {
}
}
Repeater{
model: ["、","_","•","?",",","\“","\”"]
HMIKeyBtn{
id:fourRowKey;
cursize: 1
labelSize:30
labelPixelSize:30
labelText: {
if(modelData=="、")
{
""
}else if(modelData=="?")
{
""
}
else{
qsTr(modelData)
}
}
labelColor:iNum?"#424242":"white"
enabled:iNum?false:true
HMILabel{
id:dian
x:43
y:35
anchors.horizontalCenter: parent.horizontalCenter
width: iLanguage==0?25:20//FOD #159147 2017/3/21 ld
height: iLanguage==0?28:25
visible: modelData=="?"
color: iNum?"#424242":"white"
enabled:iNum?false:true
text:qsTr("?")
}
HMILabel{
id:dunhao
x:43
y:28
width: iLanguage==0?25:20//FOD #159147 2017/3/21 ld
height: iLanguage==0?28:25
visible: modelData=="、"
color: iNum?"#424242":"white"
enabled:iNum?false:true
text:qsTr("、")
}
onPressed: {
}
}
}
HMIKeyBtn
{
id:deleteKey
labelSize:28
labelPixelSize:28
width:142
height:78
btnImg:deleteKey.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style)
Image
{
id:deleteImage
anchors.centerIn: parent
source:"qrc:MATERIAL/MATERIAL_M8X_ICON_DELETE"+style
}
onPressAndHold: {
nameSearchInput.text=""
the_one_text = ""
the_two_text = ""
the_three_text = ""
}
onClicked:
{
if( "" != nameSearchInput.selectedText)
{
nameSearchInput.text=""
the_one_text = ""
the_two_text = ""
the_three_text = ""
// console.log(" deleteKey onClicked 000")
}
else if(nameSearchInput.text.length == nameSearchInput.cursorPosition)
{
if( 3 == nameSearchInput.cursorPosition)
{
nameSearchInput.text = the_one_text + the_two_text
the_three_text = ""
}
else if( 2 == nameSearchInput.cursorPosition)
{
nameSearchInput.text = the_one_text
the_two_text = ""
}
else if( 1 == nameSearchInput.cursorPosition)
{
nameSearchInput.text =""
the_one_text = ""
}
}
else
{
if(2 == nameSearchInput.cursorPosition)
{
nameSearchInput.text= the_one_text + the_three_text
the_two_text = the_three_text
the_three_text = ""
nameSearchInput.cursorPosition = 1
}
else if(1 == nameSearchInput.cursorPosition)
{
nameSearchInput.text= the_two_text+ the_three_text
the_one_text = the_two_text
the_two_text = the_three_text
the_three_text = ""
nameSearchInput.cursorPosition = 0
}
}
}
}
}
Row{
id:fiveRow
anchors{top:fourRow.bottom;topMargin: 2}
x:fourRow.x
spacing: 2
HMIKeyBtn{
id:shouxie
labelText:(iType==3)?"ABC":"123"
labelSize:30
labelPixelSize:30
width:142
height:78
labelColor:iNum?"#424242":"white"
enabled:iNum?false:true
btnImg:shouxie.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style)
onClicked: {
}
}
HMIKeyBtn{
id:pinyin
labelSize:30
labelPixelSize:30
width:142
height:78
labelColor: iNum?"#424242":"white"
enabled:iNum?false:true
btnImg:pinyin.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style)
HMILabel{
id:englishlabel
anchors.centerIn: parent
width: 180
height:35
wtitesize:1
visible: true
color: iNum?"#424242":"white"
text:(qsTr("English")+systemCtrl.emptyString)
font.pixelSize:30
}
onClicked:
{
}
}
HMIKeyBtn{
id:ctrlKey;
labelBold : false
labelPixelSize : 30
enabled:iNum?false:true
height:78
btnImg:
{
ctrlKey.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_SPACE_BUTTON_W526_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_SPACE_BUTTON_W526"+style)
}
Image {
id: ctrlKeyicon
anchors.horizontalCenter: ctrlKey.horizontalCenter
y:ctrlKey.y+34
source: iNum?("qrc:MATERIAL/MATERIAL_M8X_ICON_SPACE_D"+style):("qrc:MATERIAL/MATERIAL_M8X_ICON_SPACE"+style)//FOD #150435 2017/2/20 ld
}
onPressed:str = qsTr("");
onClicked: {
}
}
HMIButton{
id:confirm
x:ctrlKey.x+2
width:142
height:78
labelPixelSize:30//FOD design 2017/1/10 ld
btnImg:confirm.pressed?("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142_P"+style):("qrc:MATERIAL/MATERIAL_M8X_KEYBOARD_BUTTON_H142"+style)
visible: true
enabled: true
HMILabel
{
anchors.centerIn: parent
width: 180
height:35
wtitesize:1
text:qsTr("OK")+systemCtrl.emptyString
font.pixelSize:30
}
onClicked:{
if(nameSearchInput.text > 0 && nameSearchInput.text <= total_num)
{
if(scalenum > 1)
{
scalenum = 1
settype = 2
setscale()
}
big_Grid_View.currentIndex = (nameSearchInput.text-1)
big_Grid_View.contentX = big_Grid_View.currentIndex*big_gridview_Rec.width
nameSearchInput.text = ""
nameSearch_keyBoard.visible = false
input_num_flag = false
// button_timer.restart()
}
else
{
ScreenManager.showOverlay(WindowsList.USERMANUAL_ERROR)//add by lium for 340695 20190628
// console.log("nameSearchInput.text out range ")
}
}
}
}
}
}
}
}
Image
{
id:hlineimg
visible: true
y:0
// height: 2
//source:"qrc:MATERIAL/MATERIAL_M8X_LINE_SPLIT-SCREEN_H2" + bgImageStyle;//del by lium 20180926
}
// Timer{
// id:button_timer
// interval: 3000
// running: false
// onTriggered: {
// if( true == all_button_area.visible)
// {
// if( false == nameSearch_keyBoard.visible )
// {
// all_button_area.visible = false
// }
// }
// }
// }
//add by lium for 344450 20190724 begin
function updateIndex()
{
//console.log(" updateIndex movetoadjflag ="+movetoadjflag)
//console.log(" updateIndex ---- "+big_Grid_View.contentX/big_gridview_Rec.width)
//console.log(" updateIndex ---- "+big_Grid_View.contentX)
//console.log(" updateIndex ---- "+big_gridview_Rec.width)
movingcurtindex = big_Grid_View.contentX/big_gridview_Rec.width
//console.log(" updateIndex ---- movingcurtindex ="+movingcurtindex)
//console.log(" updateIndex ---- movingcompareindex ="+movingcompareindex)
if(movingcurtindex != movingcompareindex)
{
currentIndexforDisplay = movingcurtindex
console.log(" updateIndex ---- currentIndexforDisplay="+currentIndexforDisplay)
movingcompareindex = movingcurtindex
}
}
//add by lium for 344450 20190724 end
Timer
{
id:moving_timer
interval: 200
running: false
repeat: true
onTriggered:
{
movingcurtindex = big_Grid_View.contentX/big_gridview_Rec.width
if(movingcurtindex != movingcompareindex)
{
currentIndexforDisplay = movingcurtindex
movingcompareindex = movingcurtindex
if(movetoadjflag == true)
{
scalenum = 1
settype = 2
setscale()
movetoadjflag = false
}
}
}
}
Connections
{
target:USBControl1
onUsbImageTouchReleaseTimerOut:
{
// console.log(",,,,,,,,, onUsbImageTouchReleaseTimerOut .......")
if(allreleasecontentx == big_Grid_View.contentX)
{
big_Grid_View.visible = false
big_Grid_View.visible = true
}
}
}
Connections
{
target: systemCtrl
onTouchRelase:
{
// console.log(",,,,,,,,,onTouchRelase .......")
if(true == movingflag && big_Grid_View.contentX%960 != 0)
{
allreleasecontentx = big_Grid_View.contentX
USBControl1.usbCtrlImageTouchReleaseTimerOn()
}
//add by liuming for 340569 20190621 begin
if(nameSearchBack_button.pressed)
{
console.log("onTouchRelase ………………………… ^^^^ nameSearchBack_button.pressed")
//back_btn_image.source = "qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle
ScreenManager.hideOverlay(WindowsList.USER_MANUAL)
}
//add by liuming for 340569 20190621 end
//add by liuming for 344451 20190723 begin
if(contents_button.pressed)
{
console.log("onTouchRelase ………………………… ^^^^ contents_button.pressed",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
if(total_num > 0)
{
big_Grid_View.cancelFlick()
if(scalenum > 1)
{
scalenum = 1
settype = 2
setscale()
}
moving_timer.running = true//add by lium for 342447 20190708
big_Grid_View.currentIndex = 0
big_Grid_View.contentX = big_Grid_View.currentIndex*big_gridview_Rec.width
nameSearchInput.text = ""
nameSearch_keyBoard.visible = false
input_num_flag = false
}
//console.log("onTouchRelase ………………………… ^^^^ contents_button.pressed 1",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz"))
contents_button_image.source = "qrc:MATERIAL/MATERIAL_GOTO_BUTTON"+bgImageStyle
//add by liuming for 344451 20190723 end
}
}
}
/*Connections //del by lium 20190704 begin
{
target:vrCtrl
onVrSourceStartSignal:
{
if(true == ScreenManager.isOverlayShowed(WindowsList.USER_MANUAL))
{
// console.log(",,,,,,,,,,,,,,,,,,,,,,,, hideOverlay 666")
ScreenManager.hideOverlay(WindowsList.USER_MANUAL)
}
}
}*/ //del by lium 20190704 end
}
|