//ADD F0049 2106/10/26 BAOJINFENG begin 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:oneKeyUpdate_home widowsType:Layout.POP_TYPE formId: WindowsList.DIAG_ONEKEYUPDATE height:1280//FOD #142746 baojinfeng 2017/01/03 property string bgImageStyle: systemCtrl.style //del by yx start // property string sCANUpdateMDUCurrVersion:diagCtrl.sCANUpdateMDUCurrVersion // property string sCANUpdateMDUNewVersion:diagCtrl.sCANUpdateMDUNewVersion //del by yx end property string sCANUpdateSOCCurrVersion:diagCtrl.sCANUpdateSOCCurrVersion property string sCANUpdateSOCNewVersion:diagCtrl.sCANUpdateSOCNewVersion property string sCANUpdateMCUCurrVersion:diagCtrl.sCANUpdateMCUCurrVersion property string sCANUpdateMCUNewVersion:diagCtrl.sCANUpdateMCUNewVersion property string sCANUpdateTBOXCurrVersion:diagCtrl.sCANUpdateTBOXCurrVersion property string sCANUpdateTBOXNewVersion:diagCtrl.sCANUpdateTBOXNewVersion property string sCANUpdateNaviCurrVersion:naviCtrl.getNaviVersion()//diagCtrl.sUpdateCurrNAVIVersion property string sCANUpdateNAVISoftNewVersion:diagCtrl.sUpdateNewNAVISoftVersion//diagCtrl.sCANUpdateNAVISoftNewVersion property string sCANUpdateCurrdbVersion:naviCtrl.getDBVersion() property string sCANUpdatedbNewVersion:diagCtrl.sUpdateNewNAVIVersion property string sCANUpdateLogoNewVersion:diagCtrl.sCANUpdateLogoNewVersion //ADD #FOO94 baojinfeng 2016/11/23 begin property string sCANUpdateMinisystemCurrVersion:diagCtrl.sCANUpdateMinisystemCurrVersion property string sCANUpdateMinisystemNewVersion:diagCtrl.sCANUpdateMinisystemNewVersion //ADD #FOO94 baojinfeng 2016/11/23 end //ADD #F0119 baojinfeng 2016/12/02 begin property string sCANUpdateAnimationCurrVersion:diagCtrl.sCANUpdateAnimationCurrVersion property string sCANUpdateAnimationNewVersion:diagCtrl.sCANUpdateAnimationNewVersion //ADD #F0119 baojinfeng 2016/12/02 end //ADD #F0146 baojinfeng 2017/01/03 begin property string sCANUpdatePDCNewVersion:diagCtrl.sCANUpdatePDCNewVersion //ADD #F0146 baojinfeng 2017/01/03 end //ADD UserManual update baojinfeng 2017/05/15 begin property string sCANUpdateManualNewVersion:diagCtrl.sCANUpdateManualNewVersion //ADD UserManual update baojinfeng 2017/05/15 end property int iNaviPOICount:settingCtrl.iNaviPOICount//ADD 2017/5/19 baojinfeng for NaviMark end property int bBtStatus: diagCtrl.bBtStatus//add #127989 20170116 liuming end Component.onCompleted: { } onVisibleChanged: { if (oneKeyUpdate_home.visible == true) { //console.log("-----plc---> oneKeyUpdate_home.visible = "+oneKeyUpdate_home.visible) diagCtrl.reqCheckNAVISoftFile(false); diagCtrl.reqCheckDBFile(false); //diagCtrl.getDBCurrVersion(); naviCtrl.getDBVersion(); naviCtrl.getNaviVersion(); //diagCtrl.getNaviCurrVersion(); diagCtrl.checkCANUpdateTBOXStatus()//ADD F0049 2106/11/02 BAOJINFENG end updateIndexVisible();//ADD #F0120 baojinfeng 2016/12/05 pop_shengji_title_tx.visible = true //add by plc for #title } else { pop_shengji_title_tx.visible = false //add by plc for #title } } MouseArea { anchors.fill: parent } Rectangle { anchors.fill: parent color: "black" //opacity: 0.8 } Item { id:checkFileItem visible: false anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter Image { anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter width: 844 height: 352 source: "qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING" + bgImageStyle Rectangle { anchors.fill: parent color: "black" } HMILabel { id:checkFileLabel width: 840 height: 300 anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter text:qsTr("One Key Update Checking File!") color:"red" } } } //add by plc for #title HMILabel { id: pop_shengji_title_tx x: 0 y: 18 width: 960 height: 40//82 text: qsTr("Do not do any operation!") font.pixelSize: 30 color: "red" visible: false horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } //add by plc for #title Item { id:updateVersionInfoItem x:50 y:73//FOD #142746 baojinfeng 2017/01/03 visible: true //anchors.horizontalCenter: parent.horizontalCenter width: 842 height: 1200 Flickable { id:flick1 x: 0 y: 0 width: 842 height: 1200//798//760-124 anchors.topMargin: 0 anchors.fill: parent contentHeight: column1.height contentWidth: parent.width clip:true Column { id:column1 width: 842 spacing: 2 Image { id: tbox width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle HMILabel { id:tboxVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"TBOX Version" color:"white" } } Row { id: currtbox width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:currtboxLabel x:20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currtboxVersion width: 622//ADD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//ADD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"111" text:sCANUpdateTBOXCurrVersion color:"white" } } Row { id: newtbox width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:newtboxLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newtboxVersion width: 622//ADD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"222" text:sCANUpdateTBOXNewVersion color:"white" } } Row { id: tboxProcessBar x: 20 width: 800 height: 30 visible: true Rectangle { id:tboxprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.tboxUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.tboxUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //ADD UserManual update baojinfeng 2017/05/15 begin Image { id: manual width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(10) HMILabel { id:manualVersion x:20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"UserManual Version" color:"white" } } Row { id: newManual width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(10) Item { width: 20 height: 1 } HMILabel { id:newManualLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newManualVersion width: 822 height: 30 anchors.verticalCenter: parent.verticalCenter font.pixelSize: 24 text:sCANUpdateManualNewVersion color:"white" } } Row { id: manualProcessBarRow x: 20 width: 800 height: 30 visible: diagCtrl.getCANUpdateIndexStatus(10) Rectangle { id:manualprocessbar width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.manualUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.manualUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //ADD UserManual update baojinfeng 2017/05/15 end //ADD #F0146 baojinfeng 2017/01/03 begin Image { id: pdc width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle HMILabel { id:pdcVersion x:20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"PDC Version" color:"white" } } Row { id: newpdc width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:newpdcLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newpdcVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 text:sCANUpdatePDCNewVersion color:"white" } } Row { id: pdcProcessBarRow x: 20 width: 800 height: 30 visible: diagCtrl.getCANUpdateIndexStatus(9) Rectangle { id:pdcprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.pdcUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.pdcUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //ADD #F0146 baojinfeng 2017/01/03 end //ADD #F0120 baojinfeng 2016/12/05 begin Image { id: animation width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle HMILabel { id:animationVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Animation Version" color:"white" } } Row { id: currtAnimation width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:currtAnimationLabel x:20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currAnimationVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"111" text:sCANUpdateAnimationCurrVersion color:"white" } } Row { id: newAnimation width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:newAnimationLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newAnimationVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"222" text:sCANUpdateAnimationNewVersion color:"white" } } Row { id: animationProcessBar x: 20 width: 800 height: 30 visible: true Rectangle { id:animationprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.bootAnimationUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.bootAnimationUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //ADD #F0120 baojinfeng 2016/12/05 end //ADD #FOO94 baojinfeng 2016/11/23 begin Image { id: minisystem width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle HMILabel { id:minisystemVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Minisystem Version" color:"white" } } Row { id: currtminisystem width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:currtMinisystemLabel x:20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currMinisystemVersion width: 622//ADD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//ADD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"111" text:sCANUpdateMinisystemCurrVersion color:"white" } } Row { id: newtMinisystem width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:newtMinisystemLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newtMinisystemVersion width: 622//ADD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"222" text:sCANUpdateMinisystemNewVersion color:"white" } } Row { id: minisystemProcessBar x: 20 width: 800 height: 30 visible: true Rectangle { id:minisystemprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.minisystemUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.minisystemUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //ADD #FOO94 baojinfeng 2016/11/23 end Image { id: naviSoft width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle HMILabel { id:naviSoftVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Navi Version" color:"white" } } Row { id: currnaviSoft width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:currnaviSoftLabel x:20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currnaviSoftVersion width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"111" text:sCANUpdateNaviCurrVersion color:"white" } } Row { id: newnaviSoft width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:newnaviSoftLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newnaviSoftVersion width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"222" text:sCANUpdateNAVISoftNewVersion color:"white" } } Row { id: naviSoftProcessBar x: 20 width: 800 height: 30 visible: true Rectangle { id:naviSoftprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.naviUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.naviUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } Image { id: navi width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle HMILabel { id:naviVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"DB Version" color:"white" } } Row { id: currnavi width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:currnaviLabel x:20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currnaviVersion width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"111" text:sCANUpdateCurrdbVersion//sCANUpdateCurrMAPVersion color:"white" } } Row { id: newnavi width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:newnaviLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newnaviVersion width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"222" text:sCANUpdatedbNewVersion//sCANUpdateNaviNewVersion color:"white" } } Row { id: naviProcessBar x: 20 width: 800 height: 30 visible: true Rectangle { id:naviprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.dbUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.dbUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } Image { id: logo width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle HMILabel { id:logoVersion x:20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"LOGO Version" color:"white" } } Row { id: newlogo width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:newlogoLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newlogoVersion width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"222" text:sCANUpdateLogoNewVersion color:"white" } } Row { id: logoProcessBarRow x: 20 width: 800 height: 30 visible: true Rectangle { id:logoprocessbar //anchors.horizontalCenter: parent.horizontalCenter width: 500 height: 30 visible: true Rectangle { anchors.bottom: parent.bottom anchors.left: parent.left width:diagCtrl.diagImageUpdateProgress*5 height: 30 color: "green" } HMILabel { anchors.centerIn: parent width:500 height: 30 text:diagCtrl.diagImageUpdateProgress + "%" color: "black" font.pixelSize: 20 } } } //del by yx start // Image // { // id: mdu // width: 842 // height: 78 // source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle // HMILabel // { // id:mduVersion // x:20 // width: 822 // height: 78 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"MDU Version" // color:"white" // } // } // Row // { // id: currmdu // width: 842 // height: 45 // Item // { // width: 20 // height: 1 // } // HMILabel // { // id:currmduLabel // x:20 // width: 200 // height: 30 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"Current:" // color:"white" // } // HMILabel // { // id:currmduVersion // width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END // height: 30 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END // font.pixelSize: 24 // //text:"111" // text:sCANUpdateMDUCurrVersion // color:"white" // } // } // Row // { // id: newmdu // width: 842 // height: 45 // Item // { // width: 20 // height: 1 // } // HMILabel // { // id:newmduLabel // x: 20 // width: 200 // height: 30 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignLeft // font.pixelSize: 24 // text:"New:" // color:"white" // } // HMILabel // { // id:newmduVersion // width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END // height: 30 // anchors.verticalCenter: parent.verticalCenter // horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END // font.pixelSize: 24 // //text:"222" // text:sCANUpdateMDUNewVersion // color:"white" // } // } // Row // { // id: mduProcessBar // x: 20 // width: 800 // height: 30 // visible: true // Rectangle // { // id:mduprocessbar // //anchors.horizontalCenter: parent.horizontalCenter // width: 500 // height: 30 // visible: true // Rectangle // { // anchors.bottom: parent.bottom // anchors.left: parent.left // width:diagCtrl.mduUpdateProgress*5 // height: 30 // color: "green" // } // HMILabel // { // anchors.centerIn: parent // width:500 // height: 30 // text:diagCtrl.mduUpdateProgress + "%" // color: "black" // font.pixelSize: 20 // } // } // } //del by yx end Image { id: soc width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle HMILabel { id:socVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"SOC Version" color:"white" } } Row { id: currsoc width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:currsocLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currsocVersion width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"333" text:sCANUpdateSOCCurrVersion color:"white" } } Row { id: newsoc width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:newsocLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newsocVersion width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"444" text:sCANUpdateSOCNewVersion color:"white" } } Image { id: mcu width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle HMILabel { id:mcuVersion x: 20 width: 822 height: 78 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"MCU Version" color:"white" } } Row { id: currmcu width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:currmcuLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"Current:" color:"white" } HMILabel { id:currmcuVersion width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"555" text:sCANUpdateMCUCurrVersion color:"white" } } Row { id: newmcu width: 842 height: 45 Item { width: 20 height: 1 } HMILabel { id:newmcuLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newmcuVersion width: 622//FOD 125806 125807 2106/11/09 BAOJINFENG END height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight//FOD 125806 125807 2106/11/09 BAOJINFENG END font.pixelSize: 24 //text:"666" text:sCANUpdateMCUNewVersion color:"white" } } } } } //del #127989 20170116 liuming begin // function btPowerOff() // { // if(bBtStatus == 1) // { // console.log("onClicked MDU bBtStatus == true") // btCtrl.setBtPowerOff() // } // else // { // //do nothing // } // } //del #127989 20170116 liuming end //add #127989 20170116 liuming begin function btStatus() { console.log("btStatus() ------------------bBtStatus="+bBtStatus) if(bBtStatus == 1) { //btCtrl.setBtPowerOn() //del #127989 20170120 baojinfeng end btCtrl.setBtPowerOnForSleep()//add #127989 20170120 baojinfeng end } else { //do nothing } } //add #127989 20170116 liuming end Timer { id:fileCheckFailedTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATE) } } //del by yx start // Timer // { // id:mduTimer // interval: 2000 // running: false // repeat: false // onTriggered: // { // ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATE) // //diagCtrl.checkCANUpdateMCUSOCStatus() // } // } //del by yx end Timer { id:tboxTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATE) //diagCtrl.checkCANUpdateNaviSoftStatus(); diagCtrl.reqDbReboot()//ADD #F0179 baojinfeng 2017/1/16 END } } Timer { id:naviTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATE) //diagCtrl.checkCANUpdateDBStatus() diagCtrl.reqDbReboot()//ADD #F0179 baojinfeng 2017/1/16 END } } Timer { id:dbTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATE) diagCtrl.reqDbReboot() //diagCtrl.checkCANUpdateLogoStatus() } } Timer { id:logoTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATE) //diagCtrl.checkCANUpdateMDUStatus() diagCtrl.reqDbReboot()//ADD #F0179 baojinfeng 2017/1/16 END } } //ADD #FOO94 baojinfeng 2016/11/23 begin Timer { id:minisystemTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATE) } } //ADD #FOO94 baojinfeng 2016/11/23 begin //ADD #F0120 baojinfeng 2016/12/05 begin Timer { id:animationTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATE) } } //ADD #F0120 baojinfeng 2016/12/05 end //ADD #F0146 baojinfeng 2017/01/03 begin Timer { id:pdcTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATE) } } //ADD #F0146 baojinfeng 2017/01/03 end //ADD UserManual update baojinfeng 2017/05/15 begin Timer { id:manualTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_CANUPDATECHECKFILE) } } //ADD UserManual update baojinfeng 2017/05/15 end function updateIndexVisible() { tbox.visible = diagCtrl.getCANUpdateIndexStatus(0); currtbox.visible = diagCtrl.getCANUpdateIndexStatus(0); newtbox.visible = diagCtrl.getCANUpdateIndexStatus(0); tboxProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(0); animation.visible = diagCtrl.getCANUpdateIndexStatus(1); currtAnimation.visible = diagCtrl.getCANUpdateIndexStatus(1); newAnimation.visible = diagCtrl.getCANUpdateIndexStatus(1); animationProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(1); minisystem.visible = diagCtrl.getCANUpdateIndexStatus(2); currtminisystem.visible = diagCtrl.getCANUpdateIndexStatus(2); newtMinisystem.visible = diagCtrl.getCANUpdateIndexStatus(2); minisystemProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(2); navi.visible = diagCtrl.getCANUpdateIndexStatus(3); currnavi.visible = diagCtrl.getCANUpdateIndexStatus(3); newnavi.visible = diagCtrl.getCANUpdateIndexStatus(3); naviProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(3); naviSoft.visible = diagCtrl.getCANUpdateIndexStatus(4); currnaviSoft.visible = diagCtrl.getCANUpdateIndexStatus(4); newnaviSoft.visible = diagCtrl.getCANUpdateIndexStatus(4); naviSoftProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(4); logo.visible = diagCtrl.getCANUpdateIndexStatus(5); newlogo.visible = diagCtrl.getCANUpdateIndexStatus(5); logoProcessBarRow.visible = diagCtrl.getCANUpdateIndexStatus(5); //del by yx start // mdu.visible = diagCtrl.getCANUpdateIndexStatus(6); // currmdu.visible = diagCtrl.getCANUpdateIndexStatus(6); // newmdu.visible = diagCtrl.getCANUpdateIndexStatus(6); // mduProcessBar.visible = diagCtrl.getCANUpdateIndexStatus(6); //del by yx end soc.visible = diagCtrl.getCANUpdateIndexStatus(7); currsoc.visible = diagCtrl.getCANUpdateIndexStatus(7); newsoc.visible = diagCtrl.getCANUpdateIndexStatus(7); mcu.visible = diagCtrl.getCANUpdateIndexStatus(8); currmcu.visible = diagCtrl.getCANUpdateIndexStatus(8); newmcu.visible = diagCtrl.getCANUpdateIndexStatus(8); //ADD #F0146 baojinfeng 2017/01/03 begin pdc.visible = diagCtrl.getCANUpdateIndexStatus(9); newpdc.visible = diagCtrl.getCANUpdateIndexStatus(9); pdcProcessBarRow.visible = diagCtrl.getCANUpdateIndexStatus(9); //ADD #F0146 baojinfeng 2017/01/03 end //ADD UserManual update baojinfeng 2017/05/15 begin manual.visible = diagCtrl.getCANUpdateIndexStatus(10); newManual.visible = diagCtrl.getCANUpdateIndexStatus(10); manualProcessBarRow.visible = diagCtrl.getCANUpdateIndexStatus(10); //ADD UserManual update baojinfeng 2017/05/15 end } Connections { target:diagCtrl /* New Update Target Start */ // onCanUpdateFileCheckFailed: // { // //add #127989 20170116 liuming begin // checkTimer.stop() // btStatus(); // //add #127989 20170116 liuming end // checkFileLabel.text = "File Checked Failed" // fileCheckFailedTimer.start() // } onCanUpdateFileCheckSuccess: { checkFileItem.visible = false updateVersionInfoItem.visible = true //diagCtrl.checkCANUpdateTBOXStatus() } onMduCANUpdateStart: { diagCtrl.reqStartUpdateSOCMCU()//reqStartUpdateMDU() mod by yx } //del by yx start // onMduUpdateStartOK: // { // mduProcessBar.visible = true // } // onMduUpdateStartNG: // { // systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 // btStatus();//add #127989 20170116 liuming end // checkFileItem.visible = true // updateVersionInfoItem.visible = false // checkFileLabel.text = "MDU Start One Key Update NG" // mduTimer.start() // } //del by yx end onMcu_socCANUpdateStart: { settingCtrl.setSocMcuUpdateFlag(1)//ADD #168534 #168208 2017/4/26 baojinfeng begin diagCtrl.reqStartUpdateSOCMCU() } onCanUpdateFinish: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true checkFileLabel.text = "One Key Update Success!" updateVersionInfoItem.visible = false // mduTimer.start()//del by yx } //del by yx start // onMduUpdateSuccess: // { // diagCtrl.checkCANUpdateMCUSOCStatus() // } //del by yx end onTboxCANUpdateStart: { diagCtrl.reqStartUpdateTBox() } onTboxUpdateStartOK: { tboxProcessBar.visible = true } onTboxUpdateStartNG: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "TBOX Start One Key Update NG" tboxTimer.start() } onTboxUpdateSuccess: { //FOD F0094 2106/11/21 BAOJINFENG begin //diagCtrl.checkCANUpdateNaviSoftStatus() //diagCtrl.checkCANUpdateMinisystemStatus()//DEL F0120 2106/12/05 BAOJINFENG //FOD F0094 2106/11/21 BAOJINFENG end //diagCtrl.checkCANUpdatePDCStatus() //DEL UserManual update baojinfeng 2017/05/15 begin diagCtrl.checkCANUpdateManualStatus() //ADD UserManual update baojinfeng 2017/05/15 begin } //ADD #F0050 2016/10/19 BAOJINFENG BEGIN onTboxUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "T-BOX One Key Update Failed for Package Decompression Error!"//FOD #142743 baojinfeng 2017/01/06 tboxTimer.start() } onTboxFileRoteFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX One Key Update Failed for File Rote Error!")//FOD #142743 baojinfeng 2017/01/06 tboxTimer.start() } onTboxFileChekcFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX One Key Update Failed for File Chekc Error!")//FOD #142743 baojinfeng 2017/01/06 tboxTimer.start() } onTboxFileNameErrorFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX One Key Update Failed for File Name Error!")//FOD #142743 baojinfeng 2017/01/06 tboxTimer.start() } onTboxMCUFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX One Key Update Failed for MCU Update Failed!")//FOD #142743 baojinfeng 2017/01/06 tboxTimer.start() } onTboxSOCFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX One Key Update Failed for SOC Update Failed!")//FOD #142743 baojinfeng 2017/01/06 tboxTimer.start() } onTboxFileDownloadFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX One Key Update Failed for UpdateFile Download Failed!")//FOD #142743 baojinfeng 2017/01/06 tboxTimer.start() } onTboxUpdateOtherFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = qsTr("T-BOX One Key Update Failed!")//FOD #142743 baojinfeng 2017/01/06 tboxTimer.start() } //ADD #F0050 2016/10/19 BAOJINFENG END onLogoCANUpdateStart: { //diagCtrl.reqStartUpdateDiagImage() diagCtrl.reqStartCANUpdateLogo() } onDiagImageUpdateStartOK: { logoprocessbar.visible = true } onDiagImageUpdateStartNG: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "Logo Start One Key Update NG" logoTimer.start() } onDiagImageUpdateSuccess: { diagCtrl.checkCANUpdateMCUSOCStatus()//checkCANUpdateMDUStatus() mod by yx } onDiagImageUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "Logo One Key Update Failed" logoTimer.start() } onNaviUpdateSuccess: { diagCtrl.checkCANUpdateDBStatus() } onNaviSoftCANUpdateStart: { diagCtrl.reqStartUpdateNAVISoft() } onNaviUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "Navi One Key Update Failed" naviTimer.start(); } onDbUpdateSuccess: { diagCtrl.checkCANUpdateLogoStatus() } onDbCANUpdateStart: { diagCtrl.reqStartUpdateDB() } onDbUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "Navi One Key Update Failed" dbTimer.start() } //ADD F0094 2106/11/21 BAOJINFENG begin onMinisystemUpdateSuccess: { diagCtrl.checkCANUpdateNaviSoftStatus() } onMinisystemCANUpdateStart: { diagCtrl.reqStartUpdateMinisystem() } onMinisystemUpdateFailed: { //checkFileItem.visible = true //updateVersionInfoItem.visible = false //checkFileLabel.text = "Minisystem One Key Update Failed" //minisystemTimer.start() diagCtrl.reqStartUpdateMinisystem() } //ADD F0094 2106/11/21 BAOJINFENG end //ADD F0120 2106/12/05 BAOJINFENG begin onAnimationUpdateSuccess: { diagCtrl.checkCANUpdateMinisystemStatus() } onAnimationCANUpdateStart: { diagCtrl.reqStartUpdateBootAnimation() } onAnimationUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "Animation One Key Update Failed" animationTimer.start() } //ADD F0120 2106/12/05 BAOJINFENG end //ADD #F0146 baojinfeng 2017/01/03 begin onPdcUpdateSuccess: { diagCtrl.checkCANUpdateAnimationStatus() } onPdcCANUpdateStart: { diagCtrl.reqStartUpdatePDC() } onPdcUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF)//add by zhangna for bug #168982 btStatus();//add #127989 20170116 liuming end checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "PDC CAN Update Failed" pdcTimer.start() } //ADD #F0146 baojinfeng 2017/01/03 end //ADD UserManual update baojinfeng 2017/05/15 begin onManualUpdateSuccess: { diagCtrl.checkCANUpdatePDCStatus() } onManualCANUpdateStart: { btStatus(); diagCtrl.reqStartUpdateManual() } onManualUpdateFailed: { systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_OFF) btStatus(); checkFileItem.visible = true updateVersionInfoItem.visible = false checkFileLabel.text = "UserManual CAN Update Failed" manualTimer.start() } //ADD UserManual update baojinfeng 2017/05/15 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 (oneKeyUpdate_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**oneKeyUpdate_home**") console.log("\n@AndroidAuto**ZLX**onVideoFocusChanged**oneKeyUpdate_home.visible="+oneKeyUpdate_home.visible) if (oneKeyUpdate_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**oneKeyUpdate_home**") ScreenManager.showOverlay(WindowsList.AC_ITEM) diagCtrl.bDevelopMode = false } }*/ //add by zhanglixin androidauto display kong tiao bu xian shi wen ti end } //ADD F0049 2106/10/26 BAOJINFENG END