import QtQuick 2.0 import "../../com/neusoft/auto/widgets" import "../../layoutList.js" as Layout import "../../windowsList.js" as WindowsList import "../../eventsList.js" as EventsList import "../" DiagDevelopWindow { id: diagsetting_home Component.onCompleted: { visible = true } onVisibleChanged: { if (diagsetting_home.visible == true) { if((systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_FCW_EBA) == 0)&&((systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_PDC_BSD) == 0)||(systemCtrl.checkAppCommCodingData(EventsList.HMI_CODING_PDC_BSD) == 1))) { driver_assistance.visible = false } else { //do nothing } } else { } } visible: false property int curListIndex: 0 property bool isPressed:false property int chooseItem:0 Item { id:diagsetting_home_title x:0 y:0 width: 960 height: 78 HMILabel { width: 400//120 height: 78 text:qsTr("Diag Setting Display") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter } } Item { id:full_screen_bk anchors.horizontalCenter: parent.horizontalCenter y: 265 - diagsetting_home.y width: 842 height: 760 Item { // x:58 // y:241 // width: 930//842+30 // height: 798//720+18 Column { id:columnflickable_home x:0 y:0 width: 842 anchors.topMargin: 0 spacing: 2 Row { id:time_Date x: 0 y: 0 width: 842 height: 78 spacing: 2 Item { x:0 y: 0 width: 842 height: 78 HMIButton { id: time_Date_Button x:0 y: 0 width: columnflickable_home.width height: 78 btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle HMILabel { id: time_Date_label x: 84 width: 500 height: 35 text:qsTr("Time/Date") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTING_TIME_DATA_LANGUAGE); } } } } Row { id:display x: 0 y: 0 width: 842 height: 78 spacing: 2 Item { x:0 y: 0 width: 842 height: 78 HMIButton { id: display_Button x:0 y: 0 width: 842 height: 78 btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle HMILabel { id: display_label x: 84 width: 500 height: 35 text:qsTr("Display") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { //ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.DIAG_SETTINGDISPLAY); //add #126243 2016/11/10 liuming begin ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTINGDISPLAY); //add #126243 2016/11/10 liuming end } } } } Row { id:sound x: 0 y: 0 width: 842 height: 78 spacing: 2 Item { x:0 y: 0 width: 842 height: 78 HMIButton { id: sound_Button x:0 y: 0 width: columnflickable_home.width height: 78 btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle HMILabel { id: sound_label x: 84 width: 500 height: 35 text:qsTr("Sound") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTINGSOUND); } } } } Row { id:volume x: 0 y: 0 width: 842 height: 78 spacing: 2 Item { x:0 y: 0 width: 842 height: 78 HMIButton { id: volume_Button x:0 y: 0 width: columnflickable_home.width height: 78 btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle HMILabel { id: volume_label x: 84 width: 500 height: 35 text:qsTr("Volume") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTINGVOLUME); } } } } Row { id:driver_assistance x: 0 y: 0 width: 842 height: 78 spacing: 2 Item { x:0 y: 0 width: 842 height: 78 HMIButton { id: driver_assistance_Button x:0 y: 0 width: columnflickable_home.width height: 78 btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle HMILabel { id: driver_assistance_label x: 84 width: 500 height: 35 text:qsTr("Driver assistance") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTINGDRIVERASSISTANCE ); } } } } Row { id:vehicle x: 0 y: 0 width: 842 height: 78 spacing: 2 Item { x:0 y: 0 width: 842 height: 78 HMIButton { id: vehicle_Button x:0 y: 0 width: columnflickable_home.width height: 78 btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle HMILabel { id: vehicle_label x: 84 width: 500 height: 35 text:qsTr("Vehicle") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTING_VEHICLE); } } } } Row { id:brilliance_air x: 0 y: 0 width: 842 height: 78 spacing: 2 Item { x:0 y: 0 width: 842 height: 78 HMIButton { id: brilliance_air_Button x:0 y: 0 width: columnflickable_home.width height: 78 btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle HMILabel { id: brilliance_air_label x: 84 width: 500 height: 35 text:qsTr("Brilliance air") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTING_BRILLIABCE_AIR); } } } } Row { id:bt x: 0 y: 0 width: 842 height: 78 spacing: 2 Item { x:0 y: 0 width: 842 height: 78 HMIButton { id: bt_Button x:0 y: 0 width: columnflickable_home.width height: 78 btnImg: pressed?"qrc:MATERIAL/MATERIAL_M8X_LIST_78_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_LIST_78"+bgImageStyle HMILabel { id: bt_label x: 84 width: 500 height: 35 text:qsTr("BT") + systemCtrl.emptyString font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter horizontalAlignment: Text.AlignLeft } onClicked: { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_BTS_DEVICE_LIST); } } } } } } } /* according to Pressed list change to it's Screen*/ function functionSelect() { if(chooseItem == 0) { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTING_TIME_DATA_LANGUAGE); } else if(chooseItem == 1) { //ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.DIAG_SETTINGDISPLAY); } else if(chooseItem == 2) { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTINGSOUND); } else if(chooseItem == 3) { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTINGVOLUME); } else if(chooseItem == 4) { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTINGDRIVERASSISTANCE ); } else if(chooseItem == 5) { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTING_VEHICLE); } else if(chooseItem == 6) { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_SETTING_BRILLIABCE_AIR); } else if(chooseItem == 7) { ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.DIAG_BTS_DEVICE_LIST); } // else if(chooseItem == 8) // { // console.log("++++++++++DIAG_SETTING_CALENDER List Pressed++++++++++") // ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.DIAG_SETTING_CALENDER); // } else { //do nothing } } }