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 "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 "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";
1318 to: "up.image.arrow";
1319 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_TOP_OFFSET_INC;
1322 to: "up.image.arrow";
1323 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_BOTTOM_OFFSET_INC;
1326 description { state: "pressed" 0.0;
1327 inherit: "default" 0.0;
1329 to: "up.image.arrow";
1330 offset: SPINNER_UP_DOWN_ARROW_PRESSED_TOP_OFFSET_INC;
1333 to: "up.image.arrow";
1334 offset: SPINNER_UP_DOWN_ARROW_PRESSED_BOTTOM_OFFSET_INC;
1338 part { name: "up.image.arrow.proxy";
1341 clip_to: "up.image.arrow.clipper";
1342 description { state: "default" 0.0;
1343 source: "up.image.arrow";
1344 rel1.to: "up.image.arrow";
1345 rel2.to: "up.image.arrow";
1348 part { name: "up.image.arrow.shadow.clipper";
1351 description { state: "default" 0.0;
1352 rel1.to: "up.image.arrow";
1353 rel2.to: "up.image.arrow";
1354 color: SPINNER_UP_DOWN_ARROW_SHADOW_DEFAULT_COLOR_INC;
1356 description { state: "pressed" 0.0;
1357 inherit: "default" 0.0;
1358 color: SPINNER_UP_DOWN_ARROW_SHADOW_PRESSED_COLOR_INC;
1361 part { name: "up.image.arrow.clipper";
1364 description { state: "default" 0.0;
1365 rel1.to: "up.image.arrow";
1366 rel2.to: "up.image.arrow";
1367 color: SPINNER_UP_DOWN_ARROW_DEFAULT_COLOR_INC;
1369 description { state: "pressed" 0.0;
1370 inherit: "default" 0.0;
1371 color: SPINNER_UP_DOWN_ARROW_PRESSED_COLOR_INC;
1374 part { name: "down.image";
1376 description { state: "default" 0.0;
1378 min: SPINNER_UP_DOWN_IMAGE_SIZE_INC;
1379 max: SPINNER_UP_DOWN_IMAGE_SIZE_INC;
1381 normal: "00_button_01.png";
1382 border: SPINNER_UP_DOWN_IMAGE_BORDER_SIZE_INC;
1386 description { state: "pressed" 0.0;
1387 inherit: "default" 0.0;
1388 image.normal: "00_button_01_press.png";
1391 part { name: "down.image.arrow";
1393 description { state: "default" 0.0;
1394 rel1.to: "down.image";
1395 rel2.to: "down.image";
1396 min: SPINNER_UP_DOWN_ARROW_IMAGE_SIZE_INC;
1397 max: SPINNER_UP_DOWN_ARROW_IMAGE_SIZE_INC;
1398 image.normal: "00_picker_arrow_down.png";
1401 part { name: "down.image.arrow.shadow.proxy";
1404 clip_to: "down.image.arrow.shadow.clipper";
1405 description { state: "default" 0.0;
1406 source: "down.image.arrow";
1408 to: "down.image.arrow";
1409 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_TOP_OFFSET_INC;
1412 to: "down.image.arrow";
1413 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_BOTTOM_OFFSET_INC;
1416 description { state: "pressed" 0.0;
1417 inherit: "default" 0.0;
1419 to: "down.image.arrow";
1420 offset: SPINNER_UP_DOWN_ARROW_PRESSED_TOP_OFFSET_INC;
1423 to: "down.image.arrow";
1424 offset: SPINNER_UP_DOWN_ARROW_PRESSED_BOTTOM_OFFSET_INC;
1428 part { name: "down.image.arrow.proxy";
1431 clip_to: "down.image.arrow.clipper";
1432 description { state: "default" 0.0;
1433 source: "down.image.arrow";
1434 rel1.to: "down.image.arrow";
1435 rel2.to: "down.image.arrow";
1438 part { name: "down.image.arrow.shadow.clipper";
1441 description { state: "default" 0.0;
1442 rel1.to: "down.image.arrow";
1443 rel2.to: "down.image.arrow";
1444 color: SPINNER_UP_DOWN_ARROW_SHADOW_DEFAULT_COLOR_INC;
1446 description { state: "pressed" 0.0;
1447 inherit: "default" 0.0;
1448 color: SPINNER_UP_DOWN_ARROW_SHADOW_PRESSED_COLOR_INC;
1451 part { name: "down.image.arrow.clipper";
1454 description { state: "default" 0.0;
1455 rel1.to: "down.image.arrow";
1456 rel2.to: "down.image.arrow";
1457 color: SPINNER_UP_DOWN_ARROW_DEFAULT_COLOR_INC;
1459 description { state: "pressed" 0.0;
1460 inherit: "default" 0.0;
1461 color: SPINNER_UP_DOWN_ARROW_PRESSED_COLOR_INC;
1464 part { name: "elm.text";
1467 description { state: "default" 0.0;
1469 color: SPINNER_ENTRY_TEXT_COLOR_INC;
1470 min: 0 SPINNER_TEXT_HEIGHT_INC;
1471 max: -1 SPINNER_TEXT_HEIGHT_INC;
1473 font: "Tizen:style=Regular";
1474 size: SPINNER_ENTRY_TEXT_SIZE_INC;
1477 text_class: "tizen";
1480 description { state: "active" 0.0;
1481 inherit: "default" 0.0;
1485 part { name: "button.events";
1488 description { state: "default" 0.0;
1489 rel1.to: "elm.text";
1490 rel2.to: "elm.text";
1495 part { name: "elm.swallow.entry";
1497 description { state: "default" 0.0;
1499 rel1.to: "elm.text";
1500 rel2.to: "elm.text";
1503 description { state: "active" 0.0;
1504 inherit: "default" 0.0;
1508 part { name: "up.btn";
1512 description { state: "default" 0.0;
1513 rel1.to: "up.image";
1514 rel2.to: "up.image";
1518 part { name: "down.btn";
1522 description { state: "default" 0.0;
1523 rel1.to: "down.image";
1524 rel2.to: "down.image";
1528 part { name: "disabler";
1530 description { state: "default" 0.0;
1534 description { state: "disabled" 0.0;
1535 inherit: "default" 0.0;
1541 program { name: "text_show";
1542 signal: "elm,state,text,visible";
1544 action: STATE_SET "visible" 0.0;
1547 program { name: "text_hide";
1548 signal: "elm,state,text,hidden";
1550 action: STATE_SET "default" 0.0;
1553 program { name: "dec_start_signal_emit";
1554 action: SIGNAL_EMIT "elm,action,decrement,start" "";
1556 program { name: "dec_stop_signal_emit";
1557 action: SIGNAL_EMIT "elm,action,decrement,stop" "";
1559 program { name: "inc_start_signal_emit";
1560 action: SIGNAL_EMIT "elm,action,increment,start" "";
1562 program { name: "inc_stop_signal_emit";
1563 action: SIGNAL_EMIT "elm,action,increment,stop" "";
1565 program { name: "dec";
1566 signal: "mouse,down,1*";
1568 action: STATE_SET "pressed" 0.0;
1569 target: "down.image";
1570 target: "down.image.arrow.shadow.proxy";
1571 target: "down.image.arrow.shadow.clipper";
1572 target: "down.image.arrow.clipper";
1573 after: "dec_start_signal_emit";
1575 program { name: "dec2";
1576 signal: "mouse,up,1";
1578 action: STATE_SET "default" 0.0;
1579 target: "down.image";
1580 target: "down.image.arrow.shadow.proxy";
1581 target: "down.image.arrow.shadow.clipper";
1582 target: "down.image.arrow.clipper";
1583 after: "dec_stop_signal_emit";
1585 program { name: "inc";
1586 signal: "mouse,down,1*";
1588 action: STATE_SET "pressed" 0.0;
1590 target: "up.image.arrow.shadow.proxy";
1591 target: "up.image.arrow.shadow.clipper";
1592 target: "up.image.arrow.clipper";
1593 after: "inc_start_signal_emit";
1595 program { name: "inc2";
1596 signal: "mouse,up,1";
1598 action: STATE_SET "default" 0.0;
1600 target: "up.image.arrow";
1601 target: "up.image.arrow.shadow.proxy";
1602 target: "up.image.arrow.shadow.clipper";
1603 target: "up.image.arrow.clipper";
1604 after: "inc_stop_signal_emit";
1606 program { name: "disable";
1607 signal: "elm,state,disabled";
1609 action: STATE_SET "disabled" 0.0;
1612 program { name: "enable";
1613 signal: "elm,state,enabled";
1615 action: STATE_SET "default" 0.0;
1618 program { name: "active";
1619 signal: "elm,state,active";
1621 action: STATE_SET "active" 0.0;
1623 target: "elm.swallow.entry";
1625 program { name: "inactive";
1626 signal: "elm,state,inactive";
1628 action: STATE_SET "default" 0.0;
1630 target: "elm.swallow.entry";
1632 program { name: "toggle_text";
1633 signal: "mouse,up,1";
1634 source: "button.events";
1635 action: SIGNAL_EMIT "elm,action,entry,toggle" "";
1637 program { name: "up_touch_snd";
1638 signal: "mouse,clicked,1";
1640 action: PLAY_SAMPLE "touch_sound" 1.0;
1642 program { name: "down_ouch_snd";
1643 signal: "mouse,clicked,1";
1645 action: PLAY_SAMPLE "touch_sound" 1.0;
1650 group { name: "elm/spinner/base/datetime_popup/ampm";
1651 inherit: "elm/spinner/base/default";
1654 part { name: "block.events";
1656 description { state: "default" 0.0;
1658 rel1.to: "elm.text";
1659 rel2.to: "elm.text";
1665 group { name: "elm/layout/datetime_popup/date_layout";
1671 description { state: "default" 0.0;
1673 min: DATETIME_POPUP_CONTENT_SIZE_INC;
1674 max: DATETIME_POPUP_CONTENT_SIZE_INC;
1677 part { name: "top.padding";
1680 description { state: "default" 0.0;
1692 part { name: "bottom.padding";
1695 description { state: "default" 0.0;
1707 part { name: "left.padding";
1710 description { state: "default" 0.0;
1712 min: DATETIME_POPUP_CONTENT_LEFT_PADDING_WIDTH_INC 0;
1713 max: DATETIME_POPUP_CONTENT_LEFT_PADDING_WIDTH_INC -1;
1717 to_y: "top.padding";
1722 to_y: "bottom.padding";
1727 part { name: "right.padding";
1730 description { state: "default" 0.0;
1732 min: DATETIME_POPUP_CONTENT_RIGHT_PADDING_WIDTH_INC 0;
1733 max: DATETIME_POPUP_CONTENT_RIGHT_PADDING_WIDTH_INC -1;
1738 to_y: "top.padding";
1743 to_y: "bottom.padding";
1748 part { name: "field0";
1751 description { state: "default" 0.0;
1752 min: DATETIME_POPUP_CONTENT_FIELD_WIDTH_INC 0;
1757 rel2.to: "left.padding";
1761 part { name: "center.padding1";
1764 description { state: "default" 0.0;
1766 min: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC 0;
1767 max: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC -1;
1776 part { name: "field1";
1779 description { state: "default" 0.0;
1780 min: DATETIME_POPUP_CONTENT_FIELD_WIDTH_INC 0;
1783 to: "center.padding1";
1787 to: "center.padding2";
1791 part { name: "center.padding2";
1794 description { state: "default" 0.0;
1796 min: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC 0;
1797 max: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC -1;
1806 part { name: "field2";
1809 description { state: "default" 0.0;
1810 min: DATETIME_POPUP_CONTENT_FIELD_WIDTH_INC 0;
1811 rel1.to: "right.padding";
1814 to: "right.padding";
1822 description { state: "default" 0.0;
1826 description { state: "visible" 0.0;
1827 inherit: "default" 0.0;
1834 group { name: "elm/layout/datetime_popup/time_layout";
1835 inherit: "elm/layout/datetime_popup/date_layout";
1838 part { name: "hour.minute.color";
1841 description { state: "default" 0.0;
1842 rel1.to: "center.padding1";
1843 rel2.to: "center.padding1";
1844 color: DATETIME_POPUP_CONTENT_FIELD_TEXT_COLOR_INC;
1846 font: "Tizen:style=Regular";
1847 size: DATETIME_POPUP_CONTENT_FIELD_TEXT_SIZE_INC;
1849 text_class: "tizen";
1857 group { name: "elm/layout/datetime_popup/time_layout_24hr";
1858 inherit: "elm/layout/datetime_popup/date_layout";
1861 part { name: "field0";
1864 description { state: "default" 0.0;
1865 min: DATETIME_POPUP_CONTENT_TIME_24HR_FIELD_WIDTH_INC 0;
1870 rel2.to: "left.padding";
1874 part { name: "hour.minute.color";
1877 description { state: "default" 0.0;
1878 rel1.to: "center.padding1";
1879 rel2.to: "center.padding1";
1880 color: DATETIME_POPUP_CONTENT_FIELD_TEXT_COLOR_INC;
1882 font: "Tizen:style=Regular";
1883 size: DATETIME_POPUP_CONTENT_FIELD_TEXT_SIZE_INC;
1885 text_class: "tizen";
1890 part { name: "field1";
1893 description { state: "default" 0.0;
1894 min: DATETIME_POPUP_CONTENT_TIME_24HR_FIELD_WIDTH_INC 0;
1897 to: "center.padding1";
1901 to: "center.padding2";
1905 part { name: "center.padding2";
1908 description { state: "default" 0.0;
1912 rel1.to: "right.padding";
1913 rel2.to: "right.padding";
1916 part { name: "field2";
1919 description { state: "default" 0.0;
1923 rel1.to: "right.padding";
1924 rel2.to: "right.padding";