Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

WIP Show Track Info: Select on tag opens it in full screen

Mostly useful for reading comments

WIP as it currently works only from WPS. Doesn't work from file browser(see https://gerrit.rockbox.org/r/c/rockbox/+/5999). Also breaks playlist viewer if called from there. Not sure how to handle it properly in all cases and not currently planning to work on it

Change-Id: I441eb9c6b3fe50f58436111d83bc98a25841d656

authored by

Roman Artiukhin and committed by
Christian Soffke
4062a6ae 5e66f0e7

+53 -2
+1
apps/plugins/CATEGORIES
··· 207 207 xrick,games 208 208 xworld,games 209 209 zxbox,viewers 210 + view_text,viewers
+2 -1
apps/plugins/SOURCES
··· 32 32 snow.c 33 33 sort.c 34 34 stats.c 35 + view_text.c 35 36 #ifdef HAVE_TOUCHSCREEN 36 37 stopwatch.lua 37 38 #else ··· 237 238 #endif 238 239 test_usb.c 239 240 test_viewports.c 240 - #endif /* HAVE_TEST_PLUGINS */ 241 + #endif /* HAVE_TEST_PLUGINS */
+1
apps/plugins/SOURCES.app_build
··· 12 12 sort.c 13 13 theme_remove.c 14 14 vbrfix.c 15 + view_text.c 15 16 #if PLUGIN_BUFFER_SIZE >= 0x80000 16 17 boomshine.lua 17 18 stopwatch.lua
+35
apps/plugins/view_text.c
··· 1 + /*************************************************************************** 2 + * __________ __ ___. 3 + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 4 + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 5 + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < 6 + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ 7 + * \/ \/ \/ \/ \/ 8 + * $Id$ 9 + * 10 + * Copyright (C) 2002 Björn Stenberg 11 + * 12 + * This program is free software; you can redistribute it and/or 13 + * modify it under the terms of the GNU General Public License 14 + * as published by the Free Software Foundation; either version 2 15 + * of the License, or (at your option) any later version. 16 + * 17 + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 18 + * KIND, either express or implied. 19 + * 20 + ****************************************************************************/ 21 + 22 + /* welcome to the example rockbox plugin */ 23 + 24 + /* mandatory include for all plugins */ 25 + #include "plugin.h" 26 + #include "lib/simple_viewer.h" 27 + 28 + /* this is the plugin entry point */ 29 + enum plugin_status plugin_start(const void* parameter) 30 + { 31 + 32 + char** title_and_text = (char**)parameter; 33 + view_text(title_and_text[0], title_and_text[1]); 34 + return PLUGIN_OK; 35 + }
+14 -1
apps/screens.c
··· 55 55 #include "replaygain.h" 56 56 57 57 #include "ctype.h" 58 + #include "plugin.h" 58 59 59 60 #if CONFIG_CHARGING 60 61 void charging_splash(void) ··· 815 816 if(!list_do_action(CONTEXT_LIST,HZ/2, &id3_lists, &key) 816 817 && key!=ACTION_NONE && key!=ACTION_UNKNOWN) 817 818 { 818 - if (key == ACTION_STD_OK || key == ACTION_STD_CANCEL) 819 + if (key == ACTION_STD_OK) 820 + { 821 + int header_id = id3_headers[info.info_id[id3_lists.selected_item/2]]; 822 + char* title_and_text[2]; 823 + title_and_text[0] = str(header_id); 824 + 825 + char buffer[MAX_PATH]; 826 + title_and_text[1] = (char*)id3_get_or_speak_info(id3_lists.selected_item+1,&info, buffer, sizeof(buffer), false); 827 + plugin_load(VIEWERS_DIR"/view_text.rock", title_and_text); 828 + gui_synclist_draw(&id3_lists); 829 + continue; 830 + } 831 + if (key == ACTION_STD_CANCEL) 819 832 { 820 833 ret = false; 821 834 break;