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