import QtQuick 2.0 import Label 2.0 import "../com/neusoft/auto/widgets" import "../windowsList.js" as WindowsList import "../layoutList.js" as Layout import "../Setting/Settinglist.js" as Settinglist HMIWindow { id:setting_about property string mcuversion:diagCtrl.sDiagMCUVersion property string socversion:diagCtrl.sDiagSOCVersion property string hardwareversion: diagCtrl.sDiagHardwareVersion property string naviNewUpdateVersion:diagCtrl.sUpdateNewNAVISoftVersion //property string naviSoftNewUpdateVersion:diagCtrl.sUpdateNewNAVISoftVersion property string naviversion:naviCtrl.getNaviVersion() //property string naviVersion:"" property string hardware_version:"" Component.onCompleted: { windowID = WindowsList.SETTING_ABOUT hardware_version = settingCtrl.getHardwareVersion() } onVisibleChanged: { bFullWindow = true bNoSwitchBarVisiable = true if(setting_about.visible) { diagCtrl.getDiagVersion() diagCtrl.getDiagVersion() diagCtrl.getUpdateNewNAVISoftVersion() naviCtrl.getNaviVersion() } else { } } Item { id: setting_defaultsBackground x: 0 - setting_about.x y: 0 - setting_about.y width: 960 height: 1280 Item{ id:back visible:true Item { id:setting_aboutback x:0//52-14 y:165 width: 960 height:70//78 HMIButton { id:back_btn x:0 y:0 width: 138 height: 70 //btnImg:pressed?"qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle opacity: 1 Image { id:back_btn_image x:5//20 y:3//18//194-174 width: 50//20//24 height:64//34 anchors.verticalCenter:parent.verticalCenter source:back_btn.pressed?"qrc:MATERIAL/MATERIAL_ICON_BACK_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle //"qrc:MATERIAL/MATERIAL_ICON_BACK"+bgImageStyle } HMILabel { id:back_btn_label x:54//44//20+24 y:0 width: 138//94//138-44 height:70 text: qsTr("Back") + systemCtrl.emptyString font.pixelSize: 30 anchors.verticalCenter:parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { ScreenManager.changeForm(Layout.ACT_BACK,WindowsList.SETTING_MAIN) } } } } Item{ id:about_home_title x:240 y:185 width:480 height:30 HMILabel{ x:433 y:5 width:480 height:30 text:qsTr("About") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter } } Column{ id:version y:265 width:690 height:78 spacing:27//54 Row { id:hardware width:690 height: 78 visible: true Item { width: 690 height: 78 HMILabel { x:142 anchors.verticalCenter: parent.verticalCenter width:285 height:30 horizontalAlignment: Text.AlignLeft font.pixelSize:28 text:qsTr("HardWare Version:") } HMILabel { anchors.verticalCenter: parent.verticalCenter x:549 width:285 height:30//78 horizontalAlignment: Text.AlignRight font.pixelSize:28 text: (hardware_version == "")?"_":hardware_version } } } Row { id:mcu width:690 height:78 visible: true Item { width:690 height:78 HMILabel { x:142 width:285 height:30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize:28 text:qsTr("MCU Version:") } HMILabel { anchors.verticalCenter: parent.verticalCenter x:549 width:285 height: 30 horizontalAlignment: Text.AlignRight font.pixelSize:28 text:mcuversion } } } Row { id:soc width: 690 height: 78 visible: true Item { width: 690 height: 78 HMILabel { x:142 anchors.verticalCenter: parent.verticalCenter width:285 height:30 horizontalAlignment: Text.AlignLeft font.pixelSize:28 text:qsTr("SOC Version:") } HMILabel { anchors.verticalCenter: parent.verticalCenter x:549 width:285 height:30 horizontalAlignment: Text.AlignRight font.pixelSize:28 text:socversion } } } Row { id:naviVertion width:690 height:78 visible: true Item { width:690 height:78 HMILabel { x:142 anchors.verticalCenter: parent.verticalCenter width:285 height:30 horizontalAlignment: Text.AlignLeft font.pixelSize:28 text:qsTr("Navigation Version:") } HMILabel { anchors.verticalCenter: parent.verticalCenter x:549 width:285 height:30 horizontalAlignment: Text.AlignRight font.pixelSize:28 text:naviversion } } } } // HMIButton // { // id:icon_update // x:90 // y:1042 // width: 870 // height: 76 // btnImg:icon_update.pressed?"qrc:MATERIAL/MATERIAL_FUNCTION_1_BUTTON_P_NOSWITCH"+bgImageStyle:""+bgImageStyle // Image{ // id:icon // x:374 // y:13 // width:34 // height:34 // source: "qrc:MATERIAL/MATERIAL_ICON_SOFTWARE_UPDATE"+bgImageStyle // } // HMILabel{ // x:316 // y:52 // width:151 // height:20 // //horizontalAlignment: Label.horizontalAlignment//AlignLeft // //verticalAlignment: Label.verticalAlignment // text:qsTr("Software update")+ systemCtrl.emptyString // font.pixelSize: 18 // } // onClicked: // { // if (mouse.x < icon_update.width && mouse.x >0 && mouse.y < icon_update.height && mouse.y > 0 ) // { // //diagCtrl.oneKeyUpdateCheck() //// diagCtrl.getDiagVersion() // console.debug("#### USBControl1.usb_connectState = "+USBControl1.usb_connectState) // if(1 == USBControl1.usb_connectState) // { // diagCtrl.reqCheckNAVISoftFile() // soc_check.running = true // } //// diagCtrl.reqCheckSOCMCUFile() // } // else // { // //ScreenManager.showOverlay(WindowsList.SETTING_NOUSBFILE) // } // } // Timer{ // id:soc_check // interval: 500 // running: false // onTriggered: { // diagCtrl.reqCheckSOCMCUFile() // } // } // Connections // { // target:diagCtrl // onNaviSoftUpdateCheckFileOK: // { // console.debug("##### onNaviSoftUpdateCheckFileOK") // settingCtrl.setNaviUpDataFileFlag(1) // } // onNaviSoftUpdateCheckFileNG: // { // console.debug("##### onNaviSoftUpdateCheckFileNG") // settingCtrl.setNaviUpDataFileFlag(0) // } // onSocmcuUpdateFileNG: // { // console.debug("##### onNaviSoftUpdateCheckFileNG settingCtrl.setNaviUpDataFileFlag() = "+settingCtrl.getNaviUpDataFileFlag()) // if(0 == settingCtrl.getNaviUpDataFileFlag()) // { // ScreenManager.showOverlay(WindowsList.SETTING_NOUSBFILE) // } // else // { // ScreenManager.showOverlay(WindowsList.SETTING_UPDATEPOPMESSAGE) // } // } // onSocmcuUpdateFileERROR: // { // console.debug("##### onSocmcuUpdateFileERROR settingCtrl.setNaviUpDataFileFlag() = "+settingCtrl.getNaviUpDataFileFlag()) // if(0 == settingCtrl.getNaviUpDataFileFlag()) // { // ScreenManager.showOverlay(WindowsList.SETTING_NOUSBFILE) // } // else // { // ScreenManager.showOverlay(WindowsList.SETTING_UPDATEPOPMESSAGE) // } // } // onSocmcuUpdateFileOK: // { // if(setting_about.visible==true) // { // console.debug("#### onSocmcuUpdateFileOK settingCtrl.setNaviUpDataFileFlag()= "+settingCtrl.getNaviUpDataFileFlag()) // ScreenManager.showOverlay(WindowsList.SETTING_UPDATEPOPMESSAGE) // if(1 == settingCtrl.getNaviUpDataFileFlag()) // { // settingCtrl.setSocUpDataFileFlag(1) // } // } // else // { // //do nothing // } // } // } // } } }