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";
61 description { state: "default" 0.0;
66 rel1.relative: 1.0 0.0;
70 rel2.relative: 1.0 1.0;
72 description { state: "visible" 0.0;
73 inherit: "default" 0.0;
78 description { state: "disabled" 0.0;
79 inherit: "default" 0.0;
80 color: 128 128 128 128;
82 description { state: "disabled_visible" 0.0;
83 inherit: "default" 0.0;
84 color: 128 128 128 128;
90 part { name: "elm.text";
94 description { state: "default" 0.0;
96 rel1.to_x: "elm.swallow.content";
97 rel1.relative: 1.0 0.0;
99 rel2.relative: 1.0 1.0;
103 font: "Sans,Edje-Vera";
109 description { state: "visible" 0.0;
110 inherit: "default" 0.0;
114 description { state: "disabled" 0.0;
115 inherit: "default" 0.0;
119 description { state: "disabled_visible" 0.0;
120 inherit: "default" 0.0;
127 part { name: "events";
129 ignore_flags: ON_HOLD;
130 description { state: "default" 0.0;
134 part { name: "disabler";
136 description { state: "default" 0.0;
140 description { state: "disabled" 0.0;
141 inherit: "default" 0.0;
147 program { name: "click";
148 signal: "mouse,up,1";
150 action: SIGNAL_EMIT "elm,action,check,toggle" "";
152 program { name: "check_on";
153 signal: "elm,state,check,on";
155 action: STATE_SET "visible" 0.0;
158 program { name: "check_off";
159 signal: "elm,state,check,off";
161 action: STATE_SET "default" 0.0;
164 program { name: "text_show";
165 signal: "elm,state,text,visible";
167 action: STATE_SET "visible" 0.0;
170 program { name: "text_hide";
171 signal: "elm,state,text,hidden";
173 action: STATE_SET "default" 0.0;
176 program { name: "icon_show";
177 signal: "elm,state,icon,visible";
179 action: STATE_SET "visible" 0.0;
180 target: "elm.swallow.content";
182 program { name: "icon_hide";
183 signal: "elm,state,icon,hidden";
185 action: STATE_SET "default" 0.0;
186 target: "elm.swallow.content";
188 program { name: "disable";
189 signal: "elm,state,disabled";
191 action: STATE_SET "disabled" 0.0;
193 after: "disable_text";
195 program { name: "disable_text";
199 get_state(PART:"elm.text", st, 30, vl);
200 if (!strcmp(st, "visible"))
201 set_state(PART:"elm.text", "disabled_visible", 0.0);
203 set_state(PART:"elm.text", "disabled", 0.0);
205 get_state(PART:"elm.swallow.content", st, 30, vl);
206 if (!strcmp(st, "visible"))
207 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
209 set_state(PART:"elm.swallow.content", "disabled", 0.0);
211 get_state(PART:"check", st, 30, vl);
212 if (!strcmp(st, "visible"))
213 set_state(PART:"check", "disabled_visible", 0.0);
215 set_state(PART:"check", "disabled", 0.0);
218 program { name: "enable";
219 signal: "elm,state,enabled";
221 action: STATE_SET "default" 0.0;
223 after: "enable_text";
225 program { name: "enable_text";
229 get_state(PART:"elm.text", st, 30, vl);
230 if (!strcmp(st, "disabled_visible"))
231 set_state(PART:"elm.text", "visible", 0.0);
233 set_state(PART:"elm.text", "default", 0.0);
235 get_state(PART:"elm.swallow.content", st, 30, vl);
236 if (!strcmp(st, "visible"))
237 set_state(PART:"elm.swallow.content", "visible", 0.0);
239 set_state(PART:"elm.swallow.content", "default", 0.0);
241 get_state(PART:"check", st, 30, vl);
242 if (!strcmp(st, "visible"))
243 set_state(PART:"check", "visible", 0.0);
245 set_state(PART:"check", "default", 0.0);
251 group { name: "elm/check/base/toggle";
253 image: "shelf_inset.png" COMP;
254 image: "bt_basew.png" COMP;
255 image: "bt_bases.png" COMP;
256 image: "bt_hilightw.png" COMP;
257 image: "tog_base_on.png" COMP;
258 image: "tog_base_off.png" COMP;
259 image: "tog_dis_base_on.png" COMP;
260 image: "tog_dis_base_off.png" COMP;
270 description { state: "default" 0.0;
271 rel1.relative: 1.0 0.0;
278 aspect_preference: VERTICAL;
279 color: 255 255 255 255;
282 part { name: "clipper";
285 description { state: "default" 0.0;
288 color: 255 255 255 255;
291 part { name: "button";
301 description { state: "default" 0.0;
308 aspect_preference: VERTICAL;
312 part { name: "button_events";
317 description { state: "default" 0.0;
320 rel1.relative: 0.0 0.0;
323 rel2.relative: 1.0 1.0;
327 part { name: "onrect";
332 description { state: "default" 0.0;
334 rel1.relative: -5.0 0.0;
336 rel2.relative: 0.5 1.0;
337 image.normal: "tog_base_on.png";
339 description { state: "disabled" 0.0;
340 inherit: "default" 0.0;
341 image.normal: "tog_dis_base_on.png";
344 part { name: "offrect";
349 description { state: "default" 0.0;
351 rel1.relative: 0.5 0.0;
353 rel2.relative: 6.0 1.0;
354 image.normal: "tog_base_off.png";
356 description { state: "disabled" 0.0;
357 inherit: "default" 0.0;
358 image.normal: "tog_dis_base_off.png";
361 part { name: "elm.offtext";
366 description { state: "default" 0.0;
369 rel1.relative: 1.0 0.0;
370 rel2.to_x: "offrect";
373 font: "Sans,Edje-Vera";
380 description { state: "disabled" 0.0;
381 inherit: "default" 0.0;
382 color: 128 128 128 128;
385 part { name: "elm.ontext";
391 description { state: "default" 0.0;
397 rel2.relative: 0.0 1.0;
398 color: 224 224 224 255;
401 font: "Sans,Edje-Vera";
408 description { state: "disabled" 0.0;
409 inherit: "default" 0.0;
410 color: 128 128 128 128;
414 part { name: "conf_over";
416 description { state: "default" 0.0;
422 normal: "shelf_inset.png";
429 part { name: "button0";
432 description { state: "default" 0.0;
438 normal: "bt_bases.png";
442 color: 255 255 255 128;
445 part { name: "button2";
448 description { state: "default" 0.0;
454 normal: "bt_basew.png";
460 part { name: "button3";
463 description { state: "default" 0.0;
466 rel2.relative: 1.0 0.5;
468 normal: "bt_hilightw.png";
473 part { name: "elm.swallow.content";
475 description { state: "default" 0.0;
480 rel2.relative: 0.0 1.0;
483 description { state: "visible" 0.0;
484 inherit: "default" 0.0;
489 description { state: "disabled" 0.0;
490 inherit: "default" 0.0;
491 color: 128 128 128 128;
493 description { state: "disabled_visible" 0.0;
494 inherit: "default" 0.0;
495 color: 128 128 128 128;
500 part { name: "elm.text";
504 description { state: "default" 0.0;
506 rel1.to_x: "elm.swallow.content";
507 rel1.relative: 1.0 0.0;
510 rel2.relative: 0.0 1.0;
514 font: "Sans,Edje-Vera";
520 description { state: "visible" 0.0;
521 inherit: "default" 0.0;
525 description { state: "disabled" 0.0;
526 inherit: "default" 0.0;
527 color: 128 128 128 128;
529 description { state: "disabled_visible" 0.0;
530 inherit: "default" 0.0;
531 color: 128 128 128 128;
536 part { name: "disabler";
538 description { state: "default" 0.0;
542 description { state: "disabled" 0.0;
543 inherit: "default" 0.0;
549 program { name: "drag_end";
550 signal: "mouse,up,1";
553 new Float:dx, Float:dy;
554 get_drag(PART:"button", dx, dy);
557 set_drag(PART:"button", 1.0, 0.0);
561 set_drag(PART:"button", 0.0, 0.0);
563 if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
564 (get_int(is_rtl) == 0) && (dx > 0.5)) {
565 emit("elm,action,check,on", "");
568 emit("elm,action,check,off", "");
573 program { name: "check_on";
574 signal: "elm,state,check,on";
578 if (get_int(is_rtl) == 0) {
584 set_drag(PART:"button", drag, 0.0);
587 program { name: "check_off";
588 signal: "elm,state,check,off";
592 if (get_int(is_rtl) == 0) {
598 set_drag(PART:"button", drag, 0.0);
601 program { name: "text_show";
602 signal: "elm,state,text,visible";
604 action: STATE_SET "visible" 0.0;
607 program { name: "text_hide";
608 signal: "elm,state,text,hidden";
610 action: STATE_SET "default" 0.0;
613 program { name: "icon_show";
614 signal: "elm,state,icon,visible";
616 action: STATE_SET "visible" 0.0;
617 target: "elm.swallow.content";
619 program { name: "icon_hide";
620 signal: "elm,state,icon,hidden";
622 action: STATE_SET "default" 0.0;
623 target: "elm.swallow.content";
625 program { name: "disable";
626 signal: "elm,state,disabled";
628 action: STATE_SET "disabled" 0.0;
629 target: "elm.offtext";
630 target: "elm.ontext";
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);
646 get_state(PART:"elm.swallow.content", st, 30, vl);
647 if (!strcmp(st, "visible"))
648 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
650 set_state(PART:"elm.swallow.content", "disabled", 0.0);
653 program { name: "enable";
654 signal: "elm,state,enabled";
656 action: STATE_SET "default" 0.0;
660 after: "enable_text";
662 program { name: "enable_text";
666 get_state(PART:"elm.text", st, 30, vl);
667 if (!strcmp(st, "disabled_visible"))
668 set_state(PART:"elm.text", "visible", 0.0);
670 set_state(PART:"elm.text", "default", 0.0);
672 get_state(PART:"elm.swallow.content", st, 30, vl);
673 if (!strcmp(st, "visible"))
674 set_state(PART:"elm.swallow.content", "visible", 0.0);
676 set_state(PART:"elm.swallow.content", "default", 0.0);
679 program { name: "to_rtl";
680 signal: "edje,state,rtl";
686 program { name: "to_ltr";
687 signal: "edje,state,ltr";