From 2b816de0bbdc2bba05383c344f0e2f04889f21d0 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Tue, 5 Oct 2004 00:08:04 +0000 Subject: Flattened browser button code more. TREE_SHIFT removed. OnPlay menu is now available on PLAY+REPEAT too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5166 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist_viewer.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'apps/playlist_viewer.c') diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index e872b495b3..98f04b8eaf 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -130,9 +130,7 @@ static void update_display_line(int line, bool scroll); static void scroll_display(int lines); static void update_first_index(void); static bool update_playlist(bool force); -#ifdef TREE_SHIFT static int onplay_menu(int index); -#endif static bool viewer_menu(void); static bool show_icons(void); static bool show_indices(void); @@ -672,7 +670,6 @@ static bool update_playlist(bool force) return true; } -#ifdef TREE_SHIFT /* Menu of playlist commands. Invoked via ON+PLAY on main viewer screen. Returns -1 if USB attached, 0 if no playlist change, and 1 if playlist changed. */ @@ -747,7 +744,6 @@ static int onplay_menu(int index) return ret; } -#endif /* Menu of viewer options. Invoked via F1(r) or Menu(p). */ static bool viewer_menu(void) @@ -918,20 +914,22 @@ bool playlist_viewer_ex(char* filename) update = true; break; - case TREE_SHIFT | TREE_PREV: - case TREE_SHIFT | TREE_PREV | BUTTON_REPEAT: +#ifdef TREE_PGUP + case TREE_PGUP: + case TREE_PGUP | BUTTON_REPEAT: /* Pageup */ scroll_display(-viewer.num_display_lines); update = true; break; - case TREE_SHIFT | TREE_NEXT: - case TREE_SHIFT | TREE_NEXT | BUTTON_REPEAT: + case TREE_PGDN: + case TREE_PGDN | BUTTON_REPEAT: /* Pagedown */ scroll_display(viewer.num_display_lines); update = true; break; - +#endif + case TREE_RUN: if (viewer.move_track >= 0) { @@ -973,7 +971,10 @@ bool playlist_viewer_ex(char* filename) update = true; break; - case TREE_SHIFT | TREE_RUN: + case TREE_CONTEXT: +#ifdef TREE_CONTEXT2 + case TREE_CONTEXT2: +#endif { /* ON+PLAY menu */ int ret; -- cgit v1.2.3