blob: 706f05e0c2572d5a592cf27b2979f41b7977c9b5 (
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
|
import QtQuick 2.0
import "../com/neusoft/auto/widgets"
import "coordinate.js" as CONFIG
import "FuncList.js" as Func
import "../layoutList.js" as Layout
HMICenterWindow
{
id: radio_main
Item
{
id: radio_window
onVisibleChanged:
{
console.log("RadioDashBoard visible")
}
Component.onCompleted:
{
console.log("RadioDashBoard onCompleted")
}
Image
{
id: main_img
x:comX
y:comY
width:800
height:350
source:CONFIG.MAIN_IMG
}
Image
{
x:comX
y:comY
width:800
height:350
source:CONFIG.BG_IMG_All
}
Text
{
id: band_txt
x:300
y:300
height:50
width:70
text: "FM"
color: "white"
font.pixelSize: 65
}
Text
{
id: freq_txt
x:512
y:300
width: 30
height: band_txt.height
text: "87.5"
color: "white"
font.pixelSize: 65
}
Image
{
id: stereo_image
x: 700
y: 300
source:"../images/Type_L_Radio/Radio_Icon_Stereo.png"
visible: true
}
Item
{
id: freq_Unit
x:700
y:345
width: freq_Unit_Img.width
height: freq_Unit_Img.height
Image
{
id: freq_Unit_Img
source: "../images/Type_L_Radio/Radio_MainMenu_Font_MHz.png"
}
}
}
/*========================================Connections start=============================================*/
Connections
{
target: dashRadioCtrl
onDataResult:
{
console.log("onDataResult" + freq)
console.log("onDataResult" + currentBand)
freq_txt.text = freq
if ((currentBand == 0) || (currentBand == 1) || (currentBand == 2))
{
band_txt.text = "FM"
freq_Unit_Img.source = "../images/Type_L_Radio/Radio_MainMenu_Font_MHz.png"
}
else if ((currentBand == 3) || (currentBand == 4))
{
band_txt.text = "AM"
freq_Unit_Img.source = "../images/Type_L_Radio/Radio_MainMenu_Font_kHz.png"
}
}
}
/*========================================Connections End=============================================*/
}
|