3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
19 ///////////////////////////////////////////////////////////////////////////////
21 ///////////////////////////////////////////////////////////////////////////////
23 #define DATETIME_PADDING(_pos, prev_part) \
25 name: "picker.padding"#_pos; \
29 description { state: "default" 0.0; \
44 description { state: "enable" 0.0;\
45 inherit: "default" 0.0;\
46 min: DATETIME_FIELD_PICKER_PADDING_SIZE_INC;\
50 name: "left.padding"#_pos; \
55 description { state: "default" 0.0; \
64 to: "picker.padding"#_pos;\
68 to: "picker.padding"#_pos;\
71 description { state: "enable" 0.0;\
72 inherit: "default" 0.0;\
73 min: DATETIME_FIELD_LEFT_PADDING_SIZE_INC;\
77 name: "right.padding"#_pos; \
83 state: "default" 0.0;\
99 description { state: "enable" 0.0;\
100 inherit: "default" 0.0;\
101 min: DATETIME_FIELD_RIGHT_PADDING_SIZE_INC;\
106 name: "field_"#_pos"enabled";\
107 signal: "field"#_pos",enable";\
109 action: STATE_SET "enable" 0.0;\
110 target: "left.padding"#_pos;\
111 target: "right.padding"#_pos;\
112 target: "field"#_pos;\
115 name: "field_"#_pos"disabled";\
116 signal: "field"#_pos",disable";\
118 action: STATE_SET "default" 0.0;\
119 target: "left.padding"#_pos;\
120 target: "right.padding"#_pos;\
121 target: "field"#_pos;\
125 #define DATETIME_FIELD(_pos) \
127 name: "field"#_pos; \
132 description { state: "default" 0.0; \
140 to: "left.padding"#_pos;\
144 to: "left.padding"#_pos;\
147 description { state: "enable" 0.0;\
148 inherit: "default" 0.0;\
150 min: DATETIME_FIELD_MIN_SIZE_INC;\
154 name: "separator"#_pos; \
160 state: "default" 0.0;\
168 to: "right.padding"#_pos;\
172 to: "right.padding"#_pos;\
174 color: DATETIME_SEPARATOR_TEXT_COLOR_INC;\
176 font: "Tizen:style=Regular";\
177 size: DATETIME_SEPARATOR_TEXT_FONT_SIZE_INC;\
179 text_class: "tizen";\
182 description { state: "enable" 0.0;\
183 inherit: "default" 0.0;\
185 min: DATETIME_SEPARATOR_MIN_SIZE_INC;\
190 name: "separator"#_pos",enabled";\
191 signal: "field"#_pos",separator,enable";\
193 action: STATE_SET "enable" 0.0;\
194 target: "separator"#_pos;\
197 name: "separator"#_pos",disabled";\
198 signal: "field"#_pos",separator,disable";\
200 action: STATE_SET "default" 0.0;\
201 target: "separator"#_pos;\
205 #define DATETIME_PICKER_PADDING_PROGRAMS \
207 name: "datepicker_starting_field2_padding";\
208 signal: "datepicker,starting,field2";\
211 set_state(PART:"picker.padding2", "enable", 0.0);\
212 set_state(PART:"picker.padding3", "default", 0.0);\
216 name: "datepicker_starting_field3_padding";\
217 signal: "datepicker,starting,field3";\
220 set_state(PART:"picker.padding3", "enable", 0.0);\
221 set_state(PART:"picker.padding2", "default", 0.0);\
225 name: "timepicker_starting_field3_padding";\
226 signal: "timepicker,starting,field3";\
229 set_state(PART:"picker.padding2", "default", 0.0);\
230 set_state(PART:"picker.padding3", "enable", 0.0);\
234 name: "timepicker_starting_field0_padding";\
235 signal: "timepicker,starting,field0";\
237 action: STATE_SET "default" 0.0;\
238 target: "picker.padding0";\
241 name: "datepicker_starting_field1_padding";\
242 signal: "datepicker,starting,field1";\
244 action: STATE_SET "default" 0.0;\
245 target: "picker.padding0";\
246 target: "picker.padding2";\
247 target: "picker.padding3";\
250 name: "datepicker_starting_field4_padding";\
251 signal: "datepicker,starting,field4";\
253 action: STATE_SET "default" 0.0;\
254 target: "picker.padding0";\
255 target: "picker.padding2";\
256 target: "picker.padding3";\
260 #define DATETIME_DATEPICKER_BG \
262 name: "date.picker.left.pad"; \
265 description { state: "default" 0.0; \
272 to: "left.padding0";\
276 to: "left.padding0";\
279 description { state: "datefirst" 0.0;\
280 inherit: "default" 0.0;\
281 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
283 description { state: "timefirst" 0.0;\
284 inherit: "default" 0.0;\
285 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
288 to: "left.padding3";\
292 to: "left.padding3";\
295 description { state: "timefirst24hr" 0.0;\
296 inherit: "default" 0.0;\
297 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
300 to: "left.padding2";\
304 to: "left.padding2";\
309 name: "date.picker.right.pad"; \
312 description { state: "default" 0.0; \
326 description { state: "datefirst" 0.0;\
327 inherit: "default" 0.0;\
328 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
330 description { state: "timefirst" 0.0;\
331 inherit: "default" 0.0;\
332 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
342 description { state: "timefirst24hr" 0.0;\
343 inherit: "default" 0.0;\
344 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
356 name: "date.picker.bg"; \
358 description { state: "default" 0.0; \
363 normal: "00_button_01.png";\
364 border: DATETIME_BG_IMAGE_BORDER_INC;\
369 to: "date.picker.left.pad";\
373 to: "date.picker.right.pad";\
376 description { state: "datefirst" 0.0;\
377 inherit: "default" 0.0;\
380 description { state: "timefirst" 0.0;\
381 inherit: "default" 0.0;\
384 description { state: "timefirst24hr" 0.0;\
385 inherit: "default" 0.0;\
388 description { state: "datefirst_press" 0.0;\
389 inherit: "datefirst" 0.0;\
391 normal: "00_button_01_press.png";\
392 border: DATETIME_BG_IMAGE_BORDER_INC;\
396 description { state: "timefirst_press" 0.0;\
397 inherit: "timefirst" 0.0;\
399 normal: "00_button_01_press.png";\
400 border: DATETIME_BG_IMAGE_BORDER_INC;\
404 description { state: "timefirst24hr_press" 0.0;\
405 inherit: "timefirst24hr" 0.0;\
407 normal: "00_button_01_press.png";\
408 border: DATETIME_BG_IMAGE_BORDER_INC;\
414 name: "datepicker.focus";\
417 state: "default" 0.0;\
419 rel1.to : "date.picker.bg";\
420 rel2.to : "date.picker.bg";\
422 normal: "00_button_01_focus.png";\
423 border: DATETIME_BG_IMAGE_BORDER_INC;\
427 description { state: "focus" 0.0;\
428 inherit: "default" 0.0;\
434 name: "datepicker_starting_field0";\
435 signal: "datepicker,starting,field0";\
437 action: STATE_SET "datefirst" 0.0;\
438 target: "date.picker.bg";\
439 target: "date.picker.left.pad";\
440 target: "date.picker.right.pad";\
443 name: "datepicker_starting_field3";\
444 signal: "datepicker,starting,field3";\
446 action: STATE_SET "timefirst" 0.0;\
447 target: "date.picker.bg";\
448 target: "date.picker.left.pad";\
449 target: "date.picker.right.pad";\
452 name: "datepicker_starting_field2";\
453 signal: "datepicker,starting,field2";\
455 action: STATE_SET "timefirst24hr" 0.0;\
456 target: "date.picker.bg";\
457 target: "date.picker.left.pad";\
458 target: "date.picker.right.pad";\
461 name: "datepicker_starting_field1";\
462 signal: "datepicker,starting,field1";\
464 action: STATE_SET "default" 0.0;\
465 target: "date.picker.bg";\
466 target: "date.picker.left.pad";\
467 target: "date.picker.right.pad";\
470 name: "datepicker_starting_field4";\
471 signal: "datepicker,starting,field4";\
473 action: STATE_SET "default" 0.0;\
474 target: "date.picker.bg";\
475 target: "date.picker.left.pad";\
476 target: "date.picker.right.pad";\
479 name: "datepicker_starting_field5";\
480 signal: "datepicker,starting,field5";\
482 action: STATE_SET "default" 0.0;\
483 target: "date.picker.bg";\
484 target: "date.picker.left.pad";\
485 target: "date.picker.right.pad";\
488 name: "datepicker_mouse_down";\
489 signal: "mouse,down,1";\
490 source: "date.picker.bg";\
494 get_state(PART:"date.picker.bg", st, 30, vl);\
495 if (!strcmp(st, "datefirst")) {\
496 set_state(PART:"date.picker.bg", "datefirst_press", 0.0);\
498 else if (!strcmp(st, "timefirst")) {\
499 set_state(PART:"date.picker.bg", "timefirst_press", 0.0);\
501 else if (!strcmp(st, "timefirst24hr")) {\
502 set_state(PART:"date.picker.bg", "timefirst24hr_press", 0.0);\
507 name: "datepicker_mouse_up";\
508 signal: "mouse,up,1";\
509 source: "date.picker.bg";\
513 get_state(PART:"date.picker.bg", st, 30, vl);\
514 if (!strcmp(st, "datefirst_press")) {\
515 set_state(PART:"date.picker.bg", "datefirst", 0.0);\
517 else if (!strcmp(st, "timefirst_press")) {\
518 set_state(PART:"date.picker.bg", "timefirst", 0.0);\
520 else if (!strcmp(st, "timefirst24hr_press")) {\
521 set_state(PART:"date.picker.bg", "timefirst24hr", 0.0);\
526 name: "datepicker_bg_hide";\
527 signal: "datetime,datepicker,bg,hide";\
529 action: STATE_SET "default" 0.0;\
530 target: "date.picker.bg";\
531 target: "date.picker.left.pad";\
532 target: "date.picker.right.pad";\
535 name: "datepicker_focus";\
536 signal: "elm,action,focus_highlight,show";\
538 action: STATE_SET "focus" 0.0;\
539 target: "datepicker.focus";\
542 name: "datepicker_unfocus";\
543 signal: "elm,action,focus_highlight,hide";\
545 action: STATE_SET "default" 0.0;\
546 target: "datepicker.focus";\
548 program { name: "datepicker_touch_snd";\
549 signal: "mouse,clicked,1";\
550 source: "date.picker.bg";\
551 action: PLAY_SAMPLE "touch_sound" 1.0;\
552 after: datepicker_show_signal;\
554 program { name: "datepicker_show_signal";\
555 action: SIGNAL_EMIT "datetime,datepicker,show" "";\
559 #define DATETIME_TIMEPICKER_BG \
561 name: "time.picker.left.pad"; \
564 description { state: "default" 0.0; \
571 to: "left.padding3";\
575 to: "left.padding3";\
578 description { state: "datefirst" 0.0;\
579 inherit: "default" 0.0;\
580 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
582 description { state: "timefirst" 0.0;\
583 inherit: "default" 0.0;\
584 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
587 to: "left.padding0";\
591 to: "left.padding0";\
594 description { state: "timefirst24hr" 0.0;\
595 inherit: "default" 0.0;\
596 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
599 to: "left.padding0";\
603 to: "left.padding0";\
608 name: "time.picker.right.pad"; \
611 description { state: "default" 0.0; \
618 to: "right.padding5";\
622 to: "right.padding5";\
625 description { state: "datefirst" 0.0;\
626 inherit: "default" 0.0;\
627 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
629 description { state: "timefirst" 0.0;\
630 inherit: "default" 0.0;\
631 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
634 to: "right.padding2";\
638 to: "right.padding2";\
641 description { state: "timefirst24hr" 0.0;\
642 inherit: "default" 0.0;\
643 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
646 to: "right.padding1";\
650 to: "right.padding1";\
655 name: "time.picker.bg"; \
657 description { state: "default" 0.0; \
662 normal: "00_button_01.png";\
663 border: DATETIME_BG_IMAGE_BORDER_INC;\
668 to: "time.picker.left.pad";\
672 to: "time.picker.right.pad";\
675 description { state: "datefirst" 0.0;\
676 inherit: "default" 0.0;\
679 description { state: "timefirst" 0.0;\
680 inherit: "default" 0.0;\
683 description { state: "timefirst24hr" 0.0;\
684 inherit: "default" 0.0;\
687 description { state: "datefirst_press" 0.0;\
688 inherit: "datefirst" 0.0;\
690 normal: "00_button_01_press.png";\
691 border: DATETIME_BG_IMAGE_BORDER_INC;\
695 description { state: "timefirst_press" 0.0;\
696 inherit: "timefirst" 0.0;\
698 normal: "00_button_01_press.png";\
699 border: DATETIME_BG_IMAGE_BORDER_INC;\
703 description { state: "timefirst24hr_press" 0.0;\
704 inherit: "timefirst24hr" 0.0;\
706 normal: "00_button_01_press.png";\
707 border: DATETIME_BG_IMAGE_BORDER_INC;\
713 name: "timepicker.focus";\
716 state: "default" 0.0;\
718 rel1.to : "time.picker.bg";\
719 rel2.to : "time.picker.bg";\
721 normal: "00_button_01_focus.png";\
722 border: DATETIME_BG_IMAGE_BORDER_INC;\
726 description { state: "focus" 0.0;\
727 inherit: "default" 0.0;\
733 name: "timepicker_starting_field3";\
734 signal: "timepicker,starting,field3";\
740 get_state(PART:"field3", st, 30, vl);\
741 if (!strcmp(st, "enable")) {\
742 set_state(PART:"time.picker.bg", "datefirst", 0.0);\
743 set_state(PART:"time.picker.left.pad", "datefirst", 0.0);\
744 set_state(PART:"time.picker.right.pad", "datefirst", 0.0);\
749 name: "timepicker_starting_field0";\
750 signal: "timepicker,starting,field0";\
756 get_state(PART:"date.picker.bg", st, 30, vl);\
757 if (!strcmp(st, "timefirst24hr")) {\
758 set_state(PART:"time.picker.bg", "timefirst24hr", 0.0);\
759 set_state(PART:"time.picker.left.pad", "timefirst24hr", 0.0);\
760 set_state(PART:"time.picker.right.pad", "timefirst24hr", 0.0);\
763 set_state(PART:"time.picker.bg", "timefirst", 0.0);\
764 set_state(PART:"time.picker.left.pad", "timefirst", 0.0);\
765 set_state(PART:"time.picker.right.pad", "timefirst", 0.0);\
770 name: "timepicker_starting_field1";\
771 signal: "timepicker,starting,field1";\
773 action: STATE_SET "default" 0.0;\
774 target: "time.picker.bg";\
775 target: "time.picker.left.pad";\
776 target: "time.picker.right.pad";\
779 name: "timepicker_starting_field2";\
780 signal: "timepicker,starting,field2";\
782 action: STATE_SET "default" 0.0;\
783 target: "time.picker.bg";\
784 target: "time.picker.left.pad";\
785 target: "time.picker.right.pad";\
788 name: "timepicker_starting_field4";\
789 signal: "timepicker,starting,field4";\
791 action: STATE_SET "default" 0.0;\
792 target: "time.picker.bg";\
793 target: "time.picker.left.pad";\
794 target: "time.picker.right.pad";\
797 name: "timepicker_starting_field5";\
798 signal: "timepicker,starting,field5";\
800 action: STATE_SET "default" 0.0;\
801 target: "time.picker.bg";\
802 target: "time.picker.left.pad";\
803 target: "time.picker.right.pad";\
806 name: "timepicker_mouse_down";\
807 signal: "mouse,down,1";\
808 source: "time.picker.bg";\
812 get_state(PART:"time.picker.bg", st, 30, vl);\
813 if (!strcmp(st, "datefirst")) {\
814 set_state(PART:"time.picker.bg", "datefirst_press", 0.0);\
816 else if (!strcmp(st, "timefirst")) {\
817 set_state(PART:"time.picker.bg", "timefirst_press", 0.0);\
819 else if (!strcmp(st, "timefirst24hr")) {\
820 set_state(PART:"time.picker.bg", "timefirst24hr_press", 0.0);\
825 name: "timepicker_mouse_up";\
826 signal: "mouse,up,1";\
827 source: "time.picker.bg";\
831 get_state(PART:"time.picker.bg", st, 30, vl);\
832 if (!strcmp(st, "datefirst_press")) {\
833 set_state(PART:"time.picker.bg", "datefirst", 0.0);\
835 else if (!strcmp(st, "timefirst_press")) {\
836 set_state(PART:"time.picker.bg", "timefirst", 0.0);\
838 else if (!strcmp(st, "timefirst24hr_press")) {\
839 set_state(PART:"time.picker.bg", "timefirst24hr", 0.0);\
844 name: "timepicker_bg_hide";\
845 signal: "datetime,timepicker,bg,hide";\
847 action: STATE_SET "default" 0.0;\
848 target: "time.picker.bg";\
849 target: "time.picker.left.pad";\
850 target: "time.picker.right.pad";\
853 name: "timepicker_focus";\
854 signal: "elm,action,focus_highlight,show";\
856 action: STATE_SET "focus" 0.0;\
857 target: "timepicker.focus";\
860 name: "timepicker_unfocus";\
861 signal: "elm,action,focus_highlight,hide";\
863 action: STATE_SET "default" 0.0;\
864 target: "timepicker.focus";\
866 program { name: "timepicker_touch_snd";\
867 signal: "mouse,clicked,1";\
868 source: "time.picker.bg";\
869 action: PLAY_SAMPLE "touch_sound" 1.0;\
870 after: timepicker_show_signal;\
872 program { name: "timepicker_show_signal";\
873 action: SIGNAL_EMIT "datetime,timepicker,show" "";\
877 group { name: "elm/datetime/base/default";
879 image: "00_button_01.png" COMP;
880 image: "00_button_01_press.png" COMP;
881 image: "00_button_01_focus.png" COMP;
889 state: "default" 0.0;
891 min: 0 DATETIME_WIDGET_HEIGHT;
892 max: -1 DATETIME_WIDGET_HEIGHT;
896 name: "left.padding";
902 state: "default" 0.0;
904 min: DATETIME_WIDGET_PADDING_SIZE_INC;
915 name: "right.padding";
921 state: "default" 0.0;
923 min: DATETIME_WIDGET_PADDING_SIZE_INC;
934 DATETIME_PADDING(0, "left.padding")
935 DATETIME_PADDING(1, "separator0")
936 DATETIME_PADDING(2, "separator1")
937 DATETIME_PADDING(3, "separator2")
938 DATETIME_PADDING(4, "separator3")
939 DATETIME_PADDING(5, "separator4")
941 DATETIME_DATEPICKER_BG
942 DATETIME_TIMEPICKER_BG
954 description { state: "default" 0.0;
955 color: 255 255 255 255;
957 description { state: "visible" 0.0;
958 inherit: "default" 0.0;
959 color: 255 255 255 102;
965 description { state: "default" 0.0;
971 description { state: "visible" 0.0;
972 inherit: "default" 0.0;
979 name: "disble_datetime";
980 signal: "elm,state,disabled";
982 action: STATE_SET "visible" 0.0;
987 name: "enable_datetime";
988 signal: "elm,state,enabled";
990 action: STATE_SET "default" 0.0;
994 DATETIME_PICKER_PADDING_PROGRAMS
998 group { name: "elm/datetime/base/pickerstyle";
1001 #define DATETIME_FIELD_STYLE1(_pos, _after) \
1003 name: "field"#_pos; \
1006 clip_to: "clipper";\
1008 description { state: "default" 0.0; \
1015 to: "separator"#_after;\
1019 to: "separator"#_after;\
1022 description { state: "enable" 0.0;\
1023 inherit: "default" 0.0;\
1025 min: DATETIME_FIELD_MIN_SIZE_INC;\
1030 name: "field_"#_pos"enabled";\
1031 signal: "field"#_pos",enable";\
1033 action: STATE_SET "enable" 0.0;\
1034 target: "field"#_pos;\
1037 name: "field_"#_pos"disabled";\
1038 signal: "field"#_pos",disable";\
1040 action: STATE_SET "default" 0.0;\
1041 target: "field"#_pos;\
1045 #define DATETIME_SEPARATOR_STYLE1(_pos) \
1047 name: "separator"#_pos; \
1050 clip_to: "clipper";\
1053 state: "default" 0.0;\
1055 min: DATETIME_SEPARATOR_MIN_SIZE_INC;\
1056 max: DATETIME_SEPARATOR_MIN_SIZE_INC;\
1067 color: DATETIME_SEPARATOR_TEXT_COLOR_INC;\
1069 font: "Tizen:style=Regular";\
1070 size: DATETIME_SEPARATOR_TEXT_FONT_SIZE_INC;\
1072 text_class: "tizen";\
1075 description { state: "enable" 0.0;\
1076 inherit: "default" 0.0;\
1079 description { state: "hide" 0.0;\
1080 inherit: "default" 0.0;\
1087 name: "separator"#_pos",enabled";\
1088 signal: "field"#_pos",separator,enable";\
1090 action: STATE_SET "enable" 0.0;\
1091 target: "separator"#_pos;\
1094 name: "separator"#_pos",disabled";\
1095 signal: "field"#_pos",separator,disable";\
1100 get_state(PART:"separator"#_pos, st, 30, vl);\
1101 if (strcmp(st, "hide")) \
1103 set_state(PART:"separator"#_pos, "default", 0.0);\
1108 name: "separator"#_pos",hide";\
1109 signal: "field"#_pos",disable";\
1111 action: STATE_SET "hide" 0.0;\
1112 target: "separator"#_pos;\
1117 group { name: "elm/datetime/base/style1";
1124 state: "default" 0.0;
1129 name: "left.padding";
1135 state: "default" 0.0;
1137 min: DATETIME_LEFT_PADDING_SIZE_INC;
1138 max: DATETIME_LEFT_PADDING_SIZE_INC;
1155 state: "default" 0.0;
1162 to_x: "left.padding";
1166 to_x: "left.padding";
1169 description { state: "enable" 0.0;
1170 inherit: "default" 0.0;
1172 min: DATETIME_FIELD_MIN_SIZE_INC;
1175 DATETIME_SEPARATOR_STYLE1(0)
1176 DATETIME_FIELD_STYLE1(1, 0)
1177 DATETIME_SEPARATOR_STYLE1(1)
1178 DATETIME_FIELD_STYLE1(2, 1)
1179 DATETIME_SEPARATOR_STYLE1(2)
1180 DATETIME_FIELD_STYLE1(3, 2)
1181 DATETIME_SEPARATOR_STYLE1(3)
1182 DATETIME_FIELD_STYLE1(4, 3)
1183 DATETIME_SEPARATOR_STYLE1(4)
1184 DATETIME_FIELD_STYLE1(5, 4)
1185 DATETIME_SEPARATOR_STYLE1(5)
1187 name: "right.padding";
1193 state: "default" 0.0;
1195 min: DATETIME_LEFT_PADDING_SIZE_INC;
1196 max: DATETIME_LEFT_PADDING_SIZE_INC;
1209 description { state: "default" 0.0;
1210 color: 255 255 255 255;
1212 description { state: "visible" 0.0;
1213 inherit: "default" 0.0;
1214 color: 255 255 255 102;
1220 description { state: "default" 0.0;
1224 description { state: "visible" 0.0;
1225 inherit: "default" 0.0;
1232 name: "disble_datetime";
1233 signal: "elm,state,disabled";
1235 action: STATE_SET "visible" 0.0;
1240 name: "enable_datetime";
1241 signal: "elm,state,enabled";
1243 action: STATE_SET "default" 0.0;
1248 name: "field0,enabled";
1249 signal: "field0,enable";
1251 action: STATE_SET "enable" 0.0;
1255 name: "field0,disabled";
1256 signal: "field0,disable";
1258 action: STATE_SET "default" 0.0;
1263 group { name: "elm/spinner/base/default";
1264 alias: "elm/spinner/base/datetime_popup";
1265 alias: "elm/spinner/base/datetime_popup/year";
1266 alias: "elm/spinner/base/datetime_popup/month";
1267 alias: "elm/spinner/base/datetime_popup/date";
1268 alias: "elm/spinner/base/datetime_popup/hour";
1269 alias: "elm/spinner/base/datetime_popup/minute";
1271 image: "00_picker_arrow_down.png" COMP;
1272 image: "00_picker_arrow_up.png" COMP;
1273 image: "00_button_01.png" COMP;
1274 image: "00_button_01_press.png" COMP;
1280 description { state: "default" 0.0;
1284 part { name: "up.image";
1286 description { state: "default" 0.0;
1288 min: SPINNER_UP_DOWN_IMAGE_SIZE_INC;
1289 max: SPINNER_UP_DOWN_IMAGE_SIZE_INC;
1291 normal: "00_button_01.png";
1292 border: SPINNER_UP_DOWN_IMAGE_BORDER_SIZE_INC;
1296 description { state: "pressed" 0.0;
1297 inherit: "default" 0.0;
1298 image.normal: "00_button_01_press.png";
1301 part { name: "up.image.arrow";
1303 description { state: "default" 0.0;
1304 rel1.to: "up.image";
1305 rel2.to: "up.image";
1306 min: SPINNER_UP_DOWN_ARROW_IMAGE_SIZE_INC;
1307 max: SPINNER_UP_DOWN_ARROW_IMAGE_SIZE_INC;
1308 image.normal: "00_picker_arrow_up.png";
1311 part { name: "up.image.arrow.shadow.proxy";
1314 clip_to: "up.image.arrow.shadow.clipper";
1315 description { state: "default" 0.0;
1316 source: "up.image.arrow";
1317 proxy.source_clip: 0;
1319 to: "up.image.arrow";
1320 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_TOP_OFFSET_INC;
1323 to: "up.image.arrow";
1324 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_BOTTOM_OFFSET_INC;
1327 description { state: "pressed" 0.0;
1328 inherit: "default" 0.0;
1330 to: "up.image.arrow";
1331 offset: SPINNER_UP_DOWN_ARROW_PRESSED_TOP_OFFSET_INC;
1334 to: "up.image.arrow";
1335 offset: SPINNER_UP_DOWN_ARROW_PRESSED_BOTTOM_OFFSET_INC;
1339 part { name: "up.image.arrow.proxy";
1342 clip_to: "up.image.arrow.clipper";
1343 description { state: "default" 0.0;
1344 source: "up.image.arrow";
1345 proxy.source_clip: 0;
1346 rel1.to: "up.image.arrow";
1347 rel2.to: "up.image.arrow";
1350 part { name: "up.image.arrow.shadow.clipper";
1353 description { state: "default" 0.0;
1354 rel1.to: "up.image.arrow";
1355 rel2.to: "up.image.arrow";
1356 color: SPINNER_UP_DOWN_ARROW_SHADOW_DEFAULT_COLOR_INC;
1358 description { state: "pressed" 0.0;
1359 inherit: "default" 0.0;
1360 color: SPINNER_UP_DOWN_ARROW_SHADOW_PRESSED_COLOR_INC;
1363 part { name: "up.image.arrow.clipper";
1366 description { state: "default" 0.0;
1367 rel1.to: "up.image.arrow";
1368 rel2.to: "up.image.arrow";
1369 color: SPINNER_UP_DOWN_ARROW_DEFAULT_COLOR_INC;
1371 description { state: "pressed" 0.0;
1372 inherit: "default" 0.0;
1373 color: SPINNER_UP_DOWN_ARROW_PRESSED_COLOR_INC;
1376 part { name: "down.image";
1378 description { state: "default" 0.0;
1380 min: SPINNER_UP_DOWN_IMAGE_SIZE_INC;
1381 max: SPINNER_UP_DOWN_IMAGE_SIZE_INC;
1383 normal: "00_button_01.png";
1384 border: SPINNER_UP_DOWN_IMAGE_BORDER_SIZE_INC;
1388 description { state: "pressed" 0.0;
1389 inherit: "default" 0.0;
1390 image.normal: "00_button_01_press.png";
1393 part { name: "down.image.arrow";
1395 description { state: "default" 0.0;
1396 rel1.to: "down.image";
1397 rel2.to: "down.image";
1398 min: SPINNER_UP_DOWN_ARROW_IMAGE_SIZE_INC;
1399 max: SPINNER_UP_DOWN_ARROW_IMAGE_SIZE_INC;
1400 image.normal: "00_picker_arrow_down.png";
1403 part { name: "down.image.arrow.shadow.proxy";
1406 clip_to: "down.image.arrow.shadow.clipper";
1407 description { state: "default" 0.0;
1408 source: "down.image.arrow";
1409 proxy.source_clip: 0;
1411 to: "down.image.arrow";
1412 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_TOP_OFFSET_INC;
1415 to: "down.image.arrow";
1416 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_BOTTOM_OFFSET_INC;
1419 description { state: "pressed" 0.0;
1420 inherit: "default" 0.0;
1422 to: "down.image.arrow";
1423 offset: SPINNER_UP_DOWN_ARROW_PRESSED_TOP_OFFSET_INC;
1426 to: "down.image.arrow";
1427 offset: SPINNER_UP_DOWN_ARROW_PRESSED_BOTTOM_OFFSET_INC;
1431 part { name: "down.image.arrow.proxy";
1434 clip_to: "down.image.arrow.clipper";
1435 description { state: "default" 0.0;
1436 source: "down.image.arrow";
1437 proxy.source_clip: 0;
1438 rel1.to: "down.image.arrow";
1439 rel2.to: "down.image.arrow";
1442 part { name: "down.image.arrow.shadow.clipper";
1445 description { state: "default" 0.0;
1446 rel1.to: "down.image.arrow";
1447 rel2.to: "down.image.arrow";
1448 color: SPINNER_UP_DOWN_ARROW_SHADOW_DEFAULT_COLOR_INC;
1450 description { state: "pressed" 0.0;
1451 inherit: "default" 0.0;
1452 color: SPINNER_UP_DOWN_ARROW_SHADOW_PRESSED_COLOR_INC;
1455 part { name: "down.image.arrow.clipper";
1458 description { state: "default" 0.0;
1459 rel1.to: "down.image.arrow";
1460 rel2.to: "down.image.arrow";
1461 color: SPINNER_UP_DOWN_ARROW_DEFAULT_COLOR_INC;
1463 description { state: "pressed" 0.0;
1464 inherit: "default" 0.0;
1465 color: SPINNER_UP_DOWN_ARROW_PRESSED_COLOR_INC;
1468 part { name: "elm.text";
1471 description { state: "default" 0.0;
1473 color: SPINNER_ENTRY_TEXT_COLOR_INC;
1474 min: 0 SPINNER_TEXT_HEIGHT_INC;
1475 max: -1 SPINNER_TEXT_HEIGHT_INC;
1477 font: "Tizen:style=Regular";
1478 size: SPINNER_ENTRY_TEXT_SIZE_INC;
1481 text_class: "tizen";
1484 description { state: "active" 0.0;
1485 inherit: "default" 0.0;
1489 part { name: "button.events";
1492 description { state: "default" 0.0;
1493 rel1.to: "elm.text";
1494 rel2.to: "elm.text";
1499 part { name: "elm.swallow.entry";
1501 description { state: "default" 0.0;
1503 rel1.to: "elm.text";
1504 rel2.to: "elm.text";
1507 description { state: "active" 0.0;
1508 inherit: "default" 0.0;
1512 part { name: "up.btn";
1516 description { state: "default" 0.0;
1517 rel1.to: "up.image";
1518 rel2.to: "up.image";
1522 part { name: "down.btn";
1526 description { state: "default" 0.0;
1527 rel1.to: "down.image";
1528 rel2.to: "down.image";
1532 part { name: "disabler";
1534 description { state: "default" 0.0;
1538 description { state: "disabled" 0.0;
1539 inherit: "default" 0.0;
1545 program { name: "text_show";
1546 signal: "elm,state,text,visible";
1548 action: STATE_SET "visible" 0.0;
1551 program { name: "text_hide";
1552 signal: "elm,state,text,hidden";
1554 action: STATE_SET "default" 0.0;
1557 program { name: "dec_start_signal_emit";
1558 action: SIGNAL_EMIT "elm,action,decrement,start" "";
1560 program { name: "dec_stop_signal_emit";
1561 action: SIGNAL_EMIT "elm,action,decrement,stop" "";
1563 program { name: "inc_start_signal_emit";
1564 action: SIGNAL_EMIT "elm,action,increment,start" "";
1566 program { name: "inc_stop_signal_emit";
1567 action: SIGNAL_EMIT "elm,action,increment,stop" "";
1569 program { name: "dec";
1570 signal: "mouse,down,1*";
1572 action: STATE_SET "pressed" 0.0;
1573 target: "down.image";
1574 target: "down.image.arrow.shadow.proxy";
1575 target: "down.image.arrow.shadow.clipper";
1576 target: "down.image.arrow.clipper";
1577 after: "dec_start_signal_emit";
1579 program { name: "dec2";
1580 signal: "mouse,up,1";
1582 action: STATE_SET "default" 0.0;
1583 target: "down.image";
1584 target: "down.image.arrow.shadow.proxy";
1585 target: "down.image.arrow.shadow.clipper";
1586 target: "down.image.arrow.clipper";
1587 after: "dec_stop_signal_emit";
1589 program { name: "inc";
1590 signal: "mouse,down,1*";
1592 action: STATE_SET "pressed" 0.0;
1594 target: "up.image.arrow.shadow.proxy";
1595 target: "up.image.arrow.shadow.clipper";
1596 target: "up.image.arrow.clipper";
1597 after: "inc_start_signal_emit";
1599 program { name: "inc2";
1600 signal: "mouse,up,1";
1602 action: STATE_SET "default" 0.0;
1604 target: "up.image.arrow";
1605 target: "up.image.arrow.shadow.proxy";
1606 target: "up.image.arrow.shadow.clipper";
1607 target: "up.image.arrow.clipper";
1608 after: "inc_stop_signal_emit";
1610 program { name: "disable";
1611 signal: "elm,state,disabled";
1613 action: STATE_SET "disabled" 0.0;
1616 program { name: "enable";
1617 signal: "elm,state,enabled";
1619 action: STATE_SET "default" 0.0;
1622 program { name: "active";
1623 signal: "elm,state,active";
1625 action: STATE_SET "active" 0.0;
1627 target: "elm.swallow.entry";
1629 program { name: "inactive";
1630 signal: "elm,state,inactive";
1632 action: STATE_SET "default" 0.0;
1634 target: "elm.swallow.entry";
1636 program { name: "toggle_text";
1637 signal: "mouse,up,1";
1638 source: "button.events";
1639 action: SIGNAL_EMIT "elm,action,entry,toggle" "";
1641 program { name: "up_touch_snd";
1642 signal: "mouse,clicked,1";
1644 action: PLAY_SAMPLE "touch_sound" 1.0;
1646 program { name: "down_ouch_snd";
1647 signal: "mouse,clicked,1";
1649 action: PLAY_SAMPLE "touch_sound" 1.0;
1654 group { name: "elm/spinner/base/datetime_popup/ampm";
1655 inherit: "elm/spinner/base/default";
1658 part { name: "block.events";
1660 description { state: "default" 0.0;
1662 rel1.to: "elm.text";
1663 rel2.to: "elm.text";
1669 group { name: "elm/layout/datetime_popup/date_layout";
1675 description { state: "default" 0.0;
1677 min: DATETIME_POPUP_CONTENT_SIZE_INC;
1678 max: DATETIME_POPUP_CONTENT_SIZE_INC;
1681 part { name: "top.padding";
1684 description { state: "default" 0.0;
1696 part { name: "bottom.padding";
1699 description { state: "default" 0.0;
1711 part { name: "left.padding";
1714 description { state: "default" 0.0;
1716 min: DATETIME_POPUP_CONTENT_LEFT_PADDING_WIDTH_INC 0;
1717 max: DATETIME_POPUP_CONTENT_LEFT_PADDING_WIDTH_INC -1;
1721 to_y: "top.padding";
1726 to_y: "bottom.padding";
1731 part { name: "right.padding";
1734 description { state: "default" 0.0;
1736 min: DATETIME_POPUP_CONTENT_RIGHT_PADDING_WIDTH_INC 0;
1737 max: DATETIME_POPUP_CONTENT_RIGHT_PADDING_WIDTH_INC -1;
1742 to_y: "top.padding";
1747 to_y: "bottom.padding";
1752 part { name: "field0";
1755 description { state: "default" 0.0;
1756 min: DATETIME_POPUP_CONTENT_FIELD_WIDTH_INC 0;
1761 rel2.to: "left.padding";
1765 part { name: "center.padding1";
1768 description { state: "default" 0.0;
1770 min: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC 0;
1771 max: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC -1;
1780 part { name: "field1";
1783 description { state: "default" 0.0;
1784 min: DATETIME_POPUP_CONTENT_FIELD_WIDTH_INC 0;
1787 to: "center.padding1";
1791 to: "center.padding2";
1795 part { name: "center.padding2";
1798 description { state: "default" 0.0;
1800 min: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC 0;
1801 max: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC -1;
1810 part { name: "field2";
1813 description { state: "default" 0.0;
1814 min: DATETIME_POPUP_CONTENT_FIELD_WIDTH_INC 0;
1815 rel1.to: "right.padding";
1818 to: "right.padding";
1826 description { state: "default" 0.0;
1830 description { state: "visible" 0.0;
1831 inherit: "default" 0.0;
1838 group { name: "elm/layout/datetime_popup/time_layout";
1839 inherit: "elm/layout/datetime_popup/date_layout";
1842 part { name: "hour.minute.color";
1845 description { state: "default" 0.0;
1846 rel1.to: "center.padding1";
1847 rel2.to: "center.padding1";
1848 color: DATETIME_POPUP_CONTENT_FIELD_TEXT_COLOR_INC;
1850 font: "Tizen:style=Regular";
1851 size: DATETIME_POPUP_CONTENT_FIELD_TEXT_SIZE_INC;
1853 text_class: "tizen";
1861 group { name: "elm/layout/datetime_popup/time_layout_24hr";
1862 inherit: "elm/layout/datetime_popup/date_layout";
1865 part { name: "field0";
1868 description { state: "default" 0.0;
1869 min: DATETIME_POPUP_CONTENT_TIME_24HR_FIELD_WIDTH_INC 0;
1874 rel2.to: "left.padding";
1878 part { name: "hour.minute.color";
1881 description { state: "default" 0.0;
1882 rel1.to: "center.padding1";
1883 rel2.to: "center.padding1";
1884 color: DATETIME_POPUP_CONTENT_FIELD_TEXT_COLOR_INC;
1886 font: "Tizen:style=Regular";
1887 size: DATETIME_POPUP_CONTENT_FIELD_TEXT_SIZE_INC;
1889 text_class: "tizen";
1894 part { name: "field1";
1897 description { state: "default" 0.0;
1898 min: DATETIME_POPUP_CONTENT_TIME_24HR_FIELD_WIDTH_INC 0;
1901 to: "center.padding1";
1905 to: "center.padding2";
1909 part { name: "center.padding2";
1912 description { state: "default" 0.0;
1916 rel1.to: "right.padding";
1917 rel2.to: "right.padding";
1920 part { name: "field2";
1923 description { state: "default" 0.0;
1927 rel1.to: "right.padding";
1928 rel2.to: "right.padding";