//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:oneKeyMessageWindow x:0 y:0//70 width:960 height:1280//FOD #142746 baojinfeng 2017/01/03 //color:"black" //opacity: 0.8 widowsType: Layout.POP_TYPE formId: WindowsList.DIAG_ONEKEYUPDATEMESSAGE mask_height:1280//ADD 2016/11/3 baojinfeng 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 #F0120 baojinfeng 2016/12/05 begin property string sCANUpdateAnimationCurrVersion:diagCtrl.sCANUpdateAnimationCurrVersion property string sCANUpdateAnimationNewVersion:diagCtrl.sCANUpdateAnimationNewVersion //ADD #F0120 baojinfeng 2016/12/05 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 bBtStatus: diagCtrl.bBtStatus//add #127989 20170116 liuming end property int timenum: 5 property int flagfortime: 1 onVisibleChanged: { if(oneKeyMessageWindow.visible == true) { flagfortime = MessageTransfer.diag_get_auto_update_timeflag() console.log("oneKeyMessageWindow.visible ###### flagfortime ="+flagfortime) //checkTimer.start();//del #127989 20170116 baojinfeng end //add by plc start diagCtrl.reqCheckDBFile(false); diagCtrl.reqCheckNAVISoftFile(false); pop_shengji_title_tx1.visible = true //add by plc for #title //add by plc end } else { countTimer.stop() pop_shengji_title_tx1.visible = false //add by plc for #title } } Rectangle { anchors.fill: parent color: "black" } //add by plc for #title HMILabel { id: pop_shengji_title_tx1 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:pop_check x:0 y:0 visible: true Image { id: pop_check_itemBackground x:58 y:419 width:844 height:352 source:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BG_WARNING"+bgImageStyle visible: true } HMILabel { id: pop_check_warning_tx x: 120 y: 480 width:720 height: 35 color: "red" text: qsTr("Warning")+ systemCtrl.emptyString font.pixelSize: 30 horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter visible: true } HMILabel { id: pop_check_tx x: 120 y: 532 width: 720 height: 40//82 text: "One Key Update Checking File!" font.pixelSize: 30 color: "#e1e1e1" horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } } Item { id:updateVersionInfoItem x:50 y:100 visible: false width: 842 height: 1000 Flickable { id:flick1 x: 0 y: 0 width: 842 height: 1000//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 visible: diagCtrl.getCANUpdateIndexStatus(0)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(0)//ADD #F0120 baojinfeng 2016/12/05 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//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:sCANUpdateTBOXCurrVersion color:"white" } } Row { id: newtbox width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(0)//ADD #F0120 baojinfeng 2016/12/05 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//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:sCANUpdateTBOXNewVersion color:"white" } } //ADD UserManual update baojinfeng 2017/05/15 begin Image { id: manual width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle 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 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: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 text:sCANUpdateManualNewVersion color:"white" } } //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" } } //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 visible: diagCtrl.getCANUpdateIndexStatus(1)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(1)//ADD #F0120 baojinfeng 2016/12/05 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:sCANUpdateAnimationCurrVersion color:"white" } } Row { id: newtAnimation width: 842 height: 45 visible: diagCtrl.getCANUpdateIndexStatus(1)//ADD #F0120 baojinfeng 2016/12/05 Item { width: 20 height: 1 } HMILabel { id:newtAnimationLabel x: 20 width: 200 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft font.pixelSize: 24 text:"New:" color:"white" } HMILabel { id:newtAnimationVersion width: 622 height: 30 anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignRight font.pixelSize: 24 //text:"222" text:sCANUpdateAnimationNewVersion color:"white" } } //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 visible: diagCtrl.getCANUpdateIndexStatus(2)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(2)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(2)//ADD #F0120 baojinfeng 2016/12/05 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" } } //ADD #FOO94 baojinfeng 2016/11/23 end Image { id: naviSoft width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(3)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(3)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(3)//ADD #F0120 baojinfeng 2016/12/05 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" } } Image { id: navi width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(4)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(4)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(4)//ADD #F0120 baojinfeng 2016/12/05 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" } } Image { id: logo width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(5)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(5)//ADD #F0120 baojinfeng 2016/12/05 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" } } //del by yx start // Image // { // id: mdu // width: 842 // height: 78 // source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle // visible: diagCtrl.getCANUpdateIndexStatus(6)//ADD #F0120 baojinfeng 2016/12/05 // 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 // visible: diagCtrl.getCANUpdateIndexStatus(6)//ADD #F0120 baojinfeng 2016/12/05 // 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 // visible: diagCtrl.getCANUpdateIndexStatus(6)//ADD #F0120 baojinfeng 2016/12/05 // 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" // } // } //del by yx end Image { id: soc width: 842 height: 78 source: "qrc:MATERIAL/MATERIAL_M8X_LIST_78" + bgImageStyle visible: diagCtrl.getCANUpdateIndexStatus(7)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(7)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(7)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(8)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(8)//ADD #F0120 baojinfeng 2016/12/05 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 visible: diagCtrl.getCANUpdateIndexStatus(8)//ADD #F0120 baojinfeng 2016/12/05 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" } } } } } Timer { id:countTimer interval: 1000 running: false repeat: true onTriggered: { console.log("countTimer is running timenum = "+timenum) if(timenum >= 1) { timenum = timenum - 1 } else { timenum = 0 countTimer.stop() systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_ON) //add by zhangna for qc bug #168982 ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATEMESSAGE) ScreenManager.showOverlay(WindowsList.DIAG_ONEKEYUPDATE) } } } Item { id:pop_shengji x:0 y:0 visible: false HMILabel { id: pop_shengji_title_tx x: 0 y: 30//FOD #142746 baojinfeng 2017/01/03 width: 960 height: 40//82 text: "Do you want to Update follow Files?"//add by plc for #339763 font.pixelSize: 30 color: "red" horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } HMIButton //the button of Cancel { id:btn_ng x:549 y:1132//FOD #142746 baojinfeng 2017/01/03 width: 186 height: 78 btnImg:pressed?"qrc:MATERIAL/MATERIAL_M8X_POPUP_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BUTTON"+bgImageStyle labelText: qsTr("Cancel")+ systemCtrl.emptyString labelColor:"#e1e1e1" labelPixelSize:30 onClicked: { countTimer.stop() diagCtrl.oneKeyUpdateFileChecking = false //ADD 2019/05/17 by wyc FOR 334407 btStatus();//add #127989 20170116 liuming end btn_ng.btnImg="qrc:MATERIAL/MATERIAL_M8X_POPUP_BUTTON"+bgImageStyle ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATEMESSAGE) } } HMIButton //the button of OK { id:btn_ok x:225 y:1132//FOD #142746 baojinfeng 2017/01/03 width: 186 height: 78 btnImg:pressed?"qrc:MATERIAL/MATERIAL_M8X_POPUP_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_POPUP_BUTTON"+bgImageStyle labelText: (flagfortime == 1)?(qsTr("Yes") + systemCtrl.emptyString):(qsTr("Yes("+timenum+"S)") + systemCtrl.emptyString) labelColor:"#e1e1e1" labelPixelSize:30 onClicked: { countTimer.stop() diagCtrl.oneKeyUpdateFileChecking = false //ADD 2019/05/17 by wyc FOR 334407 systemCtrl.setStateMaskHardkey(Layout.HK_MASK_STATE_UPDATE,Layout.HK_MASK_ON) //add by zhangna for qc bug #168982 //diagCtrl.oneKeyUpdateCheck(); ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATEMESSAGE) ScreenManager.showOverlay(WindowsList.DIAG_ONEKEYUPDATE) //diagCtrl.checkCANUpdateTBOXStatus() } } } //del #127989 baojinfeng 2017/01/17 begin // Timer // { // id:checkTimer // interval: 0//500 // running: false // repeat: false // onTriggered: // { // btPowerOff(); // } // } //del #127989 baojinfeng 2017/01/17 end Timer { id:fileCheckFailedTimer interval: 2000 running: false repeat: false onTriggered: { ScreenManager.hideOverlay(WindowsList.DIAG_ONEKEYUPDATEMESSAGE) } } function updateIndexVisible() { tbox.visible = diagCtrl.getCANUpdateIndexStatus(0); currtbox.visible = diagCtrl.getCANUpdateIndexStatus(0); newtbox.visible = diagCtrl.getCANUpdateIndexStatus(0); animation.visible = diagCtrl.getCANUpdateIndexStatus(1); currtAnimation.visible = diagCtrl.getCANUpdateIndexStatus(1); newtAnimation.visible = diagCtrl.getCANUpdateIndexStatus(1); minisystem.visible = diagCtrl.getCANUpdateIndexStatus(2); currtminisystem.visible = diagCtrl.getCANUpdateIndexStatus(2); newtMinisystem.visible = diagCtrl.getCANUpdateIndexStatus(2); navi.visible = diagCtrl.getCANUpdateIndexStatus(3); currnavi.visible = diagCtrl.getCANUpdateIndexStatus(3); newnavi.visible = diagCtrl.getCANUpdateIndexStatus(3); naviSoft.visible = diagCtrl.getCANUpdateIndexStatus(4); currnaviSoft.visible = diagCtrl.getCANUpdateIndexStatus(4); newnaviSoft.visible = diagCtrl.getCANUpdateIndexStatus(4); logo.visible = diagCtrl.getCANUpdateIndexStatus(5); newlogo.visible = diagCtrl.getCANUpdateIndexStatus(5); //del by yx start // mdu.visible = diagCtrl.getCANUpdateIndexStatus(6); // currmdu.visible = diagCtrl.getCANUpdateIndexStatus(6); // newmdu.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); //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); //ADD UserManual update baojinfeng 2017/05/15 end } //add #127989 20170116 baojinfeng begin // function btPowerOff() // { // if(bBtStatus == 1) // { // console.log("onClicked MDU bBtStatus == true") // //btCtrl.setBtPowerOff() // //btCtrl.setBtPowerOffForSleep() // } // else // { // //do nothing // } // } //add #127989 20170116 baojinfeng end //add #127989 20170116 baojinfeng 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 baojinfeng end Connections { target:diagCtrl /* New Update Target Start */ onCanUpdateFileCheckFailed: { //add #127989 20170116 liuming begin //checkTimer.stop()//del #127989 20170120 baojinfeng end btStatus(); //add #127989 20170116 liuming end pop_check_tx.text = "File Checked Failed" fileCheckFailedTimer.start() } // add by zhangna for H/L configuration file error onCanUpdateFileCheckError: { //add #127989 20170116 liuming begin //checkTimer.stop()//del #127989 20170120 baojinfeng end btStatus(); //add #127989 20170116 liuming end pop_check_tx.text = "Soc File H/L Configuration Error" fileCheckFailedTimer.start() } onCanUpdateFileCheckSuccess: { pop_shengji.visible = true pop_shengji_title_tx1.visible = false //add by plc for #339763 if(flagfortime == 0) { countTimer.start() } pop_check.visible = false updateVersionInfoItem.visible = true updateIndexVisible();//ADD #F0120 baojinfeng 2016/12/05 } onAutoUpdateFileCheckOK: { pop_shengji.visible = true pop_shengji_title_tx1.visible = false //add by plc for #339763 pop_check.visible = false updateVersionInfoItem.visible = true updateIndexVisible();//ADD #F0120 baojinfeng 2016/12/05 } } } //ADD F0049 2106/10/26 BAOJINFENG END