summaryrefslogtreecommitdiff
path: root/uisimulator/common/sim_icons.c
diff options
context:
space:
mode:
authorMats Lidell <matsl@rockbox.org>2002-10-31 17:34:07 +0000
committerMats Lidell <matsl@rockbox.org>2002-10-31 17:34:07 +0000
commit0d79fa127dfc1f5650d3701a174983de8f9e5e4d (patch)
tree99a5cd5225b92439e219e3936ce20ce925163165 /uisimulator/common/sim_icons.c
parent097bd10680fca4e746d882e5d8be93eecf43dd83 (diff)
downloadrockbox-0d79fa127dfc1f5650d3701a174983de8f9e5e4d.tar.gz
rockbox-0d79fa127dfc1f5650d3701a174983de8f9e5e4d.zip
Icons created.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2792 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common/sim_icons.c')
-rw-r--r--uisimulator/common/sim_icons.c493
1 files changed, 404 insertions, 89 deletions
diff --git a/uisimulator/common/sim_icons.c b/uisimulator/common/sim_icons.c
index 1ec387c81d..2012e06e0e 100644
--- a/uisimulator/common/sim_icons.c
+++ b/uisimulator/common/sim_icons.c
@@ -28,81 +28,390 @@
28 28
29extern void lcd_print_icon(int x, int icon_line, bool enable, char **icon); 29extern void lcd_print_icon(int x, int icon_line, bool enable, char **icon);
30 30
31static char* icon_battery_3[]= 31static char* icon_battery_bit[]=
32 { 32{
33 "*************** ", 33 "------",
34 "* * ", 34 "------",
35 "* ** ** ** * ", 35 "------",
36 "* ** ** ** ***", 36 "******",
37 "* ** ** ** ***", 37 "******",
38 "* ** ** ** ***", 38 "******",
39 "* ** ** ** * ", 39 "******",
40 "* * ", 40 "******",
41 "*************** ",NULL 41 "******",
42 }; 42 "******",
43static char* icon_battery_2[]= 43 "******",
44 { 44 "******",
45 "*************** ", 45 "******",
46 "* * ", 46 "******",
47 "* ** ** * ", 47 "******",
48 "* ** ** ***", 48 "******",
49 "* ** ** ***", 49 "------",
50 "* ** ** ***", 50 "------",
51 "* ** ** * ", 51 "------",
52 "* * ", 52 NULL
53 "*************** ",NULL 53};
54 }; 54
55static char* icon_battery_1[]=
56 {
57 "*************** ",
58 "* * ",
59 "* ** * ",
60 "* ** ***",
61 "* ** ***",
62 "* ** ***",
63 "* ** * ",
64 "* * ",
65 "*************** ",NULL
66 };
67static char* icon_battery[]= 55static char* icon_battery[]=
68 { 56{
69 "*************** ", 57 " ********************************** ",
70 "* * ", 58 "* * ",
71 "* * ", 59 "* * ",
72 "* ***", 60 "* * ",
73 "* ***", 61 "* * ",
74 "* ***", 62 "* *****",
75 "* * ", 63 "* *****",
76 "* * ", 64 "* *****",
77 "*************** ",NULL 65 "* *****",
78 }; 66 "* *****",
67 "* *****",
68 "* *****",
69 "* *****",
70 "* *****",
71 "* * ",
72 "* * ",
73 "* * ",
74 "* * ",
75 " ********************************** ",
76 NULL
77};
79 78
80static char* icon_volume[]= 79static char* icon_volume[]=
81 { 80{
82 "* * * ", 81 " ",
83 "* * * ", 82 " ",
84 "* * * ", 83 " ",
85 " * * * ", 84 " ",
86 " * * * ", 85 " ",
87 " * * * * ", 86 " ",
88 " * * * * ", 87 "* * * ",
89 " * * * * ", 88 "* * * ",
90 " * * * ",NULL 89 " * * * ",
91 }; 90 " * * * ",
92static char* icon_volume_1[]={NULL}; 91 " * * * ",
93static char* icon_volume_2[]={NULL}; 92 " * * * ",
94static char* icon_volume_3[]={NULL}; 93 " * * * ",
95static char* icon_volume_4[]={NULL}; 94 " * * ** * ",
96static char* icon_volume_5[]={NULL}; 95 " * * * * * ",
97 96 " * * * * * ",
98static char* icon_pause[]={NULL}; 97 " * * * * * ",
99static char* icon_play[]={NULL}; 98 " * * * * * ",
100static char* icon_record[]={NULL}; 99 " * ** * ",
101static char* icon_usb[]={NULL}; 100 NULL
102static char* icon_audio[]={NULL}; 101};
103static char* icon_param[]={NULL}; 102
104static char* icon_repeat[]={NULL}; 103static char* icon_volume_1[]=
105static char* icon_repeat2[]={NULL}; 104{
105 " ",
106 " ",
107 " ",
108 " ",
109 " ",
110 " ",
111 " ",
112 " ",
113 " ",
114 " ",
115 " ",
116 " ",
117 " ",
118 " ",
119 " ",
120 " ",
121 "**",
122 "**",
123 "**",
124 NULL
125};
126
127static char* icon_volume_2[]=
128{
129 " ",
130 " ",
131 " ",
132 " ",
133 " ",
134 " ",
135 " ",
136 " ",
137 " ",
138 " ",
139 " ",
140 " ",
141 " ",
142 "**",
143 "**",
144 "**",
145 "**",
146 "**",
147 "**",
148 NULL
149};
150
151static char* icon_volume_3[]=
152{
153 " ",
154 " ",
155 " ",
156 " ",
157 " ",
158 " ",
159 " ",
160 " ",
161 " ",
162 " ",
163 "**",
164 "**",
165 "**",
166 "**",
167 "**",
168 "**",
169 "**",
170 "**",
171 "**",
172 NULL
173};
174
175static char* icon_volume_4[]=
176{
177 " ",
178 " ",
179 " ",
180 " ",
181 " ",
182 " ",
183 " ",
184 "**",
185 "**",
186 "**",
187 "**",
188 "**",
189 "**",
190 "**",
191 "**",
192 "**",
193 "**",
194 "**",
195 "**",
196 NULL
197};
198
199static char* icon_volume_5[]=
200{
201 " ",
202 " ",
203 " ",
204 " ",
205 "**",
206 "**",
207 "**",
208 "**",
209 "**",
210 "**",
211 "**",
212 "**",
213 "**",
214 "**",
215 "**",
216 "**",
217 "**",
218 "**",
219 "**",
220 NULL
221};
222
223static char* icon_pause[]=
224{
225 "**** ****",
226 "**** ****",
227 "**** ****",
228 "**** ****",
229 "**** ****",
230 "**** ****",
231 "**** ****",
232 "**** ****",
233 "**** ****",
234 "**** ****",
235 "**** ****",
236 "**** ****",
237 "**** ****",
238 "**** ****",
239 "**** ****",
240 "**** ****",
241 "**** ****",
242 "**** ****",
243 "**** ****",
244 NULL
245};
246
247static char* icon_play[]=
248{
249 "** ",
250 "**** ",
251 "****** ",
252 "******** ",
253 "********** ",
254 "************ ",
255 "************** ",
256 "**************** ",
257 "****************** ",
258 "******************** ",
259 "****************** ",
260 "**************** ",
261 "************** ",
262 "************ ",
263 "********** ",
264 "******** ",
265 "****** ",
266 "**** ",
267 "** ",
268 NULL
269};
270
271static char* icon_record[]=
272{
273 " ",
274 " ",
275 " ",
276 " ",
277 " *** ",
278 " ********* ",
279 " ************* ",
280 " *************** ",
281 "*****************",
282 "*****************",
283 "*****************",
284 " *************** ",
285 " ************* ",
286 " ********* ",
287 " *** ",
288 " ",
289 " ",
290 " ",
291 " ",
292 NULL
293};
294
295static char* icon_usb[]=
296{
297 " ",
298 " ",
299 " ************************** ",
300 " ** **** ",
301 " ** ",
302 " ** ",
303 " ** ",
304 " ** ",
305 " ** ",
306 " **** ** **** ",
307 "***************************************************",
308 " **** ** **** ",
309 " ** ",
310 " ** ",
311 " ** ",
312 " ** ",
313 " *** *** ",
314 " ***************** ",
315 " ",
316 NULL
317};
318
319static char* icon_audio[]=
320{
321 " ************************************** ",
322 " ****************************************** ",
323 " ** ** ",
324 " ** ** ",
325 " ** **** ** ** ****** ** **** ** ",
326 "** ****** ** ** ******* ** ****** **",
327 "** ** ** ** ** ** ** ** ** ** **",
328 "** ** ** ** ** ** ** ** ** ** **",
329 "** ** ** ** ** ** ** ** ** ** **",
330 "** ** ** ** ** ** ** ** ** ** **",
331 "** ******** ** ** ** ** ** ** ** **",
332 "** ******** ** ** ** ** ** ** ** **",
333 "** ** ** ** ** ** ** ** ** ** **",
334 "** ** ** ****** ******* ** ****** **",
335 " ** ** ** **** ****** ** **** ** ",
336 " ** ** ",
337 " ** ** ",
338 " ****************************************** ",
339 " ************************************** ",
340 NULL
341};
342
343static char* icon_param[]=
344{
345 " ********************************************** ",
346 " ************************************************** ",
347 " ** ** ",
348 " ** ** ",
349 " ** ******* **** ******* ***** ** ** ** ",
350 "** ******** ****** ******** ******* ** ** **",
351 "** ** ** ** ** ** ** ** ** *** *** **",
352 "** ** ** ** ** ** ** ** ** *** *** **",
353 "** ** ** ** ** ** ** ** ** **** **** **",
354 "** ** ** ** ** ** ** ** ** ** **** ** **",
355 "** ******** ******** ******** ******** ** **** ** **",
356 "** ******* ******** ******* ******** ** ** ** **",
357 "** ** ** ** ** *** ** ** ** ** **",
358 "** ** ** ** ** *** ** ** ** ** **",
359 " ** ** ** ** ** *** ** ** ** ** ** ",
360 " ** ** ",
361 " ** ** ",
362 " ************************************************** ",
363 " ********************************************** ",
364 NULL
365};
366
367static char* icon_repeat[]=
368{
369 " ************************* ",
370 " *************************** ",
371 " *** ",
372 " ** ",
373 " ** ",
374 " ** ",
375 " ** ",
376 "** ",
377 "** ",
378 "** ",
379 "** ",
380 "** ",
381 " ** ** ",
382 " ** **** ",
383 " ** ****** ",
384 " ** ******** ",
385 " *** ********** ",
386 " ***************************** ",
387 " *****************************",
388 NULL
389};
390
391static char* icon_repeat2[]=
392{
393 " *",
394 " **",
395 "***",
396 " *",
397 " *",
398 " *",
399 " *",
400 " *",
401 " *",
402 " *",
403 " *",
404 " *",
405 " *",
406 " *",
407 " *",
408 " *",
409 " *",
410 " *",
411 " *",
412 NULL
413};
414
106 415
107struct icon_info 416struct icon_info
108{ 417{
@@ -111,26 +420,30 @@ struct icon_info
111 int row; 420 int row;
112}; 421};
113 422
114static struct icon_info icons [] = 423#define ICON_VOLUME_POS 230
424#define ICON_VOLUME_SIZE 20
425#define ICON_VOLUME_X_SIZE 2
426
427static struct icon_info icons [] =
115{ 428{
116 {icon_battery, 0, 0}, 429 {icon_battery, 0, 0},
117 {icon_battery_1, 0, 0}, 430 {icon_battery_bit, 5, 0},
118 {icon_battery_2, 0, 0}, 431 {icon_battery_bit, 15, 0},
119 {icon_battery_3, 0, 0}, 432 {icon_battery_bit, 25, 0},
120 {icon_usb, 0, 1}, 433 {icon_usb, 0, 1},
121 {icon_play, 0, 1}, 434 {icon_play, 55, 0},
122 {icon_record, 0, 1}, 435 {icon_record, 75, 0},
123 {icon_pause, 0, 1}, 436 {icon_pause, 100, 0},
124 {icon_audio, 0, 1}, 437 {icon_audio, 90, 1},
125 {icon_repeat, 0, 1}, 438 {icon_repeat, 170, 0},
126 {icon_repeat2, 0, 1}, 439 {icon_repeat2, 170+35+4, 0},
127 {icon_volume, 108, 0}, 440 {icon_volume, ICON_VOLUME_POS, 0},
128 {icon_volume_1, 108, 0}, 441 {icon_volume_1, ICON_VOLUME_POS+ICON_VOLUME_SIZE, 0},
129 {icon_volume_2, 108, 0}, 442 {icon_volume_2, ICON_VOLUME_POS+ICON_VOLUME_SIZE+(1*ICON_VOLUME_X_SIZE)+1, 0},
130 {icon_volume_3, 108, 0}, 443 {icon_volume_3, ICON_VOLUME_POS+ICON_VOLUME_SIZE+(2*ICON_VOLUME_X_SIZE)+2, 0},
131 {icon_volume_4, 108, 0}, 444 {icon_volume_4, ICON_VOLUME_POS+ICON_VOLUME_SIZE+(3*ICON_VOLUME_X_SIZE)+3, 0},
132 {icon_volume_5, 108, 0}, 445 {icon_volume_5, ICON_VOLUME_POS+ICON_VOLUME_SIZE+(4*ICON_VOLUME_X_SIZE)+4, 0},
133 {icon_param, 0, 1} 446 {icon_param, 170, 1}
134}; 447};
135 448
136void 449void
@@ -141,3 +454,5 @@ lcd_icon(int icon, bool enable)
141} 454}
142 455
143#endif /* HAVE_LCD_CHARCELLS */ 456#endif /* HAVE_LCD_CHARCELLS */
457
458