Add a %cs item for the context menus
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30258 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c027dc20be
commit
e918b7b973
3 changed files with 8 additions and 3 deletions
|
@ -115,7 +115,8 @@ enum current_activity {
|
|||
ACTIVITY_PITCHSCREEN,
|
||||
ACTIVITY_OPTIONSELECT,
|
||||
ACTIVITY_PLAYLISTBROWSER,
|
||||
ACTIVITY_PLUGIN
|
||||
ACTIVITY_PLUGIN,
|
||||
ACTIVITY_CONTEXTMENU
|
||||
};
|
||||
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
|
|
|
@ -1347,12 +1347,15 @@ int onplay(char* file, int attr, int from, bool hotkey)
|
|||
#else
|
||||
(void)hotkey;
|
||||
#endif
|
||||
|
||||
push_current_activity(ACTIVITY_CONTEXTMENU);
|
||||
if (context == CONTEXT_WPS)
|
||||
menu = &wps_onplay_menu;
|
||||
else
|
||||
menu = &tree_onplay_menu;
|
||||
menu_selection = do_menu(menu, NULL, NULL, false);
|
||||
|
||||
pop_current_activity();
|
||||
|
||||
switch (menu_selection)
|
||||
{
|
||||
case GO_TO_WPS:
|
||||
|
|
|
@ -269,7 +269,8 @@ Example: \config{\%?mp<Stop|Play|Pause|Ffwd|Rew|Rec|Rec pause|FM|FM pause>}
|
|||
\config{\%cs} & The current screen, 1-15, in the order:
|
||||
Menus, WPS, Recording screen, FM Radio screen, Current Playlist screen,
|
||||
Settings menus, File browser, Database, Plugins, Quickscreen,
|
||||
Pitchscreen, Setting chooser, Playlist Catalog Viewer, Plugin\\
|
||||
Pitchscreen, Setting chooser, Playlist Catalog Viewer, Plugin,
|
||||
Conext Menu\\
|
||||
\end{tagmap}
|
||||
The tag can also be used as the switch in a conditional tag. For players without
|
||||
some capabilities (e.g. having no FM radio) some values will be never yielded.
|
||||
|
|
Loading…
Reference in a new issue