summaryrefstree
path: root/usr/bin/qml_link/AppLink/Com/App_HMICrossInfo.qml
blob: 92645f075959570bf96fa8d598ee1e6bb46e316e (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
/*
 * =====================================================================================
 *
 *       Filename:  App_HMICrossInfo.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 AppLinkImageLibrary 1.0
import QtQuick 2.0
import Label 2.0
Rectangle {
    id:crossInfo
    width: 400
    height: 480
    visible: false
    color:"#00000000"

    Connections{
        target:applinkControl
            
        onSignal_CrossViewSupdate:{
            if( visible ){
                crossRute_info.text = applinkControl.QML_cutStringForDisplay(qViewName, 6)
                tolDist.text = qTolDist+qDistType
                crossBar_img.height = iCount
                applinkImage.text="imageupdate"
            }
        }
    }

    MouseArea{
        width: 401
        height: 423
        onClicked: {

        }
    }
    //===========================applinkImage===========================//
    AppLinkImageViewer{
        id:applinkImage
        width:400
        height:480
    }
    //===========================crossRute===========================//
    Image{
        id:crossRute
        x:0
        y:10
        source:imagePath_navi+"M8X_street-name_bg.png"
        HMILabel{
            id: crossRute_info
            x:13
            y:25
            width:270
            height:30
            elide:Text.ElideRight
            font.pixelSize: 30
        }
    }
    //===========================crossBar===========================//
    Image{
        id:crossbar
        x:911-560//351
        y:418-259//159
        source: imagePath_navi+"M8X_Bar_BG.png"
        Image{
            id:crossBar_img
            x:3
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 3
            width:19
            height: 0
            source: imagePath_navi+"M8X_Route.png"
        }
     }
    Text{
        id:restDist
        x:900-560//340
        y:385-259//130
        text:"0m"
        font.pixelSize: 20
        color: "black"
    }
    Text{
        id:tolDist
        x:892-560//335
        y:688-259//432
        font.pixelSize: 20
        color: "black"
    }
}