import QtQuick 2.0 import Label 2.0 import "../../com/neusoft/auto/widgets" import "../../layoutList.js" as Layout import "../../windowsList.js" as WindowsList import "../" HMIMask { id:canCheckIOControl_home widowsType:Layout.POP_TYPE x:0 y:0 width: 960 height: 1280 property int currType :settingCtrl.iPic Component.onCompleted: { visible:true } visible:false // MouseArea // { // anchors.fill: parent // onClicked: // { // if(currType == 0) // { // settingCtrl.setCanIO(1) // } // else if(currType == 1) // { // settingCtrl.setCanIO(2) // } // else if(currType == 2) // { // settingCtrl.setCanIO(3) // } // else if(currType == 3) // { // settingCtrl.setCanIO(4) // } // else if(currType == 4) // { // settingCtrl.setCanIO(5) // } // else if(currType == 5) // { // settingCtrl.setCanIO(6) // } // else if(currType == 6) // { // settingCtrl.setCanIO(0) // } // } // } onVisibleChanged: { if (canCheckIOControl_home.visible == true) { /************ For CAN Check DIDs ********/ settingCtrl.setMonitType(true) settingCtrl.setCANMonitType(true) switch(currType) { case 0: { monitor_img.source = "qrc:MATERIAL/MATERIAL_BLACK" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 1: { monitor_img.source = "qrc:MATERIAL/MATERIAL_WHITE" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 2: { monitor_img.source = "qrc:MATERIAL/MATERIAL_GRAY" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 3: { monitor_img.source = "qrc:MATERIAL/MATERIAL_COLOR" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 4: { monitor_img.source = "qrc:MATERIAL/MATERIAL_RED" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 5: { monitor_img.source = "qrc:MATERIAL/MATERIAL_GREEN" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 6: { monitor_img.source = "qrc:MATERIAL/MATERIAL_BLUE" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } default: { break; } } } else { settingCtrl.iScreenOutPutQuit = currType /************ For CAN Check DIDs ********/ settingCtrl.setMonitType(false) settingCtrl.setCANMonitType(false) } } Image { id: monitor_img anchors.fill: parent source: "qrc:MATERIAL/MATERIAL_BLACK" + bgImageStyle//fod F0157 20170108 liuming end } //-------------- only for check // HMIButton // { // id:back_btn // x:0 // y:165 - monitor_home.y // 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: // { // settingCtrl.setCanIO(9) // } // } //---------------- only for check Connections { target:settingCtrl onPicChanged: { switch(currType) { case 0: { monitor_img.source = "qrc:MATERIAL/MATERIAL_BLACK" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 1: { monitor_img.source = "qrc:MATERIAL/MATERIAL_WHITE" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 2: { monitor_img.source = "qrc:MATERIAL/MATERIAL_GRAY" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 3: { monitor_img.source = "qrc:MATERIAL/MATERIAL_COLOR" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 4: { monitor_img.source = "qrc:MATERIAL/MATERIAL_RED" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 5: { monitor_img.source = "qrc:MATERIAL/MATERIAL_GREEN" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } case 6: { monitor_img.source = "qrc:MATERIAL/MATERIAL_BLUE" + bgImageStyle//fod F0157 20170108 liuming end settingCtrl.iPic = currType break; } default: { break; } } } onScreenOutPutQuitChanged: { ScreenManager.hideOverlay(WindowsList.DIAG_CANCHECK) } onDidsGetOutPutChanged: { settingCtrl.iDidsGetOutPut = currType } } //add by plc for #334353 //delete by zhanglixin 2019/06/28 jin chu ye mian xian shi AC/menubar /*Connections { target: carplayCtrl onCarpalyModesChanged: { if (canCheckIOControl_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**canCheckIOControl_home**") console.log("\n@AndroidAuto**ZLX**onVideoFocusChanged**canCheckIOControl_home.visible="+canCheckIOControl_home.visible) if (canCheckIOControl_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**canCheckIOControl_home**") ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } }*/ //add by zhanglixin androidauto display kong tiao bu xian shi wen ti end }