SVN Merging for button, radio, check and toggle
[framework/uifw/elementary.git] / data / themes / widgets / button.edc
1 group { name: "elm/button/base/default";
2    alias: "elm/button/base/popup_button/default";
3    images {
4       image: "bt_base1.png" COMP;
5       image: "bt_base2.png" COMP;
6       image: "bt_hilight.png" COMP;
7       image: "bt_shine.png" COMP;
8       image: "bt_glow.png" COMP;
9       image: "bt_dis_base.png" COMP;
10       image: "bt_dis_hilight.png" COMP;
11    }
12    parts {
13       part { name: "button_image";
14          mouse_events: 1;
15          description { state: "default" 0.0;
16             min: 15 15;
17             image {
18                normal: "bt_base2.png";
19                border: 7 7 7 7;
20             }
21             image.middle: SOLID;
22          }
23          description { state: "clicked" 0.0;
24             inherit: "default" 0.0;
25             image.normal: "bt_base1.png";
26          }
27          description { state: "disabled" 0.0;
28             inherit:  "default" 0.0;
29             image {
30                normal: "bt_dis_base.png";
31                border: 4 4 4 4;
32             }
33          }
34       }
35       part { name: "elm.swallow.content";
36          type: SWALLOW;
37          description { state: "default" 0.0;
38             fixed: 1 0;
39             visible: 0;
40             align: 0.0 0.5;
41             rel1.offset: 4 4;
42             rel2.offset: 3 -5;
43             rel2.relative: 0.0 1.0;
44          }
45          description { state: "visible" 0.0;
46             inherit: "default" 0.0;
47             fixed: 1 0;
48             visible: 1;
49             aspect: 1.0 1.0;
50                     //               aspect_preference: VERTICAL;
51             rel2.offset: 4 -5;
52          }
53          description { state: "icononly" 0.0;
54             inherit: "default" 0.0;
55             fixed: 0 0;
56             visible: 1;
57             align: 0.5 0.5;
58                    //               aspect: 1.0 1.0;
59             rel2.offset: -5 -5;
60             rel2.relative: 1.0 1.0;
61             //               aspect_preference: VERTICAL;
62          }
63       }
64       part {
65          name:          "elm.text";
66          type:          TEXT;
67          effect:        SOFT_SHADOW;
68          mouse_events:  0;
69          scale: 1;
70          description { state: "default" 0.0;
71             visible: 0;
72             rel1.to_x: "elm.swallow.content";
73             rel1.relative: 1.0 0.0;
74             rel1.offset: 0 4;
75             rel2.offset: -5 -5;
76             color: 224 224 224 255;
77             color3: 0 0 0 64;
78             text {
79                font:     "Sans,Edje-Vera";
80                size:     10;
81                min:      0 0;
82                align:    0.5 0.5;
83                text_class: "button";
84             }
85          }
86          description { state: "visible" 0.0;
87             inherit: "default" 0.0;
88             visible: 1;
89             text.min: 1 1;
90          }
91          description { state: "disabled" 0.0;
92             inherit: "default" 0.0;
93          }
94          description { state: "disabled_visible" 0.0;
95             inherit: "default" 0.0;
96             color: 0 0 0 128;
97             color3: 0 0 0 0;
98             visible: 1;
99             text.min: 1 1;
100          }
101       }
102       part {          name: "over1";
103          mouse_events: 0;
104          description { state: "default" 0.0;
105             rel2.relative: 1.0 0.5;
106             image {
107                normal: "bt_hilight.png";
108                border: 7 7 7 0;
109             }
110          }
111          description { state: "disabled" 0.0;
112             inherit:  "default" 0.0;
113             image {
114                normal: "bt_dis_hilight.png";
115                border: 4 4 4 0;
116             }
117          }
118       }
119       part { name: "over2";
120          mouse_events: 1;
121          repeat_events: 1;
122          ignore_flags: ON_HOLD;
123          description { state: "default" 0.0;
124             image {
125                normal: "bt_shine.png";
126                border: 7 7 7 7;
127             }
128          }
129          description { state: "disabled" 0.0;
130             inherit:  "default" 0.0;
131             visible: 0;
132          }
133       }
134       part { name: "over3";
135          mouse_events: 1;
136          repeat_events: 1;
137          description { state: "default" 0.0;
138             color: 255 255 255 0;
139             image {
140                normal: "bt_glow.png";
141                border: 12 12 12 12;
142             }
143             fill.smooth : 0;
144          }
145          description { state: "clicked" 0.0;
146             inherit:  "default" 0.0;
147             color: 255 255 255 255;
148          }
149       }
150       part { name: "disabler";
151          type: RECT;
152          description { state: "default" 0.0;
153             color: 0 0 0 0;
154             visible: 0;
155          }
156          description { state: "disabled" 0.0;
157             inherit: "default" 0.0;
158             visible: 1;
159          }
160       }
161    }
162    programs {
163       program {
164          name:   "button_click";
165          signal: "mouse,down,1";
166          source: "over2";
167          action: SIGNAL_EMIT "elm,action,press" "";
168          after: "button_click_anim";
169       }
170       program {
171          name:   "button_click_anim";
172          action: STATE_SET "clicked" 0.0;
173          target: "button_image";
174       }
175       program {
176          name:   "button_unclick";
177          signal: "mouse,up,1";
178          source: "over3";
179          action: SIGNAL_EMIT "elm,action,unpress" "";
180          after: "button_unclick_anim";
181       }
182       program {
183          name:   "button_pressed_anim";
184          signal: "elm,anim,activate";
185          source: "elm";
186          action: STATE_SET "clicked" 0.0;
187          target: "button_image";
188          target: "over3";
189          after: "button_unpressed_anim";
190       }
191       program {
192          name:   "button_unpressed_anim";
193          action: STATE_SET "default" 0.0;
194          transition: DECELERATE 0.5;
195          target: "button_image";
196          target: "over3";
197       }
198       program {
199          name:   "button_unclick_anim";
200          action: STATE_SET "default" 0.0;
201          target: "button_image";
202       }
203       program {
204          name:   "button_click2";
205          signal: "mouse,down,1";
206          source: "over3";
207          action: STATE_SET "clicked" 0.0;
208          target: "over3";
209       }
210       program {
211          name:   "button_unclick2";
212          signal: "mouse,up,1";
213          source: "over3";
214          action: STATE_SET "default" 0.0;
215          transition: DECELERATE 0.5;
216          target: "over3";
217       }
218       program {
219          name:   "button_unclick3";
220          signal: "mouse,clicked,1";
221          source: "over2";
222          action: SIGNAL_EMIT "elm,action,click" "";
223       }
224       program { name: "text_show";
225          signal: "elm,state,text,visible";
226          source: "elm";
227          script {
228             new st[31];
229             new Float:vl;
230             get_state(PART:"elm.swallow.content", st, 30, vl);
231             if (!strcmp(st, "icononly"))
232               set_state(PART:"elm.swallow.content", "visible", 0.0);
233             get_state(PART:"elm.text", st, 30, vl);
234             if (!strcmp(st, "disabled") || (!strcmp(st, "disabled_visible")))
235               set_state(PART:"elm.text", "disabled_visible", 0.0);
236             else
237               set_state(PART:"elm.text", "visible", 0.0);
238          }
239       }
240       program { name: "text_hide";
241          signal: "elm,state,text,hidden";
242          source: "elm";
243          script {
244             new st[31];
245             new Float:vl;
246             get_state(PART:"elm.swallow.content", st, 30, vl);
247             if (!strcmp(st, "visible"))
248             set_state(PART:"elm.swallow.content", "icononly", 0.0);
249             set_state(PART:"elm.text", "default", 0.0);
250             get_state(PART:"elm.text", st, 30, vl);
251             if (!strcmp(st, "default") || (!strcmp(st, "visible")))
252               set_state(PART:"elm.text", "default", 0.0);
253             else
254               set_state(PART:"elm.text", "disabled", 0.0);
255          }
256       }
257       program { name: "icon_show";
258          signal: "elm,state,icon,visible";
259          source: "elm";
260          script {
261             new st[31];
262             new Float:vl;
263             get_state(PART:"elm.text", st, 30, vl);
264             if (!strcmp(st, "visible"))
265             set_state(PART:"elm.swallow.content", "visible", 0.0);
266             else
267             set_state(PART:"elm.swallow.content", "icononly", 0.0);
268          }
269       }
270       program { name: "icon_hide";
271          signal: "elm,state,icon,hidden";
272          source: "elm";
273          action:  STATE_SET "default" 0.0;
274          target: "elm.swallow.content";
275       }
276       program { name: "disable";
277          signal: "elm,state,disabled";
278          source: "elm";
279          script {
280             new st[31];
281             new Float:vl;
282             set_state(PART:"button_image", "disabled", 0.0);
283             set_state(PART:"over1", "disabled", 0.0);
284             set_state(PART:"over2", "disabled", 0.0);
285             set_state(PART:"disabler", "disabled", 0.0);
286             get_state(PART:"elm.text", st, 30, vl);
287             if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
288               set_state(PART:"elm.text", "disabled_visible", 0.0);
289             else
290               set_state(PART:"elm.text", "disabled", 0.0);
291          }
292       }
293       program { name: "enable";
294          signal: "elm,state,enabled";
295          source: "elm";
296          script {
297             new st[31];
298             new Float:vl;
299             set_state(PART:"button_image", "visible", 0.0);
300             set_state(PART:"over1", "visible", 0.0);
301             set_state(PART:"over2", "visible", 0.0);
302             set_state(PART:"disabler", "visible", 0.0);
303             get_state(PART:"elm.text", st, 30, vl);
304             if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
305               set_state(PART:"elm.text", "visible", 0.0);
306             else
307               set_state(PART:"elm.text", "default", 0.0);
308          }
309       }
310    }
311 }
312
313 group { name: "elm/button/base/hoversel_vertical/default";
314    alias: "elm/button/base/hoversel_vertical/entry";
315    alias: "elm/button/base/hoversel_horizontal/default";
316    alias: "elm/button/base/hoversel_horizontal/entry";
317    images {
318       image: "bt_base1.png" COMP;
319       image: "bt_base2.png" COMP;
320       image: "bt_hilight.png" COMP;
321       image: "bt_shine.png" COMP;
322       image: "bt_glow.png" COMP;
323       image: "updown.png" COMP;
324       image: "bt_dis_base.png" COMP;
325       image: "bt_dis_hilight.png" COMP;
326    }
327    parts {
328       part { name: "button_image";
329          mouse_events: 1;
330          description { state: "default" 0.0;
331             image {
332                normal: "bt_base2.png";
333                border: 7 7 7 7;
334             }
335             image.middle: SOLID;
336          }
337          description { state: "clicked" 0.0;
338             inherit: "default" 0.0;
339             image.normal: "bt_base1.png";
340             image.middle: SOLID;
341          }
342          description { state: "disabled" 0.0;
343             inherit:  "default" 0.0;
344             image {
345                normal: "bt_dis_base.png";
346                border: 4 4 4 4;
347             }
348          }
349       }
350       part { name: "arrow";
351          mouse_events: 0;
352          description { state: "default" 0.0;
353             image.normal: "updown.png";
354             aspect: 0.6666666666 0.6666666666;
355             aspect_preference: VERTICAL;
356             rel1.offset: 6 7;
357             rel2.offset: 6 -7;
358             rel2.relative: 0.0 1.0;
359             align: 0.0 0.5;
360          }
361       }
362       part { name: "elm.swallow.content";
363          type: SWALLOW;
364          description { state: "default" 0.0;
365             fixed: 1 0;
366             visible: 0;
367             align: 0.0 0.5;
368             rel1 {
369                to_x: "arrow";
370                offset: 2 4;
371                relative: 1.0 0.0;
372             }
373             rel2 {
374                to_x: "arrow";
375                offset: 1 -5;
376                relative: 1.0 1.0;
377             }
378          }
379          description { state: "visible" 0.0;
380             inherit: "default" 0.0;
381             fixed: 0 0;
382             visible: 1;
383             aspect: 1.0 1.0;
384             aspect_preference: VERTICAL;
385             rel2.offset: 2 -5;
386          }
387          description { state: "icononly" 0.0;
388             inherit: "default" 0.0;
389             fixed: 0 0;
390             visible: 1;
391             align: 0.5 0.5;
392             aspect: 1.0 1.0;
393             rel1 {
394                to_x: "button_image";
395                offset: -5 -5;
396                relative: 1.0 1.0;
397             }
398             aspect_preference: VERTICAL;
399          }
400       }
401       part {
402          name:          "elm.text";
403          type:          TEXT;
404          effect:        SOFT_SHADOW;
405          mouse_events:  0;
406          scale: 1;
407          description { state: "default" 0.0;
408             visible: 0;
409             rel1.to_x: "elm.swallow.content";
410             rel1.relative: 1.0 0.0;
411             rel1.offset: 0 4;
412             rel2.offset: -5 -5;
413             color: 224 224 224 255;
414             color3: 0 0 0 64;
415             text {
416                font:     "Sans,Edje-Vera";
417                size:     10;
418                min:      0 0;
419                align:    0.5 0.5;
420                text_class: "button";
421             }
422          }
423          description { state: "visible" 0.0;
424             inherit: "default" 0.0;
425             visible: 1;
426             text.min: 1 1;
427          }
428          description { state: "disabled" 0.0;
429             inherit: "default" 0.0;
430             color: 0 0 0 128;
431             color3: 0 0 0 0;
432          }
433          description { state: "disabled_visible" 0.0;
434             inherit: "default" 0.0;
435             color: 0 0 0 128;
436             color3: 0 0 0 0;
437             visible: 1;
438             text.min: 1 1;
439          }
440       }
441       part {          name: "over1";
442          mouse_events: 0;
443          description { state: "default" 0.0;
444             rel2.relative: 1.0 0.5;
445             image {
446                normal: "bt_hilight.png";
447                border: 7 7 7 0;
448             }
449          }
450          description { state: "disabled" 0.0;
451             inherit:  "default" 0.0;
452             image {
453                normal: "bt_dis_hilight.png";
454                border: 4 4 4 0;
455             }
456          }
457       }
458       part { name: "over2";
459          mouse_events: 1;
460          repeat_events: 1;
461          ignore_flags: ON_HOLD;
462          description { state: "default" 0.0;
463             image {
464                normal: "bt_shine.png";
465                border: 7 7 7 7;
466             }
467          }
468          description { state: "disabled" 0.0;
469             inherit:  "default" 0.0;
470             visible: 0;
471          }
472       }
473       part { name: "over3";
474          mouse_events: 1;
475          repeat_events: 1;
476          description { state: "default" 0.0;
477             color: 255 255 255 0;
478             image {
479                normal: "bt_glow.png";
480                border: 12 12 12 12;
481             }
482             fill.smooth : 0;
483          }
484          description { state: "clicked" 0.0;
485             inherit:  "default" 0.0;
486             visible: 1;
487             color: 255 255 255 255;
488          }
489       }
490       part { name: "disabler";
491          type: RECT;
492          description { state: "default" 0.0;
493             color: 0 0 0 0;
494             visible: 0;
495          }
496          description { state: "disabled" 0.0;
497             inherit: "default" 0.0;
498             visible: 1;
499          }
500       }
501    }
502    programs {
503       program {
504          name:   "button_click";
505          signal: "mouse,down,1";
506          source: "over2";
507          action: STATE_SET "clicked" 0.0;
508          target: "button_image";
509       }
510       program {
511          name:   "button_unclick";
512          signal: "mouse,up,1";
513          source: "over2";
514          action: STATE_SET "default" 0.0;
515          target: "button_image";
516       }
517       program {
518          name:   "button_click2";
519          signal: "mouse,down,1";
520          source: "over3";
521          action: STATE_SET "clicked" 0.0;
522          target: "over3";
523       }
524       program {
525          name:   "button_unclick2";
526          signal: "mouse,up,1";
527          source: "over3";
528          action: STATE_SET "default" 0.0;
529          transition: DECELERATE 0.5;
530          target: "over3";
531       }
532       program {
533          name:   "button_unclick3";
534          signal: "mouse,up,1";
535          source: "over2";
536          action: SIGNAL_EMIT "elm,action,click" "";
537       }
538       program { name: "text_show";
539          signal: "elm,state,text,visible";
540          source: "elm";
541          script {
542             new st[31];
543             new Float:vl;
544             get_state(PART:"elm.swallow.content", st, 30, vl);
545             if (!strcmp(st, "icononly"))
546             set_state(PART:"elm.swallow.content", "visible", 0.0);
547             set_state(PART:"elm.text", "visible", 0.0);
548          }
549       }
550       program { name: "text_hide";
551          signal: "elm,state,text,hidden";
552          source: "elm";
553          script {
554             new st[31];
555             new Float:vl;
556             get_state(PART:"elm.swallow.content", st, 30, vl);
557             if (!strcmp(st, "visible"))
558             set_state(PART:"elm.swallow.content", "icononly", 0.0);
559             set_state(PART:"elm.text", "default", 0.0);
560          }
561       }
562       program { name: "icon_show";
563          signal: "elm,state,icon,visible";
564          source: "elm";
565          script {
566             new st[31];
567             new Float:vl;
568             get_state(PART:"elm.text", st, 30, vl);
569             if (!strcmp(st, "visible"))
570             set_state(PART:"elm.swallow.content", "visible", 0.0);
571             else
572             set_state(PART:"elm.swallow.content", "icononly", 0.0);
573          }
574       }
575       program { name: "icon_hide";
576          signal: "elm,state,icon,hidden";
577          source: "elm";
578          action:  STATE_SET "default" 0.0;
579          target: "elm.swallow.content";
580       }
581       program { name: "disable";
582          signal: "elm,state,disabled";
583          source: "elm";
584          action: STATE_SET "disabled" 0.0;
585          target: "button_image";
586          target: "over1";
587          target: "over2";
588          target: "disabler";
589          after: "disable_text";
590       }
591       program { name: "disable_text";
592          script {
593             new st[31];
594             new Float:vl;
595             get_state(PART:"elm.text", st, 30, vl);
596             if (!strcmp(st, "visible"))
597             set_state(PART:"elm.text", "disabled_visible", 0.0);
598             else
599             set_state(PART:"elm.text", "disabled", 0.0);
600          }
601       }
602       program { name: "enable";
603          signal: "elm,state,enabled";
604          source: "elm";
605          action: STATE_SET "default" 0.0;
606          target: "button_image";
607          target: "over1";
608          target: "over2";
609          target: "disabler";
610          after: "enable_text";
611       }
612       program { name: "enable_text";
613          script {
614             new st[31];
615             new Float:vl;
616             get_state(PART:"elm.text", st, 30, vl);
617             if (!strcmp(st, "disabled_visible"))
618             set_state(PART:"elm.text", "visible", 0.0);
619             else
620             set_state(PART:"elm.text", "default", 0.0);
621          }
622       }
623    }
624 }
625
626 group { name: "elm/button/base/hoversel_vertical_entry/default";
627    alias: "elm/button/base/hoversel_vertical_entry/entry";
628    alias: "elm/button/base/hoversel_horizontal_entry/default";
629    alias: "elm/button/base/hoversel_horizontal_entry/entry";
630    images {
631       image: "hoversel_entry_bg.png" COMP;
632    }
633    parts {
634       part { name: "button_image";
635          mouse_events: 1;
636          description { state: "default" 0.0;
637             color: 255 255 255 0;
638             image.normal: "hoversel_entry_bg.png";
639             image.border: 0 0 2 2;
640             fill.smooth: 0;
641          }
642          description { state: "clicked" 0.0;
643             inherit: "default" 0.0;
644             color: 255 255 255 255;
645          }
646       }
647       part { name: "elm.swallow.content";
648          type: SWALLOW;
649          description { state: "default" 0.0;
650             visible: 0;
651             align: 0.0 0.5;
652             rel1.offset: 4 4;
653             rel2.offset: 3 -5;
654             rel2.relative: 0.0 1.0;
655          }
656          description { state: "visible" 0.0;
657             inherit: "default" 0.0;
658             visible: 1;
659             aspect: 1.0 1.0;
660             aspect_preference: VERTICAL;
661             rel2.offset: 4 -5;
662          }
663          description { state: "icononly" 0.0;
664             inherit: "default" 0.0;
665             visible: 1;
666             align: 0.5 0.5;
667             aspect: 1.0 1.0;
668             rel2.offset: -5 -5;
669             rel2.relative: 1.0 1.0;
670             aspect_preference: VERTICAL;
671          }
672       }
673       part { name: "textvis";
674          type: RECT;
675          mouse_events: 0;
676          description { state: "default" 0.0;
677             visible: 0;
678          }
679          description { state: "visible" 0.0;
680             visible: 1;
681          }
682       }
683       part {
684          name:          "elm.text";
685          type:          TEXT;
686          effect:        SOFT_SHADOW;
687          mouse_events:  0;
688          scale: 1;
689          clip_to:       "textvis";
690          description { state: "default" 0.0;
691             rel1.to_x: "elm.swallow.content";
692             rel1.relative: 1.0 0.0;
693             rel1.offset: 0 4;
694             rel2.offset: -5 -5;
695             color: 224 224 224 255;
696             color3: 0 0 0 64;
697             text {
698                font:     "Sans,Edje-Vera";
699                size:     10;
700                min:      0 0;
701                align:    0.5 0.5;
702                text_class: "button";
703             }
704          }
705          description { state: "visible" 0.0;
706             inherit: "default" 0.0;
707             text.min: 1 1;
708          }
709          description { state: "clicked" 0.0;
710             inherit: "default" 0.0;
711             text.min: 1 1;
712             color: 0 0 0 255;
713             color3: 0 0 0 0;
714          }
715       }
716       part { name: "over2";
717          type: RECT;
718          mouse_events: 1;
719          description { state: "default" 0.0;
720             color: 0 0 0 0;
721          }
722       }
723    }
724    programs {
725       program {
726          name:   "button_click";
727          signal: "mouse,down,1";
728          source: "over2";
729          action: STATE_SET "clicked" 0.0;
730          target: "button_image";
731          target: "elm.text";
732       }
733       program {
734          name:   "button_unclick";
735          signal: "mouse,up,1";
736          source: "over2";
737          action: STATE_SET "default" 0.0;
738          target: "button_image";
739          target: "elm.text";
740       }
741       program {
742          name:   "button_unclick3";
743          signal: "mouse,up,1";
744          source: "over2";
745          action: SIGNAL_EMIT "elm,action,click" "";
746       }
747       program { name: "text_show";
748          signal: "elm,state,text,visible";
749          source: "elm";
750          script {
751             new st[31];
752             new Float:vl;
753             get_state(PART:"elm.swallow.content", st, 30, vl);
754             if (!strcmp(st, "icononly"))
755             set_state(PART:"elm.swallow.content", "visible", 0.0);
756             set_state(PART:"textvis", "visible", 0.0);
757             set_state(PART:"elm.text", "visible", 0.0);
758          }
759       }
760       program { name: "text_hide";
761          signal: "elm,state,text,hidden";
762          source: "elm";
763          script {
764             new st[31];
765             new Float:vl;
766             get_state(PART:"elm.swallow.content", st, 30, vl);
767             if (!strcmp(st, "visible"))
768             set_state(PART:"elm.swallow.content", "icononly", 0.0);
769             set_state(PART:"textvis", "default", 0.0);
770             set_state(PART:"elm.text", "default", 0.0);
771          }
772       }
773       program { name: "icon_show";
774          signal: "elm,state,icon,visible";
775          source: "elm";
776          script {
777             new st[31];
778             new Float:vl;
779             get_state(PART:"textvis", st, 30, vl);
780             if (!strcmp(st, "visible"))
781             set_state(PART:"elm.swallow.content", "visible", 0.0);
782             else
783             set_state(PART:"elm.swallow.content", "icononly", 0.0);
784          }
785       }
786       program { name: "icon_hide";
787          signal: "elm,state,icon,hidden";
788          source: "elm";
789          action:  STATE_SET "default" 0.0;
790          target: "elm.swallow.content";
791       }
792    }
793 }
794
795 group { name: "elm/button/base/anchor";
796    images {
797       image: "bt_base1.png" COMP;
798       image: "bt_base2.png" COMP;
799       image: "bt_hilight.png" COMP;
800       image: "bt_shine.png" COMP;
801       image: "bt_glow.png" COMP;
802       image: "bt_dis_base.png" COMP;
803       image: "bt_dis_hilight.png" COMP;
804    }
805    parts {
806       part { name: "button_image";
807          mouse_events: 1;
808          description { state: "default" 0.0;
809             min: 15 15;
810             color: 255 255 255 0;
811             image {
812                normal: "bt_base2.png";
813                border: 7 7 7 7;
814             }
815             image.middle: SOLID;
816          }
817          description { state: "visible" 0.0;
818             inherit: "default" 0.0;
819             color: 255 255 255 255;
820          }
821          description { state: "clicked" 0.0;
822             inherit: "default" 0.0;
823             inherit: "visible" 0.0;
824             image.normal: "bt_base1.png";
825             image.middle: SOLID;
826          }
827          description { state: "disabled" 0.0;
828             inherit:  "default" 0.0;
829             inherit: "visible" 0.0;
830             image {
831                normal: "bt_dis_base.png";
832                border: 4 4 4 4;
833             }
834          }
835       }
836       part { name: "elm.swallow.content";
837          type: SWALLOW;
838          description { state: "default" 0.0;
839             fixed: 1 0;
840             visible: 0;
841             align: 0.0 0.5;
842             rel1.offset: 4 4;
843             rel2.offset: 3 -5;
844             rel2.relative: 0.0 1.0;
845          }
846          description { state: "visible" 0.0;
847             inherit: "default" 0.0;
848             fixed: 1 0;
849             visible: 1;
850             aspect: 1.0 1.0;
851             aspect_preference: VERTICAL;
852             rel2.offset: 4 -5;
853          }
854          description { state: "icononly" 0.0;
855             inherit: "default" 0.0;
856             fixed: 0 0;
857             visible: 1;
858             align: 0.5 0.5;
859             aspect: 1.0 1.0;
860             rel2.offset: -5 -5;
861             rel2.relative: 1.0 1.0;
862             aspect_preference: VERTICAL;
863          }
864       }
865       part {
866          name:          "elm.text";
867          type:          TEXT;
868          effect:        SOFT_SHADOW;
869          mouse_events:  0;
870          scale: 1;
871          description { state: "default" 0.0;
872             visible: 0;
873             rel1.to_x: "elm.swallow.content";
874             rel1.relative: 1.0 0.0;
875             rel1.offset: 0 4;
876             rel2.offset: -5 -5;
877             color: 224 224 224 255;
878             color3: 0 0 0 64;
879             text {
880                font:     "Sans,Edje-Vera";
881                size:     10;
882                min:      0 0;
883                align:    0.5 0.5;
884                text_class: "button";
885             }
886          }
887          description { state: "visible" 0.0;
888             inherit: "default" 0.0;
889             visible: 1;
890             text.min: 1 1;
891          }
892          description { state: "disabled" 0.0;
893             inherit: "default" 0.0;
894          }
895          description { state: "disabled_visible" 0.0;
896             inherit: "default" 0.0;
897             color: 0 0 0 128;
898             color3: 0 0 0 0;
899             visible: 1;
900             text.min: 1 1;
901          }
902       }
903       part {          name: "over1";
904          mouse_events: 0;
905          description { state: "default" 0.0;
906             color: 255 255 255 0;
907             rel2.relative: 1.0 0.5;
908             image {
909                normal: "bt_hilight.png";
910                border: 7 7 7 0;
911             }
912          }
913          description { state: "visible" 0.0;
914             inherit:  "default" 0.0;
915             color: 255 255 255 255;
916          }
917          description { state: "disabled" 0.0;
918             inherit:  "default" 0.0;
919             inherit:  "visible" 0.0;
920             image {
921                normal: "bt_dis_hilight.png";
922                border: 4 4 4 0;
923             }
924          }
925       }
926       part { name: "over2";
927          mouse_events: 1;
928          repeat_events: 1;
929          ignore_flags: ON_HOLD;
930          description { state: "default" 0.0;
931             image {
932                normal: "bt_shine.png";
933                border: 7 7 7 7;
934             }
935          }
936          description { state: "disabled" 0.0;
937             inherit:  "default" 0.0;
938             visible: 0;
939          }
940       }
941       part { name: "over3";
942          mouse_events: 1;
943          repeat_events: 1;
944          description { state: "default" 0.0;
945             color: 255 255 255 0;
946             image {
947                normal: "bt_glow.png";
948                border: 12 12 12 12;
949             }
950             fill.smooth : 0;
951          }
952          description { state: "clicked" 0.0;
953             inherit:  "default" 0.0;
954             visible: 1;
955             color: 255 255 255 255;
956          }
957       }
958       part { name: "disabler";
959          type: RECT;
960          description { state: "default" 0.0;
961             color: 0 0 0 0;
962             visible: 0;
963          }
964          description { state: "disabled" 0.0;
965             inherit: "default" 0.0;
966             visible: 1;
967          }
968       }
969    }
970    programs {
971       program {
972          name:   "button_mouse_in";
973          signal: "mouse,in";
974          source: "over2";
975          action: STATE_SET "visible" 0.0;
976          target: "button_image";
977          target: "over1";
978          transition: DECELERATE 0.5;
979       }
980       program {
981          name:   "button_mouse_out";
982          signal: "mouse,out";
983          source: "over2";
984          action: STATE_SET "default" 0.0;
985          target: "button_image";
986          target: "over1";
987          transition: DECELERATE 0.5;
988       }
989       program {
990          name:   "button_unclick";
991          signal: "mouse,up,1";
992          source: "over2";
993          action: STATE_SET "visible" 0.0;
994          target: "button_image";
995       }
996       program {
997          name:   "button_click2";
998          signal: "mouse,down,1";
999          source: "over3";
1000          action: STATE_SET "clicked" 0.0;
1001          target: "over3";
1002       }
1003       program {
1004          name:   "button_unclick2";
1005          signal: "mouse,up,1";
1006          source: "over3";
1007          action: STATE_SET "default" 0.0;
1008          transition: DECELERATE 0.5;
1009          target: "over3";
1010       }
1011       program {
1012          name:   "button_unclick3";
1013          signal: "mouse,up,1";
1014          source: "over2";
1015          action: SIGNAL_EMIT "elm,action,click" "";
1016       }
1017       program { name: "text_show";
1018          signal: "elm,state,text,visible";
1019          source: "elm";
1020          script {
1021             new st[31];
1022             new Float:vl;
1023             get_state(PART:"elm.swallow.content", st, 30, vl);
1024             if (!strcmp(st, "icononly"))
1025               set_state(PART:"elm.swallow.content", "visible", 0.0);
1026             get_state(PART:"elm.text", st, 30, vl);
1027             if (!strcmp(st, "disabled") || (!strcmp(st, "disabled_visible")))
1028               set_state(PART:"elm.text", "disabled_visible", 0.0);
1029             else
1030               set_state(PART:"elm.text", "visible", 0.0);
1031          }
1032       }
1033       program { name: "text_hide";
1034          signal: "elm,state,text,hidden";
1035          source: "elm";
1036          script {
1037             new st[31];
1038             new Float:vl;
1039             get_state(PART:"elm.swallow.content", st, 30, vl);
1040             if (!strcmp(st, "visible"))
1041             set_state(PART:"elm.swallow.content", "icononly", 0.0);
1042             get_state(PART:"elm.text", st, 30, vl);
1043             if (!strcmp(st, "default") || (!strcmp(st, "visible")))
1044               set_state(PART:"elm.text", "default", 0.0);
1045             else
1046               set_state(PART:"elm.text", "disabled", 0.0);
1047          }
1048       }
1049       program { name: "icon_show";
1050          signal: "elm,state,icon,visible";
1051          source: "elm";
1052          script {
1053             new st[31];
1054             new Float:vl;
1055             get_state(PART:"elm.text", st, 30, vl);
1056             if (!strcmp(st, "visible"))
1057             set_state(PART:"elm.swallow.content", "visible", 0.0);
1058             else
1059             set_state(PART:"elm.swallow.content", "icononly", 0.0);
1060          }
1061       }
1062       program { name: "icon_hide";
1063          signal: "elm,state,icon,hidden";
1064          source: "elm";
1065          action:  STATE_SET "default" 0.0;
1066          target: "elm.swallow.content";
1067       }
1068       program { name: "disable";
1069          signal: "elm,state,disabled";
1070          source: "elm";
1071          script {
1072             new st[31];
1073             new Float:vl;
1074             set_state(PART:"button_image", "disabled", 0.0);
1075             set_state(PART:"over1", "disabled", 0.0);
1076             set_state(PART:"over2", "disabled", 0.0);
1077             set_state(PART:"disabler", "disabled", 0.0);
1078             get_state(PART:"elm.text", st, 30, vl);
1079             if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
1080               set_state(PART:"elm.text", "disabled_visible", 0.0);
1081             else
1082               set_state(PART:"elm.text", "disabled", 0.0);
1083          }
1084       }
1085       program { name: "enable";
1086          signal: "elm,state,enabled";
1087          source: "elm";
1088          script {
1089             new st[31];
1090             new Float:vl;
1091             set_state(PART:"button_image", "visible", 0.0);
1092             set_state(PART:"over1", "visible", 0.0);
1093             set_state(PART:"over2", "visible", 0.0);
1094             set_state(PART:"disabler", "visible", 0.0);
1095             get_state(PART:"elm.text", st, 30, vl);
1096             if (!strcmp(st, "visible") || !strcmp(st, "disabled_visible"))
1097               set_state(PART:"elm.text", "visible", 0.0);
1098             else
1099               set_state(PART:"elm.text", "default", 0.0);
1100          }
1101       }
1102    }
1103 }
1104 group { name: "elm/button/base/naviframe/back_btn/default";
1105    images {
1106       image: "bt_base1.png" COMP;
1107       image: "bt_base2.png" COMP;
1108       image: "bt_hilight.png" COMP;
1109       image: "bt_shine.png" COMP;
1110       image: "bt_glow.png" COMP;
1111       image: "bt_dis_base.png" COMP;
1112       image: "bt_dis_hilight.png" COMP;
1113       image: "icon_left_arrow.png" COMP;
1114    }
1115    parts {
1116       part { name: "button_image";
1117          mouse_events: 1;
1118          description { state: "default" 0.0;
1119             min: 15 15;
1120             image {
1121                normal: "bt_base2.png";
1122                border: 7 7 7 7;
1123             }
1124             image.middle: SOLID;
1125          }
1126          description { state: "clicked" 0.0;
1127             inherit: "default" 0.0;
1128             image.normal: "bt_base1.png";
1129          }
1130          description { state: "disabled" 0.0;
1131             inherit:  "default" 0.0;
1132             image {
1133                normal: "bt_dis_base.png";
1134                border: 4 4 4 4;
1135             }
1136          }
1137       }
1138       part { name: "prev_image";
1139          type: IMAGE;
1140          scale: 1;
1141          description { state: "default" 0.0;
1142             min: 30 30;
1143             max: 30 30;
1144             fixed: 1 1;
1145             align: 0.5 0.5;
1146             image.normal: "icon_left_arrow.png";
1147          }
1148       }
1149       part { name: "over1";
1150          mouse_events: 0;
1151          description { state: "default" 0.0;
1152             rel2.relative: 1.0 0.5;
1153             image {
1154                normal: "bt_hilight.png";
1155                border: 7 7 7 0;
1156             }
1157          }
1158          description { state: "disabled" 0.0;
1159             inherit:  "default" 0.0;
1160             image {
1161                normal: "bt_dis_hilight.png";
1162                border: 4 4 4 0;
1163             }
1164          }
1165       }
1166       part { name: "over2";
1167          mouse_events: 1;
1168          repeat_events: 1;
1169          ignore_flags: ON_HOLD;
1170          description { state: "default" 0.0;
1171             image {
1172                normal: "bt_shine.png";
1173                border: 7 7 7 7;
1174             }
1175          }
1176          description { state: "disabled" 0.0;
1177             inherit:  "default" 0.0;
1178             visible: 0;
1179          }
1180       }
1181       part { name: "over3";
1182          mouse_events: 1;
1183          repeat_events: 1;
1184          description { state: "default" 0.0;
1185             color: 255 255 255 0;
1186             image {
1187                normal: "bt_glow.png";
1188                border: 12 12 12 12;
1189             }
1190             fill.smooth : 0;
1191          }
1192          description { state: "clicked" 0.0;
1193             inherit:  "default" 0.0;
1194             color: 255 255 255 255;
1195          }
1196       }
1197       part { name: "disabler";
1198          type: RECT;
1199          description { state: "default" 0.0;
1200             color: 0 0 0 0;
1201             visible: 0;
1202          }
1203          description { state: "disabled" 0.0;
1204             inherit: "default" 0.0;
1205             visible: 1;
1206          }
1207       }
1208    }
1209    programs {
1210       program {
1211          name:   "button_click";
1212          signal: "mouse,down,1";
1213          source: "over2";
1214          action: SIGNAL_EMIT "elm,action,press" "";
1215          after: "button_click_anim";
1216       }
1217       program {
1218          name:   "button_click_anim";
1219          action: STATE_SET "clicked" 0.0;
1220          target: "button_image";
1221       }
1222       program {
1223          name:   "button_unclick";
1224          signal: "mouse,up,1";
1225          source: "over3";
1226          action: SIGNAL_EMIT "elm,action,unpress" "";
1227          after: "button_unclick_anim";
1228       }
1229       program {
1230          name:   "button_pressed_anim";
1231          signal: "elm,anim,activate";
1232          source: "elm";
1233          action: STATE_SET "clicked" 0.0;
1234          target: "button_image";
1235          target: "over3";
1236          after: "button_unpressed_anim";
1237       }
1238       program {
1239          name:   "button_unpressed_anim";
1240          action: STATE_SET "default" 0.0;
1241          transition: DECELERATE 0.5;
1242          target: "button_image";
1243          target: "over3";
1244       }
1245       program {
1246          name:   "button_unclick_anim";
1247          action: STATE_SET "default" 0.0;
1248          target: "button_image";
1249       }
1250       program {
1251          name:   "button_click2";
1252          signal: "mouse,down,1";
1253          source: "over3";
1254          action: STATE_SET "clicked" 0.0;
1255          target: "over3";
1256       }
1257       program {
1258          name:   "button_unclick2";
1259          signal: "mouse,up,1";
1260          source: "over3";
1261          action: STATE_SET "default" 0.0;
1262          transition: DECELERATE 0.5;
1263          target: "over3";
1264       }
1265       program {
1266          name:   "button_unclick3";
1267          signal: "mouse,clicked,1";
1268          source: "over2";
1269          action: SIGNAL_EMIT "elm,action,click" "";
1270       }
1271       program { name: "disable";
1272          signal: "elm,state,disabled";
1273          source: "elm";
1274          action: STATE_SET "disabled" 0.0;
1275          target: "button_image";
1276          target: "over1";
1277          target: "over2";
1278          target: "disabler";
1279       }
1280       program { name: "enable";
1281          signal: "elm,state,enabled";
1282          source: "elm";
1283          action: STATE_SET "default" 0.0;
1284          target: "button_image";
1285          target: "over1";
1286          target: "over2";
1287          target: "disabler";
1288       }
1289    }
1290 }
1291
1292 group { name: "elm/button/base/colorselector/left/default";
1293    images {
1294       image: "bt_base1.png" COMP;
1295       image: "bt_base2.png" COMP;
1296       image: "bt_hilight.png" COMP;
1297       image: "bt_shine.png" COMP;
1298       image: "bt_glow.png" COMP;
1299       image: "bt_dis_base.png" COMP;
1300       image: "bt_dis_hilight.png" COMP;
1301       image: "sp_bt_l.png" COMP;
1302    }
1303    parts {
1304       part { name: "button_image";
1305          mouse_events: 1;
1306          description { state: "default" 0.0;
1307             min: 15 15;
1308             image {
1309                normal: "bt_base2.png";
1310                border: 7 7 7 7;
1311             }
1312             image.middle: SOLID;
1313          }
1314          description { state: "clicked" 0.0;
1315             inherit: "default" 0.0;
1316             image.normal: "bt_base1.png";
1317          }
1318          description { state: "disabled" 0.0;
1319             inherit:  "default" 0.0;
1320             image {
1321                normal: "bt_dis_base.png";
1322                border: 4 4 4 4;
1323             }
1324          }
1325       }
1326       part { name: "prev_image";
1327          type: IMAGE;
1328          scale: 1;
1329          description { state: "default" 0.0;
1330             min: 16 16;
1331             max: 16 16;
1332             fixed: 1 1;
1333             align: 0.5 0.5;
1334             image.normal: "sp_bt_l.png";
1335          }
1336       }
1337       part { name: "over1";
1338          mouse_events: 0;
1339          description { state: "default" 0.0;
1340             rel2.relative: 1.0 0.5;
1341             image {
1342                normal: "bt_hilight.png";
1343                border: 7 7 7 0;
1344             }
1345          }
1346          description { state: "disabled" 0.0;
1347             inherit:  "default" 0.0;
1348             image {
1349                normal: "bt_dis_hilight.png";
1350                border: 4 4 4 0;
1351             }
1352          }
1353       }
1354       part { name: "over2";
1355          mouse_events: 1;
1356          repeat_events: 1;
1357          ignore_flags: ON_HOLD;
1358          description { state: "default" 0.0;
1359             image {
1360                normal: "bt_shine.png";
1361                border: 7 7 7 7;
1362             }
1363          }
1364          description { state: "disabled" 0.0;
1365             inherit:  "default" 0.0;
1366             visible: 0;
1367          }
1368       }
1369       part { name: "over3";
1370          mouse_events: 1;
1371          repeat_events: 1;
1372          description { state: "default" 0.0;
1373             color: 255 255 255 0;
1374             image {
1375                normal: "bt_glow.png";
1376                border: 12 12 12 12;
1377             }
1378             fill.smooth : 0;
1379          }
1380          description { state: "clicked" 0.0;
1381             inherit:  "default" 0.0;
1382             color: 255 255 255 255;
1383          }
1384       }
1385       part { name: "disabler";
1386          type: RECT;
1387          description { state: "default" 0.0;
1388             color: 0 0 0 0;
1389             visible: 0;
1390          }
1391          description { state: "disabled" 0.0;
1392             inherit: "default" 0.0;
1393             visible: 1;
1394          }
1395       }
1396    }
1397    programs {
1398       program {
1399          name:   "button_click";
1400          signal: "mouse,down,1";
1401          source: "over2";
1402          action: SIGNAL_EMIT "elm,action,press" "";
1403          after: "button_click_anim";
1404       }
1405       program {
1406          name:   "button_click_anim";
1407          action: STATE_SET "clicked" 0.0;
1408          target: "button_image";
1409       }
1410       program {
1411          name:   "button_unclick";
1412          signal: "mouse,up,1";
1413          source: "over3";
1414          action: SIGNAL_EMIT "elm,action,unpress" "";
1415          after: "button_unclick_anim";
1416       }
1417       program {
1418          name:   "button_pressed_anim";
1419          signal: "elm,anim,activate";
1420          source: "elm";
1421          action: STATE_SET "clicked" 0.0;
1422          target: "button_image";
1423          target: "over3";
1424          after: "button_unpressed_anim";
1425       }
1426       program {
1427          name:   "button_unpressed_anim";
1428          action: STATE_SET "default" 0.0;
1429          transition: DECELERATE 0.5;
1430          target: "button_image";
1431          target: "over3";
1432       }
1433       program {
1434          name:   "button_unclick_anim";
1435          action: STATE_SET "default" 0.0;
1436          target: "button_image";
1437       }
1438       program {
1439          name:   "button_click2";
1440          signal: "mouse,down,1";
1441          source: "over3";
1442          action: STATE_SET "clicked" 0.0;
1443          target: "over3";
1444       }
1445       program {
1446          name:   "button_unclick2";
1447          signal: "mouse,up,1";
1448          source: "over3";
1449          action: STATE_SET "default" 0.0;
1450          transition: DECELERATE 0.5;
1451          target: "over3";
1452       }
1453       program {
1454          name:   "button_unclick3";
1455          signal: "mouse,clicked,1";
1456          source: "over2";
1457          action: SIGNAL_EMIT "elm,action,click" "";
1458       }
1459       program { name: "disable";
1460          signal: "elm,state,disabled";
1461          source: "elm";
1462          action: STATE_SET "disabled" 0.0;
1463          target: "button_image";
1464          target: "over1";
1465          target: "over2";
1466          target: "disabler";
1467       }
1468       program { name: "enable";
1469          signal: "elm,state,enabled";
1470          source: "elm";
1471          action: STATE_SET "default" 0.0;
1472          target: "button_image";
1473          target: "over1";
1474          target: "over2";
1475          target: "disabler";
1476       }
1477    }
1478 }
1479
1480 group { name: "elm/button/base/colorselector/right/default";
1481    images {
1482       image: "bt_base1.png" COMP;
1483       image: "bt_base2.png" COMP;
1484       image: "bt_hilight.png" COMP;
1485       image: "bt_shine.png" COMP;
1486       image: "bt_glow.png" COMP;
1487       image: "bt_dis_base.png" COMP;
1488       image: "bt_dis_hilight.png" COMP;
1489       image: "sp_bt_r.png" COMP;
1490    }
1491    parts {
1492       part { name: "button_image";
1493          mouse_events: 1;
1494          description { state: "default" 0.0;
1495             min: 15 15;
1496             image {
1497                normal: "bt_base2.png";
1498                border: 7 7 7 7;
1499             }
1500             image.middle: SOLID;
1501          }
1502          description { state: "clicked" 0.0;
1503             inherit: "default" 0.0;
1504             image.normal: "bt_base1.png";
1505          }
1506          description { state: "disabled" 0.0;
1507             inherit:  "default" 0.0;
1508             image {
1509                normal: "bt_dis_base.png";
1510                border: 4 4 4 4;
1511             }
1512          }
1513       }
1514       part { name: "prev_image";
1515          type: IMAGE;
1516          scale: 1;
1517          description { state: "default" 0.0;
1518             min: 16 16;
1519             max: 16 16;
1520             fixed: 1 1;
1521             align: 0.5 0.5;
1522             image.normal: "sp_bt_r.png";
1523          }
1524       }
1525       part { name: "over1";
1526          mouse_events: 0;
1527          description { state: "default" 0.0;
1528             rel2.relative: 1.0 0.5;
1529             image {
1530                normal: "bt_hilight.png";
1531                border: 7 7 7 0;
1532             }
1533          }
1534          description { state: "disabled" 0.0;
1535             inherit:  "default" 0.0;
1536             image {
1537                normal: "bt_dis_hilight.png";
1538                border: 4 4 4 0;
1539             }
1540          }
1541       }
1542       part { name: "over2";
1543          mouse_events: 1;
1544          repeat_events: 1;
1545          ignore_flags: ON_HOLD;
1546          description { state: "default" 0.0;
1547             image {
1548                normal: "bt_shine.png";
1549                border: 7 7 7 7;
1550             }
1551          }
1552          description { state: "disabled" 0.0;
1553             inherit:  "default" 0.0;
1554             visible: 0;
1555          }
1556       }
1557       part { name: "over3";
1558          mouse_events: 1;
1559          repeat_events: 1;
1560          description { state: "default" 0.0;
1561             color: 255 255 255 0;
1562             image {
1563                normal: "bt_glow.png";
1564                border: 12 12 12 12;
1565             }
1566             fill.smooth : 0;
1567          }
1568          description { state: "clicked" 0.0;
1569             inherit:  "default" 0.0;
1570             color: 255 255 255 255;
1571          }
1572       }
1573       part { name: "disabler";
1574          type: RECT;
1575          description { state: "default" 0.0;
1576             color: 0 0 0 0;
1577             visible: 0;
1578          }
1579          description { state: "disabled" 0.0;
1580             inherit: "default" 0.0;
1581             visible: 1;
1582          }
1583       }
1584    }
1585    programs {
1586       program {
1587          name:   "button_click";
1588          signal: "mouse,down,1";
1589          source: "over2";
1590          action: SIGNAL_EMIT "elm,action,press" "";
1591          after: "button_click_anim";
1592       }
1593       program {
1594          name:   "button_click_anim";
1595          action: STATE_SET "clicked" 0.0;
1596          target: "button_image";
1597       }
1598       program {
1599          name:   "button_unclick";
1600          signal: "mouse,up,1";
1601          source: "over3";
1602          action: SIGNAL_EMIT "elm,action,unpress" "";
1603          after: "button_unclick_anim";
1604       }
1605       program {
1606          name:   "button_pressed_anim";
1607          signal: "elm,anim,activate";
1608          source: "elm";
1609          action: STATE_SET "clicked" 0.0;
1610          target: "button_image";
1611          target: "over3";
1612          after: "button_unpressed_anim";
1613       }
1614       program {
1615          name:   "button_unpressed_anim";
1616          action: STATE_SET "default" 0.0;
1617          transition: DECELERATE 0.5;
1618          target: "button_image";
1619          target: "over3";
1620       }
1621       program {
1622          name:   "button_unclick_anim";
1623          action: STATE_SET "default" 0.0;
1624          target: "button_image";
1625       }
1626       program {
1627          name:   "button_click2";
1628          signal: "mouse,down,1";
1629          source: "over3";
1630          action: STATE_SET "clicked" 0.0;
1631          target: "over3";
1632       }
1633       program {
1634          name:   "button_unclick2";
1635          signal: "mouse,up,1";
1636          source: "over3";
1637          action: STATE_SET "default" 0.0;
1638          transition: DECELERATE 0.5;
1639          target: "over3";
1640       }
1641       program {
1642          name:   "button_unclick3";
1643          signal: "mouse,clicked,1";
1644          source: "over2";
1645          action: SIGNAL_EMIT "elm,action,click" "";
1646       }
1647       program { name: "disable";
1648          signal: "elm,state,disabled";
1649          source: "elm";
1650          action: STATE_SET "disabled" 0.0;
1651          target: "button_image";
1652          target: "over1";
1653          target: "over2";
1654          target: "disabler";
1655       }
1656       program { name: "enable";
1657          signal: "elm,state,enabled";
1658          source: "elm";
1659          action: STATE_SET "default" 0.0;
1660          target: "button_image";
1661          target: "over1";
1662          target: "over2";
1663          target: "disabler";
1664       }
1665    }
1666 }