1 group { name: "elm/check/base/default";
3 image: "check_base.png" COMP;
4 image: "check.png" COMP;
5 image: "check2.png" COMP;
11 description { state: "default" 0.0;
13 rel2.relative: 0.0 1.0;
19 aspect_preference: VERTICAL;
21 normal: "check_base.png";
31 description { state: "default" 0.0;
41 color: 255 255 255 255;
42 image.normal: "check.png";
44 description { state: "visible" 0.0;
45 inherit: "default" 0.0;
48 description { state: "disabled" 0.0;
49 inherit: "default" 0.0;
51 color: 128 128 128 128;
53 description { state: "disabled_visible" 0.0;
54 inherit: "default" 0.0;
55 color: 128 128 128 128;
59 part { name: "elm.swallow.content";
62 description { state: "default" 0.0;
67 rel1.relative: 1.0 0.0;
71 rel2.relative: 1.0 1.0;
73 description { state: "visible" 0.0;
74 inherit: "default" 0.0;
80 description { state: "disabled" 0.0;
81 inherit: "default" 0.0;
82 color: 255 255 255 128;
84 description { state: "disabled_visible" 0.0;
85 inherit: "default" 0.0;
86 color: 255 255 255 128;
92 part { name: "elm.text";
96 description { state: "default" 0.0;
98 rel1.to_x: "elm.swallow.content";
99 rel1.relative: 1.0 0.0;
101 rel2.relative: 1.0 1.0;
105 font: "Sans,Edje-Vera";
111 description { state: "visible" 0.0;
112 inherit: "default" 0.0;
116 description { state: "disabled" 0.0;
117 inherit: "default" 0.0;
121 description { state: "disabled_visible" 0.0;
122 inherit: "default" 0.0;
129 part { name: "events";
131 ignore_flags: ON_HOLD;
132 description { state: "default" 0.0;
136 part { name: "disabler";
138 description { state: "default" 0.0;
142 description { state: "disabled" 0.0;
143 inherit: "default" 0.0;
149 program { name: "click";
150 signal: "mouse,clicked,1";
152 action: SIGNAL_EMIT "elm,action,check,toggle" "";
154 program { name: "check_on";
155 signal: "elm,state,check,on";
157 action: STATE_SET "visible" 0.0;
160 program { name: "check_off";
161 signal: "elm,state,check,off";
163 action: STATE_SET "default" 0.0;
166 program { name: "text_show";
167 signal: "elm,state,text,visible";
169 action: STATE_SET "visible" 0.0;
172 program { name: "text_hide";
173 signal: "elm,state,text,hidden";
175 action: STATE_SET "default" 0.0;
178 program { name: "icon_show";
179 signal: "elm,state,icon,visible";
181 action: STATE_SET "visible" 0.0;
182 target: "elm.swallow.content";
184 program { name: "icon_hide";
185 signal: "elm,state,icon,hidden";
187 action: STATE_SET "default" 0.0;
188 target: "elm.swallow.content";
190 program { name: "disable";
191 signal: "elm,state,disabled";
193 action: STATE_SET "disabled" 0.0;
195 after: "disable_text";
197 program { name: "disable_text";
201 get_state(PART:"elm.text", st, 30, vl);
202 if (!strcmp(st, "visible"))
203 set_state(PART:"elm.text", "disabled_visible", 0.0);
205 set_state(PART:"elm.text", "disabled", 0.0);
207 get_state(PART:"elm.swallow.content", st, 30, vl);
208 if (!strcmp(st, "visible"))
209 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
211 set_state(PART:"elm.swallow.content", "disabled", 0.0);
213 get_state(PART:"check", st, 30, vl);
214 if (!strcmp(st, "visible"))
215 set_state(PART:"check", "disabled_visible", 0.0);
217 set_state(PART:"check", "disabled", 0.0);
220 program { name: "enable";
221 signal: "elm,state,enabled";
223 action: STATE_SET "default" 0.0;
225 after: "enable_text";
227 program { name: "enable_text";
231 get_state(PART:"elm.text", st, 30, vl);
232 if (!strcmp(st, "disabled_visible"))
233 set_state(PART:"elm.text", "visible", 0.0);
235 set_state(PART:"elm.text", "default", 0.0);
237 get_state(PART:"elm.swallow.content", st, 30, vl);
238 if (!strcmp(st, "visible"))
239 set_state(PART:"elm.swallow.content", "visible", 0.0);
241 set_state(PART:"elm.swallow.content", "default", 0.0);
243 get_state(PART:"check", st, 30, vl);
244 if (!strcmp(st, "visible"))
245 set_state(PART:"check", "visible", 0.0);
247 set_state(PART:"check", "default", 0.0);
253 group { name: "elm/check/base/toggle";
255 image: "shelf_inset.png" COMP;
256 image: "bt_basew.png" COMP;
257 image: "bt_bases.png" COMP;
258 image: "bt_hilightw.png" COMP;
259 image: "tog_base_on.png" COMP;
260 image: "tog_base_off.png" COMP;
261 image: "tog_dis_base_on.png" COMP;
262 image: "tog_dis_base_off.png" COMP;
274 description { state: "default" 0.0;
276 rel1.relative: 1.0 0.0;
285 part { name: "clipper";
288 description { state: "default" 0.0;
291 color: 255 255 255 255;
294 part { name: "button";
304 description { state: "default" 0.0;
311 aspect_preference: VERTICAL;
315 part { name: "button_events";
320 description { state: "default" 0.0;
324 part { name: "onrect";
329 description { state: "default" 0.0;
331 rel1.relative: -5.0 0.0;
333 rel2.relative: 0.5 1.0;
334 image.normal: "tog_base_on.png";
336 description { state: "disabled" 0.0;
337 inherit: "default" 0.0;
338 image.normal: "tog_dis_base_on.png";
341 part { name: "offrect";
346 description { state: "default" 0.0;
348 rel1.relative: 0.5 0.0;
350 rel2.relative: 6.0 1.0;
351 image.normal: "tog_base_off.png";
353 description { state: "disabled" 0.0;
354 inherit: "default" 0.0;
355 image.normal: "tog_dis_base_off.png";
358 part { name: "elm.offtext";
363 description { state: "default" 0.0;
366 rel1.relative: 1.0 0.0;
367 rel2.to_x: "offrect";
370 font: "Sans,Edje-Vera";
377 description { state: "disabled" 0.0;
378 inherit: "default" 0.0;
379 color: 128 128 128 128;
382 part { name: "elm.ontext";
388 description { state: "default" 0.0;
394 rel2.relative: 0.0 1.0;
395 color: 224 224 224 255;
398 font: "Sans,Edje-Vera";
405 description { state: "disabled" 0.0;
406 inherit: "default" 0.0;
407 color: 128 128 128 128;
411 part { name: "conf_over";
413 description { state: "default" 0.0;
419 normal: "shelf_inset.png";
426 part { name: "button0";
428 description { state: "default" 0.0;
434 normal: "bt_bases.png";
438 color: 255 255 255 128;
441 part { name: "button2";
443 description { state: "default" 0.0;
449 normal: "bt_basew.png";
455 part { name: "button3";
458 description { state: "default" 0.0;
461 rel2.relative: 1.0 0.5;
463 normal: "bt_hilightw.png";
468 part { name: "elm.swallow.content";
470 description { state: "default" 0.0;
475 rel2.relative: 0.0 1.0;
478 description { state: "visible" 0.0;
479 inherit: "default" 0.0;
484 description { state: "disabled" 0.0;
485 inherit: "default" 0.0;
486 color: 128 128 128 128;
488 description { state: "disabled_visible" 0.0;
489 inherit: "default" 0.0;
490 color: 128 128 128 128;
495 part { name: "elm.text";
499 description { state: "default" 0.0;
501 rel1.to_x: "elm.swallow.content";
502 rel1.relative: 1.0 0.0;
505 rel2.relative: 0.0 1.0;
509 font: "Sans,Edje-Vera";
515 description { state: "visible" 0.0;
516 inherit: "default" 0.0;
520 description { state: "disabled" 0.0;
521 inherit: "default" 0.0;
522 color: 128 128 128 128;
524 description { state: "disabled_visible" 0.0;
525 inherit: "default" 0.0;
526 color: 128 128 128 128;
531 part { name: "disabler";
533 description { state: "default" 0.0;
537 description { state: "disabled" 0.0;
538 inherit: "default" 0.0;
545 signal: "mouse,clicked,1";
548 new Float:dx, Float:dy;
549 get_drag(PART:"button", dx, dy);
551 if (!get_int(was_drag)) {
553 set_drag(PART:"button", 0.0, 0.0);
555 set_drag(PART:"button", 1.0, 0.0);
556 if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
557 (get_int(is_rtl) == 0) && (dx > 0.5))
558 emit("elm,action,check,off", "");
560 emit("elm,action,check,on", "");
572 signal: "mouse,down,1";
575 set_int(was_drag, 0);
579 program { name: "drag_end";
580 signal: "mouse,up,1";
583 new Float:dx, Float:dy;
584 get_drag(PART:"button", dx, dy);
587 set_drag(PART:"button", 1.0, 0.0);
591 set_drag(PART:"button", 0.0, 0.0);
593 if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
594 (get_int(is_rtl) == 0) && (dx > 0.5)) {
595 emit("elm,action,check,on", "");
598 emit("elm,action,check,off", "");
600 set_int(was_drag, get_int(is_drag));
604 program { name: "check_on";
605 signal: "elm,state,check,on";
609 if (get_int(is_rtl) == 0) {
615 set_drag(PART:"button", drag, 0.0);
618 program { name: "check_off";
619 signal: "elm,state,check,off";
623 if (get_int(is_rtl) == 0) {
629 set_drag(PART:"button", drag, 0.0);
632 program { name: "text_show";
633 signal: "elm,state,text,visible";
635 action: STATE_SET "visible" 0.0;
638 program { name: "text_hide";
639 signal: "elm,state,text,hidden";
641 action: STATE_SET "default" 0.0;
644 program { name: "icon_show";
645 signal: "elm,state,icon,visible";
647 action: STATE_SET "visible" 0.0;
648 target: "elm.swallow.content";
650 program { name: "icon_hide";
651 signal: "elm,state,icon,hidden";
653 action: STATE_SET "default" 0.0;
654 target: "elm.swallow.content";
656 program { name: "disable";
657 signal: "elm,state,disabled";
659 action: STATE_SET "disabled" 0.0;
660 target: "elm.offtext";
661 target: "elm.ontext";
665 after: "disable_text";
667 program { name: "disable_text";
671 get_state(PART:"elm.text", st, 30, vl);
672 if (!strcmp(st, "visible"))
673 set_state(PART:"elm.text", "disabled_visible", 0.0);
675 set_state(PART:"elm.text", "disabled", 0.0);
677 get_state(PART:"elm.swallow.content", st, 30, vl);
678 if (!strcmp(st, "visible"))
679 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
681 set_state(PART:"elm.swallow.content", "disabled", 0.0);
684 program { name: "enable";
685 signal: "elm,state,enabled";
687 action: STATE_SET "default" 0.0;
691 after: "enable_text";
693 program { name: "enable_text";
697 get_state(PART:"elm.text", st, 30, vl);
698 if (!strcmp(st, "disabled_visible"))
699 set_state(PART:"elm.text", "visible", 0.0);
701 set_state(PART:"elm.text", "default", 0.0);
703 get_state(PART:"elm.swallow.content", st, 30, vl);
704 if (!strcmp(st, "visible"))
705 set_state(PART:"elm.swallow.content", "visible", 0.0);
707 set_state(PART:"elm.swallow.content", "default", 0.0);
710 program { name: "to_rtl";
711 signal: "edje,state,rtl";
717 program { name: "to_ltr";
718 signal: "edje,state,ltr";