3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 part { name, "sdb/"#_pos"/base"; \
23 state, "default" 0.0; \
25 relative, (_pos % 7 / 7) \
26 (_pos / 7 / 6 - _pos % 7 / 7 / 6); \
30 relative, (_pos % 7 / 7 + 1 / 7) \
31 (_pos / 7 / 6 - _pos % 7 / 7 / 6 + 1 / 6); \
37 part { name, "sdb/"#_pos"/today"; \
41 state, "default" 0.0; \
48 to_x: "sdb/"#_pos"/base"; \
49 to_y: "sdb/"#_pos"/base"; \
53 to_x: "sdb/"#_pos"/base"; \
54 to_y: "sdb/"#_pos"/base"; \
57 normal, CALENDAR_YEAR_DAY_SELSECTED; \
65 inherit, "default" 0.0; \
69 part { name, "sdb/"#_pos"/text"; \
74 state, "default" 0.0; \
75 rel1.to, "sdb/"#_pos"/base"; \
76 rel2.to, "sdb/"#_pos"/base"; \
78 font, "SLP:style=Medium"; \
82 color, COLOR_OF_DEFAULT_TEXT_FOR_YEAR_CAL; \
85 state, "sunday" 0.0; \
86 inherit, "default" 0.0; \
87 color, COLOR_OF_SUNDAY_TEXT_FOR_YEAR_CAL; \
90 state, "satday" 0.0; \
91 inherit, "default" 0.0; \
92 color, COLOR_OF_SATDAY_TEXT_FOR_YEAR_CAL; \
96 inherit, "default" 0.0; \
97 color, COLOR_OF_TODAY_FOR_YEAR_CAL; \
101 program { name, "sdb/"#_pos"/weekday"; \
102 signal, "weekday,"#_pos; \
104 action, STATE_SET "default" 0.0; \
105 target, "sdb/"#_pos"/text"; \
107 program { name, "sdb/"#_pos"/sunday"; \
108 signal, "sunday,"#_pos; \
110 action, STATE_SET "sunday" 0.0; \
111 target, "sdb/"#_pos"/text"; \
113 program { name, "sdb/"#_pos"/satday"; \
114 signal, "satday,"#_pos; \
116 action, STATE_SET "satday" 0.0; \
117 target, "sdb/"#_pos"/text"; \
119 program { name, "sdb/"#_pos"/set_today"; \
120 signal, "today,"#_pos; \
122 action, STATE_SET "today" 0.0; \
123 target, "sdb/"#_pos"/today"; \
124 target, "sdb/"#_pos"/text";\
128 // day block header in year
130 part { name, "sdh/"#_pos"/base"; \
133 state, "default" 0.0; \
135 relative, (_pos % 7 / 7) 0.0; \
139 relative, (_pos % 7 / 7 + 1 / 7) 1.0; \
145 part { name, "sdh/"#_pos"/text"; \
150 state, "default" 0.0; \
151 rel1.to, "sdh/"#_pos"/base"; \
152 rel2.to, "sdh/"#_pos"/base"; \
154 font, "SLP:style=Medium"; \
158 color, COLOR_OF_DEFAULT_TEXT_FOR_YEAR_CAL; \
161 state, "sunday" 0.0; \
162 inherit, "default" 0.0; \
163 color, COLOR_OF_SUNDAY_TEXT_FOR_YEAR_CAL; \
166 state, "satday" 0.0; \
167 inherit, "default" 0.0; \
168 color, COLOR_OF_SATDAY_TEXT_FOR_YEAR_CAL; \
172 program { name, "sdh/"#_pos"/weekday"; \
173 signal, "weekday,"#_pos; \
175 action, STATE_SET "default" 0.0; \
176 target, "sdh/"#_pos"/text"; \
178 program { name, "sdh/"#_pos"/sunday"; \
179 signal, "sunday,"#_pos; \
181 action, STATE_SET "sunday" 0.0; \
182 target, "sdh/"#_pos"/text"; \
184 program { name, "sdh/"#_pos"/satday"; \
185 signal, "satday,"#_pos; \
187 action, STATE_SET "satday" 0.0; \
188 target, "sdh/"#_pos"/text"; \
192 group { name, "main/year/cal";
195 image, CALENDAR_YEAR_VIEW_BG COMP;
196 image, CALENDAR_YEAR_DAY_SELSECTED COMP;
203 state, "default" 0.0;
208 part { name, "sdh/base";
211 state, "default" 0.0;
217 relative, 0.98 (0.02 + (1 / 7));
224 part { name, "sdb/base";
227 state, "default" 0.0;
230 to_x, "base"; to_y, "sdh/base";
240 SDH(0) SDH(1) SDH(2) SDH(3) SDH(4) SDH(5) SDH(6)
242 SDB( 0) SDB( 1) SDB( 2) SDB( 3) SDB( 4) SDB( 5) SDB( 6)
243 SDB( 7) SDB( 8) SDB( 9) SDB(10) SDB(11) SDB(12) SDB(13)
244 SDB(14) SDB(15) SDB(16) SDB(17) SDB(18) SDB(19) SDB(20)
245 SDB(21) SDB(22) SDB(23) SDB(24) SDB(25) SDB(26) SDB(27)
246 SDB(28) SDB(29) SDB(30) SDB(31) SDB(32) SDB(33) SDB(34)
247 SDB(35) SDB(36) SDB(37) SDB(38) SDB(39) SDB(40) SDB(41)