summaryrefslogtreecommitdiffstats
path: root/lib/skin_parser/tag_table.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-02-28 11:19:59 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-02-28 11:19:59 +0000
commit156b0bc6146eb69a42189907593f4aa4e45775db (patch)
tree5280bb9f9116cd0b5b547bf83d6334b6415d7c14 /lib/skin_parser/tag_table.c
parenta7fb7366b58e30a876d5754086c8b8f8c99e0654 (diff)
downloadrockbox-156b0bc6146eb69a42189907593f4aa4e45775db.tar.gz
rockbox-156b0bc6146eb69a42189907593f4aa4e45775db.tar.bz2
rockbox-156b0bc6146eb69a42189907593f4aa4e45775db.zip
Add the option of linking the %Tl (last touch) tag to a specific touchregion. Both tags now accept an optional label param as the first param.
%Tl([label,][timeout]) %T([label,] x, y, width, height, action) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29459 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib/skin_parser/tag_table.c')
-rw-r--r--lib/skin_parser/tag_table.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/skin_parser/tag_table.c b/lib/skin_parser/tag_table.c
index 1b7fdbdb64..a4989c1025 100644
--- a/lib/skin_parser/tag_table.c
+++ b/lib/skin_parser/tag_table.c
@@ -203,11 +203,18 @@ static const struct tag_info legal_tags[] =
{ SKIN_TOKEN_TRANSLATEDSTRING, "Sx" , "S", SKIN_REFRESH_STATIC },
{ SKIN_TOKEN_LANG_IS_RTL, "Sr" , "", SKIN_REFRESH_STATIC },
- { SKIN_TOKEN_LASTTOUCH, "Tl" , "|D", SKIN_REFRESH_DYNAMIC },
- { SKIN_TOKEN_CURRENT_SCREEN, "cs", "", SKIN_REFRESH_DYNAMIC },
- { SKIN_TOKEN_TOUCHREGION, "T" , "IIIIS|S", 0|NOBREAK },
+ /* HACK Alert (jdgordon): The next two tags have hacks so we could
+ * add a S param at the front without breaking old skins.
+ * [SD]D <- handled by the callback, allows SD or S or D params
+ * [SI]III[SI]|S -< SIIIIS|S or IIIIS|S
+ * keep in sync with parse_touchregion() and parse_lasttouch() */
+ { SKIN_TOKEN_LASTTOUCH, "Tl" , "|[SD]D", SKIN_REFRESH_DYNAMIC },
+ { SKIN_TOKEN_TOUCHREGION, "T" , "[SI]III[SI]|S", 0|NOBREAK },
+
{ SKIN_TOKEN_HAVE_TOUCH, "Tp", "", FEATURE_TAG },
+ { SKIN_TOKEN_CURRENT_SCREEN, "cs", "", SKIN_REFRESH_DYNAMIC },
+
{ SKIN_TOKEN_HAVE_RECORDING, "Rp" , "", FEATURE_TAG },
{ SKIN_TOKEN_IS_RECORDING, "Rr" , "", SKIN_REFRESH_DYNAMIC },
{ SKIN_TOKEN_REC_FREQ, "Rf" , "", SKIN_REFRESH_DYNAMIC },