Remove the unused "rebuffer" parameters
[Rockbox.git] / apps / recorder / icons.h
blob8c4cd2b2ddb1652749ae8527ec4e8b9247a750d8
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 Robert E. Hak
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.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef _ICONS_H_
20 #define _ICONS_H_
22 #ifndef PLUGIN
24 #include <lcd.h>
26 #ifdef HAVE_LCD_BITMAP
28 /* External bitmaps */
30 #include <rockboxlogo.h>
31 #ifdef HAVE_REMOTE_LCD
32 #include <remote_rockboxlogo.h>
33 #endif
36 /* Symbolic names for icons */
37 enum icons_5x8 {
38 Icon_Lock_Main,
39 Icon_Lock_Remote,
40 Icon_Stereo,
41 Icon_Mono,
42 #if CONFIG_CODEC != SWCODEC
43 Icon_q,
44 #endif
45 Icon5x8Last
48 enum icons_7x8 {
49 Icon_Plug,
50 Icon_USBPlug,
51 Icon_Mute,
52 Icon_Play,
53 Icon_Stop,
54 Icon_Pause,
55 Icon_FastForward,
56 Icon_FastBackward,
57 Icon_Record,
58 Icon_RecPause,
59 Icon_Radio,
60 Icon_Radio_Mute,
61 Icon_Repeat,
62 Icon_RepeatOne,
63 Icon_Shuffle,
64 Icon_DownArrow,
65 Icon_UpArrow,
66 Icon_RepeatAB,
67 Icon7x8Last
70 #if CONFIG_CODEC == SWCODEC && defined (HAVE_RECORDING)
71 #define BM_GLYPH_WIDTH 4
72 enum Glyphs_4x8 {
73 Glyph_4x8_0 = 0,
74 Glyph_4x8_1,
75 Glyph_4x8_2,
76 Glyph_4x8_3,
77 Glyph_4x8_4,
78 Glyph_4x8_5,
79 Glyph_4x8_6,
80 Glyph_4x8_7,
81 Glyph_4x8_8,
82 Glyph_4x8_9,
83 Glyph_4x8_k,
84 Glyph_4x8Last
86 extern const unsigned char bitmap_glyphs_4x8[Glyph_4x8Last][4];
88 #define BM_MPA_L3_M_WIDTH 6
89 #ifdef ID3_H
90 /* This enum is redundant but sort of in keeping with the style */
91 enum rec_format_18x8 {
92 Format_18x8_AIFF = REC_FORMAT_AIFF,
93 Format_18x8_MPA_L3 = REC_FORMAT_MPA_L3,
94 Format_18x8_WAVPACK = REC_FORMAT_WAVPACK,
95 Format_18x8_PCM_WAV = REC_FORMAT_PCM_WAV,
96 Format_18x8Last = REC_NUM_FORMATS
98 extern const unsigned char bitmap_formats_18x8[Format_18x8Last][18];
99 #endif /* ID3_H */
100 #endif /* CONFIG_CODEC == SWCODEC && defined (HAVE_RECORDING) */
102 extern const unsigned char bitmap_icons_5x8[Icon5x8Last][5];
103 extern const unsigned char bitmap_icons_7x8[Icon7x8Last][7];
104 extern const unsigned char bitmap_icon_disk[];
106 #define STATUSBAR_X_POS 0
107 #define STATUSBAR_Y_POS 0 /* MUST be a multiple of 8 */
108 #define STATUSBAR_HEIGHT 8
109 #define STATUSBAR_WIDTH LCD_WIDTH
110 #define ICON_BATTERY_X_POS 0
111 #define ICON_BATTERY_WIDTH 18
112 #define ICON_PLUG_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+2
113 #define ICON_PLUG_WIDTH 7
114 #define ICON_VOLUME_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+2+2
115 #define ICON_VOLUME_WIDTH 16
116 #define ICON_PLAY_STATE_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+ICON_VOLUME_WIDTH+2+2+2
117 #define ICON_PLAY_STATE_WIDTH 7
118 #define ICON_PLAY_MODE_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+ICON_VOLUME_WIDTH+ICON_PLAY_STATE_WIDTH+2+2+2+2
119 #define ICON_PLAY_MODE_WIDTH 7
120 #define ICON_SHUFFLE_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+ICON_VOLUME_WIDTH+ICON_PLAY_STATE_WIDTH+ICON_PLAY_MODE_WIDTH+2+2+2+2+2
121 #define ICON_SHUFFLE_WIDTH 7
122 #define LOCK_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+ICON_VOLUME_WIDTH+ICON_PLAY_STATE_WIDTH+ICON_PLAY_MODE_WIDTH+ICON_SHUFFLE_WIDTH+2+2+2+2+2+2
123 #define LOCK_WIDTH 5
124 #define ICON_DISK_WIDTH 12
125 #define ICON_DISK_X_POS STATUSBAR_WIDTH-ICON_DISK_WIDTH
126 #define TIME_X_END STATUSBAR_WIDTH-1
128 extern void statusbar_wipe(void);
129 extern void statusbar_icon_battery(int percent);
130 extern bool statusbar_icon_volume(int percent);
131 extern void statusbar_icon_play_state(int state);
132 extern void statusbar_icon_play_mode(int mode);
133 extern void statusbar_icon_shuffle(void);
134 extern void statusbar_icon_lock(void);
135 #if CONFIG_RTC
136 extern void statusbar_time(int hour, int minute);
137 #endif
138 #if (CONFIG_LED == LED_VIRTUAL)
139 extern void statusbar_led(void);
140 #endif
142 #endif /* End HAVE_LCD_BITMAP */
143 #endif /* PLUGIN */
144 #endif /* _ICONS_H_ */