2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * PROPRIETARY/CONFIDENTIAL
6 * This software is the confidential and proprietary information of SAMSUNG
7 * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8 * software is owned by Samsung and you shall not disclose such Confidential
9 * Information and shall use it only in accordance with the terms of the license
10 * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11 * representations or warranties about the suitability of the software, either
12 * express or implied, including but not limited to the implied warranties of
13 * merchantability, fitness for a particular purpose, or non-infringement.
14 * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15 * of or releated to this software.
20 part { name: "ch_"#_pos".base"; \
23 description { state: "default" 0.0; \
25 relative: (_pos % 7 / 7) 0; \
29 relative: (_pos % 7 / 7 + 1 / 7) 1; \
36 part { name: "ch_"#_pos".text"; \
40 clip_to: "ch_"#_pos".clipper"; \
42 state: "default" 0.0; \
43 rel1.to: "ch_"#_pos".base"; \
44 rel2.to: "ch_"#_pos".base"; \
45 color: CALENDAR_WEEKDAY_FONT_COLOR_INC; \
47 font: "SLP:style=Roman"; \
48 size: CALENDAR_DAY_FONT_SIZE_INC; \
51 text_class: "slp_roman"; \
55 part { name: "ch_"#_pos".clipper"; \
58 description { state: "default" 0.0; \
59 rel1.to: "ch_"#_pos".base"; \
60 rel2.to: "ch_"#_pos".base"; \
65 part { name: "cit_"#_pos".rect"; \
67 description { state: "default" 0.0; \
69 relative: (_pos % 7 / 7) \
70 (_pos / 7 / 6 - _pos % 7 / 7 / 6); \
74 relative: (_pos % 7 / 7 + 1 / 7) \
75 (_pos / 7 / 6 - _pos % 7 / 7 / 6 + 1 / 6); \
80 normal: "00_picker_field_bg.png"; \
84 description { state: "selected" 0.0; \
85 inherit: "default" 0.0; \
87 normal: "00_picker_btn_press.png"; \
91 description { state: "expand" 0.0; \
92 inherit: "default" 0.0; \
94 relative: (_pos % 7 / 7) \
95 (_pos / 7 / 5 - _pos % 7 / 7 / 5); \
99 relative: (_pos % 7 / 7 + 1 / 7) \
100 (_pos / 7 / 5 - _pos % 7 / 7 / 5 + 1 / 5); \
105 description { state: "invisible" 0.0; \
106 inherit: "default" 0.0; \
110 description { state: "today_normal" 0.0; \
111 inherit: "default" 0.0; \
113 normal: "00_picker_btn_current.png"; \
117 description { state: "today_expand" 0.0; \
118 inherit: "expand" 0.0; \
120 normal: "00_picker_btn_current.png"; \
126 name: "cit_"#_pos".event"; \
131 rel1.to: "cit_"#_pos".rect"; \
132 rel2.to: "cit_"#_pos".rect"; \
133 state: "default" 0.0; \
138 name: "cit_"#_pos".bg"; \
141 description { state: "default" 0.0; \
143 color: 255 255 255 0; \
145 to: "cit_"#_pos".rect"; \
149 to: "cit_"#_pos".rect"; \
153 normal: "00_calend_picker_day_press.png"; \
155 image.middle: SOLID; \
157 description { state: "selected" 0.0; \
158 inherit: "default" 0.0; \
160 color: 255 255 255 255; \
163 part { name: "cit_"#_pos".text"; \
168 state: "default" 0.0; \
169 rel1.to: "cit_"#_pos".rect"; \
170 rel2.to: "cit_"#_pos".rect"; \
171 color: CALENDAR_WEEKDAY_FONT_COLOR_INC; \
173 font: "SLP:style=Medium"; \
174 size: CALENDAR_DATE_FONT_SIZE_INC; \
177 text_class: "slp_medium"; \
180 description { state: "saturday" 0.0; \
181 inherit: "default" 0.0; \
182 color: CALENDAR_SATURDAY_FONT_COLOR_INC; \
184 description { state: "sunday" 0.0; \
185 inherit: "default" 0.0; \
186 color: CALENDAR_SUNDAY_FONT_COLOR_INC; \
188 description { state: "selected" 0.0; \
189 inherit: "default" 0.0; \
190 color: CALENDAR_SELECTED_DATE_FONT_COLOR_INC; \
192 description { state: "selected_saturday" 0.0; \
193 inherit: "default" 0.0; \
194 color: CALENDAR_SELECTED_DATE_FONT_COLOR_INC; \
196 description { state: "selected_sunday" 0.0; \
197 inherit: "default" 0.0; \
198 color: CALENDAR_SELECTED_DATE_FONT_COLOR_INC; \
201 part { name: "cit_"#_pos".check"; \
204 description { state: "default" 0.0; \
206 to: "cit_"#_pos".rect"; \
211 to: "cit_"#_pos".rect"; \
217 image.normal: "00_check_checking.png"; \
219 description { state: "visible" 0.0; \
220 inherit: "default" 0.0; \
226 name: "cit_"#_pos".go_active"; \
227 signal: "cit_"#_pos",selected"; \
232 get_state(PART:"cit_"#_pos".text", st, 30, vl); \
233 if (!strcmp(st, "saturday")) \
234 set_state(PART:"cit_"#_pos".text", "selected_saturday", 0.0); \
235 else if (!strcmp(st, "sunday")) \
236 set_state(PART:"cit_"#_pos".text", "selected_sunday", 0.0); \
238 set_state(PART:"cit_"#_pos".text", "selected", 0.0); \
239 set_state(PART:"cit_"#_pos".bg", "selected", 0.0); \
243 name: "cit_"#_pos".go_passive"; \
244 signal: "cit_"#_pos",unselected"; \
249 get_state(PART:"cit_"#_pos".text", st, 30, vl); \
250 if (!strcmp(st, "selected_saturday")) \
251 set_state(PART:"cit_"#_pos".text", "saturday", 0.0); \
252 else if (!strcmp(st, "selected_sunday")) \
253 set_state(PART:"cit_"#_pos".text", "sunday", 0.0); \
255 set_state(PART:"cit_"#_pos".text", "default", 0.0); \
256 set_state(PART:"cit_"#_pos".bg", "default", 0.0); \
260 name: "cit_"#_pos".weekday"; \
261 signal: "cit_"#_pos",weekday"; \
263 action: STATE_SET "default" 0.0; \
264 target: "cit_"#_pos".text"; \
267 name: "cit_"#_pos".saturday"; \
268 signal: "cit_"#_pos",saturday"; \
270 action: STATE_SET "saturday" 0.0; \
271 target: "cit_"#_pos".text"; \
274 name: "cit_"#_pos".sunday"; \
275 signal: "cit_"#_pos",sunday"; \
277 action: STATE_SET "sunday" 0.0; \
278 target: "cit_"#_pos".text"; \
281 name: "cit_"#_pos".is_today"; \
282 signal: "cit_"#_pos",today"; \
287 get_state(PART:"cit_"#_pos".rect", st, 30, vl); \
288 if (!strcmp(st, "expand")) \
290 set_state(PART:"cit_"#_pos".rect", "today_expand", 0.0); \
294 set_state(PART:"cit_"#_pos".rect", "today_normal", 0.0); \
299 name: "cit_"#_pos".not_today"; \
300 signal: "cit_"#_pos",not_today"; \
302 action: STATE_SET "default" 0.0; \
303 target: "cit_"#_pos".rect"; \
306 source: "cit_"#_pos".clicked"; \
307 signal: "mouse,clicked,1"; \
308 source: "cit_"#_pos".event"; \
309 action: SIGNAL_EMIT "elm,action,selected" #_pos; \
312 name: "cit_"#_pos".clear"; \
313 signal: "cit_"#_pos",clear"; \
315 action: STATE_SET "default" 0.0; \
316 target: "cit_"#_pos".check"; \
319 name: "cit_"#_pos".checked"; \
320 signal: "cit_"#_pos",checked"; \
322 action: STATE_SET "visible" 0.0; \
323 target: "cit_"#_pos".check"; \
326 name: "cit_"#_pos".go_expanded"; \
327 signal: "cit_"#_pos",cell_expanded"; \
329 action: STATE_SET "expand" 0.0; \
330 target: "cit_"#_pos".rect"; \
333 name: "cit_"#_pos".go_default"; \
334 signal: "cit_"#_pos",cell_default"; \
336 action: STATE_SET "default" 0.0; \
337 target: "cit_"#_pos".rect"; \
340 name: "cit_"#_pos".go_invisible"; \
341 signal: "cit_"#_pos",cell_invisible"; \
343 action: STATE_SET "invisible" 0.0; \
344 target: "cit_"#_pos".rect"; \
348 #define CSEPV(_pos) \
349 part { name: "csep_"#_pos".vertical"; \
352 description { state: "default" 0.0; \
354 relative: (_pos / 7) 0; \
358 relative: (_pos / 7) 1; \
362 color: CALENDAR_SEPERATOR_FONT_COLOR_INC; \
367 #define CSEPH(_pos) \
368 part { name: "csep_"#_pos".horizontal"; \
371 description { state: "default" 0.0; \
373 relative: 0 (_pos / 6); \
377 relative: 1 (_pos / 6); \
381 color: CALENDAR_SEPERATOR_FONT_COLOR_INC; \
384 description { state: "expand" 0.0; \
385 inherit: "default" 0.0; \
387 relative: 0 (_pos / 5); \
391 relative: 1 (_pos / 5); \
396 description { state: "invisible" 0.0; \
397 inherit: "default" 0.0; \
403 name: "cseph_"_pos".go_show"; \
404 signal: "cseph_"#_pos",row_show"; \
406 action: STATE_SET "default" 0.0; \
407 target: "csep_"#_pos".horizontal"; \
410 name: "cseph_"_pos".go_hide"; \
411 signal: "cseph_"#_pos",row_hide"; \
413 action: STATE_SET "expand" 0.0; \
414 target: "csep_"#_pos".horizontal"; \
417 name: "cseph_"_pos".go_invisible"; \
418 signal: "cseph_"#_pos",row_invisible"; \
420 action: STATE_SET "invisible" 0.0; \
421 target: "csep_"#_pos".horizontal"; \
425 group { name: "elm/calendar/base/default";
427 image: "00_check_checking.png" COMP;
428 image: "00_picker_arrow_left.png" COMP;
429 image: "00_picker_arrow_left_press.png" COMP;
430 image: "00_picker_arrow_right.png" COMP;
431 image: "00_picker_arrow_right_press.png" COMP;
432 image: "00_picker_btn_press.png" COMP;
433 image: "00_picker_btn_normal.png" COMP;
434 image: "00_calend_picker_day_press.png" COMP;
435 image: "00_picker_btn_current.png" COMP;
436 image: "00_picker_btn_press.png" COMP;
437 image: "00_picker_field_bg.png" COMP;
446 description { state: "default" 0.0;
448 color: CALENDAR_BACKGROUND_COLOR_INC;
452 part { name: "spinner-base";
456 description { state: "default" 0.0;
457 min: CALENDAR_HEADER_MIN_WIDTH_INC CALENDAR_HEADER_MIN_HEIGHT_INC;
458 max: 999999 CALENDAR_HEADER_MIN_HEIGHT_INC;
463 color: CALENDAR_BACKGROUND_COLOR_INC;
467 part { name: "table-base";
471 description { state: "default" 0.0;
472 min: CALENDAR_BASE_MIN_WIDTH_INC CALENDAR_BASE_MIN_HEIGHT_INC;
474 rel1.to_y: "spinner-base";
479 color: CALENDAR_BACKGROUND_COLOR_INC;
482 part { name: "header";
486 description { state: "default" 0.0;
487 rel1.to: "table-base";
489 rel2.to: "table-base";
490 rel2.relative: 1 0.1;
491 color: CALENDAR_BACKGROUND_COLOR_INC;
494 part { name: "sep_header";
498 description { state: "default" 0.0;
504 color: CALENDAR_SEPERATOR_FONT_COLOR_INC;
511 description { state: "default" 0.0;
512 rel1.to_x: "table-base";
513 rel1.to_y: "sep_header";
516 rel2.to: "table-base";
522 part { name: "sep_vertical1";
525 description { state: "default" 0.0;
527 rel1.relative: 1/7 0;
529 rel2.relative: 1/7 1;
531 color: CALENDAR_SEPERATOR_FONT_COLOR_INC;
534 part { name: "left_bt";
537 description { state: "default" 0.0;
538 rel1 { to: "spinner-base";
541 rel2 { to: "spinner-base";
545 min: CALENDAR_BUTTON_WIDTH_INC CALENDAR_BUTTON_HEIGHT_INC;
546 max: CALENDAR_BUTTON_WIDTH_INC CALENDAR_BUTTON_HEIGHT_INC;
549 normal: "00_picker_btn_normal.png";
555 description { state: "clicked" 0.0;
556 inherit: "default" 0.0;
557 image.normal: "00_picker_btn_press.png";
560 part { name: "left_arrow";
563 description { state: "default" 0.0;
564 rel1 { to: "left_bt"; }
565 rel2 { to: "left_bt"; }
567 min: CALENDAR_ARROW_WIDTH_INC CALENDAR_ARROW_HEIGHT_INC;
568 max: CALENDAR_ARROW_WIDTH_INC CALENDAR_ARROW_HEIGHT_INC;
571 normal: "00_picker_arrow_left.png";
574 description { state: "clicked" 0.0;
575 inherit: "default" 0.0;
576 image.normal: "00_picker_arrow_left_press.png";
579 part { name: "right_bt";
582 description { state: "default" 0.0;
583 rel1 { to: "spinner-base";
586 rel2 { to: "spinner-base";
590 min: CALENDAR_BUTTON_WIDTH_INC CALENDAR_BUTTON_HEIGHT_INC;
591 max: CALENDAR_BUTTON_WIDTH_INC CALENDAR_BUTTON_HEIGHT_INC;
594 normal: "00_picker_btn_normal.png";
600 description { state: "clicked" 0.0;
601 inherit: "default" 0.0;
602 image.normal: "00_picker_btn_press.png";
605 part { name: "right_arrow";
608 description { state: "default" 0.0;
609 rel1 { to: "right_bt"; }
610 rel2 { to: "right_bt"; }
613 min: CALENDAR_ARROW_WIDTH_INC CALENDAR_ARROW_HEIGHT_INC;
614 max: CALENDAR_ARROW_WIDTH_INC CALENDAR_ARROW_HEIGHT_INC;
616 normal: "00_picker_arrow_right.png";
619 description { state: "clicked" 0.0;
620 inherit: "default" 0.0;
621 image.normal: "00_picker_arrow_right_press.png";
624 part { name: "month_text";
628 description { state: "default" 0.0;
631 rel1 { relative: 1.0 0.0;
634 to_y: "spinner-base";
636 rel2 { relative: 0.0 1.0;
639 to_y: "spinner-base";
641 color: CALENDAR_MONTH_FONT_COLOR_INC;
643 font: "SLP:style=Medium";
644 size: CALENDAR_MONTH_FONT_SIZE_INC;
647 text_class: "slp_medium";
651 CH(0) CH(1) CH(2) CH(3) CH(4) CH(5) CH(6)
652 CIT(0) CIT(1) CIT(2) CIT(3) CIT(4) CIT(5) CIT(6)
653 CIT(7) CIT(8) CIT(9) CIT(10) CIT(11) CIT(12) CIT(13)
654 CIT(14) CIT(15) CIT(16) CIT(17) CIT(18) CIT(19) CIT(20)
655 CIT(21) CIT(22) CIT(23) CIT(24) CIT(25) CIT(26) CIT(27)
656 CIT(28) CIT(29) CIT(30) CIT(31) CIT(32) CIT(33) CIT(34)
657 CIT(35) CIT(36) CIT(37) CIT(38) CIT(39) CIT(40) CIT(41)
658 CSEPV(1) CSEPV(2) CSEPV(3) CSEPV(4) CSEPV(5) CSEPV(6)
659 CSEPH(1) CSEPH(2) CSEPH(3) CSEPH(4) CSEPH(5) CSEPH(6)
662 program { name: "dec_start";
663 signal: "mouse,down,1";
665 action: SIGNAL_EMIT "elm,action,decrement,start" "";
667 program { name: "dec_stop";
668 signal: "mouse,up,1";
670 action: SIGNAL_EMIT "elm,action,stop" "";
672 program { name: "inc_start";
673 signal: "mouse,down,1";
675 action: SIGNAL_EMIT "elm,action,increment,start" "";
677 program { name: "inc_stop";
678 signal: "mouse,up,1";
680 action: SIGNAL_EMIT "elm,action,stop" "";
683 name: "left_bt_click";
684 signal: "mouse,down,1";
686 action: STATE_SET "clicked" 0.0;
688 target: "left_arrow";
691 name: "left_bt_unclick";
692 signal: "mouse,up,1";
694 action: STATE_SET "default" 0.0;
696 target: "left_arrow";
699 name: "right_bt_click";
700 signal: "mouse,down,1";
702 action: STATE_SET "clicked" 0.0;
704 target: "right_arrow";
707 name: "right_bt_unclick";
708 signal: "mouse,up,1";
710 action: STATE_SET "default" 0.0;
712 target: "right_arrow";