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:eye_home Component.onCompleted: { visible:true } visible:false Item { id:eye_home_title x:0 y:0 width: 960 height: 78 HMIButton { id:back_btn x:0 y:165 - 160 width: 138 height: 70 btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON_P" + bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON" + bgImageStyle Image { id:back_btn_image x:20 anchors.verticalCenter: parent.verticalCenter width: 20 height:34 source: "qrc:MATERIAL/MATERIAL_M8X_ICON_BACK" + bgImageStyle } HMILabel { id:back_btn_label x:44 width: 94//60 height: 70 text: qsTr("Back") + systemCtrl.emptyString font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } onClicked: { //ScreenManager.changeForm(Layout.FM_OPEN, WindowsList.DIAG_DEVELOPMAIN) ScreenManager.changeForm(Layout.ACT_BACK, WindowsList.DIAG_DEVELOPOTHERMAIN)//ST_317885 ly //diagCtrl.bDevelopMode = false } } HMILabel { width: 480//120 height: 78 text:qsTr("Diag-Eye") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.horizontalCenter: parent.horizontalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter } } Item{ id:diag_Eye_home_Flickable anchors.horizontalCenter: parent.horizontalCenter y:265 width: 842 height: 760 Row { id: eye_ROW width: 842 height: 78 visible: true Item { width: 842 height: 78 HMIButton { id:outputeye x:310 width: 248 height: 78 visible: true btnImg: pressed?"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248_P" + bgImageStyle:"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248" + bgImageStyle HMILabel { id:outputeye_txt width: 262 height: 78 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter font.pixelSize: 24 text:qsTr("Output Eye") color:"white" } onClicked: { diagCtrl.setUSBEyeTest() console.debug("[Diag_Eye.qml:]----------------- outputeye Button Clicked--------------@@@@@@@@@@@@@@plc") } } } } Row { id:slope1_ROW width: 842 height: 78 visible: true Item { y:270 width: 842 height: 78 HMIButton { id:slope1 x:60 width: 248 height: 78 visible: true btnImg: pressed?"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248_P" + bgImageStyle:"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248" + bgImageStyle HMILabel { id:slope1_txt width: 248 height: 78 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter font.pixelSize: 24 text:qsTr("Small impedance and large amplitude") color:"white" } onClicked: { diagCtrl.setCOMMONDTest(1) console.debug("[Diag_Eye.qml:] slope1 Button Clicked @@@@@@@@@@@@@@plc") } } } } Row { id:slope2_ROW width: 842 height: 78 visible: true Item { y:270 width: 842 height: 78 HMIButton { id:slope2 x:310 width: 248 height: 78 visible: true btnImg: pressed?"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248_P" + bgImageStyle:"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248" + bgImageStyle HMILabel { id:slope2_txt width: 248 height: 78 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter font.pixelSize: 24 text:qsTr("Normal") color:"white" } onClicked: { diagCtrl.setCOMMONDTest(2) console.debug("[Diag_Eye.qml]--------- slope2 Button Clicked ------------ @@@@@@@@@@@@@@plc") } } } } Row { id:slope3_ROW width: 842 height: 78 Item { y:270 width: 842 height: 78 HMIButton { id:slope3 x:560 width: 248 height: 78 visible: true btnImg: pressed?"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248_P" + bgImageStyle:"qrc:MATERIAL/MATERIAL_SETTINGS_BUTTON_W248" + bgImageStyle HMILabel { id:slope3_txt width: 248 height: 78 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter font.pixelSize: 24 text:qsTr("Large impedance and small amplitude") color:"white" } onClicked: { diagCtrl.setCOMMONDTest(3) console.debug("[Diag_Eye.qml]-----------slope3 Button Clicked ----------@@@@@@@@@@@@@@plc") } } } } } //add by plc for #334353 //delete by zhanglixin 2019/06/28 jin chu ye mian xian shi AC/menubar /*Connections { target: carplayCtrl onCarpalyModesChanged: { if (eye_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**eye_home**") console.log("\n@AndroidAuto**ZLX**onVideoFocusChanged**eye_home.visible="+eye_home.visible) if (eye_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**eye_home**") ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } }*/ //add by zhanglixin androidauto display kong tiao bu xian shi wen ti end }