import QtQuick 2.0 import Label 2.0 import "../com/neusoft/auto/widgets" import "ipod_define.js" as StatusList import "../eventsList.js" as EventsList import "../layoutList.js" as Layout import "../windowsList.js" as WindowsList HMIWindow { id:ipod_main_play_window property string ipod_CoverPath: ipodCtrl.ipod_coveraddress property string ipod_name: ipodCtrl.ipod_deviceName property int ipod_repeatStatus: ipodCtrl.ipod_repeat_status property int ipod_shuffelStatus: ipodCtrl.ipod_shuffel_status // property int ipod_connectState:ipodCtrl.ipod_getDeviceConnectStatus() //Fod review 2017/01/23 cxx begin //property int ipod_scanState:ipodCtrl.ipod_underwaySynchronization // bool -> NG property bool ipod_scanState:ipodCtrl.ipod_underwaySynchronization //Fod review 2017/01/23 cxx end property int ipod_loadingState:StatusList.IPOD_END_LOADING //tag start property string ipod_titlename: ipodCtrl.ipod_titleName property string ipod_artistname: ipodCtrl.ipod_artistName property string ipod_albumname: ipodCtrl.ipod_albumName //tag end //play start property int ipod_playpausestatus: ipodCtrl.ipod_playstatus //play end property int songArea: 0 signal songChange() //jin du tiao start property string ipod_ptime:ipodCtrl.ipod_ptime property double ipod_playbarscale: ipodCtrl.ipod_playbarscale property string ipod_totaltime:ipodCtrl.ipod_totaltime property int isDrafting:0 //jin du tiao end property int ipod_which_apply: ipodCtrl.ipod_applay property int ipod_third_apply: ipodCtrl.ipod_third_applay // Fod review 2017/01/23 cxx begin //property int ipod_overCurrentState: USBControl1.usb_overCurrentState // bool -> NG property bool ipod_overCurrentState: USBControl1.usb_overCurrentState // Fod review 2017/01/23 cxx end property bool ipod_extendedbodystate:StatusList.IPOD_EXTENDED_BODY_CLOSE //property bool ipod_folderWindowState:StatusList.IPOD_FOLDER_CLOSE//Delete #145405 2017/3/28 cxx //Add #120136 2016/10/18 cxx Start property bool ipod_seeking_end_flag:false //Add #120136 2016/10/18 cxx End //Add Design 2017/3/14 cxx begin property int iLanguage: systemCtrl.iLanguage //Add Design 2017/3/14 cxx begin //ADD By qu-shh for auto display off start property bool display_flag:false //ADD By qu-shh for auto display off end //modify by Jiyulong for #210943 start 2017/10/13 property bool ipod_scanErrorState:false //modify by Jiyulong for #210943 end property int ipod_write_error:139 Component.onCompleted: { windowID = WindowsList.IPOD_MAIN } onVisibleChanged: { if(true == ipod_main_play_window.visible) { systemCtrl.setiPodorCarpalyFlag(1) //ScreenManager.sm_setMediaType(Layout.MEDIA_IPOD)//del by lium for screenchange bMainWindow = true bMediaEnterBarVisiable = true mediaEnterBarType=Layout.MEDIA_TYPE_IPOD //Add #F0096 2016/11/16 cxx begin if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { //330858 console.log("timechange",ipod_ptime ,ipod_totaltime ,ipod_titlename ,ipod_artistname ,ipod_albumname ,ipod_playbarscale) if(ipod_ptime != "00:00:00") { ipod_ptime = "00:00:00" } if(ipod_totaltime != "00:00:00") { ipod_totaltime = "00:00:00" } if(ipod_titlename != "") { ipod_titlename = "" } if(ipod_artistname != "") { ipod_artistname = "" } if(ipod_albumname != "") { ipod_albumname = "" } if(ipod_playbarscale != 0) { ipod_playbarscale = 0 } //330858 //Fod IPC 2017/06/14 cxx begin if(systemCtrl.getCurrentSource()==Layout.HMI_SRC_DUMMY) { ipodCtrl.ipod_enter_disconnect() } else { iPod_disconnect_for_ipc.start() } //Fod IPC 2017/06/14 cxx end } //Add #F0096 2016/11/16 cxx end //modify by Jiyulong for #210943 start 2017/10/13 if(true == ipodCtrl.ipod_getScanErrorFlag()) { ipodDisconnect.visible = false ipod_no_file.visible = false ipodLoading.visible = false ipod_artistName.visible = false ipod_current_play_song.visible = false main_processbar_small.dragflag = false ipod_scanErrorState = true } //modify by Jiyulong for #210943 end if(ipodCtrl.getcp_ipod_status() == ipod_write_error) { ipodDisconnect.visible = false ipod_no_file.visible = false ipodLoading.visible = false ipod_artistName.visible = false ipod_current_play_song.visible = false main_processbar_small.dragflag = false ipod_scanErrorState = false } //add by ghy for 320026 ipodCtrl.setipod_flag(true); //add by ghy for 320026 if(ipod_playpausestatus == StatusList.IPOD_PAUSE && StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())//330858 { if(0 == isDrafting) { ipod_playbarscale=ipodCtrl.ipod_playbarscale main_processbar_small.enterValue = ipod_playbarscale * main_processbar_small.totalValue } } //add by ghy for 330248 console.log("ggggggggggggggggggggggggggggggg",systemCtrl.getCurrentSource()) if(systemCtrl.getCurrentSource()== Layout.HMI_SRC_PHONE) { main_processbar_small.dragflag = false } //add by ghy for 330248 } //Add IPC 2017/06/14 cxx begin else { iPod_disconnect_for_ipc.stop() } //Add IPC 2017/06/14 cxx end } //DEL 2018/09/27 by wangyuecheng for formChange begin /* onExtendWindow: { if((StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH)) { ScreenManager.changeForm(Layout.FM_OPEN,WindowsList.IPOD_SEARCH) } else { } } onOpenExtendForm: { if((StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH)) { ScreenManager.changeForm(Layout.FM_OPEN_EXTEND_CALL,WindowsList.IPOD_SEARCH) } else { ScreenManager.changeForm(Layout.FM_OPEN_EXTEND_CALL,Layout.INVALID_FORMID) } }*/ //DEL 2018/09/27 by wangyuecheng for formChange end onCloseWindow: { //console.log(" ********************colse window audio home------------------extendType="+extendType +" closeType="+closeType) //if((extendType == Layout.FORM_MAIN)&&(closeType == Layout.CLOSE_BY_CLOSE)) if(closeType == Layout.CLOSE_BY_CLOSE) { //systemCtrl.reqSource(Layout.HMI_SRC_DUMMY,Layout.HMI_SRC_START,Layout.HMI_SRC_Front); } } //Del Design 2017/3/14 cxx begin /* Image{ x:10 y:209 visible: bMaxWindow source:"qrc:MATERIAL/MATERIAL_M8X_FREQUENCY-SPECTRUM_LINE"+bgImageStyle } Image{ x:0 y:168 visible: bMaxWindow source:"qrc:MATERIAL/MATERIAL_M8X_FREQUENCY-SPECTRUM_1"+bgImageStyle } Image{ x:0 y:176 visible: bMaxWindow source:"qrc:MATERIAL/MATERIAL_M8X_FREQUENCY-SPECTRUM_2"+bgImageStyle } Image{ x:0 y:172 visible: bMaxWindow source:"qrc:MATERIAL/MATERIAL_M8X_FREQUENCY-SPECTRUM_3"+bgImageStyle } Image{ x:0 y:0 visible: !bMaxWindow source:"qrc:MATERIAL/MATERIAL_M8X_PICTURE+VIDEO_BG"+bgImageStyle } // HMIRoundBar_small{ // id:main_processbar_small // x:bMaxWindow?287:346 // y:bMaxWindow?145:-11 // visible: false//!bMaxWindow // dragflag:true // progress:ipod_playbarscale*360 // onDragingStart: // { // isDrafting = 1 // } // onDragingEnd: // { // isDrafting = 0 // ipodCtrl.ipod_setSeektoPosition(((progress/360)*100)) // } // } // Image // { // id: music_Picture_bg // x: 268 // y: 1 // width: 400 // height: 400 // visible: !bMaxWindow // source: "qrc:MATERIAL/MATERIAL_M8X_USB-PLAY_BK"+bgImageStyle // } Image { id:music_cover_small x:268 y:1 width: 400 height: 400 visible: !bMaxWindow //fillMode: Image.PreserveAspectFit fillMode: ipod_CoverPath == ""?Image.Stretch:Image.PreserveAspectFit source:(ipod_CoverPath != "")?ipod_CoverPath:"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_400"+bgImageStyle } HMIRoundBar_big{ id:main_processbar_big // da yuan jin du tiao x:288//ln 287//bMaxWindow?287:346 y:145//bMaxWindow?145:-11 visible: bMaxWindow dragflag:((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH))?true:false//true progress:ipod_playbarscale*360 onDragingStart: { isDrafting = 1 } onDragingEnd: { //Add #120136 2016/10/18 cxx Start ipod_seeking_end_flag = true //Add #120136 2016/10/18 cxx End isDrafting = 0 //Add #ST127659 2016/11/21 cxx Start systemCtrl.touchBeep(0) //Add #ST127659 2016/11/21 cxx End ipodCtrl.ipod_setSeektoPosition(((progress/360)*100)) } } HMIRoundCover { id: music_Picture_big //FOD No.124847 2016/11/11 cxx start x:324// 2017/01/23 cxx 328-4 y:182// 2017/01/23 cxx 186-4 width:312// 2017/01/23 cxx 304+8 height:312// 2017/01/23 cxx 304+8 //FOD No.124847 2016/11/11 cxx end border:0 visible: bMaxWindow source:(ipod_CoverPath != "")?ipod_CoverPath:"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304"+bgImageStyle//ipod_CoverPath == ""?"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304":ipod_CoverPath } Image { id: music_Picture_big_cover x:327 y:185 width:306 height:306 visible: bMaxWindow source:(ipod_CoverPath != "")?"":"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304"+bgImageStyle//ipod_CoverPath == ""?"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304":ipod_CoverPath } //ADD No.124847 2016/11/11 cxx start Rectangle { x:322// 2017/01/23 cxx 328-6 y:180// 2017/01/23 cxx 186-6 width: 316// 2017/01/23 cxx 304+12 height: 316// 2017/01/23 cxx 304+12 color: "#00000000" border.color: "black" border.width: 6//5//FOD No.146813 20170203 cxx radius: 158// 2017/01/23 cxx 152+6 visible:bMaxWindow } //ADD No.124847 2016/11/11 cxx end Image{ x:0 y:1 visible: !bMaxWindow source:"qrc:MATERIAL/MATERIAL_M8X_MEDIA_TITLE_MASK"+bgImageStyle } Image{ x:0 y:224 visible:!bMaxWindow source:"qrc:MATERIAL/MATERIAL_M8X_PICTURE+VIDEO_MASK"+bgImageStyle } */ //Del Design 2017/3/14 cxx end // HMIRoundCover // { // id: music_Picture_small // x:384 // y:27 // width:192 // height:192 // border:0 // visible:false // source:(ipod_CoverPath != "")?ipod_CoverPath:"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_192"+bgImageStyle//ipod_CoverPath == ""?"qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_192":ipod_CoverPath // } //ADD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin Image { id: album_iPod x: 324 y: 59 width: 312 height: 312 visible: bMaxWindow&&(!ipodDisconnect.visible) source: ipod_main_play_window.visible?((ipod_CoverPath != "")?ipod_CoverPath:"qrc:MATERIAL/MATERIAL_ALBUM_IPOD"+bgImageStyle):"" } //ADD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end HMILabel { id: playtime // start play time //Fod Design 2017/3/14 cxx begin x:18//13 //bMaxWindow == true?320:13//ln333:25//383 y: bMaxWindow?636:166//bMaxWindow == true?680:239//bMaxWindow == true?543:239//ln546:248-10//541:238 width: 110//130//bMaxWindow == true?157:130//ln196:120//96 //Fod Design 2017/3/14 cxx end height: 22//26//ln30//20 text:ipod_ptime==""?"00:00:00":ipod_ptime font.pixelSize: 22//26//18 horizontalAlignment: Label.AlignHCenter// ln Label.AlignLeft wtitesize:1 } //Fod Design 2017/3/14 cxx begin /* HMILabel { id:time_midle // quan ping shi jian zhong jian | x:479 y:543//ln 546 //bMaxWindow == true?546:243//541:238 width: 2 height:26//ln30//20 text:"|" font.pixelSize: 26//18 visible: bMaxWindow wtitesize:1 } */ //Fod Design 2017/3/14 cxx end HMILabel { id: totaltime // zong time //Fod Design 2017/3/14 cxx begin x:832//817 //bMaxWindow == true?482:817//ln 462:813//764//481 y: bMaxWindow?636:166//bMaxWindow == true?680:239//bMaxWindow == true?543:239//ln546:248-10//541:238 width: 110//130//bMaxWindow == true?158:130//ln167:120//96 //Fod Design 2017/3/14 cxx end height:22//26//ln30//20 text:ipod_totaltime==""?"00:00:00":ipod_totaltime font.pixelSize:22//26//18 horizontalAlignment:Label.AlignHCenter // ln Label.AlignRight wtitesize:1 } HMILabel { id: ipodDisconnect x:150//150 //30//150//bMaxWindow == true?60:150//345 y: (bMaxWindow == true)?298:77//(iLanguage==0)?(bMaxWindow == true)?298:77:(bMaxWindow == true)?324:103//1//bMaxWindow == true?35:1//15//85//0:27//38:81 width: 660//660//900//660//bMaxWindow == true?840:660//271 height:82//78//bMaxWindow == true?160:192//140 //25 // anchors.horizontalCenter: parent.horizontalCenter // verticalAlignment:Label.verticalCenter horizontalAlignment: Label.AlignHCenter verticalAlignment:Label.AlignVCenter// Fod 2017/01/17 cxx // verticalAlignment:Label.verticalCenter font.pixelSize: 30//24 visible: ((StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&( StatusList.IPOD_NOT_OVER_CURRENT == ipod_overCurrentState))?true:false //Fod #ST140405 2016/12/26 cxx begin //text: qsTr("no apple device connected, please connect apple device with USB")+ systemCtrl.emptyString text: qsTr("No apple device connected, please connect apple device with USB")+ systemCtrl.emptyString //Fod #ST140405 2016/12/26 cxx end } HMILabel { id: ipod_no_file //Fod Design 2017/3/14 cxx begin x: 90//150//60//bMaxWindow == true?60:150//345 y:bMaxWindow?505:95//bMaxWindow == true?324:103// 1//bMaxWindow == true?35:1//85//0:27//38:81 width: 780//660//840//bMaxWindow == true?840:660//271 height:34//78//bMaxWindow == true?160:192//140 //25 //Fod Design 2017/3/14 cxx end // anchors.horizontalCenter: parent.horizontalCenter // verticalAlignment:Label.verticalCenter horizontalAlignment: Label.AlignHCenter verticalAlignment:Label.AlignVCenter// Fod 2017/01/17 cxx //verticalAlignment:Label.verticalCenter font.pixelSize: 30//24 visible:((StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipodCtrl.ipod_get_allsong_num() == 0) && ipod_write_error_text.visible == false)?true:false text: qsTr("No file in iPod") + systemCtrl.emptyString } HMILabel { id: ipodLoading //Fod Design 2017/3/14 cxx begin x:90//150// 60//bMaxWindow == true?60:150//345 y: bMaxWindow?505:95//bMaxWindow == true?324:103//1//bMaxWindow == true?35:1//85//0:27//38:81 width: 780//660//840//bMaxWindow == true?840:660//271 height:34//78//bMaxWindow == true?160:192//140 //25 //Fod Design 2017/3/14 cxx end // anchors.horizontalCenter: parent.horizontalCenter // verticalAlignment:Label.verticalCenter horizontalAlignment: Label.AlignHCenter verticalAlignment:Label.AlignVCenter// Fod 2017/01/17 cxx //verticalAlignment:Label.verticalCenter font.pixelSize: 30//24 visible:((StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_NOT_FINISH)&& ipod_write_error_text.visible == false)?true:false text: qsTr("iPod data loading...") + systemCtrl.emptyString //ADD By qu-shh for auto display off start onVisibleChanged: { if(ipodLoading.visible == true) { if(!display_flag) { systemCtrl.auto_Displayoff_Shield() display_flag = true } } else { if(display_flag) { systemCtrl.auto_Displayoff_Unshield() display_flag = false } } } //ADD By qu-shh for auto display off end } HMILabel { id: ipodovercurrent //Fod Design 2017/3/14 cxx begin x: 90//150//60//bMaxWindow == true?60:150//345 y: bMaxWindow?505:95//bMaxWindow == true?324:103//1//bMaxWindow == true?35:1//85//0:27//38:81 width: 780//660//840//bMaxWindow == true?840:660//271 height:34//78//bMaxWindow == true?160:192//140 //25 //Fod Design 2017/3/14 cxx end // anchors.horizontalCenter: parent.horizontalCenter // verticalAlignment:Label.verticalCenter horizontalAlignment: Label.AlignHCenter verticalAlignment:Label.AlignVCenter// Fod 2017/01/17 cxx //verticalAlignment:Label.verticalCenter font.pixelSize: 30//24 visible:( StatusList.IPOD_OVER_CURRENT == ipod_overCurrentState)?true:false text: qsTr("USB defect,please restart your car to repair") + systemCtrl.emptyString } /*//DEL #F0085 2016/11/08 cxx begin HMILabel{ id: ipod_artistName x:110// bMaxWindow == true?110:150//440 y: bMaxWindow == true?78:53//135//85:128 width:740//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80 height:24 //22 horizontalAlignment: Label.AlignHCenter//bMaxWindow == true?Label.AlignHCenter:Label.AlignRight elide: Label.ElideRight font.pixelSize: 20//18 visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true))?false:true text: ((bMaxWindow == true)||(ipod_albumname == ""))?ipod_artistname:ipod_artistname+"<<"+ipod_albumname+">>" wtitesize:2 } // HMILabel // { // id: artist_album // x: (ipod_artistName.width <= ipod_artistName.contentWidth)?(ipod_artistName.x+ipod_artistName.width):(ipod_artistName.x+ipod_artistName.contentWidth) // y:ipod_artistName.y // width: 10 // height: 40//24 // font.pixelSize: 28 // visible:((bMaxWindow == true)&&((ipodDisconnect.visible == false)&&(ipod_no_file.visible == false)&&(ipodLoading.visible == false)))?true:false // text: qsTr("/") // } HMILabel { id: ipod_albumName x: 110//bMaxWindow == true?110:480//bMaxWindow == true?150:110//150//150//bMaxWindow == true?110:150//440 y: 120//bMaxWindow == true?120:53//bMaxWindow == true?120-6:56//176-6 width: 740//bMaxWindow == true?740:370//660//bMaxWindow == true?740:660//80 height:24// 22 horizontalAlignment:Label.AlignHCenter//bMaxWindow == true?Label.AlignHCenter:Label.AlignLeft elide: Label.ElideRight font.pixelSize: 20//18 visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true))?false:true text: ((bMaxWindow == true)&&(ipod_albumname != ""))?("<<"+ipod_albumname+">>"):"" wtitesize:2 } //DEL #F0085 2016/11/08 cxx end */ //ADD #F0085 2016/11/08 cxx begin HMILabel{ id:ipod_artist_length //Fod Design 2017/3/14 cxx begin x:90//150//110// bMaxWindow == true?110:150//440 y: bMaxWindow?505:95//bMaxWindow == true?352:131//bMaxWindow == true?78:53//135//85:128 width:780//660 //668//740//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80 //Fod Design 2017/3/14 cxx end height:30//24 //22 font.pixelSize: 30//20//18 visible: false text:ipod_artistname wtitesize:2 } HMILabel{ id:ipod_artistName_length //Fod Design 2017/3/14 cxx begin x:90//150//110// bMaxWindow == true?110:150//440 y: bMaxWindow?505:95//bMaxWindow == true?352:131//bMaxWindow == true?78:53//135//85:128 width:780//660//714//740//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80 //Fod Design 2017/3/14 cxx end height:30//24 //22 font.pixelSize: 30//20//18 visible: false //Fod Design 2017/3/14 cxx begin // text:((bMaxWindow == true)||(ipod_albumname == ""))?ipod_artistname:ipod_artistname+"<<"+ipod_albumname text:(ipod_albumname == "")?ipod_artistname:ipod_artistname+"<<"+ipod_albumname //Fod Design 2017/3/14 cxx end wtitesize:2 } HMILabel{ id: ipod_artistName //Fod Design 2017/3/14 cxx begin x:90//150//110// bMaxWindow == true?110:150//440 //FOD by lishunan for #309434 start y: bMaxWindow?515:105//bMaxWindow?505:95//bMaxWindow == true?352:131//78:53//135//85:128 //FOD by lishunan for #309434 end //modify 20180905 //width: ((bMaxWindow == true)||(ipod_albumname == "")||(ipod_artistName_length.contentWidth<714)||(ipod_artist_length.contentWidth>668))?740:714//740//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80 //width:((ipod_albumname == "")||(ipod_artistName_length.contentWidth<744)||(ipod_artist_length.contentWidth>678))?780:744 width: 780 //Fod Design 2017/3/14 cxx end //FOD by lishunan for #309434 start height:36//30//24 //22 //FOD by lishunan for #309434 end horizontalAlignment: Label.AlignHCenter//bMaxWindow == true?Label.AlignHCenter:Label.AlignRight elide: Label.ElideRight font.pixelSize: 30//20//18 visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true) || ipod_write_error_text.visible == true)?false:true //Fod Design 2017/3/14 cxx begin //text: ((bMaxWindow == true)||(ipod_albumname == "")||(ipod_artist_length.contentWidth>668))?((bMaxWindow != true && ipod_albumname != "" && ipod_artist_length.contentWidth>668 && ipod_artist_length.contentWidth<740)?(ipod_artistname+"…"):ipod_artistname):((ipod_artistName_length.contentWidth<714)?(ipod_artistname+"<<"+ipod_albumname+">>"):(ipod_artistname+"<<"+ipod_albumname)) //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin text: ipod_artistname //text: ((ipod_albumname == "")||(ipod_artist_length.contentWidth>678))?((ipod_albumname != "" && ipod_artist_length.contentWidth>678 && ipod_artist_length.contentWidth<660)?(ipod_artistname+"…"):ipod_artistname):((ipod_artistName_length.contentWidth<744)?(ipod_artistname+"<<"+ipod_albumname+">>"):(ipod_artistname+"<<"+ipod_albumname)) //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin //Fod Design 2017/3/14 cxx end wtitesize:2 } //DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin /* HMILabel{ id: ipod_artistName_kuohao //Fod Design 2017/3/14 cxx begin x:834//784//824// 2017/01/23 cxx 110+714//(ipod_artistName.contentWidth>700)?110+700:110+ipod_artistName.contentWidth //anchors.left: ipod_artistName.right// bMaxWindow == true?110:150//440 y:bMaxWindow?505:95//bMaxWindow == true?352:131//53// bMaxWindow == true?78:53//135//85:128 //Fod Design 2017/3/14 cxx end width:60//40//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80 height:30//24 //22 font.pixelSize: 30//20//18 horizontalAlignment: Label.AlignLeft //Fod Design 2017/3/14 cxx begin //visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true)||(ipod_artistName_length.contentWidth<668))?false:true //visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true)||(ipod_artistName_length.contentWidth<588))?false:true visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true)||(ipod_artistName_length.contentWidth<678))?false:true //text: ((bMaxWindow == true)||(ipod_albumname == "")||(ipod_artistName_length.contentWidth<714)||(ipod_artist_length.contentWidth>668))?"":">>" //text: ((ipod_albumname == "")||(ipod_artistName_length.contentWidth<634)||(ipod_artist_length.contentWidth>588))?"":">>" text: ((ipod_albumname == "")||(ipod_artistName_length.contentWidth<744)||(ipod_artist_length.contentWidth>678))?"":">>" //Fod Design 2017/3/14 cxx end wtitesize:2 }*/ //DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end //Del Design 2017/3/14 cxx begin /* HMILabel{ id:ipod_albumName_length x:110 y: 120 width:714//740//bMaxWindow == true?740:370//660// bMaxWindow == true?740:660//80 height:24 //22 font.pixelSize: 20//18 visible: false text:((bMaxWindow == true)&&(ipod_albumname != ""))?("<<"+ipod_albumname):"" wtitesize:2 } HMILabel { id: ipod_albumName x: 110//bMaxWindow == true?110:480//bMaxWindow == true?150:110//150//150//bMaxWindow == true?110:150//440 y: 120//bMaxWindow == true?120:53//bMaxWindow == true?120-6:56//176-6 width:((bMaxWindow == true)&&(ipod_albumname != "")&&(ipod_albumName_length.contentWidth<714))?740:714//bMaxWindow == true?740:370//660//bMaxWindow == true?740:660//80 height:24// 22 horizontalAlignment:Label.AlignHCenter//bMaxWindow == true?Label.AlignHCenter:Label.AlignLeft elide: Label.ElideRight font.pixelSize: 20//18 visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true))?false:true text: ((bMaxWindow == false)||(ipod_albumname == ""))?"":(((bMaxWindow == true)&&(ipod_albumname != "")&&(ipod_albumName_length.contentWidth<714))?("<<"+ipod_albumname+">>"):("<<"+ipod_albumname)) wtitesize:2 } HMILabel { id: ipod_albumName_kuohao x: 824// 2017/01/23 cxx 110+714//bMaxWindow == true?110:480//bMaxWindow == true?150:110//150//150//bMaxWindow == true?110:150//440 y: 120//bMaxWindow == true?120:53//bMaxWindow == true?120-6:56//176-6 width:40//bMaxWindow == true?740:370//660//bMaxWindow == true?740:660//80 height:24// 22 font.pixelSize: 20//18 horizontalAlignment:Label.AlignLeft//bMaxWindow == true?Label.AlignHCenter:Label.AlignLeft visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true)||(ipod_albumName_length.contentWidth<668))?false:true text: ((bMaxWindow == true)&&(ipod_albumname != "")&&(ipod_albumName_length.contentWidth>=714))?">>":"" wtitesize:2 } */ //Del Design 2017/3/14 cxx begin //ADD #F0085 2016/11/08 cxx end // HMILabel // { // id: current_play_song // x: 345 // y: bMaxWindow == true?38:81 // width: 271 // height: 25 // elide: Label.ElideRight // font.pixelSize: 24 // visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true))?false:true // text: ipod_titlename // } HMILableRoll { id: ipod_current_play_song //Fod Design 2017/3/14 cxx begin x:138//150//60//150//bMaxWindow == true?60:150//345 y: bMaxWindow?417:7//bMaxWindow == true?310:89//bMaxWindow == true?25:15//35:15//35:85//38:81 width:684//660//840//660//bMaxWindow == true?840:660//280:270 //Fod Design 2017/3/14 cxx end //FOD by lishunan for #309434 start height: 100//82//36 //FOD by lishunan for #309434 end anmitextposition:Label.AlignHCenter rollfont:76//30 font_not_change:2 rolltext:(ipod_titlename==""?" ":ipod_titlename) visible:((ipodDisconnect.visible == true)||(ipod_no_file.visible == true)||(ipodLoading.visible == true)||(ipodovercurrent.visible == true) || ipod_write_error_text.visible == true)?false:true } //modify by Jiyulong for #210943 start 2017/10/13 HMILabel { id: ipod_scan_error_text x: 90//150 y: bMaxWindow?505:95//bMaxWindow == true?324:103 width: 780//660 height: 82 horizontalAlignment: Label.AlignHCenter verticalAlignment:Label.AlignVCenter font.pixelSize: 30 visible: ( StatusList.IPOD_SCAN_IS_ERROR == ipod_scanErrorState ) ?true:false text:(systemCtrl.iLanguage == 0)?qsTr("Device connection is abnormal, please reconnect")+systemCtrl.emptyString: (systemCtrl.iLanguage == 2)?qsTr("Lỗi kết nối thiết bị, xin kết nối lại")+systemCtrl.emptyString: (systemCtrl.iLanguage == 3)?qsTr("Подключ. устройства ненормально, пожалуйста, переподключите")+systemCtrl.emptyString:"" } //modify by Jiyulong for #210943 end //ADD BY GHY 2019/5/14 HMILabel { id: ipod_write_error_text x: 90//150 y: bMaxWindow?505:95//bMaxWindow == true?324:103 width: 780//660 height: 82 horizontalAlignment: Label.AlignHCenter verticalAlignment:Label.AlignVCenter font.pixelSize: 30 visible:false text:(systemCtrl.iLanguage == 0)?qsTr("Abnormal phone status")+systemCtrl.emptyString: (systemCtrl.iLanguage == 2)?qsTr("Điện thoại bị lỗi")+systemCtrl.emptyString: (systemCtrl.iLanguage == 3)?qsTr("Ненормальный статус телефона")+systemCtrl.emptyString: (systemCtrl.iLanguage == 1)?qsTr("手机状态异常")+systemCtrl.emptyString:"" } //ADD BY GHY 2019/5/14 IPod_PlayCtrlButton { x:0//198 y:bMaxWindow?524:44//bMaxWindow?724:283//bMaxWindow?703:256 } // IPod_ProgressAndTime // { // id: main_processbar_small // x: 155//bMaxWindow == true?50:25 // y: 253//bMaxWindow == true?653:272//638:266 // bar_width:690//bMaxWindow == true?640:370//522:246 // visible:!bMaxWindow // enterValue_test: (StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?(ipodCtrl.ipod_playbarscale * totalValue):0 // } HMIProcessBarDrag { id:main_processbar_small // xi chang jin du tiao //update by zlx 2019/1/24 #319233 begin x: 146//136//150//ln 135//(bMaxWindow == true?48:23) //Fod Design 2017/3/14 cxx begin y: bMaxWindow? 645:175//646:176//bMaxWindow==true? 689:248 //248//(bMaxWindow == true?653:272) //Fod Design 2017/3/14 cxx end //update by zlx 2019/1/24 #319233 end width: 688//660//ln 690 //Fod #ST146534 2017/01/22 cxx begin //height: 8//ln 20 height: 30//20 //Fod #ST146534 2017/01/22 cxx end //enabled: (StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?true:false //Fod by cxx for CarPlay and ipod 2018/11/12 start //dragflag:((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH))?true:false dragflag:((((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())||((ipodCtrl.ipod_Ctrl_Get_whether_carplay_or_ipod()== 2)&&(Layout.HMI_SRC_CARPLAY_MUSIC == systemCtrl.getCurrentSource())))&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH)) && ipod_write_error_text.visible == false)?true:false //Fod by cxx for CarPlay and ipod 2018/11/12 end dragflagpress :true //barBackgroundMiddlewidth:662//bMaxWindow == true?640:370 //Fod Design 2017/3/14 cxx begin visible:true//!bMaxWindow //Fod Design 2017/3/14 cxx end //enterValue:(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?(ipodCtrl.ipod_playbarscale * totalValue):0 onDragingStart: { isDrafting = 1 } onDragingEnd: { //Add #120136 2016/10/18 cxx Start ipod_seeking_end_flag = true //Add #120136 2016/10/18 cxx End isDrafting = 0 ipodCtrl.ipod_setSeektoPosition(barScale) } onBarClicked: { ipodCtrl.ipod_setSeektoPosition(barScale) } //Add 2017/3/28 for #160052 cxx begin onSendCancele: { //ipod_seeking_end_flag=true isDrafting = 0 main_processbar_small.enterValue = ipod_playbarscale * main_processbar_small.totalValue } //Add 2017/3/28 for #160052 cxx end } // onBMaxWindowChanged: // { // ipod_playbarscale = ipodCtrl.ipod_playbarscale // if(bMaxWindow == true) // { // main_processbar.enterValue = ipod_playbarscale * 640 // if((StatusList.HMI_IPOD_SCAN_FINISH == ipod_scanState)&&(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(StatusList.IPOD_NOT_OVER_CURRENT == ipod_overCurrentState)) // { // artist_album.visible = true // } // else // { // artist_album.visible = false // } // } // else // { // main_processbar.enterValue = ipod_playbarscale * 370 // artist_album.visible = false // } // } // HMILabel // { // id: playtime // anchors.left: main_processbar.left // y: bMaxWindow == true?626:245//bMaxWindow == true?758:377-Layout.FORM_Y // width: 76 // height: 20 // text:ipod_ptime==""?"00:00:00":ipod_ptime // font.pixelSize: 14//18 // horizontalAlignment: Label.AlignLeft // } // HMILabel // { // id: totaltime // anchors.right: main_processbar.right // anchors.verticalCenter:playtime.verticalCenter // //x: bMaxWindow == true?615:320//bMaxWindow == true?629:334-Layout.FORM_X // width: 75//115 // height: 20 // text:ipod_totaltime==""?"00:00:00":ipod_totaltime // font.pixelSize: 14//18 // horizontalAlignment: Label.AlignRight // } // IPod_SearchAndPlayMode // { // x: bMaxWindow == true?394:418//448:419 // y: bMaxWindow == true?551:228 // } HMIButton { id:search_button //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin x:33 //22 y:bMaxWindow?733:253//bMaxWindow?703:256 //btnIcon:"qrc:MATERIAL/MATERIAL_M8X_ICON_FOLDER"+bgImageStyle btnIcon:"qrc:MATERIAL/MATERIAL_ICON_FOLDER"+bgImageStyle //btnImg:search_button.pressed?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle //btnImg: (StatusList.IPOD_EXTENDED_BODY_OPEN == ipod_extendedbodystate)?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle // :((search_button.pressed)?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle // :("qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle)) btnImg: (StatusList.IPOD_EXTENDED_BODY_OPEN == ipod_extendedbodystate)?"qrc:MATERIAL/MATERIAL_ICON_FOLDER_P"+bgImageStyle :((search_button.pressed)?"qrc:MATERIAL/MATERIAL_ICON_FOLDER_P"+bgImageStyle :("qrc:MATERIAL/MATERIAL_ICON_FOLDER"+bgImageStyle)) //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin onClicked: { //FOD 2019/2/15 by SXD for #324721 BTtonghuazhong media wuxiao begin if((StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH)&&(Layout.HMI_SRC_PHONE != systemCtrl.getCurrentSource())) //FOD 2019/2/15 by SXD for #324721 BTtonghuazhong media wuxiao end { //FOD by wangyuecheng 2018/09/27 FOR formChange begin //ScreenManager.changeForm(Layout.FM_OPEN_EXTEND_SELF,WindowsList.IPOD_SEARCH) ScreenManager.changeForm(Layout.ACT_SUBFORM,WindowsList.IPOD_SEARCH) //FOD by wangyuecheng 2018/09/27 FOR formChange end } else { } } } HMIButton { id:playmode_button_shuffle //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin x:bMaxWindow?69:29 //22//bMaxWindow?22:198 //Fod Design 2017/3/14 cxx begin y:bMaxWindow?164:4 //bMaxWindow?283:62//bMaxWindow?282:96//67 //Fod Design 2017/3/14 cxx end visible:(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?true:(((ipod_which_apply == 1 )||(ipod_which_apply == 2 )||(ipod_third_apply == 1))?false:true) //btnIcon:"qrc:MATERIAL/MATERIAL_M8X_ICON_SHUFFLE"+bgImageStyle btnIcon:( StatusList.IPOD_RANDOM_ALL == ipod_shuffelStatus)? ("qrc:MATERIAL/MATERIAL_ICON_SHUFFLE"+bgImageStyle):("qrc:MATERIAL/MATERIAL_IPOD_ICON_SHUFFLE_NO"+bgImageStyle) //btnImg:playmode_button_shuffle.pressed?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle:(ipod_shuffelStatus == StatusList.IPOD_RANDOM_ALL)?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle btnImg:playmode_button_shuffle.pressed?"qrc:MATERIAL/MATERIAL_MEDIA_BUTTON_CIRCLE_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_MEDIA_BUTTON_CIRCLE"+bgImageStyle //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin onClicked: { if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { } else { //FOD 2019/2/15 by SXD for #324721 BTtonghuazhong media wuxiao begin //modify by Jiyulong for #210943 start 2017/10/13 if( StatusList.IPOD_SCAN_NOT_ERROR == ipod_scanErrorState &&(Layout.HMI_SRC_PHONE != systemCtrl.getCurrentSource())&& ipodCtrl.ipod_underwaySynchronization == StatusList.HMI_IPOD_SCAN_FINISH) //FOD 2019/2/15 by SXD for #324721 BTtonghuazhong media wuxiao end { //ipodCtrl.ipod_random_repeat_ModeClick(); if(ipod_shuffelStatus == StatusList.IPOD_RANDOM_ALL) { ipodCtrl.ipod_randomModeClick(StatusList.IPOD_RANDOM_OFF) } else { ipodCtrl.ipod_randomModeClick(StatusList.IPOD_RANDOM_ALL) } } //modify by Jiyulong for #210943 end } } } HMIButton { id:playmode_button_repeat //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin x:bMaxWindow?789:829//826//bMaxWindow?826:650 //Fod Design 2017/3/14 cxx begin y:bMaxWindow?164:4//bMaxWindow?283:62 //bMaxWindow?282:96//67 //Fod Design 2017/3/14 cxx end visible:(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())?true:(((ipod_which_apply == 1 )||(ipod_which_apply == 2 )||(ipod_third_apply == 1))?false:true) //btnIcon:(ipod_repeatStatus == StatusList.IPOD_REPEAT_ALL)?"qrc:MATERIAL/MATERIAL_M8X_ICON_REPEAT-LIST"+bgImageStyle // :(ipod_repeatStatus == StatusList.IPOD_REPEAT_ONE)?"qrc:MATERIAL/MATERIAL_M8X_ICON_REPEAT-ONE"+bgImageStyle // :"qrc:MATERIAL/MATERIAL_M8X_ICON_ORDER"+bgImageStyle btnIcon:(ipod_repeatStatus == StatusList.IPOD_REPEAT_ALL)?"qrc:MATERIAL/MATERIAL_ICON_REPEAT-LIST"+bgImageStyle :(ipod_repeatStatus == StatusList.IPOD_REPEAT_ONE)?"qrc:MATERIAL/MATERIAL_ICON_REPEAT-ONE"+bgImageStyle :"qrc:MATERIAL/MATERIAL_ICON_ORDER"+bgImageStyle //btnImg:playmode_button_repeat.pressed?"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle btnImg:playmode_button_repeat.pressed?"qrc:MATERIAL/MATERIAL_MEDIA_BUTTON_CIRCLE_P"+bgImageStyle:"qrc:MATERIAL/MATERIAL_MEDIA_BUTTON_CIRCLE"+bgImageStyle //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end onClicked: { if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { } else { //modify by Jiyulong for #210943 start 2017/10/13 if( StatusList.IPOD_SCAN_NOT_ERROR == ipod_scanErrorState && StatusList.HMI_IPOD_SCAN_FINISH == ipodCtrl.ipod_underwaySynchronization &&(Layout.HMI_SRC_PHONE != systemCtrl.getCurrentSource())) { // ipodCtrl.ipod_random_repeat_ModeClick(); if(ipod_repeatStatus == StatusList.IPOD_REPEAT_ALL) { ipodCtrl.ipod_repeatModeClick(StatusList.IPOD_REPEAT_ONE) } else if(ipod_repeatStatus == StatusList.IPOD_REPEAT_OFF) { ipodCtrl.ipod_repeatModeClick(StatusList.IPOD_REPEAT_ALL) } else if(ipod_repeatStatus == StatusList.IPOD_REPEAT_ONE) { ipodCtrl.ipod_repeatModeClick(StatusList.IPOD_REPEAT_OFF) } } //modify by Jiyulong for #210943 end } } } //Del Design 2017/3/14 cxx begin /* //Add #F0108 2016/11/24 liduo begin Image { id:hlineimg visible: true y:-1 //0 FOD #146075 2017/2/12 ld height: 20 source:"qrc:MATERIAL/MATERIAL_M8X_LINE_SPLIT-SCREEN_H2" + bgImageStyle; } */ //Del Design 2017/3/14 cxx end //Add #F0108 2016/11/24 liduo end onBMaxWindowChanged: { ipod_playbarscale = ipodCtrl.ipod_playbarscale //ADD #ST144156 2017/01/11 cxx begin //Del Design 2017/3/14 cxx begin //main_processbar_big.visible = bMaxWindow //main_processbar_small.visible = !bMaxWindow //Del Design 2017/3/14 cxx end //ADD #ST144156 2017/01/11 cxx end //Delete #145405 2017/3/28 cxx begin /* if (true == bMaxWindow) { ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_CLOSE } else { // Fod #ST146536 2017/01/22 cxx begin // main_processbar_small.enterValue = ipod_playbarscale * 690 main_processbar_small.enterValue = ipod_playbarscale * 660 // 690 // Fod #ST146536 2017/01/22 cxx end if (StatusList.IPOD_FOLDER_OPEN ==ipod_folderWindowState) { ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_OPEN } } */ //Delete #145405 2017/3/28 cxx end } Connections { target: ipodCtrl onIpod_playstatuschange: { ipod_playpausestatus = ipodCtrl.ipod_playstatus if(ipod_playpausestatus == StatusList.IPOD_PLAY) { //ipod_loadingState = StatusList.IPOD_END_LOADING } //Add 2017/3/28 for #160052 cxx begin ipod_playbarscale= ipodCtrl.ipod_playbarscale //Add 2017/3/28 for #160052 cxx end } onIpod_songinfochange: { //if(ipod_titlename != ipodCtrl.ipod_titleName) { ipod_titlename = ipodCtrl.ipod_titleName ipod_current_play_song.rolltext = ipod_titlename } if(ipod_artistname != ipodCtrl.ipod_artistName) { ipod_artistname = ipodCtrl.ipod_artistName } if(ipod_albumname != ipodCtrl.ipod_albumName) { ipod_albumname = ipodCtrl.ipod_albumName } } onIpod_underwaySynchronizationChanged: { if(StatusList.IPOD_OVER_CURRENT == ipod_overCurrentState) { ipodDisconnect.visible = false; ipod_no_file.visible = false; ipodLoading.visible = false ipod_artistName.visible = false //artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end ipodovercurrent.visible =true } else if((StatusList.HMI_IPOD_SCAN_FINISH == ipod_scanState)&&(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())) { ipodDisconnect.visible = false ipodLoading.visible = false //modify by Jiyulong for #210943 start 2017/10/13 ipod_scanErrorState = false //modify by Jiyulong for #210943 end if(ipodCtrl.ipod_get_allsong_num() == 0) { ipod_artistName.visible = false //artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false if(ipod_write_error_text.visible == false) { ipod_no_file.visible = true } main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin // main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end } else { ipod_no_file.visible = false if(ipod_write_error_text.visible == false) { ipod_artistName.visible = true ipod_current_play_song.visible = true } if(bMaxWindow == true) { //artist_album.visible = true } else { // artist_album.visible = false } //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = true //Del Design 2017/3/14 cxx end //Fod by cxx for CarPlay and ipod 2018/11/12 start //if(Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource()) if(Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource()||(((ipodCtrl.ipod_Ctrl_Get_whether_carplay_or_ipod()== 2)&&(Layout.HMI_SRC_CARPLAY_MUSIC == systemCtrl.getCurrentSource())))) //Fod by cxx for CarPlay and ipod 2018/11/12 end { if(ipod_write_error_text.visible == false) { main_processbar_small.dragflag = true } //Del Design 2017/3/14 cxx begin // main_processbar_big.dragflag = true //Del Design 2017/3/14 cxx end } } //ipodCtrl.ipod_getFolderListPath(0,"","","0",""); } //modify by Jiyulong for #216939 start 2017/11/21 else if((StatusList.HMI_IPOD_SCAN_NOT_FINISH == ipod_scanState)&&(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) && ( StatusList.IPOD_SCAN_NOT_ERROR == ipod_scanErrorState ) ) { //modify by Jiyulong for #216939 end ipodDisconnect.visible = false ipod_artistName.visible = false // artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false ipod_no_file.visible = false if(ipod_write_error_text.visible == false) { ipodLoading.visible = true } main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end } else if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { ipodLoading.visible = false ipod_artistName.visible = false //artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false ipod_no_file.visible = false ipodDisconnect.visible = true main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end } } onIpod_disconnect: { //ADD #ST144156 2017/01/11 cxx begin //Del Design 2017/3/14 cxx begin // main_processbar_big.visible = false // main_processbar_big.visible = bMaxWindow //Del Design 2017/3/14 cxx end main_processbar_small.visible = false //Fod Design 2017/3/14 cxx begin main_processbar_small.visible = true //!bMaxWindow //Fod Design 2017/3/14 cxx end //Del Design 2017/3/14 cxx begin // main_processbar_big.progress = 0 //Del Design 2017/3/14 cxx end main_processbar_small.enterValue = 0 ipod_ptime = "00:00:00" ipod_totaltime = "00:00:00" //ADD #ST144156 2017/01/11 cxx end //modify by Jiyulong for #210943 start 2017/10/13 ipod_scanErrorState = false //modify by Jiyulong for #210943 end ipod_write_error_text.visible = false //add by ghy 2019/5/14 if(StatusList.IPOD_OVER_CURRENT == ipod_overCurrentState) { ipodDisconnect.visible = false; ipod_no_file.visible = false; ipodLoading.visible = false ipod_artistName.visible = false // artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end ipodovercurrent.visible =true } else if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { ipodDisconnect.visible = true; ipod_no_file.visible = false; ipodLoading.visible = false ipod_artistName.visible = false //artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end playmode_button_shuffle.visible = true playmode_button_repeat.visible = true ipod_current_play_song.rolltext = "" } } onIpod_connect: { //Add IPC 2017/06/14 cxx begin iPod_disconnect_for_ipc.stop() //Add IPC 2017/06/14 cxx end if(StatusList.IPOD_OVER_CURRENT == ipod_overCurrentState) { ipodDisconnect.visible = false; ipod_no_file.visible = false; ipodLoading.visible = false ipod_artistName.visible = false //artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end ipodovercurrent.visible =true } else if((StatusList.HMI_IPOD_SCAN_FINISH == ipod_scanState)&&(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())) { ipodDisconnect.visible = false ipodLoading.visible = false if(ipodCtrl.ipod_get_allsong_num() == 0) { ipod_artistName.visible = false //artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false if(ipod_write_error_text.visible == false) { ipod_no_file.visible = true } main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin // main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end } else { ipod_no_file.visible = false if(ipod_write_error_text.visible == false) { ipod_artistName.visible = true ipod_current_play_song.visible = true } if(bMaxWindow == true) { //artist_album.visible = true } else { // artist_album.visible = false } //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = true //Del Design 2017/3/14 cxx end if(ipod_write_error_text.visible == false) { main_processbar_small.dragflag = true } //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = true //Del Design 2017/3/14 cxx end } } //modify by Jiyulong for #216939 start 2017/11/21 else if((StatusList.HMI_IPOD_SCAN_NOT_FINISH == ipod_scanState)&&(StatusList.DEVICE_IPOD_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) && ( StatusList.IPOD_SCAN_NOT_ERROR == ipod_scanErrorState ) ) { //modify by Jiyulong for #216939 end ipodDisconnect.visible = false ipod_artistName.visible = false // artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false ipod_no_file.visible = false if(ipod_write_error_text.visible == false) { ipodLoading.visible = true } main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end } } //Del Design 2017/3/14 cxx begin /* onIpod_coverPathchanged: { ipod_CoverPath = ipodCtrl.ipod_coveraddress if(ipod_CoverPath != "") { music_Picture_big.source = ipod_CoverPath music_cover_small.source = ipod_CoverPath } else { if(bMaxWindow == true) { music_Picture_big.source = "qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304"+bgImageStyle music_cover_small.source = "qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_400"+bgImageStyle } else { music_Picture_big.source = "qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_304"+bgImageStyle music_cover_small.source = "qrc:MATERIAL/MATERIAL_M8X_MUSIC_ALBUMS_DEFAULT_400"+bgImageStyle } } music_Picture_big.repaintUI() //music_cover_small.repaintUI() } */ //Del Design 2017/3/14 cxx end onIpod_allsong_zero: { console.log("00000000000000000000 ",ipodCtrl.ipod_getDeviceConnectStatus()) if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { console.log("111111111111111111111") return } if(eventid == 0) { ipodDisconnect.visible = false ipodLoading.visible = false ipod_artistName.visible = false //artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end if(ipod_write_error_text.visible == false) { ipod_no_file.visible = true } } else { ipod_no_file.visible = false if(StatusList.HMI_IPOD_SCAN_FINISH == ipod_scanState && ipod_write_error_text.visible == false) { ipod_artistName.visible = true //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = true //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = true } if((bMaxWindow == true)&&(StatusList.HMI_IPOD_SCAN_FINISH == ipod_scanState)) { //artist_album.visible = true } //Fod by cxx for CarPlay and ipod 2018/11/12 start //if(Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource()) if(Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource()||(((ipodCtrl.ipod_Ctrl_Get_whether_carplay_or_ipod()== 2)&&(Layout.HMI_SRC_CARPLAY_MUSIC == systemCtrl.getCurrentSource())))) //Fod by cxx for CarPlay and ipod 2018/11/12 end { if(ipod_write_error_text.visible == false) { main_processbar_small.dragflag = true } //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = true //Del Design 2017/3/14 cxx end } } } onIpod_ptimechange: { if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { } else { //Add #120136 2016/10/18 cxx Start if(ipod_seeking_end_flag == true) { ipod_seeking_end_flag = false if(ipod_playpausestatus == StatusList.IPOD_PAUSE ) { ipod_ptime = ipodCtrl.ipod_ptime ipod_totaltime=ipodCtrl.ipod_totaltime } } else //Add #120136 2016/10/18 cxx End { ipod_ptime = ipodCtrl.ipod_ptime ipod_totaltime=ipodCtrl.ipod_totaltime if(0 == isDrafting) { ipod_playbarscale=ipodCtrl.ipod_playbarscale main_processbar_small.enterValue = ipod_playbarscale * main_processbar_small.totalValue // main_processbar_small.enterValue = ipod_playbarscale * main_processbar_small.totalValue //main_processbar_small.progress =( ipodCtrl.ipod_playbarscale*360) //Del Design 2017/3/14 cxx begin //main_processbar_big.progress =( ipodCtrl.ipod_playbarscale*360) //Del Design 2017/3/14 cxx end } //Add 2017/3/28 for #160052 cxx begin else { ipod_playbarscale= ipodCtrl.ipod_playbarscale } //Add 2017/3/28 for #160052 cxx end } } } onIpod_totaltimechange: { if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { } else { ipod_totaltime = ipodCtrl.ipod_totaltime } } onIpod_shuffel_Changed: { if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { } else { ipod_shuffelStatus = ipodCtrl.ipod_shuffel_status if(ipod_shuffelStatus == StatusList.IPOD_RANDOM_ALL) { //DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin //playmode_button_shuffle.btnImg = "qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON_P"+bgImageStyle //DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end } else { //DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin //playmode_button_shuffle.btnImg = "qrc:MATERIAL/MATERIAL_M8X_MEDIA_BUTTON"+bgImageStyle //DEL by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end } } } onIpod_repeat_Changed: { if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { } else { ipod_repeatStatus = ipodCtrl.ipod_repeat_status if(ipod_repeatStatus == StatusList.IPOD_REPEAT_ALL) { //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin //playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_M8X_ICON_REPEAT-LIST"+bgImageStyle playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_ICON_REPEAT-LIST"+bgImageStyle //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end } else if(ipod_repeatStatus == StatusList.IPOD_REPEAT_OFF) { //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin //playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_M8X_ICON_ORDER"+bgImageStyle playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_ICON_ORDER"+bgImageStyle //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 end } else if(ipod_repeatStatus == StatusList.IPOD_REPEAT_ONE) { //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin //playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_M8X_ICON_REPEAT-ONE"+bgImageStyle playmode_button_repeat.btnIcon = "qrc:MATERIAL/MATERIAL_ICON_REPEAT-ONE"+bgImageStyle //FOD by wangyuecheng 2018/09/12 FOR #BF_IPOD_32 begin } } } onIpod_apply_changed: { if((ipod_which_apply ==1 )||(ipod_which_apply ==2 )||(ipod_third_apply == 1)) { playmode_button_shuffle.visible = false playmode_button_repeat.visible = false } else { playmode_button_shuffle.visible = true playmode_button_repeat.visible = true } } onIpodExtendedBodyStateChange: { //Delete #145405 2017/3/28 cxx begin /* if (StatusList.IPOD_FOLDER_CLOSE == ebodystate ) { ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_CLOSE ipod_folderWindowState=StatusList.IPOD_FOLDER_CLOSE } else if (StatusList.IPOD_EXTENDED_BODY_OPEN == ebodystate) { ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_OPEN ipod_folderWindowState=StatusList.IPOD_FOLDER_OPEN } */ //Delete #145405 2017/3/28 cxx end } //modify by Jiyulong for #210943 start 2017/10/13 onIpod_scan_isError: { ipodDisconnect.visible = false ipod_no_file.visible = false ipodLoading.visible = false ipod_artistName.visible = false ipod_current_play_song.visible = false main_processbar_small.dragflag = false ipod_scanErrorState = true } //modify by Jiyulong for #210943 end onIpod_write_error: { ipodDisconnect.visible = false ipod_no_file.visible = false ipodLoading.visible = false ipod_artistName.visible = false ipod_current_play_song.visible = false main_processbar_small.dragflag = false ipod_scanErrorState = false ipod_write_error_text.visible = true } } Connections { target: systemCtrl onSrcChangeOK: { //Fod by cxx for CarPlay and ipod 2018/11/12 start //if((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH)) if(((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())||((ipodCtrl.ipod_Ctrl_Get_whether_carplay_or_ipod()== 2)&&(Layout.HMI_SRC_CARPLAY_MUSIC == systemCtrl.getCurrentSource())))&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH)) //Fod by cxx for CarPlay and ipod 2018/11/12 end { if(ipod_write_error_text.visible == false) { main_processbar_small.dragflag = true } //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = true //Del Design 2017/3/14 cxx end } else { main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end } } onSrcChangeNG: { //Fod by cxx for CarPlay and ipod 2018/11/12 start //if((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH)) if(((Layout.HMI_SRC_IPOD == systemCtrl.getCurrentSource())||((ipodCtrl.ipod_Ctrl_Get_whether_carplay_or_ipod()== 2)&&(Layout.HMI_SRC_CARPLAY_MUSIC == systemCtrl.getCurrentSource())))&&(ipodCtrl.ipod_get_allsong_num() != 0)&&(ipod_scanState ==StatusList.HMI_IPOD_SCAN_FINISH)) //Fod by cxx for CarPlay and ipod 2018/11/12 end { if(ipod_write_error_text.visible == false) { main_processbar_small.dragflag = true } //Del Design 2017/3/14 cxx begin // main_processbar_big.dragflag = true //Del Design 2017/3/14 cxx end } else { main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin // main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end } } } //Add #145405 2017/3/28 cxx begin Connections { target:ScreenManager onFormchange: { //Fod #177708 2017/5/25 cxx begin //if(((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 3||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 2) //DEL 2018/09/27 for formChange begin //if(((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 3||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 2||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 4) // if(((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 3||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 2||((ScreenManager.getFormInfo(WindowsList.IPOD_SEARCH))&7) == 4) //Fod #177708 2017/5/25 cxx end // { // ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_OPEN // } // else // { // ipod_extendedbodystate=StatusList.IPOD_EXTENDED_BODY_CLOSE // } //DEL 2018/09/27 for formChange end } //shang xia ping fan zhuan zhong disconnect iPod begin //DEL 2018/09/27 for formChange // onExchangeStateChanged: // { // // if((exchangeState == false)&&(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus())) // { // if( ScreenManager.getZ3FromID()!= -1) // { // if( ScreenManager.getZ3FromID()==WindowsList.IPOD_SEARCH) // { // ScreenManager.changeForm(Layout.ACT_BACK,ScreenManager.getZ3FromID()); // } // } // } // } //shang xia ping fan zhuan zhong disconnect iPod end } //Add #145405 2017/3/28 cxx end Connections { target: USBControl1 onUsbOverCurrent: { ipod_overCurrentState = USBControl1.usb_overCurrentState if(StatusList.IPOD_OVER_CURRENT == ipod_overCurrentState) { ipodDisconnect.visible = false; ipod_no_file.visible = false; ipodLoading.visible = false ipod_artistName.visible = false //artist_album.visible = false //Del Design 2017/3/14 cxx begin //ipod_albumName.visible = false //Del Design 2017/3/14 cxx end ipod_current_play_song.visible = false main_processbar_small.dragflag = false //Del Design 2017/3/14 cxx begin //main_processbar_big.dragflag = false //Del Design 2017/3/14 cxx end ipodovercurrent.visible =true //Add #F0096 2016/11/16 cxx begin ipodCtrl.ipod_overcurrent() //Add #F0096 2016/11/16 cxx begin } else { ipodovercurrent.visible = false if(StatusList.DEVICE_NO_CONNECT == ipodCtrl.ipod_getDeviceConnectStatus()) { ipodDisconnect.visible = true } } } } //Add IPC 2017/06/14 cxx begin Timer{ id:iPod_disconnect_for_ipc interval: 200 repeat: true onTriggered: { if(systemCtrl.getCurrentSource()==Layout.HMI_SRC_DUMMY) { ipodCtrl.ipod_enter_disconnect() iPod_disconnect_for_ipc.stop() } } } //Add IPC 2017/06/14 cxx end }