tizen 2.4 release
[framework/uifw/efl-theme-tizen.git] / wearable / widgets / radio.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are met:
8  *
9  *   1. Redistributions of source code must retain the above copyright notice, this
10  *      list of conditions and the following disclaimer.
11  *   2. Redistributions in binary form must reproduce the above copyright notice,
12  *      this list of conditions and the following disclaimer in the documentation
13  *      and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
19  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26
27 group { name: "elm/radio/base/default";
28       images {
29          image: "tw_btn_radiobox_holo_dark.png" COMP;
30          image: "tw_btn_radio_holo_dark.png" COMP;
31          image: "tw_btn_radiobox_line.png" COMP;
32       }
33       script {
34          public radio_state;
35          public radio_disabled;
36          public radio_show;
37          public is_transition_finished = 0;
38       }
39       parts {
40          part { name: "bg";
41             scale: 1;
42             description { state: "default" 0.0;
43                min: RADIO_SIZE;
44                max: RADIO_SIZE;
45                image.normal: "tw_btn_radiobox_holo_dark.png";
46                color: 0 13 25 255; /*(Changeable UI) color_class: "W013L1";*/
47             }
48             description { state: "pressed" 0.0;
49                inherit: "default" 0.0;
50                color: 0 72 132 102; /*(Changeable UI) color_class: "W013L1P";*/
51             }
52             description { state: "disabled" 0.0;
53                inherit: "default" 0.0;
54                color: 35 35 35 255; /*(Changeable UI) color_class: "W013L1D";*/
55             }
56          }
57          part { name: "radio";
58             clip_to: "opacity_clip";
59             scale: 1;
60             description { state: "default" 0.0;
61                max: 0 0;
62                visible: 0;
63                image.normal: "tw_btn_radio_holo_dark.png";
64             }
65             description { state: "on" 0.0;
66                inherit: "default" 0.0;
67                max: RADIO_SIZE;
68                visible: 1;
69                color: 115 191 15 255; /*(Changeable UI) color_class: "W013L2";*/
70             }
71             description { state: "pressed" 0.0;
72                inherit: "on" 0.0;
73                color: 249 249 249 255; /*(Changeable UI) color_class: "W013L2P";*/
74             }
75             description { state: "disabled" 0.0;
76                inherit: "on" 0.0;
77                color: 58 58 58 255; /*(Changeable UI) color_class: "W013L2D";*/
78             }
79          }
80          part { name: "outline";
81             scale: 1;
82             description { state: "default" 0.0;
83                rel1.to: "bg";
84                rel2.to: "bg";
85                image.normal: "tw_btn_radiobox_line.png";
86                color: 249 249 249 76; /*(Changeable UI) color_class: "W241";*/
87             }
88             description { state: "pressed" 0.0;
89                inherit: "default" 0.0;
90                color: 249 249 249 76; /*(Changeable UI) color_class: "W241P";*/
91             }
92             description { state: "disabled" 0.0;
93                inherit: "default" 0.0;
94                color: 249 249 249 76; /*(Changeable UI) color_class: "W241D";*/
95             }
96             description { state: "focused" 0.0;
97                inherit: "default" 0.0;
98                color: 0 110 255 255; /*(Changeable UI) color_class: "W201";*/
99             }
100          }
101          part { name: "opacity_clip";
102             type: RECT;
103             mouse_events: 0;
104             description { state: "default" 0.0;
105                rel1.to: "bg";
106                rel2.to: "bg";
107                color: 255 255 255 0;
108             }
109             description { state: "on" 0.0;
110                inherit: "default" 0.0;
111                color: 255 255 255 255;
112             }
113          }
114          part { name: "event";
115             scale: 1;
116             type: RECT;
117             description { state: "default" 0.0;
118                color: 0 0 0 0;
119             }
120          }
121       }
122       programs {
123          program { name: "show";
124             signal: "show";
125             script {
126                set_int(radio_show,1);
127             }
128          }
129          program { name: "hide";
130             signal: "hide";
131             script {
132                set_int(radio_show,0);
133             }
134          }
135          program { name: "click";
136             signal: "mouse,clicked,1";
137             source: "event";
138             script {
139                if (get_int(radio_disabled) == 1) return;
140                emit("elm,action,radio,toggle", "");
141                run_program(PROGRAM:"play_sample");
142             }
143          }
144          program {
145             name: "play_sample";
146             action: RUN_PLUGIN "touch_sound";
147          }
148          program { name: "unpressed";
149             signal: "mouse,up,1";
150             source: "event";
151             script {
152                if (get_int(radio_disabled) == 1) return;
153                if (get_int(radio_state) == 1) {
154                   if (get_int(is_transition_finished) == 1)
155                     set_state(PART:"radio", "on", 0.0);
156                }
157                else
158                  set_state(PART:"radio", "default", 0.0);
159                set_state(PART:"bg", "default", 0.0);
160                set_state(PART:"outline", "default", 0.0);
161             }
162          }
163          program { name: "pressed";
164             signal: "mouse,down,1";
165             source: "event";
166             script {
167                if (get_int(radio_disabled) == 1) return;
168                if (get_int(radio_state) == 1) {
169                   if (get_int(is_transition_finished) == 1)
170                     set_state(PART:"radio", "pressed", 0.0);
171                }
172                else
173                  set_state(PART:"radio", "default", 0.0);
174                set_state(PART:"bg", "pressed", 0.0);
175                set_state(PART:"outline", "pressed", 0.0);
176             }
177          }
178          program { name: "radio_on";
179             signal: "elm,state,radio,on";
180             source: "elm";
181             script {
182                set_int(radio_state, 1);
183                if (get_int(radio_disabled) == 1) {
184                   set_state(PART:"bg", "disabled", 0.0);
185                   set_state(PART:"outline", "disabled", 0.0);
186                   set_state(PART:"radio", "disabled", 0.0);
187                }
188                else {
189                   if (get_int(radio_show) == 1) {
190                      set_int(is_transition_finished, 0);
191                      run_program(PROGRAM:"radio_show_effect");
192                      run_program(PROGRAM:"radio_draw_effect");
193                   }
194                   else {
195                      set_int(is_transition_finished, 1);
196                      set_state(PART:"radio", "on", 0.0);
197                      set_state(PART:"opacity_clip", "on", 0.0);
198                   }
199                   set_state(PART:"bg", "default", 0.0);
200                   set_state(PART:"outline", "default", 0.0);
201                }
202             }
203          }
204          program { name: "radio_off";
205             signal: "elm,state,radio,off";
206             source: "elm";
207             script {
208                if (get_int(radio_disabled) == 1) {
209                   set_state(PART:"bg", "disabled", 0.0);
210                   set_state(PART:"outline", "disabled", 0.0);
211                }
212                else {
213                   if (get_int(radio_state) == 1) {
214                      set_state(PART:"bg", "default", 0.0);
215                      set_state(PART:"outline", "default", 0.0);
216                      set_state(PART:"radio", "default", 0.0);
217                      set_state(PART:"opacity_clip", "default", 0.0);
218                      set_int(radio_state, 0);
219                   }
220                }
221             }
222          }
223          program { name: "radio_show_effect";
224             action: STATE_SET "on" 0.0;
225             transition: LINEAR 0.233;
226             target: "opacity_clip";
227          }
228          program { name: "radio_draw_effect";
229             action: STATE_SET "on" 0.0;
230             transition: LINEAR 0.267;
231             target: "radio";
232             after: "radio_on_signal";
233          }
234          program { name: "radio_on_signal";
235             script {
236                set_int(is_transition_finished, 1);
237                emit("elm,action,show,finished", "elm");
238             }
239          }
240          program { name: "focus";
241             signal: "elm,action,focus_highlight,show";
242             source: "elm";
243             action: STATE_SET "focused" 0.0;
244             target: "outline";
245          }
246          program { name: "unfocus";
247             signal: "elm,action,focus_highlight,hide";
248             source: "elm";
249             action: STATE_SET "default" 0.0;
250             target: "outline";
251          }
252          program { name: "disable";
253             signal: "elm,state,disabled";
254             source: "elm";
255             script {
256                if (get_int(radio_state) == 1)
257                   set_state(PART:"radio", "disabled", 0.0);
258                else
259                   set_state(PART:"radio", "default", 0.0);
260                set_state(PART:"bg", "disabled", 0.0);
261                set_state(PART:"outline", "disabled", 0.0);
262                set_int(radio_disabled, 1);
263             }
264          }
265          program { name: "enable";
266             signal: "elm,state,enabled";
267             source: "elm";
268             script {
269                if (get_int(radio_state) == 1)
270                   set_state(PART:"radio", "on", 0.0);
271                else
272                   set_state(PART:"radio", "default", 0.0);
273                set_state(PART:"bg", "default", 0.0);
274                set_state(PART:"outline", "default", 0.0);
275                set_int(radio_disabled, 0);
276             }
277          }
278       }
279    }
280
281 group { name: "elm/radio/base/datetime/style1";
282       alias: "elm/radio/base/datetime";
283       images {
284          image: "tw_timepicker_num_bg_new.#.png" COMP;
285       }
286       script {
287          public radio_state;
288          public radio_disabled;
289       }
290       parts {
291          part { name: "base";
292             type: SPACER;
293             scale: 1;
294             description { state: "default" 0.0;
295                min: 0 DATETIME_FIELD_HEIGHT;
296                max: -1 DATETIME_FIELD_HEIGHT;
297                fixed: 0 1;
298             }
299          }
300          part { name: "bg";
301             scale: 1;
302             description { state: "default" 0.0;
303                image.normal: "tw_timepicker_num_bg_new.#.png";
304                color: 9 37 63 255; /*(Changeable UI) color_class: "W0811";*/
305                min: 0 DATETIME_FIELD_HEIGHT;
306                max: -1 DATETIME_FIELD_HEIGHT;
307                fixed: 0 1;
308                rel1.to: "base";
309                rel2.to: "base";
310             }
311             description { state: "pressed" 0.0;
312                inherit: "default" 0.0;
313                color: 0 110 255 255; /*(Changeable UI) color_class: "W0812";*/
314             }
315             description { state: "disabled" 0.0;
316                inherit: "default" 0.0;
317                color: 25 38 51 255; /*(Changeable UI) color_class: "W262D";*/
318             }
319          }
320          part { name: "elm.text";
321             type: TEXT;
322             mouse_events: 0;
323             scale: 1;
324             description { state: "default" 0.0;
325                rel1.to: "bg";
326                rel2.to: "bg";
327                text {
328                   font: "Tizen:style=Bold"; size: "50"; /*(Changeable UI) text_class: "T051";*/
329                   text_class: "tizen";
330                   size: 50;
331                   min: 1 1;
332                   fit: 1 1;
333                   size_range: DATETIME_TEXT_DIGIT_SIZE_INC;
334                }
335                color: 249 249 249 255; /*(Changeable UI) color_class: "T051";*/
336             }
337             description { state: "pressed" 0.0;
338                inherit: "default" 0.0;
339                text.font: "Tizen:style=Bold"; text.size: "50"; /*(Changeable UI) text_class: "T051";*/
340                text.text_class: "tizen";
341                color: 249 249 249 255; /*(Changeable UI) color_class: "T051";*/
342             }
343             description { state: "disabled" 0.0;
344                inherit: "default" 0.0;
345                text.font: "Tizen:style=Bold"; text.size: "50"; /*(Changeable UI) text_class: "T051D";*/
346                text.text_class: "tizen";
347                color: 96 96 96 255; /*(Changeable UI) color_class: "T051D";*/
348             }
349          }
350       }
351       programs {
352          program { name: "click";
353             signal: "mouse,clicked,1";
354             source: "bg";
355             script {
356                if (get_int(radio_disabled) == 1) return;
357                run_program(PROGRAM:"play_sample");
358                emit("elm,action,radio,toggle", "");
359                emit("elm,action,radio,clicked", "");
360             }
361          }
362          program {
363             name: "play_sample";
364             action: RUN_PLUGIN "touch_sound";
365          }
366       program { name: "radio_on";
367          signal: "elm,state,radio,on";
368          source: "elm";
369          script {
370             if (get_int(radio_disabled) == 1) {
371                set_state(PART:"bg", "disabled", 0.0);
372                set_state(PART:"elm.text", "disabled", 0.0);
373             }
374             else {
375                set_state(PART:"bg", "pressed", 0.0);
376                set_state(PART:"elm.text", "pressed", 0.0);
377             }
378          }
379       }
380       program { name: "radio_off";
381          signal: "elm,state,radio,off";
382          source: "elm";
383          script {
384             if (get_int(radio_disabled) == 1) {
385                set_state(PART:"bg", "disabled", 0.0);
386                set_state(PART:"elm.text", "default", 0.0);
387             }
388             else {
389                set_state(PART:"bg", "default", 0.0);
390                set_state(PART:"elm.text", "default", 0.0);
391             }
392          }
393       }
394       program { name: "disable";
395          signal: "elm,state,disabled";
396          source: "elm";
397          script {
398             set_state(PART:"bg", "disabled", 0.0);
399             set_state(PART:"elm.text", "disabled", 0.0);
400             set_int(radio_disabled, 1);
401          }
402       }
403       program { name: "enable";
404          signal: "elm,state,enabled";
405          source: "elm";
406          script {
407             set_state(PART:"bg", "default", 0.0);
408             set_state(PART:"elm.text", "default", 0.0);
409             set_int(radio_disabled, 0);
410          }
411       }
412    }
413 }
414
415 group { name: "elm/radio/base/datetime/style2";
416    inherit: "elm/radio/base/datetime/style1";
417    parts {
418       part { name: "elm.text";
419          type: TEXT;
420          mouse_events: 0;
421          scale: 1;
422          description { state: "default" 0.0;
423             rel1.to: "bg";
424             rel2.to: "bg";
425             text {
426                font: "Tizen:style=Bold"; size: "46"; /*(Changeable UI) text_class: "T052";*/
427                text_class: "tizen";
428                size_range: DATETIME_TEXT_STRING_SIZE_INC;
429             }
430             color: 249 249 249 255; /*(Changeable UI) color_class: "T052";*/
431          }
432          description { state: "pressed" 0.0;
433             inherit: "default" 0.0;
434             text.font: "Tizen:style=Bold"; text.size: "46"; /*(Changeable UI) text_class: "T052";*/
435             text.text_class: "tizen";
436             color: 249 249 249 255; /*(Changeable UI) color_class: "T052";*/
437          }
438          description { state: "disabled" 0.0;
439             inherit: "default" 0.0;
440             text.font: "Tizen:style=Bold"; text.size: "46"; /*(Changeable UI) text_class: "T052D";*/
441             text.text_class: "tizen";
442             color: 96 96 96 255; /*(Changeable UI) color_class: "T052D";*/
443          }
444       }
445    }
446 }
447
448 group { name: "elm/radio/base/datetime/style3";
449    inherit: "elm/radio/base/datetime/style2";
450    images {
451          image: "tw_timepicker_num_bg_new.#.png" COMP;
452       }
453    parts {
454       part { name: "bg";
455          scale: 1;
456          description { state: "default" 0.0;
457             image.normal: "tw_timepicker_num_bg_new.#.png";
458             color: 9 37 63 255; /*(Changeable UI) color_class: "W0811";*/
459             min: 0 DATETIME_FIELD_HEIGHT;
460             max: -1 DATETIME_FIELD_HEIGHT;
461             fixed: 0 1;
462             rel1.to: "base";
463             rel2.to: "base";
464          }
465          description { state: "pressed" 0.0;
466             inherit: "default" 0.0;
467             color: 0 110 255 255; /*(Changeable UI) color_class: "W0812";*/
468          }
469          description { state: "disabled" 0.0;
470             inherit: "default" 0.0;
471             color: 25 38 51 255; /*(Changeable UI) color_class: "W262D";*/
472          }
473       }
474    }
475 }
476 // List Radio Style
477
478 group { name: "elm/radio/base/list";
479    images {
480       image: "tw_btn_radiobox_holo_dark.png" COMP;
481       image: "tw_btn_radio_holo_dark.png" COMP;
482       image: "tw_btn_radiobox_line.png" COMP;
483    }
484    script {
485       public radio_state;
486       public radio_disabled;
487       public radio_show;
488       public is_transition_finished = 0;
489    }
490    parts {
491       part { name: "bg";
492          scale: 1;
493          description { state: "default" 0.0;
494             min: 50 50;
495             max: 50 50;
496             image.normal: "tw_btn_radiobox_holo_dark.png";
497             color: 0 13 25 255; /*(Changeable UI) color_class: "W013L1";*/
498          }
499          description { state: "pressed" 0.0;
500             inherit: "default" 0.0;
501             color: 0 72 132 102; /*(Changeable UI) color_class: "W013L1P";*/
502          }
503          description { state: "disabled" 0.0;
504             inherit: "default" 0.0;
505             color: 35 35 35 255; /*(Changeable UI) color_class: "W013L1D";*/
506          }
507       }
508       part { name: "radio";
509          clip_to: "opacity_clip";
510          scale: 1;
511          description { state: "default" 0.0;
512             max: 0 0;
513             visible: 0;
514             image.normal: "tw_btn_radio_holo_dark.png";
515          }
516          description { state: "on" 0.0;
517             inherit: "default" 0.0;
518             max: RADIO_SIZE;
519             visible: 1;
520             color: 115 191 15 255; /*(Changeable UI) color_class: "W013L2";*/
521          }
522          description { state: "pressed" 0.0;
523             inherit: "on" 0.0;
524             color: 249 249 249 255; /*(Changeable UI) color_class: "W013L2P";*/
525          }
526          description { state: "disabled" 0.0;
527             inherit: "on" 0.0;
528             color: 58 58 58 255; /*(Changeable UI) color_class: "W013L2D";*/
529          }
530       }
531       part { name: "outline";
532          scale: 1;
533          description { state: "default" 0.0;
534             rel1.to: "bg";
535             rel2.to: "bg";
536             image.normal: "tw_btn_radiobox_line.png";
537             color: 249 249 249 76; /*(Changeable UI) color_class: "W241";*/
538          }
539          description { state: "pressed" 0.0;
540             inherit: "default" 0.0;
541             color: 249 249 249 76; /*(Changeable UI) color_class: "W241P";*/
542          }
543          description { state: "disabled" 0.0;
544             inherit: "default" 0.0;
545             color: 249 249 249 76; /*(Changeable UI) color_class: "W241D";*/
546          }
547          description { state: "focused" 0.0;
548             inherit: "default" 0.0;
549             color: 0 110 255 255; /*(Changeable UI) color_class: "W201";*/
550          }
551       }
552       part { name: "opacity_clip";
553          type: RECT;
554          mouse_events: 0;
555          description { state: "default" 0.0;
556             rel1.to: "bg";
557             rel2.to: "bg";
558             color: 255 255 255 0;
559          }
560          description { state: "on" 0.0;
561             inherit: "default" 0.0;
562             color: 255 255 255 255;
563          }
564       }
565       part { name: "event";
566          scale: 1;
567          type: RECT;
568          description { state: "default" 0.0;
569             color: 0 0 0 0;
570          }
571       }
572    }
573    programs {
574       program { name: "show";
575          signal: "show";
576          script {
577             set_int(radio_show,1);
578          }
579       }
580       program { name: "hide";
581          signal: "hide";
582             script {
583                set_int(radio_show,0);
584             }
585       }
586       program { name: "click";
587          signal: "mouse,clicked,1";
588          source: "event";
589          script {
590             if (get_int(radio_disabled) == 1) return;
591             emit("elm,action,radio,toggle", "");
592          }
593       }
594       program { name: "unpressed";
595          signal: "mouse,up,1";
596          source: "event";
597          script {
598             if (get_int(radio_disabled) == 1) return;
599             if (get_int(radio_state) == 1) {
600                if (get_int(is_transition_finished) == 1)
601                  set_state(PART:"radio", "on", 0.0);
602             }
603             else
604               set_state(PART:"radio", "default", 0.0);
605             set_state(PART:"bg", "default", 0.0);
606             set_state(PART:"outline", "default", 0.0);
607          }
608       }
609       program { name: "pressed";
610          signal: "mouse,down,1";
611          source: "event";
612          script {
613             if (get_int(radio_disabled) == 1) return;
614             if (get_int(radio_state) == 1) {
615                if (get_int(is_transition_finished) == 1)
616                  set_state(PART:"radio", "pressed", 0.0);
617             }
618             else
619               set_state(PART:"radio", "default", 0.0);
620             set_state(PART:"bg", "pressed", 0.0);
621             set_state(PART:"outline", "pressed", 0.0);
622          }
623       }
624       program { name: "radio_on";
625          signal: "elm,state,radio,on";
626          source: "elm";
627          script {
628             set_int(radio_state, 1);
629             if (get_int(radio_disabled) == 1) {
630                set_state(PART:"bg", "disabled", 0.0);
631                set_state(PART:"outline", "disabled", 0.0);
632                set_state(PART:"radio", "disabled", 0.0);
633             }
634             else {
635                if (get_int(radio_show) == 1) {
636                   set_int(is_transition_finished, 0);
637                   run_program(PROGRAM:"radio_show_effect");
638                   run_program(PROGRAM:"radio_draw_effect");
639                }
640                else {
641                   set_int(is_transition_finished, 1);
642                   set_state(PART:"radio", "on", 0.0);
643                   set_state(PART:"opacity_clip", "on", 0.0);
644                }
645                set_state(PART:"bg", "default", 0.0);
646                set_state(PART:"outline", "default", 0.0);
647             }
648          }
649       }
650       program { name: "radio_off";
651          signal: "elm,state,radio,off";
652          source: "elm";
653          script {
654             if (get_int(radio_disabled) == 1) {
655                set_state(PART:"bg", "disabled", 0.0);
656                set_state(PART:"outline", "disabled", 0.0);
657             }
658             else {
659                if (get_int(radio_state) == 1) {
660                   set_state(PART:"bg", "default", 0.0);
661                   set_state(PART:"outline", "default", 0.0);
662                   set_state(PART:"radio", "default", 0.0);
663                   set_state(PART:"opacity_clip", "default", 0.0);
664                   set_int(radio_state, 0);
665                }
666             }
667          }
668       }
669       program { name: "radio_show_effect";
670          action: STATE_SET "on" 0.0;
671          transition: LINEAR 0.233;
672          target: "opacity_clip";
673       }
674       program { name: "radio_draw_effect";
675          action: STATE_SET "on" 0.0;
676          transition: LINEAR 0.267;
677          target: "radio";
678          after: "radio_on_signal";
679       }
680       program { name: "radio_on_signal";
681          script {
682             set_int(is_transition_finished, 1);
683             emit("elm,action,show,finished", "elm");
684          }
685       }
686       program { name: "focus";
687          signal: "elm,action,focus_highlight,show";
688          source: "elm";
689          action: STATE_SET "focused" 0.0;
690          target: "outline";
691       }
692       program { name: "unfocus";
693          signal: "elm,action,focus_highlight,hide";
694          source: "elm";
695          action: STATE_SET "default" 0.0;
696          target: "outline";
697       }
698       program { name: "disable";
699          signal: "elm,state,disabled";
700          source: "elm";
701          script {
702             if (get_int(radio_state) == 1)
703                set_state(PART:"radio", "disabled", 0.0);
704             else
705                set_state(PART:"radio", "default", 0.0);
706             set_state(PART:"bg", "disabled", 0.0);
707             set_state(PART:"outline", "disabled", 0.0);
708             set_int(radio_disabled, 1);
709          }
710       }
711       program { name: "enable";
712          signal: "elm,state,enabled";
713          source: "elm";
714          script {
715             if (get_int(radio_state) == 1)
716                set_state(PART:"radio", "on", 0.0);
717             else
718                set_state(PART:"radio", "default", 0.0);
719             set_state(PART:"bg", "default", 0.0);
720             set_state(PART:"outline", "default", 0.0);
721             set_int(radio_disabled, 0);
722          }
723       }
724    }
725 }