2002-05-17 12:22:24 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 Robert E. Hak
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2004-05-21 20:08:24 +00:00
|
|
|
#ifndef _ICONS_H_
|
|
|
|
#define _ICONS_H_
|
|
|
|
|
2002-05-17 12:22:24 +00:00
|
|
|
#include <lcd.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Icons of size 6x8 pixels
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_LCD_BITMAP
|
|
|
|
|
|
|
|
enum icons_6x8 {
|
2002-06-25 09:02:00 +00:00
|
|
|
Box_Filled, Box_Empty, Slider_Horizontal, File,
|
2002-05-17 12:22:24 +00:00
|
|
|
Folder, Directory, Playlist, Repeat,
|
2002-09-03 01:07:31 +00:00
|
|
|
Selected, Cursor, Wps, Mod_Ajz,
|
2004-05-21 20:08:24 +00:00
|
|
|
Font, Language, Config, Plugin,
|
|
|
|
Bookmark,
|
2002-09-03 01:07:31 +00:00
|
|
|
LastIcon
|
2002-05-17 12:22:24 +00:00
|
|
|
};
|
|
|
|
|
2002-09-03 15:58:47 +00:00
|
|
|
/* Symbolic names for icons */
|
|
|
|
enum icons_5x8 {
|
|
|
|
Icon_Lock
|
|
|
|
};
|
|
|
|
|
|
|
|
enum icons_7x8 {
|
|
|
|
Icon_Plug,
|
|
|
|
Icon_Speaker,
|
|
|
|
Icon_Mute,
|
|
|
|
Icon_Play,
|
|
|
|
Icon_Stop,
|
|
|
|
Icon_Pause,
|
|
|
|
Icon_FastForward,
|
|
|
|
Icon_FastBackward,
|
|
|
|
Icon_Record,
|
|
|
|
Icon_RecPause,
|
|
|
|
Icon_Repeat,
|
2002-10-08 10:24:29 +00:00
|
|
|
Icon_RepeatOne,
|
2002-09-03 15:58:47 +00:00
|
|
|
Icon_Shuffle,
|
2002-09-03 20:47:23 +00:00
|
|
|
Icon_DownArrow,
|
|
|
|
Icon_UpArrow,
|
2002-09-03 15:58:47 +00:00
|
|
|
Icon_Last
|
|
|
|
};
|
|
|
|
|
2004-07-19 21:46:37 +00:00
|
|
|
extern const unsigned char bitmap_icons_5x8[1][5];
|
|
|
|
extern const unsigned char bitmap_icons_6x8[LastIcon][6];
|
|
|
|
extern const unsigned char bitmap_icons_7x8[Icon_Last][7];
|
2005-03-01 22:55:52 +00:00
|
|
|
#ifndef HAVE_LED
|
|
|
|
extern const unsigned char bitmap_icon_disk[];
|
|
|
|
#endif
|
2002-05-17 12:22:24 +00:00
|
|
|
|
2005-01-25 23:55:42 +00:00
|
|
|
#if LCD_WIDTH == 112 || LCD_WIDTH == 128
|
2004-07-19 21:46:37 +00:00
|
|
|
extern const unsigned char rockbox112x37[];
|
2004-12-20 09:21:09 +00:00
|
|
|
#endif
|
|
|
|
#if LCD_WIDTH == 160
|
|
|
|
extern const unsigned char rockbox160x53[];
|
|
|
|
#endif
|
2002-05-31 12:30:48 +00:00
|
|
|
|
2002-08-07 10:35:26 +00:00
|
|
|
#define STATUSBAR_X_POS 0
|
2003-02-26 21:39:13 +00:00
|
|
|
#define STATUSBAR_Y_POS 0 /* MUST be a multiple of 8 */
|
2002-08-07 10:35:26 +00:00
|
|
|
#define STATUSBAR_HEIGHT 8
|
|
|
|
#define STATUSBAR_WIDTH LCD_WIDTH
|
|
|
|
#define ICON_BATTERY_X_POS 0
|
|
|
|
#define ICON_BATTERY_WIDTH 18
|
|
|
|
#define ICON_PLUG_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+2
|
|
|
|
#define ICON_PLUG_WIDTH 7
|
|
|
|
#define ICON_VOLUME_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+2+2
|
2002-08-20 20:32:08 +00:00
|
|
|
#define ICON_VOLUME_WIDTH 16
|
2002-08-07 10:35:26 +00:00
|
|
|
#define ICON_PLAY_STATE_X_POS STATUSBAR_X_POS+ICON_BATTERY_WIDTH+ICON_PLUG_WIDTH+ICON_VOLUME_WIDTH+2+2+2
|
|
|
|
#define ICON_PLAY_STATE_WIDTH 7
|
|
|
|
#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
|
|
|
|
#define ICON_PLAY_MODE_WIDTH 7
|
|
|
|
#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
|
|
|
|
#define ICON_SHUFFLE_WIDTH 7
|
|
|
|
#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
|
|
|
|
#define LOCK_WIDTH 5
|
2005-03-01 22:55:52 +00:00
|
|
|
#define ICON_DISK_WIDTH 12
|
2005-02-19 00:34:15 +00:00
|
|
|
#define ICON_DISK_X_POS STATUSBAR_WIDTH-ICON_DISK_WIDTH
|
2002-08-20 20:32:08 +00:00
|
|
|
#define TIME_X_END STATUSBAR_WIDTH-1
|
2002-06-25 07:27:29 +00:00
|
|
|
|
2002-08-07 10:35:26 +00:00
|
|
|
extern void statusbar_wipe(void);
|
|
|
|
extern void statusbar_icon_battery(int percent, bool charging);
|
2004-07-13 06:59:11 +00:00
|
|
|
extern bool statusbar_icon_volume(int percent);
|
2002-08-07 10:35:26 +00:00
|
|
|
extern void statusbar_icon_play_state(int state);
|
|
|
|
extern void statusbar_icon_play_mode(int mode);
|
|
|
|
extern void statusbar_icon_shuffle(void);
|
|
|
|
extern void statusbar_icon_lock(void);
|
|
|
|
#ifdef HAVE_RTC
|
2002-08-30 19:44:58 +00:00
|
|
|
extern void statusbar_time(int hour, int minute);
|
2002-08-07 10:35:26 +00:00
|
|
|
#endif
|
2005-02-19 00:34:15 +00:00
|
|
|
#ifndef HAVE_LED
|
|
|
|
extern void statusbar_led(void);
|
|
|
|
#endif
|
|
|
|
|
2002-08-07 10:35:26 +00:00
|
|
|
#endif /* End HAVE_LCD_BITMAP */
|
2004-05-21 20:08:24 +00:00
|
|
|
|
|
|
|
#endif /* _ICONS_H_ */
|