import QtQuick 2.0 import "../../com/neusoft/auto/widgets" import "../../layoutList.js" as Layout import "../../windowsList.js" as WindowsList import "../DiagDefine.js" as DiagDefine import "../../Setting/Settinglist.js" as Settinglist import "../../Assistance/Assistancelist.js" as Assistancelist import "../" import "../../eventsList.js" as EventsList DiagDevelopWindow { id: diag_Setting_DriverAssistance property string bgImageStyle: systemCtrl.style Component.onCompleted: { } onVisibleChanged: { if (diag_Setting_DriverAssistance.visible == true) { if (systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_FCW_EBA) == 0) { eba.visible = false fcw.visible = false } else if(systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_FCW_EBA) == 1) { eba.visible = true fcw.visible = true } if ((systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_PDC_BSD) == 2)||(systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_PDC_BSD) == 3)) { bsd.visible = true } else { bsd.visible = false } } else { } } property int iBSD: settingCtrl.iBsd property int iEBA: settingCtrl.iEba property int iFCW: settingCtrl.iFCW Item { id:diag_Setting_DriverAssistance_title x:0 y:0 width: 960 height: 78 HMILabel { width: 700//120 height: 78 text:qsTr("Diag-Setting-Driver assistance") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter } } HMIButton { id:back_btn x:0 y:165 - diag_Setting_DriverAssistance.y width: 138 height: 70 btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON_P" + bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_BACK_BUTTON" + bgImageStyle Image { id:back_btn_image x:20 anchors.verticalCenter: parent.verticalCenter width: 20 height:34 source: "qrc:MATERIAL/MATERIAL_M8X_ICON_BACK" + bgImageStyle } HMILabel { id:back_btn_label x:44 width: 94//60 height: 70 text: qsTr("Back") + systemCtrl.emptyString font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } onClicked: { //diagCtrl.bInstallMode = false ScreenManager.changeForm(Layout.ACT_BACK, WindowsList.DIAG_SETTING_DISPLAY) } } Column { id:full_screen_bk anchors.horizontalCenter: parent.horizontalCenter y: 265 - diag_Setting_DriverAssistance.y width: 842 height: 760//636//760-124 anchors.topMargin: 0 spacing: 2 Row { id: bsd width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: bsd_text width:480//24*20 height: 78 text:qsTr("BSD")+ systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - bsd_text.width - bsd_state.width - 36 height: 1 } HMILabel { id:bsd_state width:full_screen_bk.width - 18 height: 78 text:Assistancelist.BSD_OFF == iBSD ? "OFF" : "ON" font.pixelSize: 24 color:"#e1e1e1" //anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } Row { id: eba width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: eba_text width:480//24*20 height: 78 text:qsTr("EBA") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - eba_text.width - eba_state.width - 36 height: 1 } HMILabel { id:eba_state width:full_screen_bk.width - 18 height: 78 text:Assistancelist.EBA_OFF == iEBA?"OFF":"ON" font.pixelSize: 24 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } Row { id: fcw width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: fcw_text width:480//24*20 height: 78 text:qsTr("FCW") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 24 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - fcw_text.width - fcw_state.width - 36 height: 1 } HMILabel { id:fcw_state width:full_screen_bk.width - 18 height: 78 text: (iFCW ==Assistancelist.FCW_OFF)?"OFF":(iFCW ==Assistancelist.FCW_LOW?"Low":(iFCW ==Assistancelist.FCW_MEDIUM?"Medium":"High")) font.pixelSize: 24 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } } }