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:version_home property string mcuversion:diagCtrl.sDiagMCUVersion property string mduversion:diagCtrl.sDiagSOCVersion//sDiagMDUVersion mod by yx property string socversion: diagCtrl.sDiagSOCVersion property string bootversion: diagCtrl.sDiagBootVersion //delete by zhanglixin 2019/03/04 #322337 begin // property string hardware_version: settingCtrl.getHardwareVersion() //delete by zhanglixin 2019/03/04 #322337 end //update by zhanglixin 2019/03/04 #322337 begin property string hardwareversion: diagCtrl.sDiagHardwareVersion //update by zhanglixin 2019/03/04 #322337 end property string touchicversion: diagCtrl.sDiagTouchICVersion //ADD F0119 baojinfeng 2016/12/02 begin property string sDiagMinisystemVersion: diagCtrl.sDiagMinisystemVersion property string sDiagAnimationVersion: diagCtrl.sDiagAnimationVersion //ADD F0119 baojinfeng 2016/12/02 end property string naviversion:naviCtrl.getNaviVersion() property string dbVersion: naviCtrl.getDBVersion() property string software_version: "" //add plc property string hardware_version: "" //add zhanglixin Component.onCompleted: { visible:true software_version = settingCtrl.getSoftwareVersion() hardware_version = settingCtrl.getHardwareVersion()//add zhanglixin } visible:false onVisibleChanged: { if (version_home.visible == true) { console.log("@ZLX**onVisibleChanged*install*hardwareversion="+hardwareversion) dbVersion = naviCtrl.getDBVersion(); naviversion = naviCtrl.getNaviVersion(); ScreenManager.hideOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = true console.log("DIAG -version_home In- Navi Version dbVersion="+dbVersion) console.log("DIAG -version_home In- Navi Versionn aviversion="+naviversion) } else { ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } } /*Version Info*/ //ADD BY ZLX 2018/12/26 #315464 begin HMIListView { id: play_list_view x:58 y:81 width:872 height:719 spacing:2 rightMargin:1 scrollBar:true scrollBar_edge:0 scrollBar_width:8 scrollBar_img:"qrc:MATERIAL/MATERIAL_M8X_SLIDER_BAR_CENTRE"+bgImageStyle model:zone_data delegate: play_list_delegate snapMode:ListView.SnapToItem } ListModel { id:zone_data ListElement { moduleName: "MCU"; isValid:true } ListElement { moduleName: "MDU"; isValid:true } ListElement { moduleName: "SOC"; isValid:true } ListElement { moduleName: "BT"; isValid:true } ListElement { moduleName: "BT MAC"; isValid:true } ListElement { moduleName: "Boot(SOC)"; isValid:true } ListElement { moduleName: "TouchIC"; isValid:true } ListElement { moduleName: "DB Version"; isValid:true } ListElement { moduleName: "Navi Version"; isValid:true } //add by zhanglixin 2019/03/04 #322337 begin ListElement { moduleName: "HardWare"; isValid:true } //add by zhanglixin 2019/03/04 #322337 end ListElement { moduleName: "Hardware Version"; isValid:true } ListElement { moduleName: "Software Version"; isValid:true } } Component { id: play_list_delegate Item { id: list_item width: 842 height: 78 visible: true HMILabel { x:18 width:279 height:78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize:28 text:moduleName } HMILabel { anchors.verticalCenter: parent.verticalCenter width:parent.width - 18 height:78 horizontalAlignment: Text.AlignRight font.pixelSize:28 text: { if("MCU" == moduleName) { mcuversion } else if("MDU" == moduleName) { mduversion } else if("SOC" == moduleName) { socversion } else if("BT MAC" == moduleName) { btCtrl.getBtAddressInfo() } else if("BT" == moduleName) { if((btCtrl.getBtVersionInfo() == "000000")) { "-" } else { btCtrl.getBtVersionInfo() } } else if("Boot(SOC)" == moduleName) { bootversion } //add by zhanglixin 2019/03/04 #322337 begin else if("HardWare" == moduleName) { hardwareversion } //add by zhanglixin 2019/03/04 #322337 end //update by zhanglixin 2019/03/04 #322337 begin else if("Hardware Version" == moduleName) { if(hardware_version == "") { "-" } else { hardware_version } } //update by zhanglixin 2019/03/04 #322337 end else if("Software Version" == moduleName) { if(software_version == "") { "-" } else { software_version } } else if("TouchIC" == moduleName) { touchicversion } else if("DB Version" == moduleName) { dbVersion } else if("Navi Version" == moduleName) { naviversion } else { //do nothing } } } } } MouseArea { id:scroolbarcover x:900 y:81 width:60 height: 719 } //ADD BY ZLX 2018/12/26 #315464 END // /*CarLink Vertion*/ // /* Row // { // id:token // width:842 // height:78 // visible: true // Item // { // width:842 // height:78 // HMILabel // { // x:18 // anchors.verticalCenter: parent.verticalCenter // width:279 // height:78 // horizontalAlignment: Text.AlignLeft // font.pixelSize:28 // text:qsTr("Token") // } // HMILabel // { // anchors.verticalCenter: parent.verticalCenter // width:parent.width - 18 // height:78 // horizontalAlignment: Text.AlignRight // font.pixelSize:28 // text:carlinkCtrl.tokenCode // } // } // }*/ // //ADD #F0106 baojinfeng 2016/11/23 end // /*Phonelink Vertion*/ // /* Row // { // id:phonelink // width:842 // height:78 // visible: true // Item // { // width:842 // height:78 // HMILabel // { // x:18 // anchors.verticalCenter: parent.verticalCenter // width:279 // height:78 // horizontalAlignment: Text.AlignLeft // font.pixelSize:28 // text:qsTr("Phonelink") // } // HMILabel // { // anchors.verticalCenter: parent.verticalCenter // width:parent.width - 18 // height:78 // horizontalAlignment: Text.AlignRight // font.pixelSize:28 // text:(mirrorlinkCtrl.getMLVersion() == "")?"-":mirrorlinkCtrl.getMLVersion()//FOD 2017/4/13 baojinfeng } // } // } // }*/ // //ADD #F0106 baojinfeng 2016/11/23 end // //ADD F0119 baojinfeng 2016/12/02 begin // /*SOC VersionInfo*/ // /* Row // { // id:minisystem // width: 842 // height: 78 // visible: true // Item // { // width: 842 // height: 78 // HMILabel // { // x:18 // anchors.verticalCenter: parent.verticalCenter // width:279 // height:78 // horizontalAlignment: Text.AlignLeft // font.pixelSize:28 // text:qsTr("Minisystem") // } // HMILabel // { // anchors.verticalCenter: parent.verticalCenter // width:parent.width - 18 // height:78 // horizontalAlignment: Text.AlignRight // font.pixelSize:28 // text:sDiagMinisystemVersion // } // } // }*/ // /* Row // { // id:animation // width: 842 // height: 78 // visible: true // Item // { // width: 842 // height: 78 // HMILabel // { // x:18 // anchors.verticalCenter: parent.verticalCenter // width:279 // height:78 // horizontalAlignment: Text.AlignLeft // font.pixelSize:28 // text:qsTr("Animation") // } // HMILabel // { // anchors.verticalCenter: parent.verticalCenter // width:parent.width - 18 // height:78 // horizontalAlignment: Text.AlignRight // font.pixelSize:28 // text:sDiagAnimationVersion // } // } // }*/ // //ADD F0119 baojinfeng 2016/12/02 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 (version_home.visible == true) { console.log("@ZLX**onVisibleChanged**hardwareversion="+hardwareversion) ScreenManager.hideOverlay(WindowsList.AC_ITEM) diagCtrl.bInstallMode = true } else { ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bInstallMode = false } } onCarpalyShow: { ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bInstallMode = 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**version_home**") console.log("\n@AndroidAuto**ZLX**onVideoFocusChanged**version_home.visible="+version_home.visible) if (version_home.visible == true) { ScreenManager.hideOverlay(WindowsList.AC_ITEM) diagCtrl.bInstallMode = true } else { ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bInstallMode = false } } //AndroidAuto xian shi onAndroidAuto_show: { console.log("\n@AndroidAuto**ZLX**onAndroidAuto_show**version_home**") ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bInstallMode = false } }*/ //add by zhanglixin androidauto display kong tiao bu xian shi wen ti end }