import QtQuick 2.0 import "Com" import "../eventsList.js" as EventsList import "../layoutList.js" as Layout import "../windowsList.js" as WindowsList import "search.js" as Search import Label 2.0 HMIWindow{ id:app_OtherSetting // windowImgSource:imagePath+"Common/M8X_Background.png" title: qsTr("其他") + applinkControl.qsEmptyString property bool bIsHomeExist:false property int iMsgType:0 onSignal_returnClick:{ ScreenManager.backward(Layout.APPLINK) } onVisibleChanged: { if(visible){ bIsHomeExist = applinkControl.QML_NIF_Poi_IsHomeExist() }else{ popMenu.visible=false } } Connections{ target:applinkControl onSignal_AddHome:{ if(visible){ msg_PopUp.visible = true iMsgType = 12 msg_timer.restart() } } } HMIButton{ y: 1041-160 btnIcon: imagePath+"Navi/common/M8X_icon_close.png" btnImg:pressed?imagePath+"Navi/common/M8X_Function_close_Button_p.png":imagePath+"Navi/common/M8X_Function_close_Button.png" onClicked:{ applinkControl.QML_CloseAppLink() //ScreenManager.changeForm(Layout.FM_CLOSE,WindowsList.APP_OTHER_SETTING) } } //切换到大分类设施选择画页按钮 HMIButton{ id: allBtn x: 90 y: 1041-160 enabled: false btnImg: imagePath+"M8X_Function_1_Button_NoSwitch.png" btnImgOnPressed: imagePath+"M8X_Function_1_Button_NoSwitch_p.png" } //tags HMIButton { id: tag1 x: 0 y: 965-160 btnImg:tag1.pressed?imagePath+"Navi/TypeB_Search/Search_B-09_seach_gjz_select/M8X_Tag_Button_w319_p.png":imagePath+"Navi/TypeB_Search/Search_B-09_seach_gjz_select/M8X_Tag_Button_w318.png" //labelText : qsTr("Display") + systemCtrlLink.emptyString *-* labelText : qsTr("显示") + applinkControl.qsEmptyString labelSize : 30 onClicked: { ScreenManager.replace(Layout.APPLINK,WindowsList.APP_DISPLAY_SETTING) } } HMIButton { id: tag2 x: 321 y: 965-160 btnImg:tag2.pressed?imagePath+"Navi/TypeB_Search/Search_B-09_seach_gjz_select/M8X_Tag_Button_w319_p.png":imagePath+"Navi/TypeB_Search/Search_B-09_seach_gjz_select/M8X_Tag_Button_w319.png" labelText: qsTr("导航") + applinkControl.qsEmptyString labelSize : 30 onClicked: { ScreenManager.replace(Layout.APPLINK,WindowsList.APP_GUIDE_SETTING) } } HMIButton { id: tag3 x: 641 y: 965-160 btnImg:imagePath+"Navi/TypeB_Search/Search_B-09_seach_gjz_select/M8X_Tag_Button_w319_p.png" labelText: qsTr("其他") + applinkControl.qsEmptyString enabled: false labelSize : 30 } HMIListView { id: listView x: 58 y: 241-160 width: 842 height: 80*4 snapMode:ListView.SnapToItem model:modelData currentIndex:0 delegate:delegate_List boundsBehavior: Flickable.StopAtBounds } Component{ id: delegate_List Item { width: 842 height:80 HMIButton{ id:listPushed btnImg:listPushed.pressed?imagePath+"Navi/common/M8X_list_78_p.png":imagePath+"Navi/common/M8X_list_78.png" HMILabel{ id:listText x:84 width:parent.width height:parent.height horizontalAlignment: Label.AlignLeft font.pixelSize: 30 text: switch(index) { case 0: (bIsHomeExist == true)?(qsTr("家庭住址变更") + applinkControl.qsEmptyString):(qsTr("家庭住址设定") + applinkControl.qsEmptyString) break; case 1: qsTr("恢复出厂值") + applinkControl.qsEmptyString break; case 2: qsTr("关于") + applinkControl.qsEmptyString break; default: break; } } onClicked: { switch(index) { case 0: applinkControl.QML_SSPLink_SetSearchType(3) applinkControl.QML_SSPLink_ToKeyCrossMain(Search.Fromothersetting) ScreenManager.forward(Layout.APPLINK,WindowsList.APP_NAVI_SRCHKEYCROSSMAIN) break; case 1: popMenu.visible = true break; case 2: ScreenManager.forward(Layout.APPLINK,WindowsList.APP_OTHER_SETTING_ABOUT) break; default: break; } } } } } ListModel{ id:modelData ListElement{ name: "家庭住址设定" } ListElement{ name: "恢复出厂值" } ListElement{ name: "其他" } } HMIListViewBar{ id: listViewBar listView:listView scrollBarX:779 scrollBarY:118 scrollBarHeight: 290 visible: false clip:true } App_Com_Popup2btn{ id:popMenu newspopText: qsTr("是否恢复出厂值?") + applinkControl.qsEmptyString btnTextLeft: qsTr("是") + applinkControl.qsEmptyString btnTextRight: qsTr("否") + applinkControl.qsEmptyString onSignal_btnLeftClick:{ popMenu.visible=false if(applinkControl.QML_NIF_Reset() == 0){ ScreenManager.backward(Layout.APPLINK,WindowsList.APP_FUNCTION_MAIN) } } } //===========================msg_PopUp===========================// App_Com_Newspopup{ id:msg_PopUp labelCount:1 newspopText1: qsTr(applinkControl.QML_getMessageString(iMsgType)) + applinkControl.qsEmptyString visible:(iMsgType > 0)?true:false bIsTouchClear:applinkControl.QML_getMessageTouchClearFlag(iMsgType) } Timer{ id:msg_timer interval: applinkControl.QML_getMessageTime(iMsgType) onTriggered: { msg_PopUp.visible = false iMsgType = 0 } } }