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.
20 #define CHECK_STATE_DEFAULT 0
21 #define CHECK_STATE_VISIBLE 1
22 #define CHECK_STATE_DISABLED_VISIBLE 2
23 #define CHECK_STATE_DISABLED 3
27 ////////////////////////////////////////////////////////////////////////////////
28 #define CHECK_STYLE_DEFAULT(style_name, min_width, min_height) \
29 group { name: "elm/check/base/"style_name; \
31 image: "00_check_bg.png" COMP; \
32 image: "00_check_dim_bg.png" COMP; \
33 image: "00_check_Activated_dim.png" COMP; \
34 image: "00_check_Activated.png" COMP; \
35 image: "00_check_press_bg.png" COMP; \
36 image: "00_check_press.png" COMP; \
39 public check_state = CHECK_STATE_DEFAULT; \
40 public check_visible = CHECK_HIDE; \
43 part { name: "back_bg"; \
46 description { state: "default" 0.0; \
47 rel2.relative: 0.0 1.0; \
49 min: min_width min_height; \
57 description { state: "default" 0.0; \
58 min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
59 max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
63 image.normal: "00_check_bg.png"; \
66 description { state: "visible" 0.0; \
67 inherit: "default" 0.0; \
69 description { state: "pressed" 0.0; \
70 inherit: "default" 0.0; \
71 image.normal: "00_check_press_bg.png"; \
73 description { state: "disabled" 0.0; \
74 inherit: "default" 0.0; \
75 image.normal: "00_check_dim_bg.png"; \
78 part { name: "check"; \
79 clip_to: "sequence_clip"; \
82 description { state: "default" 0.0; \
86 image.normal: "00_check_Activated.png"; \
87 color: 255 255 255 0; \
89 description { state: "visible" 0.0; \
90 inherit: "default" 0.0; \
92 color: 255 255 255 255; \
94 description { state: "disabled_visible" 0.0; \
95 inherit: "default" 0.0; \
97 image.normal: "00_check_Activated_dim.png"; \
98 color: 255 255 255 255; \
100 description { state: "pressed" 0.0; \
101 inherit: "default" 0.0; \
103 image.normal: "00_check_press.png"; \
104 color: 255 255 255 255; \
107 part { name: "sequence_clip"; \
110 description { state: "default" 0.0; \
111 rel2.relative: 0.0 1.0; \
112 color: 255 255 255 255; \
114 description { state: "visible" 0.0; \
115 inherit: "default" 0.0; \
116 rel2.relative: 1.0 1.0; \
119 part { name: "elm.swallow.content"; \
121 clip_to: "disclip"; \
122 description { state: "default" 0.0; \
137 description { state: "visible" 0.0; \
138 inherit: "default" 0.0; \
142 aspect_preference: VERTICAL; \
144 description { state: "disabled" 0.0; \
145 inherit: "default" 0.0; \
147 description { state: "disabled_visible" 0.0; \
148 inherit: "default" 0.0; \
154 part { name: "elm.text"; \
157 clip_to: "disclip"; \
159 description { state: "default" 0.0; \
165 to_x: "elm.swallow.content"; \
173 style: "check_label_textblock_style"; \
176 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
178 description { state: "visible" 0.0; \
179 inherit: "default" 0.0; \
183 description { state: "disabled" 0.0; \
184 inherit: "default" 0.0; \
186 description { state: "disabled_visible" 0.0; \
187 inherit: "default" 0.0; \
190 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
193 part { name: "events1"; \
195 ignore_flags: ON_HOLD; \
196 description { state: "default" 0.0; \
200 part { name: "events2"; \
203 description { state: "default" 0.0; \
207 part { name: "disclip"; \
210 description { state: "default" 0.0; \
211 color: CHECK_DISCLIP_NORMAL_COLOR_INC; \
213 description { state: "disabled" 0.0; \
214 inherit: "default" 0.0; \
215 color: CHECK_DISCLIP_DISABLED_COLOR_INC; \
218 part { name: "disabler"; \
220 description { state: "default" 0.0; \
224 description { state: "disabled" 0.0; \
225 inherit: "default" 0.0; \
231 program { name: "show"; \
234 set_int(check_visible, CHECK_SHOW); \
237 program { name: "hide"; \
240 set_int(check_visible, CHECK_HIDE); \
243 program { name: "click"; \
244 signal: "mouse,clicked,1"; \
246 action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
247 after: "touch_sound"; \
249 program { name: "touch_sound"; \
250 action: PLAY_SAMPLE "touch_sound" 1.0; \
252 program { name: "bg_normal"; \
253 signal: "mouse,up,1"; \
255 action: STATE_SET "default" 0.0; \
259 program { name: "pressed"; \
260 signal: "mouse,down,1"; \
262 action: STATE_SET "pressed" 0.0; \
266 program { name: "mouse,out"; \
267 signal: "mouse,out"; \
270 if (get_int(check_state) == CHECK_STATE_VISIBLE) \
272 set_state(PART:"check", "visible", 0.0); \
273 set_state(PART:"sequence_clip", "visible", 0.0); \
277 set_state(PART:"check", "default", 0.0); \
278 set_state(PART:"sequence_clip", "default", 0.0); \
282 program { name: "check_on"; \
283 signal: "elm,state,check,on"; \
286 set_int(check_state, CHECK_STATE_VISIBLE); \
287 if (get_int(check_visible) == CHECK_SHOW) \
289 run_program(PROGRAM:"check_show_effect"); \
290 run_program(PROGRAM:"check_draw_effect"); \
294 set_state(PART:"check", "visible", 0.0); \
295 set_state(PART:"sequence_clip", "visible", 0.0); \
299 program { name: "check_off"; \
300 signal: "elm,state,check,off"; \
302 action: STATE_SET "default" 0.0; \
305 if (get_int(check_state) == CHECK_STATE_VISIBLE) \
307 set_int(check_state, CHECK_STATE_DEFAULT); \
308 set_state(PART:"check", "default", 0.0); \
309 set_state(PART:"sequence_clip", "default", 0.0); \
313 program { name: "check_show_effect"; \
314 action: STATE_SET "visible" 0.0; \
315 transition: LINEAR 0.233; \
318 program { name: "check_draw_effect"; \
319 action: STATE_SET "visible" 0.0; \
320 transition: LINEAR 0.267; \
321 target: "sequence_clip"; \
323 program { name: "text_show"; \
324 signal: "elm,state,text,visible"; \
326 action: STATE_SET "visible" 0.0; \
327 target: "elm.text"; \
329 program { name: "text_hide"; \
330 signal: "elm,state,text,hidden"; \
332 action: STATE_SET "default" 0.0; \
333 target: "elm.text"; \
335 program { name: "icon_show"; \
336 signal: "elm,state,icon,visible"; \
338 action: STATE_SET "visible" 0.0; \
339 target: "elm.swallow.content"; \
341 program { name: "icon_hide"; \
342 signal: "elm,state,icon,hidden"; \
344 action: STATE_SET "default" 0.0; \
345 target: "elm.swallow.content"; \
347 program { name: "disable"; \
348 signal: "elm,state,disabled"; \
350 action: STATE_SET "disabled" 0.0; \
351 target: "disabler"; \
354 after: "disable_text"; \
356 program { name: "disable_text"; \
360 get_state(PART:"elm.text", st, 30, vl); \
361 if (!strcmp(st, "visible")) \
362 set_state(PART:"elm.text", "disabled_visible", 0.0); \
364 set_state(PART:"elm.text", "disabled", 0.0); \
365 get_state(PART:"elm.swallow.content", st, 30, vl); \
366 if (!strcmp(st, "visible")) \
367 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
369 set_state(PART:"elm.swallow.content", "disabled", 0.0); \
370 get_state(PART:"check", st, 30, vl); \
371 if (!strcmp(st, "visible")) \
373 set_state(PART:"check", "disabled_visible", 0.0); \
374 set_int(check_state, CHECK_STATE_DISABLED_VISIBLE); \
378 program { name: "enable"; \
379 signal: "elm,state,enabled"; \
381 action: STATE_SET "default" 0.0; \
382 target: "disabler"; \
385 after: "enable_text"; \
387 program { name: "enable_text"; \
391 get_state(PART:"elm.text", st, 30, vl); \
392 if (!strcmp(st, "disabled_visible")) \
393 set_state(PART:"elm.text", "visible", 0.0); \
395 set_state(PART:"elm.text", "default", 0.0); \
396 get_state(PART:"elm.swallow.content", st, 30, vl); \
397 if (!strcmp(st, "visible")) \
398 set_state(PART:"elm.swallow.content", "visible", 0.0); \
400 set_state(PART:"elm.swallow.content", "default", 0.0); \
401 get_state(PART:"check", st, 30, vl); \
402 if (!strcmp(st, "disabled_visible")) \
404 set_state(PART:"check", "visible", 0.0); \
405 set_state(PART:"sequence_clip", "visible", 0.0); \
406 set_int(check_state, CHECK_STATE_VISIBLE); \
409 set_int(check_state, CHECK_STATE_DEFAULT); \
414 ////////////////////////////////////////////////////////////////////////////////
415 CHECK_STYLE_DEFAULT("default", CHECK_STYLE_DEFAULT_DEFAULT_BG_IMAGE_MIN_WIDTH_INC, CHECK_STYLE_DEFAULT_DEFAULT_BG_IMAGE_MIN_HEIGHT_INC)
416 ////////////////////////////////////////////////////////////////////////////////
417 CHECK_STYLE_DEFAULT("default/extended", CHECK_STYLE_DEFAULT_EXTENDED_BG_IMAGE_MIN_WIDTH_INC, CHECK_STYLE_DEFAULT_EXTENDED_BG_IMAGE_MIN_HEIGHT_INC)
418 ////////////////////////////////////////////////////////////////////////////////
420 #define CHECK_STYLE_DEFAULT_GENLIST_EDITMODE(style_name, min_width, min_height) \
421 group { name: "elm/check/base/"style_name; \
423 image: "00_check_bg.png" COMP; \
424 image: "00_check_dim_bg.png" COMP; \
425 image: "00_check_Activated_dim.png" COMP; \
426 image: "00_check_Activated.png" COMP; \
429 public check_state = CHECK_STATE_DEFAULT; \
430 public check_visible = CHECK_HIDE; \
433 part { name: "back_bg"; \
436 description { state: "default" 0.0; \
437 rel2.relative: 0.0 1.0; \
439 min: min_width min_height; \
447 description { state: "default" 0.0; \
448 min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
449 max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
451 rel1.to: "back_bg"; \
452 rel2.to: "back_bg"; \
453 image.normal: "00_check_bg.png"; \
456 description { state: "visible" 0.0; \
457 inherit: "default" 0.0; \
459 description { state: "disabled" 0.0; \
460 inherit: "default" 0.0; \
461 image.normal: "00_check_dim_bg.png"; \
464 part { name: "check"; \
465 clip_to: "sequence_clip"; \
468 description { state: "default" 0.0; \
472 image.normal: "00_check_Activated.png"; \
473 color: 255 255 255 0; \
475 description { state: "visible" 0.0; \
476 inherit: "default" 0.0; \
478 color: 255 255 255 255; \
480 description { state: "disabled_visible" 0.0; \
481 inherit: "default" 0.0; \
483 image.normal: "00_check_Activated_dim.png"; \
484 color: 255 255 255 255; \
487 part { name: "sequence_clip"; \
490 description { state: "default" 0.0; \
491 rel2.relative: 0.0 1.0; \
492 color: 255 255 255 255; \
494 description { state: "visible" 0.0; \
495 inherit: "default" 0.0; \
496 rel2.relative: 1.0 1.0; \
499 part { name: "elm.swallow.content"; \
501 clip_to: "disclip"; \
502 description { state: "default" 0.0; \
517 description { state: "visible" 0.0; \
518 inherit: "default" 0.0; \
522 aspect_preference: VERTICAL; \
524 description { state: "disabled" 0.0; \
525 inherit: "default" 0.0; \
527 description { state: "disabled_visible" 0.0; \
528 inherit: "default" 0.0; \
534 part { name: "elm.text"; \
537 clip_to: "disclip"; \
539 description { state: "default" 0.0; \
545 to_x: "elm.swallow.content"; \
553 style: "check_label_textblock_style"; \
556 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
558 description { state: "visible" 0.0; \
559 inherit: "default" 0.0; \
563 description { state: "disabled" 0.0; \
564 inherit: "default" 0.0; \
566 description { state: "disabled_visible" 0.0; \
567 inherit: "default" 0.0; \
570 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
573 part { name: "disclip"; \
576 description { state: "default" 0.0; \
577 color: CHECK_DISCLIP_NORMAL_COLOR_INC; \
579 description { state: "disabled" 0.0; \
580 inherit: "default" 0.0; \
581 color: CHECK_DISCLIP_DISABLED_COLOR_INC; \
584 part { name: "disabler"; \
586 description { state: "default" 0.0; \
590 description { state: "disabled" 0.0; \
591 inherit: "default" 0.0; \
597 program { name: "show"; \
600 set_int(check_visible, CHECK_SHOW); \
603 program { name: "hide"; \
606 set_int(check_visible, CHECK_HIDE); \
609 program { name: "check_on"; \
610 signal: "elm,state,check,on"; \
613 set_int(check_state, CHECK_STATE_VISIBLE); \
614 if (get_int(check_visible) == CHECK_SHOW) \
616 run_program(PROGRAM:"check_show_effect"); \
617 run_program(PROGRAM:"check_draw_effect"); \
621 set_state(PART:"check", "visible", 0.0); \
622 set_state(PART:"sequence_clip", "visible", 0.0); \
626 program { name: "check_off"; \
627 signal: "elm,state,check,off"; \
629 action: STATE_SET "default" 0.0; \
632 if (get_int(check_state) == CHECK_STATE_VISIBLE) \
634 set_int(check_state, CHECK_STATE_DEFAULT); \
635 set_state(PART:"check", "default", 0.0); \
636 set_state(PART:"sequence_clip", "default", 0.0); \
640 program { name: "check_show_effect"; \
641 action: STATE_SET "visible" 0.0; \
642 transition: LINEAR 0.233; \
645 program { name: "check_draw_effect"; \
646 action: STATE_SET "visible" 0.0; \
647 transition: LINEAR 0.267; \
648 target: "sequence_clip"; \
650 program { name: "text_show"; \
651 signal: "elm,state,text,visible"; \
653 action: STATE_SET "visible" 0.0; \
654 target: "elm.text"; \
656 program { name: "text_hide"; \
657 signal: "elm,state,text,hidden"; \
659 action: STATE_SET "default" 0.0; \
660 target: "elm.text"; \
662 program { name: "icon_show"; \
663 signal: "elm,state,icon,visible"; \
665 action: STATE_SET "visible" 0.0; \
666 target: "elm.swallow.content"; \
668 program { name: "icon_hide"; \
669 signal: "elm,state,icon,hidden"; \
671 action: STATE_SET "default" 0.0; \
672 target: "elm.swallow.content"; \
674 program { name: "disable"; \
675 signal: "elm,state,disabled"; \
677 action: STATE_SET "disabled" 0.0; \
678 target: "disabler"; \
681 after: "disable_text"; \
683 program { name: "disable_text"; \
687 get_state(PART:"elm.text", st, 30, vl); \
688 if (!strcmp(st, "visible")) \
689 set_state(PART:"elm.text", "disabled_visible", 0.0); \
691 set_state(PART:"elm.text", "disabled", 0.0); \
692 get_state(PART:"elm.swallow.content", st, 30, vl); \
693 if (!strcmp(st, "visible")) \
694 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
696 set_state(PART:"elm.swallow.content", "disabled", 0.0); \
697 get_state(PART:"check", st, 30, vl); \
698 if (!strcmp(st, "visible")) \
700 set_state(PART:"check", "disabled_visible", 0.0); \
701 set_int(check_state, CHECK_STATE_DISABLED_VISIBLE); \
705 program { name: "enable"; \
706 signal: "elm,state,enabled"; \
708 action: STATE_SET "default" 0.0; \
709 target: "disabler"; \
712 after: "enable_text"; \
714 program { name: "enable_text"; \
718 get_state(PART:"elm.text", st, 30, vl); \
719 if (!strcmp(st, "disabled_visible")) \
720 set_state(PART:"elm.text", "visible", 0.0); \
722 set_state(PART:"elm.text", "default", 0.0); \
723 get_state(PART:"elm.swallow.content", st, 30, vl); \
724 if (!strcmp(st, "visible")) \
725 set_state(PART:"elm.swallow.content", "visible", 0.0); \
727 set_state(PART:"elm.swallow.content", "default", 0.0); \
728 get_state(PART:"check", st, 30, vl); \
729 if (!strcmp(st, "disabled_visible")) \
731 set_state(PART:"check", "visible", 0.0); \
732 set_state(PART:"sequence_clip", "visible", 0.0); \
733 set_int(check_state, CHECK_STATE_VISIBLE); \
736 set_int(check_state, CHECK_STATE_DEFAULT); \
741 ////////////////////////////////////////////////////////////////////////////////
742 CHECK_STYLE_DEFAULT_GENLIST_EDITMODE("default/genlist_editmode", CHECK_STYLE_DEFAULT_DEFAULT_BG_IMAGE_MIN_WIDTH_INC, CHECK_STYLE_DEFAULT_DEFAULT_BG_IMAGE_MIN_HEIGHT_INC)
743 ////////////////////////////////////////////////////////////////////////////////
745 #define CHECK_STYLE_FOR_GENLIST(style_name, min_width, min_height) \
746 group { name: "elm/check/base/"style_name; \
748 image: "00_check_bg.png" COMP; \
749 image: "00_check_dim_bg.png" COMP; \
750 image: "00_check_Activated_dim.png" COMP; \
751 image: "00_check_Activated.png" COMP; \
754 public check_state = CHECK_STATE_DEFAULT; \
757 part { name: "back_bg"; \
760 description { state: "default" 0.0; \
761 min: min_width min_height; \
769 description { state: "default" 0.0; \
770 min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
771 max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
773 rel1.to: "back_bg"; \
774 rel2.to: "back_bg"; \
775 image.normal: "00_check_bg.png"; \
778 description { state: "disabled" 0.0; \
779 inherit: "default" 0.0; \
780 image.normal: "00_check_dim_bg.png"; \
783 part { name: "check"; \
786 description { state: "default" 0.0; \
790 image.normal: "00_check_Activated.png"; \
792 description { state: "visible" 0.0; \
793 inherit: "default" 0.0; \
796 description { state: "disabled_visible" 0.0; \
797 inherit: "default" 0.0; \
799 image.normal: "00_check_Activated_dim.png"; \
802 part { name: "elm.swallow.content"; \
804 clip_to: "disclip"; \
805 description { state: "default" 0.0; \
820 description { state: "visible" 0.0; \
821 inherit: "default" 0.0; \
825 aspect_preference: VERTICAL; \
827 description { state: "disabled" 0.0; \
828 inherit: "default" 0.0; \
830 description { state: "disabled_visible" 0.0; \
831 inherit: "default" 0.0; \
837 part { name: "elm.text"; \
840 clip_to: "disclip"; \
842 description { state: "default" 0.0; \
848 to_x: "elm.swallow.content"; \
856 style: "check_label_textblock_style"; \
859 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
861 description { state: "visible" 0.0; \
862 inherit: "default" 0.0; \
866 description { state: "disabled" 0.0; \
867 inherit: "default" 0.0; \
869 description { state: "disabled_visible" 0.0; \
870 inherit: "default" 0.0; \
873 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
876 part { name: "events1"; \
878 ignore_flags: ON_HOLD; \
879 description { state: "default" 0.0; \
883 part { name: "events2"; \
886 description { state: "default" 0.0; \
890 part { name: "disclip"; \
893 description { state: "default" 0.0; \
894 color: CHECK_DISCLIP_NORMAL_COLOR_INC; \
896 description { state: "disabled" 0.0; \
897 inherit: "default" 0.0; \
898 color: CHECK_DISCLIP_DISABLED_COLOR_INC; \
901 part { name: "disabler"; \
903 description { state: "default" 0.0; \
907 description { state: "disabled" 0.0; \
908 inherit: "default" 0.0; \
914 program { name: "click"; \
915 signal: "mouse,clicked,1"; \
917 action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
918 after: "touch_sound"; \
920 program { name: "touch_sound"; \
921 action: PLAY_SAMPLE "touch_sound" 1.0; \
923 program { name: "check_on"; \
924 signal: "elm,state,check,on"; \
927 set_int(check_state, CHECK_STATE_VISIBLE); \
928 set_state(PART:"check", "visible", 0.0); \
931 program { name: "check_off"; \
932 signal: "elm,state,check,off"; \
934 action: STATE_SET "default" 0.0; \
937 if (get_int(check_state) == CHECK_STATE_VISIBLE) \
939 set_int(check_state, CHECK_STATE_DEFAULT); \
940 set_state(PART:"check", "default", 0.0); \
944 program { name: "text_show"; \
945 signal: "elm,state,text,visible"; \
947 action: STATE_SET "visible" 0.0; \
948 target: "elm.text"; \
950 program { name: "text_hide"; \
951 signal: "elm,state,text,hidden"; \
953 action: STATE_SET "default" 0.0; \
954 target: "elm.text"; \
956 program { name: "icon_show"; \
957 signal: "elm,state,icon,visible"; \
959 action: STATE_SET "visible" 0.0; \
960 target: "elm.swallow.content"; \
962 program { name: "icon_hide"; \
963 signal: "elm,state,icon,hidden"; \
965 action: STATE_SET "default" 0.0; \
966 target: "elm.swallow.content"; \
968 program { name: "disable"; \
969 signal: "elm,state,disabled"; \
971 action: STATE_SET "disabled" 0.0; \
972 target: "disabler"; \
975 after: "disable_text"; \
977 program { name: "disable_text"; \
981 get_state(PART:"elm.text", st, 30, vl); \
982 if (!strcmp(st, "visible")) \
983 set_state(PART:"elm.text", "disabled_visible", 0.0); \
985 set_state(PART:"elm.text", "disabled", 0.0); \
986 get_state(PART:"elm.swallow.content", st, 30, vl); \
987 if (!strcmp(st, "visible")) \
988 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
990 set_state(PART:"elm.swallow.content", "disabled", 0.0); \
991 get_state(PART:"check", st, 30, vl); \
992 if (!strcmp(st, "visible")) \
994 set_state(PART:"check", "disabled_visible", 0.0); \
995 set_int(check_state, CHECK_STATE_DISABLED_VISIBLE); \
999 program { name: "enable"; \
1000 signal: "elm,state,enabled"; \
1002 action: STATE_SET "default" 0.0; \
1003 target: "disabler"; \
1004 target: "disclip"; \
1006 after: "enable_text"; \
1008 program { name: "enable_text"; \
1012 get_state(PART:"elm.text", st, 30, vl); \
1013 if (!strcmp(st, "disabled_visible")) \
1014 set_state(PART:"elm.text", "visible", 0.0); \
1016 set_state(PART:"elm.text", "default", 0.0); \
1017 get_state(PART:"elm.swallow.content", st, 30, vl); \
1018 if (!strcmp(st, "visible")) \
1019 set_state(PART:"elm.swallow.content", "visible", 0.0); \
1021 set_state(PART:"elm.swallow.content", "default", 0.0); \
1022 get_state(PART:"check", st, 30, vl); \
1023 if (!strcmp(st, "disabled_visible")) \
1025 set_state(PART:"check", "visible", 0.0); \
1026 set_int(check_state, CHECK_STATE_VISIBLE); \
1029 set_int(check_state, CHECK_STATE_DEFAULT); \
1034 ////////////////////////////////////////////////////////////////////////////////
1035 CHECK_STYLE_FOR_GENLIST("default/genlist_edit", CHECK_STYLE_FAVORITE_DEFAULT_BG_IMAGE_MIN_WIDTH_INC, CHECK_STYLE_FAVORITE_DEFAULT_BG_IMAGE_MIN_HEIGHT_INC)
1036 ////////////////////////////////////////////////////////////////////////////////
1038 style { name: "check_label_textblock_style";
1039 base: "font=Tizen:style=Roman font_size="CHECK_DEFAULT_TEXT_FONT_SIZE_INC" color=#ffffff wrap=char text_class=tizen";
1042 tag: "hilight" "+ font=Tizen:style=Bold";
1043 tag: "b" "+ font=Tizen:style=Bold";
1044 tag: "whitecolor" "+ color=#ffffff";
1049 group { name: "elm/check/base/on&off";
1051 image: "00_button_on.png" COMP;
1052 image: "00_button_on_dim.png" COMP;
1053 image: "00_button_off.png" COMP;
1054 image: "00_button_off_dim.png" COMP;
1055 image: "00_button_on_off_handler.png" COMP;
1056 image: "00_button_on_off_handler_dim.png" COMP;
1061 public was_drag = 0;
1062 public check_on = 0;
1069 description { state: "default" 0.0;
1070 min: CHECK_ONOFF_BG_NORMAL_MIN_MAX_INC;
1071 max: CHECK_ONOFF_BG_NORMAL_MIN_MAX_INC;
1072 rel2.relative: 0.0 1.0;
1078 part { name: "padding_left";
1082 description { state: "default" 0.0;
1084 rel1{ relative: 0.0 0.0; to: "bg"; }
1085 rel2{ relative: 0.0 1.0; to: "bg"; }
1091 part { name: "padding_right";
1095 description { state: "default" 0.0;
1110 part { name: "padding_top";
1114 description { state: "default" 0.0;
1126 part { name: "padding_bottom";
1130 description { state: "default" 0.0;
1145 part { name: "bg_image";
1148 description { state: "default" 0.0;
1153 to_y: "padding_top";
1158 to_y: "padding_bottom";
1160 image.normal: "00_button_off.png";
1162 description { state: "visible" 0.0;
1163 inherit: "default" 0.0;
1164 image.normal: "00_button_on.png";
1166 description { state: "pressed" 0.0;
1167 inherit: "default" 0.0;
1168 image.normal: "00_button_off.png";
1170 description { state: "visible_pressed" 0.0;
1171 inherit: "default" 0.0;
1172 image.normal: "00_button_on.png";
1174 description { state: "visible_disable" 0.0;
1175 inherit: "default" 0.0;
1176 image.normal: "00_button_on_dim.png";
1178 description { state: "off_disable" 0.0;
1179 inherit: "default" 0.0;
1180 image.normal: "00_button_off_dim.png";
1183 part { name: "drag_container";
1187 description { state: "default" 0.0;
1190 to_x: "padding_left";
1195 to_x: "padding_right";
1201 part { name: "clipper";
1204 description { state: "default" 0.0;
1207 color: 255 255 255 255;
1210 part { name: "clipper_inner";
1213 description { state: "default" 0.0;
1214 rel1.to: "bg_image";
1215 rel2.to: "bg_image";
1216 color: 255 255 255 255;
1219 part { name: "button";
1226 confine: "drag_container";
1228 description { state: "default" 0.0;
1229 min: CHECK_ONOFF_HANDLER_MIN_MAX_INC;
1230 max: CHECK_ONOFF_HANDLER_MIN_MAX_INC;
1235 image.normal: "00_button_on_off_handler.png";
1237 description { state: "disabled" 0.0;
1238 inherit: "default" 0.0;
1239 image.normal: "00_button_on_off_handler_dim.png";
1242 part { name: "button_events";
1247 description { state: "default" 0.0;
1253 part { name: "onrect";
1258 description { state: "default" 0.0;
1271 part { name: "offrect";
1276 description { state: "default" 0.0;
1288 part { name: "elm.offtext";
1292 clip_to: "clipper_inner";
1293 description { state: "default" 0.0;
1296 color: 255 255 255 255;
1298 font: "Tizen:style=Medium";
1301 text_class: "tizen";
1304 description { state: "disabled" 0.0;
1305 inherit: "default" 0.0;
1306 color: 128 128 128 128;
1309 part { name: "elm.ontext";
1313 clip_to: "clipper_inner";
1314 description { state: "default" 0.0;
1317 color: 255 255 255 255;
1319 font: "Tizen:style=Medium";
1322 text_class: "tizen";
1325 description { state: "disabled" 0.0;
1326 inherit: "default" 0.0;
1327 color: 128 128 128 128;
1330 part { name: "elm.swallow.content";
1333 description { state: "default" 0.0;
1346 description { state: "visible" 0.0;
1347 inherit: "default" 0.0;
1351 aspect_preference: VERTICAL;
1353 description { state: "disabled" 0.0;
1354 inherit: "default" 0.0;
1356 description { state: "disabled_visible" 0.0;
1357 inherit: "default" 0.0;
1363 part { name: "elm.text";
1368 description { state: "default" 0.0;
1374 to_x: "elm.swallow.content";
1382 style: "check_label_textblock_style";
1385 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
1387 description { state: "visible" 0.0;
1388 inherit: "default" 0.0;
1392 description { state: "disabled" 0.0;
1393 inherit: "default" 0.0;
1395 description { state: "disabled_visible" 0.0;
1396 inherit: "default" 0.0;
1401 part { name: "disclip";
1404 description { state: "default" 0.0;
1405 color: CHECK_DISCLIP_NORMAL_COLOR_INC;
1407 description { state: "disabled" 0.0;
1408 inherit: "default" 0.0;
1409 color: CHECK_DISCLIP_DISABLED_COLOR_INC;
1412 part { name: "disabler";
1414 description { state: "default" 0.0;
1418 description { state: "disabled" 0.0;
1419 inherit: "default" 0.0;
1426 signal: "mouse,clicked,1";
1429 new Float:dx, Float:dy;
1430 get_drag(PART:"button", dx, dy);
1431 if (!get_int(was_drag)) {
1433 set_drag(PART:"button", 0.0, 0.0);
1435 set_drag(PART:"button", 1.0, 0.0);
1436 if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
1437 (get_int(is_rtl) == 0) && (dx > 0.5)) {
1438 if (get_int(check_on)) {
1439 emit("elm,action,check,off", "");
1440 emit("elm,action,touch,sound", "");
1444 if (!get_int(check_on)) {
1445 emit("elm,action,check,on", "");
1446 emit("elm,action,touch,sound", "");
1452 program { name: "touch_sound";
1453 signal: "elm,action,touch,sound";
1455 action: PLAY_SAMPLE "touch_sound" 1.0;
1461 if (!get_int(is_drag)) emit("elm,action,check,drag,start", "");
1462 set_int(is_drag, 1);
1466 signal: "mouse,down,1";
1469 set_int(was_drag, 0);
1470 set_int(is_drag, 0);
1473 program { name: "drag_end";
1474 signal: "mouse,up,1";
1477 new Float:dx, Float:dy;
1478 get_drag(PART:"button", dx, dy);
1479 if (get_int(is_drag)) {
1481 set_drag(PART:"button", 1.0, 0.0);
1483 set_drag(PART:"button", 0.0, 0.0);
1484 if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
1485 (get_int(is_rtl) == 0) && (dx > 0.5)) {
1486 if (!get_int(check_on)) {
1487 emit("elm,action,check,on", "");
1488 emit("elm,action,touch,sound", "");
1492 if (get_int(check_on)) {
1493 emit("elm,action,check,off", "");
1494 emit("elm,action,touch,sound", "");
1497 set_int(was_drag, get_int(is_drag));
1498 set_int(is_drag, 0);
1499 emit("elm,action,check,drag,stop", "");
1503 program { name: "check_on";
1504 signal: "elm,state,check,on";
1508 if (get_int(is_rtl) == 0) {
1514 set_drag(PART:"button", drag, 0.0);
1515 set_state(PART:"bg_image", "visible", 0.0);
1516 set_int(check_on, 1);
1519 program { name: "check_off";
1520 signal: "elm,state,check,off";
1524 if (get_int(is_rtl) == 0) {
1530 set_drag(PART:"button", drag, 0.0);
1531 set_state(PART:"bg_image", "default", 0.0);
1532 set_int(check_on, 0);
1535 program { name: "text_show";
1536 signal: "elm,state,text,visible";
1538 action: STATE_SET "visible" 0.0;
1541 program { name: "text_hide";
1542 signal: "elm,state,text,hidden";
1544 action: STATE_SET "default" 0.0;
1547 program { name: "icon_show";
1548 signal: "elm,state,icon,visible";
1550 action: STATE_SET "visible" 0.0;
1551 target: "elm.swallow.content";
1553 program { name: "icon_hide";
1554 signal: "elm,state,icon,hidden";
1556 action: STATE_SET "default" 0.0;
1557 target: "elm.swallow.content";
1559 program { name: "disable";
1560 signal: "elm,state,disabled";
1562 action: STATE_SET "disabled" 0.0;
1563 target: "elm.offtext";
1564 target: "elm.ontext";
1568 after: "disable_text";
1570 program { name: "disable_text";
1574 get_state(PART:"elm.text", st, 30, vl);
1575 if (!strcmp(st, "visible"))
1576 set_state(PART:"elm.text", "disabled_visible", 0.0);
1578 set_state(PART:"elm.text", "disabled", 0.0);
1579 get_state(PART:"bg_image", st, 30, vl);
1580 if (!strcmp(st, "visible"))
1581 set_state(PART:"bg_image", "visible_disable", 0.0);
1583 set_state(PART:"bg_image", "off_disable", 0.0);
1584 get_state(PART:"elm.swallow.content", st, 30, vl);
1585 if (!strcmp(st, "visible"))
1586 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
1588 set_state(PART:"elm.swallow.content", "disabled", 0.0);
1589 set_state(PART:"button", "disabled", 0.0);
1592 program { name: "enable";
1593 signal: "elm,state,enabled";
1595 action: STATE_SET "default" 0.0;
1599 after: "enable_text";
1601 program { name: "enable_text";
1605 get_state(PART:"elm.text", st, 30, vl);
1606 if (!strcmp(st, "disabled_visible"))
1607 set_state(PART:"elm.text", "visible", 0.0);
1609 set_state(PART:"elm.text", "default", 0.0);
1610 get_state(PART:"bg_image", st, 30, vl);
1611 if (!strcmp(st, "visible_disable"))
1612 set_state(PART:"bg_image", "visible", 0.0);
1614 set_state(PART:"bg_image", "default", 0.0);
1615 get_state(PART:"elm.swallow.content", st, 30, vl);
1616 if (!strcmp(st, "visible"))
1617 set_state(PART:"elm.swallow.content", "visible", 0.0);
1619 set_state(PART:"elm.swallow.content", "default", 0.0);
1620 set_state(PART:"button", "default", 0.0);
1623 program { name: "to_rtl";
1624 signal: "edje,state,rtl";
1630 program { name: "to_ltr";
1631 signal: "edje,state,ltr";
1639 ///////////////////////////////////////////////////////////////////////////////////////
1641 #define CHECK_STYLE_FAVORITE(style_name, on_image, on_dim_image, off_image, off_dim_image, min_width, min_height) \
1642 group { name: "elm/check/base/"style_name; \
1644 image: on_image COMP; \
1645 image: on_dim_image COMP; \
1646 image: off_image COMP; \
1647 image: off_dim_image COMP; \
1650 part { name: "back_bg"; \
1653 description { state: "default" 0.0; \
1655 rel2.relative: 0.0 1.0; \
1657 min: min_width min_height; \
1661 part { name: "bg"; \
1663 clip_to: "disclip"; \
1665 description { state: "default" 0.0; \
1667 rel1.to: "back_bg"; \
1668 rel2.to: "back_bg"; \
1669 min: min_width min_height; \
1670 max: min_width min_height; \
1674 part { name: "check"; \
1676 clip_to: "disclip"; \
1678 description { state: "default" 0.0; \
1681 image.normal: off_image; \
1683 description { state: "visible" 0.0; \
1684 inherit: "default" 0.0; \
1685 image.normal: on_image; \
1687 description { state: "disabled" 0.0; \
1688 inherit: "default" 0.0; \
1689 image.normal: off_dim_image; \
1691 description { state: "disabled_visible" 0.0; \
1692 inherit: "default" 0.0; \
1693 image.normal: on_dim_image; \
1696 part { name: "elm.swallow.content"; \
1698 clip_to: "disclip"; \
1699 description { state: "default" 0.0; \
1705 relative: 1.0 0.0; \
1710 relative: 1.0 1.0; \
1714 description { state: "visible" 0.0; \
1715 inherit: "default" 0.0; \
1719 aspect_preference: VERTICAL; \
1721 description { state: "disabled" 0.0; \
1722 inherit: "default" 0.0; \
1724 description { state: "disabled_visible" 0.0; \
1725 inherit: "default" 0.0; \
1731 part { name: "elm.text"; \
1733 clip_to: "disclip"; \
1736 description { state: "default" 0.0; \
1740 relative: 1.0 0.5; \
1742 to_x: "elm.swallow.content"; \
1745 relative: 1.0 0.5; \
1750 style: "check_label_textblock_style"; \
1753 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
1755 description { state: "visible" 0.0; \
1756 inherit: "default" 0.0; \
1760 description { state: "disabled" 0.0; \
1761 inherit: "default" 0.0; \
1763 description { state: "disabled_visible" 0.0; \
1764 inherit: "default" 0.0; \
1767 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
1770 part { name: "disclip"; \
1773 description { state: "default" 0.0; \
1774 color: CHECK_DISCLIP_NORMAL_COLOR_INC; \
1777 part { name: "events"; \
1779 ignore_flags: ON_HOLD; \
1780 description { state: "default" 0.0; \
1784 part { name: "disabler"; \
1786 description { state: "default" 0.0; \
1790 description { state: "disabled" 0.0; \
1791 inherit: "default" 0.0; \
1797 program { name: "click"; \
1798 signal: "mouse,clicked,1"; \
1800 action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
1801 after: "touch_sound"; \
1803 program { name: "touch_sound"; \
1804 action: PLAY_SAMPLE "touch_sound" 1.0; \
1806 program { name: "check_on"; \
1807 signal: "elm,state,check,on"; \
1809 action: STATE_SET "visible" 0.0; \
1812 program { name: "check_off"; \
1813 signal: "elm,state,check,off"; \
1815 action: STATE_SET "default" 0.0; \
1818 program { name: "text_show"; \
1819 signal: "elm,state,text,visible"; \
1821 action: STATE_SET "visible" 0.0; \
1822 target: "elm.text"; \
1824 program { name: "text_hide"; \
1825 signal: "elm,state,text,hidden"; \
1827 action: STATE_SET "default" 0.0; \
1828 target: "elm.text"; \
1830 program { name: "icon_show"; \
1831 signal: "elm,state,icon,visible"; \
1833 action: STATE_SET "visible" 0.0; \
1834 target: "elm.swallow.content"; \
1836 program { name: "icon_hide"; \
1837 signal: "elm,state,icon,hidden"; \
1839 action: STATE_SET "default" 0.0; \
1840 target: "elm.swallow.content"; \
1842 program { name: "disable"; \
1843 signal: "elm,state,disabled"; \
1845 action: STATE_SET "disabled" 0.0; \
1846 target: "disabler"; \
1847 after: "disable_text"; \
1849 program { name: "disable_text"; \
1853 get_state(PART:"elm.text", st, 30, vl); \
1854 if (!strcmp(st, "visible")) \
1855 set_state(PART:"elm.text", "disabled_visible", 0.0); \
1857 set_state(PART:"elm.text", "disabled", 0.0); \
1858 get_state(PART:"elm.swallow.content", st, 30, vl); \
1859 if (!strcmp(st, "visible")) \
1860 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
1862 set_state(PART:"elm.swallow.content", "disabled", 0.0); \
1863 get_state(PART:"check", st, 30, vl); \
1864 if (!strcmp(st, "visible")) \
1865 set_state(PART:"check", "disabled_visible", 0.0); \
1867 set_state(PART:"check", "disabled", 0.0); \
1870 program { name: "enable"; \
1871 signal: "elm,state,enabled"; \
1873 action: STATE_SET "default" 0.0; \
1874 target: "disabler"; \
1875 after: "enable_text"; \
1877 program { name: "enable_text"; \
1881 get_state(PART:"elm.text", st, 30, vl); \
1882 if (!strcmp(st, "disabled_visible")) \
1883 set_state(PART:"elm.text", "visible", 0.0); \
1885 set_state(PART:"elm.text", "default", 0.0); \
1886 get_state(PART:"elm.swallow.content", st, 30, vl); \
1887 if (!strcmp(st, "visible")) \
1888 set_state(PART:"elm.swallow.content", "visible", 0.0); \
1890 set_state(PART:"elm.swallow.content", "default", 0.0); \
1891 get_state(PART:"check", st, 30, vl); \
1892 if (!strcmp(st, "disabled_visible")) \
1893 set_state(PART:"check", "visible", 0.0); \
1895 set_state(PART:"check", "default", 0.0); \
1900 ////////////////////////////////////////////////////////////////////////////////
1901 CHECK_STYLE_FAVORITE("favorite", "00_icon_favorite_on_72x72.png", "00_icon_favorite_on_72x72_dim.png", "00_icon_favorite_off_72x72.png", "00_icon_favorite_off_72x72_dim.png", CHECK_STYLE_FAVORITE_DEFAULT_BG_IMAGE_MIN_WIDTH_INC, CHECK_STYLE_FAVORITE_DEFAULT_BG_IMAGE_MIN_HEIGHT_INC)
1902 ////////////////////////////////////////////////////////////////////////////////
1903 CHECK_STYLE_FAVORITE("favorite_small", "00_icon_favorite_on_45x45.png", "00_icon_favorite_on_45x45.png", "00_icon_favorite_off_45x45.png", "00_icon_favorite_off_45x45.png", CHECK_STYLE_FAVORITE_SMALL_DEFAULT_BG_IMAGE_MIN_WIDTH_INC, CHECK_STYLE_FAVORITE_SMALL_DEFAULT_BG_IMAGE_MIN_HEIGHT_INC)
1904 ////////////////////////////////////////////////////////////////////////////////
1905 CHECK_STYLE_FAVORITE("favorite/extended", "00_icon_favorite_on_72x72.png", "00_icon_favorite_on_72x72_dim.png", "00_icon_favorite_off_72x72.png", "00_icon_favorite_off_72x72_dim.png", CHECK_STYLE_FAVORITE_EXTENDED_BG_IMAGE_MIN_WIDTH_INC, CHECK_STYLE_FAVORITE_EXTENDED_BG_IMAGE_MIN_HEIGHT_INC)
1906 ////////////////////////////////////////////////////////////////////////////////
1908 group { name: "elm/check/base/grid";
1909 images.image: "00_check_bg.png" COMP;
1910 images.image: "00_check_dim_bg.png" COMP;
1911 images.image: "00_check_Activated_dim.png" COMP;
1912 images.image: "00_check_Activated.png" COMP;
1914 public check_state = CHECK_STATE_DEFAULT;
1915 public check_visible = CHECK_HIDE;
1921 description { state: "default" 0.0;
1925 part { name: "top_left_padding";
1929 description { state: "default" 0.0;
1931 min: GENGRID_ITEM_CHECK_TOP_RIGHT_PADDING_INC;
1947 description { state: "default" 0.0;
1948 min: GENGRID_EDIT_MODE_CHECK_SIZE_INC;
1953 to: "top_left_padding";
1957 to: "top_left_padding";
1959 image.normal: "00_check_bg.png";
1961 description { state: "visible" 0.0;
1962 inherit: "default" 0.0;
1964 description { state: "disabled" 0.0;
1965 inherit: "default" 0.0;
1966 image.normal: "00_check_dim_bg.png";
1969 part { name: "check";
1971 clip_to: "sequence_clip";
1973 description { state: "default" 0.0;
1977 image.normal: "00_check_Activated.png";
1978 color: 255 255 255 0;
1980 description { state: "visible" 0.0;
1981 inherit: "default" 0.0;
1983 color: 255 255 255 255;
1985 description { state: "pressed" 0.0;
1986 inherit: "visible" 0.0;
1988 description { state: "disabled_visible" 0.0;
1989 inherit: "default" 0.0;
1991 image.normal: "00_check_Activated_dim.png";
1994 part { name: "sequence_clip";
1997 description { state: "default" 0.0;
2000 rel2.relative: 0.0 1.0;
2001 color: 255 255 255 255;
2003 description { state: "visible" 0.0;
2004 inherit: "default" 0.0;
2005 rel2.relative: 1.0 1.0;
2008 part { name: "elm.swallow.content";
2011 state: "default" 0.0;
2014 color: 255 255 255 255;
2027 description { state: "visible" 0.0;
2028 inherit: "default" 0.0;
2032 aspect_preference: VERTICAL;
2034 description { state: "disabled" 0.0;
2035 inherit: "default" 0.0;
2036 color: 128 128 128 128;
2038 description { state: "disabled_visible" 0.0;
2039 inherit: "default" 0.0;
2040 color: 128 128 128 128;
2046 part { name: "elm.text";
2050 description { state: "default" 0.0;
2056 to_x: "elm.swallow.content";
2062 color: 255 255 255 255;
2065 style: "check_label_textblock_style";
2068 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
2070 description { state: "visible" 0.0;
2071 inherit: "default" 0.0;
2075 description { state: "disabled" 0.0;
2076 inherit: "default" 0.0;
2078 description { state: "disabled_visible" 0.0;
2079 inherit: "default" 0.0;
2082 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
2085 part { name: "events";
2087 ignore_flags: ON_HOLD;
2088 description { state: "default" 0.0;
2092 part { name: "disabler";
2094 description { state: "default" 0.0;
2098 description { state: "disabled" 0.0;
2099 inherit: "default" 0.0;
2105 program { name: "show";
2108 set_int(check_visible, CHECK_SHOW);
2111 program { name: "hide";
2114 set_int(check_visible, CHECK_HIDE);
2117 program { name: "click";
2118 signal: "mouse,clicked,1";
2120 action: SIGNAL_EMIT "elm,action,check,toggle" "";
2123 program { name: "bg_normal";
2125 set_state(PART:"bg2", "default", 0.0);
2128 program { name: "pressed";
2129 signal: "mouse,down,1";
2134 get_state(PART:"check", st, 30, vl);
2135 if (!strcmp(st, "visible"))
2137 set_state(PART:"check", "pressed", 0.0);
2138 set_state(PART:"bg2", "visible", 0.0);
2142 program { name: "mouse,out";
2143 signal: "mouse,out";
2146 if (get_int(check_state) == CHECK_STATE_VISIBLE)
2148 set_state(PART:"check", "visible", 0.0);
2149 set_state(PART:"sequence_clip", "visible", 0.0);
2150 set_state(PART:"bg2", "visible", 0.0);
2154 set_state(PART:"check", "default", 0.0);
2155 set_state(PART:"sequence_clip", "default", 0.0);
2156 set_state(PART:"bg2", "default", 0.0);
2160 program { name: "check_on";
2161 signal: "elm,state,check,on";
2164 set_int(check_state, CHECK_STATE_VISIBLE);
2165 if (get_int(check_visible) == CHECK_SHOW)
2167 run_program(PROGRAM:"check_show_effect");
2168 run_program(PROGRAM:"check_draw_effect");
2172 set_state(PART:"check", "visible", 0.0);
2173 set_state(PART:"sequence_clip", "visible", 0.0);
2175 set_state(PART:"bg2", "visible", 0.0);
2178 program { name: "check_off";
2179 signal: "elm,state,check,off";
2181 action: STATE_SET "default" 0.0;
2184 if (get_int(check_state) == CHECK_STATE_VISIBLE)
2186 set_int(check_state, CHECK_STATE_DEFAULT);
2187 set_state(PART:"check", "default", 0.0);
2188 set_state(PART:"sequence_clip", "default", 0.0);
2190 set_state(PART:"bg2", "default", 0.0);
2193 program { name: "check_show_effect";
2194 action: STATE_SET "visible" 0.0;
2195 transition: LINEAR 0.233;
2198 program { name: "check_draw_effect";
2199 action: STATE_SET "visible" 0.0;
2200 transition: LINEAR 0.267;
2201 target: "sequence_clip";
2203 program { name: "text_show";
2204 signal: "elm,state,text,visible";
2206 action: STATE_SET "visible" 0.0;
2209 program { name: "text_hide";
2210 signal: "elm,state,text,hidden";
2212 action: STATE_SET "default" 0.0;
2215 program { name: "icon_show";
2216 signal: "elm,state,icon,visible";
2218 action: STATE_SET "visible" 0.0;
2219 target: "elm.swallow.content";
2221 program { name: "icon_hide";
2222 signal: "elm,state,icon,hidden";
2224 action: STATE_SET "default" 0.0;
2225 target: "elm.swallow.content";
2227 program { name: "disable";
2228 signal: "elm,state,disabled";
2230 action: STATE_SET "disabled" 0.0;
2233 after: "disable_text";
2235 program { name: "disable_text";
2239 get_state(PART:"elm.text", st, 30, vl);
2240 if (!strcmp(st, "visible"))
2241 set_state(PART:"elm.text", "disabled_visible", 0.0);
2243 set_state(PART:"elm.text", "disabled", 0.0);
2244 get_state(PART:"elm.swallow.content", st, 30, vl);
2245 if (!strcmp(st, "visible"))
2246 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
2248 set_state(PART:"elm.swallow.content", "disabled", 0.0);
2249 get_state(PART:"check", st, 30, vl);
2250 if (!strcmp(st, "visible"))
2252 set_state(PART:"check", "disabled_visible", 0.0);
2253 set_int(check_state, CHECK_STATE_DISABLED_VISIBLE);
2257 program { name: "enable";
2258 signal: "elm,state,enabled";
2260 action: STATE_SET "default" 0.0;
2263 after: "enable_text";
2265 program { name: "enable_text";
2269 get_state(PART:"elm.text", st, 30, vl);
2270 if (!strcmp(st, "disabled_visible"))
2271 set_state(PART:"elm.text", "visible", 0.0);
2273 set_state(PART:"elm.text", "default", 0.0);
2274 get_state(PART:"elm.swallow.content", st, 30, vl);
2275 if (!strcmp(st, "visible"))
2276 set_state(PART:"elm.swallow.content", "visible", 0.0);
2278 set_state(PART:"elm.swallow.content", "default", 0.0);
2279 get_state(PART:"check", st, 30, vl);
2280 if (!strcmp(st, "disabled_visible"))
2282 set_state(PART:"check", "visible", 0.0);
2283 set_state(PART:"sequence_clip", "visible", 0.0);
2284 set_int(check_state, CHECK_STATE_VISIBLE);
2287 set_int(check_state, CHECK_STATE_DEFAULT);
2293 #undef CHECK_STATE_DEFAULT
2294 #undef CHECK_STATE_VISIBLE
2295 #undef CHECK_STATE_DISABLED_VISIBLE
2296 #undef CHECK_STATE_DISABLED