summaryrefstree
path: root/usr/bin/qml_link/AppLink/Com/App_HMILocationMenu.qml
blob: e94687e8f9dc1d0862763bac0405e20d84ca62d5 (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
/*
 * =====================================================================================
 *
 *       Filename:  App_HMILocationMenu.qml
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  2016-1-5 15:50
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  jliu.neu, jliu.neu@neusoft.com
 *   Organization:  www.neusoft.com
 *
 * =====================================================================================
 */
//import "../../eventsList.js" as EventsList
import "../../windowsList.js" as WindowsList
import "../../layoutList.js" as Layout
import "../search.js" as Search
import QtQuick 2.0
import Label 2.0
Image{
    id:locationMenu

    Image{

        id: locationmenu

        MouseArea{
            id: mapMouseArea
            anchors.fill: parent
        }
        Row{
            id:locationmenu_row
            spacing: 0
            anchors.top:  locationmenu.top

            //===========================srchBtn===========================//
            HMIButton{
                id: srchBtn
                width:218
                height: 78
                btnImg: srchBtn.pressed?imagePath_navi+"M8X_NAVI_Button_w218_p.png":imagePath_navi+"M8X_NAVI_Button_w218.png"
                Image{
                    id:srchBtn_icon
                    x:183-90
                    y:1054-1041
                    source:imagePath_navi+"M8X_icon_Search.png"
                }
                HMILabel{
                    id:srchBtn_Text
                    x:54
                    y:52
                    width : 108
                    height: 20
                    font.pixelSize:18
                    verticalAlignment: Text.AlignTop
                    text:qsTr("检索") + applinkControl.qsEmptyString
                }

                onClicked:
                {
                    applinkControl.QML_SSPLink_ToKeyCrossMain(Search.FromLocation_1)
                    ScreenManager.forward(Layout.APPLINK,WindowsList.APP_NAVI_SRCHKEYCROSSMAIN)
                }
            }


            //===========================rdBtn===========================//
            HMIButton{
                id: rdBtn
                width:218
                height: 78
                btnImg:rdBtn.pressed?imagePath_navi+"M8X_NAVI_Button_w218_p.png":imagePath_navi+"M8X_NAVI_Button_w218.png"
                Image{
                    id:rdBtn_icon
                    x:400-308
                    y:1060-1041
                    source:imagePath_navi+"M8X_icon_itinerary-planning.png"
                }
                HMILabel{
                    id:rdBtn_Text
                    x:54
                    y:52
                    width : 108
                    height: 20
                    font.pixelSize:18
                    verticalAlignment: Text.AlignTop
                    text:qsTr("路线") + applinkControl.qsEmptyString
                }

                onClicked:{
                    ScreenManager.forward(Layout.APPLINK,WindowsList.APP_ROUTE_MAIN)
                }
            }
            //===========================aroBtn===========================//
            HMIButton{
                id: aroBtn
                width:218
                height: 78
                btnImg:aroBtn.pressed?imagePath_navi+"M8X_NAVI_Button_w218_p.png":imagePath_navi+"M8X_NAVI_Button_w218.png"
                Image{
                    id:aroBtn_icon
                    x:618-526
                    y:1054-1041
                    source:imagePath_navi+"M8X_icon_Around.png"
                }
                HMILabel{
                    id:aroBtn_Text
                    x:54
                    y:52
                    width : 108
                    height: 20
                    font.pixelSize:18
                    verticalAlignment: Text.AlignTop
                    text:qsTr("周边") + applinkControl.qsEmptyString
                }

                onClicked:{
                    applinkControl.QML_NIF_Poi_GetQuickKind()
                    applinkControl.QML_SSPLink_iSetSrhArdMode(0)
                    ScreenManager.forward(Layout.APPLINK,WindowsList.AP_NAVI_SRCHAROUNDMAIN)
                }
            }
            //===========================fucBtn===========================//
            HMIButton{
                id: fucBtn
                width:216
                height: 78
                btnImg:fucBtn.pressed?imagePath_navi+"M8X_NAVI_Button_w216_p.png":imagePath_navi+"M8X_NAVI_Button_w216.png"
                Image{
                    id:fucBtn_icon
                    x:838-744
                    y:1059-1041
                    source:imagePath_navi+"M8X_icon_Function.png"
                }
                HMILabel{
                    id:fucBtn_Text
                    x:54
                    y:52
                    width : 108
                    height: 20
                    font.pixelSize:18
                    verticalAlignment: Text.AlignTop
                    text:qsTr("功能") + applinkControl.qsEmptyString
                }

                onClicked:{
                    ScreenManager.forward(Layout.APPLINK,WindowsList.APP_FUNCTION_MAIN)
                }
            }

        }
    }
}