blob: 93bc52cd0aecf5f384d0307f63653feb9e5befaf (
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
|
import QtQuick 2.0
import "../AppLink/Com"
import "../windowsList.js" as WindowsList
import "../layoutList.js" as Layout
import "../eventsList.js" as EventsList
import "../AppLink/search.js" as Search
Rectangle {
id:app_LocationMove
width: 960
height: 960
color:"#00000000"
property int iScaleLevel:0
property int iAzimuth:0
property int iFalseCount: 0
property string imagePath_navi: "/usr/bin/qml_link/images/AppLink/"
Component.onCompleted:{
iScaleLevel = applinkControl.QML_NIF_Map_GetCurScale(false)
location_com.iScale = iScaleLevel
iAzimuth = applinkControl.QML_NIF_Map_GetAzimuth(false);
location_com.iDirType = iAzimuth
}
onVisibleChanged: {
if(visible){
// ScreenManager.changeForm(Layout.FM_OPACITY_START,WindowsList.APP_LOCATION_MOVE)
// systemCtrlLink.changWindowlayer(Layout.PHONENAVI_LAYER,Layout.LayerShow)
iFalseCount = 0
location_com.iScale = iScaleLevel
location_com.iDirType = iAzimuth
applinkControl.QML_NIF_Map_SetScale(iScaleLevel,false)
applinkControl.QML_NIF_Map_SetAzimuth(iAzimuth,false)
}else{
iScaleLevel = applinkControl.QML_NIF_Map_GetCurScale(false);
iAzimuth = applinkControl.QML_NIF_Map_GetAzimuth(false);
msg_PopUp.visible = false
scrollMenu.iMsgType = 0
if(1 === applinkControl.QML_GetCusStatus()){ //calculating status
applinkControl.QML_NIF_Cus_CancelRoute()
}
}
}
Connections{
target:applinkControl
onSignal_CalcRouteFinish:{
if(visible){
if(bIsFinish){
applinkControl.QML_SetCurrentType(iFalseCount)
iFalseCount = 0
msg_PopUp.visible = false;
scrollMenu.iMsgType = 0
ScreenManager.forward(Layout.APPLINK,WindowsList.APP_NAVI_VIEWROUTE)
applinkControl.QML_NIF_Cus_GetCusStatus();
}else{
if(++iFalseCount === 4 ){
iFalseCount = 0
msg_PopUp.visible = false;
scrollMenu.iMsgType = 0
scrollMenu.iMsgType = 7
msg_PopUp.visible = true
msg_timer.restart()
}
}
}
}
}
//===========================location_com===========================//
App_LocationComponent{
id:location_com
bMapMove: true
}
//===========================back_home===========================//
Image{
id:menuBackground
y:881
visible: location_com.bLongPress?false:true
source: imagePath_navi+"M8X_Function_Button_bg.png"
}
HMIButton{
id: back_home
y:881
visible: location_com.bLongPress?false:true
btnImgOnPressed: imagePath_navi +"M8X_Function_close_Button_p.png"
btnImg: imagePath_navi+"M8X_Function_close_Button.png"
btnIcon: imagePath_navi+"M8X_icon_close.png"
onClicked:{
applinkControl.QML_CloseAppLink()
//ScreenManager.changeForm(Layout.FM_CLOSE,WindowsList.APP_LOCATION_MOVE)
}
}
//===========================back==============================//
HMIButton{
id:back
x:0
y:853-160
visible: location_com.bLongPress?false:true
btnImgOnPressed: imagePath_navi +"M8X_Location_Button_p.png"
btnImg: imagePath_navi+"M8X_Location_Button.png"
//btnIcon: imagePath_navi+"M8X_icon_Car_mark.png"
Image{
x:26-0
y:870-853
source:imagePath_navi+"M8X_icon_Car_mark.png"
}
onClicked: {
ScreenManager.backward(Layout.APPLINK,WindowsList.APP_LOCATION)
}
}
//===========================scrollMenu===========================//
App_HMIScrollMenu{
id: scrollMenu
x:0
y:0
visible: location_com.bLongPress?false:true
}
HMIWindowLine{
}
//===========================msg_PopUp===========================//
App_Com_Newspopup{
id:msg_PopUp
labelCount:1
newspopText1: qsTr(applinkControl.QML_getMessageString(scrollMenu.iMsgType)) + applinkControl.qsEmptyString
visible:(scrollMenu.iMsgType > 0)?true:false
bIsTouchClear:applinkControl.QML_getMessageTouchClearFlag(scrollMenu.iMsgType)
}
// Loading
// {
// id:poploading
// visible: (iMsgType == 1)?true:false
// loadingText:applinkControl.QML_getMessageString(scrollMenu.iMsgType)
// }
Timer{
id:msg_timer
interval: applinkControl.QML_getMessageTime(scrollMenu.iMsgType)
onTriggered: {
msg_PopUp.visible = false
scrollMenu.iMsgType = 0
}
}
}
|