forked from len0rd/rockbox
add hotkeys for properties and pictureflow
Change-Id: I16b36dd02f1c2aa186d957c64ed7d239c4c91047
This commit is contained in:
parent
7727486423
commit
3edf3ba18d
4 changed files with 34 additions and 9 deletions
|
@ -1860,12 +1860,20 @@ static struct hotkey_assignment hotkey_items[] = {
|
||||||
{ HOTKEY_INSERT_SHUFFLED, LANG_INSERT_SHUFFLED,
|
{ HOTKEY_INSERT_SHUFFLED, LANG_INSERT_SHUFFLED,
|
||||||
HOTKEY_FUNC(playlist_insert_shuffled, NULL),
|
HOTKEY_FUNC(playlist_insert_shuffled, NULL),
|
||||||
ONPLAY_RELOAD_DIR },
|
ONPLAY_RELOAD_DIR },
|
||||||
{ HOTKEY_PLUGIN, LANG_OPEN_PLUGIN,
|
{ HOTKEY_PLUGIN, LANG_OPEN_PLUGIN,
|
||||||
HOTKEY_FUNC(hotkey_run_plugin, NULL),
|
HOTKEY_FUNC(hotkey_run_plugin, NULL),
|
||||||
ONPLAY_OK },
|
ONPLAY_OK },
|
||||||
{ HOTKEY_BOOKMARK, LANG_BOOKMARK_MENU_CREATE,
|
{ HOTKEY_BOOKMARK, LANG_BOOKMARK_MENU_CREATE,
|
||||||
HOTKEY_FUNC(bookmark_create_menu, NULL),
|
HOTKEY_FUNC(bookmark_create_menu, NULL),
|
||||||
ONPLAY_OK },
|
ONPLAY_OK },
|
||||||
|
{ HOTKEY_PROPERTIES, LANG_PROPERTIES,
|
||||||
|
HOTKEY_FUNC(onplay_load_plugin, (void *)"properties"),
|
||||||
|
ONPLAY_RELOAD_DIR },
|
||||||
|
#ifdef HAVE_TAGCACHE
|
||||||
|
{ HOTKEY_PICTUREFLOW, LANG_ONPLAY_PICTUREFLOW,
|
||||||
|
HOTKEY_FUNC(onplay_load_plugin, (void *)"pictureflow"),
|
||||||
|
ONPLAY_RELOAD_DIR },
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Return the language ID for this action */
|
/* Return the language ID for this action */
|
||||||
|
|
|
@ -39,14 +39,18 @@ int get_hotkey_lang_id(int action);
|
||||||
enum hotkey_action {
|
enum hotkey_action {
|
||||||
HOTKEY_OFF = 0,
|
HOTKEY_OFF = 0,
|
||||||
HOTKEY_VIEW_PLAYLIST,
|
HOTKEY_VIEW_PLAYLIST,
|
||||||
|
HOTKEY_PROPERTIES,
|
||||||
|
#ifdef HAVE_TAGCACHE
|
||||||
|
HOTKEY_PICTUREFLOW,
|
||||||
|
#endif
|
||||||
HOTKEY_SHOW_TRACK_INFO,
|
HOTKEY_SHOW_TRACK_INFO,
|
||||||
HOTKEY_PITCHSCREEN,
|
HOTKEY_PITCHSCREEN,
|
||||||
HOTKEY_OPEN_WITH,
|
HOTKEY_OPEN_WITH,
|
||||||
HOTKEY_DELETE,
|
HOTKEY_DELETE,
|
||||||
|
HOTKEY_BOOKMARK,
|
||||||
|
HOTKEY_PLUGIN,
|
||||||
HOTKEY_INSERT,
|
HOTKEY_INSERT,
|
||||||
HOTKEY_INSERT_SHUFFLED,
|
HOTKEY_INSERT_SHUFFLED,
|
||||||
HOTKEY_PLUGIN,
|
|
||||||
HOTKEY_BOOKMARK,
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -2113,10 +2113,23 @@ const struct settings_list settings[] = {
|
||||||
HOTKEY_OPEN_WITH, HOTKEY_DELETE, HOTKEY_BOOKMARK, HOTKEY_PLUGIN),
|
HOTKEY_OPEN_WITH, HOTKEY_DELETE, HOTKEY_BOOKMARK, HOTKEY_PLUGIN),
|
||||||
TABLE_SETTING(F_ALLOW_ARBITRARY_VALS, hotkey_tree,
|
TABLE_SETTING(F_ALLOW_ARBITRARY_VALS, hotkey_tree,
|
||||||
LANG_HOTKEY_FILE_BROWSER, HOTKEY_OFF, "hotkey tree",
|
LANG_HOTKEY_FILE_BROWSER, HOTKEY_OFF, "hotkey tree",
|
||||||
"off,open with,delete,insert,insert shuffled",
|
#ifdef HAVE_TAGCACHE
|
||||||
UNIT_INT, hotkey_formatter, hotkey_getlang, NULL, 5, HOTKEY_OFF,
|
"off,properties,pictureflow,open with,delete,insert,insert shuffled",
|
||||||
HOTKEY_OPEN_WITH, HOTKEY_DELETE, HOTKEY_INSERT, HOTKEY_INSERT_SHUFFLED),
|
#else
|
||||||
|
"off,properties,open with,delete,insert,insert shuffled",
|
||||||
#endif
|
#endif
|
||||||
|
UNIT_INT, hotkey_formatter, hotkey_getlang, NULL,
|
||||||
|
#ifdef HAVE_TAGCACHE
|
||||||
|
7,
|
||||||
|
#else
|
||||||
|
6,
|
||||||
|
#endif
|
||||||
|
HOTKEY_OFF,HOTKEY_PROPERTIES,
|
||||||
|
#ifdef HAVE_TAGCACHE
|
||||||
|
HOTKEY_PICTUREFLOW,
|
||||||
|
#endif
|
||||||
|
HOTKEY_OPEN_WITH, HOTKEY_DELETE, HOTKEY_INSERT, HOTKEY_INSERT_SHUFFLED),
|
||||||
|
#endif /* HAVE_HOTKEY */
|
||||||
|
|
||||||
INT_SETTING(F_TIME_SETTING, resume_rewind, LANG_RESUME_REWIND, 0,
|
INT_SETTING(F_TIME_SETTING, resume_rewind, LANG_RESUME_REWIND, 0,
|
||||||
"resume rewind", UNIT_SEC, 0, 60, 5,
|
"resume rewind", UNIT_SEC, 0, 60, 5,
|
||||||
|
|
|
@ -148,8 +148,8 @@
|
||||||
\opt{hotkey}{
|
\opt{hotkey}{
|
||||||
hotkey wps & off, view playlist, show track info,
|
hotkey wps & off, view playlist, show track info,
|
||||||
pitchscreen, open with, delete & N/A\\
|
pitchscreen, open with, delete & N/A\\
|
||||||
\nopt{touchscreen}{hotkey tree & off, open with, delete, insert,
|
\nopt{touchscreen}{hotkey tree & off, properties, pictureflow, open with,
|
||||||
insert shuffled & N/A\\}
|
delete, insert, insert shuffled & N/A\\}
|
||||||
}
|
}
|
||||||
sort files & alpha, oldest, newest, type & N/A\\
|
sort files & alpha, oldest, newest, type & N/A\\
|
||||||
sort dirs & alpha, oldest, newest & N/A\\
|
sort dirs & alpha, oldest, newest & N/A\\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue