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 42
31 #define EDIT_ICON_HEIGHT 42
32 #define GENLIST_EDIT_SELECT_ICON_WIDTH EDIT_ICON_WIDTH
33 #define GENLIST_EDIT_SELECT_ICON_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" 60;
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: "checkbox_on.png" COMP;
51 image: "checkbox_off.png" COMP;
52 image: "01_list_reorder.png" COMP;
53 image: "01_list_reorder_selected.png" COMP;
54 image: "01_list_minus.png" COMP;
55 image: "01_list_minus_rotated.png" COMP;
56 image: "01_list_minus_on_rotate.png" COMP;
57 image: "01_list_plus.png" COMP;
58 image: "01_list_reorder_bg_above.png" COMP;
59 image: "01_list_reorder_bg_below.png" COMP;
60 image: "00_button_reveal.png" COMP;
67 description { state: "default" 0.0;
71 description { state: "rename" 0.0;
72 inherit: "default" 0.0;
73 color: 255 255 255 255;
77 part { name: "base_line_above";
80 description { state: "default" 0.0;
86 rel2.relative: 1.0 0.0;
88 color: GENLIST_EDIT_PART_LINE_INC;
91 part { name: "base_line_below";
94 description { state: "default" 0.0;
99 rel1.relative: 0.0 1.0;
101 color: GENLIST_EDIT_PART_LINE_INC;
104 part { name: "reorder_glow_above";
106 description { state: "default" 0.0;
109 rel1.relative: 0.0 -0.3;
111 rel2.relative: 1.0 0.0;
113 normal: "01_list_reorder_bg_above.png";
117 description { state: "reorder" 0.0;
118 inherit: "default" 0.0;
122 part { name: "reorder_glow_below";
124 description { state: "default" 0.0;
127 rel1.relative: 0.0 1.0;
129 rel2.relative: 1.0 1.3;
131 normal: "01_list_reorder_bg_below.png";
135 description { state: "reorder" 0.0;
136 inherit: "default" 0.0;
140 part { name: "elm.padding.left";
144 description { state: "default" 0.0;
148 rel2.relative: 0.0 1.0;
152 part { name: "elm.padding.top";
156 description { state: "default" 0.0;
160 rel2.relative: 1.0 0.0;
164 part { name: "insert_icon";
167 description { state: "default" 0.0;
172 rel1.to_x: "elm.padding.left";
173 rel1.to_y: "elm.padding.top";
174 rel1.relative: 1.0 1.0;
175 rel2.to_y: "elm.padding.top";
176 image.normal: "01_list_plus.png";
180 description { state: "enabled" 0.0;
181 inherit: "default" 0.0;
182 min: EDIT_ICON_WIDTH EDIT_ICON_HEIGHT;
183 max: EDIT_ICON_WIDTH EDIT_ICON_HEIGHT;
187 part { name: "select_icon";
190 description { state: "default" 0.0;
191 min: GENLIST_EDIT_SELECT_ICON_WIDTH GENLIST_EDIT_SELECT_ICON_HEIGHT;
198 to_y: "elm.padding.top";
202 to_y: "elm.padding.top";
204 image.normal: "checkbox_off.png";
206 description { state: "enabled" 0.0;
207 inherit: "default" 0.0;
210 description { state: "on_transfer" 0.0;
211 inherit: "default" 0.0;
213 image.normal: "checkbox_on.png";
215 description { state: "del_confirm" 0.0;
216 inherit: "default" 0.0;
218 image.normal: "checkbox_on.png";
221 part { name: "select_icon_touch_area";
225 description { state: "default" 0.0;
226 min: (GENLIST_EDIT_SELECT_ICON_WIDTH+10) 0;
229 rel1 { relative: 0 0; to_x: "select_icon"; }
230 rel2 { relative: 0 1; to_x: "select_icon"; }
235 part { name: "reorder_icon";
238 description { state: "default" 0.0;
245 to_y: "elm.padding.top";
249 to_y: "elm.padding.top";
253 normal: "01_list_reorder.png";
258 description { state: "enabled" 0.0;
259 inherit: "default" 0.0;
260 min: EDIT_ICON_WIDTH EDIT_ICON_HEIGHT;
261 max: EDIT_ICON_WIDTH EDIT_ICON_HEIGHT;
264 description { state: "selected" 0.0;
265 inherit: "default" 0.0;
266 min: EDIT_ICON_WIDTH EDIT_ICON_HEIGHT;
267 max: EDIT_ICON_WIDTH EDIT_ICON_HEIGHT;
269 normal: "01_list_reorder_selected.png";
274 part { name: "elm.icon.del_confirm";
278 description { state: "default" 0.0;
284 to_y: "elm.padding.top";
288 to_x: "elm.padding.right";
289 to_y: "elm.padding.top";
294 description { state: "enabled" 0.0;
295 inherit: "default" 0.0;
298 description { state: "del_confirm" 0.0;
299 inherit: "default" 0.0;
304 part { name: "del_confirm_wrapper";
308 description { state: "default" 0.0;
310 rel1.to: "elm.icon.del_confirm";
311 rel1.relative: 0.0 0.0;
312 rel2.to: "elm.icon.del_confirm";
313 rel2.relative: 1.0 1.0;
315 color: 255 255 255 0;
318 description { state: "enabled" 0.0;
319 inherit: "default" 0.0;
320 color: 255 255 255 255;
323 description { state: "on_transfer" 0.0;
324 inherit: "default" 0.0;
325 rel2.to: "elm.icon.del_confirm";
326 rel2.relative: 0.5 1.0;
327 color: 255 255 255 255;
330 description { state: "del_confirm" 0.0;
331 inherit: "default" 0.0;
332 rel2.to: "elm.icon.del_confirm";
333 rel2.relative: 0.0 1.0;
334 color: 255 255 255 255;
339 part { name: "elm.padding.right";
343 description { state: "default" 0.0;
350 to_y: "elm.padding.top";
354 to_y: "elm.padding.top";
360 /* part { name: "elm.swallow.edit_field";
364 description { state: "default" 0.0;
368 to_x: "elm.padding.left";
371 to_x: "elm.padding.right";
379 part { name: "elm.swallow.end";
382 description { state: "default" 0.0;
386 rel1.to_x: "elm.padding.right";
389 to_x: "elm.padding.right";
392 description { state: "disable" 0.0;
393 inherit: "default" 0.0;
397 part { name: "elm.swallow.edit_field_1line";
401 description { state: "default" 0.0;
405 to_x: "elm.padding.left";
408 to_x: "elm.padding.right";
415 part { name: "elm.swallow.edit_field_2line";
419 description { state: "default" 0.0;
423 to_x: "elm.padding.left";
426 to_x: "elm.padding.right";
436 name: "on_mouse_down";
437 signal: "mouse,down,1";
439 action: SIGNAL_EMIT "elm,action,edit,reset" "elm";
443 signal: "mouse,down,1";
444 source: "select_icon_touch_area";
445 action: SIGNAL_EMIT "elm,action,item,delete" "elm";
449 signal: "mouse,down,1";
450 source: "insert_icon";
451 action: SIGNAL_EMIT "elm,action,item,insert" "elm";
455 signal: "mouse,down,1";
456 source: "reorder_icon";
457 action: SIGNAL_EMIT "elm,click,item,reorder" "elm";
461 action: STATE_SET "enabled" 0.0;
462 target: "select_icon";
463 target: "elm.icon.del_confirm";
464 target: "del_confirm_wrapper";
465 transition: LINEAR 0.1;
466 after: "hide_del_confirm";
471 signal: "elm,state,delete";
473 action: STATE_SET "on_transfer" 0.0;
474 target: "select_icon";
475 target: "del_confirm_wrapper";
476 transition: LINEAR 0.1;
480 name: "start_del_confirm_mode";
481 signal: "elm,state,del_confirm";
483 action: STATE_SET "enabled" 0.0;
484 target: "del_confirm_wrapper";
485 after: "animate_to_del_confirm_mode";
488 name: "animate_to_del_confirm_mode";
489 signal: "elm,state,del_confirm";
491 action: STATE_SET "on_transfer" 0.0;
492 target: "select_icon";
493 target: "del_confirm_wrapper";
494 transition: LINEAR 0.5;
495 after: "del_confirm_mode";
498 name: "del_confirm_mode";
499 action: STATE_SET "del_confirm" 0.0;
500 target: "select_icon";
501 target: "elm.icon.del_confirm";
502 target: "del_confirm_wrapper";
503 transition: LINEAR 0.5;
506 name: "hide_del_confirm";
507 action: SIGNAL_EMIT "elm,action,hide,del_confirm" "elm";
508 after : hide_del_confirm_wrapper;
511 name: "hide_del_confirm_wrapper";
512 action: STATE_SET "default" 0.0;
513 target: "del_confirm_wrapper";
514 transition: LINEAR 0.1;
517 name: "show_reorder_glow";
518 signal: "elm,action,item,reorder_start";
520 action: STATE_SET "reorder" 0.0;
521 target: "reorder_glow_above";
522 target: "reorder_glow_below";
525 name: "hide_reorder_glow";
526 signal: "elm,action,item,reorder_end";
528 action: STATE_SET "default" 0.0;
529 target: "reorder_glow_above";
530 target: "reorder_glow_below";
533 name: "enable_delete";
534 signal: "elm,state,del,enable";
536 action: STATE_SET "enabled" 0.0;
537 target: "select_icon";
540 name: "enable_delete_animated";
541 signal: "elm,state,del,animated,enable";
543 action: STATE_SET "enabled" 0.0;
544 target: "select_icon";
545 transition: LINEAR 0.1;
548 name: "disable_delete";
549 signal: "elm,state,del,disable";
551 action: STATE_SET "default" 0.0;
552 target: "select_icon";
555 name: "disable_delete_animated";
556 signal: "elm,state,del,animated,disable";
558 action: STATE_SET "default" 0.0;
559 target: "select_icon";
560 transition: LINEAR 0.1;
563 name: "enable_insert";
564 signal: "elm,state,ins,enable";
566 action: STATE_SET "enabled" 0.0;
567 target: "insert_icon";
570 name: "enable_insert_animated";
571 signal: "elm,state,ins,animated,enable";
573 action: STATE_SET "enabled" 0.0;
574 target: "insert_icon";
575 transition: LINEAR 0.1;
578 name: "disable_insert";
579 signal: "elm,state,ins,disable";
581 action: STATE_SET "default" 0.0;
582 target: "insert_icon";
585 name: "disable_insert_animated";
586 signal: "elm,state,ins,animated,disable";
588 action: STATE_SET "default" 0.0;
589 target: "insert_icon";
590 transition: LINEAR 0.1;
593 name: "enable_reorder";
594 signal: "elm,state,reorder,enable";
596 action: STATE_SET "enabled" 0.0;
597 target: "reorder_icon";
600 name: "enable_reorder_animated";
601 signal: "elm,state,reorder,animated,enable";
603 action: STATE_SET "enabled" 0.0;
604 target: "reorder_icon";
605 transition: LINEAR 0.1;
608 name: "disable_reorder";
609 signal: "elm,state,reorder,disable";
611 action: STATE_SET "default" 0.0;
612 target: "reorder_icon";
615 name: "disable_reorder_animated";
616 signal: "elm,state,reorder,animated,disable";
618 action: STATE_SET "default" 0.0;
619 target: "reorder_icon";
620 transition: LINEAR 0.1;
623 name: "enable_rename";
624 signal: "elm,state,rename,enable";
626 action: STATE_SET "rename" 0.0;
630 name: "disable_rename";
631 signal: "elm,state,rename,disable";
633 action: STATE_SET "default" 0.0;
637 name: "enable_edit_end";
638 signal: "elm,state,edit_end,enable";
640 action: STATE_SET "default" 0.0;
641 target: "elm.swallow.end";
644 name: "disable_edit_end";
645 signal: "elm,state,edit_end,disable";
647 action: STATE_SET "disable" 0.0;
648 target: "elm.swallow.end";
653 group { name: "elm/genlist/item/select_all/default";
654 alias: "elm/genlist/item_odd/select_all/default";
655 alias: "elm/genlist/item_compress/select_all/default";
656 alias: "elm/genlist/item_compress_odd/select_all/default";
658 data.item: "stacking" "above";
659 data.item: "selectraise" "on";
660 data.item: "labels" "elm.text";
661 data.item: "icons" "elm.swallow.icon elm.swallow.end";
663 image: "00_list_bar_press_1x80.png" COMP;
670 description { state: "default" 0.0;
672 color: GENLIST_PART_BG_COLOR_INC;
681 description { state: "default" 0.0;
682 color: GENLIST_EDIT_BG_COLOR_INC;
686 BEAT_GENLIST_PART_BG_IMAGE
687 BEAT_GENLIST_PART_BOTTOM_LINE
688 BEAT_GENLIST_PART_PADDING_LEFT( 10 )
689 BEAT_GENLIST_PART_PADDING_RIGHT( 15 )
690 part { name: "elm.swallow.end";
694 description { state: "default" 0.0;
697 rel1.to_x: "elm.padding.right";
700 to_x: "elm.padding.right";
704 part { name: "elm.text";
709 description { state: "default" 0.0;
713 to_x: "elm.swallow.icon";
716 to_x: "elm.swallow.end";
720 color: GENLIST_PART_TEXT_COLOR_INC;
722 font: "SLP:style=Roman";
729 description { state: "selected" 0.0;
730 inherit: "default" 0.0;
731 color: 225 225 225 255;
734 part { name: "elm.swallow.icon";
737 description { state: "default" 0.0;
741 min: EDIT_ICON_WIDTH EDIT_ICON_HEIGHT;
742 max: EDIT_ICON_WIDTH EDIT_ICON_HEIGHT;
745 to_x: "elm.padding.left";
747 rel2.to_x: "elm.padding.left";
749 normal: "checkbox_off.png";
752 description { state: "selected" 0.0;
753 inherit: "default" 0.0;
755 normal: "checkbox_on.png";
760 BEAT_GENLIST_PART_DISCLIP
763 // signal: elm,state,%s,active
764 // a "check" item named %s went active
765 // signal: elm,state,%s,passive
766 // a "check" item named %s went passive
767 // default is passive
768 program { name: "go_disabled";
769 signal: "elm,state,disabled";
771 action: STATE_SET "disabled" 0.0;
774 program { name: "go_enabled";
775 signal: "elm,state,enabled";
777 action: STATE_SET "default" 0.0;
781 name: "enable_select_check";
782 signal: "elm,state,del_confirm";
784 action: STATE_SET "selected" 0.0;
785 target: "elm.swallow.icon";
788 name: "enable_select_uncheck";
789 signal: "elm,state,del,animated,enable";
791 action: STATE_SET "default" 0.0;
792 target: "elm.swallow.icon";
795 name: "on_mouse_down";
796 signal: "mouse,down,1";
797 source: "elm.swallow.icon";
798 action: SIGNAL_EMIT "elm,action,select,press" "elm";