import QtQuick 2.0 import Label 2.0 import "../../com/neusoft/auto/widgets" import "../../layoutList.js" as Layout import "../../windowsList.js" as WindowsList import "../" DiagDevelopWindow { id:btmain_home property bool btConnectState:btCtrl.btConnectState property bool btserviceIsHFP:btCtrl.btserviceIsHFP property bool btserviceIsAVRCP:btCtrl.btserviceIsAVRCP property int entersource: diagCtrl.entersource Component.onCompleted: { visible:true } visible:false onVisibleChanged: { if (btmain_home.visible == true) { entersource = systemCtrl.getCurrentSource() diagCtrl.entersource = entersource } else { } } Item { id:btmain_home_title x:0 y:0 width: 960 height: 78 HMILabel { width: 480//120 height: 78 text:qsTr("Diag_BT") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.horizontalCenter: parent.horizontalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter } } Item { id: diagBT_Flickable anchors.horizontalCenter: parent.horizontalCenter y: 265 - btmain_home.y width: 842 height: 760//636//760-124 Flickable { id:flick width: 842 height: 760//760-124 anchors.topMargin: 0 anchors.fill: parent contentHeight: flick1.height contentWidth: parent.width clip:true interactive:false//true Column { id:flick1 width: 842 spacing: 2 Row { id: btSound_Title width: 842 height: 78 visible: true /* BT */ Item { /*BT Sound*/ HMIButton { id: first_row width:842 height:78 btnImg:pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P" + bgImageStyle:"" HMILabel { x:210 - parent.x - 0 width:279 height:78 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft wrapMode:Label.NoWrap text:qsTr("BT Sound Output") color:"white" font.pixelSize:30 } onClicked: { if (mouse.x < first_row.width && mouse.x > 0 && mouse.y < first_row.height && mouse.y > 0) { if (btConnectState == true) { if (btserviceIsAVRCP == true) { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_BTSOUNDIO); } else { ScreenManager.showOverlay(WindowsList.DIAG_AVRCPPOP) } } else { ScreenManager.showOverlay(WindowsList.DIAG_BTPOP) } //ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.DIAG_BTSOUNDIO) } else { } } } } } Row { id: btStatus_Title width: 842 height: 78 visible: true Item { /*BT Status*/ HMIButton { width:842 height:78 btnImg:second_row.pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P" + bgImageStyle:"" HMILabel { x:210 - parent.x - 0 width:279 height:78 horizontalAlignment: Label.AlignLeft wrapMode:Label.NoWrap text:qsTr("BT Status") font.pixelSize:30 color:"white" } HMIMouseArea { id:second_row width: 842 height: 78 enabled: true onClicked: { if (mouse.x < second_row.width && mouse.x > 0 && mouse.y < second_row.height && mouse.y > 0 ) { // if (btConnectState == true) // { // ScreenManager.changeForm(Layout.FM_OPEN, WindowsList.DIAG_BTSTATUS); // } // else // { // popUpResultTimer.start() // popResult.visible = true // popResultText.text = qsTr("No BT Connected") // } ScreenManager.changeForm(Layout.ACT_SUBFORM, WindowsList.DIAG_BTSTATUS) } else { } } } } } } } } } //delete by zhanglixin 2019/06/28 jin chu ye mian xian shi AC/menubar /*Connections { target: carplayCtrl onCarpalyModesChanged: { if (btmain_home.visible == true) { console.log("@ZLX**onVisibleChanged**hardwareversion="+hardwareversion) ScreenManager.hideOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = true } else { ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } } onCarpalyShow: { ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } } //add by zhanglixin androidauto display kong tiao bu xian shi wen ti begin Connections { target: andrCtrl //AndroidAuto bu xian shi onVideoFocusChanged: { console.log("\n@AndroidAuto**ZLX**onVideoFocusChanged**btmain_home**") console.log("\n@AndroidAuto**ZLX**onVideoFocusChanged**btmain_home.visible="+btmain_home.visible) if (btmain_home.visible == true) { ScreenManager.hideOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = true } else { ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } } //AndroidAuto xian shi onAndroidAuto_show: { console.log("\n@AndroidAuto**ZLX**onAndroidAuto_show**btmain_home**") ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } }*/ //add by zhanglixin androidauto display kong tiao bu xian shi wen ti end }