4 * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd.
6 * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>,
7 * Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>,
8 * Hyunsil Park <hyunsil.park@samsung.com>, Sohyun Kim <anna1014.kim@samsung.com>, Seunggyun Kim <sgyun.kim@samsung.com>
10 * This library is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU Lesser General Public License as published by the
12 * Free Software Foundation; either version 2.1 of the License, or (at your option)
15 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this library; if not, write to the Free Software Foundation, Inc., 51
22 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 #define CHECK_STATE_DEFAULT 0
26 #define CHECK_STATE_VISIBLE 1
27 #define CHECK_STATE_DISABLED_VISIBLE 2
28 #define CHECK_STATE_DISABLED 3
29 ////////////////////////////////////////////////////////////////////////////////
30 #define CHECK_STYLE_DEFAULT(style_name, min_width, min_height) \
31 group { name: "elm/check/base/"style_name; \
33 image: "00_check_bg.png" COMP; \
34 image: "00_check_bg_dim.png" COMP; \
35 image: "00_check_checking.png" COMP; \
38 public check_state = CHECK_STATE_DEFAULT; \
41 part { name: "back_bg"; \
45 description { state: "default" 0.0; \
46 rel2.relative: 0.0 1.0; \
48 min: min_width min_height; \
57 description { state: "default" 0.0; \
61 rel1{ to: "back_bg"; } \
62 rel2{ to: "back_bg"; } \
66 normal: "00_check_bg.png"; \
70 description { state: "disabled" 0.0; \
71 inherit: "default" 0.0; \
73 normal: "00_check_bg_dim.png"; \
78 part { name: "check"; \
81 description { state: "default" 0.0; \
86 description { state: "visible" 0.0; \
87 inherit: "default" 0.0; \
89 image.normal: "00_check_checking.png"; \
91 description { state: "disabled_visible" 0.0; \
92 inherit: "visible" 0.0; \
96 part { name: "elm.swallow.content"; \
98 description { state: "default" 0.0; \
101 color: 255 255 255 255; \
104 rel1.relative: 1.0 0.0; \
107 rel2.relative: 1.0 1.0; \
110 description { state: "visible" 0.0; \
111 inherit: "default" 0.0; \
115 aspect_preference: VERTICAL; \
117 description { state: "disabled" 0.0; \
118 inherit: "default" 0.0; \
119 color: 128 128 128 128; \
121 description { state: "disabled_visible" 0.0; \
122 inherit: "default" 0.0; \
123 color: 128 128 128 128; \
129 part { name: "elm.text"; \
133 description { state: "default" 0.0; \
136 rel1 { relative: 1.0 0.5; offset: 1 1; to_x: "elm.swallow.content"; } \
137 rel2 { relative: 1.0 0.5; offset: -2 -2; } \
140 style: "check_label_textblock_style"; \
143 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
145 description { state: "visible" 0.0; \
146 inherit: "default" 0.0; \
150 description { state: "disabled" 0.0; \
151 inherit: "default" 0.0; \
153 description { state: "disabled_visible" 0.0; \
154 inherit: "default" 0.0; \
157 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
160 part { name: "events1"; \
162 ignore_flags: ON_HOLD; \
163 description { state: "default" 0.0; \
167 part { name: "events2"; \
170 description { state: "default" 0.0; \
174 part { name: "disabler"; \
176 description { state: "default" 0.0; \
180 description { state: "disabled" 0.0; \
181 inherit: "default" 0.0; \
187 program { name: "click"; \
188 signal: "mouse,clicked,1"; \
190 action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
192 program { name: "check_on"; \
193 signal: "elm,state,check,on"; \
196 set_int(check_state, CHECK_STATE_VISIBLE); \
197 set_state(PART:"check", "visible", 0.0); \
200 program { name: "check_off"; \
201 signal: "elm,state,check,off"; \
203 action: STATE_SET "default" 0.0; \
206 if(get_int(check_state) == CHECK_STATE_VISIBLE) \
208 set_int(check_state, CHECK_STATE_DEFAULT); \
209 set_state(PART:"check", "default", 0.0); \
213 program { name: "text_show"; \
214 signal: "elm,state,text,visible"; \
216 action: STATE_SET "visible" 0.0; \
217 target: "elm.text"; \
219 program { name: "text_hide"; \
220 signal: "elm,state,text,hidden"; \
222 action: STATE_SET "default" 0.0; \
223 target: "elm.text"; \
225 program { name: "icon_show"; \
226 signal: "elm,state,icon,visible"; \
228 action: STATE_SET "visible" 0.0; \
229 target: "elm.swallow.content"; \
231 program { name: "icon_hide"; \
232 signal: "elm,state,icon,hidden"; \
234 action: STATE_SET "default" 0.0; \
235 target: "elm.swallow.content"; \
237 program { name: "disable"; \
238 signal: "elm,state,disabled"; \
240 action: STATE_SET "disabled" 0.0; \
241 target: "disabler"; \
243 after: "disable_text"; \
245 program { name: "disable_text"; \
249 get_state(PART:"elm.text", st, 30, vl); \
250 if (!strcmp(st, "visible")) \
251 set_state(PART:"elm.text", "disabled_visible", 0.0); \
253 set_state(PART:"elm.text", "disabled", 0.0); \
254 get_state(PART:"elm.swallow.content", st, 30, vl); \
255 if (!strcmp(st, "visible")) \
256 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
258 set_state(PART:"elm.swallow.content", "disabled", 0.0); \
259 get_state(PART:"check", st, 30, vl); \
260 if (!strcmp(st, "visible")) \
262 set_state(PART:"check", "disabled_visible", 0.0); \
263 set_int(check_state, CHECK_STATE_DISABLED_VISIBLE); \
267 program { name: "enable"; \
268 signal: "elm,state,enabled"; \
270 action: STATE_SET "default" 0.0; \
271 target: "disabler"; \
273 after: "enable_text"; \
275 program { name: "enable_text"; \
279 get_state(PART:"elm.text", st, 30, vl); \
280 if (!strcmp(st, "disabled_visible")) \
281 set_state(PART:"elm.text", "visible", 0.0); \
283 set_state(PART:"elm.text", "default", 0.0); \
284 get_state(PART:"elm.swallow.content", st, 30, vl); \
285 if (!strcmp(st, "visible")) \
286 set_state(PART:"elm.swallow.content", "visible", 0.0); \
288 set_state(PART:"elm.swallow.content", "default", 0.0); \
289 get_state(PART:"check", st, 30, vl); \
290 if (!strcmp(st, "disabled_visible")) \
292 set_state(PART:"check", "visible", 0.0); \
293 set_int(check_state, CHECK_STATE_VISIBLE); \
296 set_int(check_state, CHECK_STATE_DEFAULT); \
301 ////////////////////////////////////////////////////////////////////////////////
302 CHECK_STYLE_DEFAULT("default", 26, 26)
304 ////////////////////////////////////////////////////////////////////////////////
305 CHECK_STYLE_DEFAULT("default/extended", 60, 75)
307 ////////////////////////////////////////////////////////////////////////////////
308 group { name: "elm/check/base/multicheck";
310 image: "00_check_bg.png" COMP;
311 image: "00_check_bg_press.png" COMP;
312 image: "00_check_bg_dim.png" COMP;
313 image: "multicheck_0001.png" COMP;
314 image: "multicheck_0002.png" COMP;
315 image: "multicheck_0003.png" COMP;
316 image: "multicheck_0004.png" COMP;
317 image: "multicheck_0005.png" COMP;
318 image: "multicheck_0006.png" COMP;
319 image: "00_check_checking_dim.png" COMP;
322 public check_state = 0; //0:default, 1: visible, 2: disabled_visible
328 description { state: "default" 0.0;
329 rel2.relative: 0.0 1.0;
334 aspect_preference: VERTICAL;
337 normal: "00_check_bg.png";
341 description { state: "pressed" 0.0;
342 inherit: "default" 0.0;
344 normal: "00_check_bg_press.png";
348 description { state: "disabled" 0.0;
349 inherit: "default" 0.0;
351 normal: "00_check_bg_dim.png";
356 part { name: "check";
359 description { state: "default" 0.0;
364 description { state: "visible_1" 0.0;
365 inherit: "default" 0.0;
367 image.normal: "multicheck_0001.png";
369 description { state: "visible_2" 0.0;
370 inherit: "default" 0.0;
372 image.normal: "multicheck_0002.png";
374 description { state: "visible_3" 0.0;
375 inherit: "default" 0.0;
377 image.normal: "multicheck_0003.png";
379 description { state: "visible_4" 0.0;
380 inherit: "default" 0.0;
382 image.normal: "multicheck_0004.png";
384 description { state: "visible_5" 0.0;
385 inherit: "default" 0.0;
387 image.normal: "multicheck_0005.png";
389 description { state: "visible" 0.0;
390 inherit: "default" 0.0;
392 image.normal: "multicheck_0006.png";
394 description { state: "pressed" 0.0;
395 inherit: "default" 0.0;
397 image.normal: "multicheck_0006.png";
399 description { state: "disabled_visible" 0.0;
400 inherit: "default" 0.0;
401 image.normal: "00_check_checking_dim.png";
405 part { name: "elm.swallow.content";
407 description { state: "default" 0.0;
410 color: 255 255 255 255;
413 rel1.relative: 1.0 0.0;
416 rel2.relative: 1.0 1.0;
419 description { state: "visible" 0.0;
420 inherit: "default" 0.0;
424 aspect_preference: VERTICAL;
426 description { state: "disabled" 0.0;
427 inherit: "default" 0.0;
428 color: 128 128 128 128;
430 description { state: "disabled_visible" 0.0;
431 inherit: "default" 0.0;
432 color: 128 128 128 128;
438 part { name: "elm.text";
442 description { state: "default" 0.0;
445 rel1 { relative: 1.0 0.5; offset: 1 1; to_x: "elm.swallow.content"; }
446 rel2 { relative: 1.0 0.5; offset: -2 -2; }
449 style: "check_label_textblock_style";
452 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
454 description { state: "visible" 0.0;
455 inherit: "default" 0.0;
459 description { state: "disabled" 0.0;
460 inherit: "default" 0.0;
462 description { state: "disabled_visible" 0.0;
463 inherit: "default" 0.0;
466 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
469 part { name: "events1";
471 ignore_flags: ON_HOLD;
472 description { state: "default" 0.0;
476 part { name: "events2";
479 description { state: "default" 0.0;
483 part { name: "disabler";
485 description { state: "default" 0.0;
489 description { state: "disabled" 0.0;
490 inherit: "default" 0.0;
496 program { name: "click";
497 signal: "mouse,clicked,1";
499 action: SIGNAL_EMIT "elm,action,check,toggle" "";
501 program { name: "bg_normal";
502 signal: "mouse,up,1";
507 get_state(PART:"check", st, 30, vl);
508 if (!strcmp(st, "pressed"))
509 set_state(PART:"check", "visible", 0.0);
510 set_state(PART:"bg", "default", 0.0);
513 program { name: "pressed";
514 signal: "mouse,down,1";
519 get_state(PART:"check", st, 30, vl);
520 if (!strcmp(st, "default"))
521 set_state(PART:"check", "pressed", 0.0);
523 set_state(PART:"check", "default", 0.0);
525 set_state(PART:"bg", "pressed", 0.0);
528 program { name: "mouse,out";
532 if(get_int(check_state) == 1)
533 set_state(PART:"check", "visible", 0.0);
535 set_state(PART:"check", "default", 0.0);
538 program { name: "check_on";
539 signal: "elm,state,check,on";
542 set_int(check_state, 1);
546 program { name: "check_on_1";
549 if(get_int(check_state) == 1)
550 set_state(PART:"check", "visible_1", 0.0);
554 program { name: "check_on_2";
557 if(get_int(check_state) == 1)
558 set_state(PART:"check", "visible_2", 0.0);
562 program { name: "check_on_3";
565 if(get_int(check_state) == 1)
566 set_state(PART:"check", "visible_3", 0.0);
570 program { name: "check_on_4";
573 if(get_int(check_state) == 1)
574 set_state(PART:"check", "visible_4", 0.0);
578 program { name: "check_on_5";
581 if(get_int(check_state) == 1)
582 set_state(PART:"check", "visible_5", 0.0);
586 program { name: "check_on_6";
589 if(get_int(check_state) == 1)
590 set_state(PART:"check", "visible", 0.0);
593 program { name: "check_off";
594 signal: "elm,state,check,off";
596 action: STATE_SET "default" 0.0;
599 if(get_int(check_state) == 1)
601 set_int(check_state, 0);
602 set_state(PART:"check", "default", 0.0);
606 program { name: "text_show";
607 signal: "elm,state,text,visible";
609 action: STATE_SET "visible" 0.0;
612 program { name: "text_hide";
613 signal: "elm,state,text,hidden";
615 action: STATE_SET "default" 0.0;
618 program { name: "icon_show";
619 signal: "elm,state,icon,visible";
621 action: STATE_SET "visible" 0.0;
622 target: "elm.swallow.content";
624 program { name: "icon_hide";
625 signal: "elm,state,icon,hidden";
627 action: STATE_SET "default" 0.0;
628 target: "elm.swallow.content";
630 program { name: "disable";
631 signal: "elm,state,disabled";
633 action: STATE_SET "disabled" 0.0;
636 after: "disable_text";
638 program { name: "disable_text";
642 get_state(PART:"elm.text", st, 30, vl);
643 if (!strcmp(st, "visible"))
644 set_state(PART:"elm.text", "disabled_visible", 0.0);
646 set_state(PART:"elm.text", "disabled", 0.0);
648 get_state(PART:"elm.swallow.content", st, 30, vl);
649 if (!strcmp(st, "visible"))
650 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
652 set_state(PART:"elm.swallow.content", "disabled", 0.0);
654 get_state(PART:"check", st, 30, vl);
655 if (!strcmp(st, "visible"))
656 set_state(PART:"check", "disabled_visible", 0.0);
657 set_int(check_state, 2);
660 program { name: "enable";
661 signal: "elm,state,enabled";
663 action: STATE_SET "default" 0.0;
666 after: "enable_text";
668 program { name: "enable_text";
672 get_state(PART:"elm.text", st, 30, vl);
673 if (!strcmp(st, "disabled_visible"))
674 set_state(PART:"elm.text", "visible", 0.0);
676 set_state(PART:"elm.text", "default", 0.0);
678 get_state(PART:"elm.swallow.content", st, 30, vl);
679 if (!strcmp(st, "visible"))
680 set_state(PART:"elm.swallow.content", "visible", 0.0);
682 set_state(PART:"elm.swallow.content", "default", 0.0);
684 get_state(PART:"check", st, 30, vl);
685 if (!strcmp(st, "disabled_visible"))
687 set_state(PART:"check", "visible", 0.0);
688 set_int(check_state, 1);
691 set_int(check_state, 0);
697 ////////////////////////////////////////////////////////////////////////////////
698 group { name: "elm/check/base/on&off";
700 image: "00_check_off.png" COMP;
701 //image: "00_check_off_press.png" COMP;
702 image: "00_check_on.png" COMP;
703 //image: "00_check_on_press.png" COMP;
711 description { state: "default" 0.0;
712 rel2.relative: 0.0 1.0;
720 part { name: "check";
723 description { state: "default" 0.0;
728 normal: "00_check_off.png";
733 description { state: "visible" 0.0;
734 inherit: "default" 0.0;
736 normal: "00_check_on.png";
739 description { state: "pressed" 0.0;
740 inherit: "default" 0.0;
742 normal: "00_check_off.png";
745 description { state: "visible_pressed" 0.0;
746 inherit: "default" 0.0;
748 normal: "00_check_on.png";
752 part { name: "text_onoff";
756 description { state: "default" 0.0;
760 rel2.relative: 0.85 1.0;
762 font: "SLP:style=Medium";
769 description { state: "on" 0.0;
770 inherit: "default" 0.0;
771 rel1.relative: 0.15 0.0;
773 font: "SLP:style=Medium";
781 part { name: "elm.swallow.content";
783 description { state: "default" 0.0;
786 color: 255 255 255 255;
789 rel1.relative: 1.0 0.0;
792 rel2.relative: 1.0 1.0;
795 description { state: "visible" 0.0;
796 inherit: "default" 0.0;
800 aspect_preference: VERTICAL;
802 description { state: "disabled" 0.0;
803 inherit: "default" 0.0;
804 color: 128 128 128 128;
806 description { state: "disabled_visible" 0.0;
807 inherit: "default" 0.0;
808 color: 128 128 128 128;
814 part { name: "elm.text";
818 description { state: "default" 0.0;
821 rel1 { relative: 1.0 0.5; offset: 1 1; to_x: "elm.swallow.content"; }
822 rel2 { relative: 1.0 0.5; offset: -2 -2; }
823 color: 255 255 255 255;
826 style: "check_label_textblock_style";
829 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
831 description { state: "visible" 0.0;
832 inherit: "default" 0.0;
836 description { state: "disabled" 0.0;
837 inherit: "default" 0.0;
839 description { state: "disabled_visible" 0.0;
840 inherit: "default" 0.0;
843 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
846 part { name: "events";
848 ignore_flags: ON_HOLD;
849 description { state: "default" 0.0;
853 part { name: "disabler";
855 description { state: "default" 0.0;
859 description { state: "disabled" 0.0;
860 inherit: "default" 0.0;
867 program { name: "click";
868 signal: "mouse,up,1";
870 action: SIGNAL_EMIT "elm,action,check,toggle" "";
872 program { name: "pressed";
873 signal: "mouse,down,1";
878 get_state(PART:"check", st, 30, vl);
879 if (!strcmp(st, "visible"))
880 set_state(PART:"check", "visible_pressed", 0.0);
881 else if (!strcmp(st, "default"))
882 set_state(PART:"check", "pressed", 0.0);
885 program { name: "mouseout";
888 after: "bg_check_normal";
890 program { name: "bg_check_normal";
894 get_state(PART:"check", st, 30, vl);
895 if (!strcmp(st, "pressed"))
896 set_state(PART:"check", "default", 0.0);
897 else if (!strcmp(st, "visible_pressed"))
898 set_state(PART:"check", "visible", 0.0);
901 program { name: "check_on";
902 signal: "elm,state,check,on";
904 action: STATE_SET "visible" 0.0;
908 program { name: "text_on";
909 action: STATE_SET "on" 0.0;
910 target: "text_onoff";
912 program { name: "check_off";
913 signal: "elm,state,check,off";
915 action: STATE_SET "default" 0.0;
919 program { name: "text_off";
920 action: STATE_SET "default" 0.0;
921 target: "text_onoff";
923 program { name: "text_show";
924 signal: "elm,state,text,visible";
926 action: STATE_SET "visible" 0.0;
929 program { name: "text_hide";
930 signal: "elm,state,text,hidden";
932 action: STATE_SET "default" 0.0;
935 program { name: "icon_show";
936 signal: "elm,state,icon,visible";
938 action: STATE_SET "visible" 0.0;
939 target: "elm.swallow.content";
941 program { name: "icon_hide";
942 signal: "elm,state,icon,hidden";
944 action: STATE_SET "default" 0.0;
945 target: "elm.swallow.content";
947 program { name: "disable";
948 signal: "elm,state,disabled";
950 action: STATE_SET "disabled" 0.0;
952 after: "disable_text";
954 program { name: "disable_text";
958 get_state(PART:"elm.text", st, 30, vl);
959 if (!strcmp(st, "visible"))
960 set_state(PART:"elm.text", "disabled_visible", 0.0);
962 set_state(PART:"elm.text", "disabled", 0.0);
963 get_state(PART:"elm.swallow.content", st, 30, vl);
964 if (!strcmp(st, "visible"))
965 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
967 set_state(PART:"elm.swallow.content", "disabled", 0.0);
970 program { name: "enable";
971 signal: "elm,state,enabled";
973 action: STATE_SET "default" 0.0;
975 after: "enable_text";
977 program { name: "enable_text";
981 get_state(PART:"elm.text", st, 30, vl);
982 if (!strcmp(st, "disabled_visible"))
983 set_state(PART:"elm.text", "visible", 0.0);
985 set_state(PART:"elm.text", "default", 0.0);
987 get_state(PART:"elm.swallow.content", st, 30, vl);
988 if (!strcmp(st, "visible"))
989 set_state(PART:"elm.swallow.content", "visible", 0.0);
991 set_state(PART:"elm.swallow.content", "default", 0.0);
997 ///////////////////////////////////////////////////////////////////////////////////////
998 #define CHECK_STYLE_FAVORITE(style_name, min_width, min_height) \
999 group { name: "elm/check/base/"style_name; \
1001 image: "00_winset_icon_favorite_off.png" COMP; \
1002 image: "00_winset_icon_favorite_on.png" COMP; \
1005 part { name: "back_bg"; \
1009 description { state: "default" 0.0; \
1010 rel2.relative: 0.0 1.0; \
1012 min: min_width min_height; \
1018 part { name: "bg"; \
1022 description { state: "default" 0.0; \
1023 rel2.relative: 1.0 1.0; \
1025 rel1 { to: "back_bg"; } \
1026 rel2 { to: "back_bg"; } \
1033 part { name: "check"; \
1036 description { state: "default" 0.0; \
1040 image.normal: "00_winset_icon_favorite_off.png"; \
1041 color: 255 255 255 255; \
1043 description { state: "visible" 0.0; \
1044 inherit: "default" 0.0; \
1046 image.normal: "00_winset_icon_favorite_on.png"; \
1048 description { state: "disabled" 0.0; \
1049 inherit: "default" 0.0; \
1050 image.normal: "00_winset_icon_favorite_off.png"; \
1051 color: 128 128 128 255; \
1054 description { state: "disabled_visible" 0.0; \
1055 inherit: "default" 0.0; \
1056 image.normal: "00_winset_icon_favorite_on.png"; \
1057 color: 128 128 128 255; \
1061 part { name: "elm.swallow.content"; \
1063 description { state: "default" 0.0; \
1066 color: 255 255 255 255; \
1069 rel1.relative: 1.0 0.0; \
1072 rel2.relative: 1.0 1.0; \
1073 rel2.offset: 2 -2; \
1075 description { state: "visible" 0.0; \
1076 inherit: "default" 0.0; \
1080 aspect_preference: VERTICAL; \
1082 description { state: "disabled" 0.0; \
1083 inherit: "default" 0.0; \
1084 color: 128 128 128 128; \
1086 description { state: "disabled_visible" 0.0; \
1087 inherit: "default" 0.0; \
1088 color: 128 128 128 128; \
1094 part { name: "elm.text"; \
1098 description { state: "default" 0.0; \
1101 rel1 { relative: 1.0 0.5; offset: 1 1; to_x: "elm.swallow.content"; } \
1102 rel2 { relative: 1.0 0.5; offset: -2 -2; } \
1105 style: "check_label_textblock_style"; \
1108 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
1110 description { state: "visible" 0.0; \
1111 inherit: "default" 0.0; \
1115 description { state: "disabled" 0.0; \
1116 inherit: "default" 0.0; \
1118 description { state: "disabled_visible" 0.0; \
1119 inherit: "default" 0.0; \
1122 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
1125 part { name: "events"; \
1127 ignore_flags: ON_HOLD; \
1128 description { state: "default" 0.0; \
1132 part { name: "disabler"; \
1134 description { state: "default" 0.0; \
1138 description { state: "disabled" 0.0; \
1139 inherit: "default" 0.0; \
1145 program { name: "click"; \
1146 signal: "mouse,up,1"; \
1148 action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
1150 program { name: "check_on"; \
1151 signal: "elm,state,check,on"; \
1153 action: STATE_SET "visible" 0.0; \
1156 program { name: "check_off"; \
1157 signal: "elm,state,check,off"; \
1159 action: STATE_SET "default" 0.0; \
1162 program { name: "text_show"; \
1163 signal: "elm,state,text,visible"; \
1165 action: STATE_SET "visible" 0.0; \
1166 target: "elm.text"; \
1168 program { name: "text_hide"; \
1169 signal: "elm,state,text,hidden"; \
1171 action: STATE_SET "default" 0.0; \
1172 target: "elm.text"; \
1174 program { name: "icon_show"; \
1175 signal: "elm,state,icon,visible"; \
1177 action: STATE_SET "visible" 0.0; \
1178 target: "elm.swallow.content"; \
1180 program { name: "icon_hide"; \
1181 signal: "elm,state,icon,hidden"; \
1183 action: STATE_SET "default" 0.0; \
1184 target: "elm.swallow.content"; \
1186 program { name: "disable"; \
1187 signal: "elm,state,disabled"; \
1189 action: STATE_SET "disabled" 0.0; \
1190 target: "disabler"; \
1191 after: "disable_text"; \
1193 program { name: "disable_text"; \
1197 get_state(PART:"elm.text", st, 30, vl); \
1198 if (!strcmp(st, "visible")) \
1199 set_state(PART:"elm.text", "disabled_visible", 0.0); \
1201 set_state(PART:"elm.text", "disabled", 0.0); \
1202 get_state(PART:"elm.swallow.content", st, 30, vl); \
1203 if (!strcmp(st, "visible")) \
1204 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
1206 set_state(PART:"elm.swallow.content", "disabled", 0.0); \
1207 get_state(PART:"check", st, 30, vl); \
1208 if (!strcmp(st, "visible")) \
1209 set_state(PART:"check", "disabled_visible", 0.0); \
1211 set_state(PART:"check", "disabled", 0.0); \
1214 program { name: "enable"; \
1215 signal: "elm,state,enabled"; \
1217 action: STATE_SET "default" 0.0; \
1218 target: "disabler"; \
1219 after: "enable_text"; \
1221 program { name: "enable_text"; \
1225 get_state(PART:"elm.text", st, 30, vl); \
1226 if (!strcmp(st, "disabled_visible")) \
1227 set_state(PART:"elm.text", "visible", 0.0); \
1229 set_state(PART:"elm.text", "default", 0.0); \
1230 get_state(PART:"elm.swallow.content", st, 30, vl); \
1231 if (!strcmp(st, "visible")) \
1232 set_state(PART:"elm.swallow.content", "visible", 0.0); \
1234 set_state(PART:"elm.swallow.content", "default", 0.0); \
1235 get_state(PART:"check", st, 30, vl); \
1236 if (!strcmp(st, "disabled_visible")) \
1237 set_state(PART:"check", "visible", 0.0); \
1239 set_state(PART:"check", "default", 0.0); \
1244 ////////////////////////////////////////////////////////////////////////////////
1245 CHECK_STYLE_FAVORITE("favorite", 40, 40)
1247 ////////////////////////////////////////////////////////////////////////////////
1248 CHECK_STYLE_FAVORITE("favorite/extended", 60, 75)
1250 ////////////////////////////////////////////////////////////////////////////////
1251 group { name: "elm/check/base/delete";
1253 image: "00_button_delete.png" COMP;
1254 image: "00_button_delete_press.png" COMP;
1255 image: "00_button_delete_dim.png" COMP;
1256 image: "00_button_delete_text.png" COMP;
1257 image: "00_button_delete_text_press.png" COMP;
1260 public button_state = 0; //0:enabled, 1: disabled
1268 description { state: "default" 0.0;
1272 rel1.relative: 1.0 0.0;
1274 image.normal: "00_button_delete.png";
1276 description { state: "clicked" 0.0;
1277 inherit: "default" 0.0;
1278 image.normal: "00_button_delete_press.png";
1280 description { state: "intermediate" 0.0;
1281 inherit: "default" 0.0;
1284 description { state: "on" 0.0;
1285 inherit: "default" 0.0;
1288 description { state: "disabled" 0.0;
1289 inherit: "default" 0.0;
1290 image.normal: "00_button_delete_dim.png";
1298 description { state: "default" 0.0;
1302 color: 255 255 255 255;
1304 description { state: "on" 0.0;
1308 color: 255 255 255 255;
1317 description { state: "default" 0.0;
1321 image.normal: "00_button_delete_text.png";
1322 image.border: 32 16 0 0;
1323 image.border_scale: 1;
1324 rel1 { relative: 1 0; to_x: "bg"; }
1325 rel2 { relative: 1 1; to_x: "bg"; }
1328 description { state: "clicked" 0.0;
1332 image.normal: "00_button_delete_text.png";
1333 image.border: 32 16 0 0;
1334 image.border_scale: 1;
1335 rel1 { relative: 1 0; to_x: "bg"; }
1336 rel2 { relative: 1 1; to_x: "bg"; }
1338 image.normal: "00_button_delete_text_press.png";
1340 description { state: "intermediate" 0.0;
1344 image.normal: "00_button_delete_text.png";
1345 image.border: 32 16 0 0;
1346 image.border_scale: 1;
1347 rel1 { relative: 0 0; to_x: "bg"; }
1348 rel2 { relative: 0 1; to_x: "bg"; }
1351 description { state: "on" 0.0;
1355 image.normal: "00_button_delete_text.png";
1356 image.border: 32 16 0 0;
1357 image.border_scale: 1;
1358 rel1 { relative: 1 0; to_x: "bg"; }
1359 rel2 { relative: 1 1; to_x: "bg"; }
1363 part { name: "check";
1367 description { state: "default" 0.0;
1372 font: "SLP:style=Medium";
1379 description { state: "visible" 0.0;
1384 color: CHECK_DELETE_TEXT_DELETE_NORMAL_COLOR_INC;
1386 font: "SLP:style=Medium";
1393 description { state: "visible_pressed" 0.0;
1394 inherit: "visible" 0.0;
1395 color: CHECK_DELETE_TEXT_DELETE_PRESS_COLOR_INC;
1398 part { name: "elm.swallow.content";
1400 description { state: "default" 0.0;
1403 color: 255 255 255 255;
1406 rel1.relative: 1.0 0.0;
1409 rel2.relative: 1.0 1.0;
1412 description { state: "visible" 0.0;
1413 inherit: "default" 0.0;
1417 aspect_preference: VERTICAL;
1419 description { state: "disabled" 0.0;
1420 inherit: "default" 0.0;
1421 color: 128 128 128 128;
1423 description { state: "disabled_visible" 0.0;
1424 inherit: "default" 0.0;
1425 color: 128 128 128 128;
1431 part { name: "elm.text";
1435 description { state: "default" 0.0;
1438 rel1 { relative: 1.0 0.5; offset: 1 1; to_x: "elm.swallow.content"; }
1439 rel2 { relative: 1.0 0.5; offset: -2 -2; }
1440 color: 255 255 255 255;
1443 style: "check_label_textblock_style";
1446 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
1448 description { state: "visible" 0.0;
1449 inherit: "default" 0.0;
1453 description { state: "disabled" 0.0;
1454 inherit: "default" 0.0;
1456 description { state: "disabled_visible" 0.0;
1457 inherit: "default" 0.0;
1460 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
1463 part { name: "events1";
1465 ignore_flags: ON_HOLD;
1466 description { state: "default" 0.0;
1469 rel2.to_x: "elm.text";
1472 description { state: "visible" 0.0;
1474 rel1.to: "bg_expand";
1475 rel2.to_x: "elm.text";
1479 part { name: "events2";
1482 description { state: "default" 0.0;
1485 rel2.to_x: "elm.text";
1488 description { state: "visible" 0.0;
1490 rel1.to: "bg_expand";
1491 rel2.to_x: "elm.text";
1495 part { name: "disabler";
1497 description { state: "default" 0.0;
1498 rel2.to_x: "elm.text";
1502 description { state: "disabled" 0.0;
1503 inherit: "default" 0.0;
1509 program { name: "click";
1510 signal: "mouse,clicked,1";
1515 get_state(PART:"check", st, 30, vl);
1516 if (!strcmp(st, "visible_pressed"))
1517 set_state(PART:"check", "visible", 0.0);
1521 program { name: "toggle";
1522 action: SIGNAL_EMIT "elm,action,check,toggle" "";
1524 program { name: "unfocused";
1525 signal: "elm,action,unfocus";
1530 get_state(PART:"bg", st, 30, vl);
1531 if (!strcmp(st, "on")) {
1532 emit("elm,action,check,toggle", "");
1536 program { name: "click_down";
1537 signal: "mouse,down,1";
1542 get_state(PART:"check", st, 30, vl);
1543 if (!strcmp(st, "visible"))
1545 set_state(PART:"bg_expand", "clicked", 0.0);
1546 set_state(PART:"check", "visible_pressed", 0.0);
1549 set_state(PART:"bg", "clicked", 0.0);
1552 program { name: "check_normal";
1553 signal: "mouse,up,1";
1558 get_state(PART:"check", st, 30, vl);
1559 if (!strcmp(st, "visible_pressed"))
1561 set_state(PART:"bg_expand", "on", 0.0);
1562 set_state(PART:"check", "visible", 0.0);
1564 get_state(PART:"bg_expand", st, 30, vl);
1565 if (!strcmp(st, "default"))
1566 set_state(PART:"bg", "default", 0.0);
1569 program { name: "check_on";
1570 signal: "elm,state,check,on";
1572 action: STATE_SET "on" 0.0;
1574 after: "start_expand";
1576 program { name: "start_expand";
1577 action: STATE_SET "intermediate" 0.0;
1579 target: "bg_expand";
1582 program { name: "expand";
1583 action: STATE_SET "on" 0.0;
1584 target: "bg_expand";
1586 transition: ACCELERATE 0.1;
1587 after: "check_visible";
1589 program { name: "check_visible";
1590 action: STATE_SET "visible" 0.0;
1595 program { name: "check_off";
1596 signal: "elm,state,check,off";
1598 action: STATE_SET "default" 0.0;
1602 program { name: "contract";
1603 action: STATE_SET "intermediate" 0.0;
1604 target: "bg_expand";
1605 transition: ACCELERATE 0.1;
1608 program { name: "normal_bg";
1610 if(get_int(button_state) !=1)
1611 set_state(PART:"bg", "default", 0.0);
1613 set_state(PART:"bg", "disabled", 0.0);
1615 after: "bg_default";
1617 program { name: "bg_default";
1618 action: STATE_SET "default" 0.0;
1619 target: "bg_expand";
1624 program { name: "text_show";
1625 signal: "elm,state,text,visible";
1627 action: STATE_SET "visible" 0.0;
1630 program { name: "text_hide";
1631 signal: "elm,state,text,hidden";
1633 action: STATE_SET "default" 0.0;
1636 program { name: "icon_show";
1637 signal: "elm,state,icon,visible";
1639 action: STATE_SET "visible" 0.0;
1640 target: "elm.swallow.content";
1642 program { name: "icon_hide";
1643 signal: "elm,state,icon,hidden";
1645 action: STATE_SET "default" 0.0;
1646 target: "elm.swallow.content";
1648 program { name: "disable";
1649 signal: "elm,state,disabled";
1651 action: STATE_SET "disabled" 0.0;
1654 after: "disable_text";
1656 program { name: "disable_text";
1660 get_state(PART:"elm.text", st, 30, vl);
1661 if (!strcmp(st, "visible"))
1662 set_state(PART:"elm.text", "disabled_visible", 0.0);
1664 set_state(PART:"elm.text", "disabled", 0.0);
1665 get_state(PART:"elm.swallow.content", st, 30, vl);
1666 if (!strcmp(st, "visible"))
1667 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
1669 set_state(PART:"elm.swallow.content", "disabled", 0.0);
1670 set_int(button_state, 1);
1673 program { name: "enable";
1674 signal: "elm,state,enabled";
1676 action: STATE_SET "default" 0.0;
1679 after: "enable_text";
1681 program { name: "enable_text";
1685 get_state(PART:"elm.text", st, 30, vl);
1686 if (!strcmp(st, "disabled_visible"))
1687 set_state(PART:"elm.text", "visible", 0.0);
1689 set_state(PART:"elm.text", "default", 0.0);
1691 get_state(PART:"elm.swallow.content", st, 30, vl);
1692 if (!strcmp(st, "visible"))
1693 set_state(PART:"elm.swallow.content", "visible", 0.0);
1695 set_state(PART:"elm.swallow.content", "default", 0.0);
1696 set_int(button_state, 0);
1702 group { name: "elm/check/base/delete/extended";
1704 image: "00_button_delete.png" COMP;
1705 image: "00_button_delete_press.png" COMP;
1706 image: "00_button_delete_dim.png" COMP;
1707 image: "00_button_delete_text.png" COMP;
1708 image: "00_button_delete_text_press.png" COMP;
1711 public button_state = 0; //0:enabled, 1: disabled
1719 description { state: "default" 0.0;
1723 rel1.relative: 1.0 0.0;
1725 image.normal: "00_button_delete.png";
1727 description { state: "clicked" 0.0;
1728 inherit: "default" 0.0;
1729 image.normal: "00_button_delete_press.png";
1731 description { state: "intermediate" 0.0;
1732 inherit: "default" 0.0;
1735 description { state: "on" 0.0;
1736 inherit: "default" 0.0;
1739 description { state: "disabled" 0.0;
1740 inherit: "default" 0.0;
1741 image.normal: "00_button_delete_dim.png";
1749 description { state: "default" 0.0;
1753 color: 255 255 255 255;
1755 description { state: "on" 0.0;
1759 color: 255 255 255 255;
1768 description { state: "default" 0.0;
1772 image.normal: "00_button_delete_text.png";
1773 image.border: 32 16 0 0;
1774 image.border_scale: 1;
1775 rel1 { relative: 1 0; to_x: "bg"; }
1776 rel2 { relative: 1 1; to_x: "bg"; }
1779 description { state: "clicked" 0.0;
1783 image.normal: "00_button_delete_text.png";
1784 image.border: 32 16 0 0;
1785 image.border_scale: 1;
1786 rel1 { relative: 1 0; to_x: "bg"; }
1787 rel2 { relative: 1 1; to_x: "bg"; }
1789 image.normal: "00_button_delete_text_press.png";
1791 description { state: "intermediate" 0.0;
1795 image.normal: "00_button_delete_text.png";
1796 image.border: 32 16 0 0;
1797 image.border_scale: 1;
1798 rel1 { relative: 0 0; to_x: "bg"; }
1799 rel2 { relative: 0 1; to_x: "bg"; }
1802 description { state: "on" 0.0;
1806 image.normal: "00_button_delete_text.png";
1807 image.border: 32 16 0 0;
1808 image.border_scale: 1;
1809 rel1 { relative: 1 0; to_x: "bg"; }
1810 rel2 { relative: 1 1; to_x: "bg"; }
1814 part { name: "check";
1818 description { state: "default" 0.0;
1823 font: "SLP:style=Medium";
1830 description { state: "visible" 0.0;
1835 color: CHECK_DELETE_TEXT_DELETE_NORMAL_COLOR_INC;
1837 font: "SLP:style=Medium";
1844 description { state: "visible_pressed" 0.0;
1845 inherit: "visible" 0.0;
1846 color: CHECK_DELETE_TEXT_DELETE_PRESS_COLOR_INC;
1849 part { name: "elm.swallow.content";
1851 description { state: "default" 0.0;
1854 color: 255 255 255 255;
1857 rel1.relative: 1.0 0.0;
1860 rel2.relative: 1.0 1.0;
1863 description { state: "visible" 0.0;
1864 inherit: "default" 0.0;
1868 aspect_preference: VERTICAL;
1870 description { state: "disabled" 0.0;
1871 inherit: "default" 0.0;
1872 color: 128 128 128 128;
1874 description { state: "disabled_visible" 0.0;
1875 inherit: "default" 0.0;
1876 color: 128 128 128 128;
1882 part { name: "elm.text";
1886 description { state: "default" 0.0;
1889 rel1 { relative: 1.0 0.5; offset: 1 1; to_x: "elm.swallow.content"; }
1890 rel2 { relative: 1.0 0.5; offset: -2 -2; }
1891 color: 255 255 255 255;
1894 style: "check_label_textblock_style";
1897 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
1899 description { state: "visible" 0.0;
1900 inherit: "default" 0.0;
1904 description { state: "disabled" 0.0;
1905 inherit: "default" 0.0;
1907 description { state: "disabled_visible" 0.0;
1908 inherit: "default" 0.0;
1911 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
1914 part { name: "events1";
1916 ignore_flags: ON_HOLD;
1917 description { state: "default" 0.0;
1920 rel2.to_x: "elm.text";
1925 description { state: "visible" 0.0;
1927 rel1.to: "bg_expand";
1928 rel2.to_x: "elm.text";
1934 part { name: "events2";
1937 description { state: "default" 0.0;
1940 rel2.to_x: "elm.text";
1945 description { state: "visible" 0.0;
1947 rel1.to: "bg_expand";
1948 rel2.to_x: "elm.text";
1954 part { name: "disabler";
1956 description { state: "default" 0.0;
1957 rel2.to_x: "elm.text";
1961 description { state: "disabled" 0.0;
1962 inherit: "default" 0.0;
1968 program { name: "click";
1969 signal: "mouse,clicked,1";
1974 get_state(PART:"check", st, 30, vl);
1975 if (!strcmp(st, "visible_pressed"))
1976 set_state(PART:"check", "visible", 0.0);
1980 program { name: "toggle";
1981 action: SIGNAL_EMIT "elm,action,check,toggle" "";
1983 program { name: "unfocused";
1984 signal: "elm,action,unfocus";
1989 get_state(PART:"bg", st, 30, vl);
1990 if (!strcmp(st, "on")) {
1991 emit("elm,action,check,toggle", "");
1995 program { name: "click_down";
1996 signal: "mouse,down,1";
2001 get_state(PART:"check", st, 30, vl);
2002 if (!strcmp(st, "visible"))
2004 set_state(PART:"bg_expand", "clicked", 0.0);
2005 set_state(PART:"check", "visible_pressed", 0.0);
2008 set_state(PART:"bg", "clicked", 0.0);
2011 program { name: "check_normal";
2012 signal: "mouse,up,1";
2017 get_state(PART:"check", st, 30, vl);
2018 if (!strcmp(st, "visible_pressed"))
2020 set_state(PART:"bg_expand", "on", 0.0);
2021 set_state(PART:"check", "visible", 0.0);
2023 get_state(PART:"bg_expand", st, 30, vl);
2024 if (!strcmp(st, "default"))
2025 set_state(PART:"bg", "default", 0.0);
2028 program { name: "check_on";
2029 signal: "elm,state,check,on";
2031 action: STATE_SET "on" 0.0;
2033 after: "start_expand";
2035 program { name: "start_expand";
2036 action: STATE_SET "intermediate" 0.0;
2038 target: "bg_expand";
2041 program { name: "expand";
2042 action: STATE_SET "on" 0.0;
2043 target: "bg_expand";
2045 transition: ACCELERATE 0.1;
2046 after: "check_visible";
2048 program { name: "check_visible";
2049 action: STATE_SET "visible" 0.0;
2054 program { name: "check_off";
2055 signal: "elm,state,check,off";
2057 action: STATE_SET "default" 0.0;
2061 program { name: "contract";
2062 action: STATE_SET "intermediate" 0.0;
2063 target: "bg_expand";
2064 transition: ACCELERATE 0.1;
2067 program { name: "normal_bg";
2069 if(get_int(button_state) !=1)
2070 set_state(PART:"bg", "default", 0.0);
2072 set_state(PART:"bg", "disabled", 0.0);
2074 after: "bg_default";
2076 program { name: "bg_default";
2077 action: STATE_SET "default" 0.0;
2078 target: "bg_expand";
2083 program { name: "text_show";
2084 signal: "elm,state,text,visible";
2086 action: STATE_SET "visible" 0.0;
2089 program { name: "text_hide";
2090 signal: "elm,state,text,hidden";
2092 action: STATE_SET "default" 0.0;
2095 program { name: "icon_show";
2096 signal: "elm,state,icon,visible";
2098 action: STATE_SET "visible" 0.0;
2099 target: "elm.swallow.content";
2101 program { name: "icon_hide";
2102 signal: "elm,state,icon,hidden";
2104 action: STATE_SET "default" 0.0;
2105 target: "elm.swallow.content";
2107 program { name: "disable";
2108 signal: "elm,state,disabled";
2110 action: STATE_SET "disabled" 0.0;
2113 after: "disable_text";
2115 program { name: "disable_text";
2119 get_state(PART:"elm.text", st, 30, vl);
2120 if (!strcmp(st, "visible"))
2121 set_state(PART:"elm.text", "disabled_visible", 0.0);
2123 set_state(PART:"elm.text", "disabled", 0.0);
2124 get_state(PART:"elm.swallow.content", st, 30, vl);
2125 if (!strcmp(st, "visible"))
2126 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
2128 set_state(PART:"elm.swallow.content", "disabled", 0.0);
2129 set_int(button_state, 1);
2132 program { name: "enable";
2133 signal: "elm,state,enabled";
2135 action: STATE_SET "default" 0.0;
2138 after: "enable_text";
2140 program { name: "enable_text";
2144 get_state(PART:"elm.text", st, 30, vl);
2145 if (!strcmp(st, "disabled_visible"))
2146 set_state(PART:"elm.text", "visible", 0.0);
2148 set_state(PART:"elm.text", "default", 0.0);
2150 get_state(PART:"elm.swallow.content", st, 30, vl);
2151 if (!strcmp(st, "visible"))
2152 set_state(PART:"elm.swallow.content", "visible", 0.0);
2154 set_state(PART:"elm.swallow.content", "default", 0.0);
2155 set_int(button_state, 0);
2161 ////////////////////////////////////////////////////////////////////////////////
2163 name: "elm/check/base/grid";
2165 image: "00_grid_select_check.png" COMP;
2174 state: "default" 0.0;
2175 rel1.relative: 0.0 0.0;
2176 rel2.relative: 1.0 1.0;
2181 state: "pressed" 0.0;
2182 inherit: "default" 0.0;
2185 state: "disabled" 0.0;
2186 inherit: "default" 0.0;
2196 state: "default" 0.0;
2197 rel2.relative: 1.0 1.0;
2205 state: "pressed" 0.0;
2206 inherit: "default" 0.0;
2209 state: "disabled" 0.0;
2210 inherit: "default" 0.0;
2215 name: "selected_bg";
2219 state: "default" 0.0;
2226 state: "visible" 0.0;
2227 inherit: "default" 0.0;
2237 state: "default" 0.0;
2241 image.normal: "00_grid_select_check.png";
2244 state: "visible" 0.0;
2245 inherit: "default" 0.0;
2249 state: "pressed" 0.0;
2250 inherit: "default" 0.0;
2254 state: "disabled_visible" 0.0;
2255 inherit: "default" 0.0;
2260 name: "elm.swallow.content";
2263 state: "default" 0.0;
2266 color: 255 255 255 255;
2269 rel1.relative: 1.0 0.0;
2272 rel2.relative: 1.0 1.0;
2276 state: "visible" 0.0;
2277 inherit: "default" 0.0;
2281 aspect_preference: VERTICAL;
2284 state: "disabled" 0.0;
2285 inherit: "default" 0.0;
2286 color: 128 128 128 128;
2289 state: "disabled_visible" 0.0;
2290 inherit: "default" 0.0;
2291 color: 128 128 128 128;
2303 state: "default" 0.0;
2306 rel1 { relative: 1.0 0.5; offset: 1 1; to_x: "elm.swallow.content"; }
2307 rel2 { relative: 1.0 0.5; offset: -2 -2; }
2308 color: 255 255 255 255;
2311 style: "check_label_textblock_style";
2314 color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC;
2317 state: "visible" 0.0;
2318 inherit: "default" 0.0;
2323 state: "disabled" 0.0;
2324 inherit: "default" 0.0;
2327 state: "disabled_visible" 0.0;
2328 inherit: "default" 0.0;
2331 color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC;
2337 ignore_flags: ON_HOLD;
2339 state: "default" 0.0;
2347 state: "default" 0.0;
2352 state: "disabled" 0.0;
2353 inherit: "default" 0.0;
2361 signal: "mouse,up,1";
2363 action: SIGNAL_EMIT "elm,action,check,toggle" "";
2369 set_state(PART:"bg", "default", 0.0);
2370 set_state(PART:"bg2", "default", 0.0);
2375 signal: "mouse,out";
2377 after: "bg_check_normal";
2380 name: "bg_check_normal";
2384 get_state(PART:"check", st, 30, vl);
2385 if (!strcmp(st, "pressed"))
2386 set_state(PART:"check", "visible", 0.0);
2387 set_state(PART:"bg", "default", 0.0);
2388 set_state(PART:"bg2", "default", 0.0);
2393 signal: "mouse,down,1";
2398 get_state(PART:"check", st, 30, vl);
2399 if (!strcmp(st, "visible"))
2400 set_state(PART:"check", "pressed", 0.0);
2401 set_state(PART:"bg", "pressed", 0.0);
2402 set_state(PART:"bg2", "pressed", 0.0);
2407 signal: "elm,state,check,on";
2409 action: STATE_SET "visible" 0.0;
2411 target: "selected_bg";
2415 signal: "elm,state,check,off";
2417 action: STATE_SET "default" 0.0;
2419 target: "selected_bg";
2423 signal: "elm,state,text,visible";
2425 action: STATE_SET "visible" 0.0;
2430 signal: "elm,state,text,hidden";
2432 action: STATE_SET "default" 0.0;
2437 signal: "elm,state,icon,visible";
2439 action: STATE_SET "visible" 0.0;
2440 target: "elm.swallow.content";
2444 signal: "elm,state,icon,hidden";
2446 action: STATE_SET "default" 0.0;
2447 target: "elm.swallow.content";
2451 signal: "elm,state,disabled";
2453 action: STATE_SET "disabled" 0.0;
2457 after: "disable_text";
2460 name: "disable_text";
2464 get_state(PART:"elm.text", st, 30, vl);
2465 if (!strcmp(st, "visible"))
2466 set_state(PART:"elm.text", "disabled_visible", 0.0);
2468 set_state(PART:"elm.text", "disabled", 0.0);
2469 get_state(PART:"elm.swallow.content", st, 30, vl);
2470 if (!strcmp(st, "visible"))
2471 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
2473 set_state(PART:"elm.swallow.content", "disabled", 0.0);
2474 get_state(PART:"check", st, 30, vl);
2475 if (!strcmp(st, "visible"))
2476 set_state(PART:"check", "disabled_visible", 0.0);
2481 signal: "elm,state,enabled";
2483 action: STATE_SET "default" 0.0;
2487 after: "enable_text";
2490 name: "enable_text";
2494 get_state(PART:"elm.text", st, 30, vl);
2495 if (!strcmp(st, "disabled_visible"))
2496 set_state(PART:"elm.text", "visible", 0.0);
2498 set_state(PART:"elm.text", "default", 0.0);
2500 get_state(PART:"elm.swallow.content", st, 30, vl);
2501 if (!strcmp(st, "visible"))
2502 set_state(PART:"elm.swallow.content", "visible", 0.0);
2504 set_state(PART:"elm.swallow.content", "default", 0.0);
2505 get_state(PART:"check", st, 30, vl);
2506 if (!strcmp(st, "disabled_visible"))
2507 set_state(PART:"check", "visible", 0.0);
2513 #undef CHECK_STATE_DEFAULT
2514 #undef CHECK_STATE_VISIBLE
2515 #undef CHECK_STATE_DISABLED_VISIBLE
2516 #undef CHECK_STATE_DISABLED