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 // ******************************* Default size macro **********************//
22 //**************************************************************************//
23 // if size is different for each theme, split it into each theme inc.
25 #define GENLIST_HEIGHT_1LINE 112
26 #define GENLIST_HEIGHT_2LINE_MAIN 54
27 #define GENLIST_HEIGHT_2LINE_SUB 42
28 #define GENLIST_HEIGHT_MULTILINE_SUB 38
29 #define GENLIST_PART_LIST_LINE_HEIGHT 1
30 #define GENLIST_HEIGHT_GROUPTITLE 46
32 #define GENLIST_PADDING_SIZE_DEFAULT 16
33 #define GENLIST_PADDING_SIZE_LEFT 26
34 #define GENLIST_PADDING_SIZE_RIGHT 26
35 // Dialogue group image has bottom padding (2piexl), Giant font can overlapped bottom line of image.
36 #define GENLIST_PADDING_SIZE_TOP 2
37 #define GENLIST_PADDING_SIZE_BOTTOM 2
38 // -----------------------------------------------------
39 #define GENLIST_PADDING_SIZE_TOP_2LINE 22
40 #define GENLIST_PADDING_SIZE_BOTTOM_2LINE 22
41 #define GENLIST_PADDING_SIZE_TOP_3LINE 17
42 #define GENLIST_PADDING_SIZE_BOTTOM_3LINE 17
43 #define GENLIST_PADDING_SIZE_NDEPTH 26
45 #define DIALOGUE_PADDING_SCROLLER 16
46 #define DIALOGUE_PADDING_SIZE_LEFT 16+20
47 #define DIALOGUE_PADDING_SIZE_RIGHT 16+20
49 #define GENLIST_ICON_BIG_SIZE 74
50 #define GENLIST_ICON_SMALL_SIZE 38
51 #define GENLIST_ICON_STAR_SIZE 38
52 #define GENLIST_ICON_THUMBNAIL1_SIZE 104
53 #define GENLIST_BTN_01_HEIGHT 74
54 #define GENLIST_BTN_02_SIZE 74
55 #define GENLIST_ICON_ONOFF_WIDTH 132
56 #define GENLIST_ICON_ONOFF_HEIGHT 70
57 #define GENLIST_ICON_CHECK_RADIO_SIZE 64
58 #define GENLIST_ICON_COLORBAR_SIZE 7
59 #define GENLIST_ICON_PASSWORD_SIZE 82
61 #define GENLIST_TREESIZE_DEFAULT 26
63 //#define GENLIST_DIALOGUE_SEPARATOR_DEFAULT_HEIGHT 40
65 //****************************************************************************//
66 // ***************** EDJE description have 24 patterns **********************//
67 //**************************************************************************//
71 #define GENLIST_DESCRIPTION_ENVELOP( PART, PARAM ) \
72 description { state: "default" 0.0;\
85 // ---------------------
86 // left | HERE | right
87 // ---------------------
89 #define GENLIST_DESCRIPTION( left, right, top, bottom, param ) \
90 description { state: "default" 0.0;\
104 // ---------------------
106 // ---------------------
107 #define GENLIST_DESCRIPTION_L( left, param ) \
108 description { state: "default" 0.0;\
124 // ---------------------
126 // ---------------------
127 #define GENLIST_DESCRIPTION_R( right, param ) \
128 description { state: "default" 0.0;\
144 // --------------------------
145 // left |--> HERE <--| right
146 // --------------------------
147 #define GENLIST_DESCRIPTION_LR( left, right, param ) \
148 description { state: "default" 0.0;\
167 #define GENLIST_DESCRIPTION_RTB( right, top, bottom, param ) \
168 description { state: "default" 0.0;\
183 // left | HERE | right
184 // ---------------------
186 #define GENLIST_DESCRIPTION_LRB( left, right, bottom, param ) \
187 description { state: "default" 0.0;\
203 // ---------------------
204 // left | HERE | right
205 #define GENLIST_DESCRIPTION_LRT( left, right, top, param ) \
206 description { state: "default" 0.0;\
222 // ---------------------
224 #define GENLIST_DESCRIPTION_LT( left, top, param ) \
225 description { state: "default" 0.0;\
241 // ---------------------
243 #define GENLIST_DESCRIPTION_LB( left, bottom, param ) \
244 description { state: "default" 0.0;\
260 // ---------------------
262 // ---------------------
264 #define GENLIST_DESCRIPTION_LTB( left, top, bottom, param ) \
265 description { state: "default" 0.0;\
281 // ---------------------
283 #define GENLIST_DESCRIPTION_RT( right, top, param ) \
284 description { state: "default" 0.0;\
299 // | HERE <-- | right
300 // ---------------------
302 #define GENLIST_DESCRIPTION_RB( right, bottom, param ) \
303 description { state: "default" 0.0;\
323 #define GENLIST_DESCRIPTION_TB( top, bottom, param ) \
324 description { state: "default" 0.0;\
337 #define GENLIST_DATA_ITEM_NORMAL \
338 data.item: "stacking" "above"; \
339 data.item: "selectraise" "on"; \
340 data.item: "flips" "elm.flip.icon elm.flip.content"; \
341 data.item: "treesize" GENLIST_TREESIZE_DEFAULT;
343 /*****************************************************************************/
344 /******************************* Dialogue group ******************************/
345 /*****************************************************************************/
346 #define GENLIST_DIALOGUE_INHERIT_BODY( _PARTS ) \
347 data.item: "treesize" 0; \
348 GENLIST_IMAGES_DIALOGUE_BG_IMAGE \
350 GENLIST_PART_BG_IMAGE_DIALOGUE \
351 GENLIST_PART_BOTTOM_LINE_OFF \
352 GENLIST_PART_PADDING_LEFT_SIZE( DIALOGUE_PADDING_SIZE_LEFT ) \
353 GENLIST_PART_PADDING_RIGHT_SIZE_EDIT( DIALOGUE_PADDING_SIZE_RIGHT ) \
358 //****************************************************************************//
359 // ****************************** BG Image **********************************//
360 //****************************************************************************//
361 #define GENLIST_IMAGE_GROUPINDEX \
363 image: "00_index list_bg.png" COMP; \
365 #define GENLIST_PART_INDEX_BG_IMAGE \
366 part { name: "bg_image"; \
370 description { state: "default" 0.0; \
371 color: GENLIST_GROUPINDEX_LIST_BG_COLOR; \
373 description { state: "selected" 0.0; \
374 inherit: "default" 0.0; \
375 color: GENLIST_GROUPINDEX_LIST_PRESS_COLOR; \
377 GENLIST_DESCRIPTION_FADE \
380 #define GENLIST_PART_BG_IMAGE \
381 part { name: "bg_image_depth_clip"; \
385 description { state: "default" 0.0; \
388 description { state: "2depth" 0.0; \
392 part { name: "bg_image"; \
396 description { state: "default" 0.0; \
397 color: GENLIST_LIST_BG_COLOR; \
399 description { state: "selected" 0.0; \
400 color: GENLIST_LIST_PRESS_COLOR; \
402 description { state: "disabled" 0.0; \
403 color: GENLIST_LIST_DIM_COLOR; \
405 GENLIST_DESCRIPTION_FADE \
408 #define GENLIST_IMAGES_DIALOGUE_BG_IMAGE \
410 image : "00_list_group_bg.png" COMP; \
411 image : "00_list_group_bg_top.png" COMP; \
412 image : "00_list_group_bg_center.png" COMP; \
413 image : "00_list_group_bg_bottom.png" COMP; \
414 image : "00_list_group_bg_press.png" COMP; \
415 image : "00_list_group_bg_top_press.png" COMP; \
416 image : "00_list_group_bg_center_press.png" COMP; \
417 image : "00_list_group_bg_bottom_press.png" COMP; \
420 #define GENLIST_PARAM_BG_IMAGE_DIALOGUE \
422 to_x: "bg_image_left"; \
426 to_x: "bg_image_right"; \
430 #define GENLIST_PART_BG_IMAGE_DIALOGUE \
431 part { name: "bg_image_depth_clip"; \
435 description { state: "default" 0.0; \
436 color: 255 255 255 255; \
438 description { state: "2depth" 0.0; \
439 color: 220 218 211 255; \
442 part { name: "bg_image_left"; \
446 description { state: "default" 0.0; \
451 rel2.relative: 0 1; \
454 part { name: "bg_image_right"; \
458 description { state: "default" 0.0; \
463 rel1.relative: 1 0; \
465 description { state: "editmode" 0.0; \
466 inherit: "default" 0.0; \
467 min: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_BIG_SIZE) 0; \
468 max: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_BIG_SIZE) 0; \
471 part { name: "bg_image"; \
472 clip_to: "bg_image_depth_clip"; \
476 description { state: "default" 0.0; \
477 color: 255 255 255 255; \
478 GENLIST_PARAM_BG_IMAGE_DIALOGUE \
480 normal: "00_list_group_bg.png"; \
481 border: 15 15 55 55; \
485 description { state: "selected" 0.0; \
486 color: 255 255 255 255; \
487 GENLIST_PARAM_BG_IMAGE_DIALOGUE \
489 normal: "00_list_group_bg_press.png"; \
490 border: 15 15 55 55; \
494 description { state: "disabled" 0.0; \
495 inherit: "default"; \
496 color: 255 255 255 255; \
498 description { state: "top" 0.0; \
499 GENLIST_PARAM_BG_IMAGE_DIALOGUE \
501 normal: "00_list_group_bg_top.png"; \
502 border: 15 15 55 2; \
506 description { state: "top_selected" 0.0; \
507 GENLIST_PARAM_BG_IMAGE_DIALOGUE \
509 normal: "00_list_group_bg_top_press.png"; \
510 border: 15 15 55 2; \
514 description { state: "top_disabled" 0.0; \
517 description { state: "center" 0.0; \
518 GENLIST_PARAM_BG_IMAGE_DIALOGUE \
520 normal: "00_list_group_bg_center.png"; \
525 description { state: "center_selected" 0.0; \
526 GENLIST_PARAM_BG_IMAGE_DIALOGUE \
528 normal: "00_list_group_bg_center_press.png"; \
533 description { state: "center_disabled" 0.0; \
536 description { state: "bottom" 0.0; \
537 GENLIST_PARAM_BG_IMAGE_DIALOGUE \
539 normal: "00_list_group_bg_bottom.png"; \
540 border: 15 15 2 55; \
544 description { state: "bottom_selected" 0.0; \
545 GENLIST_PARAM_BG_IMAGE_DIALOGUE \
547 normal: "00_list_group_bg_bottom_press.png"; \
548 border: 15 15 2 10; \
552 description { state: "bottom_disabled" 0.0; \
555 GENLIST_DESCRIPTION_FADE \
558 //****************************************************************************//
559 // ****************************** BASE ********************************//
560 //****************************************************************************//
561 #define GENLIST_PART_BASE \
562 part { name: "base"; \
566 description { state: "default" 0.0; \
571 GENLIST_PART_PERSPECTIVE_POINT
573 #define GENLIST_PART_BASE_REORDER \
574 part { name: "base"; \
578 description { state: "default" 0.0; \
583 to_x: "reorder.padding.left"; \
587 to_x: "reorder.padding.right"; \
591 part { name: "reorder.padding.left"; \
595 description { state: "default" 0.0; \
596 rel2.relative: 0 1; \
599 description { state: "reorder" 0.0; \
600 inherit: "default" 0.0; \
605 part { name: "reorder.padding.right"; \
609 description { state: "default" 0.0; \
610 rel1.relative: 1 0; \
613 description { state: "reorder" 0.0; \
614 inherit: "default" 0.0; \
619 GENLIST_PART_PERSPECTIVE_POINT
621 //****************************************************************************//
622 // ****************************** LINE ********************************//
623 //****************************************************************************//
624 #define GENLIST_PART_BOTTOM_LINE \
625 part { name: "bottom_line"; \
629 description { state: "default" 0.0; \
630 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
631 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
634 color: GENLIST_LIST_LINE1_COLOR; \
635 rel1.to: "bottom_line2"; \
636 rel2.to: "bottom_line2"; \
637 rel2.relative: 1 0; \
639 description { state: "reorder" 0.0; \
640 inherit: "default" 0.0; \
643 description { state: "selected" 0.0; \
644 inherit: "default" 0.0; \
645 color: GENLIST_LIST_PRESS_COLOR; \
647 description { state: "disabled" 0.0; \
648 inherit: "default" 0.0; \
649 color: GENLIST_LIST_DIM_COLOR; \
651 GENLIST_DESCRIPTION_FADE \
653 part { name: "bottom_line2"; \
657 description { state: "default" 0.0; \
658 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
659 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
662 color: GENLIST_LIST_LINE2_COLOR; \
663 rel1.to_x: "elm.padding.left"; \
664 rel1.relative: 1 0; \
665 rel2.to_x: "elm.padding.right"; \
666 rel2.relative: 0 1; \
668 description { state: "selected" 0.0; \
669 inherit: "default" 0.0; \
670 color: GENLIST_LIST_PRESS_COLOR; \
672 description { state: "reorder" 0.0; \
673 inherit: "default" 0.0; \
676 description { state: "disabled" 0.0; \
677 inherit: "default" 0.0; \
678 color: GENLIST_LIST_DIM_COLOR; \
680 GENLIST_DESCRIPTION_FADE \
683 #define GENLIST_PART_BOTTOM_LINE_OFF \
684 part { name: "bottom_line"; \
688 description { state: "default" 0.0; \
689 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
690 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
693 rel1.to: "bottom_line2"; \
694 rel2.to: "bottom_line2"; \
695 rel2.relative: 1 0; \
698 GENLIST_DESCRIPTION_FADE \
700 part { name: "bottom_line2"; \
704 description { state: "default" 0.0; \
705 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
706 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
709 rel1.to_x: "elm.padding.left"; \
710 rel1.relative: 1 0; \
711 rel2.to_x: "elm.padding.right"; \
712 rel2.relative: 0 1; \
715 GENLIST_DESCRIPTION_FADE \
718 #define GENLIST_PART_DIVIDER_MARGIN \
719 GENLIST_PART_SPACER("elm.padding.divider.top", \
720 GENLIST_DESCRIPTION_ENVELOP("base", \
725 rel2.relative: 1 0; \
728 GENLIST_PART_SPACER("elm.padding.divider.bottom", \
729 GENLIST_DESCRIPTION_ENVELOP("base", \
734 rel1.relative: 0 1; \
738 #define GENLIST_PART_DIVIDER_L(LEFT) \
739 GENLIST_PART_DIVIDER_MARGIN \
740 GENLIST_PART_RECT("elm.divider1", \
742 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
746 color: GENLIST_LIST_DIVIDER1_COLOR; \
748 GENLIST_DESCRIPTION_FADE \
750 GENLIST_PART_RECT("elm.divider2", \
752 GENLIST_DESCRIPTION_LTB("elm.divider1", "elm.padding.divider.top", "elm.padding.divider.bottom", \
756 color: GENLIST_LIST_DIVIDER2_COLOR; \
758 GENLIST_DESCRIPTION_FADE \
761 #define GENLIST_PART_DIVIDER_R(RIGHT) \
762 GENLIST_PART_DIVIDER_MARGIN \
763 GENLIST_PART_RECT("elm.divider1", \
765 GENLIST_DESCRIPTION_RTB("elm.divider2", "elm.padding.divider.top", "elm.padding.divider.bottom", \
769 color: GENLIST_LIST_DIVIDER1_COLOR; \
771 GENLIST_DESCRIPTION_FADE \
773 GENLIST_PART_RECT("elm.divider2", \
775 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
779 color: GENLIST_LIST_DIVIDER2_COLOR; \
781 GENLIST_DESCRIPTION_FADE \
784 #define GENLIST_PART_CENTER_LINE_LT(LEFT, TOP) \
785 GENLIST_PART_SPACER("elm.padding.divider.left", \
786 GENLIST_DESCRIPTION_L(LEFT, \
792 GENLIST_PART_SPACER("elm.padding.divider.right", \
793 GENLIST_DESCRIPTION_ENVELOP("base", \
798 rel1.relative: 1 0; \
801 GENLIST_PART_RECT("center_line", \
803 GENLIST_DESCRIPTION_LRT("elm.padding.divider.left", "elm.padding.divider.right", TOP, \
807 color: GENLIST_LIST_DIVIDER1_COLOR; \
809 GENLIST_DESCRIPTION_FADE \
811 GENLIST_PART_RECT("center_line2", \
812 GENLIST_DESCRIPTION_LRT("elm.padding.divider.left", "elm.padding.divider.right", "center_line", \
816 color: GENLIST_LIST_DIVIDER2_COLOR; \
818 GENLIST_DESCRIPTION_FADE \
821 #define GENLIST_PART_COLORBAR \
822 GENLIST_PART_SPACER("elm.padding.colorbar.top", \
823 GENLIST_DESCRIPTION_ENVELOP("base", \
828 rel2.relative: 1 0; \
831 GENLIST_PART_SPACER("elm.padding.colorbar.bottom", \
832 GENLIST_DESCRIPTION_ENVELOP("base", \
837 rel1.relative: 0 1; \
840 GENLIST_PART_ICON("elm.swallow.colorbar", \
841 GENLIST_DESCRIPTION_LTB("bg_image", "elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
842 min: GENLIST_ICON_COLORBAR_SIZE 0; \
843 max: GENLIST_ICON_COLORBAR_SIZE -1; \
845 rel1.relative: 0 1; \
846 rel2.relative: 0 0; \
848 GENLIST_DESCRIPTION_FADE \
851 //****************************************************************************//
852 //********************************* PADDING **********************************//
853 //****************************************************************************//
854 #define GENLIST_PART_EXPANDED_PAD \
855 part { name: "elm.swallow.pad"; \
859 description { state: "default" 0.0; \
866 rel2.relative: 0.0 1.0; \
870 #define GENLIST_PART_PADDING( NAME, SIZE, REL1, REL2 ) \
871 GENLIST_PART_SPACER(NAME, \
872 description { state: "default" 0.0; \
888 #define GENLIST_PART_PADDING_LEFT \
889 GENLIST_PART_EXPANDED_PAD \
890 GENLIST_PART_SPACER("elm.padding.left", \
891 GENLIST_DESCRIPTION_L("elm.swallow.pad", \
892 min: GENLIST_PADDING_SIZE_LEFT 0; \
893 max: GENLIST_PADDING_SIZE_LEFT -1; \
896 description { state: "decorate" 0.0; \
897 inherit: "default" 0.0; \
903 #define GENLIST_PART_PADDING_LEFT_SIZE( SIZE ) \
904 GENLIST_PART_EXPANDED_PAD \
905 GENLIST_PART_SPACER("elm.padding.left", \
906 GENLIST_DESCRIPTION_L("elm.swallow.pad", \
911 description { state: "decorate" 0.0; \
912 inherit: "default" 0.0; \
918 #define GENLIST_PART_EDITBTN \
919 part { name: "elm.icon.edit"; \
922 GENLIST_DESCRIPTION_R("elm.padding.edit.right", \
925 min: GENLIST_ICON_BIG_SIZE GENLIST_ICON_BIG_SIZE; \
926 max: GENLIST_ICON_BIG_SIZE GENLIST_ICON_BIG_SIZE; \
928 description { state: "editmode" 0.0; \
929 inherit: "default" 0.0; \
933 GENLIST_PART_SPACER("elm.padding.edit.right", \
934 description { state: "default" 0.0; \
939 rel1.relative: 1 0; \
940 min: GENLIST_PADDING_SIZE_RIGHT 0; \
941 max: GENLIST_PADDING_SIZE_RIGHT -1; \
945 #define GENLIST_PART_PADDING_RIGHT \
946 GENLIST_PART_SPACER("elm.padding.right", \
947 description { state: "default" 0.0; \
948 min: GENLIST_PADDING_SIZE_RIGHT 0; \
949 max: GENLIST_PADDING_SIZE_RIGHT -1; \
954 rel1.relative: 1 0; \
956 description { state: "decorate" 0.0; \
957 inherit: "default" 0.0; \
963 #define GENLIST_PART_PADDING_RIGHT_SIZE( SIZE ) \
964 GENLIST_PART_SPACER("elm.padding.right", \
965 description { state: "default" 0.0; \
972 rel1.relative: 1 0; \
974 description { state: "decorate" 0.0; \
975 inherit: "default" 0.0; \
981 #define GENLIST_PART_PADDING_RIGHT_EDIT \
982 GENLIST_PART_SPACER("elm.padding.right", \
983 description { state: "default" 0.0; \
984 min: GENLIST_PADDING_SIZE_RIGHT 0; \
985 max: GENLIST_PADDING_SIZE_RIGHT -1; \
990 rel1.relative: 1 0; \
992 description { state: "editmode" 0.0; \
993 inherit: "default" 0.0; \
994 min: (DIALOGUE_PADDING_SIZE_RIGHT+GENLIST_ICON_BIG_SIZE+GENLIST_PADDING_SIZE_RIGHT) 0; \
995 max: (DIALOGUE_PADDING_SIZE_RIGHT+GENLIST_ICON_BIG_SIZE+GENLIST_PADDING_SIZE_RIGHT) -1; \
997 description { state: "decorate" 0.0; \
998 inherit: "default" 0.0; \
1003 GENLIST_PART_EDITBTN
1005 #define GENLIST_PART_PADDING_RIGHT_SIZE_EDIT( SIZE ) \
1006 GENLIST_PART_SPACER("elm.padding.right", \
1007 description { state: "default" 0.0; \
1014 rel1.relative: 1 0; \
1016 description { state: "editmode" 0.0; \
1017 inherit: "default" 0.0; \
1018 min: (DIALOGUE_PADDING_SIZE_RIGHT+SIZE+GENLIST_ICON_BIG_SIZE) 0; \
1019 max: (DIALOGUE_PADDING_SIZE_RIGHT+SIZE+GENLIST_ICON_BIG_SIZE) -1; \
1021 description { state: "decorate" 0.0; \
1022 inherit: "default" 0.0; \
1027 GENLIST_PART_EDITBTN
1029 #define GENLIST_PART_PADDING_TOP \
1030 GENLIST_PART_SPACER("elm.padding.top", \
1032 state: "default" 0.0; \
1033 min: 0 GENLIST_PADDING_SIZE_TOP; \
1034 max: -1 GENLIST_PADDING_SIZE_TOP; \
1038 rel2.relative: 1.0 0.0; \
1043 #define GENLIST_PART_PADDING_TOP_2LINE \
1044 GENLIST_PART_SPACER("elm.padding.top", \
1046 state: "default" 0.0; \
1047 min: 0 GENLIST_PADDING_SIZE_TOP_2LINE; \
1048 max: -1 GENLIST_PADDING_SIZE_TOP_2LINE; \
1052 rel2.relative: 1.0 0.0; \
1057 #define GENLIST_PART_PADDING_TOP_SIZE( SIZE ) \
1058 GENLIST_PART_SPACER("elm.padding.top", \
1060 state: "default" 0.0; \
1066 rel2.relative: 1.0 0.0; \
1071 #define GENLIST_PART_PADDING_BOTTOM \
1072 GENLIST_PART_SPACER("elm.padding.bottom", \
1073 description { state: "default" 0.0; \
1074 min: 0 GENLIST_PADDING_SIZE_BOTTOM; \
1075 max: -1 GENLIST_PADDING_SIZE_BOTTOM; \
1079 rel1.relative: 0.0 1.0; \
1084 #define GENLIST_PART_PADDING_BOTTOM_2LINE \
1085 GENLIST_PART_SPACER("elm.padding.bottom", \
1086 description { state: "default" 0.0; \
1087 min: 0 GENLIST_PADDING_SIZE_BOTTOM_2LINE; \
1088 max: -1 GENLIST_PADDING_SIZE_BOTTOM_2LINE; \
1092 rel1.relative: 0.0 1.0; \
1097 #define GENLIST_PART_PADDING_BOTTOM_SIZE( SIZE ) \
1098 GENLIST_PART_SPACER("elm.padding.bottom", \
1099 description { state: "default" 0.0; \
1105 rel1.relative: 0.0 1.0; \
1110 #define GENLIST_PART_PADDING_R( NAME, RIGHT ) \
1111 GENLIST_PART_SPACER(NAME, \
1112 description { state: "default" 0.0; \
1114 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1115 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1128 #define GENLIST_PART_PADDING_R_SIZE( NAME, RIGHT, SIZE ) \
1129 GENLIST_PART_SPACER(NAME, \
1130 description { state: "default" 0.0; \
1146 #define GENLIST_PART_PADDING_L( NAME, LEFT ) \
1147 GENLIST_PART_SPACER(NAME, \
1148 description { state: "default" 0.0; \
1150 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1151 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1164 #define GENLIST_PART_PADDING_L_SIZE( NAME, LEFT, SIZE ) \
1165 GENLIST_PART_SPACER(NAME, \
1166 description { state: "default" 0.0; \
1183 #define GENLIST_PART_PADDING_T_SIZE( NAME, TOP, SIZE ) \
1184 GENLIST_PART_SPACER(NAME, \
1185 description { state: "default" 0.0; \
1201 #define GENLIST_PART_PADDING_B_SIZE( NAME, BOTTOM, SIZE ) \
1202 GENLIST_PART_SPACER(NAME, \
1203 description { state: "default" 0.0; \
1219 #define GENLIST_PART_PERSPECTIVE_POINT \
1220 GENLIST_PART_RECT("point", \
1222 state: "default" 0.0; \
1224 rel1 { relative: 0.0 0.0; } \
1225 rel2 { relative: 1.0 0.0; } \
1229 #define GENLIST_DESCRIPTION_ROTATE( param_x, param_y, param_z ) \
1230 description { state: "map_contracted" 0.0; \
1231 inherit: "default" 0.0; \
1233 perspective: "point"; \
1236 perspective_on: 1; \
1246 description { state: "map_expanded" 0.0; \
1247 inherit: "default" 0.0; \
1249 perspective: "point"; \
1252 perspective_on: 1; \
1263 state: "hide" 0.0; \
1264 inherit: "default" 0.0; \
1268 #define GENLIST_PROGRAM_ROTATE( TARGET ) \
1269 program { name: "map_expand_start"; \
1270 signal: "flip_item"; \
1271 action: STATE_SET "map_contracted" 0.0; \
1272 target: "bg_image"; \
1274 after: "map_expanding"; \
1276 program { name: "map_expanding"; \
1277 action: STATE_SET "hide" 0.0; \
1278 transition: LINEAR 0.2; \
1279 target: "bg_image"; \
1281 after: "map_expand_end"; \
1283 program { name: "map_expand_end"; \
1284 action: STATE_SET "default" 0.0; \
1285 target: "bg_image"; \
1288 program { name: "map_contract_start"; \
1289 signal: "elm,state,contract_flip"; \
1290 action: STATE_SET "map_expanded" 0.0; \
1291 target: "bg_image"; \
1293 after: "map_contracting"; \
1295 program { name: "map_contracting"; \
1296 action: STATE_SET "map_contracted" 0.0; \
1297 transition: LINEAR 0.3; \
1298 target: "bg_image"; \
1300 after: "map_contract_end"; \
1302 program { name: "map_contract_end"; \
1303 action: STATE_SET "hide" 0.0; \
1304 target: "bg_image"; \
1308 // FIXME: swallow part cannot be fade out ???
1309 #define GENLIST_DESCRIPTION_FADE_ICON \
1310 description { state: "fadeout" 0.0; \
1311 inherit: "default" 0.0; \
1315 description { state: "fadein" 0.0; \
1316 inherit: "default" 0.0; \
1319 #define GENLIST_DESCRIPTION_FADE \
1320 description { state: "fadeout" 0.0; \
1321 inherit: "default" 0.0; \
1322 color: 255 255 255 10; \
1324 description { state: "fadein" 0.0; \
1325 inherit: "default" 0.0; \
1328 // FIXME: bg_color_change is used temporary
1329 #define GENLIST_PROGRAM_EXPAND_FADE( TARGET ) \
1330 program { name: "bg_color_change"; \
1331 signal: "bg_color_change"; \
1332 action: STATE_SET "2depth" 0.0; \
1333 target: "bg_image_depth_clip"; \
1334 after: "expand_start_fade"; \
1336 program { name: "expand_start_fade"; \
1337 signal: "flip_item"; \
1338 action: STATE_SET "fadeout" 0.0; \
1339 target: "bg_image"; \
1341 after: "expand_end_fade"; \
1343 program { name: "expand_end_fade"; \
1344 action: STATE_SET "default" 0.0; \
1345 transition: DECELERATE 0.3; \
1346 target: "bg_image"; \
1349 program { name: "contract_fade"; \
1350 signal: "elm,state,contract_flip"; \
1351 action: STATE_SET "fadein" 0.0; \
1352 target: "bg_image"; \
1354 after: "contract_end_fade"; \
1356 program { name: "contract_end_fade"; \
1357 action: STATE_SET "fadeout" 0.0; \
1358 transition: ACCELERATE 0.3; \
1359 target: "bg_image"; \
1363 // FIXME: This do need now. I should find why this is used in genlist
1367 signal: "elm,state,show"; \
1368 action: STATE_SET "default" 0.0; \
1373 signal: "elm,state,hide"; \
1374 action: STATE_SET "hide" 0.0; \
1379 #define GENLIST_PROGRAM_EXPAND_ROOT( TARGET ) \
1381 name: "go_expanded"; \
1382 signal: "elm,state,expanded"; \
1384 action: STATE_SET "expand_opened" 0.0; \
1388 name: "go_contracted"; \
1389 signal: "elm,state,contracted"; \
1391 action: STATE_SET "default" 0.0; \
1397 #define GENLIST_PROGRAM_EXPANDABLE( SRC ) \
1400 signal: "mouse,up,1"; \
1402 action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; \
1405 // 2.2.7 Genlist_Edit mode (Rename)
1406 // FIXME: padding is not needed when swallow content is NULL.
1407 // But how can edje kwno existence of swallow content?
1408 #define GENLIST_PART_FLIP \
1409 part { name: "elm.flip.event_block";\
1413 description { state: "default" 0.0;\
1416 description { state: "flip_enabled" 0.0; \
1417 inherit: "default" 0.0; \
1419 color: GENLIST_LIST_BG_COLOR;\
1422 part { name: "elm.flip.padding.left"; \
1425 description { state: "default" 0.0; \
1441 part { name: "elm.flip.padding.right"; \
1444 description { state: "default" 0.0; \
1460 part { name: "elm.flip.content"; \
1463 GENLIST_DESCRIPTION_LR("elm.flip.padding.left", "elm.flip.padding.icon.left", \
1464 aspect: 1 1; visible: 0; ) \
1465 description { state: "flip_enabled" 0.0; \
1466 inherit: "default" 0.0; \
1470 GENLIST_PART_PADDING_R("elm.flip.padding.icon.left", "elm.flip.icon") \
1471 GENLIST_PART_ICON( "elm.flip.icon", \
1472 GENLIST_DESCRIPTION_R("elm.flip.padding.right", \
1477 description { state: "flip_enabled" 0.0; \
1478 inherit: "default" 0.0; \
1483 //****************************************************************************//
1484 // ******************************* Programs ********************************//
1485 //**************************************************************************//
1486 // signal: elm,state,%s,active
1487 // a "check" item named %s went active
1488 // signal: elm,state,%s,passive
1489 // a "check" item named %s went passive
1490 // default is passive
1491 #define GENLIST_PROGRAM_DISABLED( TARGET ) \
1492 program { name: "enabled"; \
1493 signal: "elm,state,enabled"; \
1495 action: STATE_SET "default" 0.0; \
1496 target: "bg_image"; \
1499 program { name: "disabled"; \
1500 signal: "elm,state,disabled"; \
1502 action: STATE_SET "disabled" 0.0; \
1503 target: "bg_image"; \
1507 #define GENLIST_PROGRAM_DISABLED_BOTTOMLINE( TARGET ) \
1508 program { name: "enabled"; \
1509 signal: "elm,state,enabled"; \
1511 action: STATE_SET "default" 0.0; \
1512 target: "bg_image"; \
1513 target: "bottom_line"; \
1514 target: "bottom_line2"; \
1517 program { name: "disabled"; \
1518 signal: "elm,state,disabled"; \
1520 action: STATE_SET "disabled" 0.0; \
1521 target: "bg_image"; \
1522 target: "bottom_line"; \
1523 target: "bottom_line2"; \
1527 #define GENLIST_PROGRAM_SELECT( TARGET ) \
1528 program { name: "selected"; \
1529 signal: "elm,state,selected"; \
1531 action: STATE_SET "selected" 0.0; \
1532 target: "bg_image"; \
1534 after: "play_button_press"; \
1536 program { name: "unselected"; \
1537 signal: "elm,state,unselected"; \
1539 action: STATE_SET "default" 0.0; \
1540 target: "bg_image"; \
1542 transition: LINEAR 0.1; \
1544 program { name: "play_button_press"; \
1545 action: PLAY_SAMPLE "button-pressed" 1.0; \
1548 #define GENLIST_PROGRAM_SELECT_BOTTOMLINE( TARGET ) \
1549 program { name: "selected"; \
1550 signal: "elm,state,selected"; \
1552 action: STATE_SET "selected" 0.0; \
1553 target: "bg_image"; \
1554 target: "bottom_line"; \
1555 target: "bottom_line2"; \
1557 after: "play_button_press"; \
1559 program { name: "unselected"; \
1560 signal: "elm,state,unselected"; \
1562 action: STATE_SET "default" 0.0; \
1563 target: "bg_image"; \
1564 target: "bottom_line"; \
1565 target: "bottom_line2"; \
1567 transition: LINEAR 0.1; \
1569 program { name: "play_button_press"; \
1570 action: PLAY_SAMPLE "button-pressed" 1.0; \
1573 #define GENLIST_PROGRAM_DISABLED_DIALOGUE( TARGET ) \
1574 program { name: "enabled"; \
1575 signal: "elm,state,enabled"; \
1580 get_state(PART:"bg_image", st, 30, vl); \
1581 if (!strcmp(st, "top_disabled")) \
1582 set_state(PART:"bg_image", "top", 0.0); \
1583 else if (!strcmp(st, "center_disabled")) \
1584 set_state(PART:"bg_image", "center", 0.0); \
1585 else if (!strcmp(st, "bottom_disabled")) \
1586 set_state(PART:"bg_image", "bottom", 0.0); \
1588 set_state(PART:"bg_image", "default", 0.0); \
1590 after: "target_enabled"; \
1592 program { name: "target_enabled"; \
1593 action: STATE_SET "default" 0.0; \
1596 program { name: "disabled"; \
1597 signal: "elm,state,disabled"; \
1602 get_state(PART:"bg_image", st, 30, vl); \
1603 if (!strcmp(st, "top")) \
1604 set_state(PART:"bg_image", "top_disabled", 0.0); \
1605 else if (!strcmp(st, "center")) \
1606 set_state(PART:"bg_image", "center_disabled", 0.0); \
1607 else if (!strcmp(st, "bottom")) \
1608 set_state(PART:"bg_image", "bottom_disabled", 0.0); \
1610 set_state(PART:"bg_image", "disabled", 0.0); \
1612 after: "target_disabled"; \
1614 program { name: "target_disabled"; \
1615 action: STATE_SET "disabled" 0.0; \
1619 #define GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
1620 program { name: "selected"; \
1621 signal: "elm,state,selected"; \
1626 get_state(PART:"bg_image", st, 30, vl); \
1627 if (!strcmp(st, "top")) \
1628 set_state(PART:"bg_image", "top_selected", 0.0); \
1629 else if (!strcmp(st, "center")) \
1630 set_state(PART:"bg_image", "center_selected", 0.0); \
1631 else if (!strcmp(st, "bottom")) \
1632 set_state(PART:"bg_image", "bottom_selected", 0.0); \
1634 set_state(PART:"bg_image", "selected", 0.0); \
1636 after: "target_selected"; \
1637 after: "play_button_press"; \
1639 program { name: "unselected"; \
1640 signal: "elm,state,unselected"; \
1645 get_state(PART:"bg_image", st, 30, vl); \
1646 if (!strcmp(st, "top_selected")) \
1647 set_state(PART:"bg_image", "top", 0.0); \
1648 else if (!strcmp(st, "center_selected")) \
1649 set_state(PART:"bg_image", "center", 0.0); \
1650 else if (!strcmp(st, "bottom_selected")) \
1651 set_state(PART:"bg_image", "bottom", 0.0); \
1653 set_state(PART:"bg_image", "default", 0.0); \
1655 transition: LINEAR 0.1; \
1656 after: "target_unselected"; \
1658 program { name: "target_selected"; \
1659 action: STATE_SET "selected" 0.0; \
1662 program { name: "target_unselected"; \
1663 action: STATE_SET "default" 0.0; \
1666 program { name: "bg_top"; \
1667 signal: "elm,state,top"; \
1669 action: STATE_SET "top" 0.0; \
1670 target: "bg_image"; \
1672 program { name: "bg_center"; \
1673 signal: "elm,state,center"; \
1675 action: STATE_SET "center" 0.0; \
1676 target: "bg_image"; \
1678 program { name: "bg_bottom"; \
1679 signal: "elm,state,bottom"; \
1681 action: STATE_SET "bottom" 0.0; \
1682 target: "bg_image"; \
1684 program { name: "bg_default"; \
1685 signal: "elm,state,default"; \
1687 action: STATE_SET "default" 0.0; \
1688 target: "bg_image"; \
1690 program { name: "play_button_press"; \
1691 action: PLAY_SAMPLE "button-pressed" 1.0; \
1694 #define GENLIST_PROGRAM_SELECT_DIALOGUE_ARROW( TARGET ) \
1695 program { name: "selected"; \
1696 signal: "elm,state,selected"; \
1701 get_state(PART:"bg_image", st, 30, vl); \
1702 if (!strcmp(st, "top")) \
1703 set_state(PART:"bg_image", "top_selected", 0.0); \
1704 else if (!strcmp(st, "center")) \
1705 set_state(PART:"bg_image", "center_selected", 0.0); \
1706 else if (!strcmp(st, "bottom")) \
1707 set_state(PART:"bg_image", "bottom_selected", 0.0); \
1709 set_state(PART:"bg_image", "selected", 0.0); \
1710 get_state(PART:"arrow", st, 30, vl); \
1711 if (!strcmp(st, "default")) { \
1712 set_state(PART:"arrow", "default_press", 0.0); \
1713 set_state(PART:"arrow_clip", "default_press", 0.0); \
1715 else if (!strcmp(st, "expand_opened")) { \
1716 set_state(PART:"arrow", "expand_opened_press", 0.0); \
1717 set_state(PART:"arrow_clip", "expand_opened_press", 0.0); \
1720 after: "target_selected"; \
1721 after: "play_button_press"; \
1723 program { name: "unselected"; \
1724 signal: "elm,state,unselected"; \
1729 get_state(PART:"bg_image", st, 30, vl); \
1730 if (!strcmp(st, "top_selected")) \
1731 set_state(PART:"bg_image", "top", 0.0); \
1732 else if (!strcmp(st, "center_selected")) \
1733 set_state(PART:"bg_image", "center", 0.0); \
1734 else if (!strcmp(st, "bottom_selected")) \
1735 set_state(PART:"bg_image", "bottom", 0.0); \
1737 set_state(PART:"bg_image", "default", 0.0); \
1738 get_state(PART:"arrow", st, 30, vl); \
1739 if (!strcmp(st, "default_press")) { \
1740 set_state(PART:"arrow", "default", 0.0); \
1741 set_state(PART:"arrow_clip", "default", 0.0); \
1743 else if (!strcmp(st, "expand_opened_press")) { \
1744 set_state(PART:"arrow", "expand_opened", 0.0); \
1745 set_state(PART:"arrow_clip", "expand_opened", 0.0); \
1748 transition: LINEAR 0.1; \
1749 after: "target_unselected"; \
1751 program { name: "target_selected"; \
1752 action: STATE_SET "selected" 0.0; \
1755 program { name: "target_unselected"; \
1756 action: STATE_SET "default" 0.0; \
1759 program { name: "bg_top"; \
1760 signal: "elm,state,top"; \
1762 action: STATE_SET "top" 0.0; \
1763 target: "bg_image"; \
1765 program { name: "bg_center"; \
1766 signal: "elm,state,center"; \
1768 action: STATE_SET "center" 0.0; \
1769 target: "bg_image"; \
1771 program { name: "bg_bottom"; \
1772 signal: "elm,state,bottom"; \
1774 action: STATE_SET "bottom" 0.0; \
1775 target: "bg_image"; \
1777 program { name: "bg_default"; \
1778 signal: "elm,state,default"; \
1780 action: STATE_SET "default" 0.0; \
1781 target: "bg_image"; \
1783 program { name: "play_button_press"; \
1784 action: PLAY_SAMPLE "button-pressed" 1.0; \
1787 #define GENLIST_PROGRAM_FLIP \
1788 program { name: "flip_enabled"; \
1789 signal: "elm,state,flip,enabled"; \
1791 action: STATE_SET "flip_enabled" 0.0; \
1792 target: "elm.flip.event_block"; \
1793 after: "flip_enabled_next"; \
1795 program { name: "flip_enabled_next"; \
1796 action: STATE_SET "flip_enabled" 0.0; \
1797 transition: DECELERATE 0.5; \
1798 target: "elm.flip.content"; \
1799 target: "elm.flip.icon"; \
1801 program { name: "flip_disabled"; \
1802 signal: "elm,state,flip,disabled"; \
1804 action: STATE_SET "default" 0.0; \
1805 transition: DECELERATE 0.5; \
1806 target: "elm.flip.event_block"; \
1807 target: "elm.flip.content"; \
1808 target: "elm.flip.icon"; \
1811 #define GENLIST_PROGRAM_FLIP_TARGET( TARGET ) \
1812 program { name: "flip_enabled"; \
1813 signal: "elm,state,flip,enabled"; \
1815 action: STATE_SET "flip_enabled" 0.0; \
1816 transition: DECELERATE 0.5; \
1819 program { name: "flip_disabled"; \
1820 signal: "elm,state,flip,disabled"; \
1822 action: STATE_SET "default" 0.0; \
1823 transition: DECELERATE 0.5; \
1827 #define GENLIST_PROGRAM_EDITMODE \
1828 program { name: "edit_enabled"; \
1829 signal: "elm,state,edit,enabled"; \
1831 action: STATE_SET "editmode" 0.0; \
1832 target: "elm.padding.right"; \
1833 target: "elm.icon.edit"; \
1834 target: "bg_image_right"; \
1836 program { name: "edit_disabled"; \
1837 signal: "elm,state,edit,disabled"; \
1839 action: STATE_SET "editmode" 0.0; \
1840 target: "elm.padding.right"; \
1841 target: "elm.icon.edit"; \
1842 target: "bg_image_right"; \
1845 #define GENLIST_PROGRAMS_INDEX( TARGET ) \
1847 GENLIST_PROGRAM_DISABLED( TARGET ) \
1850 #define GENLIST_PROGRAMS_NORMAL( TARGET ) \
1852 GENLIST_PROGRAM_DISABLED_BOTTOMLINE( TARGET ) \
1853 GENLIST_PROGRAM_SELECT_BOTTOMLINE( TARGET ) \
1854 GENLIST_PROGRAM_EXPAND_FADE( target: "bottom_line"; target: "bottom_line2"; TARGET ) \
1855 GENLIST_PROGRAMS_DECORATE \
1856 GENLIST_PROGRAM_FLIP \
1859 // FIXME: inheritance !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
1860 // if GENLIST_PROGRAM_EXPAND is here, expanda effect is something wrong.
1861 // because after can be duplicated when program inheriting.
1862 #define GENLIST_PROGRAMS_DIALOGUE( TARGET ) \
1864 GENLIST_PROGRAM_DISABLED_DIALOGUE( TARGET ) \
1865 GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
1866 GENLIST_PROGRAM_FLIP \
1867 GENLIST_PROGRAM_EDITMODE \
1870 #define GENLIST_PROGRAMS_MULTILINE( TARGET ) \
1872 GENLIST_PROGRAM_DISABLED_DIALOGUE( TARGET ) \
1873 GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
1874 GENLIST_PROGRAM_FLIP \
1877 #define GENLIST_PROGRAMS_READ_TEXT
1878 #define GENLIST_PROGRAMS_READ_TEXT1( TARGET ) \
1880 public readed = 0; \
1883 GENLIST_PROGRAM_DISABLED_BOTTOMLINE( TARGET ) \
1884 GENLIST_PROGRAM_FLIP \
1885 program { name: "selected"; \
1886 signal: "elm,state,selected"; \
1888 action: STATE_SET "selected" 0.0; \
1889 target: "bg_image"; \
1890 target: "bottom_line"; \
1891 target: "bottom_line2"; \
1893 after: "play_button_press"; \
1895 program { name: "play_button_press"; \
1896 action: PLAY_SAMPLE "button-pressed" 1.0; \
1898 program { name: "go_passive_target"; \
1899 signal: "elm,state,unselected"; \
1901 action: STATE_SET "default" 0.0; \
1903 after: "go_passive_text1"; \
1905 program { name: "go_passive_text1"; \
1906 transition: LINEAR 0.1; \
1908 set_state(PART:"bg_image", "default", 0.0); \
1909 set_state(PART:"bottom_line", "default", 0.0); \
1910 set_state(PART:"bottom_line2", "default", 0.0); \
1911 if (get_int(readed) == 1) \
1912 set_state(PART:"elm.text.1", "read", 0.0); \
1914 set_state(PART:"elm.text.1", "default", 0.0); \
1917 program { name: "go_read"; \
1918 signal: "elm,state,read"; \
1921 set_int(readed, 1); \
1922 set_state(PART:"elm.text.1", "read", 0.0); \
1925 program { name: "go_unread"; \
1926 signal: "elm,state,unread"; \
1929 set_int(readed, 0); \
1930 set_state(PART:"elm.text.1", "default", 0.0); \
1935 #define GENLIST_PROGRAMS_DECORATE \
1936 program { name: "decorate_enabled_effect"; \
1937 signal: "elm,state,decorate,enabled,effect";\
1939 transition: DECELERATE 0.7;\
1940 action: STATE_SET "decorate" 0.0;\
1941 target: "elm.padding.left"; \
1942 target: "elm.padding.right"; \
1944 program { name: "decorate_disabled_effect";\
1945 signal: "elm,state,decorate,disabled,effect";\
1947 transition: ACCELERATE 0.7;\
1948 action: STATE_SET "default" 0.0;\
1949 target: "elm.padding.left"; \
1950 target: "elm.padding.right"; \
1952 program { name: "decorate_enabled";\
1953 signal: "elm,state,decorate,enabled";\
1955 action: STATE_SET "decorate" 0.0;\
1956 target: "elm.padding.left"; \
1957 target: "elm.padding.right"; \
1959 program { name: "decorate_disabled";\
1960 signal: "elm,state,decorate,disabled";\
1962 action: STATE_SET "default" 0.0;\
1963 target: "elm.padding.left"; \
1964 target: "elm.padding.right"; \
1967 //****************************************************************************//
1968 // ******************************* Icon Part ******************************//
1969 //***************************************************************************//
1970 #define GENLIST_PART_ICON(NAME, DESCRIPION) \
1971 part { name: NAME; \
1975 GENLIST_DESCRIPTION_FADE_ICON \
1978 #define GENLIST_PARAM_ICON_BIG \
1979 min: GENLIST_ICON_BIG_SIZE GENLIST_ICON_BIG_SIZE; \
1980 max: GENLIST_ICON_BIG_SIZE GENLIST_ICON_BIG_SIZE;
1982 #define GENLIST_PARAM_ICON_SMALL \
1983 min: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE; \
1984 max: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE;
1986 #define GENLIST_PARAM_ICON_BTN_01 \
1987 min: 0 GENLIST_BTN_01_HEIGHT; \
1988 max: -1 GENLIST_BTN_01_HEIGHT;
1990 #define GENLIST_PARAM_ICON_BTN_02 \
1991 min: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE; \
1992 max: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE;
1994 #define GENLIST_PARAM_ICON_ONOFF_WIDTH \
1995 min: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT; \
1996 max: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT;
1998 #define GENLIST_PARAM_ICON_THUMBNAIL1\
1999 min: GENLIST_ICON_THUMBNAIL1_SIZE GENLIST_ICON_THUMBNAIL1_SIZE; \
2000 max: GENLIST_ICON_THUMBNAIL1_SIZE GENLIST_ICON_THUMBNAIL1_SIZE;
2002 #define GENLIST_PARAM_ICON_CHECK_RADIO \
2003 min: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE; \
2004 max: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE;
2006 #define GENLIST_PARAM_ICON_STAR \
2007 min: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2008 max: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2010 #define GENLIST_PART_ICON_BIG_R(NAME, RIGHT) \
2011 GENLIST_PART_ICON(NAME, \
2012 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2014 GENLIST_PARAM_ICON_BIG \
2018 #define GENLIST_PART_ICON_BIG_L(NAME, LEFT) \
2019 GENLIST_PART_ICON(NAME, \
2020 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2022 GENLIST_PARAM_ICON_BIG \
2026 #define GENLIST_PART_ICON_SMALL_L(NAME, LEFT) \
2027 GENLIST_PART_ICON(NAME, \
2028 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2029 GENLIST_PARAM_ICON_SMALL \
2034 #define GENLIST_PART_ICON_SMALL_LB(NAME, LEFT, BOTTOM) \
2035 GENLIST_PART_ICON(NAME, \
2036 GENLIST_DESCRIPTION_LB(LEFT, BOTTOM, \
2038 GENLIST_PARAM_ICON_SMALL \
2042 #define GENLIST_PART_ICON_SMALL_LTB(NAME, LEFT, TOP, BOTTOM) \
2043 GENLIST_PART_ICON(NAME, \
2044 GENLIST_DESCRIPTION_LTB(LEFT, TOP, BOTTOM, \
2045 GENLIST_PARAM_ICON_SMALL \
2049 #define GENLIST_PART_ICON_SMALL_RTB(NAME, RIGHT, TOP, BOTTOM) \
2050 GENLIST_PART_ICON(NAME, \
2051 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2052 GENLIST_PARAM_ICON_SMALL \
2057 #define GENLIST_PART_ICON_BTN_01_RTB(NAME, RIGHT, TOP, BOTTOM) \
2058 GENLIST_PART_ICON(NAME, \
2059 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM,\
2060 GENLIST_PARAM_ICON_BTN_01 \
2065 #define GENLIST_PART_ICON_BTN_02_RTB(NAME, RIGHT, TOP, BOTTOM) \
2066 GENLIST_PART_ICON(NAME, \
2067 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM,\
2068 GENLIST_PARAM_ICON_BTN_02 \
2073 #define GENLIST_PART_ICON_BTN_ONOFF_R(NAME, RIGHT) \
2074 GENLIST_PART_ICON(NAME, \
2075 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2076 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2081 #define GENLIST_PART_ICON_BTN_ONOFF_L(NAME, LEFT) \
2082 GENLIST_PART_ICON(NAME, \
2083 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2084 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2088 #define GENLIST_PART_ICON_THUMBNAIL1_R(NAME, RIGHT) \
2089 GENLIST_PART_ICON(NAME, \
2090 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2091 GENLIST_PARAM_ICON_THUMBNAIL1 \
2096 #define GENLIST_PART_ICON_CHECK_RADIO_L(NAME, LEFT) \
2097 GENLIST_PART_ICON(NAME, \
2098 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2099 GENLIST_PARAM_ICON_CHECK_RADIO \
2103 #define GENLIST_PART_ICON_STAR_RTB(NAME, RIGHT, TOP, BOTTOM) \
2104 GENLIST_PART_ICON(NAME, \
2105 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2106 GENLIST_PARAM_ICON_STAR \
2111 /*****************************************************************************/
2112 /******************************* Genlist IMAGE ********************************/
2113 /*****************************************************************************/
2114 #define GENLIST_PART_IMAGE(NAME, DESCRIPION) \
2115 part { name: NAME; \
2119 GENLIST_DESCRIPTION_FADE \
2122 #define GENLIST_PARAM_PASSWORD_IMAGE \
2123 min: GENLIST_ICON_PASSWORD_SIZE GENLIST_ICON_PASSWORD_SIZE; \
2124 max: GENLIST_ICON_PASSWORD_SIZE GENLIST_ICON_PASSWORD_SIZE; \
2125 image.normal: "00_search_edit_field_bg_02.png"; \
2126 image.border: 4 4 4 4; \
2127 image.border_scale: 1;
2129 /*****************************************************************************/
2130 /******************************* Genlist Bubble ********************************/
2131 /*****************************************************************************/
2132 #define GENLIST_IMAGES_EXPANDABLE_BTN \
2134 image: "00_button_expand_closed.png" COMP; \
2135 image: "00_button_expand_opened.png" COMP; \
2138 #define GENLIST_PART_EXPANDABLE_ARROW \
2139 GENLIST_PART_ICON("touch_arrow", \
2140 ignore_flags: ON_HOLD; \
2141 GENLIST_DESCRIPTION_ENVELOP("arrow", ) \
2142 GENLIST_DESCRIPTION_FADE \
2144 GENLIST_PART_RECT("arrow_clip", \
2145 GENLIST_DESCRIPTION_ENVELOP("arrow", \
2146 color: 101 101 101 255; \
2148 description { state: "disabled" 0.0; \
2149 color: 101 101 101 76; \
2151 description { state: "expand_opened_press" 0.0; \
2152 color: 248 246 230 255; \
2154 description { state: "default_press" 0.0; \
2155 color: 248 246 230 255; \
2158 GENLIST_PART_IMAGE("arrow", \
2159 clip_to: "arrow_clip"; \
2160 ignore_flags: ON_HOLD; \
2162 GENLIST_DESCRIPTION_R("elm.padding.right", \
2166 image.normal: "00_button_expand_closed.png"; \
2168 description { state: "default_press" 0.0; \
2169 inherit: "default" 0.0; \
2170 image.normal: "00_button_expand_closed_press.png"; \
2172 description { state: "expand_opened" 0.0; \
2173 inherit: "default" 0.0; \
2174 image.normal: "00_button_expand_opened.png"; \
2176 description { state: "expand_opened_press" 0.0; \
2177 inherit: "expand_opened" 0.0; \
2178 image.normal: "00_button_expand_opened_press.png"; \
2180 GENLIST_DESCRIPTION_FADE \
2182 /*****************************************************************************/
2183 /******************************* Genlist RECT ********************************/
2184 /*****************************************************************************/
2185 #define GENLIST_PART_SPACER(NAME, DESCRIPION) \
2186 part { name: NAME; \
2193 #define GENLIST_PART_RECT(NAME, DESCRIPION) \
2194 part { name: NAME; \
2198 GENLIST_DESCRIPTION_FADE \
2201 #define GENLIST_PART_INDEX_LINE(LEFT, RIGHT, TOP, BOTTOM) \
2202 GENLIST_PART_RECT("index_line", \
2203 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2204 color: GENLIST_GROUPINDEX_LINE_COLOR; \
2207 description { state: "selected" 0.0; \
2208 inherit: "default" 0.0; \
2209 color: GENLIST_GROUPINDEX_LINE_FOCUS_COLOR; \
2213 /*****************************************************************************/
2214 /******************************* Genlist TEXT ********************************/
2215 /*****************************************************************************/
2216 #define GENLIST_PART_TEXT(NAME, DESCRIPION) \
2217 part { name: NAME; \
2222 GENLIST_DESCRIPTION_FADE \
2225 #define GENLIST_PART_TEXTBLOCK(NAME, DESCRIPION) \
2226 part { name: NAME; \
2231 GENLIST_DESCRIPTION_FADE \
2234 /*************************** parameters **********************************/
2235 #define GENLIST_PARAM_TEXT_LIMIT_RB \
2236 rel1.to_x: "base"; /* This limits text growing. */\
2237 rel1.relative: 0.35 0; /* This limits text growing. */\
2238 text.max: 1 0; /* This limits text growing. */
2240 #define GENLIST_PARAM_TEXT_LIMIT_RT \
2241 rel1.to_x: "base"; /* This limits text growing. */\
2242 rel1.relative: 0.35 1; /* This limits text growing. */\
2243 text.max: 1 0; /* This limits text growing. */
2245 #define GENLIST_PARAM_TEXT_LIMIT_RTB \
2246 rel1.to_x: "base"; /* This limits text growing. */\
2247 rel1.relative: 0.35 1; /* This limits text growing. */\
2248 text.max: 1 0; /* This limits text growing. */
2251 #define GENLIST_PARAM_INDEX_LIST \
2252 color: GENLIST_GROUPINDEX_LIST_COLOR; \
2256 font: "Tizen:style=Bold"; \
2257 size: GENLIST_GROUPINDEX_LIST_SIZE; \
2258 text_class: "list_item"; \
2262 #define GENLIST_PARAM_DIALOGUE_GROUP_TITLE \
2263 color: GENLIST_DIALOGUE_GROUP_TITLE_COLOR; \
2267 font: "Tizen:style=Bold"; \
2268 size: GENLIST_DIALOGUE_GROUP_TITLE_SIZE; \
2269 text_class: "list_item"; \
2273 #define GENLIST_PARAM_PASSWORD_TITLE \
2274 color: DIALOGUE_PASSWORD_TITLE_COLOR; \
2276 font: "Tizen:style=Bold"; \
2277 size: DIALOGUE_PASSWORD_TITLE_SIZE; \
2280 text_class: "list_item"; \
2284 #define GENLIST_PARAM_LISTITEM \
2285 color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
2289 font: "Tizen:style=Regular"; \
2290 size: GENLIST_LIST_MAIN_TEXT_SIZE; \
2291 text_class: "list_item"; \
2294 #define GENLIST_PARAM_LISTITEM_TB \
2297 style: "genlist_style_list_main_text_unread"; \
2300 #define GENLIST_PARAM_LISTITEM_TB_WRAP \
2303 style: "genlist_style_list_main_text_unread_wrap"; \
2307 #define GENLIST_PARAM_SUBITEM_DEFAULT \
2308 color: GENLIST_LIST_SUB_TEXT_DEFAULT_COLOR; \
2312 font: "Tizen:style=Medium"; \
2313 size: GENLIST_LIST_SUB_TEXT_SIZE; \
2314 text_class: "tizen"; \
2317 #define GENLIST_PARAM_SUBITEM_SETTINGS \
2318 color: GENLIST_LIST_SUB_TEXT_SETTINGS_COLOR; \
2322 font: "Tizen:style=Medium"; \
2323 size: GENLIST_LIST_SUB_TEXT_SIZE; \
2324 text_class: "tizen"; \
2327 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2330 style: "genlist_style_list_sub_text_default"; \
2333 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB_WRAP \
2336 style: "genlist_style_list_sub_text_default_wrap"; \
2339 #define GENLIST_PARAM_SUBITEM_SETTINGS_TB \
2342 style: "genlist_style_list_sub_text_settings"; \
2345 #define GENLIST_PARAM_APPS_NAME\
2346 color: GENLIST_APPS_NAME_COLOR; \
2350 font: "Tizen:style=Bold"; \
2351 size: GENLIST_APPS_NAME_SIZE; \
2352 text_class: "list_item"; \
2355 #define GENLIST_PARAM_APPS_INC\
2356 color: GENLIST_APPS_INC_COLOR; \
2360 font: "Tizen:style=Bold"; \
2361 size: GENLIST_APPS_INC_SIZE; \
2362 text_class: "list_item"; \
2365 #define GENLIST_PARAM_APPS_RATING\
2366 color: GENLIST_APPS_RATING_COLOR; \
2370 font: "Tizen:style=Bold"; \
2371 size: GENLIST_APPS_RATING_SIZE; \
2372 text_class: "list_item"; \
2375 #define GENLIST_PARAM_APPS_PRICE\
2376 color: GENLIST_APPS_PRICE_ORIGINAL_COLOR; \
2380 font: "Tizen:style=Bold"; \
2381 size: GENLIST_APPS_PRICE_SIZE; \
2382 text_class: "list_item"; \
2385 #define GENLIST_PARAM_APPS_PRICE_SALE\
2386 color: GENLIST_APPS_PRICE_SALE_COLOR; \
2390 font: "Tizen:style=Bold"; \
2391 size: GENLIST_APPS_PRICE_SIZE; \
2392 text_class: "list_item"; \
2395 #define GENLIST_PARAM_CONTENTS_TEXT \
2396 color: GENLIST_CONTENTS_TEXT_COLOR; \
2400 font: "Tizen:style=Regular"; \
2401 size: GENLIST_CONTENTS_TEXT_SIZE; \
2402 text_class: "tizen"; \
2405 /*************************** Descriptions **********************************/
2407 #define GENLIST_DESCRIPTION_INDEX_LIST \
2408 description { state: "selected" 0.0; \
2409 inherit: "default" 0.0; \
2410 color: GENLIST_GROUPINDEX_LIST_FOCUS_COLOR; \
2414 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2415 description { state: "disabled" 0.0; \
2416 inherit: "default" 0.0; \
2417 color: GENLIST_LIST_MAIN_TEXT_UNREAD_DIM_COLOR; \
2419 description { state: "read" 0.0; \
2420 inherit: "default" 0.0; \
2421 color: GENLIST_LIST_MAIN_TEXT_READ_COLOR; \
2423 description { state: "read,disabled" 0.0; \
2424 inherit: "default" 0.0; \
2425 color: GENLIST_LIST_MAIN_TEXT_READ_DIM_COLOR; \
2427 description { state: "selected" 0.0; \
2428 inherit: "default" 0.0; \
2429 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2432 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2433 description { state: "disabled" 0.0; \
2434 inherit: "default" 0.0; \
2435 text.style: "genlist_style_list_main_text_unread_dim"; \
2437 description { state: "read" 0.0; \
2438 inherit: "default" 0.0; \
2439 text.style: "genlist_style_list_main_text_read"; \
2441 description { state: "read,disabled" 0.0; \
2442 inherit: "default" 0.0; \
2443 text.style: "genlist_style_list_main_text_read_dim"; \
2445 description { state: "selected" 0.0; \
2446 inherit: "default" 0.0; \
2447 text.style: "genlist_style_list_main_text_focus"; \
2451 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2452 description { state: "disabled" 0.0; \
2453 inherit: "default" 0.0; \
2454 color: GENLIST_LIST_SUB_TEXT_DEFAULT_DIM_COLOR; \
2456 description { state: "selected" 0.0; \
2457 inherit: "default" 0.0; \
2458 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2461 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2462 description { state: "disabled" 0.0; \
2463 inherit: "default" 0.0; \
2464 text.style: "genlist_style_list_sub_text_default_dim"; \
2466 description { state: "selected" 0.0; \
2467 inherit: "default" 0.0; \
2468 text.style: "genlist_style_list_sub_text_focus"; \
2471 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB_WRAP \
2472 description { state: "disabled" 0.0; \
2473 inherit: "default" 0.0; \
2474 text.style: "genlist_style_list_sub_text_default_dim_wrap"; \
2476 description { state: "selected" 0.0; \
2477 inherit: "default" 0.0; \
2478 text.style: "genlist_style_list_sub_text_focus_wrap"; \
2481 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
2482 description { state: "disabled" 0.0; \
2483 inherit: "default" 0.0; \
2484 color: GENLIST_LIST_SUB_TEXT_SETTINGS_DIM_COLOR; \
2486 description { state: "selected" 0.0; \
2487 inherit: "default" 0.0; \
2488 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2491 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
2492 description { state: "disabled" 0.0; \
2493 inherit: "default" 0.0; \
2494 text.style: "genlist_style_list_sub_text_settings_dim"; \
2496 description { state: "selected" 0.0; \
2497 inherit: "default" 0.0; \
2498 text.style: "genlist_style_list_sub_text_focus"; \
2501 // list main text multiline
2502 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB_WRAP \
2503 description { state: "disabled" 0.0; \
2504 inherit: "default" 0.0; \
2505 text.style: "genlist_style_list_main_text_unread_dim_wrap"; \
2507 description { state: "selected" 0.0; \
2508 inherit: "default" 0.0; \
2509 text.style: "genlist_style_list_main_text_focus_wrap"; \
2512 /*************************** Parts **********************************/
2513 #define GENLIST_PART_DIALOGUE_GROUP_HELP_TEXT(NAME, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2514 GENLIST_PART_TEXTBLOCK(NAME, \
2515 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2518 style: "genlist_style_dialogue_group_help_text"; \
2523 #define GENLIST_PART_LISTITEM(NAME, DESCRIPTION) \
2524 GENLIST_PART_TEXT(NAME, \
2526 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2529 #define GENLIST_PART_LISTITEM_TB(NAME, DESCRIPTION) \
2530 GENLIST_PART_TEXTBLOCK(NAME, \
2532 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2535 #define GENLIST_PART_LISTITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2536 GENLIST_PART_TEXT(NAME, \
2537 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2539 GENLIST_PARAM_LISTITEM \
2542 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2545 #define GENLIST_PART_LISTITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2546 GENLIST_PART_TEXTBLOCK(NAME, \
2547 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2549 GENLIST_PARAM_LISTITEM_TB \
2553 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2556 #define GENLIST_PART_LISTITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2557 GENLIST_PART_TEXT(NAME, \
2558 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2560 GENLIST_PARAM_LISTITEM \
2563 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2566 #define GENLIST_PART_LISTITEM_LRT_TB(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
2567 GENLIST_PART_TEXTBLOCK(NAME, \
2568 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
2570 GENLIST_PARAM_LISTITEM_TB \
2574 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2577 #define GENLIST_PART_LISTITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2578 GENLIST_PART_TEXTBLOCK(NAME, \
2579 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2581 GENLIST_PARAM_LISTITEM_TB \
2585 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2588 #define GENLIST_PART_SUBITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2589 GENLIST_PART_TEXT(NAME, \
2590 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2591 GENLIST_PARAM_SUBITEM_DEFAULT \
2594 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2597 #define GENLIST_PART_SUBITEM(NAME, DESCRIPTION) \
2598 GENLIST_PART_TEXT(NAME, \
2600 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2603 #define GENLIST_PART_SUBITEM_DEFAULT_TB(NAME, DESCRIPTION) \
2604 GENLIST_PART_TEXTBLOCK(NAME, \
2606 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2609 #define GENLIST_PART_SUBITEM_R(NAME, HEIGHT, RIGHT) \
2610 GENLIST_PART_TEXT(NAME, \
2611 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2614 GENLIST_PARAM_TEXT_LIMIT_RB \
2615 GENLIST_PARAM_SUBITEM_DEFAULT \
2617 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2620 #define GENLIST_PART_SUBITEM_RB(NAME, HEIGHT, RIGHT, BOTTOM) \
2621 GENLIST_PART_TEXT(NAME, \
2622 GENLIST_DESCRIPTION_RB(RIGHT, BOTTOM, \
2625 GENLIST_PARAM_TEXT_LIMIT_RB \
2626 GENLIST_PARAM_SUBITEM_DEFAULT \
2628 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2631 #define GENLIST_PART_SUBITEM_RB_TB(NAME, HEIGHT, RIGHT, BOTTOM) \
2632 GENLIST_PART_TEXTBLOCK(NAME, \
2633 GENLIST_DESCRIPTION_RB(RIGHT, BOTTOM, \
2635 GENLIST_PARAM_TEXT_LIMIT_RB \
2637 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2639 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2642 #define GENLIST_PART_SUBITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM) \
2643 GENLIST_PART_TEXTBLOCK(NAME, \
2644 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2645 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2647 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2650 #define GENLIST_PART_SUBITEM_R_FIXED(NAME, WIDTH, HEIGHT, RIGHT) \
2651 GENLIST_PART_TEXT(NAME, \
2652 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2653 min: WIDTH HEIGHT; \
2655 GENLIST_PARAM_SUBITEM_DEFAULT \
2657 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2660 #define GENLIST_PART_SUBITEM_R_FIXED_TB(NAME, WIDTH, HEIGHT, RIGHT) \
2661 GENLIST_PART_TEXTBLOCK(NAME, \
2662 GENLIST_DESCRIPTION_R(RIGHT, \
2663 min: WIDTH HEIGHT; \
2665 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2667 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2670 #define GENLIST_PART_SUBITEM_L_FIXED(NAME, WIDTH, HEIGHT, LEFT) \
2671 GENLIST_PART_TEXT(NAME, \
2672 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2673 min: WIDTH HEIGHT; \
2675 GENLIST_PARAM_SUBITEM_DEFAULT \
2677 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2680 #define GENLIST_PART_SUBITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2681 GENLIST_PART_TEXT(NAME, \
2682 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2684 GENLIST_PARAM_SUBITEM_DEFAULT \
2687 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2690 #define GENLIST_PART_SUBITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT) \
2691 GENLIST_PART_TEXTBLOCK(NAME, \
2692 GENLIST_DESCRIPTION_LR(LEFT, RIGHT, \
2694 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2696 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2699 #define GENLIST_PART_SUBITEM_LB(NAME, HEIGHT, LEFT, RIGHT) \
2700 GENLIST_PART_TEXT(NAME, \
2701 GENLIST_DESCRIPTION_LB(LEFT, BOTTOM, \
2703 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2705 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2708 #define GENLIST_PART_SUBITEM_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
2709 GENLIST_PART_TEXT(NAME, \
2710 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
2712 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
2713 GENLIST_PARAM_SUBITEM_DEFAULT \
2715 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2718 #define GENLIST_PART_SUBITEM_SETTINGS_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM, PARAM) \
2719 GENLIST_PART_TEXT(NAME, \
2720 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
2722 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
2723 GENLIST_PARAM_SUBITEM_SETTINGS\
2726 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
2729 #define GENLIST_PART_SUBITEM_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
2730 GENLIST_PART_TEXTBLOCK(NAME, \
2731 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
2733 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2736 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2739 #define GENLIST_PART_SUBITEM_SETTINGS_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
2740 GENLIST_PART_TEXTBLOCK(NAME, \
2741 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
2743 GENLIST_PARAM_SUBITEM_SETTINGS_TB \
2746 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
2749 #define GENLIST_PART_SUBITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
2750 GENLIST_PART_TEXT(NAME, \
2751 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
2753 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
2754 GENLIST_PARAM_SUBITEM_DEFAULT \
2756 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2759 #define GENLIST_PART_SUBITEM_LTB(NAME, HEIGHT, LEFT, TOP, BOTTOM) \
2760 GENLIST_PART_TEXT(NAME, \
2761 GENLIST_DESCRIPTION_LTB(LEFT, TOP, BOTTOM, \
2763 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
2764 GENLIST_PARAM_SUBITEM_DEFAULT \
2766 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2769 #define GENLIST_PART_SUBITEM_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
2770 GENLIST_PART_TEXT(NAME, \
2771 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2773 GENLIST_PARAM_TEXT_LIMIT_RT \
2774 GENLIST_PARAM_SUBITEM_DEFAULT \
2776 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2779 #define GENLIST_PART_SUBITEM_RTB_TB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
2780 GENLIST_PART_TEXTBLOCK(NAME, \
2781 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2783 GENLIST_PARAM_TEXT_LIMIT_RT \
2784 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2787 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2790 #define GENLIST_PARAM_LIST_BUBBLE_TEXT \
2791 color: GENLIST_LIST_BUBBLE_TEXT_COLOR; \
2795 font: "Tizen:style=Bold"; \
2796 size: GENLIST_LIST_BUBBLE_TEXT_SIZE; \
2797 text_class: "tizen"; \
2799 // FIXME: Need to find why rel2.offset: 9 -1 will not fix the alignment of bubble text ?
2800 #define GENLIST_PART_LIST_BUBBLE_TEXT_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
2801 GENLIST_PART_IMAGE("elm.bubble", \
2802 GENLIST_DESCRIPTION_ENVELOP(NAME, \
2804 normal: "00_list_bubble_bg.png"; \
2807 rel1.offset: -10 0; \
2808 rel2.offset: 8 -1; \
2813 GENLIST_DESCRIPTION_FADE \
2815 GENLIST_PART_TEXT(NAME, \
2816 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2818 GENLIST_PARAM_TEXT_LIMIT_RT \
2819 rel2.offset: -10 -1; /* This maintain the text alignment with bubble text. */\
2820 GENLIST_PARAM_LIST_BUBBLE_TEXT \
2825 #define GENLIST_PART_BASE__( param_item_height ) \
2826 part { name: "base"; \
2830 description { state: "default" 0.0; \
2831 min: 0 param_item_height; \
2832 color: LAYOUT_GROUP_LIST_BG_COLOR_INC; \
2836 #define GENLIST_PART_BG \
2837 part { name: "bg"; \
2840 description { state: "default" 0.0; \
2841 color: GENLIST_PART_DIALOGUE_GROUP_BG_COLOR; \
2843 description { state: "hide" 0.0; \
2844 inherit: "default" 0.0; \
2845 rel1 { relative: 0.025 0.0; } \
2846 rel2 { relative: 1.025 1.0; } \
2848 description { state: "hide" 0.1; \
2849 inherit: "default" 0.0; \
2850 rel1 { relative: 0.13 0.0; } \
2851 rel2 { relative: 1.13 1.0; } \
2853 description { state: "hide" 0.2; \
2854 inherit: "default" 0.0; \
2855 rel1 { relative: 0.5 0.0; } \
2856 rel2 { relative: 1.5 1.0; } \
2858 description { state: "hide" 0.3; \
2859 inherit: "default" 0.0; \
2860 rel1 { relative: 1.0 0.0; } \
2861 rel2 { relative: 2.0 1.0; } \
2865 /******************************************************************************/
2867 /******************************************************************************/
2868 // FIXME: UX do not define selected state. But I thinkt that it is neededs :(
2870 #define GENLIST_PROOGRAM_EXPAND(SRC, TARGET) \
2873 signal: "mouse,clicked,1"; \
2875 action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; \
2878 name: "go_expanded"; \
2879 signal: "elm,state,expanded"; \
2881 action: STATE_SET "active" 0.0; \
2885 name: "go_contracted"; \
2886 signal: "elm,state,contracted"; \
2888 action: STATE_SET "default" 0.0; \
2892 #define GENLIST_PART_BASE_LIST_H( HEIGHT) \
2893 part { name: "base"; \
2897 description { state: "default" 0.0; \
2900 rel2.relative: 1 0; \
2901 rel2.to: "bottom_line"; \
2905 GENLIST_PART_BOTTOM_LINE
2907 #define GENLIST_PART_DIALOGUE_ITEM \
2908 part { name: "elm.rect.dialogue"; \
2911 description { state: "default" 0.0; \
2914 color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
2915 rel2.relative: 0.0 1.0; \
2920 #define GENLIST_PART_DIALOGUE_RIGHT_LINE \
2921 part { name: "elm.rect.dialogue.right.line"; \
2924 description { state: "default" 0.0; \
2928 relative: 1.0 0.0; \
2932 color: GENLIST_LIST_LINE1_COLOR; \
2936 #define GENLIST_PROGRAM_FLIP_1TEXT \
2937 program { name: "flip_enabled"; \
2938 signal: "elm,state,flip,enabled"; \
2940 action: STATE_SET "flip_enabled" 0.0; \
2941 target: "elm.text"; \
2942 target: "elm.flip.content"; \
2944 program { name: "flip_disabled"; \
2945 signal: "elm,state,flip,disabled"; \
2947 action: STATE_SET "default" 0.0; \
2948 target: "elm.text"; \
2949 target: "elm.flip.content"; \
2952 #define GENLIST_PROGRAM_FLIP_2TEXT \
2953 program { name: "flip_enabled"; \
2954 signal: "elm,state,flip,enabled"; \
2956 action: STATE_SET "flip_enabled" 0.0; \
2957 target: "elm.text.1"; \
2958 target: "elm.text.2"; \
2959 target: "elm.flip.content"; \
2961 program { name: "flip_disabled"; \
2962 signal: "elm,state,flip,disabled"; \
2964 action: STATE_SET "default" 0.0; \
2965 target: "elm.text.1"; \
2966 target: "elm.text.2"; \
2967 target: "elm.flip.content"; \
2970 #define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
2971 program { name: "flip_enabled"; \
2972 signal: "elm,state,flip,enabled"; \
2974 action: STATE_SET "flip_enabled" 0.0; \
2975 target: "elm.text.1"; \
2976 target: "elm.text.2"; \
2977 target: "elm.icon"; \
2978 target: "elm.flip.content"; \
2980 program { name: "flip_disabled"; \
2981 signal: "elm,state,flip,disabled"; \
2983 action: STATE_SET "default" 0.0; \
2984 target: "elm.text.1"; \
2985 target: "elm.text.2"; \
2986 target: "elm.icon"; \
2987 target: "elm.flip.content"; \
2990 #define GENLIST_PROGRAM_FLIP_2TEXT_2ICON \
2991 program { name: "flip_enabled"; \
2992 signal: "elm,state,flip,enabled"; \
2994 action: STATE_SET "flip_enabled" 0.0; \
2995 target: "elm.text.1"; \
2996 target: "elm.text.2"; \
2997 target: "elm.icon.1"; \
2998 target: "elm.icon.2"; \
2999 target: "elm.flip.content"; \
3001 program { name: "flip_disabled"; \
3002 signal: "elm,state,flip,disabled"; \
3004 action: STATE_SET "default" 0.0; \
3005 target: "elm.text.1"; \
3006 target: "elm.text.2"; \
3007 target: "elm.icon.1"; \
3008 target: "elm.icon.2"; \
3009 target: "elm.flip.content"; \
3012 #define GENLIST_PROGRAM_FLIP_3TEXT_2ICON \
3013 program { name: "flip_enabled"; \
3014 signal: "elm,state,flip,enabled"; \
3016 action: STATE_SET "flip_enabled" 0.0; \
3017 target: "elm.text.1"; \
3018 target: "elm.text.2"; \
3019 target: "elm.text.3"; \
3020 target: "elm.icon.1"; \
3021 target: "elm.icon.2"; \
3022 target: "elm.flip.content"; \
3024 program { name: "flip_disabled"; \
3025 signal: "elm,state,flip,disabled"; \
3027 action: STATE_SET "default" 0.0; \
3028 target: "elm.text.1"; \
3029 target: "elm.text.2"; \
3030 target: "elm.text.3"; \
3031 target: "elm.icon.1"; \
3032 target: "elm.icon.2"; \
3033 target: "elm.flip.content"; \
3037 #define GENLIST_DESCRIPTION_INVISIBLE_SELECTED \
3038 description { state: "selected" 1.0; \
3039 inherit: "default" 0.0; \
3043 #define GENLIST_DESCRIPTION_FLIP_ENABLED \
3044 description { state: "flip_enabled" 0.0; \
3045 inherit: "default" 0.0; \
3049 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT \
3053 get_state(PART:"elm.text", st, 30, vl); \
3054 set_state(PART:"bg_image", "selected", 0.0); \
3055 if (!strcmp(st, "flip_enabled")) \
3056 set_state(PART:"elm.text", "selected", 1.0); \
3058 set_state(PART:"elm.text", "selected", 0.0); \
3062 /* genlist multisense macro - start */
3063 #define GENLIST_PROGRAM_AFTER_PLAY_BUTTON_PRESS \
3064 after: "play_button_press";
3066 #define GENLIST_PROGRAM_PLAY_BUTTON_PRESS \
3067 program { name: "play_button_press"; \
3068 action: PLAY_SAMPLE "button-pressed" 1.0; \