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:module_home property int usbProcessStatus: diagCtrl.iUSBProcessStatus property int btProcessStatus: diagCtrl.iBTProcessStatus property int radioProcessStatus: diagCtrl.iRadioProcessStatus property int mirrorlinkProcessStatus: diagCtrl.iMirrorlinkProcessStatus Component.onCompleted: { visible:true } visible:false onVisibleChanged: { if (module_home.visible == true) { } else { } } Item { id:module_home_title x:0 y:0 width: 960 height: 78 HMILabel { width: 480//120 height: 78 text:qsTr("Diag-Module Status Display") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.horizontalCenter: parent.horizontalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter } } Item { id: diag_module_home_Flickable anchors.horizontalCenter: parent.horizontalCenter y: 265 - module_home.y width: 842 height: 760//636//760-124 /*Module Status Info*/ Flickable { id:flick width: 842 height: 760//7*72 contentHeight: flick1.height//7*72 contentWidth: parent.width interactive:false clip:false Column { id:flick1 width: 842 spacing: 2 Row { id: usb_ROW width: 842 height: 78 visible: true /*USB*/ Item { id:usb width:842 height:78 HMILabel { x:160 - parent.x - 0 width:279 height:78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Label.AlignLeft wrapMode:Label.NoWrap font.pixelSize:28 text:qsTr("USB") } HMILabel { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter width:350 height: 40 horizontalAlignment: Label.AlignRight font.pixelSize:28 text:usbProcessStatus == 1?"OK":"NG" } } } Row { id: btPhone_ROW width: 842 height: 78 visible: true /*BTPhone*/ Item { id:btphone width:842 height:78 HMILabel { x:160 - parent.x - 0 anchors.verticalCenter: parent.verticalCenter width:279 height:78 horizontalAlignment: Label.AlignLeft wrapMode:Label.NoWrap font.pixelSize:28 text:qsTr("BTPhone") } HMILabel { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter width:350 height:78 horizontalAlignment: Label.AlignRight font.pixelSize:28 text:btProcessStatus == 1?"OK":"NG" } } } Row { id: btAudio_ROW height: 78 width: 842 visible: true /*BTAudio*/ Item { id:btaudio width: 842 height: 78 HMILabel { x:160 - parent.x - 0 anchors.verticalCenter: parent.verticalCenter width:279 height:78 horizontalAlignment: Label.AlignLeft wrapMode:Label.NoWrap font.pixelSize:28 text:qsTr("BTAudio") } HMILabel { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter width:350 height:40 horizontalAlignment: Label.AlignRight font.pixelSize:28 text:btProcessStatus == 1?"OK":"NG" } } } Row { id: iPod_ROW width: 842 height: 78 visible: true /*iPod*/ Item { id:ipod width:842 height:78 HMILabel { x:160 - parent.x - 0 anchors.verticalCenter: parent.verticalCenter width:279 height:78 horizontalAlignment: Label.AlignLeft wrapMode:Label.NoWrap font.pixelSize:28 text:qsTr("iPod") } HMILabel { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter width:350 height:78 horizontalAlignment: Label.AlignRight font.pixelSize:28 text:usbProcessStatus == 1?"OK":"NG" } } } Row { id: phoneLink_ROW width: 842 height: 78 visible: true /*PhoneLink*/ Item { id:phoneLink width:842 height:78 HMILabel { x:160 - parent.x - 0 anchors.verticalCenter: parent.verticalCenter width:279 height:78 horizontalAlignment: Label.AlignLeft wrapMode:Label.NoWrap font.pixelSize:28 text:qsTr("PhoneLink") } HMILabel { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter width:350 height:78 horizontalAlignment: Label.AlignRight font.pixelSize:28 text:mirrorlinkProcessStatus == 1?"OK":"NG" } } } Row { id: tuner_ROW width: 842 height: 78 visible: true /*Tuner*/ Item { id:tuner width: 842 height: 78 HMILabel { x:160 - parent.x - 0 anchors.verticalCenter: parent.verticalCenter width:279 height:78 horizontalAlignment: Label.AlignLeft wrapMode:Label.NoWrap font.pixelSize:28 text:qsTr("Tuner") } HMILabel { anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter width:350 height:78 horizontalAlignment: Label.AlignRight font.pixelSize:28 text:radioProcessStatus == 1?"OK":"NG" } } } } } } HMIButton { id:check x: 160 anchors.top: diag_module_home_Flickable.bottom width: 262 height: 78 visible: true btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262_P" + bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262" + bgImageStyle HMILabel { id:check_txt width: 262 height: 78 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter font.pixelSize: 30 text:"检测" color:"white" } onClicked: { diagCtrl.getModuleStatus() } } //add by plc for #334353 //delete by zhanglixin 2019/06/28 jin chu ye mian xian shi AC/menubar /*Connections { target: carplayCtrl onCarpalyModesChanged: { if (module_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 } } //end by plc for #334353 //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**module_home**") console.log("\n@AndroidAuto**ZLX**onVideoFocusChanged**module_home.visible="+module_home.visible) if (module_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**module_home**") ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } }*/ //add by zhanglixin androidauto display kong tiao bu xian shi wen ti end }