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 HMIWindow { property int curContactIndex: 0 property bool btBtnEnabledSta:btCtrl.btConnectState property string aTozCurrent: "" property bool outgoingcallstatus:false property bool incommingcallstatus:false property bool gesturesignals_leftstatus:false property bool gesturesignals_rightstatus:false //ADD #F0123 2016/12/08 wangshuang begin property bool pop_loadingState:true //ADD #F0123 2016/12/08 wangshuang end //Fod #142293 2017/01/03 wangshuang begin property string atozInitSta: "" //Fod #142293 2017/01/03 wangshuang end //ADD 2018/11/14 by wyc for BT order begin //FOD 2019/01/02 by wyc for ST#315454 begin //property int iLanguage: systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_SALE_AREA)==1?Settinglist.LANGUAGE_RUSSIA:Settinglist.LANGUAGE_VIETNAM property int iLanguage: btCtrl.btPhoneContactLanguage //FOD 2019/01/02 by wyc for ST#315454 end //ADD 2018/11/14 by wyc for BT order end property int viewIndex: 0 //ADD 2019/01/02 by wyc for ST#315454 //ADD 2019/03/01 by wyc for ST#321774 begin property int tagHeight: 21 property int tagIndex: 0 property int tagFontSize: 20 //ADD 2019/03/01 by wyc for ST#321774 end property bool tagWeight: false //ADD 2019/03/20 by wyc FOR 322043 Component.onCompleted: { windowID = WindowsList.BTP_CONTACT setTagPro(); //ADD 2019/03/01 by wyc for ST#321774 } onVisibleChanged: { //ADD #167781 2017/04/20 wangs begin if(contact_people.atYBeginning==true) { contact_people.positionViewAtBeginning() } if(contact_people.atYEnd==true) { contact_people.positionViewAtEnd() } //ADD #167781 2017/04/20 wangs end bFullWindow = true //ADD #119249 2016/10/14 wangshuang begin if (false == btCtrl.btConnectState || false == btCtrl.btserviceIsHFP) { nameSearchInput_bg.visible=false } //ADD #119249 2016/10/14 wangshuang end //ADD #128604 2016/12/08 wudm begin if(visible == true) { bNoSwitchBarVisiable = true //ADD 2018/11/14 by wyc for BT order begin //FOD 2019/01/02 by wyc for ST#315454 begin //systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_SALE_AREA)==1?Settinglist.LANGUAGE_RUSSIA:Settinglist.LANGUAGE_VIETNAM //iLanguage = btCtrl.btPhoneContactLanguage //FOD 2019/01/02 by wyc for ST#315454 end //firstRowM.model = getFirstRowModel(); //ADD 2018/11/14 by wyc for BT order end if((true == btCtrl.btPhoneBookLoading)&&(true == btCtrl.btserviceIsHFP)) { //FOD 2018/09/26 by wangyuecheng for changeForm begin //if((ScreenManager.getFormInfo(WindowsList.BTP_CONTACT)&0x7) == 1) //DEL 2018/10/19 by wyc FOR ST#309170 //if(ScreenManager.getFormInformation(WindowsList.BTP_CONTACT) == Layout.SHOW_FULL) //FOD 2018/09/26 by wangyuecheng for changeForm end { // console.log(" qml:phoneBookLoadSta**********************onVisibleChanged is true *WindowsList.BTP_CONTACT_DOWNLOAD IS SHOW") if(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==false) { //contactLoadingTextShowTimer.start() } } } //FOD 2018/12/26 by changying begin if((btCtrl.btConnectState == true)&&(btCtrl.pbListnum == 0)){ no_Contacts.visible = true }else { no_Contacts.visible = false } //FOD 2018/12/26 by changying end } //ADD by wyc 2019/03/25 begin else { if(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==true) { ScreenManager.hideOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) } } //ADD by wyc 2019/03/25 end //ADD #128604 2016/12/08 wudm end //ADD #F0123 2016/12/08 wangshuang begin //Fod #138488 2017/03/16 wangs begin //pop_loadingState=true //ADD #F0123 2016/12/08 wangshuang end loadTimer.visible=false //Fod #138488 2017/03/16 wangs end } onCloseWindow: { //ADD #130751 2016/11/28 wangshuang begin contact_people.cancelFlick() //ADD #130751 2016/11/28 wangshuang end if (closeType == Layout.CLOSE_BY_CLOSE) { curContactIndex=0 aTozCurrent="" currentAlp.visible = false //DEL #143677 2017/02/13 wangs begin //ADD #137397 2016/12/21 wangshuang begin //currentAlpisdisplay.stop() //btCtrl.btAtoZStrClear() //ADD #137397 2016/12/21 wangshuang end //ADD #146088 2017/01/20 wangshuang begin //oneAlpisdisplay.stop() //ADD #146088 2017/01/20 wangshuang end //DEL #143677 2017/02/13 wangs end contact_people.positionViewAtBeginning() } else if (closeType == Layout.CLOSE_BY_OPEN) { if((outgoingcallstatus==false)&&(incommingcallstatus==false)&&(gesturesignals_leftstatus==false)&&(gesturesignals_rightstatus==false)) { curContactIndex=0 aTozCurrent="" currentAlp.visible = false //DEL #143677 2017/02/13 wangs begin //ADD #137397 2016/12/21 wangshuang begin //currentAlpisdisplay.stop() //btCtrl.btAtoZStrClear() //ADD #137397 2016/12/21 wangshuang end //ADD #146088 2017/01/20 wangshuang begin //oneAlpisdisplay.stop() //ADD #146088 2017/01/20 wangshuang end //DEL #143677 2017/02/13 wangs end contact_people.positionViewAtBeginning() } outgoingcallstatus=false incommingcallstatus=false gesturesignals_leftstatus=false gesturesignals_rightstatus=false } } //ADD 2019/03/01 by wyc for ST#315454 321774 begin HMIButton { id: ru_icon btnImg: pressed?"qrc:MATERIAL/MATERIAL_ICON_RU_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_RU"+bgImageStyle visible: ((btCtrl.btserviceIsHFP == true)&&(btCtrl.btPhoneContactLanguage == Settinglist.HMI_BTP_RUSSIA_LANGUAGE_ENGLISH)) x: 0 y: 87 onClicked: { if (btCtrl.btserviceIsHFP == true) { btCtrl.setBTPhoneContactLanguage(Settinglist.HMI_BTP_RUSSIA_LANGUAGE_RUSSIA) //en_icon.visible = true; //ru_icon.visible = false; } } } HMIButton { id: en_icon btnImg: pressed?"qrc:MATERIAL/MATERIAL_ICON_EN_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_EN"+bgImageStyle visible: ((btCtrl.btserviceIsHFP == true)&&(btCtrl.btPhoneContactLanguage == Settinglist.HMI_BTP_RUSSIA_LANGUAGE_RUSSIA)) x: 0 y: 87 onClicked: { if (btCtrl.btserviceIsHFP == true) { btCtrl.setBTPhoneContactLanguage(Settinglist.HMI_BTP_RUSSIA_LANGUAGE_ENGLISH) //ru_icon.visible = true; //en_icon.visible = false; } } } //ADD 2019/03/01 by wyc for ST#315454 321774 end HMILabel { //Fod #F0002 2016/10/10 wangshuang begin x:240//130 y:back_icon_label.y//128-128 width:480//700 height:38//56 text: qsTr("Contacts")+ systemCtrl.emptyString color: "white" font.pixelSize: 30 //Del #F185 2017/02/06 wangshuang begin //horizontalAlignment: text.horizontalAlignment //verticalAlignment: text.verticalAlignment //Del #F185 2017/02/06 wangshuang end //horizontalAlignment: Label.horizontalAlignment //Fod #F0002 2016/10/10 wangshuang end } HMIButton { id:icon_return x:0 y:5 width: 150//138 height: 70 // btnImg:icon_return.pressed?("qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle) :("qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle)//ghy opacity:1//ghy Image { id:back_icon_image x:5//20 width: 50//20 height:64//34 source: icon_return.pressed?("qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle) :("qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle)//ghy anchors.verticalCenter:parent.verticalCenter } HMILabel { id:back_icon_label //FOD 2018/10/10 by wyc begin x:54//60//58 y:25 //Fod #F0017 2016/10/11 wangshuang begin width: 150//90//64//60 //FOD 2018/10/10 by wyc end //Fod #F0017 2016/10/11 wangshuang end height:38//30 text: qsTr("Back")+ systemCtrl.emptyString font.pixelSize: 30 anchors.verticalCenter:parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { //FOD 2018/09/26 by wangyuecheng for formChange begin //ScreenManager.changeForm(Layout.FM_CLOSE,WindowsList.BTP_CONTACT) ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.BTP_HOME) //FOD 2018/09/26 by wangyuecheng for -event_id- end } } HMIButton { id:nameSearchInput_bg //Fod #F0008 2016/10/10 wangshuang begin x: 58//44//43 y: 81//96//88 width: 842//870 height: 78//48 //Fod #F0008 2016/10/10 wangshuang end //Fod #119249 2016/10/14 wangshuang begin visible: true//((true == btCtrl.btConnectState) && (true == btCtrl.btserviceIsHFP)) //Fod #119249 2016/10/14 wangshuang end enabled: !(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)) //labelPixelSize: 30 //labelText: qsTr("Search")+ systemCtrl.emptyString //labelColor: "#656565" btnImg:nameSearchInput_bg.pressed?("qrc:MATERIAL/MATERIAL_LIST_78_P"+bgImageStyle) :("qrc:MATERIAL/MATERIAL_LIST_78"+bgImageStyle)//ghy HMILabel { id:nameSearchInput_lable //Fod #F0010 2016/10/10 wangshuang begin x:84//135 //y:6 width: 500 height: 38//32 font.pixelSize: 30 text:qsTr("Search")+ systemCtrl.emptyString color: "#656565" anchors.verticalCenter:parent.verticalCenter //Fod #F0010 2016/10/10 wangshuang end horizontalAlignment: Label.AlignLeft } onClicked: { if( (true == btCtrl.btConnectState)&&(false == btCtrl.btPhoneBookLoading)&&(btCtrl.pbListnum > 0) ) { //ADD #130751 2016/11/28 wangshuang begin contact_people.cancelFlick() //ADD #130751 2016/11/28 wangshuang end //DEL #143677 2017/02/13 wangs begin //ADD #137397 2016/12/21 wangshuang begin //currentAlp.visible = false //currentAlpisdisplay.stop() //btCtrl.btAtoZStrClear() //ADD #137397 2016/12/21 wangshuang end //ADD #146088 2017/01/20 wangshuang begin //oneAlpisdisplay.stop() //ADD #146088 2017/01/20 wangshuang end //DEL #143677 2017/02/13 wangs end //ADD stbug#162779 wudm 2017/04/05 begin btCtrl.phoneBookSearchListModelClear() //ADD stbug#162779 wudm 2017/04/05 end //ADD #171487 2017/05/04 wangs begin btCtrl.setEnterBTPSearchState(true) //ADD #171487 2017/05/04 wangs end //FOD 2018/09/26 by wangyuecheng for changeForm begin //ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.BTP_SEARCH) ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.BTP_SEARCH) //FOD 2018/09/26 by wangyuecheng for changeForm end } } } Item { x:58//57 y:161//153 //Fod #F0144 2016/12/22 wangshuang begin width:879//873 //Fod #F0144 2016/12/22 wangshuang end //Fod #121463 2016/10/13 wangshuang begin height: 720//728 //Fod #121463 2016/10/13 wangshuang end //DEL #128605 2016/12/06 wangshuang begin //enabled:(btCtrl.btConnectState == true) && (btCtrl.btserviceIsHFP == true) && (false == btCtrl.btPhoneBookLoading) //DEL #128605 2016/12/06 wangshuang end visible: (true == btCtrl.btConnectState ||btCtrl.btserviceIsHFP == true) HMIListView { id:contact_people anchors.fill: parent clip:true model:btCtrl.btPhoneBookListModel delegate: phone_Number keyNavigationWraps: true orientation: ListView.Vertical highlightFollowsCurrentItem: true snapMode: ListView.SnapToItem rightMargin: 0 scrollBar:true scrollBar_edge:0 scrollBar_width:8//4 spacing: 2 //scrollBar_img:"qrc:MATERIAL/MATERIAL_M8X_SLIDER_BAR"+bgImageStyle //ADD #168155 2017/04/21 wangs begin onFlickStarted: { aTozCurrent = "" currentAlp.visible = false } onMovementStarted: { aTozCurrent = "" currentAlp.visible = false } //ADD #168155 2017/04/21 wangs end } Component { id:phone_Number HMIButton { id:contact_List enabled: col1=='1'?false:true height: 78 //Fod #F0018 2016/10/11 wangshuang begin btnImg:(contact_List.pressed)?("qrc:MATERIAL/MATERIAL_LIST_78_P"+bgImageStyle):("qrc:MATERIAL/MATERIAL_LIST_78"+bgImageStyle)//"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle // Image // { // height: 78 // visible: (curContactIndex == index&&curContactIndex !=0)? true:false//(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 x:84//119 //Fod #F0013 2016/10/11 wangshuang end y:7 width: 610//670-60 height: 38//35//30 HMILabel { anchors.fill: parent font.pixelSize:30 //Fod #F0037 2016/10/13 wangshuang begin text:col7//(col7 == "")?col0:col7//col7//name //Fod #F0037 2016/10/13 wangshuang end horizontalAlignment: Label.AlignLeft elide:Text.ElideRight//elide:Label.ElideRight //ADD F0202 2017/02/14 wangs begin wtitesize:2 //ADD F0202 2017/02/14 wangs end } } //ADD #F0037 2016/10/13 wangshuang begin Item { x:84 y:22 width: 610//670-60 height: 38 HMILabel { anchors.fill: parent font.pixelSize:30 text:(col7 == "")?col0:"" horizontalAlignment: Label.AlignLeft elide:Text.ElideRight//ADD 2019/01/25 by cy for ST#319578 //ADD F0202 2017/02/14 wangs begin wtitesize:2 //ADD F0202 2017/02/14 wangs end } } //ADD #F0037 2016/10/13 wangshuang end Item { //Fod #F0013 2016/10/11 wangshuang begin x:84//119 y:39//36 //Fod #F0013 2016/10/11 wangshuang end width: 610//670-60 height: 37 HMILabel { anchors.fill: parent font.pixelSize:22 wtitesize:1 text:(col7 == "")?"":col0//number //Fod #F0013 2016/10/11 wangshuang begin color:(contact_List.pressed)?"#FFFFFF":"#808080" //Fod #F0013 2016/10/11 wangshuang end horizontalAlignment: Label.AlignLeft elide:Text.ElideRight//elide:Label.ElideRight } } onPressed: { if( true == btCtrl.btConnectState ) { //DEL #143677 2017/02/13 wangs begin //ADD #137397 2016/12/21 wangshuang begin //currentAlp.visible = false //currentAlpisdisplay.stop() //btCtrl.btAtoZStrClear() //ADD #137397 2016/12/21 wangshuang end //ADD #146088 2017/01/20 wangshuang begin //oneAlpisdisplay.stop() //ADD #146088 2017/01/20 wangshuang end //DEL #143677 2017/02/13 wangs end if (curContactIndex != index) { curContactIndex = index } } } onClicked: { //DEL #143677 2017/02/13 wangs begin //ADD #137397 2016/12/21 wangshuang begin //currentAlp.visible = false //currentAlpisdisplay.stop() //btCtrl.btAtoZStrClear() //ADD #137397 2016/12/21 wangshuang begin //DEL #143677 2017/02/13 wangs end if (col0!="") //ADD 2019/04/16 by wyc { 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: 720 } //Add #129445 2016/11/30 wangs end //FOD 2018/12/26 by cy begin HMILabel { id:no_Contacts visible: false x:90 y:410 width:780 height:82 font.pixelSize: 30 text:qsTr("No contacts")+ systemCtrl.emptyString } //FOD 2018/12/26 by cy end HMIButton { //Fod #F0148 2017/01/11 wangshuang begin id:icon_update x:90//146 y:882 width: 870//780//870//752 height: 76//78//80 //labelText: qsTr("Update")+ systemCtrl.emptyString //enabled: !(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)) //btnImg:icon_update.pressed?("qrc:MATERIAL/MATERIAL_FUNCTION_1_BUTTON_P"+bgImageStyle):("")//ghy btnImg:icon_update.pressed?("qrc:MATERIAL/MATERIAL_FUNCTION_1_BUTTON_P_NOSWITCH"+bgImageStyle):("")//wyc //Item //{ //anchors.centerIn: parent Image { id:icon_update_image x:374//-18 y:12//13//-25 width: 32 height:32 source: "qrc:MATERIAL/MATERIAL_ICON_UPDATE"+bgImageStyle } HMILabel { x:311//336//-77 y:53//10 width: 158//108//150 height: 20//28 font.pixelSize: 18 text:qsTr("Update")+ systemCtrl.emptyString //Del #F185 2017/02/07 wangshuang begin //horizontalAlignment: Label.horizontalAlignment//horizontalCenter //verticalAlignment: Label.verticalAlignment //Del #F185 2017/02/07 wangshuang end } //} //Fod #F0148 2017/01/11 wangshuang end onClicked: { if( (true == btCtrl.btConnectState)&&(false == btCtrl.btPhoneBookLoading)) { //ADD #130751 2016/11/28 wangshuang begin contact_people.cancelFlick() //ADD #130751 2016/11/28 wangshuang end //DEL #143677 2017/02/13 wangs begin //ADD #137397 2016/12/21 wangshuang begin //currentAlp.visible = false //currentAlpisdisplay.stop() //btCtrl.btAtoZStrClear() //ADD #137397 2016/12/21 wangshuang begin //ADD #146088 2017/01/20 wangshuang begin //oneAlpisdisplay.stop() //ADD #146088 2017/01/20 wangshuang end //DEL #143677 2017/02/13 wangs end //ADD #143062 2017/01/06 wangshuang begin //Fod #138488 2017/03/16 wangs begin //pop_loadingState=true //ADD #143062 2017/01/06 wangshuang end loadTimer.visible=false //Fod #138488 2017/03/16 wangs end btCtrl.getBTPhoneBookData() } } } /*---------------------------------------------Key Board Start----------------------------------------*/ Column{ x:16//5 y:156//159//120//162//153 width: 26//50 id: firstRow //Fod #F0058 2016/10/19 wangshuang begin visible: (btCtrl.btConnectState == true && btCtrl.btserviceIsHFP == true)//btCtrl.btConnectState //Fod #F0058 2016/10/19 wangshuang end //anchors{top:parent.top;topMargin:120}//top:parent.top; Repeater{ id: firstRowM model:getFirstRowModel() HMILabel{ width:26 anchors.horizontalCenter: parent.horizontalCenter height: //FOD 2019/06/11 by wyc FOR 324912 322043 begin { if (modelData == "Q") { return (tagHeight+1); } else if (modelData == "P") { return (tagHeight-1); } else { return (tagHeight); } } //FOD 2019/06/11 by wyc FOR 324912 322043 end verticalAlignment: Label.AlignTop font.bold: tagWeight //ADD 2019/03/20 by wyc FOR 322043 font.pixelSize: tagFontSize//20//24 //wtitesize:1 //Fod #F0014 2016/10/11 wangshuang begin color:(aTozCurrent == modelData)?"#FFFFFF":"#808080"//"#E1E1E1":"#262626" //Fod #F0014 2016/10/11 wangshuang end //ADD 2019/03/01 by wyc for ST#321774 322043 begin horizontalAlignment: Label.AlignHCenter //ADD 2019/03/01 by wyc for ST#321774 322043 end text:modelData; // HMIMouseArea // { // anchors.fill: parent // onPressed: // { // aTozCurrent = modelData // currentAlp.visible = true // if( btCtrl.getSearchInitialIsExist(aTozCurrent) == true) // { // contact_people.positionViewAtIndex(btCtrl.getPBInitialSearchIndex(aTozCurrent), ListView.Beginning) // // btCtrl.getPBInitialSearchIndex(aTozCurrent) // //searchInfo = searchInfo + modelData; // } // } // onCanceled: // { // currentAlp.visible = false // } // onReleased: // { // currentAlp.visible = false // } // } } } } HMIMouseArea { id:firstRowMouseArea x:firstRow.x//19//16//5 y: firstRow.y//120//162//153 width: 26//50 height: 735//728//702 onPositionChanged: { //Fod #138488 2017/03/16 wangs begin //Fod #153850 2017/03/15 wangs begin if((ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==false)&&(loadTimer.visible==false)&&(contact_people.count!=0)) { //getLetterOnPosition(mouse.y); //ADD 2018/11/14 by wyc for BT order //ADD 2019/03/01 by wyc for ST#321774 begin //FOD 2019/03/20 by wyc FOR 324911 begin /*aTozCurrent = firstRowM.model[parseInt(mouse.y/tagHeight)] currentAlp.visible = true viewIndex = btCtrl.getCurTagIndex(mouse.y) if (viewIndex >= 0) { testTimer.restart() }*/ aTozCurrent = btCtrl.getCurTagIndex(mouse.y,tagHeight)//firstRowM.model[parseInt(mouse.y/tagHeight)] if (aTozCurrent != "") { currentAlp.visible = true viewIndex = btCtrl.getPBInitialSearchIndex(aTozCurrent) if (viewIndex >= 0) { testTimer.restart() } } else { currentAlp.visible = false } //FOD 2019/03/20 by wyc FOR 324911 end //ADD 2019/03/01 by wyc for ST#321774 end //DEL 2018/11/14 by wyc for BT order begin /*if(mouse.y>0 && mouse.y<26) //A { showAtoZCurrent("A") } else if(mouse.y>26 && mouse.y<52) //B { showAtoZCurrent("B") } else if(mouse.y>52 && mouse.y<78) //B { showAtoZCurrent("C") } else if(mouse.y>78 && mouse.y<104) //D { showAtoZCurrent("D") } else if(mouse.y>104 && mouse.y<130) //E { showAtoZCurrent("E") } else if(mouse.y>130 && mouse.y<156) //F { showAtoZCurrent("F") } else if(mouse.y>156 && mouse.y<182) //G { showAtoZCurrent("G") } else if(mouse.y>182 && mouse.y<208) //H { showAtoZCurrent("H") } else if(mouse.y>208 && mouse.y<234) //I { showAtoZCurrent("I") } else if(mouse.y>234 && mouse.y<260) //J { showAtoZCurrent("J") } else if(mouse.y>260 && mouse.y<286) //K { showAtoZCurrent("K") } else if(mouse.y>286 && mouse.y<312) //L { showAtoZCurrent("L") } else if(mouse.y>312 && mouse.y<338) //M { showAtoZCurrent("M") } else if(mouse.y>338 && mouse.y<364) //N { showAtoZCurrent("N") } else if(mouse.y>364 && mouse.y<390) //O { showAtoZCurrent("O") } else if(mouse.y>390 && mouse.y<416) //P { showAtoZCurrent("P") } else if(mouse.y>416 && mouse.y<442) //Q { showAtoZCurrent("Q") } else if(mouse.y>442 && mouse.y<468) //R { showAtoZCurrent("R") } else if(mouse.y>468 && mouse.y<494) //S { showAtoZCurrent("S") } else if(mouse.y>494 && mouse.y<520) //T { showAtoZCurrent("T") } else if(mouse.y>520 && mouse.y<546) //U { showAtoZCurrent("U") } else if(mouse.y>546 && mouse.y<572) //V { showAtoZCurrent("V") } else if(mouse.y>572 && mouse.y<598) //W { showAtoZCurrent("W") } else if(mouse.y>598 && mouse.y<624) //X { showAtoZCurrent("X") } else if(mouse.y>624 && mouse.y<650) //Y { showAtoZCurrent("Y") } else if(mouse.y>650 && mouse.y<676) //Z { showAtoZCurrent("Z") } else if(mouse.y>676 && mouse.y<702) //Z { showAtoZCurrent("#") } else { }*/ //DEL 2018/11/14 by wyc for BT order end } //Fod #153850 2017/03/15 wangs end //Fod #138488 2017/03/16 wangs end } onCanceled: { //Fod #143677 2017/02/13 wangs begin //Fod #128588 2016/11/15 wangshuang begin currentAlp.visible = false //Fod #131814 2016/12/21 wangshuang begin //currentAlp_display.start() //showAtoZCurrent("") } onReleased: { currentAlp.visible = false //currentAlp_display.start() //Fod #128588 2016/11/15 wangshuang end //showAtoZCurrent("") //Fod #131814 2016/12/21 wangshuang end //Fod #143677 2017/02/13 wangs end } onPressed: { contact_people.cancelFlick() //Fod #138488 2017/03/16 wangs begin //Fod #153850 2017/03/15 wangs begin if((ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==false)&&(loadTimer.visible==false)&&(contact_people.count!=0)) { //FOD 2019/03/01 by wyc for ST#321774 begin //getLetterOnPosition(mouse.y); //ADD 2018/11/14 by wyc for BT order //FOD 2019/03/20 by wyc FOR 324911 begin /*aTozCurrent = firstRowM.model[parseInt(mouse.y/tagHeight)] currentAlp.visible = true viewIndex = btCtrl.getCurTagIndex(mouse.y) if (viewIndex >= 0) { testTimer.restart() } */ aTozCurrent = btCtrl.getCurTagIndex(mouse.y,tagHeight)//firstRowM.model[parseInt(mouse.y/tagHeight)] if (aTozCurrent != "") { currentAlp.visible = true viewIndex = btCtrl.getPBInitialSearchIndex(aTozCurrent) if (viewIndex >= 0) { testTimer.restart() } } //FOD 2019/03/20 by wyc FOR 324911 end //FOD 2019/03/01 by wyc for ST#321774 end //DEL 2018/11/14 by wyc for BT order begin /*if(mouse.y>0 && mouse.y<26) //A { showAtoZCurrent("A") } else if(mouse.y>26 && mouse.y<52) //B { showAtoZCurrent("B") } else if(mouse.y>52 && mouse.y<78) //B { showAtoZCurrent("C") } else if(mouse.y>78 && mouse.y<104) //D { showAtoZCurrent("D") } else if(mouse.y>104 && mouse.y<130) //E { showAtoZCurrent("E") } else if(mouse.y>130 && mouse.y<156) //F { showAtoZCurrent("F") } else if(mouse.y>156 && mouse.y<182) //G { showAtoZCurrent("G") } else if(mouse.y>182 && mouse.y<208) //H { showAtoZCurrent("H") } else if(mouse.y>208 && mouse.y<234) //I { showAtoZCurrent("I") } else if(mouse.y>234 && mouse.y<260) //J { showAtoZCurrent("J") } else if(mouse.y>260 && mouse.y<286) //K { showAtoZCurrent("K") } else if(mouse.y>286 && mouse.y<312) //L { showAtoZCurrent("L") } else if(mouse.y>312 && mouse.y<338) //M { showAtoZCurrent("M") } else if(mouse.y>338 && mouse.y<364) //N { showAtoZCurrent("N") } else if(mouse.y>364 && mouse.y<390) //O { showAtoZCurrent("O") } else if(mouse.y>390 && mouse.y<416) //P { showAtoZCurrent("P") } else if(mouse.y>416 && mouse.y<442) //Q { showAtoZCurrent("Q") } else if(mouse.y>442 && mouse.y<468) //R { showAtoZCurrent("R") } else if(mouse.y>468 && mouse.y<494) //S { showAtoZCurrent("S") } else if(mouse.y>494 && mouse.y<520) //T { showAtoZCurrent("T") } else if(mouse.y>520 && mouse.y<546) //U { showAtoZCurrent("U") } else if(mouse.y>546 && mouse.y<572) //V { showAtoZCurrent("V") } else if(mouse.y>572 && mouse.y<598) //W { showAtoZCurrent("W") } else if(mouse.y>598 && mouse.y<624) //X { showAtoZCurrent("X") } else if(mouse.y>624 && mouse.y<650) //Y { showAtoZCurrent("Y") } else if(mouse.y>650 && mouse.y<676) //Z { showAtoZCurrent("Z") } else if(mouse.y>676 && mouse.y<702) //Z { showAtoZCurrent("#") } else { }*/ //DEL 2018/11/14 by wyc for BT order end } //Fod #153850 2017/03/15 wangs end //Fod #138488 2017/03/16 wangs end } //DEL 2018/11/14 by wyc for BT order begin /* function showAtoZCurrent(currenType) { //Fod #128195 2016/11/14 wangshuang begin //Fod #138488 2017/03/16 wangs begin if((btCtrl.btConnectState == true) && (btCtrl.btserviceIsHFP == true) && (false == btCtrl.btPhoneBookLoading)&&(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==false)&&(loadTimer.visible==false)) //Fod #138488 2017/03/16 wangs end { //Fod #176283 2017/05/22 wangs begin if( btCtrl.getSearchInitialIsExist(currenType) == true) { //Fod #129858 2016/11/23 wangshuang begin contact_people.cancelFlick() //Fod #129858 2016/11/23 wangshuang end } //Fod #176283 2017/05/22 wangs end //Fod #143677 2017/02/13 wangs begin //Fod #131814 2016/12/21 wangshuang begin //Fod #142293 2017/01/03 wangshuang begin // if(btCtrl.btAtoZCurrent=="" && currenType!="")//(btCtrl.btAtoZCurrent=="" && currenType!=aTozCurrent) // { // //aTozCurrent="" // atozInitSta="" // } //Fod #143671 2017/01/09 wangshuang begin //btCtrl.setBTAtoZCurrent(currenType) // if(currenType!=""&&btCtrl.btOneAlp()==false) // { // currentAlpisdisplay.start() // } // //Fod #142293 2017/01/03 wangshuang end // if(currenType!=""&&btCtrl.btOneAlp()==true) // { // oneAlpisdisplay.start() // } //btCtrl.setBTAtoZCurrent(currenType) aTozCurrent = currenType currentAlp.visible = true testTimer.restart() //Fod #131814 2016/12/21 wangshuang end } //Fod #128195 2016/11/14 wangshuang end //DEL #131814 2016/12/21 wangshuang begin // if( btCtrl.getSearchInitialIsExist(aTozCurrent) == true) // { // contact_people.positionViewAtIndex(btCtrl.getPBInitialSearchIndex(aTozCurrent), ListView.Beginning) // } //DEL #131814 2016/12/21 wangshuang end }*/ //DEL 2018/11/14 by wyc for BT order end } Timer { id:testTimer interval: 1 onTriggered: { //FOD 2019/03/01 by wyc for ST#321774 begin /*if( btCtrl.getSearchInitialIsExist(aTozCurrent) == true) { //FOD 2019/01/02 by wyc for ST#315454 begin //contact_people.positionViewAtIndex(btCtrl.getPBInitialSearchIndex(aTozCurrent), ListView.Beginning) contact_people.positionViewAtIndex(viewIndex, ListView.Beginning) //FOD 2019/01/02 by wyc for ST#315454 end }*/ contact_people.positionViewAtIndex(viewIndex, ListView.Beginning) //FOD 2019/03/01 by wyc for ST#321774 end } } //Fod #143677 2017/02/13 wangs end HMILabel { id:currentAlp //Fod F0201 2017/02/14 wangs begin x:300//290 y:330//341-128 width: 360//256 height: 300//256 visible: false Image { width: 360 height: 300 source:"qrc:MATERIAL/MATERIAL_SMS_CONTACTS_LETTER_BG"+bgImageStyle } HMILabel { x:112//79 y:82//19 width: 136//200 height: 136//250 //Fod F0201 2017/02/14 wangs end font.pixelSize: 136 wtitesize:1 text:aTozCurrent color: "#FFFFFF" //Del #F185 2017/02/07 wangshuang begin //horizontalAlignment: Label.horizontalAlignment //Del #F185 2017/02/07 wangshuang end } //text:aTozCurrent //color: "#FFFFFF" //font.pixelSize: 136 //horizontalAlignment: Label.horizontalCenter } //DEL #131814 2016/12/21 wangshuang begin //ADD #128588 2016/11/15 wangshuang begin // Timer{ // id:currentAlp_display // interval: 500 // onTriggered: // { // currentAlp.visible = false // } // } //ADD #128588 2016/11/15 wangshuang end //DEL #131814 2016/11/21 wangshuang end //DEL #143677 2017/02/13 wangs begin //ADD #131814 2016/12/21 wangshuang begin // Timer{ // id:currentAlpisdisplay // interval: 200 // repeat:true // onTriggered: // { // //Fod #142293 2017/01/03 wangshuang begin // if(aTozCurrent!="" && btCtrl.btAtoZCurrent!="" && btCtrl.btOneAlpState()==false&&atozInitSta!="") // { // btCtrl.setBTAtoZIndex() // } // if(btCtrl.btAtoZCurrent!="") // { // aTozCurrent=btCtrl.btAtoZCurrent // atozInitSta=aTozCurrent // } // if(aTozCurrent!="") // { // currentAlp.visible = true // } // if( btCtrl.getSearchInitialIsExist(aTozCurrent) == true) // { // contact_people.positionViewAtIndex(btCtrl.getPBInitialSearchIndex(aTozCurrent), ListView.Beginning) // } // if(btCtrl.btAtoZState()==true) // { // if(btCtrl.btOneAlpState()==false) // { // currentAlp.visible = false // btCtrl.btAtoZStrClear() // currentAlpisdisplay.stop() // } // else // { // } // } // //Fod #142293 2017/01/03 wangshuang end // } // } // //ADD #131814 2016/12/21 wangshuang end // Timer{ // id:oneAlpisdisplay // interval: 350 // repeat:true // onTriggered: // { // if(aTozCurrent!="" && btCtrl.btAtoZCurrent!="" && btCtrl.btOneAlpState()==false&&atozInitSta!="") // { // btCtrl.setBTAtoZIndex() // } // if(btCtrl.btAtoZCurrent!="") // { // aTozCurrent=btCtrl.btAtoZCurrent // atozInitSta=aTozCurrent // } // if(aTozCurrent!="") // { // currentAlp.visible = true // } // if( btCtrl.getSearchInitialIsExist(aTozCurrent) == true) // { // contact_people.positionViewAtIndex(btCtrl.getPBInitialSearchIndex(aTozCurrent), ListView.Beginning) // } // if(btCtrl.btOneAlp()==false) // { // oneAlpisdisplay.stop() // } // if(btCtrl.btAtoZState()==true) // { // if(btCtrl.btOneAlpState()==false) // { // //Fod #146088 2017/01/20 wangshuang begin // //currentAlp.visible = false // //btCtrl.btAtoZStrClear() // oneAlpisdisplay.stop() // if(currentAlpisdisplay.running==false) // { // currentAlp.visible = false // btCtrl.btAtoZStrClear() // } // //Fod #146088 2017/01/20 wangshuang end // } // else // { // } // } // //Fod #142293 2017/01/03 wangshuang end // } // } //Fod #143671 2017/01/09 wangshuang end //DEL #143677 2017/02/13 wangs end /*---------------------------------------------Key Board Over----------------------------------------*/ Item { x:100 y:60 height: 246+8 width:760 visible: (btCtrl.btConnectState == false || btCtrl.btserviceIsHFP == false) // &&(false == btCtrl.btPhoneBookLoading) // visible: (btCtrl.btPhoneConnTextState == 1 || btCtrl.btPhoneConnTextState == 2)?true:false HMILabel { id:unconnect anchors.fill: parent font.pixelSize: 30 //Fod #148062 2017/02/09 wangshuang begin text:(btCtrl.btPhoneConnTextState == 1)?qsTr("Please connect BT in BT settings")+ systemCtrl.emptyString://(btCtrl.btPhoneConnTextState == 1)?qsTr("Please connect BT in BT setting")+ systemCtrl.emptyString: //Fod #148062 2017/02/09 wangshuang end ((btCtrl.btPhoneConnTextState == 2)?(qsTr("Please activate call audio in your phone")+ systemCtrl.emptyString):"")//Please connect HFP service in your phone } } Item { id:loadingState x:440 y:440 HMILoading { id:loadTimer //Fod #138488 2017/03/16 wangs begin //Fod #F0123 2016/12/08 wangshuang begin visible: false//((true == btCtrl.btPhoneBookLoading)&&(btCtrl.btserviceIsHFP == true)&&(pop_loadingState==false)&&pbListModelState==false)?true:false//((true == btCtrl.btPhoneBookLoading)&&(btCtrl.btserviceIsHFP == true))?true:false //Fod #F0123 2016/12/08 wangshuang end //Fod #138488 2017/03/16 wangs end } } // Rectangle // { // id:phoneBookLoadSta // color: "#000000" // opacity: 0.5 // x:0 // y:120 // height: 640-66+8 // width:760 // //stbug #87231 73554 start // visible: ((true == btCtrl.btPhoneBookLoading)&&(btCtrl.btserviceIsHFP == true))||(btCtrl.btPhoneBookDownIsFailStatus) // //stbug #87231 73554 end // HMILabel // { // anchors.fill: parent // anchors.horizontalCenter: Label.horizontalCenter // anchors.verticalCenter: Label.verticalCenter // text: btCtrl.btPhoneTextState // } // HMIMouseArea // { // anchors.fill: parent // onClicked: // { // console.log("qml:phoneBookLoadSta***********************btCtrl.setBtPhonePopTimerStop()*************") // btCtrl.setBtPBLoadPopTimerStop() // } // } // } //ADD #128604 2016/12/08 wudm begin Timer{ id:contactLoadingTextShowTimer interval: 3 onTriggered: { //console.log("[QML-btp_contact.qml] ++++++++ contactLoadingTextShowTimer showOverlay WindowsList.BTP_CONTACT_DOWNLOAD") if(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==false) { console.log("print system time2222",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz")) ScreenManager.showOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) console.log("print system time22221111",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz")) } // console.log("ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)="+ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)) // console.log("loadTimer.visible="+loadTimer.visible) } } //ADD #128604 2016/12/08 wudm end Connections { target: btCtrl onBtConnectStatusChanged: { if( false == btCtrl.btConnectState ) { curContactIndex=0 aTozCurrent = "" currentAlp.visible = false contact_people.positionViewAtBeginning() //ADD #119249 2016/10/14 wangshuang begin nameSearchInput_bg.visible=false //ADD #119249 2016/10/14 wangshuang end //DEL #143677 2017/02/13 wangs begin //ADD #144146 2017/01/07 wangshuang begin //currentAlp.visible = false //currentAlpisdisplay.stop() //btCtrl.btAtoZStrClear() //ADD #144146 2017/01/07 wangshuang end //ADD #146088 2017/01/20 wangshuang begin //oneAlpisdisplay.stop() //ADD #146088 2017/01/20 wangshuang end //DEL #143677 2017/02/13 wangs end //ADD F0214 2017/03/21 wangs begin if(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==true) { ScreenManager.hideOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) btCtrl.setBtPBLoadPopTimerStop() } //ADD F0214 2017/03/21 wangs end //ADD 2019/04/01 by wyc ru_icon.visible = false en_icon.visible = false firstRowMouseArea.visible = false //ADD 2019/04/16 by wyc FOR 329339 } //ADD #119249 2016/10/14 wangshuang begin else{ if(true == btCtrl.btserviceIsHFP) { nameSearchInput_bg.visible=true //ADD 2019/03/01 by wyc begin ru_icon.visible = (btCtrl.btPhoneContactLanguage == Settinglist.HMI_BTP_RUSSIA_LANGUAGE_ENGLISH) en_icon.visible = (btCtrl.btPhoneContactLanguage == Settinglist.HMI_BTP_RUSSIA_LANGUAGE_RUSSIA) //ADD 2019/03/01 by wyc end firstRowMouseArea.visible = true //ADD 2019/04/16 by wyc FOR 329339 } else{ nameSearchInput_bg.visible=false //ADD #144146 2017/01/07 wangshuang begin currentAlp.visible = false //DEL #143677 2017/02/13 wangs begin //currentAlpisdisplay.stop() //btCtrl.btAtoZStrClear() //ADD #144146 2017/01/07 wangshuang end //DEL #143677 2017/02/13 wangs end //ADD F0214 2017/03/21 wangs begin //ADD 2019/03/01 by wyc begin ru_icon.visible = false en_icon.visible = false firstRowMouseArea.visible = false //ADD 2019/04/16 by wyc FOR 329339 //ADD 2019/03/01 by wyc end if(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==true) { ScreenManager.hideOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) btCtrl.setBtPBLoadPopTimerStop() } //ADD F0214 2017/03/21 wangs end } } //ADD #119249 2016/10/14 wangshuang end if(((true == btCtrl.btPhoneBookLoading)&&(true == btCtrl.btserviceIsHFP))||(btCtrl.btPhoneBookDownIsFailStatus)) { //FOD 2018/09/26 by wangyuecheng for changeForm begin //if((ScreenManager.getFormInfo(WindowsList.BTP_CONTACT)&0x7) == 1) if(ScreenManager.getFormInformation(WindowsList.BTP_CONTACT) == Layout.SHOW_FULL) //FOD 2018/09/26 by wangyuecheng for changeForm end { //ADD #138488 2017/03/16 wangs begin if((btCtrl.btPhoneBookDownIsFailStatus==true)&&(loadTimer.visible==true)) { loadTimer.visible=false } //ADD #138488 2017/03/16 wangs end // console.log("111 qml:phoneBookLoadSta***********************WindowsList.BTP_CONTACT_DOWNLOAD IS SHOW") //Fod #128604 2016/12/08 wudm begin if(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==false) { ScreenManager.showOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) } //Fod #128604 2016/12/08 wudm end } } else { ScreenManager.hideOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) btCtrl.setBtPBLoadPopTimerStop() } //ADD #143062 2017/01/06 wangshuang begin //Fod #138488 2017/03/16 wangs begin //pop_loadingState=true //ADD #143062 2017/01/06 wangshuang end loadTimer.visible=false //Fod #138488 2017/03/16 wangs end } onBtDownLoadingStatusChanged: { //FOD 2019/02/13 by wyc FOR 320038 318418 316954 begin //if(((true == btCtrl.btPhoneBookLoading)&&(true == btCtrl.btserviceIsHFP))||((true == btCtrl.btPhoneBookDownIsFailStatus)&&(true == btCtrl.btserviceIsHFP)))//Fod #167334 2017/04/19 wangs if(((true == btCtrl.btPhoneBookLoading)&&(true == btCtrl.btserviceIsHFP))|| ((true == btCtrl.btPhoneBookDownIsFailStatus)&&(true == btCtrl.btserviceIsHFP))|| ((true == btCtrl.btPhoneBookDownIsFailStatus)&&(true == btCtrl.btserviceIsHFP))) //FOD 2019/02/13 by wyc FOR 320038 318418 316954 end { //FOD 2018/09/26 by wangyuecheng for changeForm begin //if((ScreenManager.getFormInfo(WindowsList.BTP_CONTACT)&0x7) == 1) if(ScreenManager.getFormInformation(WindowsList.BTP_CONTACT) == Layout.SHOW_FULL) //FOD 2018/09/26 by wangyuecheng for changeForm end { //Fod #138488 2017/03/16 wangs begin if((btCtrl.btPhoneBookDownIsFailStatus==true)&&(loadTimer.visible==true)) { loadTimer.visible=false } // console.log("222 qml:phoneBookLoadSta***********************WindowsList.BTP_CONTACT_DOWNLOAD IS SHOW") //Fod #128604 2016/12/08 wudm begin if((ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==false)&&(loadTimer.visible==false)) { ScreenManager.showOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) } //Fod #128604 2016/12/08 wudm end } } else { if(downLoadState==false) { ScreenManager.hideOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) btCtrl.setBtPBLoadPopTimerStop() //FOD 2018/12/24 by changying begin if((btCtrl.btConnectState == true)&&(btCtrl.pbListnum == 0)){ no_Contacts.visible = true }else { no_Contacts.visible = false }//FOD 2018/12/24 by changying end } else { } } } onBtPhoneTextStateChanged: { //Fod F0173 2017/01/12 wangs begin if((true == btCtrl.btPhoneBookLoading)&&(true == btCtrl.btserviceIsHFP))//((ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==true)||(loadTimer.visible==true)) { curContactIndex=0 aTozCurrent="" currentAlp.visible = false contact_people.positionViewAtBeginning() } //Fod F0173 2017/01/12 wangs end } //Fod #138488 2017/03/16 wangs end //ADD #138488 2017/03/16 wangs begin onBtPBListModelChanged: { //ADD 2019/02/20 by wyc FOR 319579 begin //console.log("BTP Contact onBtPBListModelChanged btCtrl.btPhoneBookLoading:" + btCtrl.btPhoneBookLoading) if (true == btCtrl.btPhoneBookLoading) { if(ScreenManager.getFormInformation(WindowsList.BTP_CONTACT) == Layout.SHOW_FULL) { if (ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==false) { ScreenManager.showOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) } //contactLoadingTextShowTimer.start(); } } //ADD 2019/02/20 by wyc FOR 319579 end if(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==true) { //DEL 2019/02/13 by wyc FOR 320038 318418 316954 begin //ScreenManager.hideOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) //btCtrl.setBtPBLoadPopTimerStop() //DEL 2019/02/13 by wyc FOR 320038 318418 316954 end //FOD 2018/12/24 by changying begin if((btCtrl.btConnectState == true)&&(btCtrl.pbListnum == 0)){ no_Contacts.visible = true }else { no_Contacts.visible = false }//FOD 2018/12/24 by changying end } if(loadTimer.visible==true) { loadTimer.visible=false } } //ADD #138488 2017/03/16 wangs end onBtOutGoingCallChanged: { outgoingcallstatus=true } onBtIncommingCallChanged: { incommingcallstatus=true } //ADD #F0123 2016/12/08 wangshuang begin onBtLoadingStateChanged: { pop_loadingState=btCtrl.btLoadingState //Fod #160426 2017/03/27 wangs begin if(true == btCtrl.btPhoneBookLoading) { //ADD #138488 2017/03/16 wangs begin loadTimer.visible=true //ADD #138488 2017/03/16 wangs end } //Fod #160426 2017/03/27 wangs end } //ADD #F0123 2016/12/08 wangshuang end //ADD 2019/01/02 by wyc for ST#315454 begin onBtPhoneContactTagChanged: { setTagPro(); } //ADD 2019/01/02 by wyc for ST#315454 end } Connections { target: systemCtrl onAppLanguageChangOk: { } } Connections { target:systemCtrl // onSingleFingerGestureSignals_Left: // { // gesturesignals_leftstatus=true // curContactIndex=0 // aTozCurrent="" // currentAlp.visible = false // contact_people.positionViewAtBeginning() // } // onSingleFingerGestureSignals_Right: // { // gesturesignals_rightstatus=true // curContactIndex=0 // aTozCurrent="" // currentAlp.visible = false // contact_people.positionViewAtBeginning() // } } //ADD #142761 2017/01/03 wangshuang begin Connections { target:ScreenManager // onBtHungupPageReset://del by lium for screenchange begin // { // console.log("btp_contact.qml:onBtHungupPageReset********************* btCtrl.btPhoneBookDownIsFailStatus="+btCtrl.btPhoneBookDownIsFailStatus) // if(((true == btCtrl.btPhoneBookLoading)&&(true == btCtrl.btserviceIsHFP))||(btCtrl.btPhoneBookDownIsFailStatus)) // { // if((ScreenManager.getFormInfo(WindowsList.BTP_CONTACT)&0x7) == 1) // { // if(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==false) // { // console.log("btp_contact.qml:onBtHungupPageReset********************* showOverlay BTP_CONTACT_DOWNLOAD") // ScreenManager.showOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) // } // } // } // else // { // ScreenManager.hideOverlay(WindowsList.BTP_CONTACT_DOWNLOAD) // btCtrl.setBtPBLoadPopTimerStop() // } // }//del by lium for screenchange end } //ADD #142761 2017/01/03 wangshuang end //ADD 2019/03/01 by wyc for ST#321774 begin function setTagPro() { iLanguage = btCtrl.btPhoneContactLanguage switch (iLanguage) { //FOD 2019/03/20 by wyc FOR 322043 begin case Settinglist.HMI_BTP_VIETNAM_LANGUAGE_ENGLISH:tagHeight=26;tagFontSize=24;firstRow.x=17;firstRow.width=24;tagWeight=false;break; case Settinglist.HMI_BTP_VIETNAM_LANGUAGE_VIETNAM:tagHeight = 24;tagFontSize=22;firstRow.x=16;firstRow.width=22;tagWeight=false;break; case Settinglist.HMI_BTP_RUSSIA_LANGUAGE_ENGLISH:tagHeight = 26;tagFontSize=24;firstRow.x=17;firstRow.width=24;tagWeight=false;break; case Settinglist.HMI_BTP_RUSSIA_LANGUAGE_RUSSIA:tagHeight = 21;tagFontSize=20;firstRow.x=16;firstRow.width=20;tagWeight=false;break; //FOD 2019/03/20 by wyc FOR 322043 end } firstRowM.model = getFirstRowModel() ru_icon.visible = ((btCtrl.btserviceIsHFP == true)&&(btCtrl.btPhoneContactLanguage == Settinglist.HMI_BTP_RUSSIA_LANGUAGE_ENGLISH)) en_icon.visible = ((btCtrl.btserviceIsHFP == true)&&(btCtrl.btPhoneContactLanguage == Settinglist.HMI_BTP_RUSSIA_LANGUAGE_RUSSIA)) console.log("ru:" + ((btCtrl.btConnectState == true && btCtrl.btserviceIsHFP == true)&&(btCtrl.btPhoneContactLanguage == Settinglist.HMI_BTP_RUSSIA_LANGUAGE_ENGLISH))) } //ADD 2019/03/01 by wyc for ST#321774 end //ADD 2018/11/14 by wyc for BT order begin function showAtoZCurrent(currenType) { //console.log("BTP_CONTACT showAtoZCurrent:" + currenType) //Fod #128195 2016/11/14 wangshuang begin //Fod #138488 2017/03/16 wangs begin if((btCtrl.btConnectState == true) && (btCtrl.btserviceIsHFP == true) && (false == btCtrl.btPhoneBookLoading)&&(ScreenManager.isOverlayShowed(WindowsList.BTP_CONTACT_DOWNLOAD)==false)&&(loadTimer.visible==false)) //Fod #138488 2017/03/16 wangs end { //Fod #176283 2017/05/22 wangs begin //FOD 2019/01/02 by wyc for ST#315451 begin /*if( btCtrl.getSearchInitialIsExist(currenType) == true) { //Fod #129858 2016/11/23 wangshuang begin contact_people.cancelFlick() //Fod #129858 2016/11/23 wangshuang end }*/ //Fod #129858 2016/11/23 wangshuang begin contact_people.cancelFlick() //Fod #129858 2016/11/23 wangshuang end if( btCtrl.getSearchInitialIsExist(currenType) == true) { aTozCurrent = currenType } else { var a=0,b=0,temp=viewIndex; var model = getFirstRowModel(); for (;temp>=0;temp--) { //console.log("++++++++++model[temp]:" + model[temp] + "++++++++++") if (btCtrl.getSearchInitialIsExist(model[temp]) == true) { break; } a++; } temp=viewIndex; var maxNum = 0; for (var chr in model) { maxNum++; } for (;temp index[i] && pos <= index[i+1]) { t_str = model[i]; } }*/ //console.log("------------///////////getLetterOnPosition:" + pos) /*if ((t_str == "Z")&&iLanguage == Settinglist.LANGUAGE_RUSSIA) { iLanguage = Settinglist.LANGUAGE_ENGLISH; model = getFirstRowModel(); firstRowM.model = model; if (t_str == "#") { showAtoZCurrent(t_str); } } else if (t_str == "А"&&iLanguage == Settinglist.LANGUAGE_ENGLISH) { iLanguage = Settinglist.LANGUAGE_RUSSIA; model = getFirstRowModel(); firstRowM.model = model; } else { console.log("------------///////////getLetterOnPosition showAtoZCurrent:" + t_str) showAtoZCurrent(t_str); }*/ for (var temp in model) { if (pos > index[i] && pos <= index[i+1]) { t_str = model[i]; viewIndex = i; break; } i++; } //console.log("print system time",Qt.formatDateTime(new Date(),"yyyy-MM-dd hh:mm:ss.zzz")) //console.log("------------///////////getLetterOnPosition:" + pos) console.log("------------///////////getLetterOnPosition showAtoZCurrent:" + t_str) if ("" != t_str) { showAtoZCurrent(t_str); } } //FOD 2019/01/02 by wyc for ST#315454 end //ADD 2018/11/14 by wyc for BT order end }