rockbox/lib/skin_parser
Jonathan Gordon 74ec011bb8 New skin tag: %if(<tag>, <operator>, <operand> [,option count]) which lets you do very simple logical comparissons on other tags.
<tag> is the tag to check against
<operator> is the comparisson to do, any one of... =, !=, >, >=, <, <=    (when comparring against a string tag like %ia only = and != work, and it is done NOT case sensitive)
<operand> is either another tag, a number, or text.
[option count] is an optinal number to use for the few tags which scale to the amount of options when used as a conditional (i.e %?pv<a|b|c|d> would have 4 options)

example: %?if(%pv, >=, 0)<Warning.. volume clipping|coool...>
That says "If the value from %pv (volume) is greater than or equal to 0 then display the warning line, otherwise the cool line."
%?if(%ia, =, %Ia)<same artist>   <= this artist and next artist are the same.

some tags might need a touch of tweaking to work better with this. experiment and have fun

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27846 a1c6a512-1295-4272-9138-f99709370657
2010-08-19 13:49:32 +00:00
..
Makefile Don't overwrite AR if it's been set from outside. 2010-07-21 19:35:16 +00:00
skin_buffer.c FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something. 2010-07-29 12:37:48 +00:00
skin_buffer.h FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something. 2010-07-29 12:37:48 +00:00
skin_debug.c make -vvv display the parse tree in checkwps. Fix a potential bug in the parser where recursive tags (the playlist viewier) would share params with its parant which meant bad things 2010-08-03 12:14:50 +00:00
skin_debug.h skinparser lib: even more const correctness, should fix checkwps 2010-07-31 16:30:22 +00:00
skin_parser.c New skin tag: %if(<tag>, <operator>, <operand> [,option count]) which lets you do very simple logical comparissons on other tags. 2010-08-19 13:49:32 +00:00
skin_parser.h make -vvv display the parse tree in checkwps. Fix a potential bug in the parser where recursive tags (the playlist viewier) would share params with its parant which meant bad things 2010-08-03 12:14:50 +00:00
skin_parser.make Moved libskin_parser to lib. Added it to link line. 2010-06-24 11:47:37 +00:00
skin_scan.c skinparser lib: more const correctness 2010-07-31 16:25:41 +00:00
skin_scan.h skinparser lib: more const correctness 2010-07-31 16:25:41 +00:00
SOURCES FS#11470 - new skin code, finally svn uses the new parser from the theme editor. This means that a skin that passes the editor WILL pass svn and checkwps (unless the target runs out of skin buffer or something. 2010-07-29 12:37:48 +00:00
symbols.h
tag_table.c New skin tag: %if(<tag>, <operator>, <operand> [,option count]) which lets you do very simple logical comparissons on other tags. 2010-08-19 13:49:32 +00:00
tag_table.h New skin tag: %if(<tag>, <operator>, <operand> [,option count]) which lets you do very simple logical comparissons on other tags. 2010-08-19 13:49:32 +00:00