4 * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd.
6 * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>,
7 * Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>,
8 * Hyunsil Park <hyunsil.park@samsung.com>, Sohyun Kim <anna1014.kim@samsung.com>, Seunggyun Kim <sgyun.kim@samsung.com>
10 * This library is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU Lesser General Public License as published by the
12 * Free Software Foundation; either version 2.1 of the License, or (at your option)
15 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this library; if not, write to the Free Software Foundation, Inc., 51
22 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
30 #define EDIT_ICON_WIDTH 26
31 #define EDIT_ICON_HEIGHT 26
32 #define GENLIST_EDIT_CHECKBOX_WIDTH EDIT_ICON_WIDTH
33 #define GENLIST_EDIT_CHECKBOX_HEIGHT EDIT_ICON_HEIGHT
35 group { name: "elm/genlist/item/edit_control/default";
36 alias: "elm/genlist/item_odd/edit_control/default";
37 alias: "elm/genlist/item_compress/edit_control/default";
38 alias: "elm/genlist/item_compress_odd/edit_control/default";
40 data.item: "reorder" "reorder_icon";
41 data.item: "insert" "insert_icon";
42 data.item: "delete" "select_icon";
43 data.item: "del_confirm" "elm.icon.del_confirm";
44 data.item: "icon_width" 50;
45 data.item: "del_button_style" "custom/red";
46 data.item: "icons" "elm.swallow.end";
47 data.item: "rename" "elm.swallow.edit_field_1line elm.swallow.edit_field_2line";
50 image: "00_check_bg.png" COMP;
51 image: "00_check_checking.png" COMP;
52 image: "01_list_reorder_bg_above.png" COMP;
53 image: "01_list_reorder_bg_below.png" COMP;
54 image: "00_list_group_edit_field_middle.png" COMP;
55 image: "00_reorder_group_list_bg.png" COMP;
56 image: "00_list_body_bg.png" COMP;
63 description { state: "default" 0.0;
68 BEAT_GENLIST_PART_PADDING_TOP( 0 )
69 BEAT_GENLIST_PART_PADDING_BOTTOM( 0 )
71 part { name: "elm.padding.left";
74 description { state: "default" 0.0;
78 rel2.relative: 0.0 1.0;
81 description { state: "reorder" 0.0;
82 inherit: "default" 0.0;
88 BEAT_GENLIST_PART_PADDING_RIGHT( 10 )
90 part { name: "reorder_left_image";
94 description { state: "default" 0.0;
99 to_x: "elm.padding.left";
100 to_y: "elm.padding.top";
104 to_x: "elm.padding.left";
105 to_y: "elm.padding.bottom";
107 image.normal: "00_list_body_bg.png";
109 description { state: "reorder" 0.0;
110 inherit: "default" 0.0;
113 image.border: 0 0 13 13;
114 image.normal: "00_reorder_group_list_bg.png";
118 part { name: "elm.edit_bg";
121 description { state: "default" 0.0;
124 to_x: "reorder_left_image";
125 to_y: "elm.padding.top";
129 to_y: "elm.padding.bottom";
131 color: GENLIST_PART_BG_COLOR_INC;
135 part { name: "check_bg";
139 description { state: "default" 0.0;
146 to_x: "reorder_left_image";
151 to_x: "reorder_left_image";
154 image.normal: "00_check_bg.png";
156 description { state: "enabled" 0.0;
157 inherit: "default" 0.0;
164 part { name: "check_checking";
168 description { state: "default" 0.0;
175 to_x: "reorder_left_image";
180 to_x: "reorder_left_image";
183 image.normal: "00_check_checking.png";
185 description { state: "on_uncheck" 0.0;
186 inherit: "default" 0.0;
189 description { state: "on_check" 0.0;
190 inherit: "default" 0.0;
195 part { name: "check_bg_touch_area";
199 description { state: "default" 0.0;
200 min: (GENLIST_EDIT_CHECKBOX_WIDTH+10) 0;
203 rel1 { relative: 0 0; to_x: "check_bg"; }
204 rel2 { relative: 0 1; to_x: "check_bg"; }
209 part { name: "original_edc";
214 description { state: "default" 0.0;
218 to_y: "elm.padding.top";
222 to_x: "elm.swallow.end";
223 to_y: "elm.padding.bottom";
226 description { state: "disabled" 0.0;
227 inherit: "default" 0.0;
232 part { name: "elm.swallow.end";
235 description { state: "default" 0.0;
239 rel1.to_x: "elm.padding.right";
242 to_x: "elm.padding.right";
245 description { state: "disable" 0.0;
246 inherit: "default" 0.0;
251 part { name: "elm.swallow.edit_field_bg";
255 description { state: "default" 0.0;
257 color: 255 255 255 0;
267 image.border: 13 13 9 9;
268 image.normal: "00_list_group_edit_field_middle.png";
270 description { state: "enabled" 0.0;
271 inherit: "default" 0.0;
273 color: 255 255 255 255;
277 part { name: "elm.swallow.edit_field_1line";
281 description { state: "default" 0.0;
292 description { state: "enabled" 0.0;
293 inherit: "default" 0.0;
298 part { name: "bottom_line";
302 description { state: "default" 0.0;
306 color: GENLIST_EDIT_PART_LINE_INC;
315 inherit: "default" 0.0;
319 state: "reorder" 0.0;
320 inherit: "default" 0.0;
325 part { name: "reorder_glow_above";
327 description { state: "default" 0.0;
329 rel1.relative: 0.0 -0.3;
330 rel2.relative: 1.0 0.0;
332 normal: "01_list_reorder_bg_above.png";
336 description { state: "reorder" 0.0;
337 inherit: "default" 0.0;
341 part { name: "reorder_glow_below";
343 description { state: "default" 0.0;
345 rel1.relative: 0.0 1.0;
346 rel2.relative: 1.0 1.3;
348 normal: "01_list_reorder_bg_below.png";
352 description { state: "reorder" 0.0;
353 inherit: "default" 0.0;
358 BEAT_GENLIST_PART_DISCLIP
363 program { name: "reorder_enable";
364 signal: "elm,state,reorder_enable";
366 action: STATE_SET "reorder" 0.0;
367 target: "reorder_left_image";
368 target: "elm.padding.left";
369 target: "bottom_line";
371 program { name: "reorder_disable";
372 signal: "elm,state,reorder_disable";
374 action: STATE_SET "default" 0.0;
375 target: "reorder_left_image";
376 target: "elm.padding.left";
377 target: "bottom_line";
379 program { name: "reorder_enable_effect";
380 signal: "elm,state,reorder_enable_effect";
382 action: STATE_SET "reorder" 0.0;
383 target: "reorder_left_image";
384 after: "reorder_enable_padding_effect";
386 program { name: "reorder_disable_effect";
387 signal: "elm,state,reorder_disable_effect";
389 action: STATE_SET "default" 0.0;
390 target: "reorder_left_image";
391 after: "reorder_disable_padding_effect";
393 program { name: "reorder_enable_padding_effect";
395 action: STATE_SET "reorder" 0.0;
396 transition: DECELERATE 0.5;
397 target: "elm.padding.left";
398 target: "bottom_line";
400 program { name: "reorder_disable_padding_effect";
401 signal: "elm,state,reorder_disable";
403 action: STATE_SET "default" 0.0;
404 transition: DECELERATE 0.5;
405 target: "elm.padding.left";
406 target: "bottom_line";
412 signal: "mouse,clicked,1";
413 source: "check_bg_touch_area";
414 action: SIGNAL_EMIT "elm,action,item,select" "elm";
417 name: "enable_select_mode";
418 signal: "elm,state,sel,enable";
420 action: STATE_SET "enabled" 0.0;
424 name: "disable_select_mode";
425 signal: "elm,state,sel,disable";
427 action: STATE_SET "default" 0.0;
431 name: "enable_select_effect_mode";
432 signal: "elm,state,sel,enable_effect";
434 action: STATE_SET "enabled" 0.0;
435 transition: DECELERATE 0.5;
439 name: "disable_select_effect_mode";
440 signal: "elm,state,sel,disable_effect";
442 action: STATE_SET "default" 0.0;
443 transition: DECELERATE 0.5;
447 name: "enable_delete";
448 signal: "elm,state,sel_uncheck";
450 action: STATE_SET "on_uncheck" 0.0;
451 target: "check_checking";
454 name: "select_icon_check_mode";
455 signal: "elm,state,sel_check";
457 action: STATE_SET "on_check" 0.0;
458 target: "check_checking";
463 name: "show_reorder_glow";
464 signal: "elm,action,item,reorder_start";
466 action: STATE_SET "reorder" 0.0;
467 target: "reorder_glow_above";
468 target: "reorder_glow_below";
471 name: "hide_reorder_glow";
472 signal: "elm,action,item,reorder_end";
474 action: STATE_SET "default" 0.0;
475 target: "reorder_glow_above";
476 target: "reorder_glow_below";
481 name: "enable_rename_mode";
482 signal: "elm,state,rename,enable";
484 action: STATE_SET "enabled" 0.0;
485 transition: DECELERATE 0.3;
486 target: "elm.swallow.edit_field_bg";
487 target: "elm.swallow.edit_field_1line";
490 name: "disable_rename_mode";
491 signal: "elm,state,rename,disable";
493 action: STATE_SET "default" 0.0;
494 transition: DECELERATE 0.3;
495 target: "elm.swallow.edit_field_bg";
496 target: "elm.swallow.edit_field_1line";
501 group { name: "elm/genlist/item/select_all/default";
502 alias: "elm/genlist/item_odd/select_all/default";
503 alias: "elm/genlist/item_compress/select_all/default";
504 alias: "elm/genlist/item_compress_odd/select_all/default";
506 data.item: "stacking" "above";
507 data.item: "selectraise" "on";
508 data.item: "labels" "elm.text";
515 description { state: "default" 0.0;
517 color: GENLIST_PART_BG_COLOR_INC;
526 description { state: "default" 0.0;
527 color: GENLIST_PART_SELECT_ALL_BG_COLOR_INC;
531 BEAT_GENLIST_PART_BG_IMAGE
532 BEAT_GENLIST_PART_BOTTOM_LINE
533 BEAT_GENLIST_PART_PADDING_LEFT( 10 )
534 BEAT_GENLIST_PART_PADDING_RIGHT( 15 )
535 part { name: "elm.swallow.end";
539 description { state: "default" 0.0;
542 rel1.to_x: "elm.padding.right";
545 to_x: "elm.padding.right";
549 part { name: "elm.text";
554 description { state: "default" 0.0;
561 to_x: "elm.swallow.end";
565 color: GENLIST_PART_TEXT_COLOR_INC;
567 font: "SLP:style=Roman";
574 description { state: "selected" 0.0;
575 inherit: "default" 0.0;
576 color: 225 225 225 255;
579 part { name: "check_bg";
583 description { state: "default" 0.0;
589 to_x: "elm.padding.left";
594 to_x: "elm.padding.left";
597 image.normal: "00_check_bg.png";
601 part { name: "check_checking";
605 description { state: "default" 0.0;
612 to_x: "elm.padding.left";
617 to_x: "elm.padding.left";
620 image.normal: "00_check_checking.png";
622 description { state: "on_uncheck" 0.0;
623 inherit: "default" 0.0;
626 description { state: "on_check" 0.0;
627 inherit: "default" 0.0;
632 part { name: "check_bg_touch_area";
636 description { state: "default" 0.0;
637 min: (GENLIST_EDIT_CHECKBOX_WIDTH+10) 0;
640 rel1 { relative: 0 0; to_x: "check_bg"; }
641 rel2 { relative: 0 1; to_x: "check_bg"; }
646 BEAT_GENLIST_PART_DISCLIP
650 name: "enable_select_check";
651 signal: "elm,state,sel_check";
653 action: STATE_SET "on_check" 0.0;
654 target: "check_checking";
657 name: "enable_select_uncheck";
658 signal: "elm,state,sel_uncheck";
660 action: STATE_SET "on_uncheck" 0.0;
661 target: "check_checking";
664 name: "on_mouse_click";
665 signal: "mouse,click,1";
666 source: "check_bg_touch_area";
667 action: SIGNAL_EMIT "elm,action,select,click" "elm";