1 #define CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC 42 42
3 #define CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC 255 255 255 255
4 #define CHECK_DEFAULT_TEXT_PRESSED_COLOR_INC 255 255 255 255
5 #define CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC 136 136 136 136
7 //////////////////////////////////////////////////////////
9 #define GALLERY_EDC_IMAGE_CHECK_BG "T01_checkbox.png"
10 #define GALLERY_EDC_IMAGE_CHECK_BG_DIM "00_check_bg_dim.png"
11 #define GALLERY_EDC_IMAGE_CHECK_BG_CHECKING "T01_check.png"
12 #define GALLERY_EDC_IMAGE_CHECK_ALBUM_BG "T01_checkbox.png"
13 #define GALLERY_EDC_IMAGE_CHECK_GRID "T01_grid_select_check.png"
14 #define GALLERY_EDC_IMAGE_CHECK_PINCH_GRID "00_grid_select_check.png"
16 // Grid item background size W: 14+158+6; H: 24+158
20 // Gap between bg and icon
25 // Gap between icon and shadow
32 #define SHADOW_W (W-GAP_BG_L-GAP_BG_R+GAP_ICON_L+GAP_ICON_R)
33 #define SHADOW_H (H-GAP_BG_T+GAP_ICON_B)
35 // Gap between bg and shadow
36 #define GAP_SHADOW_L (GAP_BG_L-GAP_ICON_L)
37 #define GAP_SHADOW_R (GAP_BG_R-GAP_ICON_R)
38 #define GAP_SHADOW_T (GAP_BG_T-GAP_ICON_T)
39 #define GAP_SHADOW_B (0+GAP_ICON_B)
43 #define ZOOMED_W 116 //6+104+6
44 #define ZOOMED_H 110 //6+104
46 #define ZOOMED_GAP_L 6
47 #define ZOOMED_GAP_R 6
48 #define ZOOMED_GAP_T 6
49 #define ZOOMED_GAP_B 0
51 //////////////////////////////////////////////////////////
53 ////////////////////////////////////////////////////////////////////////////////////////
55 // check default textblock style
57 ///////////////////////////////////////////////////////////////////////////////////////
59 style { name: "check_label_textblock_style";
60 base: "font=SLP:style=Roman font_size=32 color=#ffffff wrap=char";
63 tag: "hilight" "+ font=SLP:style=Bold";
64 tag: "b" "+ font=SLP:style=Bold";
65 tag: "whitecolor" "+ color=#ffffff";
70 #define CHECK_STATE_DEFAULT 0
71 #define CHECK_STATE_VISIBLE 1
72 #define CHECK_STATE_DISABLED_VISIBLE 2
73 #define CHECK_STATE_DISABLED 3
75 ////////////////////////////////////////////////////////////////////////////////
76 #define CHECK_STYLE_DEFAULT(style_name, image_bg, image_checking, min_width, min_height) \
77 group { name: "elm/check/base/"style_name; \
79 image: image_bg COMP; \
80 image: GALLERY_EDC_IMAGE_CHECK_BG_DIM COMP; \
81 image: image_checking COMP; \
84 public check_state = CHECK_STATE_DEFAULT; \
87 part { name: "back_bg"; \
90 description { state: "default" 0.0; \
91 rel2.relative: 0.0 1.0; \
93 min: min_width min_height; \
101 description { state: "default" 0.0; \
102 min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
103 max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
105 rel1.to: "back_bg"; \
106 rel2.to: "back_bg"; \
107 image.normal: image_bg; \
110 description { state: "disabled" 0.0; \
111 inherit: "default" 0.0; \
112 image.normal: GALLERY_EDC_IMAGE_CHECK_BG_DIM; \
116 part { name: "check"; \
119 description { state: "default" 0.0; \
123 image.normal: image_checking; \
125 description { state: "visible" 0.0; \
126 inherit: "default" 0.0; \
129 description { state: "disabled_visible" 0.0; \
130 inherit: "default" 0.0; \
134 part { name: "elm.swallow.content"; \
136 description { state: "default" 0.0; \
139 color: 255 255 255 255; \
152 description { state: "visible" 0.0; \
153 inherit: "default" 0.0; \
157 aspect_preference: VERTICAL; \
159 description { state: "disabled" 0.0; \
160 inherit: "default" 0.0; \
161 color: 128 128 128 128; \
163 description { state: "disabled_visible" 0.0; \
164 inherit: "default" 0.0; \
165 color: 128 128 128 128; \
171 part { name: "elm.text"; \
175 description { state: "default" 0.0; \
181 to_x: "elm.swallow.content"; \
189 style: "check_label_textblock_style"; \
192 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
194 description { state: "visible" 0.0; \
195 inherit: "default" 0.0; \
199 description { state: "disabled" 0.0; \
200 inherit: "default" 0.0; \
202 description { state: "disabled_visible" 0.0; \
203 inherit: "default" 0.0; \
206 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
209 part { name: "events1"; \
211 ignore_flags: ON_HOLD; \
212 description { state: "default" 0.0; \
216 part { name: "events2"; \
219 description { state: "default" 0.0; \
223 part { name: "disabler"; \
225 description { state: "default" 0.0; \
229 description { state: "disabled" 0.0; \
230 inherit: "default" 0.0; \
236 program { name: "click"; \
237 signal: "mouse,clicked,1"; \
239 action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
241 program { name: "check_on"; \
242 signal: "elm,state,check,on"; \
245 set_int(check_state, CHECK_STATE_VISIBLE); \
246 set_state(PART:"check", "visible", 0.0); \
249 program { name: "check_off"; \
250 signal: "elm,state,check,off"; \
252 action: STATE_SET "default" 0.0; \
255 if (get_int(check_state) == CHECK_STATE_VISIBLE) \
257 set_int(check_state, CHECK_STATE_DEFAULT); \
258 set_state(PART:"check", "default", 0.0); \
262 program { name: "text_show"; \
263 signal: "elm,state,text,visible"; \
265 action: STATE_SET "visible" 0.0; \
266 target: "elm.text"; \
268 program { name: "text_hide"; \
269 signal: "elm,state,text,hidden"; \
271 action: STATE_SET "default" 0.0; \
272 target: "elm.text"; \
274 program { name: "icon_show"; \
275 signal: "elm,state,icon,visible"; \
277 action: STATE_SET "visible" 0.0; \
278 target: "elm.swallow.content"; \
280 program { name: "icon_hide"; \
281 signal: "elm,state,icon,hidden"; \
283 action: STATE_SET "default" 0.0; \
284 target: "elm.swallow.content"; \
286 program { name: "disable"; \
287 signal: "elm,state,disabled"; \
289 action: STATE_SET "disabled" 0.0; \
290 target: "disabler"; \
292 after: "disable_text"; \
294 program { name: "disable_text"; \
298 get_state(PART:"elm.text", st, 30, vl); \
299 if (!strcmp(st, "visible")) \
300 set_state(PART:"elm.text", "disabled_visible", 0.0); \
302 set_state(PART:"elm.text", "disabled", 0.0); \
303 get_state(PART:"elm.swallow.content", st, 30, vl); \
304 if (!strcmp(st, "visible")) \
305 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
307 set_state(PART:"elm.swallow.content", "disabled", 0.0); \
308 get_state(PART:"check", st, 30, vl); \
309 if (!strcmp(st, "visible")) \
311 set_state(PART:"check", "disabled_visible", 0.0); \
312 set_int(check_state, CHECK_STATE_DISABLED_VISIBLE); \
316 program { name: "enable"; \
317 signal: "elm,state,enabled"; \
319 action: STATE_SET "default" 0.0; \
320 target: "disabler"; \
322 after: "enable_text"; \
324 program { name: "enable_text"; \
328 get_state(PART:"elm.text", st, 30, vl); \
329 if (!strcmp(st, "disabled_visible")) \
330 set_state(PART:"elm.text", "visible", 0.0); \
332 set_state(PART:"elm.text", "default", 0.0); \
333 get_state(PART:"elm.swallow.content", st, 30, vl); \
334 if (!strcmp(st, "visible")) \
335 set_state(PART:"elm.swallow.content", "visible", 0.0); \
337 set_state(PART:"elm.swallow.content", "default", 0.0); \
338 get_state(PART:"check", st, 30, vl); \
339 if (!strcmp(st, "disabled_visible")) \
341 set_state(PART:"check", "visible", 0.0); \
342 set_int(check_state, CHECK_STATE_VISIBLE); \
345 set_int(check_state, CHECK_STATE_DEFAULT); \
351 ////////////////////////////////////////////////////////////////////////////////
352 CHECK_STYLE_DEFAULT("gallery/default", GALLERY_EDC_IMAGE_CHECK_BG, GALLERY_EDC_IMAGE_CHECK_BG_CHECKING, 42, 42)
354 ////////////////////////////////////////////////////////////////////////////////
355 CHECK_STYLE_DEFAULT("gallery/album", GALLERY_EDC_IMAGE_CHECK_ALBUM_BG, GALLERY_EDC_IMAGE_CHECK_BG_CHECKING, 42, 42)
357 ////////////////////////////////////////////////////////////////////////////////
358 #define CHECK_STYLE_GRID(style_name, image_grid, width, height) \
359 group { name: "elm/check/base/"style_name; \
360 images.image: image_grid COMP; \
365 description { state: "default" 0.0; \
368 description { state: "pressed" 0.0; \
369 inherit: "default" 0.0; \
371 description { state: "disabled" 0.0; \
372 inherit: "default" 0.0; \
376 part { name: "icon_bg_img"; \
382 rel1 { relative: GAP_SHADOW_L/W GAP_SHADOW_T/H; to: "bg"; } \
383 rel2 { relative: (W-GAP_SHADOW_R-1)/W (H+GAP_SHADOW_B-1)/H; to: "bg"; } \
386 part { name: "icon_bg"; \
388 description { state: "default" 0.0; \
390 rel1 { relative: GAP_ICON_L/SHADOW_W GAP_ICON_T/SHADOW_H; to: "icon_bg_img"; } \
391 rel2 { relative: (SHADOW_W-GAP_ICON_R+2)/SHADOW_W (SHADOW_H-GAP_ICON_B+1)/SHADOW_H; to: "icon_bg_img"; } \
394 part { name: "bg2"; \
398 description { state: "default" 0.0; \
399 rel1.to: "icon_bg"; \
400 rel2.to: "icon_bg"; \
406 description { state: "pressed" 0.0; \
407 inherit: "default" 0.0; \
409 description { state: "disabled" 0.0; \
410 inherit: "default" 0.0; \
414 part { name: "selected_bg"; \
417 description { state: "default" 0.0; \
418 rel1.to: "icon_bg"; \
419 rel2.to: "icon_bg"; \
423 description { state: "visible" 0.0; \
424 inherit: "default" 0.0; \
429 part { name: "check"; \
432 description { state: "default" 0.0; \
436 image.normal: image_grid; \
438 description { state: "visible" 0.0; \
439 inherit: "default" 0.0; \
442 description { state: "pressed" 0.0; \
443 inherit: "default" 0.0; \
446 description { state: "disabled_visible" 0.0; \
447 inherit: "default" 0.0; \
451 part { name: "elm.swallow.content"; \
454 state: "default" 0.0; \
457 color: 255 255 255 255; \
470 description { state: "visible" 0.0; \
471 inherit: "default" 0.0; \
475 aspect_preference: VERTICAL; \
477 description { state: "disabled" 0.0; \
478 inherit: "default" 0.0; \
479 color: 128 128 128 128; \
481 description { state: "disabled_visible" 0.0; \
482 inherit: "default" 0.0; \
483 color: 128 128 128 128; \
489 part { name: "elm.text"; \
493 description { state: "default" 0.0; \
499 to_x: "elm.swallow.content"; \
505 color: 255 255 255 255; \
508 style: "check_label_textblock_style"; \
511 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
513 description { state: "visible" 0.0; \
514 inherit: "default" 0.0; \
518 description { state: "disabled" 0.0; \
519 inherit: "default" 0.0; \
521 description { state: "disabled_visible" 0.0; \
522 inherit: "default" 0.0; \
525 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
528 part { name: "events"; \
530 ignore_flags: ON_HOLD; \
531 description { state: "default" 0.0; \
535 part { name: "disabler"; \
537 description { state: "default" 0.0; \
541 description { state: "disabled" 0.0; \
542 inherit: "default" 0.0; \
548 program { name: "click"; \
549 signal: "mouse,up,1"; \
551 action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
552 after: "bg_normal"; \
554 program { name: "bg_normal"; \
556 set_state(PART:"bg", "default", 0.0); \
557 set_state(PART:"bg2", "default", 0.0); \
560 program { name: "mouseout"; \
561 signal: "mouse,out"; \
563 after: "bg_check_normal"; \
565 program { name: "bg_check_normal"; \
569 get_state(PART:"check", st, 30, vl); \
570 if (!strcmp(st, "pressed")) \
571 set_state(PART:"check", "visible", 0.0); \
572 set_state(PART:"bg", "default", 0.0); \
573 set_state(PART:"bg2", "default", 0.0); \
576 program { name: "pressed"; \
577 signal: "mouse,down,1"; \
582 get_state(PART:"check", st, 30, vl); \
583 if (!strcmp(st, "visible")) \
584 set_state(PART:"check", "pressed", 0.0); \
585 set_state(PART:"bg", "pressed", 0.0); \
586 set_state(PART:"bg2", "pressed", 0.0); \
589 program { name: "check_on"; \
590 signal: "elm,state,check,on"; \
592 action: STATE_SET "visible" 0.0; \
594 target: "selected_bg"; \
596 program { name: "check_off"; \
597 signal: "elm,state,check,off"; \
599 action: STATE_SET "default" 0.0; \
601 target: "selected_bg"; \
603 program { name: "text_show"; \
604 signal: "elm,state,text,visible"; \
606 action: STATE_SET "visible" 0.0; \
607 target: "elm.text"; \
609 program { name: "text_hide"; \
610 signal: "elm,state,text,hidden"; \
612 action: STATE_SET "default" 0.0; \
613 target: "elm.text"; \
615 program { name: "icon_show"; \
616 signal: "elm,state,icon,visible"; \
618 action: STATE_SET "visible" 0.0; \
619 target: "elm.swallow.content"; \
621 program { name: "icon_hide"; \
622 signal: "elm,state,icon,hidden"; \
624 action: STATE_SET "default" 0.0; \
625 target: "elm.swallow.content"; \
627 program { name: "disable"; \
628 signal: "elm,state,disabled"; \
630 action: STATE_SET "disabled" 0.0; \
631 target: "disabler"; \
634 after: "disable_text"; \
636 program { name: "disable_text"; \
640 get_state(PART:"elm.text", st, 30, vl); \
641 if (!strcmp(st, "visible")) \
642 set_state(PART:"elm.text", "disabled_visible", 0.0); \
644 set_state(PART:"elm.text", "disabled", 0.0); \
645 get_state(PART:"elm.swallow.content", st, 30, vl); \
646 if (!strcmp(st, "visible")) \
647 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
649 set_state(PART:"elm.swallow.content", "disabled", 0.0); \
650 get_state(PART:"check", st, 30, vl); \
651 if (!strcmp(st, "visible")) \
652 set_state(PART:"check", "disabled_visible", 0.0); \
655 program { name: "enable"; \
656 signal: "elm,state,enabled"; \
658 action: STATE_SET "default" 0.0; \
659 target: "disabler"; \
662 after: "enable_text"; \
664 program { name: "enable_text"; \
668 get_state(PART:"elm.text", st, 30, vl); \
669 if (!strcmp(st, "disabled_visible")) \
670 set_state(PART:"elm.text", "visible", 0.0); \
672 set_state(PART:"elm.text", "default", 0.0); \
673 get_state(PART:"elm.swallow.content", st, 30, vl); \
674 if (!strcmp(st, "visible")) \
675 set_state(PART:"elm.swallow.content", "visible", 0.0); \
677 set_state(PART:"elm.swallow.content", "default", 0.0); \
678 get_state(PART:"check", st, 30, vl); \
679 if (!strcmp(st, "disabled_visible")) \
680 set_state(PART:"check", "visible", 0.0); \
686 ////////////////////////////////////////////////////////////////////////////////
687 CHECK_STYLE_GRID("gallery/grid", GALLERY_EDC_IMAGE_CHECK_GRID, 64, 64)
689 ////////////////////////////////////////////////////////////////////////////////
690 group { name: "elm/check/base/gallery/pinch/grid";
691 images.image: GALLERY_EDC_IMAGE_CHECK_PINCH_GRID COMP;
696 description { state: "default" 0.0;
699 description { state: "pressed" 0.0;
700 inherit: "default" 0.0;
702 description { state: "disabled" 0.0;
703 inherit: "default" 0.0;
707 part { name: "icon_bg";
710 state: "default" 0.0;
712 rel1 { relative: ZOOMED_GAP_L/ZOOMED_W ZOOMED_GAP_T/ZOOMED_H; to: "bg"; }
713 rel2 { relative: (ZOOMED_W-ZOOMED_GAP_R)/ZOOMED_W (ZOOMED_H-ZOOMED_GAP_B)/ZOOMED_H; to: "bg"; }
720 description { state: "default" 0.0;
728 description { state: "pressed" 0.0;
729 inherit: "default" 0.0;
731 description { state: "disabled" 0.0;
732 inherit: "default" 0.0;
736 part { name: "selected_bg";
739 description { state: "default" 0.0;
745 description { state: "visible" 0.0;
746 inherit: "default" 0.0;
751 part { name: "check";
754 description { state: "default" 0.0;
758 image.normal: GALLERY_EDC_IMAGE_CHECK_PINCH_GRID;
760 description { state: "visible" 0.0;
761 inherit: "default" 0.0;
764 description { state: "pressed" 0.0;
765 inherit: "default" 0.0;
768 description { state: "disabled_visible" 0.0;
769 inherit: "default" 0.0;
773 part { name: "elm.swallow.content";
776 state: "default" 0.0;
779 color: 255 255 255 255;
792 description { state: "visible" 0.0;
793 inherit: "default" 0.0;
797 aspect_preference: VERTICAL;
799 description { state: "disabled" 0.0;
800 inherit: "default" 0.0;
801 color: 128 128 128 128;
803 description { state: "disabled_visible" 0.0;
804 inherit: "default" 0.0;
805 color: 128 128 128 128;
811 part { name: "elm.text";
815 description { state: "default" 0.0;
821 to_x: "elm.swallow.content";
827 color: 255 255 255 255;
830 style: "check_label_textblock_style";
833 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
835 description { state: "visible" 0.0;
836 inherit: "default" 0.0;
840 description { state: "disabled" 0.0;
841 inherit: "default" 0.0;
843 description { state: "disabled_visible" 0.0;
844 inherit: "default" 0.0;
847 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
850 part { name: "events";
852 ignore_flags: ON_HOLD;
853 description { state: "default" 0.0;
857 part { name: "disabler";
859 description { state: "default" 0.0;
863 description { state: "disabled" 0.0;
864 inherit: "default" 0.0;
870 program { name: "click";
871 signal: "mouse,up,1";
873 action: SIGNAL_EMIT "elm,action,check,toggle" "";
876 program { name: "bg_normal";
878 set_state(PART:"bg", "default", 0.0);
879 set_state(PART:"bg2", "default", 0.0);
882 program { name: "mouseout";
885 after: "bg_check_normal";
887 program { name: "bg_check_normal";
891 get_state(PART:"check", st, 30, vl);
892 if (!strcmp(st, "pressed"))
893 set_state(PART:"check", "visible", 0.0);
894 set_state(PART:"bg", "default", 0.0);
895 set_state(PART:"bg2", "default", 0.0);
898 program { name: "pressed";
899 signal: "mouse,down,1";
904 get_state(PART:"check", st, 30, vl);
905 if (!strcmp(st, "visible"))
906 set_state(PART:"check", "pressed", 0.0);
907 set_state(PART:"bg", "pressed", 0.0);
908 set_state(PART:"bg2", "pressed", 0.0);
911 program { name: "check_on";
912 signal: "elm,state,check,on";
914 action: STATE_SET "visible" 0.0;
916 target: "selected_bg";
918 program { name: "check_off";
919 signal: "elm,state,check,off";
921 action: STATE_SET "default" 0.0;
923 target: "selected_bg";
925 program { name: "text_show";
926 signal: "elm,state,text,visible";
928 action: STATE_SET "visible" 0.0;
931 program { name: "text_hide";
932 signal: "elm,state,text,hidden";
934 action: STATE_SET "default" 0.0;
937 program { name: "icon_show";
938 signal: "elm,state,icon,visible";
940 action: STATE_SET "visible" 0.0;
941 target: "elm.swallow.content";
943 program { name: "icon_hide";
944 signal: "elm,state,icon,hidden";
946 action: STATE_SET "default" 0.0;
947 target: "elm.swallow.content";
949 program { name: "disable";
950 signal: "elm,state,disabled";
952 action: STATE_SET "disabled" 0.0;
956 after: "disable_text";
958 program { name: "disable_text";
962 get_state(PART:"elm.text", st, 30, vl);
963 if (!strcmp(st, "visible"))
964 set_state(PART:"elm.text", "disabled_visible", 0.0);
966 set_state(PART:"elm.text", "disabled", 0.0);
967 get_state(PART:"elm.swallow.content", st, 30, vl);
968 if (!strcmp(st, "visible"))
969 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
971 set_state(PART:"elm.swallow.content", "disabled", 0.0);
972 get_state(PART:"check", st, 30, vl);
973 if (!strcmp(st, "visible"))
974 set_state(PART:"check", "disabled_visible", 0.0);
977 program { name: "enable";
978 signal: "elm,state,enabled";
980 action: STATE_SET "default" 0.0;
984 after: "enable_text";
986 program { name: "enable_text";
990 get_state(PART:"elm.text", st, 30, vl);
991 if (!strcmp(st, "disabled_visible"))
992 set_state(PART:"elm.text", "visible", 0.0);
994 set_state(PART:"elm.text", "default", 0.0);
995 get_state(PART:"elm.swallow.content", st, 30, vl);
996 if (!strcmp(st, "visible"))
997 set_state(PART:"elm.swallow.content", "visible", 0.0);
999 set_state(PART:"elm.swallow.content", "default", 0.0);
1000 get_state(PART:"check", st, 30, vl);
1001 if (!strcmp(st, "disabled_visible"))
1002 set_state(PART:"check", "visible", 0.0);
1008 ////////////////////////////////////////////////////////////////////////////////
1009 group { name: "elm/check/base/gallery/album/grid";
1014 description { state: "default" 0.0;
1017 description { state: "pressed" 0.0;
1018 inherit: "default" 0.0;
1020 description { state: "disabled" 0.0;
1021 inherit: "default" 0.0;
1029 description { state: "default" 0.0;
1037 description { state: "pressed" 0.0;
1038 inherit: "default" 0.0;
1040 description { state: "disabled" 0.0;
1041 inherit: "default" 0.0;
1045 part { name: "selected_bg";
1048 description { state: "default" 0.0;
1054 description { state: "visible" 0.0;
1055 inherit: "default" 0.0;
1060 part { name: "check";
1064 description { state: "default" 0.0;
1070 description { state: "visible" 0.0;
1071 inherit: "default" 0.0;
1073 description { state: "pressed" 0.0;
1074 inherit: "default" 0.0;
1076 description { state: "disabled_visible" 0.0;
1077 inherit: "default" 0.0;
1080 part { name: "elm.swallow.content";
1083 state: "default" 0.0;
1086 color: 255 255 255 255;
1099 description { state: "visible" 0.0;
1100 inherit: "default" 0.0;
1104 aspect_preference: VERTICAL;
1106 description { state: "disabled" 0.0;
1107 inherit: "default" 0.0;
1108 color: 128 128 128 128;
1110 description { state: "disabled_visible" 0.0;
1111 inherit: "default" 0.0;
1112 color: 128 128 128 128;
1118 part { name: "elm.text";
1122 description { state: "default" 0.0;
1128 to_x: "elm.swallow.content";
1134 color: 255 255 255 255;
1137 style: "check_label_textblock_style";
1140 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
1142 description { state: "visible" 0.0;
1143 inherit: "default" 0.0;
1147 description { state: "disabled" 0.0;
1148 inherit: "default" 0.0;
1150 description { state: "disabled_visible" 0.0;
1151 inherit: "default" 0.0;
1154 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
1157 part { name: "events";
1159 ignore_flags: ON_HOLD;
1160 description { state: "default" 0.0;
1164 part { name: "disabler";
1166 description { state: "default" 0.0;
1170 description { state: "disabled" 0.0;
1171 inherit: "default" 0.0;
1177 program { name: "click";
1178 signal: "mouse,up,1";
1180 action: SIGNAL_EMIT "elm,action,check,toggle" "";
1183 program { name: "bg_normal";
1185 set_state(PART:"bg", "default", 0.0);
1186 set_state(PART:"bg2", "default", 0.0);
1189 program { name: "mouseout";
1190 signal: "mouse,out";
1192 after: "bg_check_normal";
1194 program { name: "bg_check_normal";
1198 get_state(PART:"check", st, 30, vl);
1199 if (!strcmp(st, "pressed"))
1200 set_state(PART:"check", "visible", 0.0);
1201 set_state(PART:"bg", "default", 0.0);
1202 set_state(PART:"bg2", "default", 0.0);
1205 program { name: "pressed";
1206 signal: "mouse,down,1";
1211 get_state(PART:"check", st, 30, vl);
1212 if (!strcmp(st, "visible"))
1213 set_state(PART:"check", "pressed", 0.0);
1214 set_state(PART:"bg", "pressed", 0.0);
1215 set_state(PART:"bg2", "pressed", 0.0);
1218 program { name: "check_on";
1219 signal: "elm,state,check,on";
1221 action: STATE_SET "visible" 0.0;
1223 target: "selected_bg";
1225 program { name: "check_off";
1226 signal: "elm,state,check,off";
1228 action: STATE_SET "default" 0.0;
1230 target: "selected_bg";
1232 program { name: "text_show";
1233 signal: "elm,state,text,visible";
1235 action: STATE_SET "visible" 0.0;
1238 program { name: "text_hide";
1239 signal: "elm,state,text,hidden";
1241 action: STATE_SET "default" 0.0;
1244 program { name: "icon_show";
1245 signal: "elm,state,icon,visible";
1247 action: STATE_SET "visible" 0.0;
1248 target: "elm.swallow.content";
1250 program { name: "icon_hide";
1251 signal: "elm,state,icon,hidden";
1253 action: STATE_SET "default" 0.0;
1254 target: "elm.swallow.content";
1256 program { name: "disable";
1257 signal: "elm,state,disabled";
1259 action: STATE_SET "disabled" 0.0;
1263 after: "disable_text";
1265 program { name: "disable_text";
1269 get_state(PART:"elm.text", st, 30, vl);
1270 if (!strcmp(st, "visible"))
1271 set_state(PART:"elm.text", "disabled_visible", 0.0);
1273 set_state(PART:"elm.text", "disabled", 0.0);
1274 get_state(PART:"elm.swallow.content", st, 30, vl);
1275 if (!strcmp(st, "visible"))
1276 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
1278 set_state(PART:"elm.swallow.content", "disabled", 0.0);
1279 get_state(PART:"check", st, 30, vl);
1280 if (!strcmp(st, "visible"))
1281 set_state(PART:"check", "disabled_visible", 0.0);
1284 program { name: "enable";
1285 signal: "elm,state,enabled";
1287 action: STATE_SET "default" 0.0;
1291 after: "enable_text";
1293 program { name: "enable_text";
1297 get_state(PART:"elm.text", st, 30, vl);
1298 if (!strcmp(st, "disabled_visible"))
1299 set_state(PART:"elm.text", "visible", 0.0);
1301 set_state(PART:"elm.text", "default", 0.0);
1302 get_state(PART:"elm.swallow.content", st, 30, vl);
1303 if (!strcmp(st, "visible"))
1304 set_state(PART:"elm.swallow.content", "visible", 0.0);
1306 set_state(PART:"elm.swallow.content", "default", 0.0);
1307 get_state(PART:"check", st, 30, vl);
1308 if (!strcmp(st, "disabled_visible"))
1309 set_state(PART:"check", "visible", 0.0);
1315 #undef CHECK_STATE_DEFAULT
1316 #undef CHECK_STATE_VISIBLE
1317 #undef CHECK_STATE_DISABLED_VISIBLE
1318 #undef CHECK_STATE_DISABLED