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 "../" import "../../eventsList.js" as EventsList DiagDevelopWindow { id: diag_setting_display property string bgImageStyle: systemCtrl.style Component.onCompleted: { } onVisibleChanged: { if (diag_setting_display.visible == true) { //FOD #126243 2016/11/10 liuming begin if (systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_HUD_DISPLAY) == 0) { hudBrightness_row.visible = false //position_row.visible = false //hudangle_row.visible = false } else if(systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_HUD_DISPLAY) == 1) { hudBrightness_row.visible = true //position_row.visible = true //hudangle_row.visible = true } switch(iMHUBrightness) { case 0: { mhu_Value.text = "-4" break; } case 1: { mhu_Value.text = "-3" break; } case 2: { mhu_Value.text = "-2" break; } case 3: { mhu_Value.text = "-1" break; } case 4: { mhu_Value.text = "0" break; } case 5: { mhu_Value.text = "1" break; } case 6: { mhu_Value.text = "2" break; } case 7: { mhu_Value.text = "3" break; } case 8: { mhu_Value.text = "4" break; } default: { break; } } switch((iIPCBrightness-3)) { case 0: { ipc_Value.text = "-4" break; } case 1: { ipc_Value.text = "-3" break; } case 2: { ipc_Value.text = "-2" break; } case 3: { ipc_Value.text = "-1" break; } case 4: { ipc_Value.text = "0" break; } case 5: { ipc_Value.text = "1" break; } case 6: { ipc_Value.text = "2" break; } case 7: { ipc_Value.text = "3" break; } case 8: { ipc_Value.text = "4" break; } default: { break; } } switch(iHUDBrightness-3) { case 0: { hudBrightness_Value.text = "-4" break; } case 1: { hudBrightness_Value.text = "-3" break; } case 2: { hudBrightness_Value.text = "-2" break; } case 3: { hudBrightness_Value.text = "-1" break; } case 4: { hudBrightness_Value.text = "0" break; } case 5: { hudBrightness_Value.text = "1" break; } case 6: { hudBrightness_Value.text = "2" break; } case 7: { hudBrightness_Value.text = "3" break; } case 8: { hudBrightness_Value.text = "4" break; } default: { break; } } //FOD #126243 2016/11/10 liuming end } else { } } property int iBackground: settingCtrl.iBackground property int iBrightness: settingCtrl.iBrightness property int iHUDBrightness: settingCtrl.iHUDBrightness property int iIPCBrightness: settingCtrl.iIPCBrightness property int iMHUBrightness: settingCtrl.iMHUBrightness property int iHUDangle: settingCtrl.iHUDangle Item { id:diag_setting_display_title x:0 y:0 width: 960 height: 78 HMILabel { width: 480//120 height: 78 text:qsTr("Diag-Setting-Display") + 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_display.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_display.y width: 842 anchors.topMargin: 0 spacing: 2 Row { id: brightness_row width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: brightness_lable width:480//24*20 height: 78 text:qsTr("Vehicle" )+ systemCtrl.emptyString color:"#e1e1e1" //FOD #126243 2016/11/10 liuming begin //font.pixelSize: 24 font.pixelSize: 30 //FOD #126243 2016/11/10 liuming end verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - brightness_lable.width - brightness_Value.width - 36 height: 1 } HMILabel { id:brightness_Value width:full_screen_bk.width-18 height: 78 text: iBrightness //FOD #126243 2016/11/10 liuming begin //font.pixelSize: 24 font.pixelSize: 30 //FOD #126243 2016/11/10 liuming end color:"#e1e1e1" //anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } Row { id: mhu_row width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: mhu_label width:480//24*20 height: 78 text:qsTr("Media system") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - mhu_label.width - mhu_Value.width - 36 height: 1 } HMILabel { id:mhu_Value width:full_screen_bk.width - 18 height: 78 //FOD #126243 2016/11/10 liuming begin //text:iMHUBrightness text: "" //FOD #126243 2016/11/10 liuming end font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } Row { id: ipc_row width: full_screen_bk.width height: 78 visible: true Item //for Occupying { width: 18 height: 1 } HMILabel { id: ipc_label width:480//24*20 height: 78 text:qsTr("IPC") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - ipc_label.width - ipc_Value.width - 36 height: 1 } HMILabel { id:ipc_Value width:full_screen_bk.width - 18 height: 78 text: ""//iIPCBrightness font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } Row { id: hudBrightness_row width: full_screen_bk.width height: 78 visible: true Item //for Occupying { width: 18 height: 1 } HMILabel { id: hudBrightness_label width:480//24*20 height: 78 text:qsTr("HUD") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - hudBrightness_label.width - hudBrightness_Value.width - 36 height: 1 } HMILabel { id:hudBrightness_Value width:full_screen_bk.width - 18 height: 78 text: ""//iMHUBrightness font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } //DEL #126243 2016/11/10 liuming begin // Row // { // id: hudangle_row // width: full_screen_bk.width // height: 78 // visible: true // Item //for Occupying // { // width: 18 // height: 1 // } // HMILabel // { // id: hudangle_label // width:480//24*20 // height: 78 // text:qsTr("HUD angle") + systemCtrl.emptyString // color:"#e1e1e1" // font.pixelSize: 30 // verticalAlignment: Text.AlignVCenter // horizontalAlignment: Text.AlignLeft // } // Item //for Occupying // { // width: 842 - hudangle_label.width - hudangle_value.width - 36 // height: 1 // } // HMILabel // { // id:hudangle_value // width:full_screen_bk.width - 18 // height: 78 // text: ""//iHUDangle // font.pixelSize: 30 // color:"#e1e1e1" // anchors.verticalCenter: parent.verticalCenter // verticalAlignment: Text.AlignVCenter // horizontalAlignment: Text.AlignRight // } // } //DEL #126243 2016/11/10 liuming end Row { id: background width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: background_text width:480//24*20 height: 78 text:qsTr("Background")+ systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - background_text.width - background_text_state.width - 36 height: 1 } HMILabel { id:background_text_state width:full_screen_bk.width-18 height: 78 //FOD #126243 2016/11/10 liuming begin //text:(Settinglist.BACKGROUND_ONE==iBackground)?"Name 1":(Settinglist.BACKGROUND_TWO==iBackground)?"Name 2":(Settinglist.BACKGROUND_THREE==iBackground)?"Name of current BG":(Settinglist.BACKGROUND_FOUR==iBackground)?"Name 4":"Name 5" text: { if (Settinglist.BACKGROUND_DEFAULT == iBackground) { qsTr("Default") + systemCtrl.emptyString } else if (Settinglist.BACKGROUND_ONE == iBackground) { qsTr("Background 1") + systemCtrl.emptyString } else if (Settinglist.BACKGROUND_TWO == iBackground) { qsTr("Background 2") + systemCtrl.emptyString } else if (Settinglist.BACKGROUND_THREE == iBackground) { qsTr("Background 3") + systemCtrl.emptyString } else { qsTr("Default") + systemCtrl.emptyString } } font.pixelSize: 30 color:"#e1e1e1" //anchors.verticalCenter: parent.verticalCenter //FOD #126243 2016/11/10 liuming end verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } } }