2 * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
4 * BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
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.
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.
27 //****************************************************************************//
28 // ******************************* Default size macro **********************//
29 //**************************************************************************//
30 // if size is different for each theme, split it into each theme inc.
32 #define GENLIST_HEIGHT_1LINE 102 // (112 - top/bottom padding)
33 #define GENLIST_HEIGHT_2LINE_MAIN 57
34 #define GENLIST_HEIGHT_2LINE_SUB 45
35 #define GENLIST_HEIGHT_MULTILINE_SUB 38
36 #define GENLIST_PART_LIST_LINE_HEIGHT 1
37 #define GENLIST_HEIGHT_GROUPTITLE 46
39 #define GENLIST_PADDING_SIZE_DEFAULT 16
40 #define GENLIST_PADDING_SIZE_LEFT 26
41 #define GENLIST_PADDING_SIZE_RIGHT 26
42 // Dialogue group image has bottom padding (2piexl), Giant font can overlapped bottom line of image.
43 #define GENLIST_PADDING_SIZE_TOP 5
44 #define GENLIST_PADDING_SIZE_BOTTOM 5
45 // -----------------------------------------------------
46 #define GENLIST_PADDING_SIZE_TOP_2LINE 19
47 #define GENLIST_PADDING_SIZE_BOTTOM_2LINE 19
48 #define GENLIST_PADDING_SIZE_TOP_3LINE 17
49 #define GENLIST_PADDING_SIZE_BOTTOM_3LINE 17
50 #define GENLIST_PADDING_SIZE_NDEPTH 26
52 #define DIALOGUE_PADDING_SIZE_LEFT 16+20
53 #define DIALOGUE_PADDING_SIZE_RIGHT 16+20
54 #define DIALOGUE_EDITFIELD_PADDING_SIZE_LEFT 16+10
55 #define DIALOGUE_EDITFIELD_PADDING_SIZE_RIGHT 16+10
57 #define GENLIST_POPUP_PADDING_SIZE_LEFT 47
58 #define GENLIST_POPUP_PADDING_SIZE_RIGHT 47
60 #define GENLIST_ICON_SMALL_SIZE 45
61 #define GENLIST_ICON_STAR_SIZE 45
62 #define GENLIST_ICON_MEDIUM_SIZE 81
63 #define GENLIST_ICON_LARGE_SIZE 99
64 #define GENLIST_ICON_THUMBNAIL_SIZE 99
66 #define GENLIST_BTN_01_HEIGHT 74
67 #define GENLIST_BTN_02_SIZE 72
68 #define GENLIST_ICON_ONOFF_WIDTH 135
69 #define GENLIST_ICON_ONOFF_HEIGHT 63
70 #define GENLIST_ICON_CHECK_RADIO_SIZE 64
71 #define GENLIST_ICON_COLORBAR_SIZE 7
72 #define GENLIST_ICON_PASSWORD_SIZE 82
73 // 26(left padding)+2*74(Button Min width)+16(centre padding)+26(right padding)
74 #define GENLIST_MIN_SLIDE2_BASE_WIDTH 216
75 // 26(left padding)+3*74(Button Min width)+2*16(centre padding)+26(right padding)
76 #define GENLIST_MIN_SLIDE3_BASE_WIDTH 306
77 // 26(left padding)+4*74(Button Min width)+3*16(centre padding)+26(right padding)
78 #define GENLIST_MIN_SLIDE4_BASE_WIDTH 396
80 #define GENLIST_ICON_ENTRY_SIZE 54
82 #define GENLIST_TREESIZE_DEFAULT 26
84 //#define GENLIST_DIALOGUE_SEPARATOR_DEFAULT_HEIGHT 40
86 //****************************************************************************//
87 // ***************** EDJE description have 24 patterns **********************//
88 //**************************************************************************//
89 //****************************************************************************//
90 // ***************** EDJE description have 24 patterns **********************//
91 //**************************************************************************//
95 #define DESC_FROM_L( PARAM ) \
96 description { state: "default" 0.0;\
99 rel2.relative: 0.0 1.0; \
103 // ------------------
105 // ------------------
106 #define DESC_FROM_R( PARAM ) \
107 description { state: "default" 0.0;\
110 rel1.relative: 1 0; \
119 #define DESC_FROM_T( PARAM ) \
120 description { state: "default" 0.0;\
123 rel2.relative: 1.0 0.0; \
132 #define DESC_FROM_B( PARAM ) \
133 description { state: "default" 0.0;\
135 rel1.relative: 0.0 1.0; \
140 // ------------------
142 // ------------------
143 #define DESC_TO( PART, PARAM ) \
144 description { state: "default" 0.0;\
157 // ---------------------
158 // LEFT | HERE | RIGHT
159 // ---------------------
161 #define DESC_LRTB( LEFT, RIGHT, TOP, BOTTOM, PARAM ) \
162 description { state: "default" 0.0;\
176 // ---------------------
178 // ---------------------
179 #define DESC_L( LEFT, PARAM ) \
180 description { state: "default" 0.0;\
194 // ---------------------
196 // ---------------------
197 #define DESC_R( RIGHT, PARAM ) \
198 description { state: "default" 0.0;\
212 // --------------------------
213 // LEFT |--> HERE <--| RIGHT
214 // --------------------------
215 #define DESC_LR( LEFT, RIGHT, PARAM ) \
216 description { state: "default" 0.0;\
233 #define DESC_RTB( RIGHT, TOP, BOTTOM, PARAM ) \
234 description { state: "default" 0.0;\
249 // LEFT | HERE | RIGHT
250 // ---------------------
252 #define DESC_LRB( LEFT, RIGHT, BOTTOM, PARAM ) \
253 description { state: "default" 0.0;\
269 // ---------------------
270 // LEFT | HERE | RIGHT
271 #define DESC_LRT( LEFT, RIGHT, TOP, PARAM ) \
272 description { state: "default" 0.0;\
288 // ---------------------
290 #define DESC_LT( LEFT, TOP, PARAM ) \
291 description { state: "default" 0.0;\
307 // ---------------------
309 #define DESC_LB( LEFT, BOTTOM, PARAM ) \
310 description { state: "default" 0.0;\
326 // ---------------------
328 // ---------------------
330 #define DESC_LTB( LEFT, TOP, BOTTOM, PARAM ) \
331 description { state: "default" 0.0;\
347 // ---------------------
349 #define DESC_RT( RIGHT, TOP, PARAM ) \
350 description { state: "default" 0.0;\
365 // | HERE <-- | RIGHT
366 // ---------------------
368 #define DESC_RB( RIGHT, BOTTOM, PARAM ) \
369 description { state: "default" 0.0;\
389 #define DESC_TB( TOP, BOTTOM, PARAM ) \
390 description { state: "default" 0.0;\
407 #define DESC_T( TOP, PARAM ) \
408 description { state: "default" 0.0;\
425 #define DESC_B( BOTTOM, PARAM ) \
426 description { state: "default" 0.0;\
439 //****************************************************************************//
440 //******************************* Part Macros ********************************//
441 //****************************************************************************//
442 #define PART(TYPE, NAME, DESCRIPION) \
449 //****************************************************************************//
450 //**************************** Genlist Macros ********************************//
451 //****************************************************************************//
452 #define PROLOG_LIST \
453 data.item: "treesize" 0; \
454 data.item: "flips" "elm.flip.icon elm.flip.content"; \
455 data.item: "focus_highlight" "on";
457 //data.item: "selectraise" "on"; \
459 #define PROLOG_LIST_NORMAL \
461 data.item: "treesize" GENLIST_TREESIZE_DEFAULT; \
463 image : "00_list_group_bg.#.png" COMP; \
464 image : "00_list_group_bg_ef.#.png" COMP; \
467 #define PROLOG_LIST_DIALOGUE \
470 image : "00_list_group_bg.#.png" COMP; \
471 image : "00_list_group_bg_ef.#.png" COMP; \
472 image : "00_list_group_bg_top.#.png" COMP; \
473 image : "00_list_group_bg_top_ef.#.png" COMP; \
474 image : "00_list_group_bg_center.#.png" COMP; \
475 image : "00_list_group_bg_center_ef.#.png" COMP; \
476 image : "00_list_group_bg_bottom.#.png" COMP; \
477 image : "00_list_group_bg_bottom_ef.#.png" COMP; \
481 // ---------------------------------------------
482 // Left Padding | Content | Right Padding
483 // ---------------------------------------------
484 // | Bottom Padding |
485 // ----------------------------------------------
488 // When decorate/Reorder is on, BG of decorate or reorder is used instead.
489 // So, hide Normal BG.
490 #define PART_LIST_BG_NORMAL \
491 PART(RECT, "bg_clip", \
492 description { state: "default" 0.0; \
495 description { state: "decorate" 0.0; \
496 inherit: "default" 0.0; \
499 description { state: "reorder" 0.0; \
500 inherit: "default" 0.0; \
503 description { state: "decorate_reorder" 0.0; \
504 inherit: "default" 0.0; \
509 clip_to: "bg_clip"; \
510 description { state: "default" 0.0; \
511 color_class: "B011"; \
513 description { state: "pressed" 0.0; \
514 inherit: "default" 0.0; \
515 color_class: "B041P"; \
517 description { state: "disabled" 0.0; \
518 inherit: "default" 0.0; \
521 PART(RECT, "bg_reorder_clip", \
522 description { state: "default" 0.0; \
525 description { state: "decorate" 0.0; \
526 inherit: "default" 0.0; \
529 description { state: "reorder" 0.0; \
530 inherit: "default" 0.0; \
533 description { state: "decorate_reorder" 0.0; \
534 inherit: "default" 0.0; \
537 description { state: "reorder_flip" 0.0; \
538 inherit: "default" 0.0; \
542 PART(SPACER, "bg_reorder_left", \
548 PART(SPACER, "bg_reorder_right", \
554 PART(SPACER, "bg_reorder_top", \
560 PART(SPACER, "bg_reorder_bottom", \
566 PART(IMAGE, "bg_reorder", \
567 clip_to: "bg_reorder_clip"; \
568 DESC_LRTB("bg_reorder_left", "bg_reorder_right", \
569 "bg_reorder_top", "bg_reorder_bottom", \
571 normal: "00_list_group_bg.#.png"; \
573 color_class: "B0217L1"; \
575 description { state: "pressed" 0.0; \
576 inherit: "default"; \
577 color_class: "B041P"; \
579 description { state: "flipped" 0.0; \
580 inherit: "default"; \
584 PART(IMAGE, "bg_reorder_ef", \
585 clip_to: "bg_reorder_clip"; \
586 DESC_LRTB("bg_reorder_left", "bg_reorder_right", \
587 "bg_reorder_top", "bg_reorder_bottom", \
589 normal: "00_list_group_bg_ef.#.png"; \
591 color_class: "B0217L2"; \
593 description { state: "pressed" 0.0; \
594 inherit: "default"; \
596 description { state: "flipped" 0.0; \
597 inherit: "default"; \
602 #define PART_LIST_BG_NORMAL_OFF \
603 PART(RECT, "bg_clip", \
605 description { state: "default" 0.0; \
608 description { state: "decorate" 0.0; \
609 inherit: "default" 0.0; \
612 description { state: "reorder" 0.0; \
613 inherit: "default" 0.0; \
616 description { state: "decorate_reorder" 0.0; \
617 inherit: "default" 0.0; \
623 description { state: "default" 0.0; \
626 description { state: "pressed" 0.0; \
629 description { state: "disabled" 0.0; \
633 PART(RECT, "bg_reorder_clip", \
635 description { state: "default" 0.0; \
638 description { state: "reorder" 0.0; \
641 description { state: "decorate_reorder" 0.0; \
644 description { state: "decorate" 0.0; \
647 description { state: "reorder_flip" 0.0; \
651 PART(IMAGE, "bg_reorder", \
653 description {state: "default" 0.0;\
656 description { state: "pressed" 0.0; {\
659 description { state: "flipped" 0.0; {\
663 PART(IMAGE, "bg_reorder_ef", \
665 description {state: "default" 0.0;\
668 description { state: "pressed" 0.0; {\
671 description { state: "flipped" 0.0; {\
676 #define PART_LIST_BOTTOMLINE \
677 PART(RECT, "bottom_line_clip", \
678 description { state: "default" 0.0; \
680 description { state: "decorate" 0.0; \
681 inherit: "default" 0.0; \
684 description { state: "reorder" 0.0; \
685 inherit: "default" 0.0; \
688 description { state: "decorate_reorder" 0.0; \
689 inherit: "default" 0.0; \
692 description { state: "hide" 0.0; \
693 inherit: "default" 0.0; \
697 PART(RECT, "bottom_line", \
699 clip_to: "bottom_line_clip"; \
700 description { state: "default" 0.0; \
701 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
702 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
705 color_class: "B0223"; \
706 rel1.offset: -1 -1; \
708 description { state: "flipped" 0.0; \
709 inherit: "default" 0.0; \
712 description { state: "hidden" 0.0; \
713 inherit: "default" 0.0; \
717 // FIXME: which one should be used? hide or hidden?
719 #define PART_LIST_BOTTOMLINE_OFF \
720 PART(RECT, "bottom_line_clip", \
721 description { state: "default" 0.0; \
724 description { state: "hide" 0.0; \
725 inherit: "default" 0.0; \
729 PART(RECT, "bottom_line", \
731 description { state: "default" 0.0; \
736 #define DESC_LIST_PADDINGS \
737 description { state: "decorate" 0.0; \
738 inherit: "default" 0.0; \
742 description { state: "decorate_reorder" 0.0; \
743 inherit: "default" 0.0; \
747 description { state: "reorder" 0.0; \
748 inherit: "default" 0.0; \
753 #define PART_LIST_PADDINGS(LEFT_SIZE, RIGHT_SIZE, TOP_SIZE, BOTTOM_SIZE) \
754 PART(SWALLOW, "elm.swallow.pad", \
758 PART(SWALLOW, "elm.swallow.colorbar", \
760 DESC_L("elm.swallow.pad", ) \
762 PART(SPACER, "elm.padding.left", \
763 DESC_L("elm.swallow.pad", \
769 PART(SPACER, "elm.padding.right", \
772 max: RIGHT_SIZE -1; \
776 PART(SPACER, "elm.padding.top", \
783 PART(SPACER, "elm.padding.bottom", \
785 min: 0 BOTTOM_SIZE; \
786 max: -1 BOTTOM_SIZE; \
793 //===========================================================================================
795 #define GENLIST_NAME(NAME) \
796 name: "elm/genlist/item/"NAME;
798 /*****************************************************************************/
799 /******************************* Dialogue group ******************************/
800 /*****************************************************************************/
801 #define GENLIST_DIALOGUE_INHERIT_BODY( _PARTS ) \
802 data.item: "treesize" 0; \
804 PART_LIST_BG_NORMAL_OFF \
805 PART_LIST_BOTTOMLINE_OFF \
806 GENLIST_PART_BG_DIALOGUE \
807 PART(SPACER, "elm.padding.left", \
808 DESC_L("elm.swallow.pad", \
809 min: DIALOGUE_PADDING_SIZE_LEFT 0; \
810 max: DIALOGUE_PADDING_SIZE_LEFT -1; \
814 PART(SPACER, "elm.padding.right", \
816 min: DIALOGUE_PADDING_SIZE_RIGHT 0; \
817 max: DIALOGUE_PADDING_SIZE_RIGHT -1; \
823 GENLIST_PART_FOCUS_DIALOGUE \
826 #define GENLIST_DIALOGUE_EDITFIELD_INHERIT_BODY( _PARTS ) \
827 data.item: "treesize" 0; \
829 PART_LIST_BG_NORMAL_OFF \
830 PART_LIST_BOTTOMLINE_OFF \
831 GENLIST_PART_BG_DIALOGUE \
832 PART(SPACER, "elm.padding.left", \
834 min: DIALOGUE_PADDING_SIZE_LEFT 0; \
835 max: DIALOGUE_PADDING_SIZE_LEFT -1; \
839 PART(SPACER, "elm.padding.right", \
841 min: DIALOGUE_PADDING_SIZE_RIGHT 0; \
842 max: DIALOGUE_PADDING_SIZE_RIGHT -1; \
848 GENLIST_PART_FOCUS_DIALOGUE \
851 #define GENLIST_INHERIT_THUMB_SQUARE(SIZE, NAME) \
854 description { state: "default" 0.0; \
861 //****************************************************************************//
862 // ****************************** BG Image **********************************//
863 //****************************************************************************//
867 #define GENLIST_PART_BG_DIALOGUE \
868 PART(SPACER, "bg_dialogue_left", \
869 description { state: "default" 0.0; \
874 rel2.relative: 0 1; \
877 PART(SPACER, "bg_dialogue_right", \
878 description { state: "default" 0.0; \
883 rel1.relative: 1 0; \
886 PART(RECT, "bg_dialogue_clip", \
887 description { state: "default" 0.0;\
888 color_class: "B0217L1"; \
890 description { state: "pressed" 0.0;\
891 color_class: "B041P"; \
893 description { state: "2depth" 0.0;\
894 color_class: "B0214L1"; \
896 description { state: "2depth_pressed" 0.0;\
897 color_class: "B041P"; \
900 PART(IMAGE, "bg_dialogue", \
901 clip_to: "bg_dialogue_clip"; \
902 insert_after: "base"; \
903 DESC_LR("bg_dialogue_left", "bg_dialogue_right", \
905 normal: "00_list_group_bg.#.png"; \
908 description { state: "top" 0.0; \
909 inherit: "default" 0.0; \
911 normal: "00_list_group_bg_top.#.png"; \
914 description { state: "center" 0.0; \
915 inherit: "default" 0.0; \
917 normal: "00_list_group_bg_center.#.png"; \
920 description { state: "bottom" 0.0; \
921 inherit: "default" 0.0; \
923 normal: "00_list_group_bg_bottom.#.png"; \
927 PART(RECT, "bg_dialogue_ef_clip", \
928 description { state: "default" 0.0;\
929 color_class: "B0217L2"; \
931 description { state: "2depth" 0.0;\
932 color_class: "B0214L2"; \
935 PART(IMAGE, "bg_dialogue_ef", \
936 clip_to: "bg_dialogue_ef_clip"; \
937 insert_after: "bg_dialogue"; \
938 DESC_LR("bg_dialogue_left", "bg_dialogue_right", \
940 normal: "00_list_group_bg_ef.#.png"; \
943 description { state: "top" 0.0; \
944 inherit: "default" 0.0; \
946 normal: "00_list_group_bg_top_ef.#.png"; \
949 description { state: "center" 0.0; \
950 inherit: "default" 0.0; \
952 normal: "00_list_group_bg_center_ef.#.png"; \
955 description { state: "bottom" 0.0; \
956 inherit: "default" 0.0; \
958 normal: "00_list_group_bg_bottom_ef.#.png"; \
963 //****************************************************************************//
964 // ****************************** BASE ********************************//
965 //****************************************************************************//
966 #define GENLIST_PART_BASE_SIZE(HEIGHT) \
967 part { name: "base"; \
971 description { state: "default" 0.0; \
976 part { name: "state"; \
980 description { state: "default" 0.0; \
983 description { state: "decorate" 0.0; \
984 inherit: "default"; \
986 description { state: "reorder" 0.0; \
987 inherit: "default"; \
989 description { state: "decorate_reorder" 0.0; \
990 inherit: "default"; \
994 #define GENLIST_PART_BASE \
995 GENLIST_PART_BASE_SIZE(0)
997 #define GENLIST_PART_FOCUS \
998 PART(IMAGE, "focus_part", \
1000 description { state: "default" 0.0; \
1003 normal: "00_focus_01.#.png"; \
1005 color_class: "W161"; \
1007 description { state: "focused" 0.0; \
1008 inherit: "default" 0.0; \
1013 #define GENLIST_PART_FOCUS_REORDER \
1014 PART(IMAGE, "focus_part_reorder", \
1016 description { state: "default" 0.0; \
1019 to_x: "bg_reorder_left"; \
1020 to_y: "bg_reorder_top"; \
1024 to_x: "bg_reorder_right"; \
1025 to_y: "bg_reorder_bottom"; \
1029 normal: "00_focus_01.#.png"; \
1031 color_class: "W161"; \
1033 description { state: "focused" 0.0; \
1034 inherit: "default" 0.0; \
1039 #define GENLIST_PART_FOCUS_NORMAL \
1040 GENLIST_PART_FOCUS \
1041 GENLIST_PART_FOCUS_REORDER
1044 #define GENLIST_PART_FOCUS_DIALOGUE \
1045 PART(IMAGE, "focus_part_dialogue", \
1047 DESC_LR("bg_dialogue_left", "bg_dialogue_right", \
1050 normal: "00_focus_01.#.png"; \
1052 color_class: "W161"; \
1054 description { state: "focused" 0.0; \
1055 inherit: "default" 0.0; \
1060 //****************************************************************************//
1061 // ****************************** LINE ********************************//
1062 //****************************************************************************//
1064 #define GENLIST_PART_DIVIDER_PADDING \
1065 PART(SPACER, "elm.padding.divider.top", \
1066 description { state: "default" 0.0; \
1071 rel2.relative: 1 0; \
1074 PART(SPACER, "elm.padding.divider.bottom", \
1075 description { state: "default" 0.0; \
1080 rel1.relative: 0 1; \
1084 #define GENLIST_PART_DIVIDER_L(LEFT) \
1085 GENLIST_PART_DIVIDER_PADDING \
1086 PART(RECT, "elm.divider1", \
1088 DESC_LTB(LEFT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1094 color_class: "B0221L2"; \
1097 PART(RECT, "elm.divider2", \
1099 DESC_LTB("elm.divider1", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1105 color_class: "B0221L2"; \
1109 #define GENLIST_PART_DIVIDER_R(RIGHT) \
1110 GENLIST_PART_DIVIDER_PADDING \
1111 PART(RECT, "elm.divider1", \
1113 DESC_RTB("elm.divider2", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1118 color_class: "B0221L2"; \
1121 PART(RECT, "elm.divider2", \
1123 DESC_RTB(RIGHT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1128 color_class: "B0221L2"; \
1132 #define GENLIST_PART_MULTILINE_DIVIDER_L(LEFT) \
1133 GENLIST_PART_DIVIDER_PADDING \
1134 PART(RECT, "elm.divider1", \
1136 DESC_LTB(LEFT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1142 color_class: "B0221L2"; \
1145 PART(RECT, "elm.divider2", \
1147 DESC_LTB("elm.divider1", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1153 color_class: "B0221L2"; \
1157 #define GENLIST_PART_MULTILINE_DIVIDER_R(RIGHT) \
1158 GENLIST_PART_DIVIDER_PADDING \
1159 PART(RECT, "elm.divider1", \
1161 DESC_RTB("elm.divider2", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1166 color_class: "B0221L2"; \
1169 PART(RECT, "elm.divider2", \
1171 DESC_RTB(RIGHT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1176 color_class: "B0221L2"; \
1180 #define GENLIST_PART_DIALOGUE_GROUP_DIVIDER_L(LEFT) \
1181 GENLIST_PART_DIVIDER_PADDING \
1182 PART(RECT, "elm.divider1", \
1184 DESC_LTB(LEFT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1190 color_class: "B0221L2"; \
1193 PART(RECT, "elm.divider2", \
1195 DESC_LTB("elm.divider1", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1201 color_class: "B0221L2"; \
1205 #define GENLIST_PART_DIALOGUE_GROUP_DIVIDER_R(RIGHT) \
1206 GENLIST_PART_DIVIDER_PADDING \
1207 PART(RECT, "elm.divider1", \
1209 DESC_RTB("elm.divider2", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1214 color_class: "B0221L2"; \
1217 PART(RECT, "elm.divider2", \
1219 DESC_RTB(RIGHT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1224 color_class: "B0221L2"; \
1227 #define GENLIST_PART_CENTER_LINE_LRT(LEFT, RIGHT, TOP) \
1228 PART(RECT, "center_line", \
1230 DESC_LRT(LEFT, RIGHT, TOP, \
1234 color_class: "B0221L2"; \
1235 rel2.relative: 1 1; \
1238 PART(RECT, "center_line2", \
1239 DESC_LRT(LEFT, RIGHT, "center_line", \
1243 color_class: "B0221L2"; \
1244 rel2.relative: 1 1; \
1248 #define GENLIST_PART_COLORBAR \
1249 PART(SPACER, "elm.padding.colorbar.top", \
1255 rel2.relative: 1 0; \
1258 PART(SPACER, "elm.padding.colorbar.bottom", \
1264 rel1.relative: 0 1; \
1267 GENLIST_PART_ICON("elm.swallow.colorbar", \
1268 DESC_TB("elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
1269 min: GENLIST_ICON_COLORBAR_SIZE 0; \
1270 max: GENLIST_ICON_COLORBAR_SIZE -1; \
1273 rel1.relative: 0 1; \
1274 rel2.relative: 0 0; \
1278 #define GENLIST_PART_COLORBAR_DIALOGUE \
1279 PART(SPACER, "elm.padding.colorbar.top", \
1285 rel2.relative: 1 0; \
1288 PART(SPACER, "elm.padding.colorbar.bottom", \
1294 rel1.relative: 0 1; \
1297 PART(SPACER, "elm.padding.colorbar.left", \
1298 description{ state: "default" 0.0; \
1305 rel2.relative: 0 1; \
1308 GENLIST_PART_ICON("elm.swallow.colorbar", \
1309 DESC_LTB("elm.padding.colorbar.left","elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
1310 min: GENLIST_ICON_COLORBAR_SIZE 0; \
1311 max: GENLIST_ICON_COLORBAR_SIZE -1; \
1316 //****************************************************************************//
1317 //********************************* PADDING **********************************//
1318 //****************************************************************************//
1319 #define GENLIST_PART_PADDING( NAME, SIZE, REL1, REL2 ) \
1320 PART(SPACER, NAME, \
1321 description { state: "default" 0.0; \
1338 #define GENLIST_PART_PADDING_R( NAME, RIGHT ) \
1339 PART(SPACER, NAME, \
1340 description { state: "default" 0.0; \
1342 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1343 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1356 #define GENLIST_PART_PADDING_R_SIZE( NAME, RIGHT, SIZE ) \
1357 PART(SPACER, NAME, \
1358 description { state: "default" 0.0; \
1374 #define GENLIST_PART_PADDING_L( NAME, LEFT ) \
1375 PART(SPACER, NAME, \
1376 description { state: "default" 0.0; \
1378 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1379 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1392 #define GENLIST_PART_PADDING_L_SIZE( NAME, LEFT, SIZE ) \
1393 PART(SPACER, NAME, \
1394 description { state: "default" 0.0; \
1411 #define GENLIST_PART_PADDING_T_SIZE( NAME, TOP, SIZE ) \
1412 PART(SPACER, NAME, \
1413 description { state: "default" 0.0; \
1429 #define GENLIST_PART_PADDING_B_SIZE( NAME, BOTTOM, SIZE ) \
1430 PART(SPACER, NAME, \
1431 description { state: "default" 0.0; \
1447 #define GENLIST_PROGRAM_EXPAND_ROOT( TARGET ) \
1449 name: "go_expanded"; \
1450 signal: "elm,state,expanded"; \
1452 action: STATE_SET "expand_opened" 0.0; \
1456 name: "go_contracted"; \
1457 signal: "elm,state,contracted"; \
1459 action: STATE_SET "default" 0.0; \
1463 // 2.2.7 Genlist_Edit mode (Rename)
1464 // FIXME: padding is not needed when swallow content is NULL.
1465 // But how can edje know existence of swallow content?
1466 #define GENLIST_PART_FLIP \
1467 PART(RECT, "elm.flip.bg", \
1469 description { state: "default" 0.0;\
1470 rel2.offset: 0 -3; \
1471 color_class: "B011"; \
1474 description { state: "flipped" 0.0; \
1475 inherit: "default" 0.0; \
1479 PART(SPACER, "elm.flip.padding.right", \
1480 description { state: "default" 0.0; \
1485 rel1.relative: 1 0; \
1488 GENLIST_PART_ICON("elm.flip.content", \
1489 DESC_LRTB("elm.padding.left", "elm.flip.padding.icon.left", \
1490 "elm.padding.top", "elm.padding.bottom", \
1491 visible: 1; /* FIXME: object(entry) should be visible when focused. if not, it will be unfocused immediately */ \
1494 description { state: "flipped" 0.0; \
1495 inherit: "default" 0.0; \
1499 GENLIST_PART_PADDING_R("elm.flip.padding.icon.left", "elm.flip.icon") \
1500 GENLIST_PART_ICON( "elm.flip.icon", \
1501 DESC_RTB("elm.flip.padding.right", \
1502 "elm.padding.top", "elm.padding.bottom", \
1508 description { state: "flipped" 0.0; \
1509 inherit: "default" 0.0; \
1514 //****************************************************************************//
1515 // ******************************* Programs ********************************//
1516 //**************************************************************************//
1517 // signal: elm,state,%s,active
1518 // a "check" item named %s went active
1519 // signal: elm,state,%s,passive
1520 // a "check" item named %s went passive
1521 // default is passive
1522 #define GENLIST_PROGRAM_DEFAULT( TARGET ) \
1523 program { name: "default"; \
1524 signal: "elm,state,default"; \
1526 action: STATE_SET "default" 0.0; \
1530 #define GENLIST_PROGRAM_DISABLED( TARGET ) \
1531 program { name: "enabled"; \
1532 signal: "elm,state,enabled"; \
1534 action: STATE_SET "default" 0.0; \
1537 program { name: "disabled"; \
1538 signal: "elm,state,disabled"; \
1540 action: STATE_SET "disabled" 0.0; \
1544 #define GENLIST_PROGRAM_BOTTOMLINE \
1545 program { name : "hide_bottomline"; \
1546 signal: "elm,state,bottomline,hide"; \
1548 action: STATE_SET "hidden" 0.0; \
1549 target: "bottom_line"; \
1551 program { name : "show_bottomline"; \
1552 signal: "elm,state,bottomline,show"; \
1554 action: STATE_SET "default" 0.0; \
1555 target: "bottom_line"; \
1558 #define GENLIST_PROGRAM_FOCUS \
1559 program { name: "focused"; \
1560 signal: "elm,action,focus_highlight,show"; \
1562 action: STATE_SET "focused" 0.0; \
1563 target: "focus_part"; \
1565 program { name: "unfocused"; \
1566 signal: "elm,action,focus_highlight,hide"; \
1568 action: STATE_SET "default" 0.0; \
1569 target: "focus_part"; \
1572 #define GENLIST_PROGRAM_FOCUS_NORMAL \
1573 program { name: "focused"; \
1574 signal: "elm,action,focus_highlight,show"; \
1579 get_state(PART:"bg_reorder_clip", st, 30, vl); \
1580 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) \
1581 set_state(PART:"focus_part_reorder", "focused", 0.0); \
1583 set_state(PART:"focus_part", "focused", 0.0); \
1586 program { name: "unfocused"; \
1587 signal: "elm,action,focus_highlight,hide"; \
1589 action: STATE_SET "default" 0.0; \
1590 target: "focus_part_reorder"; \
1591 target: "focus_part"; \
1594 #define GENLIST_PROGRAM_FOCUS_DIALOGUE \
1595 program { name: "focused"; \
1596 signal: "elm,action,focus_highlight,show"; \
1599 set_state(PART:"focus_part_dialogue", "focused", 0.0); \
1602 program { name: "unfocused"; \
1603 signal: "elm,action,focus_highlight,hide"; \
1605 action: STATE_SET "default" 0.0; \
1606 target: "focus_part_dialogue"; \
1609 #define PROGRAM_LIST_SOUND \
1610 program { name: "play_sound"; \
1611 signal: "elm,state,clicked"; \
1614 play_sample("touch_sound", 1.0); \
1618 #define GENLIST_PROGRAM_SELECT( TARGET ) \
1619 program { name: "pressed"; \
1620 signal: "elm,state,selected"; \
1622 action: STATE_SET "pressed" 0.0; \
1625 program { name: "unselected"; \
1626 signal: "elm,state,unselected"; \
1628 action: STATE_SET "default" 0.0; \
1632 #define GENLIST_PROGRAM_BG_DIALOGUE \
1633 program { name: "bg_top"; \
1634 signal: "elm,state,top"; \
1637 set_state(PART:"bg_dialogue", "top", 0.0); \
1638 set_state(PART:"bg_dialogue_ef", "top", 0.0); \
1641 program { name: "bg_center"; \
1642 signal: "elm,state,center"; \
1645 set_state(PART:"bg_dialogue", "center", 0.0); \
1646 set_state(PART:"bg_dialogue_ef", "center", 0.0); \
1649 program { name: "bg_bottom"; \
1650 signal: "elm,state,bottom"; \
1653 set_state(PART:"bg_dialogue", "bottom", 0.0); \
1654 set_state(PART:"bg_dialogue_ef", "bottom", 0.0); \
1657 program { name: "bg_normal"; \
1658 signal: "elm,state,normal"; \
1661 set_state(PART:"bg_dialogue", "default", 0.0); \
1662 set_state(PART:"bg_dialogue_ef", "default", 0.0); \
1666 #define GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
1667 program { name: "pressed"; \
1668 signal: "elm,state,selected"; \
1673 get_state(PART:"bg_dialogue_clip", st, 30, vl); \
1674 if (!strcmp(st, "2depth")) \
1675 set_state(PART:"bg_dialogue_clip", "2depth_pressed", 0.0); \
1677 set_state(PART:"bg_dialogue_clip", "pressed", 0.0); \
1678 run_program(PROGRAM:"target_selected"); \
1681 program { name: "unselected"; \
1682 signal: "elm,state,unselected"; \
1687 get_state(PART:"bg_dialogue_clip", st, 30, vl); \
1688 if (!strcmp(st, "2depth_pressed")) \
1689 set_state(PART:"bg_dialogue_clip", "2depth", 0.0); \
1690 else if (!strcmp(st, "pressed")) \
1691 set_state(PART:"bg_dialogue_clip", "default", 0.0); \
1692 run_program(PROGRAM:"target_unselected"); \
1695 program { name: "target_selected"; \
1696 action: STATE_SET "pressed" 0.0; \
1699 program { name: "target_unselected"; \
1700 action: STATE_SET "default" 0.0; \
1703 GENLIST_PROGRAM_BG_DIALOGUE
1706 #define GENLIST_PROGRAM_SELECT_ARROW \
1707 program { name: "selected_arrow"; \
1708 signal: "elm,state,selected"; \
1713 get_state(PART:"arrow", st, 30, vl); \
1714 if (!strcmp(st, "default")) { \
1715 set_state(PART:"arrow", "default_press", 0.0); \
1716 set_state(PART:"arrow_clip", "default_press", 0.0); \
1717 set_state(PART:"arrow_ef", "default", 0.0); \
1719 else if (!strcmp(st, "expand_opened")) { \
1720 set_state(PART:"arrow", "expand_opened_press", 0.0); \
1721 set_state(PART:"arrow_clip", "expand_opened_press", 0.0); \
1722 set_state(PART:"arrow_ef", "expand_opened", 0.0); \
1726 program { name: "unselected_arrow"; \
1727 signal: "elm,state,unselected"; \
1732 get_state(PART:"arrow", st, 30, vl); \
1733 if (!strcmp(st, "default_press")) { \
1734 set_state(PART:"arrow", "default", 0.0); \
1735 set_state(PART:"arrow_clip", "default", 0.0); \
1736 set_state(PART:"arrow_ef", "default", 0.0); \
1738 else if (!strcmp(st, "expand_opened_press")) { \
1739 set_state(PART:"arrow", "expand_opened", 0.0); \
1740 set_state(PART:"arrow_clip", "expand_opened", 0.0); \
1741 set_state(PART:"arrow_ef", "expand_opened", 0.0); \
1746 #define GENLIST_PROGRAM_DISABLED_ARROW \
1747 program { name: "enabled_arrow"; \
1748 signal: "elm,state,enabled"; \
1753 get_state(PART:"arrow", st, 30, vl); \
1754 if (!strcmp(st, "default")) { \
1755 set_state(PART:"arrow_ef", "default", 0.0); \
1757 else if (!strcmp(st, "expand_opened")) { \
1758 set_state(PART:"arrow_ef", "expand_opened", 0.0); \
1760 set_state(PART:"arrow_clip", "disabled", 0.0); \
1763 program { name: "disabled_arrow"; \
1764 signal: "elm,state,disabled"; \
1769 get_state(PART:"arrow", st, 30, vl); \
1770 if (!strcmp(st, "default")) { \
1771 set_state(PART:"arrow_ef", "default_dim", 0.0); \
1773 else if (!strcmp(st, "expand_opened")) { \
1774 set_state(PART:"arrow_ef", "expand_opened_dim", 0.0); \
1776 set_state(PART:"arrow_clip", "disabled", 0.0); \
1780 #define GENLIST_PROGRAM_REORDER( TARGET ) \
1781 program { name: "reorder_enabled"; \
1782 signal: "elm,state,reorder,mode_set"; \
1784 action: STATE_SET "reorder" 0.0; \
1787 program { name: "reorder_disabled"; \
1788 signal: "elm,state,reorder,mode_unset"; \
1790 action: STATE_SET "default" 0.0; \
1794 #define GENLIST_PROGRAM_DECORATE_REORDER( NAME, TARGET ) \
1795 program { name: "reorder_enabled"NAME; \
1796 signal: "elm,state,reorder,mode_set"; \
1801 get_state(PART:"state", st, 30, vl); \
1802 if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
1803 run_program(PROGRAM:"decorate_reorder_set"NAME); \
1805 run_program(PROGRAM:"reorder_set"NAME); \
1809 program { name: "reorder_disabled"NAME; \
1810 signal: "elm,state,reorder,mode_unset"; \
1815 get_state(PART:"state", st, 30, vl); \
1816 if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
1817 run_program(PROGRAM:"decorate_set"NAME); \
1819 run_program(PROGRAM:"default_set"NAME); \
1823 program { name: "decorate_enabled_effect"NAME; \
1824 signal: "elm,state,decorate,enabled,effect";\
1829 get_state(PART:"state", st, 30, vl); \
1830 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1831 run_program(PROGRAM:"decorate_reorder_set"NAME); \
1833 run_program(PROGRAM:"decorate_set"NAME); \
1837 program { name: "decorate_disabled_effect"NAME;\
1838 signal: "elm,state,decorate,disabled,effect";\
1843 get_state(PART:"state", st, 30, vl); \
1844 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1845 run_program(PROGRAM:"reorder_set"NAME); \
1847 run_program(PROGRAM:"default_set"NAME); \
1851 program { name: "decorate_enabled"NAME;\
1852 signal: "elm,state,decorate,enabled";\
1857 get_state(PART:"state", st, 30, vl); \
1858 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1859 run_program(PROGRAM:"decorate_reorder_set"NAME); \
1861 run_program(PROGRAM:"decorate_set"NAME); \
1865 program { name: "decorate_disabled"NAME;\
1866 signal: "elm,state,decorate,disabled";\
1871 get_state(PART:"state", st, 30, vl); \
1872 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1873 run_program(PROGRAM:"reorder_set"NAME); \
1875 run_program(PROGRAM:"default_set"NAME); \
1879 program { name: "default_set"NAME; \
1880 action: STATE_SET "default" 0.0;\
1884 program { name: "decorate_set"NAME; \
1885 action: STATE_SET "decorate" 0.0;\
1889 program { name: "reorder_set"NAME; \
1890 action: STATE_SET "reorder" 0.0;\
1894 program { name: "decorate_reorder_set"NAME; \
1895 action: STATE_SET "decorate_reorder" 0.0;\
1900 #define GENLIST_PROGRAM_FLIP \
1901 program { name: "flip_enabled"; \
1902 signal: "elm,state,flip,enabled"; \
1904 transition: DECELERATE 0.5; \
1905 action: STATE_SET "flipped" 0.0; \
1906 target: "elm.flip.content"; \
1907 target: "elm.flip.icon"; \
1909 program { name: "flip_disabled"; \
1910 signal: "elm,state,flip,disabled"; \
1912 transition: DECELERATE 0.5; \
1913 action: STATE_SET "default" 0.0; \
1914 target: "elm.flip.content"; \
1915 target: "elm.flip.icon"; \
1917 program { name: "flip_enabled_bg"; \
1918 signal: "elm,state,flip,enabled"; \
1920 action: STATE_SET "flipped" 0.0; \
1921 target: "elm.flip.bg"; \
1923 program { name: "flip_disabled_bg"; \
1924 signal: "elm,state,flip,disabled"; \
1926 action: STATE_SET "default" 0.0; \
1927 target: "elm.flip.bg"; \
1930 #define GENLIST_PROGRAM_FLIP_TARGET( TARGET ) \
1931 program { name: "flip_enabled_target"; \
1932 signal: "elm,state,flip,enabled"; \
1934 action: STATE_SET "flipped" 0.0; \
1937 program { name: "flip_disabled_target"; \
1938 signal: "elm,state,flip,disabled"; \
1940 action: STATE_SET "default" 0.0; \
1945 /***************************************************************************/
1946 /***************************************************************************/
1948 #define GENLIST_PROGRAMS_NORMAL( TARGET ) \
1950 GENLIST_PROGRAM_DEFAULT( TARGET \
1952 target: "bg_clip"; \
1953 target: "bottom_line"; \
1954 target: "bottom_line_clip"; \
1955 target: "bg_reorder"; \
1956 target: "bg_reorder_ef"; \
1957 target: "bg_reorder_clip"; \
1958 target: "elm.padding.left"; \
1959 target: "elm.padding.right"; \
1960 target: "elm.padding.top"; \
1961 target: "elm.padding.bottom"; \
1962 target: "focus_part"; \
1963 target: "focus_part_reorder"; \
1965 GENLIST_PROGRAM_DISABLED( TARGET \
1967 target: "bg_reorder"; \
1968 target: "bg_reorder_ef"; \
1970 GENLIST_PROGRAM_BOTTOMLINE \
1971 GENLIST_PROGRAM_FOCUS_NORMAL \
1972 GENLIST_PROGRAM_SELECT( TARGET \
1974 target: "bg_reorder"; \
1975 target: "bg_reorder_ef"; \
1977 PROGRAM_LIST_SOUND \
1978 GENLIST_PROGRAM_DECORATE_REORDER("normal", TARGET \
1979 target: "bg_clip"; \
1980 target: "bg_reorder_clip"; \
1981 target: "bottom_line_clip"; \
1982 target: "elm.padding.left"; \
1983 target: "elm.padding.right"; \
1984 target: "elm.padding.top"; \
1985 target: "elm.padding.bottom"; \
1987 GENLIST_PROGRAM_FLIP \
1990 #define GENLIST_PROGRAMS_DIALOGUE( TARGET ) \
1992 GENLIST_PROGRAM_DEFAULT( TARGET \
1993 target: "bg_dialogue_clip"; \
1994 target: "bg_dialogue"; \
1995 target: "bg_dialogue_ef"; \
1996 target: "elm.padding.left"; \
1997 target: "elm.padding.right"; \
1998 target: "bg_dialogue_right"; \
1999 target: "focus_part_dialogue"; \
2001 GENLIST_PROGRAM_DISABLED( TARGET ) \
2002 GENLIST_PROGRAM_FOCUS_DIALOGUE \
2003 GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
2004 program { name: "bg_color_change"; \
2005 signal: "bg_color_change"; \
2007 action: STATE_SET "2depth" 0.0; \
2008 target: "bg_dialogue_clip"; \
2009 target: "bg_dialogue_ef_clip"; \
2011 PROGRAM_LIST_SOUND \
2012 GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
2013 target: "elm.padding.left"; \
2014 target: "elm.padding.right"; \
2016 GENLIST_PROGRAM_FLIP \
2019 #define GENLIST_PROGRAMS_DECORATE_EFFECT( TARGET ) \
2020 program { name: "decorate_enabled_effect_ef"; \
2021 signal: "elm,state,decorate,enabled,effect";\
2023 transition: DECELERATE 0.5;\
2024 action: STATE_SET "decorate" 0.0;\
2027 program { name: "decorate_disabled_effect_ef";\
2028 signal: "elm,state,decorate,disabled,effect";\
2030 transition: ACCELERATE 0.5;\
2031 action: STATE_SET "default" 0.0;\
2034 program { name: "decorate_enabled_ef";\
2035 signal: "elm,state,decorate,enabled";\
2037 action: STATE_SET "decorate" 0.0;\
2040 program { name: "decorate_disabled_ef";\
2041 signal: "elm,state,decorate,disabled";\
2043 action: STATE_SET "default" 0.0;\
2047 #define GENLIST_PROGRAMS_ENTRY( TARGET ) \
2048 GENLIST_PROGRAM_DEFAULT( TARGET \
2050 target: "bg_clip"; \
2051 target: "bottom_line"; \
2052 target: "bottom_line_clip"; \
2053 target: "bg_reorder"; \
2054 target: "bg_reorder_ef"; \
2055 target: "elm.padding.left"; \
2056 target: "elm.padding.right"; \
2057 target: "focus_part"; \
2058 target: "focus_part_reorder"; \
2060 GENLIST_PROGRAM_DISABLED( TARGET ) \
2061 GENLIST_PROGRAM_BOTTOMLINE \
2062 GENLIST_PROGRAM_FOCUS_NORMAL \
2063 GENLIST_PROGRAM_DECORATE_REORDER("editfield", TARGET \
2064 target: "bg_clip"; \
2065 target: "bg_reorder_clip"; \
2066 target: "bottom_line_clip"; \
2067 target: "elm.padding.left"; \
2068 target: "elm.padding.right"; \
2069 target: "focus_part_reorder"; \
2070 target: "focus_part"; \
2073 #define GENLIST_PROGRAMS_DIALOGUE_ENTRY( TARGET ) \
2074 GENLIST_PROGRAM_DEFAULT( TARGET \
2075 target: "bg_dialogue_clip"; \
2076 target: "bg_dialogue"; \
2077 target: "bg_dialogue_ef"; \
2078 target: "elm.padding.left"; \
2079 target: "elm.padding.right"; \
2081 GENLIST_PROGRAM_DISABLED( TARGET ) \
2082 GENLIST_PROGRAM_FOCUS_DIALOGUE \
2083 program { name: "bg_color_change"; \
2084 signal: "bg_color_change"; \
2086 action: STATE_SET "2depth" 0.0; \
2087 target: "bg_dialogue_clip"; \
2088 target: "bg_dialogue_ef_clip"; \
2090 GENLIST_PROGRAM_BG_DIALOGUE \
2091 GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
2092 target: "elm.padding.left"; \
2093 target: "elm.padding.right"; \
2095 GENLIST_PROGRAM_FLIP
2097 #define GENLIST_PROGRAMS_THUMB \
2098 GENLIST_PROGRAM_DECORATE_REORDER( "thumb", target: "elm.thumb"; ) \
2099 GENLIST_PROGRAM_FLIP_TARGET( target: "elm.thumb.clip"; ) \
2100 program { name: "enabled_thumb"; \
2101 signal: "elm,state,enabled"; \
2103 action: STATE_SET "default" 0.0; \
2104 target: "elm.thumb"; \
2106 program { name: "disabled_thumb"; \
2107 signal: "elm,state,disabled"; \
2109 action: STATE_SET "disabled" 0.0; \
2110 target: "elm.thumb"; \
2112 program { name: "selected_thumb"; \
2113 signal: "elm,state,selected"; \
2118 get_state(PART:"elm.thumb", st, 30, vl); \
2119 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) \
2120 set_state(PART:"elm.thumb", "reorder_selected", 0.0); \
2122 set_state(PART:"elm.thumb", "pressed", 0.0); \
2125 program { name: "unselected_thumb"; \
2126 signal: "elm,state,unselected"; \
2131 get_state(PART:"elm.thumb", st, 30, vl); \
2132 if (!strcmp(st, "reorder_selected")) \
2133 set_state(PART:"elm.thumb", "reorder", 0.0); \
2135 set_state(PART:"elm.thumb", "default", 0.0); \
2139 //****************************************************************************//
2140 // ******************************* Icon Part ******************************//
2141 //***************************************************************************//
2142 #define GENLIST_PART_ICON(NAME, DESCRIPION) \
2143 part { name: NAME; \
2149 #define GENLIST_PARAM_ICON_LARGE \
2150 min: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE; \
2151 max: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE;
2153 #define GENLIST_PARAM_ICON_MEDIUM \
2154 min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
2155 max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
2157 #define GENLIST_PARAM_ICON_SMALL \
2158 min: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE; \
2159 max: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE;
2161 #define GENLIST_PARAM_ICON_BTN_01 \
2162 min: 0 GENLIST_BTN_01_HEIGHT; \
2163 max: -1 GENLIST_BTN_01_HEIGHT;
2165 #define GENLIST_PARAM_ICON_BTN_02 \
2166 min: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE; \
2167 max: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE;
2169 #define GENLIST_PARAM_ICON_ONOFF_WIDTH \
2170 min: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT; \
2171 max: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT;
2173 #define GENLIST_PARAM_ICON_CHECK_RADIO \
2174 min: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE; \
2175 max: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE;
2177 #define GENLIST_PARAM_ICON_STAR \
2178 min: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2179 max: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2181 #define GENLIST_PART_ICON_LARGE_R(NAME, RIGHT) \
2182 GENLIST_PART_ICON(NAME, \
2183 DESC_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2184 GENLIST_PARAM_ICON_LARGE \
2189 #define GENLIST_PART_ICON_LARGE_L(NAME, LEFT) \
2190 GENLIST_PART_ICON(NAME, \
2191 DESC_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2192 GENLIST_PARAM_ICON_LARGE \
2197 #define GENLIST_PART_ICON_MEDIUM_R(NAME, RIGHT) \
2198 GENLIST_PART_ICON(NAME, \
2199 DESC_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2201 GENLIST_PARAM_ICON_MEDIUM \
2205 #define GENLIST_PART_ICON_MEDIUM_L(NAME, LEFT) \
2206 GENLIST_PART_ICON(NAME, \
2207 DESC_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2208 GENLIST_PARAM_ICON_MEDIUM \
2213 #define GENLIST_PART_ICON_SMALL_L(NAME, LEFT) \
2214 GENLIST_PART_ICON(NAME, \
2215 DESC_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2216 GENLIST_PARAM_ICON_SMALL \
2221 #define GENLIST_PART_ICON_SMALL_LB(NAME, LEFT, BOTTOM) \
2222 GENLIST_PART_ICON(NAME, \
2223 DESC_LB(LEFT, BOTTOM, \
2224 GENLIST_PARAM_ICON_SMALL \
2229 #define GENLIST_PART_ICON_SMALL_LTB(NAME, LEFT, TOP, BOTTOM) \
2230 GENLIST_PART_ICON(NAME, \
2231 DESC_LTB(LEFT, TOP, BOTTOM, \
2232 GENLIST_PARAM_ICON_SMALL \
2237 #define GENLIST_PART_ICON_SMALL_RT(NAME, RIGHT, TOP) \
2238 GENLIST_PART_ICON(NAME, \
2239 DESC_RT(RIGHT, TOP, \
2240 GENLIST_PARAM_ICON_SMALL \
2245 #define GENLIST_PART_ICON_SMALL_RTB(NAME, RIGHT, TOP, BOTTOM) \
2246 GENLIST_PART_ICON(NAME, \
2247 DESC_RTB(RIGHT, TOP, BOTTOM, \
2248 GENLIST_PARAM_ICON_SMALL \
2253 #define GENLIST_PART_ICON_BTN_01_RTB(NAME, RIGHT, TOP, BOTTOM) \
2254 GENLIST_PART_ICON(NAME, \
2255 DESC_RTB(RIGHT, TOP, BOTTOM,\
2256 GENLIST_PARAM_ICON_BTN_01 \
2261 #define GENLIST_PART_ICON_BTN_02_RTB(NAME, RIGHT, TOP, BOTTOM) \
2262 GENLIST_PART_ICON(NAME, \
2263 DESC_RTB(RIGHT, TOP, BOTTOM,\
2264 GENLIST_PARAM_ICON_BTN_02 \
2269 #define GENLIST_PART_ICON_BTN_ONOFF_R(NAME, RIGHT) \
2270 GENLIST_PART_ICON(NAME, \
2271 DESC_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2272 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2277 #define GENLIST_PART_ICON_BTN_ONOFF_L(NAME, LEFT) \
2278 GENLIST_PART_ICON(NAME, \
2279 DESC_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2280 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2285 #define GENLIST_PART_ICON_CHECK_RADIO_L(NAME, LEFT) \
2286 GENLIST_PART_ICON(NAME, \
2287 DESC_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2288 GENLIST_PARAM_ICON_CHECK_RADIO \
2293 #define GENLIST_PART_ICON_STAR_RTB(NAME, RIGHT, TOP, BOTTOM) \
2294 GENLIST_PART_ICON(NAME, \
2295 DESC_RTB(RIGHT, TOP, BOTTOM, \
2296 GENLIST_PARAM_ICON_STAR \
2301 /*****************************************************************************/
2302 /******************************* Genlist Proxy ********************************/
2303 /*****************************************************************************/
2304 #define GENLIST_PART_PROXY(NAME, DESCRIPION) \
2305 part { name: NAME; \
2311 /*****************************************************************************/
2312 /******************************* Genlist Bubble ********************************/
2313 /*****************************************************************************/
2314 #define GENLIST_PARAM_TEXT_LIMIT_RB \
2315 rel1.to_x: "base"; /* This limits text growing. */\
2316 rel1.relative: 0.5 0; /* This limits text growing. */\
2317 text.max: 1 0; /* This limits text growing. */
2319 #define GENLIST_PARAM_TEXT_LIMIT_RT \
2320 rel1.to_x: "base"; /* This limits text growing. */\
2321 rel1.relative: 0.5 1; /* This limits text growing. */\
2322 text.max: 1 0; /* This limits text growing. */
2324 #define GENLIST_PARAM_TEXT_LIMIT_RT_( LIMIT ) \
2325 rel1.to_x: "base"; /* This limits text growing. */\
2326 rel1.relative: LIMIT 1; /* This limits text growing. */\
2327 text.max: 1 0; /* This limits text growing. */
2330 #define GENLIST_PARAM_DIALOGUE_GROUP_TITLE \
2331 color_class: "T027"; \
2334 text_class: "T027"; \
2339 #define GENLIST_PARAM_PASSWORD_TITLE \
2340 color_class: "T0213"; \
2342 text_class: "T0213"; \
2347 // Progress main text
2348 #define GENLIST_PARAM_PROGRESS_MAIN \
2349 color_class: "T0212"; \
2353 text_class: "T0212"; \
2357 #define GENLIST_PARAM_LISTITEM \
2358 color_class: "T023"; \
2362 text_class: "T023"; \
2365 #define GENLIST_PARAM_LISTITEM_TB \
2368 style: "genlist_style_list_main_text"; \
2371 #define GENLIST_PARAM_LISTITEM_TB_WRAP \
2374 style: "genlist_style_list_main_text_wrap"; \
2377 #define GENLIST_PARAM_LISTITEM_SETTINGS \
2378 color_class: "T023"; \
2382 text_class: "T023"; \
2386 #define GENLIST_PARAM_SUBITEM_DEFAULT \
2387 color_class: "T024"; \
2391 text_class: "T024"; \
2394 #define GENLIST_PARAM_SUBITEM_SETTINGS \
2395 color_class: "T024"; \
2399 text_class: "T024"; \
2402 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2405 style: "genlist_style_list_sub_text_default"; \
2408 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB_WRAP \
2411 style: "genlist_style_list_sub_text_default_wrap"; \
2414 #define GENLIST_PARAM_SUBITEM_SETTINGS_TB \
2417 style: "genlist_style_list_sub_text_settings"; \
2421 #define GENLIST_PARAM_SUBITEM_02 \
2422 color_class: "T0242"; \
2426 text_class: "T0242"; \
2429 // Dialogue group - Apps (deprecated)
2430 #define GENLIST_PARAM_APPS_NAME\
2431 color_class: "T024"; \
2435 text_class: "T024"; \
2438 #define GENLIST_PARAM_APPS_INC\
2439 color: GENLIST_APPS_INC_COLOR; \
2443 font: "Tizen:style=Bold"; \
2444 size: GENLIST_APPS_INC_SIZE; \
2445 text_class: "list_item"; \
2448 #define GENLIST_PARAM_APPS_RATING\
2449 color: GENLIST_APPS_RATING_COLOR; \
2453 font: "Tizen:style=Bold"; \
2454 size: GENLIST_APPS_RATING_SIZE; \
2455 text_class: "list_item"; \
2458 #define GENLIST_PARAM_APPS_PRICE\
2459 color: GENLIST_APPS_PRICE_ORIGINAL_COLOR; \
2463 font: "Tizen:style=Bold"; \
2464 size: GENLIST_APPS_PRICE_SIZE; \
2465 text_class: "list_item"; \
2468 #define GENLIST_PARAM_APPS_PRICE_SALE\
2469 color: GENLIST_APPS_PRICE_SALE_COLOR; \
2473 font: "Tizen:style=Bold"; \
2474 size: GENLIST_APPS_PRICE_SIZE; \
2475 text_class: "list_item"; \
2478 #define GENLIST_PARAM_CONTENTS_TEXT \
2479 color: GENLIST_CONTENTS_TEXT_COLOR; \
2483 font: "Tizen:style=Regular"; \
2484 size: GENLIST_CONTENTS_TEXT_SIZE; \
2485 text_class: "tizen"; \
2488 /*************************** Descriptions **********************************/
2490 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2491 description { state: "disabled" 0.0; \
2492 inherit: "default" 0.0; \
2493 color_class: "T023D"; \
2495 description { state: "pressed" 0.0; \
2496 inherit: "default" 0.0; \
2497 color_class: "T023P"; \
2500 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2501 description { state: "disabled" 0.0; \
2502 inherit: "default" 0.0; \
2503 text.style: "genlist_style_list_main_text_dim"; \
2505 description { state: "pressed" 0.0; \
2506 inherit: "default" 0.0; \
2507 text.style: "genlist_style_list_main_text_press"; \
2511 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2512 description { state: "disabled" 0.0; \
2513 inherit: "default" 0.0; \
2514 color_class: "T024D"; \
2516 description { state: "pressed" 0.0; \
2517 inherit: "default" 0.0; \
2518 color_class: "T024P"; \
2521 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2522 description { state: "disabled" 0.0; \
2523 inherit: "default" 0.0; \
2524 text.style: "genlist_style_list_sub_text_default_dim"; \
2526 description { state: "pressed" 0.0; \
2527 inherit: "default" 0.0; \
2528 text.style: "genlist_style_list_sub_text_default_press"; \
2531 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB_WRAP \
2532 description { state: "disabled" 0.0; \
2533 inherit: "default" 0.0; \
2534 text.style: "genlist_style_list_sub_text_default_dim_wrap"; \
2536 description { state: "pressed" 0.0; \
2537 inherit: "default" 0.0; \
2538 text.style: "genlist_style_list_sub_text_default_press_wrap"; \
2541 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
2542 description { state: "disabled" 0.0; \
2543 inherit: "default" 0.0; \
2544 color_class: "T024D"; \
2546 description { state: "pressed" 0.0; \
2547 inherit: "default" 0.0; \
2548 color_class: "T024P"; \
2551 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
2552 description { state: "disabled" 0.0; \
2553 inherit: "default" 0.0; \
2554 text.style: "genlist_style_list_sub_text_settings_dim"; \
2556 description { state: "pressed" 0.0; \
2557 inherit: "default" 0.0; \
2560 // list main text multiline
2561 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB_WRAP \
2562 description { state: "disabled" 0.0; \
2563 inherit: "default" 0.0; \
2564 text.style: "genlist_style_list_main_text_dim_wrap"; \
2566 description { state: "pressed" 0.0; \
2567 inherit: "default" 0.0; \
2568 text.style: "genlist_style_list_main_text_press_wrap"; \
2574 #define GENLIST_DESCRIPTION_HELP_TEXT_DIM \
2575 description { state: "disabled" 0.0; \
2576 inherit: "default" 0.0; \
2577 text.style: "genlist_style_dialogue_group_help_text_dim"; \
2579 description { state: "pressed" 0.0; \
2580 inherit: "default" 0.0; \
2581 text.style: "genlist_style_dialogue_group_help_text_press"; \
2585 // progress main text
2586 #define GENLIST_DESCRIPTION_PROGRESS_MAIN_OTHERS \
2587 description { state: "disabled" 0.0; \
2588 inherit: "default" 0.0; \
2589 color_class: "T028D"; \
2591 description { state: "read" 0.0; \
2592 inherit: "default" 0.0; \
2593 color_class: "T028R"; \
2595 description { state: "read,disabled" 0.0; \
2596 inherit: "default" 0.0; \
2597 color_class: "T028RD"; \
2599 description { state: "pressed" 0.0; \
2600 inherit: "default" 0.0; \
2601 color_class: "T028P"; \
2604 /*************************** Parts **********************************/
2605 #define GENLIST_PART_DIALOGUE_GROUP_HELP_TEXT(NAME, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2606 PART(TEXTBLOCK, NAME, \
2607 DESC_LRTB(LEFT, RIGHT, TOP, BOTTOM, \
2610 style: "genlist_style_dialogue_group_help_text"; \
2614 GENLIST_DESCRIPTION_HELP_TEXT_DIM \
2617 #define GENLIST_PART_LISTITEM(NAME, DESCRIPTION) \
2620 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2623 #define GENLIST_PART_LISTITEM_TB(NAME, DESCRIPTION) \
2624 PART(TEXTBLOCK, NAME, \
2626 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2629 #define GENLIST_PART_LISTITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2631 DESC_LRTB(LEFT, RIGHT, TOP, BOTTOM, \
2633 GENLIST_PARAM_LISTITEM \
2636 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2639 #define GENLIST_PART_LISTITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2640 PART(TEXTBLOCK, NAME, \
2641 DESC_LRTB(LEFT, RIGHT, TOP, BOTTOM, \
2644 GENLIST_PARAM_LISTITEM_TB \
2647 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2650 #define GENLIST_PART_LISTITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2652 DESC_LRTB(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2654 GENLIST_PARAM_LISTITEM \
2657 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2660 #define GENLIST_PART_LISTITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
2662 DESC_LRT(LEFT, RIGHT, TOP, \
2665 GENLIST_PARAM_LISTITEM \
2668 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2671 #define GENLIST_PART_LISTITEM_LRT_TB(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
2672 PART(TEXTBLOCK, NAME, \
2673 DESC_LRT(LEFT, RIGHT, TOP, \
2676 GENLIST_PARAM_LISTITEM_TB \
2679 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2682 #define GENLIST_PART_LISTITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2683 PART(TEXTBLOCK, NAME, \
2684 DESC_LRTB(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2687 GENLIST_PARAM_LISTITEM_TB \
2690 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2693 #define GENLIST_PART_SUBITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2695 DESC_LRTB(LEFT, RIGHT, TOP, BOTTOM, \
2697 GENLIST_PARAM_SUBITEM_DEFAULT \
2700 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2703 #define GENLIST_PART_SUBITEM(NAME, DESCRIPTION) \
2706 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2709 #define GENLIST_PART_SUBITEM_TB(NAME, DESCRIPTION) \
2710 PART(TEXTBLOCK, NAME, \
2712 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2715 #define GENLIST_PART_SUBITEM_R(NAME, HEIGHT, RIGHT) \
2717 DESC_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2720 GENLIST_PARAM_TEXT_LIMIT_RB \
2721 GENLIST_PARAM_SUBITEM_DEFAULT \
2723 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2726 #define GENLIST_PART_SUBITEM_R_TB(NAME, HEIGHT, RIGHT) \
2727 PART(TEXTBLOCK, NAME, \
2728 DESC_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2731 GENLIST_PARAM_TEXT_LIMIT_RB \
2732 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2734 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2737 #define GENLIST_PART_SUBITEM_RB(NAME, HEIGHT, RIGHT, BOTTOM) \
2739 DESC_RB(RIGHT, BOTTOM, \
2742 GENLIST_PARAM_TEXT_LIMIT_RB \
2743 GENLIST_PARAM_SUBITEM_DEFAULT \
2745 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2748 #define GENLIST_PART_SUBITEM_RB_TB(NAME, HEIGHT, RIGHT, BOTTOM) \
2749 PART(TEXTBLOCK, NAME, \
2750 DESC_RB(RIGHT, BOTTOM, \
2752 GENLIST_PARAM_TEXT_LIMIT_RB \
2754 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2756 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2759 #define GENLIST_PART_SUBITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM) \
2760 PART(TEXTBLOCK, NAME, \
2761 DESC_LRTB(LEFT, RIGHT, TOP, BOTTOM, \
2763 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2765 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2768 #define GENLIST_PART_SUBITEM_R_FIXED(NAME, WIDTH, HEIGHT, RIGHT) \
2770 DESC_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2771 min: WIDTH HEIGHT; \
2773 GENLIST_PARAM_SUBITEM_DEFAULT \
2775 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2778 #define GENLIST_PART_SUBITEM_R_FIXED_TB(NAME, WIDTH, HEIGHT, RIGHT) \
2779 PART(TEXTBLOCK, NAME, \
2781 min: WIDTH HEIGHT; \
2783 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2785 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2788 #define GENLIST_PART_SUBITEM_L_FIXED(NAME, WIDTH, HEIGHT, LEFT) \
2790 DESC_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2791 min: WIDTH HEIGHT; \
2793 GENLIST_PARAM_SUBITEM_DEFAULT \
2795 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2798 #define GENLIST_PART_SUBITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2800 DESC_LRTB(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2802 GENLIST_PARAM_SUBITEM_DEFAULT \
2805 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2808 #define GENLIST_PART_SUBITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT) \
2809 PART(TEXTBLOCK, NAME, \
2810 DESC_LR(LEFT, RIGHT, \
2812 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2814 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2817 #define GENLIST_PART_SUBITEM_LB(NAME, HEIGHT, LEFT, RIGHT) \
2819 DESC_LB(LEFT, BOTTOM, \
2821 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2823 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2826 #define GENLIST_PART_SUBITEM_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
2828 DESC_LRB(LEFT, RIGHT, BOTTOM, \
2830 GENLIST_PARAM_SUBITEM_DEFAULT \
2833 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2836 #define GENLIST_PART_SUBITEM_SETTINGS_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM, PARAM) \
2838 DESC_LRB(LEFT, RIGHT, BOTTOM, \
2840 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
2841 GENLIST_PARAM_SUBITEM_SETTINGS\
2844 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
2847 #define GENLIST_PART_SUBITEM_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
2848 PART(TEXTBLOCK, NAME, \
2849 DESC_LRB(LEFT, RIGHT, BOTTOM, \
2851 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2854 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2857 #define GENLIST_PART_SUBITEM_SETTINGS_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
2858 PART(TEXTBLOCK, NAME, \
2859 DESC_LRB(LEFT, RIGHT, BOTTOM, \
2861 GENLIST_PARAM_SUBITEM_SETTINGS_TB \
2864 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
2867 #define GENLIST_PART_SUBITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
2869 DESC_LRT(LEFT, RIGHT, TOP, \
2872 GENLIST_PARAM_SUBITEM_DEFAULT \
2874 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2877 #define GENLIST_PART_SUBITEM_SETTINGS_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
2879 DESC_LRT(LEFT, RIGHT, TOP, \
2882 GENLIST_PARAM_SUBITEM_SETTINGS \
2884 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
2887 #define GENLIST_PART_SUBITEM_LTB(NAME, HEIGHT, LEFT, TOP, BOTTOM) \
2889 DESC_LTB(LEFT, TOP, BOTTOM, \
2891 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
2892 GENLIST_PARAM_SUBITEM_DEFAULT \
2894 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2897 #define GENLIST_PART_SUBITEM_RTB_LIMIT(NAME, HEIGHT, RIGHT, TOP, BOTTOM, LIMIT) \
2899 DESC_RTB(RIGHT, TOP, BOTTOM, \
2901 GENLIST_PARAM_TEXT_LIMIT_RT_(LIMIT) \
2902 GENLIST_PARAM_SUBITEM_DEFAULT \
2905 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2908 #define GENLIST_PART_SUBITEM_RTB_LIMIT_TB(NAME, HEIGHT, RIGHT, TOP, BOTTOM, LIMIT) \
2909 PART(TEXTBLOCK, NAME, \
2910 DESC_RTB(RIGHT, TOP, BOTTOM, \
2912 GENLIST_PARAM_TEXT_LIMIT_RT_(LIMIT) \
2913 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2916 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2919 #define GENLIST_PART_SUBITEM_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
2921 DESC_RTB(RIGHT, TOP, BOTTOM, \
2923 GENLIST_PARAM_TEXT_LIMIT_RT \
2924 GENLIST_PARAM_SUBITEM_DEFAULT \
2927 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2930 #define GENLIST_PART_SUBITEM_RTB_TB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
2931 PART(TEXTBLOCK, NAME, \
2932 DESC_RTB(RIGHT, TOP, BOTTOM, \
2934 GENLIST_PARAM_TEXT_LIMIT_RT \
2935 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2938 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2941 #define GENLIST_PART_SUBITEM_02_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
2943 DESC_RTB(RIGHT, TOP, BOTTOM, \
2945 GENLIST_PARAM_TEXT_LIMIT_RT \
2946 GENLIST_PARAM_SUBITEM_02 \
2949 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2952 #define GENLIST_PARAM_LIST_BUBBLE_TEXT \
2953 color_class: "T025"; \
2957 text_class: "T025"; \
2960 #define GENLIST_POPUP_STYLE(NAME) \
2961 group { GENLIST_NAME(NAME"/popup/default") \
2962 inherit: "elm/genlist/item/"NAME"/default"; \
2965 description { state: "default" 0.0; \
2966 color_class: "B061L1"; \
2968 description { state: "disabled" 0.0; \
2969 inherit: "default" 0.0; \
2970 color_class: "B061L1"; \
2972 description { state: "pressed" 0.0; \
2973 inherit: "default" 0.0; \
2974 color_class: "B061L41P"; \
2977 PART(SPACER, "elm.padding.left", \
2978 DESC_L("elm.swallow.pad", \
2979 min: GENLIST_POPUP_PADDING_SIZE_LEFT 0; \
2980 max: GENLIST_POPUP_PADDING_SIZE_LEFT -1; \
2982 DESC_LIST_PADDINGS \
2984 PART(SPACER, "elm.padding.right", \
2986 min: GENLIST_POPUP_PADDING_SIZE_RIGHT 0; \
2987 max: GENLIST_POPUP_PADDING_SIZE_RIGHT -1; \
2989 DESC_LIST_PADDINGS \
2991 PART(RECT, "bottom_line", \
2992 description { state: "default" 0.0; \
2993 color_class: "B0621L2"; \
2997 rel2.offset: -2 -1; \
2999 description { state: "disabled" 0.0; \
3000 inherit: "default" 0.0; \
3007 //****************************************************************************//
3008 // ******************************* Customized genlist styles **********************//
3009 //**************************************************************************//
3012 #include "tizen-inc.edc"
3015 image : "00_focus_01.#.png" COMP;
3016 image : "00_list_group_bg.#.png" COMP;
3017 image : "00_list_group_bg_ef.#.png" COMP;
3018 image : "00_list_group_bg.#.png" COMP;
3019 image : "00_list_group_bg_ef.#.png" COMP;
3020 image : "00_list_group_bg_top.#.png" COMP;
3021 image : "00_list_group_bg_top_ef.#.png" COMP;
3022 image : "00_list_group_bg_center.#.png" COMP;
3023 image : "00_list_group_bg_center_ef.#.png" COMP;
3024 image : "00_list_group_bg_bottom.#.png" COMP;
3025 image : "00_list_group_bg_bottom_ef.#.png" COMP;
3030 name: "touch_sound" RAW;
3031 source: "Tizen_Touch.wav";
3035 /*newset.1text.2icon.divider style */
3036 group { GENLIST_NAME("newset.1text.2icon/default")
3038 data.item: "texts" "elm.text";
3039 data.item: "contents" "elm.icon.1 elm.icon.2";
3044 PART_LIST_BOTTOMLINE
3046 GENLIST_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT,
3047 GENLIST_PADDING_SIZE_TOP, GENLIST_PADDING_SIZE_BOTTOM
3050 //GENLIST_PART_ICON_MEDIUM_L( "elm.icon.1", "elm.padding.left") - setting change icon1
3051 GENLIST_PART_ICON("elm.icon.1",
3052 DESC_LTB("elm.padding.left", "elm.padding.top", "elm.padding.bottom",
3058 GENLIST_PART_PADDING_L("elm.padding.icon1.right", "elm.icon.1")
3059 GENLIST_PART_LISTITEM_LR("elm.text", GENLIST_HEIGHT_1LINE, "elm.padding.icon1.right", "elm.padding.icon2.left",)
3060 GENLIST_PART_PADDING_R("elm.padding.icon2.left", "elm.icon.2")
3061 GENLIST_PART_ICON_BTN_01_RTB("elm.icon.2", "elm.padding.right", "elm.padding.top", "elm.padding.bottom")
3063 GENLIST_PART_FOCUS_NORMAL
3065 GENLIST_PROGRAMS_NORMAL( target: "elm.text"; target: "elm.icon.1"; target: "elm.icon.2"; )
3068 group { GENLIST_NAME("newset.1text.2icon.7/default")
3069 inherit: "elm/genlist/item/newset.1text.2icon/default";
3072 GENLIST_PART_ICON_BTN_ONOFF_R("elm.icon.2", "elm.padding.right")
3076 group { GENLIST_NAME("newset.1text.2icon.divider/default")
3077 inherit: "elm/genlist/item/newset.1text.2icon.7/default";
3080 GENLIST_PART_LISTITEM_LR("elm.text", GENLIST_HEIGHT_1LINE,
3081 "elm.padding.icon1.right", "elm.divider1",
3083 GENLIST_PART_DIVIDER_R("elm.padding.icon2.left")
3084 GENLIST_PART_PADDING_R("elm.padding.icon2.left", "elm.icon.2")
3088 group { GENLIST_NAME("dialogue/newset.1text.2icon.divider/default")
3089 alias: "elm/layout/dialogue/newset.1text.2icon.divider";
3090 inherit: "elm/genlist/item/newset.1text.2icon.divider/default";
3092 data.item: "contents" "elm.icon.1 elm.icon.2";
3094 GENLIST_DIALOGUE_INHERIT_BODY(;)
3096 GENLIST_PART_DIALOGUE_GROUP_DIVIDER_R("elm.padding.icon2.left")
3098 GENLIST_PROGRAMS_DIALOGUE( target: "elm.text"; target: "elm.icon.1"; target: "elm.icon.2";
3099 target: "elm.divider1"; target: "elm.divider2";
3103 /*newset.1text.2icon.4.tb & newset.1text.2icon.4.divider.tb style */
3104 group { GENLIST_NAME("newset.1text.2icon.tb/default")
3106 data.item: "texts" "elm.text";
3107 data.item: "contents" "elm.icon.1 elm.icon.2";
3112 PART_LIST_BOTTOMLINE
3114 GENLIST_PADDING_SIZE_LEFT, GENLIST_PADDING_SIZE_RIGHT,
3115 GENLIST_PADDING_SIZE_TOP, GENLIST_PADDING_SIZE_BOTTOM
3118 GENLIST_PART_ICON_MEDIUM_L( "elm.icon.1", "elm.padding.left")
3119 GENLIST_PART_PADDING_L("elm.padding.icon1.right", "elm.icon.1")
3120 GENLIST_PART_LISTITEM_LR_TB("elm.text", GENLIST_HEIGHT_1LINE, "elm.padding.icon1.right", "elm.padding.icon2.left",)
3121 GENLIST_PART_PADDING_R("elm.padding.icon2.left", "elm.icon.2")
3122 GENLIST_PART_ICON_BTN_01_RTB("elm.icon.2", "elm.padding.right", "elm.padding.top", "elm.padding.bottom")
3124 GENLIST_PART_FOCUS_NORMAL
3126 GENLIST_PROGRAMS_NORMAL( target: "elm.text"; target: "elm.icon.1"; target: "elm.icon.2"; )
3129 group { GENLIST_NAME("newset.1text.2icon.4.tb/default")
3130 inherit: "elm/genlist/item/newset.1text.2icon.tb/default";
3133 GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
3134 GENLIST_PART_ICON_BTN_02_RTB("elm.icon.2", "elm.padding.right", "elm.padding.top", "elm.padding.bottom")
3138 group { GENLIST_NAME("dialogue/newset.1text.2icon.4.tb/default")
3139 alias: "elm/layout/dialogue/newset.1text.2icon.4.tb";
3140 inherit: "elm/genlist/item/newset.1text.2icon.4.tb/default";
3142 data.item: "contents" "elm.icon.1 elm.icon.2";
3144 GENLIST_DIALOGUE_INHERIT_BODY( ; )
3145 GENLIST_PROGRAMS_DIALOGUE( target: "elm.text"; target: "elm.icon.1"; target: "elm.icon.2"; )
3148 group { GENLIST_NAME("dialogue/newset.1text.2icon.4.divider.tb/default")
3149 alias: "elm/layout/dialogue/newset.1text.2icon.4.divider.tb";
3150 inherit: "elm/genlist/item/newset.1text.2icon.4.tb/default";
3152 data.item: "contents" "elm.icon.1 elm.icon.2";
3154 GENLIST_DIALOGUE_INHERIT_BODY( ; )
3156 GENLIST_PART_DIALOGUE_GROUP_DIVIDER_R("elm.padding.icon2.left")
3158 GENLIST_PROGRAMS_DIALOGUE( target: "elm.text"; target: "elm.icon.1"; target: "elm.icon.2";
3159 target: "elm.divider1"; target: "elm.divider2";)