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 "../" DiagDevelopWindow { id: diag_setting_volume property string bgImageStyle: systemCtrl.style Component.onCompleted: { } onVisibleChanged: { if (diag_setting_volume.visible == true) { } else { } } property int iAutoVol: settingCtrl.iAutoVol property int iSwtONLimit: settingCtrl.iSwtONLimit property int iNAVIVol: settingCtrl.iNAVIVol property int iMediaVol:settingCtrl.iMediaVol property int iPhoneVol: settingCtrl.iPhoneVol property int iScrTouchVol: settingCtrl.iScrTouchVol //add T0039 2016/11/11 liuming begin property int iBTAVol: settingCtrl.iBTAVol //add T0039 2016/11/11 liuming end Item { id:diag_setting_display_title x:0 y:0 width: 960 height: 78 HMILabel { width: 400//120 height: 78 text:qsTr("Diag-Setting-Volume") + 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_volume.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_volume.y width: 842 anchors.topMargin: 0 spacing: 2 Row { id: autoVol width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: autoVol_text width:480//24*20 height: 78 text:qsTr("Speed Volume") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - autoVol_text.width - autoVol_state.width - 18 - 15 height: 1 } HMILabel { id:autoVol_state width:full_screen_bk.width - 18 height: 78 //fod T0039 2016/11/11 liuming begin //text: iAutoVol ==Settinglist.VOL_SPEED_OFF?"OFF":(iAutoVol ==Settinglist.VOL_SPEED_LOW?"Low":(iAutoVol ==Settinglist.VOL_SPEED_MEDIUM_LOW?"MidLow":(iAutoVol ==Settinglist.VOL_SPEED_MEDIUM?"Medium":(iAutoVol ==Settinglist.VOL_SPEED_MEDIUM_HIGH?"MidHigh":"High")))) text: 5-iAutoVol //fod T0039 2016/11/11 liuming end font.pixelSize: 30 color:"#e1e1e1" //anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } Row { id: swtONLimit_data width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: swtONLimit_text width:480//24*20 height: 78 text:qsTr("Switch on limit") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - swtONLimit_text.width - swtONLimit_state.width - 18 - 15 height: 1 } HMILabel { id:swtONLimit_state width:full_screen_bk.width - 18 height: 78 text:iSwtONLimit font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } Row { id: nAVIVol width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: nAVIVol_text width:480//24*20 height: 78 text:qsTr("NAVI") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - nAVIVol_text.width - nAVIVol_state.width - 18 - 15 height: 1 } HMILabel { id:nAVIVol_state width:full_screen_bk.width - 18 height: 78 text:iNAVIVol font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } Row { id: mediaVol width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: mediaVol_text width:480//24*20 height: 78 text:qsTr("Media") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - mediaVol_text.width - mediaVol_state.width - 18 - 15 height: 1 } HMILabel { id:mediaVol_state width:full_screen_bk.width - 18 height: 78 text: iMediaVol font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } //add T0039 2016/11/11 liuming begin Row { id: btmusic width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: btmusic_label width:480//24*20 height: 78 text:qsTr("BT music") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } HMILabel { id:btmusic_label_value width:full_screen_bk.width - 18 - 15 - btmusic_label.width height: 78 text:iBTAVol font.pixelSize: 30 color:"#e1e1e1" //anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } //add T0039 2016/11/11 liuming end Row { id: phoneVol width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: phoneVol_text width:480//24*20 height: 78 text:qsTr("Phone") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - phoneVol_text.width - phoneVol_state.width - 18 - 15 height: 1 } HMILabel { id:phoneVol_state width:full_screen_bk.width - 18 height: 78 text:iPhoneVol font.pixelSize: 30 color:"#e1e1e1" // anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } Row { id: screen_toucn width: full_screen_bk.width height: 78 Item //for Occupying { width: 18 height: 1 } HMILabel { id: screen_toucn_text width:480//24*20 height: 78 text:qsTr("Screen Touch") + systemCtrl.emptyString color:"#e1e1e1" font.pixelSize: 30 verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignLeft } Item //for Occupying { width: 842 - screen_toucn_text.width - screen_toucn_state.width - 18 - 15 height: 1 } HMILabel { id:screen_toucn_state width:full_screen_bk.width - 18 height: 78 //FOD T0039 2016/11/11 liuming begin //text:iScrTouchVol == Settinglist.SM_MIN_SCRTOUCH_VOL?"OFF":iScrTouchVol text:iScrTouchVol == Settinglist.SCRTOUCH_VOL_ON ? "ON" : "OFF" //FOD T0039 2016/11/11 liuming end font.pixelSize: 30 color:"#e1e1e1" anchors.verticalCenter: parent.verticalCenter verticalAlignment: Text.AlignVCenter horizontalAlignment: Text.AlignRight } } } }