blob: bb0257bec8ab4166be49754892df18342def85ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
|
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
}
}
}
|