EFL migration revision 67547
[framework/uifw/elementary.git] / tests / data / themes / widgets / ctxpopup.edc
1 group { name: "elm/scroller/base/ctxpopup";
2    data {
3       item: "focus_highlight" "on";
4    }
5    script {
6       public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
7       public timer0(val) {
8          new v;
9          v = get_int(sbvis_v);
10          if (v) {
11             v = get_int(sbalways_v);
12             if(!v) {
13                emit("do-hide-vbar", "");
14                set_int(sbvis_v, 0);
15             }
16          }
17          v = get_int(sbvis_h);
18          if (v) {
19             v = get_int(sbalways_h);
20             if(!v) {
21                emit("do-hide-hbar", "");
22                set_int(sbvis_h, 0);
23             }
24          }
25          set_int(sbvis_timer, 0);
26          return 0;
27       }
28    }
29    images {
30       image: "bt_sm_base2.png" COMP;
31       image: "bt_sm_shine.png" COMP;
32       image: "bt_sm_hilight.png" COMP;
33       image: "sl_bt2_2.png" COMP;
34    }
35    parts {
36       part { name: "clipper";
37          type: RECT;
38          mouse_events: 0;
39          scale: 1;
40          description { state: "default" 0.0;
41          }
42       }
43       part { name: "elm.swallow.content";
44          clip_to: "clipper";
45          type: SWALLOW;
46          scale: 1;
47          description { state: "default" 0.0;
48             align: 0.5 0.5;
49          }
50       }
51       part { name: "focus_highlight";
52          mouse_events: 0;
53          description { state: "default" 0.0;
54             rel1.offset: -1 -1;
55             rel2.offset: 0 0;
56             image { normal: "sl_bt2_2.png";
57                border: 7 7 7 7;
58                middle: 0;
59             }
60             fill.smooth : 0;
61             color: 200 155 0 0;
62          }
63          description { state: "enabled" 0.0;
64             inherit: "default" 0.0;
65             color: 200 155 0 255;
66          }
67       }
68       part { name: "sb_vbar_clip_master";
69          type: RECT;
70          mouse_events: 0;
71          description { state: "default" 0.0;
72          }
73          description { state: "hidden" 0.0;
74             visible: 0;
75             color: 255 255 255 0;
76          }
77       }
78       part { name: "sb_vbar_clip";
79          clip_to:"sb_vbar_clip_master";
80          type: RECT;
81          mouse_events: 0;
82          scale: 1;
83          description { state: "default" 0.0;
84             align: 0.0 0.0;
85             rel2{ to:"clipper"; relative: 1.0 1.0; }
86          }
87          description { state: "hidden" 0.0;
88             visible: 0;
89             color: 255 255 255 0;
90          }
91       }
92       part { name: "sb_vbar";
93          type: RECT;
94          mouse_events: 0;
95          scale: 1;
96          description { state: "default" 0.0;
97             fixed: 1 1;
98             visible: 0;
99             align: 1.0 0.0;
100             rel1{ to:"clipper"; relative: 1.0 0.0; }
101             rel2{ to:"clipper"; relative: 1.0 1.0; }
102          }
103       }
104       part { name: "elm.dragable.vbar";
105          clip_to: "sb_vbar_clip";
106          mouse_events: 0;
107          scale: 1;
108          dragable {
109             x: 0 0 0;
110             y: 1 1 0;
111             confine: "sb_vbar";
112          }
113          description { state: "default" 0.0;
114             fixed: 1 1;
115             min: 10 17;
116             max: 10 99999;
117             rel1 { relative: 0.5 0.5; to: "sb_vbar"; }
118             rel2 { relative: 0.5  0.5; to: "sb_vbar"; }
119             image { normal: "bt_sm_base2.png";
120                border: 6 6 6 6;
121                middle: SOLID;
122             }
123          }
124       }
125       part { name: "sb_vbar_over1";
126          clip_to: "sb_vbar_clip";
127          mouse_events: 0;
128          description { state: "default" 0.0;
129             rel1.to: "elm.dragable.vbar";
130             rel2.relative: 1.0 0.5;
131             rel2.to: "elm.dragable.vbar";
132             image { normal: "bt_sm_hilight.png";
133                border: 6 6 6 0;
134             }
135          }
136       }
137       part { name: "sb_vbar_over2";
138          clip_to: "sb_vbar_clip";
139          mouse_events: 0;
140          description { state: "default" 0.0;
141             rel1.to: "elm.dragable.vbar";
142             rel2.to: "elm.dragable.vbar";
143             image { normal: "bt_sm_shine.png";
144                border: 6 6 6 0;
145             }
146          }
147       }
148       part { name: "sb_hbar_clip_master";
149          type: RECT;
150          mouse_events: 0;
151          description { state: "default" 0.0;
152          }
153          description { state: "hidden" 0.0;
154             visible: 0;
155             color: 255 255 255 0;
156          }
157       }
158       part { name: "sb_hbar_clip";
159          clip_to: "sb_hbar_clip_master";
160          type: RECT;
161          mouse_events: 0;
162          scale: 1;
163          description { state: "default" 0.0;
164             align: 0.0 0.0;
165             rel2{ to:"clipper"; relative: 1.0 1.0; }
166          }
167          description { state: "hidden" 0.0;
168             visible: 0;
169             color: 255 255 255 0;
170          }
171       }
172       part { name: "sb_hbar";
173          type: RECT;
174          mouse_events: 0;
175          scale: 1;
176          description { state: "default" 0.0;
177             fixed: 1 1;
178             visible: 0;
179             align: 0.0 1.0;
180             rel1 { to:"clipper"; relative: 0.0 1.0; }
181             rel2 { to:"clipper"; relative: 1.0 1.0; }
182          }
183       }
184       part { name: "elm.dragable.hbar";
185          clip_to: "sb_hbar_clip";
186          mouse_events: 0;
187          scale: 1;
188          dragable {
189             x: 1 1 0;
190             y: 0 0 0;
191             confine: "sb_hbar";
192          }
193          description { state: "default" 0.0;
194             min: 17 10;
195             max: 99999 10;
196             fixed: 1 1;
197             rel1 { relative: 0.5  0.5; to: "sb_hbar"; }
198             rel2 { relative: 0.5  0.5; to: "sb_hbar"; }
199             image { normal: "bt_sm_base2.png";
200                border: 4 4 4 4;
201                middle: SOLID;
202             }
203          }
204       }
205       part { name: "sb_hbar_over1";
206          clip_to: "sb_hbar_clip";
207          mouse_events: 0;
208          description { state: "default" 0.0;
209             rel1.to: "elm.dragable.hbar";
210             rel2.relative: 1.0 0.5;
211             rel2.to: "elm.dragable.hbar";
212             image { normal: "bt_sm_hilight.png";
213                border: 6 6 6 0;
214             }
215          }
216       }
217       part { name: "sb_hbar_over2";
218          clip_to: "sb_hbar_clip";
219          mouse_events: 0;
220          description { state: "default" 0.0;
221             rel1.to: "elm.dragable.hbar";
222             rel2.to: "elm.dragable.hbar";
223             image { normal: "bt_sm_shine.png";
224                border: 6 6 6 0;
225             }
226          }
227       }
228    }
229    programs {
230       program { name: "load";
231          signal: "load";
232          source: "";
233          script {
234             set_state(PART:"sb_vbar_clip", "hidden", 0.0);
235             set_state(PART:"sb_hbar_clip", "hidden", 0.0);
236             set_int(sbvis_v, 0);
237             set_int(sbvis_h, 0);
238             set_int(sbalways_v, 0);
239             set_int(sbalways_h, 0);
240             set_int(sbvis_timer, 0);
241          }
242       }
243       program { name: "vbar_show";
244          signal: "elm,action,show,vbar";
245          source: "elm";
246          action: STATE_SET "default" 0.0;
247          target: "sb_vbar_clip_master";
248       }
249       program { name: "vbar_hide";
250          signal: "elm,action,hide,vbar";
251          source: "elm";
252          action:  STATE_SET "hidden" 0.0;
253          target: "sb_vbar_clip_master";
254       }
255       program { name: "vbar_show_always";
256          signal: "elm,action,show_always,vbar";
257          source: "elm";
258          script {
259             new v;
260             v = get_int(sbvis_v);
261             v |= get_int(sbalways_v);
262             if (!v) {
263                set_int(sbalways_v, 1);
264                emit("do-show-vbar", "");
265                set_int(sbvis_v, 1);
266             }
267          }
268       }
269       program { name: "vbar_show_notalways";
270          signal: "elm,action,show_notalways,vbar";
271          source: "elm";
272          script {
273             new v;
274             v = get_int(sbalways_v);
275             if (v) {
276                set_int(sbalways_v, 0);
277                v = get_int(sbvis_v);
278                if (!v) {
279                   emit("do-hide-vbar", "");
280                   set_int(sbvis_v, 0);
281                }
282             }
283          }
284       }
285       program { name: "sb_vbar_show";
286          signal: "do-show-vbar";
287          source: "";
288          action: STATE_SET "default" 0.0;
289          transition: LINEAR 1.0;
290          target: "sb_vbar_clip";
291       }
292       program { name: "sb_vbar_hide";
293          signal: "do-hide-vbar";
294          source: "";
295          action: STATE_SET "hidden" 0.0;
296          transition: LINEAR 1.0;
297          target: "sb_vbar_clip";
298       }
299       program { name: "hbar_show";
300          signal: "elm,action,show,hbar";
301          source: "elm";
302          action: STATE_SET "default" 0.0;
303          target: "sb_hbar_clip_master";
304       }
305       program { name: "hbar_hide";
306          signal: "elm,action,hide,hbar";
307          source: "elm";
308          action:  STATE_SET "hidden" 0.0;
309          target: "sb_hbar_clip_master";
310       }
311       program { name: "hbar_show_always";
312          signal: "elm,action,show_always,hbar";
313          source: "elm";
314          script {
315             new v;
316             v = get_int(sbvis_h);
317             v |= get_int(sbalways_h);
318             if (!v) {
319                set_int(sbalways_h, 1);
320                emit("do-show-hbar", "");
321                set_int(sbvis_h, 1);
322             }
323          }
324       }
325       program { name: "hbar_show_notalways";
326          signal: "elm,action,show_notalways,hbar";
327          source: "elm";
328          script {
329             new v;
330             v = get_int(sbalways_h);
331             if (v) {
332                set_int(sbalways_h, 0);
333                v = get_int(sbvis_h);
334                if (!v) {
335                   emit("do-hide-hbar", "");
336                   set_int(sbvis_h, 0);
337                }
338             }
339          }
340       }
341       program { name: "sb_hbar_show";
342          signal: "do-show-hbar";
343          source: "";
344          action: STATE_SET "default" 0.0;
345          transition: LINEAR 1.0;
346          target: "sb_hbar_clip";
347       }
348       program { name: "sb_hbar_hide";
349          signal: "do-hide-hbar";
350          source: "";
351          action: STATE_SET "hidden" 0.0;
352          transition: LINEAR 1.0;
353          target: "sb_hbar_clip";
354       }
355       program { name: "scroll";
356          signal: "elm,action,scroll";
357          source: "elm";
358          script {
359             new v;
360             v = get_int(sbvis_v);
361             v |= get_int(sbalways_v);
362             if (!v) {
363                emit("do-show-vbar", "")
364                set_int(sbvis_v, 1);
365             }
366             v = get_int(sbvis_h);
367             v |= get_int(sbalways_h);
368             if (!v) {
369                emit("do-show-hbar", "");
370                set_int(sbvis_h, 1);
371             }
372             v = get_int(sbvis_timer);
373             if (v > 0) cancel_timer(v);
374             v = timer(1.0, "timer0", 0);
375             set_int(sbvis_timer, v);
376          }
377       }
378       program { name: "highlight_show";
379          signal: "elm,action,focus_highlight,show";
380          source: "elm";
381          action: STATE_SET "enabled" 0.0;
382          transition: ACCELERATE 0.3;
383          target: "focus_highlight";
384       }
385       program { name: "highlight_hide";
386          signal: "elm,action,focus_highlight,hide";
387          source: "elm";
388          action: STATE_SET "default" 0.0;
389          transition: DECELERATE 0.3;
390          target: "focus_highlight";
391       }
392    }
393 }
394 ///////////////////////////////////////////////////////////////////////////////
395 group { name: "elm/ctxpopup/bg/default";
396    parts {
397       part { name: "ctxpopup_bg";
398          type: RECT;
399          mouse_events: 1;
400          description { state: "default" 0.0;
401             color: 0 0 0 0;
402          }
403          description { state: "visible" 0.0;
404             inherit: "default" 0.0;
405             color: 0 0 0 64;
406          }
407       }
408    }
409    programs {
410       program { name: "clicked_event";
411          signal: "mouse,clicked,1";
412          source: "ctxpopup_bg";
413          action: SIGNAL_EMIT "elm,action,click" "";
414       }
415       program { name: "show";
416          signal: "elm,state,show";
417          source: "elm";
418          action: STATE_SET "visible" 0.0;
419          target: "ctxpopup_bg";
420          transition: LINEAR 0.25;
421       }
422       program { name: "hide";
423          signal: "elm,state,hide";
424          source: "elm";
425          action: STATE_SET "default" 0.0;
426          target: "ctxpopup_bg";
427       }
428    }
429 }
430 ///////////////////////////////////////////////////////////////////////////////
431 group { name: "elm/ctxpopup/base/default";
432    images {
433       image: "bt_base2.png" COMP;
434       image: "bt_hilight.png" COMP;
435       image: "bt_shine.png" COMP;
436    }
437    parts {
438       part { name: "arrow_area_left";
439          type: RECT;
440          mouse_events: 0;
441          clip_to: "ctxpopup_clip";
442          description { state: "default" 0.0;
443             visible: 0;
444             min: 20 0;
445             fixed: 1 1;
446             align: 1 0.5;
447             rel1 {
448                to_y: "base";
449             }
450             rel2 {
451                relative:0 1;
452                to:"base";
453             }
454          }
455       }
456       part { name: "arrow_area_right";
457          type: RECT;
458          mouse_events: 0;
459          clip_to: "ctxpopup_clip";
460          description { state: "default" 0.0;
461             visible: 0;
462             min: 20 0;
463             fixed: 1 1;
464             align: 0 0.5;
465             rel1 {
466                relative: 1 0;
467                to:"base";
468             }
469             rel2 {
470                to_y: "base";
471             }
472          }
473       }
474       part { name: "arrow_area_up";
475          type: RECT;
476          mouse_events: 0;
477          clip_to: "ctxpopup_clip";
478          description { state: "default" 0.0;
479             visible: 0;
480             min: 0 20;
481             fixed: 1 1;
482             align: 0.5 1;
483             rel1 {
484                to_x: "base";
485             }
486             rel2 {
487                relative: 1 0;
488                to:"base";
489             }
490          }
491       }
492       part { name: "arrow_area_down";
493          type: RECT;
494          mouse_events: 0;
495          clip_to: "ctxpopup_clip";
496          description { state: "default" 0.0;
497             visible: 0;
498             min: 0 20;
499             fixed: 1 1;
500             align: 0.5 0;
501             rel1 {
502                relative: 0 1;
503                to:"base";
504             }
505             rel2 {
506                to_x: "base";
507             }
508          }
509       }
510       part { name: "elm.swallow.arrow_up";
511          type: SWALLOW;
512          mouse_events: 0;
513          scale: 1;
514          clip_to: "ctxpopup_clip";
515          dragable {
516             x: 1 1 0;
517             y: 1 1 0;
518             confine: "arrow_area_up";
519          }
520          description { state: "default" 0.0;
521             min: 36 20;
522             fixed: 1 1;
523             visible: 1;
524          }
525       }
526       part { name: "elm.swallow.arrow_down";
527          type: SWALLOW;
528          mouse_events: 0;
529          scale: 1;
530          clip_to: "ctxpopup_clip";
531          dragable {
532             x: 1 1 0;
533             y: 1 1 0;
534             confine: "arrow_area_down";
535          }
536          description { state: "default" 0.0;
537             min: 36 20;
538             fixed: 1 1;
539             visible: 1;
540          }
541       }
542       part { name: "elm.swallow.arrow_left";
543          type: SWALLOW;
544          mouse_events: 0;
545          scale: 1;
546          clip_to: "ctxpopup_clip";
547          dragable {
548             x: 1 1 0;
549             y: 1 1 0;
550             confine: "arrow_area_left";
551          }
552          description { state: "default" 0.0;
553             min: 20 36;
554             fixed: 1 1;
555             visible: 1;
556          }
557       }
558       part { name: "elm.swallow.arrow_right";
559          type: SWALLOW;
560          mouse_events: 0;
561          scale: 1;
562          clip_to: "ctxpopup_clip";
563          dragable {
564             x: 1 1 0;
565             y: 1 1 0;
566             confine: "arrow_area_right";
567          }
568          description { state: "default" 0.0;
569             min: 20 36;
570             fixed: 1 1;
571             visible: 1;
572          }
573       }
574       part { name: "base";
575          scale: 1;
576          clip_to: "ctxpopup_clip";
577          description { state: "default" 0.0;
578             rel1.offset: -3 -3;
579             rel2.offset: 3 3;
580             image { normal: "bt_base2.png";
581                border: 7 7 7 7;
582             }
583          }
584       }
585       part { name: "over1";
586          scale: 1;
587          clip_to: "ctxpopup_clip";
588          description { state: "default" 0.0;
589             rel1.to: "base";
590             rel2.to: "base";
591             rel2.relative: 1.0 0.5;
592             image { normal: "bt_hilight.png";
593                border: 7 7 7 0;
594             }
595          }
596       }
597       part { name: "over2";
598          scale: 1;
599          clip_to: "ctxpopup_clip";
600          description { state: "default" 0.0;
601             rel1.to: "base";
602             rel2.to: "base";
603             image { normal: "bt_shine.png";
604                border: 7 7 7 7;
605             }
606          }
607       }
608       part { name: "elm.swallow.content";
609          type: SWALLOW;
610          clip_to: "ctxpopup_clip";
611          description { state: "default" 0.0;
612             rel1 { to:"base"; offset: 4 4; }
613             rel2 { to:"base"; offset: -5 -5; }
614          }
615       }
616       part { name: "ctxpopup_clip";
617          type: RECT;
618          description { state: "default" 0.0;
619             color: 255 255 255 0;
620             rel1 { to:"base"; relative: 0 0; }
621             rel2 { to:"base"; relative: 0 1; }
622          }
623          description { state: "up" 0.0;
624             color: 255 255 255 0;
625             rel1 { to:"arrow_area_down"; relative: 0 1; }
626             rel2 { to:"arrow_area_down"; relative: 1 1; }
627          }
628          description { state: "left" 0.0;
629             color: 255 255 255 0;
630             rel1 { to:"arrow_area_right"; relative: 1 0; }
631             rel2 { to:"arrow_area_right"; relative: 1 1; }
632          }
633          description { state: "right" 0.0;
634             color: 255 255 255 0;
635             rel1 { to:"arrow_area_left"; relative: 0 0; }
636             rel2 { to:"arrow_area_left"; relative: 0 1; }
637          }
638          description { state: "down" 0.0;
639             color: 255 255 255 0;
640             rel1 { to:"arrow_area_up"; relative: 0 0; }
641             rel2 { to:"arrow_area_up"; relative: 1 0; }
642          }
643          description { state: "visible" 0.0;
644             color: 255 255 255 255;
645             rel1 { to_x:"arrow_area_left"; to_y:"arrow_area_up"; }
646             rel2 { to_x:"arrow_area_right"; to_y:"arrow_area_down"; }
647          }
648       }
649    }
650    programs {
651       program { name: "show";
652          signal: "elm,state,show";
653          source: "elm";
654          action: STATE_SET "visible" 0.0;
655          transition: LINEAR 0.25;
656          target: "ctxpopup_clip";
657       }
658       program { name: "up";
659          signal: "elm,state,show,up";
660          source: "elm";
661          action: STATE_SET "up" 0.0;
662          transition: LINEAR 0.25;
663          target: "ctxpopup_clip";
664       }
665       program { name: "left";
666          signal: "elm,state,show,left";
667          source: "elm";
668          action: STATE_SET "left" 0.0;
669          transition: LINEAR 0.25;
670          target: "ctxpopup_clip";
671       }
672       program { name: "right";
673          signal: "elm,state,show,right";
674          source: "elm";
675          action: STATE_SET "right" 0.0;
676          transition: LINEAR 0.25;
677          target: "ctxpopup_clip";
678       }
679       program { name: "down";
680          signal: "elm,state,show,down";
681          source: "elm";
682          action: STATE_SET "down" 0.0;
683          transition: LINEAR 0.25;
684          target: "ctxpopup_clip";
685       }
686    }
687 }
688 ///////////////////////////////////////////////////////////////////////////////
689 group { name: "elm/ctxpopup/arrow/default";
690    images {
691       image: "ctxpopup_arrow_left.png" COMP;
692       image: "ctxpopup_arrow_right.png" COMP;
693       image: "ctxpopup_arrow_up.png" COMP;
694       image: "ctxpopup_arrow_down.png" COMP;
695    }
696    parts {
697       part { name: "ctxpopup_arrow";
698          type: IMAGE;
699          scale: 1;
700          description {
701             state: "default" 0.0;
702             min: 36 36;
703             fixed: 1 1;
704             visible: 0;
705             align: 0.5 0.5;
706          }
707          description {
708             state: "left" 0.0;
709             min: 20 36;
710             fixed: 1 1;
711             align: 0.0 0.5;
712             rel1 { offset: 3 0; }
713             rel2 { offset: 2 -1; }
714             image { normal: "ctxpopup_arrow_left.png"; }
715          }
716          description { state: "right" 0.0;
717             min: 20 36;
718             fixed: 1 1;
719             align: 1.0 0.5;
720             rel1 { offset: -5 0; }
721             rel2 { offset: -6 -1; }
722             image { normal: "ctxpopup_arrow_right.png"; }
723          }
724          description { state: "top" 0.0;
725             min: 36 20;
726             fixed: 1 1;
727             align: 0.5 0.0;
728             rel1 { offset: 0 5; }
729             rel2 { offset: -1 4; }
730             image { normal: "ctxpopup_arrow_up.png"; }
731          }
732          description { state: "bottom" 0.0;
733             min: 36 20;
734             fixed: 1 1;
735             align: 0.5 1.0;
736             rel1 { offset: 0 -5; }
737             rel2 { offset: -1 -6; }
738             image { normal: "ctxpopup_arrow_down.png"; }
739          }
740       }
741    }
742    programs {
743       program { name: "enable_left_arrow";
744          signal: "elm,state,left";
745          source: "elm";
746          action: STATE_SET "left" 0.0;
747          target: "ctxpopup_arrow";
748       }
749       program { name: "enable_right_arrow";
750          signal: "elm,state,right";
751          source: "elm";
752          action: STATE_SET "right" 0.0;
753          target: "ctxpopup_arrow";
754       }
755       program { name: "enable_top_arrow";
756          signal: "elm,state,top";
757          source: "elm";
758          action: STATE_SET "top" 0.0;
759          target: "ctxpopup_arrow";
760       }
761       program { name: "enable_bottom_arrow";
762          signal: "elm,state,bottom";
763          source: "elm";
764          action: STATE_SET "bottom" 0.0;
765          target: "ctxpopup_arrow";
766       }
767    }
768 }
769 ///////////////////////////////////////////////////////////////////////////////
770 group {
771    name: "elm/ctxpopup/icon_text_style_item/default";
772    alias: "elm/ctxpopup/text_style_item/default";
773    alias: "elm/ctxpopup/icon_style_item/default";
774    images {
775       image: "hoversel_entry_bg.png" COMP;
776    }
777    parts {
778       part { name: "event";
779          mouse_events: 1;
780          description { state: "default" 0.0;
781          }
782       }
783       part { name: "bg";
784          mouse_events: 0;
785          description { state: "default" 0.0;
786             rel1.offset: 2 2;
787             rel2.offset: -3 -3;
788             image { normal:"hoversel_entry_bg.png";
789                border: 0 0 2 2;
790             }
791             fill.smooth: 0;
792             color: 255 255 255 0;
793          }
794          description { state: "clicked" 0.0;
795             inherit: "default" 0.0;
796             color: 255 255 255 255;
797          }
798       }
799       part { name: "elm.swallow.icon";
800          type: SWALLOW;
801          clip_to: "disclip";
802          scale: 1;
803          description { state: "default" 0.0;
804             min: 25 25;
805             max: 25 25;
806             align: 0 0.5;
807             aspect: 1.0 1.0;
808             rel1 { offset: 10 10; }
809             rel2 { offset: 0 -10; }
810          }
811       }
812       part { name: "elm.text";
813          type: TEXT;
814          mouse_events: 0;
815          clip_to: "disclip";
816          scale: 1;
817          description { state: "default" 0.0;
818             min: 1 40;
819             fixed: 0 1;
820             align: 0.5 0.5;
821             rel1 { relative: 1.0 0.0; to: "elm.swallow.icon"; offset: 10 0; }
822             rel2 { relative: 1.0 1.0; offset: -11 -1; }
823             color: 255 255 255 255;
824             text {
825                font: "Sans";
826                size: 10;
827                align: 0.0 0.5;
828                min: 1 1;
829             }
830          }
831          description { state: "clicked" 0.0;
832             inherit: "default" 0.0;
833             color: 0 0 0 255;
834          }
835       }
836       part { name: "over1";
837          mouse_events: 1;
838          repeat_events: 1;
839          ignore_flags: ON_HOLD;
840          description { state: "default" 0.0;
841             color: 255 255 255 0;
842          }
843          description { state: "clicked" 0.0;
844             inherit: "default" 0.0;
845             color: 255 255 255 255;
846          }
847       }
848       part { name: "over2";
849          mouse_events: 1;
850          repeat_events: 1;
851          description { state: "default" 0.0;
852             color: 255 255 255 0;
853          }
854          description { state: "clicked" 0.0;
855             inherit: "default" 0.0;
856             color: 255 255 255 255;
857          }
858       }
859       part { name: "disclip";
860          type: RECT;
861          description { state: "default" 0.0;
862             color: 255 255 255 255;
863          }
864          description { state: "enabled" 0.0;
865             color: 127 127 127 127;
866          }
867       }
868       part { name: "blocker";
869          description { state: "default" 0.0;
870             visible: 0;
871          }
872          description { state: "enabled" 0.0;
873             visible: 1;
874             color: 0 0 0 0;
875          }
876       }
877    }
878    programs {
879       program {
880          name: "item_unclick";
881          signal: "mouse,up,1";
882          source: "over1";
883          action: SIGNAL_EMIT "elm,action,click" "";
884       }
885       program { name: "disable";
886          signal: "elm,state,disabled";
887          source: "elm";
888          action: STATE_SET "enabled" 0.0;
889          target: "disclip";
890          target: "blocker";
891       }
892       program { name: "enable";
893          signal: "elm,state,enabled";
894          source: "elm";
895          action: STATE_SET "default" 0.0;
896          target: "disclip";
897          target: "blocker";
898       }
899       program { name: "item_click2";
900          signal: "mouse,down,1";
901          source: "over2";
902          script {
903             set_state(PART:"elm.text", "clicked", 0.0);
904             set_state(PART:"bg", "clicked", 0.0);
905          }
906       }
907       program { name: "item_unclick2";
908          signal: "mouse,up,1";
909          source: "over2";
910          script {
911             set_state(PART:"elm.text", "default", 0.0);
912             set_state(PART:"bg", "default", 0.0);
913          }
914       }
915    }
916 }
917 ///////////////////////////////////////////////////////////////////////////////
918 group {
919    name: "elm/ctxpopup/item_compress/default";
920    images {
921       image: "hoversel_entry_bg.png" COMP;
922    }
923    parts {
924       part { name: "event";
925          mouse_events: 1;
926          description { state: "default" 0.0;
927          }
928       }
929       part { name: "bg";
930          mouse_events: 0;
931          description { state: "default" 0.0;
932             rel1.offset: 2 2;
933             rel2.offset: -3 -3;
934             image { normal:"hoversel_entry_bg.png";
935                border: 0 0 2 2;
936             }
937             fill.smooth: 0;
938             color: 255 255 255 0;
939          }
940          description { state: "clicked" 0.0;
941             inherit: "default" 0.0;
942             color: 255 255 255 255;
943          }
944       }
945       part { name: "elm.swallow.icon";
946          type: SWALLOW;
947          clip_to: "disclip";
948          scale: 1;
949          description { state: "default" 0.0;
950             min: 25 25;
951             max: 25 25;
952             align: 0 0.5;
953             aspect: 1.0 1.0;
954             rel1 { offset: 10 10; }
955             rel2 { offset: 0 -10; }
956          }
957       }
958       part { name: "elm.text";
959          type: TEXT;
960          mouse_events: 0;
961          clip_to: "disclip";
962          scale: 1;
963          description { state: "default" 0.0;
964             min: 1 40;
965             fixed: 0 1;
966             align: 0.5 0.5;
967             rel1 { relative: 1.0 0.0; to: "elm.swallow.icon"; offset: 10 0; }
968             rel2 { relative: 1.0 1.0; }
969             color: 255 255 255 255;
970             text {
971                font: "Sans";
972                size: 10;
973                min: 0 1;
974                align: 0.0 0.5;
975             }
976          }
977          description { state: "clicked" 0.0;
978             inherit: "default" 0.0;
979             color: 0 0 0 255;
980          }
981       }
982       part { name: "over1";
983          mouse_events: 1;
984          repeat_events: 1;
985          ignore_flags: ON_HOLD;
986          description { state: "default" 0.0;
987             color: 255 255 255 0;
988          }
989          description { state: "clicked" 0.0;
990             inherit: "default" 0.0;
991             color: 255 255 255 255;
992          }
993       }
994       part { name: "over2";
995          mouse_events: 1;
996          repeat_events: 1;
997          description { state: "default" 0.0;
998             color: 255 255 255 0;
999          }
1000          description { state: "clicked" 0.0;
1001             inherit: "default" 0.0;
1002             color: 255 255 255 255;
1003          }
1004       }
1005       part { name: "disclip";
1006          type: RECT;
1007          description { state: "default" 0.0;
1008             color: 255 255 255 255;
1009          }
1010          description { state: "enabled" 0.0;
1011             color: 127 127 127 127;
1012          }
1013       }
1014       part { name: "blocker";
1015          description { state: "default" 0.0;
1016             visible: 0;
1017          }
1018          description { state: "enabled" 0.0;
1019             visible: 1;
1020             color: 0 0 0 0;
1021          }
1022       }
1023    }
1024    programs {
1025       program {
1026          name: "item_unclick";
1027          signal: "mouse,up,1";
1028          source: "over1";
1029          action: SIGNAL_EMIT "elm,action,click" "";
1030       }
1031       program { name: "disable";
1032          signal: "elm,state,disabled";
1033          source: "elm";
1034          action: STATE_SET "enabled" 0.0;
1035          target: "disclip";
1036          target: "blocker";
1037       }
1038       program { name: "enable";
1039          signal: "elm,state,enabled";
1040          source: "elm";
1041          action: STATE_SET "default" 0.0;
1042          target: "disclip";
1043          target: "blocker";
1044       }
1045       program { name: "item_click2";
1046          signal: "mouse,down,1";
1047          source: "over2";
1048          script {
1049             set_state(PART:"elm.text", "clicked", 0.0);
1050             set_state(PART:"bg", "clicked", 0.0);
1051          }
1052       }
1053       program { name: "item_unclick2";
1054          signal: "mouse,up,1";
1055          source: "over2";
1056          script {
1057             set_state(PART:"elm.text", "default", 0.0);
1058             set_state(PART:"bg", "default", 0.0);
1059          }
1060       }
1061    }
1062 }