mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
FS#6323: Speech for ID3 viewer, playlist catalog and playlist viewer
Modified from original ticket, Taken from Igor Poretsky's tree, and further modified by myself to incorporate feedback. Change-Id: Ibc2180e52af76890b1448d23f79386fd0f88f709
This commit is contained in:
parent
f061330c3d
commit
4adad0bc1f
52 changed files with 1211 additions and 864 deletions
|
@ -573,6 +573,17 @@ static const char* openwith_get_name(int selected_item, void * data,
|
|||
else return filetypes[viewers[selected_item]].plugin;
|
||||
}
|
||||
|
||||
static int openwith_get_talk(int selected_item, void * data)
|
||||
{
|
||||
(void)data;
|
||||
char viewer_filename[MAX_FILENAME];
|
||||
snprintf(viewer_filename, MAX_FILENAME, "%s.%s",
|
||||
filetypes[viewers[selected_item]].plugin, ROCK_EXTENSION);
|
||||
talk_file_or_spell(PLUGIN_DIR, viewer_filename,
|
||||
NULL, false);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int openwith_action_callback(int action, struct gui_synclist *lists)
|
||||
{
|
||||
struct cb_data *info = (struct cb_data *)lists->data;
|
||||
|
@ -596,8 +607,7 @@ int filetype_list_viewers(const char* current_file)
|
|||
#ifndef HAVE_LCD_BITMAP
|
||||
if (viewer_count == 0)
|
||||
{
|
||||
/* FIX: translation! */
|
||||
splash(HZ*2, "No viewers found");
|
||||
splash(HZ*2, ID2P(LANG_NO_VIEWERS));
|
||||
return PLUGIN_OK;
|
||||
}
|
||||
#endif
|
||||
|
@ -605,6 +615,7 @@ int filetype_list_viewers(const char* current_file)
|
|||
info.action_callback = openwith_action_callback;
|
||||
info.get_name = openwith_get_name;
|
||||
info.get_icon = global_settings.show_icons?openwith_get_icon:NULL;
|
||||
info.get_talk = openwith_get_talk;
|
||||
return simplelist_show_list(&info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue