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.
21 #define HD_SCALE 800/1280
22 #define WIDTH_OF_YEAR_VIEW (WIDTH_OF_HD-PAD)
25 #define PAD_L (32*R_X_L)
26 #define WIDTH_OF_YEAR_VIEW_L (WIDTH_OF_HD_L-PAD_L)
29 part { name, "mb/"#_pos"/base"; \
32 state, "default" 0.0; \
34 relative, (_pos % 3 / 3) \
35 (_pos / 3 / 4 - _pos % 3 / 3 / 4); \
39 relative, (_pos % 3 / 3 + 1 / 3) \
40 (_pos / 3 / 4 - _pos % 3 / 3 / 4 + 1 / 4); \
46 part { name, "mb/"#_pos"/sel"; \
50 state, "default" 0.0; \
51 rel1.to, "mb/"#_pos"/base"; \
54 to, "mb/"#_pos"/base"; \
57 normal, CALENDAR_YEAR_MONTH_SELSECTED; \
64 state, "selected" 0.0; \
65 inherit, "default" 0.0; \
69 part { name, "mb/"#_pos"/bg"; \
73 state, "default" 0.0; \
74 rel1.to, "mb/"#_pos"/base"; \
77 to, "mb/"#_pos"/base"; \
79 image.normal, CALENDAR_WEEK_VIEW_PRESS; \
83 state, "selected" 0.0; \
84 inherit, "default" 0.0; \
88 part { name, "mb/"#_pos"/text"; \
93 state, "default" 0.0; \
94 rel1.to, "mb/"#_pos"/base"; \
97 to, "mb/"#_pos"/base"; \
100 font, "SLP:style=Medium"; \
107 state, "selected" 0.0; \
108 inherit, "default" 0.0; \
109 color, 255 255 255 255; \
112 part { name, "mb/"#_pos"/line"; \
115 state, "default" 0.0; \
121 to_x, "mb/"#_pos"/base"; \
122 to_y, "mb/"#_pos"/text"; \
126 to_x, "mb/"#_pos"/base"; \
127 to_y, "mb/"#_pos"/text"; \
129 color, COLOR_OF_LINE_FOR_YEAR_CAL; \
133 state, "selected" 0.0; \
134 inherit, "default" 0.0; \
138 part { name, "mb/"#_pos"/sw"; \
142 state, "default" 0.0; \
145 to_x, "mb/"#_pos"/base"; \
146 to_y, "mb/"#_pos"/line"; \
150 to_x, "mb/"#_pos"/base"; \
151 to_y, "mb/"#_pos"/base"; \
156 program { name, "mb/"#_pos"/down"; \
157 signal, "mouse,down,1"; \
158 source, "mb/"#_pos"/base"; \
159 action, STATE_SET "selected" 0.0; \
160 target, "mb/"#_pos"/bg"; \
162 program { name, "mb/"#_pos"/up"; \
163 signal, "mouse,up,1"; \
164 source, "mb/"#_pos"/base"; \
165 action, STATE_SET "default" 0.0; \
166 target, "mb/"#_pos"/bg"; \
168 program { name, "mb/"#_pos"/click"; \
169 signal, "mouse,clicked,1"; \
170 source, "mb/"#_pos"/base"; \
171 action, SIGNAL_EMIT #_pos "cal"; \
173 program { name, "mb/"#_pos"/select"; \
174 signal, "select,"#_pos; \
176 action, STATE_SET "selected" 0.0; \
177 target, "mb/"#_pos"/sel"; \
178 target, "mb/"#_pos"/text"; \
179 target, "mb/"#_pos"/line"; \
181 program { name, "mb/"#_pos"/unselect"; \
182 signal, "unselect,"#_pos; \
184 action, STATE_SET "default" 0.0; \
185 target, "mb/"#_pos"/sel"; \
186 target, "mb/"#_pos"/text"; \
187 target, "mb/"#_pos"/line"; \
191 #define HANDLE(_pos) \
192 part { name, "handle/"#_pos"/sw"; \
195 state, "default" 0.0; \
197 relative, (_pos % 3 / 3) \
198 (_pos / 3 / 4 - _pos % 3 / 3 / 4); \
202 relative, (_pos % 3 / 3 + 1 / 3) \
203 (_pos / 3 / 4 - _pos % 3 / 3 / 4 + 1 / 4); \
209 group { name, "year/layout";
216 state, "default" 0.0;
218 rel1 { relative, 0.0 0.0; }
219 rel2 { relative, 1.0 1.0; }
223 part { name, "content";
227 state, "default" 0.0;
233 part { name, "edje/handle";
237 state, "default" 0.0;
243 part { name, "content/left";
247 state, "default" 0.0;
248 rel1 { relative, -1.0 0.0; to, "content"; }
249 rel2 { relative, 0.0 1.0; to, "content";}
253 part { name, "content/right";
257 state, "default" 0.0;
258 rel1 { relative, 1.0 0.0; to, "content"; }
259 rel2 { relative, 2.0 1.0; to, "content";}
266 state, "default" 0.0;
275 group { name, "year/edje/handle";
282 state, "default" 0.0;
284 rel1 { relative, 0.0 0.0; }
285 rel2 { relative, 1.0 1.0; }
289 HANDLE(0) HANDLE(1) HANDLE(2)
290 HANDLE(3) HANDLE(4) HANDLE(5)
291 HANDLE(6) HANDLE(7) HANDLE(8)
292 HANDLE(9) HANDLE(10) HANDLE(11)
296 group { name, "main/year/months";
299 image, "calendar_selected.png" COMP;
300 image, "57_calendar_week_view_press.png" COMP;
301 image, CALENDAR_YEAR_MONTH_SELSECTED COMP;
308 state, "default" 0.0;
309 color, 248 246 239 255;
312 part { name, "base_real";
315 state, "default" 0.0;
316 rel1 { relative, PAD/WIDTH_OF_HD 0/HEIGHT_OF_HD; }
317 rel2 { relative, WIDTH_OF_YEAR_VIEW/WIDTH_OF_HD HEIGHT_OF_HD/HEIGHT_OF_HD; }
330 part { name, "mb/"#_pos"/base"; \
333 state, "default" 0.0; \
335 relative, (_pos % 4 / 4) \
336 (_pos / 4 / 3 - _pos % 4 / 4/ 3); \
340 relative, (_pos % 4 / 4 + 1 / 4) \
341 (_pos / 4 / 3 - _pos % 4 / 4 / 3 + 1 / 3); \
347 part { name, "mb/"#_pos"/sel"; \
351 state, "default" 0.0; \
352 rel1.to, "mb/"#_pos"/base"; \
355 to, "mb/"#_pos"/base"; \
358 normal, CALENDAR_YEAR_MONTH_SELSECTED; \
365 state, "selected" 0.0; \
366 inherit, "default" 0.0; \
370 part { name, "mb/"#_pos"/bg"; \
374 state, "default" 0.0; \
375 rel1.to, "mb/"#_pos"/base"; \
378 to, "mb/"#_pos"/base"; \
380 image.normal, CALENDAR_WEEK_VIEW_PRESS; \
384 state, "selected" 0.0; \
385 inherit, "default" 0.0; \
389 part { name, "mb/"#_pos"/text"; \
394 state, "default" 0.0; \
395 rel1.to, "mb/"#_pos"/base"; \
397 relative, 1.0 0.15; \
398 to, "mb/"#_pos"/base"; \
401 font, "SLP:style=Medium"; \
408 state, "selected" 0.0; \
409 inherit, "default" 0.0; \
410 color, 255 255 255 255; \
413 part { name, "mb/"#_pos"/line"; \
416 state, "default" 0.0; \
422 to_x, "mb/"#_pos"/base"; \
423 to_y, "mb/"#_pos"/text"; \
427 to_x, "mb/"#_pos"/base"; \
428 to_y, "mb/"#_pos"/text"; \
430 color, COLOR_OF_LINE_FOR_YEAR_CAL; \
434 state, "selected" 0.0; \
435 inherit, "default" 0.0; \
439 part { name, "mb/"#_pos"/sw"; \
443 state, "default" 0.0; \
446 to_x, "mb/"#_pos"/base"; \
447 to_y, "mb/"#_pos"/line"; \
451 to_x, "mb/"#_pos"/base"; \
452 to_y, "mb/"#_pos"/base"; \
457 program { name, "mb/"#_pos"/down"; \
458 signal, "mouse,down,1"; \
459 source, "mb/"#_pos"/base"; \
460 action, STATE_SET "selected" 0.0; \
461 target, "mb/"#_pos"/bg"; \
463 program { name, "mb/"#_pos"/up"; \
464 signal, "mouse,up,1"; \
465 source, "mb/"#_pos"/base"; \
466 action, STATE_SET "default" 0.0; \
467 target, "mb/"#_pos"/bg"; \
469 program { name, "mb/"#_pos"/click"; \
470 signal, "mouse,clicked,1"; \
471 source, "mb/"#_pos"/base"; \
472 action, SIGNAL_EMIT #_pos "cal"; \
474 program { name, "mb/"#_pos"/select"; \
475 signal, "select,"#_pos; \
477 action, STATE_SET "selected" 0.0; \
478 target, "mb/"#_pos"/sel"; \
479 target, "mb/"#_pos"/text"; \
480 target, "mb/"#_pos"/line"; \
482 program { name, "mb/"#_pos"/unselect"; \
483 signal, "unselect,"#_pos; \
485 action, STATE_SET "default" 0.0; \
486 target, "mb/"#_pos"/sel"; \
487 target, "mb/"#_pos"/text"; \
488 target, "mb/"#_pos"/line"; \
492 #define HANDLE_L(_pos) \
493 part { name, "handle/"#_pos"/sw"; \
496 state, "default" 0.0; \
498 relative, (_pos % 4 / 4) \
499 (_pos / 4 / 3 - _pos % 4 / 4 / 3); \
503 relative, (_pos % 4 / 4 + 1 / 4) \
504 (_pos / 4 / 3 - _pos % 4 / 4 / 3 + 1 / 3); \
510 group { name, "year/edje/handle/l";
517 state, "default" 0.0;
519 rel1 { relative, 0.0 0.0; }
520 rel2 { relative, 1.0 1.0; }
524 HANDLE_L(0) HANDLE_L(1) HANDLE_L(2)
525 HANDLE_L(3) HANDLE_L(4) HANDLE_L(5)
526 HANDLE_L(6) HANDLE_L(7) HANDLE_L(8)
527 HANDLE_L(9) HANDLE_L(10) HANDLE_L(11)
531 group { name, "main/year/months/l";
534 image, "calendar_selected.png" COMP;
535 image, "57_calendar_week_view_press.png" COMP;
536 image, CALENDAR_YEAR_MONTH_SELSECTED COMP;
543 state, "default" 0.0;
544 color, 248 246 239 255;
548 part { name, "base_real";
551 state, "default" 0.0;
552 rel1 { relative, PAD_L/WIDTH_OF_HD_L 0/HEIGHT_OF_HD_L; }
553 rel2 { relative, WIDTH_OF_YEAR_VIEW_L/WIDTH_OF_HD_L HEIGHT_OF_HD_L/HEIGHT_OF_HD_L; }
558 MB_L(0) MB_L(1) MB_L(2)
559 MB_L(3) MB_L(4) MB_L(5)
560 MB_L(6) MB_L(7) MB_L(8)
561 MB_L(9) MB_L(10) MB_L(11)