From dc0ba917fa94a554a166b1939548b06c9ee49307 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 13 Jan 2010 06:02:38 +0000 Subject: FS#10898 - Add a playlist viewer to the WPS. http://www.rockbox.org/wiki/CustomWPS#Playlist_viewer for an exaplanation how to use it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24220 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/wps_internals.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'apps/gui/skin_engine/wps_internals.h') diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index bd0c1c01c7..362f3947e7 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h @@ -225,6 +225,26 @@ struct touchregion { }; #endif +#define MAX_PLAYLISTLINE_TOKENS 16 +#define MAX_PLAYLISTLINE_STRINGS 8 +#define MAX_PLAYLISTLINE_STRLEN 8 +enum info_line_type { + TRACK_HAS_INFO = 0, + TRACK_HAS_NO_INFO +}; +struct playlistviewer { + struct viewport *vp; + bool show_icons; + int start_offset; + struct { + enum wps_token_type tokens[MAX_PLAYLISTLINE_TOKENS]; + char strings[MAX_PLAYLISTLINE_STRINGS][MAX_PLAYLISTLINE_STRLEN]; + int count; + bool scroll; + } lines[2]; +}; + + #ifdef HAVE_ALBUMART struct skin_albumart { -- cgit v1.2.3