summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-11-01 22:48:46 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-11-01 22:48:46 +0000
commit9cd15dad9dd763f0840f0f5386e98bd6437c8593 (patch)
tree4b85e20e784b83e292012b1c91442a66206fc802
parente702e5dbf8f0d6e6d2938db60af6a6d4af806342 (diff)
downloadrockbox-9cd15dad9dd763f0840f0f5386e98bd6437c8593.tar.gz
rockbox-9cd15dad9dd763f0840f0f5386e98bd6437c8593.zip
new skin token: %cx - 24 hour time format enabled in the setting.. e.g %?cx<24 hour|12 hour>
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23474 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/skin_engine/skin_parser.c1
-rw-r--r--apps/gui/skin_engine/skin_tokens.c6
-rw-r--r--apps/gui/skin_engine/skin_tokens.h1
-rw-r--r--wps/classic_statusbar.sbs2
4 files changed, 9 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index c05ebca45e..26ccf47335 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -200,6 +200,7 @@ static const struct wps_tag all_tags[] = {
200#endif 200#endif
201 201
202 { WPS_TOKEN_RTC_PRESENT , "cc", WPS_REFRESH_STATIC, NULL }, 202 { WPS_TOKEN_RTC_PRESENT , "cc", WPS_REFRESH_STATIC, NULL },
203 { WPS_TOKEN_RTC_24HR_SETTING_MODE, "cx", WPS_REFRESH_STATIC, NULL },
203 { WPS_TOKEN_RTC_DAY_OF_MONTH, "cd", WPS_RTC_REFRESH, NULL }, 204 { WPS_TOKEN_RTC_DAY_OF_MONTH, "cd", WPS_RTC_REFRESH, NULL },
204 { WPS_TOKEN_RTC_DAY_OF_MONTH_BLANK_PADDED,"ce", WPS_RTC_REFRESH, NULL }, 205 { WPS_TOKEN_RTC_DAY_OF_MONTH_BLANK_PADDED,"ce", WPS_RTC_REFRESH, NULL },
205 { WPS_TOKEN_RTC_12HOUR_CFG, "cf", WPS_RTC_REFRESH, NULL }, 206 { WPS_TOKEN_RTC_12HOUR_CFG, "cf", WPS_RTC_REFRESH, NULL },
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c
index 46adbdc097..6dbceca906 100644
--- a/apps/gui/skin_engine/skin_tokens.c
+++ b/apps/gui/skin_engine/skin_tokens.c
@@ -569,6 +569,12 @@ const char *get_token_value(struct gui_wps *gwps,
569#else 569#else
570 return NULL; 570 return NULL;
571#endif 571#endif
572 case WPS_TOKEN_RTC_24HR_SETTING_MODE:
573#if CONFIG_RTC
574 return global_settings.timeformat?NULL:"z";
575#else
576 return NULL;
577#endif
572 578
573#if CONFIG_RTC 579#if CONFIG_RTC
574 case WPS_TOKEN_RTC_12HOUR_CFG: 580 case WPS_TOKEN_RTC_12HOUR_CFG:
diff --git a/apps/gui/skin_engine/skin_tokens.h b/apps/gui/skin_engine/skin_tokens.h
index 6d783551e6..5f35afc274 100644
--- a/apps/gui/skin_engine/skin_tokens.h
+++ b/apps/gui/skin_engine/skin_tokens.h
@@ -62,6 +62,7 @@ enum wps_token_type {
62 /* Time */ 62 /* Time */
63 63
64 WPS_TOKEN_RTC_PRESENT, 64 WPS_TOKEN_RTC_PRESENT,
65 WPS_TOKEN_RTC_24HR_SETTING_MODE,
65 66
66 /* The begin/end values allow us to know if a token is an RTC one. 67 /* The begin/end values allow us to know if a token is an RTC one.
67 New RTC tokens should be added between the markers. */ 68 New RTC tokens should be added between the markers. */
diff --git a/wps/classic_statusbar.sbs b/wps/classic_statusbar.sbs
index 953b9a4a0e..c867672e4c 100644
--- a/wps/classic_statusbar.sbs
+++ b/wps/classic_statusbar.sbs
@@ -63,7 +63,7 @@
63 63
64# Clock on RTC able targets, and disk access 64# Clock on RTC able targets, and disk access
65%V|-36|0|-6|8|0|-|-| # align on the right with room for 6 SYSFONT digits 65%V|-36|0|-6|8|0|-|-| # align on the right with room for 6 SYSFONT digits
66%?cc<%?ca<%?St|time format|<%cH|%cI>:%cM|--:-->|> 66%?cc<%?ca<%?cx<%cH|%cI>:%cM|--:-->|>
67# disk access "icon" 67# disk access "icon"
68%V|-6|0|-|8|0|-|-| # align on the right with room for 1 SYSFONT digit 68%V|-6|0|-|8|0|-|-| # align on the right with room for 1 SYSFONT digit
69%?lh<*|> 69%?lh<*|>