summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorRoman Artiukhin <bahusdrive@gmail.com>2024-10-14 21:33:40 +0300
committerChristian Soffke <christian.soffke@gmail.com>2024-10-28 12:46:51 -0400
commit55a5bfe7409677a26437651798abbc6d87b56089 (patch)
tree7ab7d96f52ee15257b174e75f15abae1f09b74cf /apps/onplay.c
parentc1bcebd9986b1e2120fd05ead67754d444dae7d3 (diff)
downloadrockbox-55a5bfe7409677a26437651798abbc6d87b56089.tar.gz
rockbox-55a5bfe7409677a26437651798abbc6d87b56089.zip
View Album Art from WPS context menu
Add ability to imageviewer to view current track embedded/folder album art Add "View Album Art" WPS context menu item Change-Id: I49caebd38e5e3e2910d418bbeaa5e51da0e6bd93
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index ab507f08ac..a259e88c58 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -211,6 +211,13 @@ static void playing_time(void)
211 plugin_load(PLUGIN_APPS_DIR"/playing_time.rock", NULL); 211 plugin_load(PLUGIN_APPS_DIR"/playing_time.rock", NULL);
212} 212}
213 213
214#ifdef HAVE_ALBUMART
215static void view_album_art(void)
216{
217 plugin_load(VIEWERS_DIR"/imageviewer.rock", NULL);
218}
219#endif
220
214MENUITEM_FUNCTION(wps_view_cur_playlist_item, 0, ID2P(LANG_VIEW_DYNAMIC_PLAYLIST), 221MENUITEM_FUNCTION(wps_view_cur_playlist_item, 0, ID2P(LANG_VIEW_DYNAMIC_PLAYLIST),
215 wps_view_cur_playlist, NULL, Icon_NOICON); 222 wps_view_cur_playlist, NULL, Icon_NOICON);
216MENUITEM_FUNCTION(search_playlist_item, 0, ID2P(LANG_SEARCH_IN_PLAYLIST), 223MENUITEM_FUNCTION(search_playlist_item, 0, ID2P(LANG_SEARCH_IN_PLAYLIST),
@@ -705,6 +712,10 @@ MENUITEM_FUNCTION(browse_id3_item, MENU_FUNC_CHECK_RETVAL, ID2P(LANG_MENU_SHOW_I
705MENUITEM_FUNCTION(pitch_screen_item, 0, ID2P(LANG_PITCH), 712MENUITEM_FUNCTION(pitch_screen_item, 0, ID2P(LANG_PITCH),
706 gui_syncpitchscreen_run, NULL, Icon_Audio); 713 gui_syncpitchscreen_run, NULL, Icon_Audio);
707#endif 714#endif
715#ifdef HAVE_ALBUMART
716MENUITEM_FUNCTION(view_album_art_item, 0, ID2P(LANG_VIEW_ALBUMART),
717 view_album_art, NULL, Icon_NOICON);
718#endif
708 719
709static int clipboard_delete_selected_fileobject(void) 720static int clipboard_delete_selected_fileobject(void)
710{ 721{
@@ -1028,6 +1039,9 @@ MAKE_ONPLAYMENU( wps_onplay_menu, ID2P(LANG_ONPLAY_MENU_TITLE),
1028#ifdef HAVE_PITCHCONTROL 1039#ifdef HAVE_PITCHCONTROL
1029 &pitch_screen_item, 1040 &pitch_screen_item,
1030#endif 1041#endif
1042#ifdef HAVE_ALBUMART
1043 &view_album_art_item,
1044#endif
1031 ); 1045 );
1032 1046
1033MENUITEM_FUNCTION(view_playlist_item, 0, ID2P(LANG_VIEW), 1047MENUITEM_FUNCTION(view_playlist_item, 0, ID2P(LANG_VIEW),