summaryrefslogtreecommitdiff
path: root/apps/player
diff options
context:
space:
mode:
Diffstat (limited to 'apps/player')
-rw-r--r--apps/player/icons.c89
-rw-r--r--apps/player/icons.h45
2 files changed, 87 insertions, 47 deletions
diff --git a/apps/player/icons.c b/apps/player/icons.c
index 3f9b7c1547..6717eb12bd 100644
--- a/apps/player/icons.c
+++ b/apps/player/icons.c
@@ -7,7 +7,7 @@
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2002 Justin Heiner 10 * Copyright (C) 2007 Jonathan Gordon
11 * 11 *
12 * All files in this archive are subject to the GNU General Public License. 12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement. 13 * See the file COPYING in the source tree root for full license agreement.
@@ -17,8 +17,93 @@
17 * 17 *
18 ****************************************************************************/ 18 ****************************************************************************/
19#include "lcd.h" 19#include "lcd.h"
20#include "icons.h" 20#include "icon.h"
21 21
22#ifdef HAVE_LCD_CHARCELLS 22#ifdef HAVE_LCD_CHARCELLS
23/* For the moment, charcell cant load custom maps... */
24
25enum old_values{
26 old_Icon_Queued = 'Q',
27 old_Icon_Moving = 'M',
28 old_Icon_Unknown = 0xe100,
29 old_Icon_Bookmark,
30 old_Icon_Plugin,
31 old_Icon_Folder,
32 old_Icon_Firmware,
33 old_Icon_Language,
34 old_Icon_Audio,
35 old_Icon_Wps,
36 old_Icon_Playlist,
37 old_Icon_Text,
38 old_Icon_Config,
39};
40
41static const long icon_unknown = old_Icon_Unknown;
42static const long icons[Icon_Last_Themeable] = {
43 [0 ... Icon_Last_Themeable-1] = 0,
44
45 [Icon_Audio] = old_Icon_Audio,
46 [Icon_Folder] = old_Icon_Folder,
47 [Icon_Playlist] = old_Icon_Playlist,
48 [Icon_Cursor] = CURSOR_CHAR,
49 [Icon_Wps] = old_Icon_Wps,
50 [Icon_Firmware] = old_Icon_Firmware,
51 [Icon_Language] = old_Icon_Language,
52 [Icon_Config] = old_Icon_Config,
53 [Icon_Plugin] = old_Icon_Plugin,
54 [Icon_Bookmark] = old_Icon_Bookmark,
55 [Icon_Queued] = 'Q',
56 [Icon_Moving] = 'M',
57
58 /*
59 [Icon_Keyboard] = ,
60 [Icon_Font] = ,
61 [Icon_Preset] = ,
62 [Icon_Reverse_Cursor] = ,
63 [Icon_Questionmark] = ,
64 [Icon_Menu_setting] = ,
65 [Icon_Menu_functioncall] = ,
66 [Icon_Submenu] = ,
67 [Icon_Submenu_Entered] = ,
68 [Icon_Recording] = ,
69 [Icon_Voice] = ,
70 [Icon_General_settings_menu] = ,
71 [Icon_System_menu] = ,
72 [Icon_Playback_menu] = ,
73 [Icon_Display_menu] = ,
74 [Icon_Remote_Display_menu] = ,
75 [Icon_Radio_screen] = ,
76 [Icon_file_view_menu] = ,
77 [Icon_EQ] = ,
78 [Icon_Rockbox] = ,
79 */
80};
81
82/* as above, but x,y are letter position, NOT PIXEL */
83extern void screen_put_iconxy(struct screen * screen,
84 int x, int y, enum themable_icons icon)
85{
86 if (icon == -1)
87 screen->putc(x, y, icon_unknown);
88 else if ((icon==Icon_NOICON) && (icons[icon]!=0))
89 screen->putc(x, y, ' ');
90 else
91 screen->putc(x, y, icons[icon]);
92}
93
94void screen_put_cursorxy(struct screen * display, int x, int y, bool on)
95{
96 screen_put_iconxy(display, x, y, on?Icon_Cursor:-1);
97
98}
99
100void icons_init(void)
101{
102}
103
104
105
106
107
23 108
24#endif 109#endif
diff --git a/apps/player/icons.h b/apps/player/icons.h
index 5df94b09e3..48dfdfc345 100644
--- a/apps/player/icons.h
+++ b/apps/player/icons.h
@@ -25,50 +25,5 @@
25 * Icons of size 5x7 pixels for the Player LCD 25 * Icons of size 5x7 pixels for the Player LCD
26 */ 26 */
27 27
28#ifdef HAVE_LCD_CHARCELLS
29
30enum {
31 Icon_Queued = 'Q',
32 Icon_Moving = 'M',
33 Icon_Unknown = 0xe100,
34 Icon_Bookmark,
35 Icon_Plugin,
36 Icon_Folder,
37 Icon_Firmware,
38 Icon_Language,
39 Icon_Audio,
40 Icon_Wps,
41 Icon_Playlist,
42 Icon_Text,
43 Icon_Config,
44};
45
46/* put icons from the 6x8 enum here if the player
47 doesnt have an icon for it */
48enum unused_but_needed {
49 Icon_Cursor,
50 Icon_Font,
51 Icon_Preset,
52 Icon_Keyboard,
53 Icon_Reverse_Cursor,
54 Icon_Questionmark,
55 Icon_Menu_setting,
56 Icon_Menu_functioncall,
57 Icon_Submenu,
58 Icon_Submenu_Entered,
59 Icon_Recording,
60 Icon_Voice,
61 Icon_General_settings_menu,
62 Icon_System_menu,
63 Icon_Playback_menu,
64 Icon_Display_menu,
65 Icon_Remote_Display_menu,
66 Icon_Radio_screen,
67 Icon_file_view_menu,
68 Icon_EQ,
69 Icon_Rockbox,
70 Icon6x8Last,
71};
72#endif
73 28
74#endif /* _ICONS_H_ */ 29#endif /* _ICONS_H_ */