3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 ////////////////////////////////////////////////////////////////////////////////
21 group { name: "elm/check/base/extended/itemcheck";
23 image: "B12_button_delete.png" COMP;
24 image: "B12_button_delete_press.png" COMP;
35 description { state: "default" 0.0;
36 rel2.relative: 0.0 1.0;
48 description { state: "default" 0.0;
49 rel2.relative: 1.0 1.0;
56 description { state: "pressed" 0.0;
57 inherit: "default" 0.0;
59 description { state: "disabled" 0.0;
60 inherit: "default" 0.0;
67 description { state: "default" 0.0;
72 normal: "B12_button_delete.png";
73 //border: 16 12 14 14;
78 description { state: "visible" 0.0;
79 inherit: "default" 0.0;
81 //normal: "00_check_on.png";
84 description { state: "pressed" 0.0;
85 inherit: "default" 0.0;
87 normal: "B12_button_delete_press.png";
90 description { state: "visible_pressed" 0.0;
91 inherit: "default" 0.0;
93 //normal: "00_check_on_press.png";
97 part { name: "elm.swallow.content";
99 description { state: "default" 0.0;
102 color: 255 255 255 255;
105 rel1.relative: 1.0 0.0;
108 rel2.relative: 1.0 1.0;
111 description { state: "visible" 0.0;
112 inherit: "default" 0.0;
116 aspect_preference: VERTICAL;
118 description { state: "disabled" 0.0;
119 inherit: "default" 0.0;
120 color: 128 128 128 128;
122 description { state: "disabled_visible" 0.0;
123 inherit: "default" 0.0;
124 color: 128 128 128 128;
130 part { name: "events";
132 ignore_flags: ON_HOLD;
133 description { state: "default" 0.0;
137 part { name: "disabler";
139 description { state: "default" 0.0;
143 description { state: "disabled" 0.0;
144 inherit: "default" 0.0;
151 program { name: "click";
152 signal: "mouse,up,1";
154 action: SIGNAL_EMIT "elm,action,check,toggle" "";
156 program { name: "pressed";
157 signal: "mouse,down,1";
160 get_state(PART:"check", st, 30, vl);
161 if (!strcmp(st, "visible"))
162 set_state(PART:"check", "visible_pressed", 0.0);
163 else if (!strcmp(st, "default"))
164 set_state(PART:"check", "pressed", 0.0);
166 after: "checkpressed";
168 program { name: "checkpressed";
169 signal: "mouse,up,1";
171 action: SIGNAL_EMIT "elm,action,click" "";
173 program { name: "mouseout";
176 after: "bg_check_normal";
178 program { name: "bg_check_normal";
180 get_state(PART:"check", st, 30, vl);
181 if (!strcmp(st, "pressed"))
182 set_state(PART:"check", "default", 0.0);
183 else if (!strcmp(st, "visible_pressed"))
184 set_state(PART:"check", "visible", 0.0);
187 program { name: "check_on";
188 signal: "elm,state,check,on";
190 action: STATE_SET "visible" 0.0;
193 program { name: "check_off";
194 signal: "elm,state,check,off";
196 action: STATE_SET "default" 0.0;
199 program { name: "icon_show";
200 signal: "elm,state,icon,visible";
202 action: STATE_SET "visible" 0.0;
203 target: "elm.swallow.content";
205 program { name: "icon_hide";
206 signal: "elm,state,icon,hidden";
208 action: STATE_SET "default" 0.0;
209 target: "elm.swallow.content";
211 program { name: "disable";
212 signal: "elm,state,disabled";
214 action: STATE_SET "disabled" 0.0;
217 program { name: "enable";
218 signal: "elm,state,enabled";
220 action: STATE_SET "default" 0.0;
228 #define PL 187 // Thumbnail Long
229 #define PS 151 // Thumbnail Short
230 #define INNER 6 // Inner line
232 group { name: "elm/gengrid/widestyle/horizontal_layout";
234 image: "B12_button_delete.png" COMP;
235 image: "B12_button_delete_press.png" COMP;
246 description { state: "default" 0.0;
247 rel1 { relative: 0.0 0.0; }
248 rel2 { relative: 1.0 1.0; }
252 part { name: "icon_bg";
256 description { state: "default" 0.0;
257 rel1 { relative: 0.0 0.0; to: "bg"; }
258 rel2 { relative: 1.0 1.0; to: "bg"; }
261 part { name: "elm.swallow.icon";
265 description { state: "default" 0.0;
266 rel1 { relative: 0.0 0.0; offset: 1 1; to: "icon_bg"; }
267 rel2 { relative: 1.0 1.0; offset: -2 -2; to: "icon_bg"; }
270 part { name: "cliprect";
273 description { state: "default" 0.0;
274 rel1 { relative: 0.0 0.0; to: "elm.swallow.icon"; }
275 rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; }
278 part { name: "elm.swallow.inner";
283 description { state: "default" 0.0;
284 rel1 { relative: 0.0 0.0; offset: 1 1; to: "cliprect"; }
285 rel2 { relative: 1.0 1.0; offset: -1 -1; to: "cliprect"; }
288 part { name: "elm.rect.dim";
292 description { state: "default" 0.0;
298 description { state: "show" 0.0;
299 inherit: "default" 0.0;
303 part { name: "delbtn";
307 description { state: "default" 0.0;
308 rel1.to: "elm.swallow.icon";
310 rel2.to: "elm.swallow.icon";
318 part { name: "delbtn/img";
321 description { state: "default" 0.0;
326 description { state: "show" 0.0;
327 inherit: "default" 0.0;
330 normal: "B12_button_delete.png";
333 description { state: "pressed" 0.0;
334 inherit: "default" 0.0;
337 normal: "B12_button_delete_press.png";
343 program { name: "pressed";
344 signal: "mouse,down,1";
345 source: "delbtn/img";
347 get_state(PART:"delbtn/img", st, 30, vl);
348 if (!strcmp(st, "show"))
349 set_state(PART:"delbtn/img", "pressed", 0.0);
352 program { name: "mouseout";
354 source: "delbtn/img";
356 get_state(PART:"delbtn/img", st, 30, vl);
357 if (!strcmp(st, "pressed"))
358 set_state(PART:"delbtn/img", "show", 0.0);
361 program { name: "mouse_up_delbtn_img";
362 signal: "mouse,up,1";
363 source: "delbtn/img";
364 action: SIGNAL_EMIT "elm,action,click" "";
366 program { name: "show_delbtn";
368 signal: "elm,state,show,delbtn";
370 set_state(PART:"delbtn/img", "show", 0.0);
373 program { name: "hide_delbtn";
375 signal: "elm,state,hide,delbtn";
377 set_state(PART:"delbtn/img", "default", 0.0);
380 program { name: "show_dim";
382 signal: "elm,state,show,dim";
383 action: STATE_SET "show" 0.0;
384 target: "elm.rect.dim";
386 program { name: "hide_dim";
388 signal: "elm,state,hide,dim";
389 action: STATE_SET "default" 0.0;
390 target: "elm.rect.dim";