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_focus";\
527 signal: "elm,action,focus_highlight,show";\
529 action: STATE_SET "focus" 0.0;\
530 target: "datepicker.focus";\
533 name: "datepicker_unfocus";\
534 signal: "elm,action,focus_highlight,hide";\
536 action: STATE_SET "default" 0.0;\
537 target: "datepicker.focus";\
539 program { name: "datepicker_touch_snd";\
540 signal: "mouse,clicked,1";\
541 source: "date.picker.bg";\
542 action: PLAY_SAMPLE "touch_sound" 1.0;\
543 after: datepicker_show_signal;\
545 program { name: "datepicker_show_signal";\
546 action: SIGNAL_EMIT "datetime,datepicker,show" "";\
550 #define DATETIME_TIMEPICKER_BG \
552 name: "time.picker.left.pad"; \
555 description { state: "default" 0.0; \
562 to: "left.padding3";\
566 to: "left.padding3";\
569 description { state: "datefirst" 0.0;\
570 inherit: "default" 0.0;\
571 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
573 description { state: "timefirst" 0.0;\
574 inherit: "default" 0.0;\
575 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
578 to: "left.padding0";\
582 to: "left.padding0";\
585 description { state: "timefirst24hr" 0.0;\
586 inherit: "default" 0.0;\
587 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
590 to: "left.padding0";\
594 to: "left.padding0";\
599 name: "time.picker.right.pad"; \
602 description { state: "default" 0.0; \
609 to: "right.padding5";\
613 to: "right.padding5";\
616 description { state: "datefirst" 0.0;\
617 inherit: "default" 0.0;\
618 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
620 description { state: "timefirst" 0.0;\
621 inherit: "default" 0.0;\
622 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
625 to: "right.padding2";\
629 to: "right.padding2";\
632 description { state: "timefirst24hr" 0.0;\
633 inherit: "default" 0.0;\
634 min: DATETIME_PICKER_BG_PADDING_SIZE_INC;\
637 to: "right.padding1";\
641 to: "right.padding1";\
646 name: "time.picker.bg"; \
648 description { state: "default" 0.0; \
653 normal: "00_button_01.png";\
654 border: DATETIME_BG_IMAGE_BORDER_INC;\
659 to: "time.picker.left.pad";\
663 to: "time.picker.right.pad";\
666 description { state: "datefirst" 0.0;\
667 inherit: "default" 0.0;\
670 description { state: "timefirst" 0.0;\
671 inherit: "default" 0.0;\
674 description { state: "timefirst24hr" 0.0;\
675 inherit: "default" 0.0;\
678 description { state: "datefirst_press" 0.0;\
679 inherit: "datefirst" 0.0;\
681 normal: "00_button_01_press.png";\
682 border: DATETIME_BG_IMAGE_BORDER_INC;\
686 description { state: "timefirst_press" 0.0;\
687 inherit: "timefirst" 0.0;\
689 normal: "00_button_01_press.png";\
690 border: DATETIME_BG_IMAGE_BORDER_INC;\
694 description { state: "timefirst24hr_press" 0.0;\
695 inherit: "timefirst24hr" 0.0;\
697 normal: "00_button_01_press.png";\
698 border: DATETIME_BG_IMAGE_BORDER_INC;\
704 name: "timepicker.focus";\
707 state: "default" 0.0;\
709 rel1.to : "time.picker.bg";\
710 rel2.to : "time.picker.bg";\
712 normal: "00_button_01_focus.png";\
713 border: DATETIME_BG_IMAGE_BORDER_INC;\
717 description { state: "focus" 0.0;\
718 inherit: "default" 0.0;\
724 name: "timepicker_starting_field3";\
725 signal: "timepicker,starting,field3";\
731 get_state(PART:"field3", st, 30, vl);\
732 if (!strcmp(st, "enable")) {\
733 set_state(PART:"time.picker.bg", "datefirst", 0.0);\
734 set_state(PART:"time.picker.left.pad", "datefirst", 0.0);\
735 set_state(PART:"time.picker.right.pad", "datefirst", 0.0);\
740 name: "timepicker_starting_field0";\
741 signal: "timepicker,starting,field0";\
747 get_state(PART:"date.picker.bg", st, 30, vl);\
748 if (!strcmp(st, "timefirst24hr")) {\
749 set_state(PART:"time.picker.bg", "timefirst24hr", 0.0);\
750 set_state(PART:"time.picker.left.pad", "timefirst24hr", 0.0);\
751 set_state(PART:"time.picker.right.pad", "timefirst24hr", 0.0);\
754 set_state(PART:"time.picker.bg", "timefirst", 0.0);\
755 set_state(PART:"time.picker.left.pad", "timefirst", 0.0);\
756 set_state(PART:"time.picker.right.pad", "timefirst", 0.0);\
761 name: "timepicker_starting_field1";\
762 signal: "timepicker,starting,field1";\
764 action: STATE_SET "default" 0.0;\
765 target: "time.picker.bg";\
766 target: "time.picker.left.pad";\
767 target: "time.picker.right.pad";\
770 name: "timepicker_starting_field2";\
771 signal: "timepicker,starting,field2";\
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_field4";\
780 signal: "timepicker,starting,field4";\
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_field5";\
789 signal: "timepicker,starting,field5";\
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_mouse_down";\
798 signal: "mouse,down,1";\
799 source: "time.picker.bg";\
803 get_state(PART:"time.picker.bg", st, 30, vl);\
804 if (!strcmp(st, "datefirst")) {\
805 set_state(PART:"time.picker.bg", "datefirst_press", 0.0);\
807 else if (!strcmp(st, "timefirst")) {\
808 set_state(PART:"time.picker.bg", "timefirst_press", 0.0);\
810 else if (!strcmp(st, "timefirst24hr")) {\
811 set_state(PART:"time.picker.bg", "timefirst24hr_press", 0.0);\
816 name: "timepicker_mouse_up";\
817 signal: "mouse,up,1";\
818 source: "time.picker.bg";\
822 get_state(PART:"time.picker.bg", st, 30, vl);\
823 if (!strcmp(st, "datefirst_press")) {\
824 set_state(PART:"time.picker.bg", "datefirst", 0.0);\
826 else if (!strcmp(st, "timefirst_press")) {\
827 set_state(PART:"time.picker.bg", "timefirst", 0.0);\
829 else if (!strcmp(st, "timefirst24hr_press")) {\
830 set_state(PART:"time.picker.bg", "timefirst24hr", 0.0);\
835 name: "timepicker_focus";\
836 signal: "elm,action,focus_highlight,show";\
838 action: STATE_SET "focus" 0.0;\
839 target: "timepicker.focus";\
842 name: "timepicker_unfocus";\
843 signal: "elm,action,focus_highlight,hide";\
845 action: STATE_SET "default" 0.0;\
846 target: "timepicker.focus";\
848 program { name: "timepicker_touch_snd";\
849 signal: "mouse,clicked,1";\
850 source: "time.picker.bg";\
851 action: PLAY_SAMPLE "touch_sound" 1.0;\
852 after: timepicker_show_signal;\
854 program { name: "timepicker_show_signal";\
855 action: SIGNAL_EMIT "datetime,timepicker,show" "";\
859 group { name: "elm/datetime/base/default";
861 image: "00_button_01.png" COMP;
862 image: "00_button_01_press.png" COMP;
863 image: "00_button_01_focus.png" COMP;
871 state: "default" 0.0;
873 min: 0 DATETIME_WIDGET_HEIGHT;
874 max: -1 DATETIME_WIDGET_HEIGHT;
878 name: "left.padding";
884 state: "default" 0.0;
886 min: DATETIME_WIDGET_PADDING_SIZE_INC;
897 name: "right.padding";
903 state: "default" 0.0;
905 min: DATETIME_WIDGET_PADDING_SIZE_INC;
916 DATETIME_PADDING(0, "left.padding")
917 DATETIME_PADDING(1, "separator0")
918 DATETIME_PADDING(2, "separator1")
919 DATETIME_PADDING(3, "separator2")
920 DATETIME_PADDING(4, "separator3")
921 DATETIME_PADDING(5, "separator4")
923 DATETIME_DATEPICKER_BG
924 DATETIME_TIMEPICKER_BG
936 description { state: "default" 0.0;
937 color: 255 255 255 255;
939 description { state: "visible" 0.0;
940 inherit: "default" 0.0;
941 color: 255 255 255 102;
947 description { state: "default" 0.0;
953 description { state: "visible" 0.0;
954 inherit: "default" 0.0;
961 name: "disble_datetime";
962 signal: "elm,state,disabled";
964 action: STATE_SET "visible" 0.0;
969 name: "enable_datetime";
970 signal: "elm,state,enabled";
972 action: STATE_SET "default" 0.0;
976 DATETIME_PICKER_PADDING_PROGRAMS
980 group { name: "elm/datetime/base/pickerstyle";
983 #define DATETIME_FIELD_STYLE1(_pos, _after) \
985 name: "field"#_pos; \
990 description { state: "default" 0.0; \
997 to: "separator"#_after;\
1001 to: "separator"#_after;\
1004 description { state: "enable" 0.0;\
1005 inherit: "default" 0.0;\
1007 min: DATETIME_FIELD_MIN_SIZE_INC;\
1012 name: "field_"#_pos"enabled";\
1013 signal: "field"#_pos",enable";\
1015 action: STATE_SET "enable" 0.0;\
1016 target: "field"#_pos;\
1019 name: "field_"#_pos"disabled";\
1020 signal: "field"#_pos",disable";\
1022 action: STATE_SET "default" 0.0;\
1023 target: "field"#_pos;\
1027 #define DATETIME_SEPARATOR_STYLE1(_pos) \
1029 name: "separator"#_pos; \
1032 clip_to: "clipper";\
1035 state: "default" 0.0;\
1037 min: DATETIME_SEPARATOR_MIN_SIZE_INC;\
1038 max: DATETIME_SEPARATOR_MIN_SIZE_INC;\
1049 color: DATETIME_SEPARATOR_TEXT_COLOR_INC;\
1051 font: "Tizen:style=Regular";\
1052 size: DATETIME_SEPARATOR_TEXT_FONT_SIZE_INC;\
1054 text_class: "tizen";\
1057 description { state: "enable" 0.0;\
1058 inherit: "default" 0.0;\
1061 description { state: "hide" 0.0;\
1062 inherit: "default" 0.0;\
1069 name: "separator"#_pos",enabled";\
1070 signal: "field"#_pos",separator,enable";\
1072 action: STATE_SET "enable" 0.0;\
1073 target: "separator"#_pos;\
1076 name: "separator"#_pos",disabled";\
1077 signal: "field"#_pos",separator,disable";\
1082 get_state(PART:"separator"#_pos, st, 30, vl);\
1083 if (strcmp(st, "hide")) \
1085 set_state(PART:"separator"#_pos, "default", 0.0);\
1090 name: "separator"#_pos",hide";\
1091 signal: "field"#_pos",disable";\
1093 action: STATE_SET "hide" 0.0;\
1094 target: "separator"#_pos;\
1099 group { name: "elm/datetime/base/style1";
1106 state: "default" 0.0;
1111 name: "left.padding";
1117 state: "default" 0.0;
1119 min: DATETIME_LEFT_PADDING_SIZE_INC;
1120 max: DATETIME_LEFT_PADDING_SIZE_INC;
1137 state: "default" 0.0;
1144 to_x: "left.padding";
1148 to_x: "left.padding";
1151 description { state: "enable" 0.0;
1152 inherit: "default" 0.0;
1154 min: DATETIME_FIELD_MIN_SIZE_INC;
1157 DATETIME_SEPARATOR_STYLE1(0)
1158 DATETIME_FIELD_STYLE1(1, 0)
1159 DATETIME_SEPARATOR_STYLE1(1)
1160 DATETIME_FIELD_STYLE1(2, 1)
1161 DATETIME_SEPARATOR_STYLE1(2)
1162 DATETIME_FIELD_STYLE1(3, 2)
1163 DATETIME_SEPARATOR_STYLE1(3)
1164 DATETIME_FIELD_STYLE1(4, 3)
1165 DATETIME_SEPARATOR_STYLE1(4)
1166 DATETIME_FIELD_STYLE1(5, 4)
1167 DATETIME_SEPARATOR_STYLE1(5)
1169 name: "right.padding";
1175 state: "default" 0.0;
1177 min: DATETIME_LEFT_PADDING_SIZE_INC;
1178 max: DATETIME_LEFT_PADDING_SIZE_INC;
1191 description { state: "default" 0.0;
1192 color: 255 255 255 255;
1194 description { state: "visible" 0.0;
1195 inherit: "default" 0.0;
1196 color: 255 255 255 102;
1202 description { state: "default" 0.0;
1206 description { state: "visible" 0.0;
1207 inherit: "default" 0.0;
1214 name: "disble_datetime";
1215 signal: "elm,state,disabled";
1217 action: STATE_SET "visible" 0.0;
1222 name: "enable_datetime";
1223 signal: "elm,state,enabled";
1225 action: STATE_SET "default" 0.0;
1230 name: "field0,enabled";
1231 signal: "field0,enable";
1233 action: STATE_SET "enable" 0.0;
1237 name: "field0,disabled";
1238 signal: "field0,disable";
1240 action: STATE_SET "default" 0.0;
1245 group { name: "elm/spinner/base/default";
1246 alias: "elm/spinner/base/datetime_popup";
1247 alias: "elm/spinner/base/datetime_popup/year";
1248 alias: "elm/spinner/base/datetime_popup/month";
1249 alias: "elm/spinner/base/datetime_popup/date";
1250 alias: "elm/spinner/base/datetime_popup/hour";
1251 alias: "elm/spinner/base/datetime_popup/minute";
1253 image: "00_picker_arrow_down.png" COMP;
1254 image: "00_picker_arrow_up.png" COMP;
1255 image: "00_button_01.png" COMP;
1256 image: "00_button_01_press.png" COMP;
1262 description { state: "default" 0.0;
1266 part { name: "up.image";
1268 description { state: "default" 0.0;
1270 min: SPINNER_UP_DOWN_IMAGE_SIZE_INC;
1271 max: SPINNER_UP_DOWN_IMAGE_SIZE_INC;
1273 normal: "00_button_01.png";
1274 border: SPINNER_UP_DOWN_IMAGE_BORDER_SIZE_INC;
1278 description { state: "pressed" 0.0;
1279 inherit: "default" 0.0;
1280 image.normal: "00_button_01_press.png";
1283 part { name: "up.image.arrow";
1285 description { state: "default" 0.0;
1286 rel1.to: "up.image";
1287 rel2.to: "up.image";
1288 min: SPINNER_UP_DOWN_ARROW_IMAGE_SIZE_INC;
1289 max: SPINNER_UP_DOWN_ARROW_IMAGE_SIZE_INC;
1290 image.normal: "00_picker_arrow_up.png";
1293 part { name: "up.image.arrow.shadow.proxy";
1296 clip_to: "up.image.arrow.shadow.clipper";
1297 description { state: "default" 0.0;
1298 source: "up.image.arrow";
1299 proxy.source_clip: 0;
1301 to: "up.image.arrow";
1302 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_TOP_OFFSET_INC;
1305 to: "up.image.arrow";
1306 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_BOTTOM_OFFSET_INC;
1309 description { state: "pressed" 0.0;
1310 inherit: "default" 0.0;
1312 to: "up.image.arrow";
1313 offset: SPINNER_UP_DOWN_ARROW_PRESSED_TOP_OFFSET_INC;
1316 to: "up.image.arrow";
1317 offset: SPINNER_UP_DOWN_ARROW_PRESSED_BOTTOM_OFFSET_INC;
1321 part { name: "up.image.arrow.proxy";
1324 clip_to: "up.image.arrow.clipper";
1325 description { state: "default" 0.0;
1326 source: "up.image.arrow";
1327 proxy.source_clip: 0;
1328 rel1.to: "up.image.arrow";
1329 rel2.to: "up.image.arrow";
1332 part { name: "up.image.arrow.shadow.clipper";
1335 description { state: "default" 0.0;
1336 rel1.to: "up.image.arrow";
1337 rel2.to: "up.image.arrow";
1338 color: SPINNER_UP_DOWN_ARROW_SHADOW_DEFAULT_COLOR_INC;
1340 description { state: "pressed" 0.0;
1341 inherit: "default" 0.0;
1342 color: SPINNER_UP_DOWN_ARROW_SHADOW_PRESSED_COLOR_INC;
1345 part { name: "up.image.arrow.clipper";
1348 description { state: "default" 0.0;
1349 rel1.to: "up.image.arrow";
1350 rel2.to: "up.image.arrow";
1351 color: SPINNER_UP_DOWN_ARROW_DEFAULT_COLOR_INC;
1353 description { state: "pressed" 0.0;
1354 inherit: "default" 0.0;
1355 color: SPINNER_UP_DOWN_ARROW_PRESSED_COLOR_INC;
1358 part { name: "down.image";
1360 description { state: "default" 0.0;
1362 min: SPINNER_UP_DOWN_IMAGE_SIZE_INC;
1363 max: SPINNER_UP_DOWN_IMAGE_SIZE_INC;
1365 normal: "00_button_01.png";
1366 border: SPINNER_UP_DOWN_IMAGE_BORDER_SIZE_INC;
1370 description { state: "pressed" 0.0;
1371 inherit: "default" 0.0;
1372 image.normal: "00_button_01_press.png";
1375 part { name: "down.image.arrow";
1377 description { state: "default" 0.0;
1378 rel1.to: "down.image";
1379 rel2.to: "down.image";
1380 min: SPINNER_UP_DOWN_ARROW_IMAGE_SIZE_INC;
1381 max: SPINNER_UP_DOWN_ARROW_IMAGE_SIZE_INC;
1382 image.normal: "00_picker_arrow_down.png";
1385 part { name: "down.image.arrow.shadow.proxy";
1388 clip_to: "down.image.arrow.shadow.clipper";
1389 description { state: "default" 0.0;
1390 source: "down.image.arrow";
1391 proxy.source_clip: 0;
1393 to: "down.image.arrow";
1394 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_TOP_OFFSET_INC;
1397 to: "down.image.arrow";
1398 offset: SPINNER_UP_DOWN_ARROW_DEFAULT_BOTTOM_OFFSET_INC;
1401 description { state: "pressed" 0.0;
1402 inherit: "default" 0.0;
1404 to: "down.image.arrow";
1405 offset: SPINNER_UP_DOWN_ARROW_PRESSED_TOP_OFFSET_INC;
1408 to: "down.image.arrow";
1409 offset: SPINNER_UP_DOWN_ARROW_PRESSED_BOTTOM_OFFSET_INC;
1413 part { name: "down.image.arrow.proxy";
1416 clip_to: "down.image.arrow.clipper";
1417 description { state: "default" 0.0;
1418 source: "down.image.arrow";
1419 proxy.source_clip: 0;
1420 rel1.to: "down.image.arrow";
1421 rel2.to: "down.image.arrow";
1424 part { name: "down.image.arrow.shadow.clipper";
1427 description { state: "default" 0.0;
1428 rel1.to: "down.image.arrow";
1429 rel2.to: "down.image.arrow";
1430 color: SPINNER_UP_DOWN_ARROW_SHADOW_DEFAULT_COLOR_INC;
1432 description { state: "pressed" 0.0;
1433 inherit: "default" 0.0;
1434 color: SPINNER_UP_DOWN_ARROW_SHADOW_PRESSED_COLOR_INC;
1437 part { name: "down.image.arrow.clipper";
1440 description { state: "default" 0.0;
1441 rel1.to: "down.image.arrow";
1442 rel2.to: "down.image.arrow";
1443 color: SPINNER_UP_DOWN_ARROW_DEFAULT_COLOR_INC;
1445 description { state: "pressed" 0.0;
1446 inherit: "default" 0.0;
1447 color: SPINNER_UP_DOWN_ARROW_PRESSED_COLOR_INC;
1450 part { name: "elm.text";
1453 description { state: "default" 0.0;
1455 color: SPINNER_ENTRY_TEXT_COLOR_INC;
1456 min: 0 SPINNER_TEXT_HEIGHT_INC;
1457 max: -1 SPINNER_TEXT_HEIGHT_INC;
1459 font: "Tizen:style=Regular";
1460 size: SPINNER_ENTRY_TEXT_SIZE_INC;
1463 text_class: "tizen";
1466 description { state: "active" 0.0;
1467 inherit: "default" 0.0;
1471 part { name: "button.events";
1474 description { state: "default" 0.0;
1475 rel1.to: "elm.text";
1476 rel2.to: "elm.text";
1481 part { name: "elm.swallow.entry";
1483 description { state: "default" 0.0;
1485 rel1.to: "elm.text";
1486 rel2.to: "elm.text";
1489 description { state: "active" 0.0;
1490 inherit: "default" 0.0;
1494 part { name: "up.btn";
1498 description { state: "default" 0.0;
1499 rel1.to: "up.image";
1500 rel2.to: "up.image";
1504 part { name: "down.btn";
1508 description { state: "default" 0.0;
1509 rel1.to: "down.image";
1510 rel2.to: "down.image";
1514 part { name: "disabler";
1516 description { state: "default" 0.0;
1520 description { state: "disabled" 0.0;
1521 inherit: "default" 0.0;
1527 program { name: "text_show";
1528 signal: "elm,state,text,visible";
1530 action: STATE_SET "visible" 0.0;
1533 program { name: "text_hide";
1534 signal: "elm,state,text,hidden";
1536 action: STATE_SET "default" 0.0;
1539 program { name: "dec_start_signal_emit";
1540 action: SIGNAL_EMIT "elm,action,decrement,start" "";
1542 program { name: "dec_stop_signal_emit";
1543 action: SIGNAL_EMIT "elm,action,decrement,stop" "";
1545 program { name: "inc_start_signal_emit";
1546 action: SIGNAL_EMIT "elm,action,increment,start" "";
1548 program { name: "inc_stop_signal_emit";
1549 action: SIGNAL_EMIT "elm,action,increment,stop" "";
1551 program { name: "dec";
1552 signal: "mouse,down,1*";
1554 action: STATE_SET "pressed" 0.0;
1555 target: "down.image";
1556 target: "down.image.arrow.shadow.proxy";
1557 target: "down.image.arrow.shadow.clipper";
1558 target: "down.image.arrow.clipper";
1559 after: "dec_start_signal_emit";
1561 program { name: "dec2";
1562 signal: "mouse,up,1";
1564 action: STATE_SET "default" 0.0;
1565 target: "down.image";
1566 target: "down.image.arrow.shadow.proxy";
1567 target: "down.image.arrow.shadow.clipper";
1568 target: "down.image.arrow.clipper";
1569 after: "dec_stop_signal_emit";
1571 program { name: "inc";
1572 signal: "mouse,down,1*";
1574 action: STATE_SET "pressed" 0.0;
1576 target: "up.image.arrow.shadow.proxy";
1577 target: "up.image.arrow.shadow.clipper";
1578 target: "up.image.arrow.clipper";
1579 after: "inc_start_signal_emit";
1581 program { name: "inc2";
1582 signal: "mouse,up,1";
1584 action: STATE_SET "default" 0.0;
1586 target: "up.image.arrow";
1587 target: "up.image.arrow.shadow.proxy";
1588 target: "up.image.arrow.shadow.clipper";
1589 target: "up.image.arrow.clipper";
1590 after: "inc_stop_signal_emit";
1592 program { name: "disable";
1593 signal: "elm,state,disabled";
1595 action: STATE_SET "disabled" 0.0;
1598 program { name: "enable";
1599 signal: "elm,state,enabled";
1601 action: STATE_SET "default" 0.0;
1604 program { name: "active";
1605 signal: "elm,state,active";
1607 action: STATE_SET "active" 0.0;
1609 target: "elm.swallow.entry";
1611 program { name: "inactive";
1612 signal: "elm,state,inactive";
1614 action: STATE_SET "default" 0.0;
1616 target: "elm.swallow.entry";
1618 program { name: "toggle_text";
1619 signal: "mouse,up,1";
1620 source: "button.events";
1621 action: SIGNAL_EMIT "elm,action,entry,toggle" "";
1623 program { name: "up_touch_snd";
1624 signal: "mouse,clicked,1";
1626 action: PLAY_SAMPLE "touch_sound" 1.0;
1628 program { name: "down_ouch_snd";
1629 signal: "mouse,clicked,1";
1631 action: PLAY_SAMPLE "touch_sound" 1.0;
1636 group { name: "elm/spinner/base/datetime_popup/ampm";
1637 inherit: "elm/spinner/base/default";
1640 part { name: "block.events";
1642 description { state: "default" 0.0;
1644 rel1.to: "elm.text";
1645 rel2.to: "elm.text";
1651 group { name: "elm/layout/datetime_popup/date_layout";
1657 description { state: "default" 0.0;
1659 min: DATETIME_POPUP_CONTENT_SIZE_INC;
1660 max: DATETIME_POPUP_CONTENT_SIZE_INC;
1663 part { name: "top.padding";
1666 description { state: "default" 0.0;
1678 part { name: "bottom.padding";
1681 description { state: "default" 0.0;
1693 part { name: "left.padding";
1696 description { state: "default" 0.0;
1698 min: DATETIME_POPUP_CONTENT_LEFT_PADDING_WIDTH_INC 0;
1699 max: DATETIME_POPUP_CONTENT_LEFT_PADDING_WIDTH_INC -1;
1703 to_y: "top.padding";
1708 to_y: "bottom.padding";
1713 part { name: "right.padding";
1716 description { state: "default" 0.0;
1718 min: DATETIME_POPUP_CONTENT_RIGHT_PADDING_WIDTH_INC 0;
1719 max: DATETIME_POPUP_CONTENT_RIGHT_PADDING_WIDTH_INC -1;
1724 to_y: "top.padding";
1729 to_y: "bottom.padding";
1734 part { name: "field0";
1737 description { state: "default" 0.0;
1738 min: DATETIME_POPUP_CONTENT_FIELD_WIDTH_INC 0;
1743 rel2.to: "left.padding";
1747 part { name: "center.padding1";
1750 description { state: "default" 0.0;
1752 min: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC 0;
1753 max: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC -1;
1762 part { name: "field1";
1765 description { state: "default" 0.0;
1766 min: DATETIME_POPUP_CONTENT_FIELD_WIDTH_INC 0;
1769 to: "center.padding1";
1773 to: "center.padding2";
1777 part { name: "center.padding2";
1780 description { state: "default" 0.0;
1782 min: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC 0;
1783 max: DATETIME_POPUP_CONTENT_CENTER_PADDING_WIDTH_INC -1;
1792 part { name: "field2";
1795 description { state: "default" 0.0;
1796 min: DATETIME_POPUP_CONTENT_FIELD_WIDTH_INC 0;
1797 rel1.to: "right.padding";
1800 to: "right.padding";
1808 description { state: "default" 0.0;
1812 description { state: "visible" 0.0;
1813 inherit: "default" 0.0;
1820 group { name: "elm/layout/datetime_popup/time_layout";
1821 inherit: "elm/layout/datetime_popup/date_layout";
1824 part { name: "hour.minute.color";
1827 description { state: "default" 0.0;
1828 rel1.to: "center.padding1";
1829 rel2.to: "center.padding1";
1830 color: DATETIME_POPUP_CONTENT_FIELD_TEXT_COLOR_INC;
1832 font: "Tizen:style=Regular";
1833 size: DATETIME_POPUP_CONTENT_FIELD_TEXT_SIZE_INC;
1835 text_class: "tizen";
1843 group { name: "elm/layout/datetime_popup/time_layout_24hr";
1844 inherit: "elm/layout/datetime_popup/date_layout";
1847 part { name: "field0";
1850 description { state: "default" 0.0;
1851 min: DATETIME_POPUP_CONTENT_TIME_24HR_FIELD_WIDTH_INC 0;
1856 rel2.to: "left.padding";
1860 part { name: "hour.minute.color";
1863 description { state: "default" 0.0;
1864 rel1.to: "center.padding1";
1865 rel2.to: "center.padding1";
1866 color: DATETIME_POPUP_CONTENT_FIELD_TEXT_COLOR_INC;
1868 font: "Tizen:style=Regular";
1869 size: DATETIME_POPUP_CONTENT_FIELD_TEXT_SIZE_INC;
1871 text_class: "tizen";
1876 part { name: "field1";
1879 description { state: "default" 0.0;
1880 min: DATETIME_POPUP_CONTENT_TIME_24HR_FIELD_WIDTH_INC 0;
1883 to: "center.padding1";
1887 to: "center.padding2";
1891 part { name: "center.padding2";
1894 description { state: "default" 0.0;
1898 rel1.to: "right.padding";
1899 rel2.to: "right.padding";
1902 part { name: "field2";
1905 description { state: "default" 0.0;
1909 rel1.to: "right.padding";
1910 rel2.to: "right.padding";