blob: 39db455c7dcc8ee46ce13a0852c748531ddd6225 (
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
|
import Qt 4.7
Item {
id: root
width: 800
height: 480
Script {
source: "rangemodel.js";
}
Image {
id: tunerBg
x: 81
y: 86
source: "images/scala_bg.png"
}
StationsModel{
id:stationsModel;
}
ListView {
id: radiosList;
x: 68;
y: 86;
width: 638;
height: 270;
orientation: "Horizontal"
model: createModel(stationsModel);
delegate: scaleDelegate;
highlightMoveSpeed: -1;
highlightRangeMode: "StrictlyEnforceRange"
//interactive: false;
}
Component {
id: scaleDelegate;
RangeStation {
width: 29;
height: 266;
stationRange: model.stationRange;
kind: model.kind;
station: model.station;
stationName: model.stationName;
}
}
Image {
id: buttonNext;
x: 719
y: 86
source: "images/bt_next.png"
MouseArea {
anchors.fill: parent;
onClicked: {
gotoNextStation(radiosList, stationName, stationDial);
}
}
}
Image {
id: buttonPrevious;
x: 0
y: 86
source: "images/bt_prev.png"
MouseArea {
anchors.fill: parent;
onClicked: {
gotoPreviousStation(radiosList, stationName, stationDial);
}
}
}
Image {
id: bottomBar;
x: 0
y: 355
source: "images/bottom.png"
}
Image {
id: topBar;
x: 0
y: 58
source: "images/top.png"
}
Image {
id: placeHolder;
x: 0
y: 0
source: "images/placeholder_n900_bar.png"
}
Image {
id: image1
x: 81
y: 86
source: "images/scala_glass.png"
}
Image {
id: image2
x: 198
y: 117
source: "images/scala_needle.png"
}
Text {
id: stationName
x: 198
y: 377
width: 404
height: 46
color: "#ffffff"
styleColor: "#ffffff"
horizontalAlignment: "AlignHCenter"
font.pointSize: 35
font.family: "Nokia Sans"
}
Text {
id: stationDial
x: 290
y: 422
width: 220
height: 32
color: "#eaeaeb"
font.pointSize: 25
font.family: "Nokia Sans"
styleColor: "#eaeaeb"
horizontalAlignment: "AlignHCenter"
}
Component.onCompleted:{
radiosList.currentIndex = gotoradioIndex(0);
radiosList.highlightMoveSpeed = 1000;
stationName.text = setStationName(0);
stationDial.text = setStationDial(0);
}
}
|