import QtQuick 2.0 import Label 2.0 import "../../com/neusoft/auto/widgets" import "../../layoutList.js" as Layout import "../../windowsList.js" as WindowsList import "../" DiagInstallWindow { id:capa_home Component.onCompleted: { visible = true } property string bgImageStyle: systemCtrl.style property int fullRAWTest: diagCtrl.ifullrawtest // property int pinFault: diagCtrl.ipinFault // property int signalLimit: diagCtrl.isignalLimit property bool usb_connectState:USBControl1.usb_connectState visible: false onVisibleChanged: { if (capa_home.visible == true) { // console.log("####plc------> reqCheckCapacitiveScreen") ScreenManager.showOverlay(WindowsList.DIAG_CAPAMESSAGE) runcheckscreen.running=true runcheckscreen.start() } else { } } Item { id:can_home_title x:0 y:0 width: 960 height: 78 HMILabel { width: 600//120 height: 78 text:qsTr("Diag_Capacitive") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.horizontalCenter: parent.horizontalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignHCenter } } Item { id: capa_home_Flickable anchors.horizontalCenter: parent.horizontalCenter y:10 width: 842 height: 760//636//760-124 Flickable { id:flick width: 842 height: 760//760-124 anchors.topMargin: 0 contentHeight:842// flick1.height contentWidth: parent.width clip:true interactive:false//true // Column // { // id:flick1 // width: 842 // spacing: 2 // Image // { // id: title_analog // x: 20 // width: 842 // height: 78 // source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle // HMILabel // { // id:analog // x: 20 // width: 400 // height: 78 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"Analog Power Test" // color:"white" // } // HMILabel // { // id:analog_txt // x: 450 // width: 350 // height: 78 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"-" // color:"white" // } // } // Image // { // id: title_pin // x: 20 // width: 842 // height: 78 // source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle // HMILabel // { // id:pin // x: 20 // width: 400 // height: 78 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"Pin Fault Test" // color:"white" // } // HMILabel // { // id:pin_txt // x: 450 // width: 350 // height: 78 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"-" // color:"white" // } // } // Image // { // id: title_signal // x: 20 // width: 842 // height: 78 // source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle // HMILabel // { // id:signal // x: 20 // width: 400 // height: 78 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"Signal Limit Test" // color:"white" // } // HMILabel // { // id:signal_txt // x: 450 // width: 350 // height: 78 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"-" // color:"white" // } // } // } // Image // { // id: title_analog // x: 20 // width: 842 // height: 78 // source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle HMILabel { id:fullRawTestsingle x: 220 width: 400 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"CapacitiveScreenCheck" color:"white" } HMILabel { id:fullRawTest_txt x: 620 width: 400 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"-" color:"white" } // } } } HMIButton { id:save x: 20 anchors.top: capa_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:save_txt width: 262 height: 78 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter font.pixelSize: 24 text:"Save" color:"white" } onClicked: { if (usb_connectState == false) { ScreenManager.showOverlay(WindowsList.DIAG_USBPOP) } else { diagCtrl.reqSaveCapacitveResult() } } } //add by plc for #dianrongpingcheck Timer { id:runcheckscreen running: false repeat: false interval: 100 onTriggered: { diagCtrl.reqCheckCapacitiveScreen() } } Connections { target: diagCtrl onFULL_RAW_TEST: { fullRawTest_txt.text = fullRAWTest?"NG":"OK" } //del by plc 电容屏检测 // onPinFaultTest: // { // pin_txt.text = pinFault?"NG":"OK" // } // onSignalLimitTest: // { // signal_txt.text = signalLimit?"NG":"OK" // } //add F0107 2016/11/24 liuming begin onSaveCapacitveOK: { ScreenManager.showOverlay(WindowsList.DIAG_SAVECAPACITIVEOK) } onSaveCapacitveNG: { ScreenManager.showOverlay(WindowsList.DIAG_SAVECAPACITIVENG) } //add F0107 2016/11/24 liuming end } //add by plc for #334353 //delete by zhanglixin 2019/06/28 jin chu ye mian xian shi AC/menubar /*Connections { target: carplayCtrl onCarpalyModesChanged: { if (capa_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**capa_home**") console.log("\n@AndroidAuto**ZLX**onVideoFocusChanged**capa_home.visible="+capa_home.visible) if (capa_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**capa_home**") ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } }*/ //add by zhanglixin androidauto display kong tiao bu xian shi wen ti end }