diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-11-16 09:38:15 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-11-16 09:38:15 +0000 |
commit | 76d2dd9c0ed0c4f105c4cdd18f1c110cfcb4d9d5 (patch) | |
tree | 23b7d234e8b9c4199025427fda7d0a1128cd7d27 /apps/gui/wps_debug.c | |
parent | db5965ff9e615d6eadcf7819d2518f7944bc35c6 (diff) |
FS#9477 - new WPS tag (%mo) which lets the WPS have different "modes" which are changed with the usual "back to browser" button (This button is ONLY stolen if the WPS you use uses this tag.
an example use:
%?mo<one|two|three>
meaning that when the WPS is first opened "one" will be displayed, pressing select will change it to showing two, pressing it again will show three, and once more will go back to showing one. The text there could be any wps tags (conditional viewports for example...)
There is no real limit on the amount of modes, but remember that if you create a WPS which uses this tag more than once that every use HAS to have the same amount of choices or bad things will happen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19110 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/wps_debug.c')
-rw-r--r-- | apps/gui/wps_debug.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/wps_debug.c b/apps/gui/wps_debug.c index 5a18218a52..ad595e305a 100644 --- a/apps/gui/wps_debug.c +++ b/apps/gui/wps_debug.c @@ -435,6 +435,9 @@ static char *get_token_desc(struct wps_token *token, struct wps_data *data, snprintf(buf, bufsize, "Volume button timeout:%d", token->value.i); break; + case WPS_TOKEN_VIEWMODE: + snprintf(buf, bufsize, "viewmode"); + break; default: snprintf(buf, bufsize, "FIXME (code: %d)", token->type); |