import QtQuick 2.0 import Label 2.0 import "../../com/neusoft/auto/widgets" import "../../layoutList.js" as Layout import "../../windowsList.js" as WindowsList import "../DiagDefine.js" as DiagDefine import "../" DiagDevelopWindow { id:naviInfo_home property string style: systemCtrl.style property int ilLon: naviCtrl.iGPSlLon property int ilLat: naviCtrl.iGPSlLat property int ialtitude:naviCtrl.iGPSAltitude property int igyroscope:naviCtrl.iGyroValue property int iaccelerate:naviCtrl.iGSensorValue Component.onCompleted: { visible:true } visible:false onVisibleChanged: { if (naviInfo_home.visible == true) { //do nothing } else { naviCtrl.naviinfoswitch(DiagDefine.DIAG_NAVIINFO_STOP) start.btnImg = "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262" + bgImageStyle end.btnImg = "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262" + bgImageStyle } } Item { id:naviInfo_home_title x:0 y:0 width: 960 height: 78 HMILabel { width: 480//120 height: 78 text:qsTr("Diag-Navi info") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.horizontalCenter: parent.horizontalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter } } Item { id: diag_naviInfo_home_Flickable anchors.horizontalCenter: parent.horizontalCenter y: 265 - naviInfo_home.y width: 842 height: 760//636//760-124 /*Navi Info*/ Flickable { id:flick width: 842 height: 760//576//8*72 contentHeight: column.height//8*72 contentWidth: parent.width interactive: false clip: true Column { id: column width: flick.width spacing: 2 Image { id: title_gsp width: flick.width height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + style visible: (lLon.visible == true || lLat.visible == true || altitude.visible == true) ? true : false HMILabel { id: title_gsp_label x:38 height: 78 width:500 text: "GPS" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } } /************************** lLon ************************************/ Row { id: lLon width: flick.width height: 78 visible: true Item { width: 38 height: 1 } HMILabel { id: lLon_label height: 78 width: 100 text: "经度" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item { height: 1 width: 842 - 38 - 2 - 30 - lLon_label.width - lLon_value.width - lLon_unit.width } HMILabel { id: lLon_value height: 78 width: 200 text: ilLon font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item { width: 2 height: 1 } HMILabel { id: lLon_unit height: 78 width: 120 text: "1/2560 秒" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } /**************************** lLat **************************************/ Row { id: lLat width: flick.width height: 78 visible: true Item { width: 38 height: 1 } HMILabel { id: lLat_label height: 78 width: 100 text: "纬度" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item { height: 1 width: 842 - 38 - 2 - 30 - lLat_label.width - lLat_value.width - lLat_unit.width } HMILabel { id: lLat_value height: 78 width: 200 text: ilLat font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item { width: 2 height: 1 } HMILabel { id: lLat_unit height: 78 width: 120 text: "1/2560 秒" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } /********************************** Altitude ***************************************/ Row { id: altitude width: flick.width height: 78 visible: true Item { width: 38 height: 1 } HMILabel { id: altitude_label height: 78 width: 100 text: "海拔" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item { height: 1 width: 842 - 38 - 2 - 30 - altitude_label.width - altitude_value.width - altitude_unit.width } HMILabel { id: altitude_value height: 78 width: 200 text: ialtitude font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item { width: 2 height: 1 } HMILabel { id: altitude_unit height: 78 width: 120 text: "米" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } /************************* gyroscope ************************************/ Image { id: title_gyroscope width: flick.width height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + style visible: gyroscope.visible HMILabel { x: 38 width: 500 height: 78 text: "陀螺仪数据" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } } Row { id: gyroscope width: flick.width height: 78 visible: true Item { width: 38 height: 1 } HMILabel { id: gyroscope_label width: 300 height: 78 text: "陀螺仪" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item { height: 1 width: 842 - 38 - 2 - 30 - gyroscope_label.width - gyroscope_value.width - gyroscope_unit.width } HMILabel { id: gyroscope_value height: 78 width: 200 text: igyroscope font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item { width: 2 height: 1 } HMILabel { id: gyroscope_unit height: 78 width: 120 text: "0.01deg/s" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } /************************* accelerate ************************************/ Image { id: title_accelerate width: flick.width height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + style visible: accelerate.visible HMILabel { x: 38 width: 500 height: 78 text: "加速度数据" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } } Row { id: accelerate width: flick.width height: 78 visible: true Item { width: 38 height: 1 } HMILabel { id: accelerate_label width: 300 height: 78 text: "加速度" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item { height: 1 width: 842 - 38 - 2 - 30 - accelerate_label.width - accelerate_value.width - accelerate_unit.width } HMILabel { id: accelerate_value height: 78 width: 200 text: iaccelerate font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item { width: 2 height: 1 } HMILabel { id: accelerate_unit height: 78 width: 120 text: "mG" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } } } } Item { id: sendInfo_btn anchors.top: diag_naviInfo_home_Flickable.bottom width: naviInfo_home.width height: 78 HMIButton { id:start anchors.left: parent.left 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:start_txt width: 262 height: 78 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter font.pixelSize: 30 text:"ON" color:"white" } onClicked: { naviCtrl.naviinfoswitch(DiagDefine.DIAG_NAVIINFO_START); end.btnImg = "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262" + bgImageStyle start.btnImg = "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262_P" + bgImageStyle } } HMIButton { id:end anchors.right: parent.right 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:end_txt width: 262 height: 78 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter font.pixelSize: 30 text:"OFF" color:"white" } onClicked: { naviCtrl.naviinfoswitch(DiagDefine.DIAG_NAVIINFO_STOP); start.btnImg = "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262" + bgImageStyle end.btnImg = "qrc:MATERIAL/MATERIAL_M8X_SETTINGS_BUTTON_W262_P" + bgImageStyle } } } //add by plc for #334353 //delete by zhanglixin 2019/06/28 jin chu ye mian xian shi AC/menubar /*Connections { target: carplayCtrl onCarpalyModesChanged: { if (naviInfo_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**naviInfo_home**") console.log("\n@AndroidAuto**ZLX**onVideoFocusChanged**naviInfo_home.visible="+naviInfo_home.visible) if (naviInfo_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**naviInfo_home**") ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } }*/ //add by zhanglixin androidauto display kong tiao bu xian shi wen ti end }