1 group { name: "elm/radio/base/default";
3 image: "radio_base.png" COMP;
4 image: "radio.png" COMP;
5 image: "radio2.png" COMP;
11 description { state: "default" 0.0;
13 rel2.relative: 0.0 1.0;
19 aspect_preference: VERTICAL;
20 image.normal: "radio_base.png";
26 description { state: "default" 0.0;
30 image.normal: "radio.png";
32 description { state: "visible" 0.0;
33 inherit: "default" 0.0;
37 part { name: "elm.swallow.content";
39 description { state: "default" 0.0;
45 rel1.relative: 1.0 0.0;
48 rel2.relative: 1.0 1.0;
51 description { state: "visible" 0.0;
52 inherit: "default" 0.0;
54 color: 255 255 255 255;
57 description { state: "disabled" 0.0;
58 inherit: "default" 0.0;
59 color: 128 128 128 128;
61 description { state: "disabled_visible" 0.0;
62 inherit: "default" 0.0;
63 color: 128 128 128 128;
68 part { name: "elm.text";
72 description { state: "default" 0.0;
74 rel1.to_x: "elm.swallow.content";
75 rel1.relative: 1.0 0.0;
77 rel2.relative: 1.0 1.0;
81 font: "Sans,Edje-Vera";
87 description { state: "visible" 0.0;
88 inherit: "default" 0.0;
92 description { state: "disabled" 0.0;
93 inherit: "default" 0.0;
97 description { state: "disabled_visible" 0.0;
98 inherit: "default" 0.0;
105 part { name: "events";
107 ignore_flags: ON_HOLD;
108 description { state: "default" 0.0;
112 part { name: "disabler";
114 description { state: "default" 0.0;
118 description { state: "disabled" 0.0;
119 inherit: "default" 0.0;
125 program { name: "click";
126 signal: "mouse,up,1";
128 action: SIGNAL_EMIT "elm,action,radio,toggle" "";
130 program { name: "radio_on";
131 signal: "elm,state,radio,on";
133 action: STATE_SET "visible" 0.0;
136 program { name: "radio_off";
137 signal: "elm,state,radio,off";
139 action: STATE_SET "default" 0.0;
142 program { name: "text_show";
143 signal: "elm,state,text,visible";
145 action: STATE_SET "visible" 0.0;
148 program { name: "text_hide";
149 signal: "elm,state,text,hidden";
151 action: STATE_SET "default" 0.0;
154 program { name: "icon_show";
155 signal: "elm,state,icon,visible";
157 action: STATE_SET "visible" 0.0;
158 target: "elm.swallow.content";
160 program { name: "icon_hide";
161 signal: "elm,state,icon,hidden";
163 action: STATE_SET "default" 0.0;
164 target: "elm.swallow.content";
166 program { name: "disable";
167 signal: "elm,state,disabled";
169 action: STATE_SET "disabled" 0.0;
171 after: "disable_text";
173 program { name: "disable_text";
177 get_state(PART:"elm.text", st, 30, vl);
178 if (!strcmp(st, "visible"))
179 set_state(PART:"elm.text", "disabled_visible", 0.0);
181 set_state(PART:"elm.text", "disabled", 0.0);
183 get_state(PART:"elm.swallow.content", st, 30, vl);
184 if (!strcmp(st, "visible"))
185 set_state(PART:"elm.swallow.content", "disabled_visible", 0.0);
187 set_state(PART:"elm.swallow.content", "disabled", 0.0);
190 program { name: "enable";
191 signal: "elm,state,enabled";
193 action: STATE_SET "default" 0.0;
195 after: "enable_text";
197 program { name: "enable_text";
201 get_state(PART:"elm.text", st, 30, vl);
202 if (!strcmp(st, "disabled_visible"))
203 set_state(PART:"elm.text", "visible", 0.0);
205 set_state(PART:"elm.text", "default", 0.0);
207 get_state(PART:"elm.swallow.content", st, 30, vl);
208 if (!strcmp(st, "visible"))
209 set_state(PART:"elm.swallow.content", "visible", 0.0);
211 set_state(PART:"elm.swallow.content", "default", 0.0);