1 group { name: "elm/menu/item/default";
3 image: "bt_base1.png" COMP;
4 image: "bt_base2.png" COMP;
5 image: "bt_hilight.png" COMP;
6 image: "bt_shine.png" COMP;
7 image: "bt_glow.png" COMP;
8 image: "bt_dis_base.png" COMP;
9 image: "bt_dis_hilight.png" COMP;
12 public menu_text_visible; //0:hide (default), 1:visible
13 public menu_disable; //0:enable, 1:disable
16 part { name: "item_image";
18 description { state: "default" 0.0;
21 normal: "bt_base2.png";
26 description { state: "visible" 0.0;
27 inherit: "default" 0.0;
28 color: 255 255 255 255;
30 description { state: "clicked" 0.0;
31 inherit: "default" 0.0;
32 inherit: "visible" 0.0;
33 image.normal: "bt_base1.png";
36 description { state: "disabled" 0.0;
37 inherit: "default" 0.0;
40 part { name: "item_image_disabled";
42 description { state: "default" 0.0;
45 normal: "bt_dis_base.png";
50 description { state: "disabled" 0.0;
51 inherit: "default" 0.0;
52 color: 255 255 255 255;
55 part { name: "elm.swallow.content";
57 description { state: "default" 0.0;
63 rel2.relative: 0.0 1.0;
65 aspect_preference: VERTICAL;
74 description { state: "default" 0.0;
76 rel1.to_x: "elm.swallow.content";
77 rel1.relative: 1.0 0.0;
82 font: "Sans,Edje-Vera";
86 text_class: "menu_item";
89 description { state: "visible" 0.0;
90 inherit: "default" 0.0;
94 description { state: "selected" 0.0;
95 inherit: "default" 0.0;
96 inherit: "visible" 0.0;
97 color: 254 254 254 255;
99 description { state: "disabled" 0.0;
100 inherit: "default" 0.0;
103 description { state: "disabled_visible" 0.0;
104 inherit: "default" 0.0;
105 inherit: "visible" 0.0;
109 part { name: "over1";
111 description { state: "default" 0.0;
112 color: 255 255 255 0;
113 rel2.relative: 1.0 0.5;
115 normal: "bt_hilight.png";
119 description { state: "visible" 0.0;
120 inherit: "default" 0.0;
121 color: 255 255 255 255;
123 description { state: "disabled" 0.0;
124 inherit: "default" 0.0;
127 part { name: "over_disabled";
129 description { state: "default" 0.0;
130 color: 255 255 255 0;
131 rel2.relative: 1.0 0.5;
133 normal: "bt_dis_hilight.png";
137 description { state: "disabled" 0.0;
138 inherit: "default" 0.0;
139 color: 255 255 255 255;
142 part { name: "over2";
145 ignore_flags: ON_HOLD;
146 description { state: "default" 0.0;
148 normal: "bt_shine.png";
152 description { state: "disabled" 0.0;
153 inherit: "default" 0.0;
157 part { name: "over3";
160 description { state: "default" 0.0;
161 color: 255 255 255 0;
163 normal: "bt_glow.png";
168 description { state: "clicked" 0.0;
169 inherit: "default" 0.0;
171 color: 255 255 255 255;
174 part { name: "disabler";
176 description { state: "default" 0.0;
180 description { state: "disabled" 0.0;
181 inherit: "default" 0.0;
189 name: "item_mouse_in";
192 action: SIGNAL_EMIT "elm,action,activate" "";
193 after: "item_mouse_in_2";
194 after: "item_mouse_in_3";
197 name: "item_mouse_in_2";
198 transition: DECELERATE 0.5;
201 v = get_int(menu_text_visible);
202 d = get_int(menu_disable);
205 run_program(PROGRAM:"selected_text");
209 name: "item_mouse_in_3";
210 action : STATE_SET "visible" 0.0;
211 target: "item_image";
213 transition: DECELERATE 0.5;
216 name: "selected_text";
217 action: STATE_SET "selected" 0.0;
219 transition: DECELERATE 0.5;
225 name: "item_mouse_out";
228 action: SIGNAL_EMIT "elm,action,inactivate" "";
229 after: "item_mouse_out_2";
230 after: "item_mouse_out_3";
233 name: "item_mouse_out_2";
234 transition: DECELERATE 0.5;
237 v = get_int(menu_text_visible);
238 d = get_int(menu_disable);
241 run_program(PROGRAM:"visible_text");
245 name: "item_mouse_out_3";
246 action: STATE_SET "default" 0.0;
247 target: "item_image";
249 transition: DECELERATE 0.5;
252 name: "visible_text";
253 action: STATE_SET "visible" 0.0;
255 transition: DECELERATE 0.5;
260 name: "item_unclick";
261 signal: "mouse,up,1";
263 action: STATE_SET "visible" 0.0;
264 target: "item_image";
268 signal: "mouse,down,1";
270 action: STATE_SET "clicked" 0.0;
274 name: "item_unclick2";
275 signal: "mouse,up,1";
277 action: STATE_SET "default" 0.0;
278 transition: DECELERATE 0.5;
282 name: "item_unclick3";
283 signal: "mouse,up,1";
285 action: SIGNAL_EMIT "elm,action,click" "";
287 program { name: "text_show";
288 signal: "elm,state,text,visible";
291 set_int(menu_text_visible, 1);
292 set_state(PART:"elm.text", "visible", 0.0);
295 program { name: "text_hide";
296 signal: "elm,state,text,hidden";
299 set_int(menu_text_visible, 0);
300 set_state(PART:"elm.text", "default", 0.0);
303 program { name: "disable";
304 signal: "elm,state,disabled";
306 action: STATE_SET "disabled" 0.0;
307 target: "item_image";
308 target: "item_image_disabled";
311 target: "over_disabled";
313 after: "disable_text";
315 program { name: "disable_text";
318 v = get_int(menu_text_visible);
320 set_state(PART:"elm.text", "disabled_visible", 0.0);
322 set_state(PART:"elm.text", "disabled", 0.0);
323 set_int(menu_disable, 1);
326 program { name: "item_select";
327 signal: "elm,state,selected";
329 after: "item_mouse_in_2";
330 after: "item_mouse_in_3";
332 program { name: "item_unselect";
333 signal: "elm,state,unselected";
335 after: "item_mouse_out_2";
336 after: "item_mouse_out_3";
338 program { name: "enable";
339 signal: "elm,state,enabled";
341 action: STATE_SET "default" 0.0;
342 target: "item_image";
343 target: "item_image_disabled";
346 target: "over_disabled";
348 after: "enable_text";
350 program { name: "enable_text";
353 v = get_int(menu_text_visible);
355 set_state(PART:"elm.text", "visible", 0.0);
357 set_state(PART:"elm.text", "default", 0.0);
358 set_int(menu_disable, 0);
364 group { name: "elm/menu/item_with_submenu/default";
366 image: "bt_base1.png" COMP;
367 image: "bt_base2.png" COMP;
368 image: "bt_hilight.png" COMP;
369 image: "bt_shine.png" COMP;
370 image: "bt_glow.png" COMP;
371 image: "bt_dis_base.png" COMP;
372 image: "bt_dis_hilight.png" COMP;
373 image: "arrow_right.png" COMP;
374 image: "arrow_left.png" COMP;
377 public menu_text_visible; //0:hide (default), 1:visible
378 public menu_disable; //0:enable, 1:disable
381 part { name: "item_image";
383 description { state: "default" 0.0;
384 color: 255 255 255 0;
386 normal: "bt_base2.png";
391 description { state: "visible" 0.0;
392 inherit: "default" 0.0;
393 color: 255 255 255 255;
395 description { state: "clicked" 0.0;
396 inherit: "default" 0.0;
397 inherit: "visible" 0.0;
398 image.normal: "bt_base1.png";
401 description { state: "disabled" 0.0;
402 inherit: "default" 0.0;
405 part { name: "item_image_disabled";
407 description { state: "default" 0.0;
408 color: 255 255 255 0;
410 normal: "bt_dis_base.png";
415 description { state: "disabled" 0.0;
416 inherit: "default" 0.0;
417 color: 255 255 255 255;
420 part { name: "arrow";
422 description { state: "default" 0.0;
423 color: 255 255 255 255;
426 aspect_preference: BOTH;
428 normal: "arrow_right.png";
431 description { state: "rtl" 0.0;
432 inherit: "default" 0.0;
433 image.normal: "arrow_left.png";
436 part { name: "elm.swallow.content";
438 description { state: "default" 0.0;
444 rel2.relative: 0.0 1.0;
446 aspect_preference: VERTICAL;
455 description { state: "default" 0.0;
457 rel1.to_x: "elm.swallow.content";
458 rel1.relative: 1.0 0.0;
463 font: "Sans,Edje-Vera";
467 text_class: "menu_item";
470 description { state: "visible" 0.0;
471 inherit: "default" 0.0;
475 description { state: "selected" 0.0;
476 inherit: "default" 0.0;
477 inherit: "visible" 0.0;
478 color: 254 254 254 255;
480 description { state: "disabled" 0.0;
481 inherit: "default" 0.0;
484 description { state: "disabled_visible" 0.0;
485 inherit: "default" 0.0;
486 inherit: "visible" 0.0;
490 part { name: "over1";
492 description { state: "default" 0.0;
493 color: 255 255 255 0;
494 rel2.relative: 1.0 0.5;
496 normal: "bt_hilight.png";
500 description { state: "visible" 0.0;
501 inherit: "default" 0.0;
502 color: 255 255 255 255;
504 description { state: "disabled" 0.0;
505 inherit: "default" 0.0;
508 part { name: "over_disabled";
510 description { state: "default" 0.0;
511 color: 255 255 255 0;
512 rel2.relative: 1.0 0.5;
514 normal: "bt_dis_hilight.png";
518 description { state: "disabled" 0.0;
519 inherit: "default" 0.0;
520 color: 255 255 255 255;
523 part { name: "over2";
526 ignore_flags: ON_HOLD;
527 description { state: "default" 0.0;
529 normal: "bt_shine.png";
533 description { state: "disabled" 0.0;
534 inherit: "default" 0.0;
538 part { name: "over3";
541 description { state: "default" 0.0;
542 color: 255 255 255 0;
544 normal: "bt_glow.png";
549 description { state: "clicked" 0.0;
550 inherit: "default" 0.0;
552 color: 255 255 255 255;
555 part { name: "disabler";
557 description { state: "default" 0.0;
561 description { state: "disabled" 0.0;
562 inherit: "default" 0.0;
570 name: "item_mouse_in";
573 action: SIGNAL_EMIT "elm,action,activate" "";
574 after: "item_mouse_in_2";
575 after: "item_mouse_in_3";
578 name: "item_mouse_in_2";
579 transition: DECELERATE 0.5;
582 v = get_int(menu_text_visible);
583 d = get_int(menu_disable);
586 run_program(PROGRAM:"selected_text");
590 name: "item_mouse_in_3";
591 action : STATE_SET "visible" 0.0;
592 target: "item_image";
594 transition: DECELERATE 0.5;
597 name: "selected_text";
598 action: STATE_SET "selected" 0.0;
600 transition: DECELERATE 0.5;
606 name: "item_mouse_out";
609 after: "item_mouse_out_2";
610 after: "item_mouse_out_3";
613 name: "item_mouse_out_2";
614 transition: DECELERATE 0.5;
617 v = get_int(menu_text_visible);
618 d = get_int(menu_disable);
621 run_program(PROGRAM:"visible_text");
625 name: "item_mouse_out_3";
626 action: STATE_SET "default" 0.0;
627 target: "item_image";
629 transition: DECELERATE 0.5;
632 name: "visible_text";
633 action: STATE_SET "visible" 0.0;
635 transition: DECELERATE 0.5;
640 name: "item_unclick";
641 signal: "mouse,up,1";
643 action: STATE_SET "visible" 0.0;
644 target: "item_image";
648 signal: "mouse,down,1";
650 action: STATE_SET "clicked" 0.0;
654 name: "item_unclick2";
655 signal: "mouse,up,1";
657 action: STATE_SET "default" 0.0;
658 transition: DECELERATE 0.5;
662 name: "item_unclick3";
663 signal: "mouse,up,1";
665 action: SIGNAL_EMIT "elm,action,click" "";
671 action: SIGNAL_EMIT "elm,action,open" "";
673 program { name: "text_show";
674 signal: "elm,state,text,visible";
677 set_int(menu_text_visible, 1);
678 set_state(PART:"elm.text", "visible", 0.0);
681 program { name: "text_hide";
682 signal: "elm,state,text,hidden";
685 set_int(menu_text_visible, 0);
686 set_state(PART:"elm.text", "default", 0.0);
689 program { name: "disable";
690 signal: "elm,state,disabled";
692 action: STATE_SET "disabled" 0.0;
693 target: "item_image";
694 target: "item_image_disabled";
697 target: "over_disabled";
699 after: "disable_text";
701 program { name: "disable_text";
705 get_state(PART:"elm.text", st, 30, vl);
706 if (!strcmp(st, "visible"))
707 set_state(PART:"elm.text", "disabled_visible", 0.0);
708 else if (!strcmp(st, "default"))
709 set_state(PART:"elm.text", "disabled", 0.0);
712 program { name: "enable";
713 signal: "elm,state,enabled";
715 action: STATE_SET "default" 0.0;
716 target: "item_image";
717 target: "item_image_disabled";
720 target: "over_disabled";
722 after: "enable_text";
724 program { name: "enable_text";
727 v = get_int(menu_text_visible);
729 set_state(PART:"elm.text", "visible", 0.0);
731 set_state(PART:"elm.text", "default", 0.0);
732 set_int(menu_disable, 0);
735 program { name: "to_rtl";
736 signal: "edje,state,rtl";
738 action: STATE_SET "rtl" 0.0;
741 program { name: "to_ltr";
742 signal: "edje,state,ltr";
744 action: STATE_SET "default" 0.0;
750 group { name: "elm/menu/separator/default";
752 image: "separator_h.png" COMP;
755 part { name: "separator"; // separator group
756 description { state: "default" 0.0;
761 normal: "separator_h.png";