summaryrefslogtreecommitdiff
path: root/SDL_Core/src/components/qt_hmi/References/Look/Layouts/FMLayoutPCA.qml
blob: fd211b3c97428877a9934953798c5556436f1c79 (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 com.ford.hmiframework 1.0
import "../Widgets"

FLayout {
    id: fmLayout
    width: 800
    height: 480

    property alias sourceBtn: sourceBtn
    property alias tuneBtn: tuneBtn
    property alias hdBtn: hdBtn
    property alias stationTxt: stationTxt.text
    property alias freqId: freqId.text
    property alias listModel: thePresets.listModel
    property alias artist: artistTxt.text
    property alias curHD: hdBtn.curHD
    property alias totHD: hdBtn.totHD
    property alias curPreset: thePresets.currPreset
    property alias moving: thePresets.moving
    property alias direction: thePresets.direction
    property bool page1: true





    FWdgtImage{
        bitmap: "Radio/Ford-HMI-PCA-audio_fm_sirius.png"
        visible: false
    }

    TouchButton_PCA{
        id: sourceBtn
        x:25
        y:80
        textWidth: 100
        text: "FM Radio"

    }

    TouchButton_PCA{
        id: tuneBtn
        anchors.right: fmLayout.right
        anchors.rightMargin: 25
        y:80
        textWidth: 55
        text: "Tune"

    }

    BaseText{
        id: stationTxt
        x:25
        y:155
        pxSize: 45
        text: "96.3"
        color: "#1d81d5"
        theFont: "../Fonts/HelveticaNeueLTCom-Lt.ttf"

    }

    BaseText{
        id: freqId
        anchors.left: stationTxt.right
        anchors.leftMargin: 5
        anchors.bottom: stationTxt.bottom
        anchors.bottomMargin: 4
        text: "FM"
        color: "#1d81d5"
        pxSize: 22
        theFont: "../Fonts/HelveticaNeueLTCom-Lt.ttf"

    }

    BaseText{
        id: trackTxt
        x:25
        y:212
        text: "So Far Around The Bend"
        color: "#1d81d5"
        theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
        pxSize: 22


    }

    BaseText{
        id: artistTxt
        x:25
        y:240
        text: "The National"
        color: "#1d81d5"
        theFont: "../Fonts/HelveticaNeueLTStd-Md.ttf"
        pxSize: 22
    }

    TouchButtonSpecial_PCA{
        id: hdBtn
        x:25
        y:288
        textWidth: 120
        bitmap: "Radio/HD Logo.png"
        bitmap2: "Radio/HD Logo1.png"
        imageShift: -9
        spacing: 0
        text: "  1 "
        text1: "2"
        text2: " 3 4"

    }

    Rectangle{
        x:25
        y: 365
        height:1
        width: 750
        color: "#1d81d5"
    }


    PresetsGridPCA{
        id: thePresets
        x:0
        y:365

    }

    FWdgtImage{
        id: swipeIcon1
        bitmap: "Radio/whiteBall.png"
        x: 389
        y: 381
    }

    FWdgtImage{
        id: swipeIcon2
        bitmap: "Radio/blueBall.png"
        x: 404
        y: 381
    }

    FViewUseCaseSimple{condition: fmLayout.page1===false
        PropertyChanges{
            target: swipeIcon2; bitmap: "Radio/whiteBall.png"
        }
        PropertyChanges{
            target: swipeIcon1; bitmap: "Radio/blueBall.png"
        }
    }

}