blob: 1b3f93856a17d9f067b11a49de730a1f0172e990 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
|
import QtQuick 2.0
import "../../eventsList.js" as EventsList
import "../../com/neusoft/auto/widgets"
import "../../layoutList.js" as Layout
import "../../windowsList.js" as WindowsList
import "../../Setting/Settinglist.js" as Settinglist
import Label 2.0
import LabelInput 2.0
HMIWindow
{
id: nameSearchWindow
property int curContactIndex: 0
//ADD #144876 2017/01/17 wangshuang begin
property bool searchListState: false
property bool handWriteState: false
property bool keyBoardState: false
property bool outgoingcallstatus:false
property bool incommingcallstatus:false
//ADD #144876 2017/01/17 wangshuang end
//ADD #171487 2017/05/04 wangs begin
property bool bysearchBtnEnterBTPSearch:false
//ADD #171487 2017/05/04 wangs end
Component.onCompleted:
{
windowID = WindowsList.BTP_SEARCH
}
onVisibleChanged:
{
bFullWindow = true
renameLable.setTextInputHandle()
//systemCtrl.setTextInputHandle(nameSearchInput)
//FOD #144876 2017/01/17 wangshuang begin
//nameSearch_keyBoard.visible =true
//bKeyboardVisiable =false
//ADD #162779 2017/04/25 wangs begin
if(visible == true)
{
bNoSwitchBarVisiable = true
if(bysearchBtnEnterBTPSearch == true)
{
nameSearch_keyBoard.visible = true
bKeyboardVisiable = true
keyBoardState = false
handWriteState = false
searchListState = false
}
}
//ADD #162779 2017/04/25 wangs end
if((true == keyBoardState)||(true == handWriteState) )
{
nameSearch_keyBoard.visible =false
bKeyboardVisiable =false
}
else
{
nameSearch_keyBoard.visible = true
bKeyboardVisiable = true
}
if (true == searchListState)
{
nameSearch_list_view.visible = true
}else
{
nameSearch_list_view.visible = false
}
//FOD #144876 2017/01/17 wangshuang end
bNoSwitchBarVisiable = true
if(visible == false)
{
btCtrl.btpSearchSavedState = renameLable.labelInputAssembly.text//btCtrl.btpSearchSavedState = nameSearchInput.text
//Mod #327884 rxl 2019/04/02 start
if((outgoingcallstatus==false)&&(incommingcallstatus==false))
{
renameLable.labelInputAssembly.text = ""//nameSearchInput.text = ""
}
//Mod #327884 rxl 2019/04/02 end
}
//ADD #105313 2016/12/07 liduo begin
if(handWrite.visible==true)
bhandwritebar=true
if(keyBoard.visible==true)
bhandwritebar=false
if(handWrite.changecanvas==false)
{
handWrite.changecanvas=true
}
//ADD #105313 2016/12/07 liduo end
}
onCloseWindow:
{
if (closeType == Layout.CLOSE_BY_CLOSE)
{
// console.log("#######btp_search.qml : onCloseWindow:CLOSE_BY_CLOSE")
renameLable.labelInputAssembly.text = ""//nameSearchInput.text = ""
btCtrl.btpSearchSavedState = ""
}
else if (closeType == Layout.CLOSE_BY_OPEN)
{
// console.log("#######btp_search.qml : onCloseWindow:CLOSE_BY_OPEN")
}
//ADD #171487 2017/05/04 wangs begin
btCtrl.setEnterBTPSearchState(false)
//ADD #171487 2017/05/04 wangs end
//ADD #144876 2017/01/17 wangshuang begin
if((outgoingcallstatus==false)&&(incommingcallstatus==false))
{
searchListState = false
keyBoardState = false
handWriteState = false
}
outgoingcallstatus=false
incommingcallstatus=false
//ADD #144876 2017/01/17 wangshuang end
}
HMIButton
{
id:nameSearchBack_button
x: 0//3
y: 5//-4
width: 138//130
height: 70//80
//btnImg:nameSearchBack_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON"+bgImageStyle
Image
{
id:nameSearchBack_image
x:5//20//12
y:8//y:20
width: 50//20//24
height:64//34//40
//FOD 2018/10/10 by wyc begin
//source: "qrc:MATERIAL/MATERIAL_M8X_ICON_BACK"+bgImageStyle
source: nameSearchBack_button.pressed?"qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle
//FOD 2018/10/10 by wyc end
anchors.verticalCenter:parent.verticalCenter
}
HMILabel
{
id:nameSearchBack_label
x:54//58//36
y:25
//Fod #F0017 2016/10/11 wangshuang begin
width: 150//90//64//60//98
//Fod #F0017 2016/10/11 wangshuang end
height:38//30//35
text: qsTr("Back")+ systemCtrl.emptyString
font.pixelSize: 30
anchors.verticalCenter:parent.verticalCenter
horizontalAlignment: Text.AlignLeft
}
onClicked:
{
//FOD 2018/09/26 by wangyuecheng for changeForm begin
//ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.BTP_CONTACT)
ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.BTP_CONTACT)
//FOD 2018/09/26 by wangyuecheng for changeForm end
renameLable.labelInputAssembly.text = ""//nameSearchInput.text = ""
btCtrl.btpSearchSavedState = ""
//ADD #144876 2017/01/17 wangshuang begin
searchListState = false
keyBoardState = false
handWriteState = false
//ADD #144876 2017/01/17 wangshuang end
}
}
Image
{
id: nameSearchInput_bg
//Fod #F0008 2016/10/10 wangshuang begin
x: 58//55
y: 81//73
width:842
height:78
//Fod #141091 2016/12/29 wangshuang begin
source:"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle//"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle//nameSearchInput_bg.pressed?("qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle)
//:("qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle)//"qrc:MATERIAL/MATERIAL_M8X_INPUT-BOX_700_C"+bgImageStyle
//Fod #141091 2016/12/29 wangshuang end
}
//ADD F0055 2017/1/18 mengyufeng begin
Rectangle
{
id:input_background
x: 58//55
y: 81//73
width:842
height:78
color: "#161616"//"#130f0f" //Fod #171867 2017/05/08 wangs
}
//ADD F0055 2017/1/18 mengyufeng end
//ADD #154981 2017/03/14 wangs begin
HMIMouseArea{
anchors.left:input_background.left
anchors.top: input_background.top
height:78
width:(nameSearchClear_button.visible==true)?764:842 //Fod #175036 2017/05/22 wangs
onClicked: {
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
}
}
//ADD #154981 2017/03/14 wangs end
//DEL designchange 2017/04/17 wangs begin
//ADD #148854 2017/03/13 wangs begin
// Flickable {
// id: flick
// x:141
// y:81
// width: 632
// height: 78
// flickableDirection:Flickable.HorizontalFlick
// contentWidth: nameSearchInput.contentWidth
// contentHeight: nameSearchInput.contentHeight
// clip: true
// interactive:true
// boundsBehavior: Flickable.StopAtBounds
// function ensureVisible(r)
// {
// if (contentX >= r.x)
// contentX = r.x;
// else if (contentX+width <= r.x+r.width)
// contentX = r.x+r.width-width;
// if (contentY >= r.y)
// contentY = r.y;
// else if (contentY+height <= r.y+r.height)
// contentY = r.y+r.height-height;
// }
//DEL designchange 2017/04/17 wangs end
/* //DEL ... 2017/05/16 wangs begin
TextInput
{
id: nameSearchInput
//ADD designchange 2017/04/17 wangs begin
x: 141//134
y: 81//73
//ADD designchange 2017/04/17 wangs end
//Fod #F0008 2016/10/10 wangshuang end
anchors.verticalCenter: nameSearchInput_bg.verticalCenter
width: 632//(632>nameSearchInput.contentWidth)?632:nameSearchInput.contentWidth//632 //Fod designchange 2017/04/17 wangs begin
//ADD #145220 mengyufeng 20170125 begin
height: 78//33
//ADD #145220 mengyufeng 20170125 end
font.pixelSize: 30
readOnly: false
enabled: true
clip: true //ADD designchange 2017/04/17 wangs
//Fod #F185 2017/03/01 wangshuang begin
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
//Fod #F185 2017/03/01 wangshuang end
text:""
maximumLength: 30
//ADD F0055 2017/1/18 mengyufeng begin
color: "#130f0f"
font.family:"方正兰亭黑简体"
selectedTextColor:"#676767"
//ADD F0055 2017/1/18 mengyufeng end
//ADD #F0148 2017/1/10 wangshuang begin
selectionColor: "#676767"
//ADD #F0148 2017/1/10 wangshuang end
cursorVisible:true
//ADD F0055 2017/1/18 mengyufeng begin
//onCursorRectangleChanged:flick.ensureVisible(cursorRectangle) //DEL designchange 2017/04/17 wangs
cursorDelegate:mCursorDelegate
//ADD #161705 2017/4/11 ld begin
onTextChanged: {
if(nameSearchInput.text=="")
systemCtrl.clearPinyinSearchInfo()
}
//ADD #161705 2017/4/11 ld end
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
}
}
}
}
Label
{
id:nameSearchLable
x:(nameSearchInput.contentWidth>nameSearchInput.width)?0-(nameSearchInput.contentWidth-nameSearchInput.width):0
y:0
//FOD #145220 mengyufeng 20170125 begin
height: 78//33
//FOD #145220 mengyufeng 20170125 end
width: 632//842 //Fod designchange 2017/04/17 wangs
text:nameSearchInput.text
font.family:"方正兰亭黑简体"
color: "white"
font.pixelSize: 30
horizontalAlignment: Label.AlignLeft
verticalAlignment: Label.AlignVCenter
}
//ADD F0055 2017/1/18 mengyufeng end
HMIMouseArea{
anchors.fill: parent
//DEL #105313 2016/12/07 liduo begin
//visible: !nameSearch_keyBoard.visible
//enabled: !nameSearch_keyBoard.visible
//DEL #105313 2016/12/07 liduo end
onClicked: {
//ADD #105313 2016/12/07 liduo begin
nameSearchInput.cursorPosition = nameSearchInput.positionAt(mouseX,mouseY)
//DEL #105313 2016/12/07 liduo begin
//if(handWrite.visible==true)
// bhandwritebar=true
//if(keyBoard.visible==true)
// bhandwritebar=false
//if(handWrite.changecanvas==false){
// handWrite.changecanvas=true
//}
//DEL #105313 2016/12/07 liduo end
//ADD #105313 2016/12/07 liduo end
if(false == nameSearch_keyBoard.visible)
{
// console.debug("2$$$$$$$$$$$$")
nameSearch_keyBoard.visible = true
bKeyboardVisiable = true
//ADD #144876 2017/01/17 wangshuang begin
keyBoardState = false
handWriteState = false
//ADD #144876 2017/01/17 wangshuang end
} //ADD #175036 2017/05/17 wangs
//ADD #105313 2016/12/07 liduo begin
if(handWrite.visible==true)
bhandwritebar=true
if(keyBoard.visible==true)
bhandwritebar=false
if(handWrite.changecanvas==false){
handWrite.changecanvas=true
}
//ADD #105313 2016/12/07 liduo end
//} //DEL #175036 2017/05/17 wangs
//ADD #145225 2017/01/18 wangs begin
systemCtrl.pinyinsreachclear()
//ADD #145225 2017/01/18 wangs end
}
//ADD #146526 2017/02/22 wangs begin
onDoubleClicked:
{
systemCtrl.doubleClickChooseAll()
}
//ADD #146526 2017/02/22 wangs end
}
//Fod #144873 2017/01/12 wangshuang begin
onCursorPositionChanged:
{
if(nameSearchInput.text.length == 30)
{
keyBoard.maximumState = true
}
else if(nameSearchInput.text.length < 30)
{
keyBoard.maximumState = false
}
if (""!=nameSearchInput.text)
{
nameSearchClear_button.visible=true
}
else
{
nameSearchClear_button.visible=false
}
}
}
//DEL ... 2017/05/16 wangs end */
//}//DEL designchange 2017/04/17 wangs
//ADD #148854 2017/03/13 wangs end
HMILabelInput
{
id:renameLable
x: 141
height: 78
width: 632
labelInputAssembly.font.pixelSize:30
labelInputAssembly.selecteColor:"#676767"
labelInputAssembly.maximumLength:30
anchors.verticalCenter: nameSearchInput_bg.verticalCenter
onLableSingleClickSignal:
{
if(false == nameSearch_keyBoard.visible)
{
nameSearch_keyBoard.visible = true
bKeyboardVisiable = true
keyBoardState = false
handWriteState = false
}
if(handWrite.visible==true)
{
bhandwritebar=true
}
if(keyBoard.visible==true)
{
bhandwritebar=false
}
if(handWrite.changecanvas==false)
{
handWrite.changecanvas=true
}
}
onLableDoubleClickSignal:
{
systemCtrl.doubleClickChooseAllForLableInput(renameLable.labelInputAssembly.text.length)
}
onLableTextChanged:
{
if(renameLable.labelInputAssembly.text.length == 30)
{
keyBoard.maximumState=true
}
else if(renameLable.labelInputAssembly.text.length < 30)
{
keyBoard.maximumState=false
}
if (""!=renameLable.labelInputAssembly.text)
{
nameSearchClear_button.visible=true
}
else
{
nameSearchClear_button.visible=false
}
}
onLableMaxLengthSignal:
{
if(renameLable.labelInputAssembly.text.length == 30)
{
keyBoard.maximumState=true
}
else if(renameLable.labelInputAssembly.text.length < 30)
{
keyBoard.maximumState=false
}
if (""!=renameLable.labelInputAssembly.text)
{
nameSearchClear_button.visible=true
}
else
{
nameSearchClear_button.visible=false
//modify by Jiyulong for #177709 start 2017/5/25
systemCtrl.clearPinyinSearchInfo()
//modify by Jiyulong for #177709 end
}
}
}
HMIButton
{
id:nameSearchClear_button
x: 822//835
visible:false
anchors.verticalCenter: nameSearchInput_bg.verticalCenter
btnImg:nameSearchClear_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_ICON_CLEAR_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_ICON_CLEAR"+bgImageStyle
onClicked:
{
renameLable.labelInputAssembly.text = ""//nameSearchInput.text = ""
//ADD #145225 2017/1/22 ld begin
systemCtrl.clearPinyinSearchInfo()
//ADD #145225 2017/1/22 ld end
}
}
//Fod #144873 2017/01/12 wangshuang end
HMIListView
{
id: nameSearch_list_view
//Fod #F0008 2016/10/10 wangshuang begin
x: 58//25
y: 161//152
//Fod #F0008 2016/10/10 wangshuang end
//Fod #F0144 2016/12/22 wangshuang begin
width: 895//922
//Fod #F0144 2016/12/22 wangshuang end
//Fod #145016 2017/01/12 wangshuang begin
//Fod #121463 2016/10/13 wangshuang begin
height: (true == nameSearch_keyBoard.visible)?(bhandwritebar==true?560:320):720//(true == nameSearch_keyBoard.visible)?320:720//328:731//(true == nameSearch_keyBoard.visible)?408:731//574
//Fod #121463 2016/10/13 wangshuang end
//Fod #145016 2017/01/12 wangshuang end
spacing: 2
rightMargin:16
scrollBar:true
scrollBar_edge:0
scrollBar_width:8//4
scrollBar_img:"qrc:MATERIAL/MATERIAL_M8X_SLIDER_BAR"+bgImageStyle
model:btCtrl.btPhoneBookSearchListModel
delegate: phone_Number
snapMode:ListView.SnapToItem
boundsBehavior: Flickable.StopAtBounds
focus: true
}
Component
{
id: phone_Number
HMIButton
{
id:contact_List
//DEL #F0008 2016/10/10 wangshuang begin
//x: 30
//y: 150
//DEL #F0008 2016/10/10 wangshuang begin
enabled: col1=='1'?false:true
height: 78
//Fod #F0018 2016/10/11 wangshuang begin
//btnImg:(contact_List.pressed)?("qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle):("qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle)//"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle
btnImg:pressed?("qrc:MATERIAL/MATERIAL_LIST_78_P"+bgImageStyle):("qrc:MATERIAL/MATERIAL_LIST_78"+bgImageStyle)
// Image
// {
// height: 78
// visible: (curContactIndex == index) ? true:false
// source:(contact_List.pressed)?("qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle):("qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle)
// }
//Fod #F0018 2016/10/11 wangshuang end
Item
{
//Fod #F0013 2016/10/11 wangshuang begin
id:uptext//add by ZhangLiXin #348330
x:84//80//col6=='1'?73-34:52-34
y:7//8
//Fod #F0013 2016/10/11 wangshuang end
width: 610//670-60
height: 38//37
HMILabel
{
id:uplabeltext//add by ZhangLiXin #348330
anchors.fill: parent
font.pixelSize:30
text:col7//(col1 == '3')?(col0):(col7==""?col0:(col7+" "+col0))
//ADD #145220 mengyufeng 20170125 begin
wtitesize:2
//ADD #145220 mengyufeng 20170125 begin
horizontalAlignment: Label.AlignLeft
elide:Label.ElideRight
}
}
Item
{
//Fod #F0013 2016/10/11 wangshuang begin
x:84//80
y:39//35
//Fod #F0013 2016/10/11 wangshuang end
width: 610//670-60
height: 37
HMILabel
{
id:downtext//add by ZhangLiXin #348330
anchors.fill: parent
font.pixelSize:22
wtitesize:1
text://(col7 == "")?"":col0//col0//(col1 == '3')?(col0):(col7==""?col0:(col7+" "+col0))
{
//update by ZhangLiXin #348330
if(col7 != "")
{
col0
}
else
{
uplabeltext.text = col0
uptext.height = 75
uptext.y = 0
uplabeltext.verticalAlignment = Label.verticalAlignment
downtext.text = ""
}
}
//Fod #F0013 2016/10/11 wangshuang begin
color:(contact_List.pressed)?"white":"#808080"
//Fod #F0013 2016/10/11 wangshuang end
horizontalAlignment: Label.AlignLeft
elide:Label.ElideRight
}
}
onPressed:
{
if( true == btCtrl.btConnectState )
{
if (curContactIndex != index)
{
curContactIndex = index
}
}
}
onClicked:
{
btCtrl.outGoingCall(col0)
}
}
}
//Add #129445 2016/11/30 wangs begin
MouseArea
{
id:scroolbarcover
//Fod #F185 2017/02/06 wangshuang begin
x:900//58+842
//Fod #F185 2017/02/06 wangshuang end
y:161
width:60
height: (true == nameSearch_keyBoard.visible)?320:720
}
//Add #129445 2016/11/30 wangs end
Item
{
id:nameSearch_keyBoard
//DEL: stbug#163674 wudm 2017/04/07 begin
//x: -2
//DEL: stbug#163674 wudm 2017/04/07 end
y: 562
transformOrigin: Item.TopLeft
//scale:1.25
HMIKeyBoard
{
id: keyBoard
enabled:true
iSerach: true
onClickspell:
{
if(!keyBoard.isPinyin)
systemCtrl.setKeyPress(spell)
}
onSearchStart:
{
//Fod #145404 2017/02/23 wangs begin
//Fod #319581 sxd 2019/01/25 start
if((renameLable.labelInputAssembly.text != "") && (checkChar(renameLable.labelInputAssembly.text)==true))//nameSearchInput.text != ""
//Fod #319581 sxd 2019/01/23 end
{
nameSearch_keyBoard.visible = false
btCtrl.btPhoneBookSearchInfo(renameLable.labelInputAssembly.text)//nameSearchInput.text
//ADD #144876 2017/01/17 wangshuang begin
searchListState = true
keyBoardState = true
//ADD #144876 2017/01/17 wangshuang end
nameSearch_list_view.visible = true
bKeyboardVisiable = false
}
//Fod #145404 2017/02/23 wangs end
//Mod #327883 rxl 2019/04/02 start
else if((renameLable.labelInputAssembly.text != "") && (checkChar(renameLable.labelInputAssembly.text)==false))
{
btCtrl.phoneBookSearchListModelClear()
}
//Mod #327883 rxl 2019/04/02 end
}
onHandwriteborad:
{
keyBoard.visible=false
handWrite.visible=true
//ADD #105313 2016/12/07 liduo begin
bhandwritebar=true
//ADD #105313 2016/12/07 liduo end
}
onCloseKeyBoardSignal:
{
nameSearch_keyBoard.visible=false;
bKeyboardVisiable = false
//ADD #144876 2017/01/17 wangshuang begin
keyBoardState = true
//ADD #144876 2017/01/17 wangshuang end
//ADD #105313 2016/12/07 liduo begin
bhandwritebar=false
//ADD #105313 2016/12/07 liduo end
}
}
HMIHandWrite{
id:handWrite
y: 0
iSerach: true
visible: false
onKeyborad:
{
// console.log("#############################################")
keyBoard.iType=itype
keyBoard.visible=true
handWrite.visible=false
//ADD #105313 2016/12/07 liduo begin
bhandwritebar=false
//ADD #105313 2016/12/07 liduo end
}
onCloseKeyBoardSignal:
{
nameSearch_keyBoard.visible=false;
bKeyboardVisiable = false
//ADD #105313 2016/12/07 liduo begin
bhandwritebar=false
//ADD #105313 2016/12/07 liduo end
//ADD #144876 2017/01/17 wangshuang begin
handWriteState =true
//ADD #144876 2017/01/17 wangshuang end
}
onSearchStart:
{
//Fod #145404 2017/02/23 wangs begin
if(renameLable.labelInputAssembly.text != "")//nameSearchInput.text != ""
{
nameSearch_keyBoard.visible = false
btCtrl.btPhoneBookSearchInfo(renameLable.labelInputAssembly.text)//nameSearchInput.text
//ADD #144876 2017/01/17 wangshuang begin
searchListState = true
handWriteState =true
//ADD #144876 2017/01/17 wangshuang end
nameSearch_list_view.visible = true
bKeyboardVisiable = false
}
//Fod #145404 2017/02/23 wangs end
}
}
}
Connections
{
target:btCtrl
onBtConnectStatusChanged:
{
if( false == btCtrl.btConnectState )
{
if(nameSearchWindow.visible == true)
{
//FOD 2018/09/26 by wangyuecheng for changeForm begin
//ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.BTP_HOME)
//Mod #316372 2019/01/09 sxd start
ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.BTP_CONTACT)
//Mod #316372 2019/01/09 sxd end
//FOD 2018/09/26 by wangyuecheng for changeForm end
}
} //ADD 2019/02/19 by wyc FOR 320139 begin
else if (false == btCtrl.btserviceIsHFP)
{
if(nameSearchWindow.visible == true)
{
ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.BTP_HOME)
}
}
//ADD 2019/02/19 by wyc FOR 320139 end
}
onBtOutGoingCallChanged:
{
//Fod #162108 2017/03/31 wangs begin
if(nameSearchWindow.visible==true)
{
outgoingcallstatus=true
}
//Fod #162108 2017/03/31 wangs end
}
onBtIncommingCallChanged:
{
//Fod #162108 2017/03/31 wangs begin
if(nameSearchWindow.visible==true)
{
incommingcallstatus=true
}
//Fod #162108 2017/03/31 wangs end
}
//ADD #162108 2017/03/31 wangs begin
onBtTeminateCallChanged:
{
if(outgoingcallstatus == true)
{
outgoingcallstatus = false
}
if(incommingcallstatus == true)
{
incommingcallstatus = false
}
}
//ADD #162108 2017/03/31 wangs end
//ADD #171487 2017/05/04 wangs begin
onBtEnterBTPSearchStateChanged:
{
bysearchBtnEnterBTPSearch = btCtrl.btSearchBtnEnterBTPSearch
}
//ADD #171487 2017/05/04 wangs end
}
Connections
{
target:ScreenManager
// onBtHungupPageReset://del by lium for screenchange begin
// {
// renameLable.labelInputAssembly.text=btCtrl.btpSearchSavedState//nameSearchInput.text=btCtrl.btpSearchSavedState
// //ADD #144876 2017/01/17 wangshuang begin
// if (true == searchListState){
// nameSearch_list_view.visible = true
// }else{
// nameSearch_list_view.visible = false
// }
// if ((true == keyBoardState)||(true == handWriteState)){
// nameSearch_keyBoard.visible=false
// bKeyboardVisiable = false
// }else{
// nameSearch_keyBoard.visible=true
// bKeyboardVisiable = true
// }
// //ADD #144876 2017/01/17 wangshuang end
// }//del by lium for screenchange end
}
Connections
{
target:keyBoard
onDelKeyLongPressed:
{
//FOD 2019/03/14 by wyc FOR 322050 begin
//renameLable.labelInputAssembly.text = ""
var temp = renameLable.labelInputAssembly.text;
renameLable.labelInputAssembly.text = temp.substring(renameLable.labelInputAssembly.cursorPos,temp.length);
renameLable.labelInputAssembly.cursorPos = 0;
//FOD 2019/03/14 by wyc FOR 322050 end
}
}
Connections
{
target:handWrite
onDelKeyLongPressed:
{
renameLable.labelInputAssembly.text = ""
}
}
//Add #319581 sxd 2019/01/25 start
function checkChar(spell)
{
var regEn = /[-`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/im,
regCn = /[-·!#¥(——):;“”‘、,|《。》?、【】[\]]/im;
if(regEn.test(spell) || regCn.test(spell))
{
return false
}
return true
}
//Add #319581 sxd 2019/01/23 end
}
|