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.
18 /* genlist multisense sample/tone listing */
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 110 // (114 - top/bottom padding)
26 #define GENLIST_HEIGHT_2LINE_MAIN 57
27 #define GENLIST_HEIGHT_2LINE_SUB 45
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 19
40 #define GENLIST_PADDING_SIZE_BOTTOM_2LINE 19
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
48 #define DIALOGUE_EDITFIELD_PADDING_SIZE_LEFT 16+10
49 #define DIALOGUE_EDITFIELD_PADDING_SIZE_RIGHT 16+10
51 #define GENLIST_ICON_SMALL_SIZE 45
52 #define GENLIST_ICON_STAR_SIZE 45
53 #define GENLIST_ICON_MEDIUM_SIZE 81
54 #define GENLIST_ICON_LARGE_SIZE 99
56 #define GENLIST_ICON_MEDIUM_MASK_SIZE 90
57 #define GENLIST_ICON_LARGE_MASK_SIZE 108
59 #define GENLIST_BTN_01_HEIGHT 74
60 #define GENLIST_BTN_02_SIZE 72
61 #define GENLIST_ICON_ONOFF_WIDTH 132
62 #define GENLIST_ICON_ONOFF_HEIGHT 70
63 #define GENLIST_ICON_CHECK_RADIO_SIZE 64
64 #define GENLIST_ICON_COLORBAR_SIZE 7
65 #define GENLIST_ICON_PASSWORD_SIZE 82
66 // 26(left padding)+2*74(Button Min width)+16(centre padding)+26(right padding)
67 #define GENLIST_MIN_SLIDE2_BASE_WIDTH 216
68 // 26(left padding)+3*74(Button Min width)+2*16(centre padding)+26(right padding)
69 #define GENLIST_MIN_SLIDE3_BASE_WIDTH 306
70 // 26(left padding)+4*74(Button Min width)+3*16(centre padding)+26(right padding)
71 #define GENLIST_MIN_SLIDE4_BASE_WIDTH 396
73 #define GENLIST_ICON_ENTRY_SIZE 54
75 #define GENLIST_TREESIZE_DEFAULT 26
77 //#define GENLIST_DIALOGUE_SEPARATOR_DEFAULT_HEIGHT 40
79 //****************************************************************************//
80 // ***************** EDJE description have 24 patterns **********************//
81 //**************************************************************************//
85 #define GENLIST_DESCRIPTION_ENVELOP( PART, PARAM ) \
86 description { state: "default" 0.0;\
99 // ---------------------
100 // left | HERE | right
101 // ---------------------
103 #define GENLIST_DESCRIPTION( left, right, top, bottom, param ) \
104 description { state: "default" 0.0;\
118 // ---------------------
120 // ---------------------
121 #define GENLIST_DESCRIPTION_L( left, param ) \
122 description { state: "default" 0.0;\
138 // ---------------------
140 // ---------------------
141 #define GENLIST_DESCRIPTION_R( right, param ) \
142 description { state: "default" 0.0;\
158 // --------------------------
159 // left |--> HERE <--| right
160 // --------------------------
161 #define GENLIST_DESCRIPTION_LR( left, right, param ) \
162 description { state: "default" 0.0;\
181 #define GENLIST_DESCRIPTION_RTB( right, top, bottom, param ) \
182 description { state: "default" 0.0;\
197 // left | HERE | right
198 // ---------------------
200 #define GENLIST_DESCRIPTION_LRB( left, right, bottom, param ) \
201 description { state: "default" 0.0;\
217 // ---------------------
218 // left | HERE | right
219 #define GENLIST_DESCRIPTION_LRT( left, right, top, param ) \
220 description { state: "default" 0.0;\
236 // ---------------------
238 #define GENLIST_DESCRIPTION_LT( left, top, param ) \
239 description { state: "default" 0.0;\
255 // ---------------------
257 #define GENLIST_DESCRIPTION_LB( left, bottom, param ) \
258 description { state: "default" 0.0;\
274 // ---------------------
276 // ---------------------
278 #define GENLIST_DESCRIPTION_LTB( left, top, bottom, param ) \
279 description { state: "default" 0.0;\
295 // ---------------------
297 #define GENLIST_DESCRIPTION_RT( right, top, param ) \
298 description { state: "default" 0.0;\
313 // | HERE <-- | right
314 // ---------------------
316 #define GENLIST_DESCRIPTION_RB( right, bottom, param ) \
317 description { state: "default" 0.0;\
337 #define GENLIST_DESCRIPTION_TB( top, bottom, param ) \
338 description { state: "default" 0.0;\
351 #define GENLIST_PROLOG \
352 data.item: "stacking" "above"; \
353 data.item: "selectraise" "on"; \
354 data.item: "treesize" 0;
356 #define GENLIST_PROLOG_NORMAL \
358 data.item: "treesize" GENLIST_TREESIZE_DEFAULT; \
359 data.item: "flips" "elm.flip.icon elm.flip.content"; \
361 image : "00_list_group_bg.png" COMP; \
362 image : "00_list_group_bg_press.png" COMP; \
365 #define GENLIST_PROLOG_DIALOGUE \
367 data.item: "flips" "elm.flip.icon elm.flip.content"; \
369 image : "00_list_group_bg.png" COMP; \
370 image : "00_list_group_bg_press.png" COMP; \
371 image : "00_list_group_bg_top.png" COMP; \
372 image : "00_list_group_bg_top_press.png" COMP; \
373 image : "00_list_group_bg_center.png" COMP; \
374 image : "00_list_group_bg_center_press.png" COMP; \
375 image : "00_list_group_bg_bottom.png" COMP; \
376 image : "00_list_group_bg_bottom_press.png" COMP; \
377 image : "00_list_group_bg_top_focus.png" COMP; \
378 image : "00_list_group_bg_center_focus.png" COMP; \
379 image : "00_list_group_bg_bottom_focus.png" COMP; \
380 image : "00_expandable_bg.png" COMP; \
381 image : "00_expandable_bg_top.png" COMP; \
382 image : "00_expandable_bg_center.png" COMP; \
383 image : "00_expandable_bg_bottom.png" COMP; \
387 #define GENLIST_NAME(NAME) \
388 name: "elm/genlist/item/"NAME; \
389 alias: "elm/genlist/item_odd/"NAME; \
390 alias: "elm/genlist/item_compress/"NAME; \
391 alias: "elm/genlist/item_compress_odd/"NAME; \
392 alias: "elm/genlist/tree/"NAME; \
393 alias: "elm/genlist/tree_odd/"NAME; \
394 alias: "elm/genlist/tree_compress/"NAME; \
395 alias: "elm/genlist/tree_compress_odd/"NAME; \
397 /*****************************************************************************/
398 /******************************* Dialogue group ******************************/
399 /*****************************************************************************/
400 #define GENLIST_DIALOGUE_INHERIT_BODY( _PARTS ) \
401 data.item: "treesize" 0; \
403 GENLIST_PART_BG_NORMAL_OFF \
404 GENLIST_PART_BOTTOM_LINE_OFF \
405 GENLIST_PART_BG_DIALOGUE \
406 GENLIST_PART_PADDING_LEFT_SIZE( DIALOGUE_PADDING_SIZE_LEFT ) \
407 GENLIST_PART_PADDING_RIGHT_EDIT \
410 GENLIST_PART_FOCUS_DIALOGUE \
413 #define GENLIST_DIALOGUE_EDITFIELD_INHERIT_BODY( _PARTS ) \
414 data.item: "treesize" 0; \
416 GENLIST_PART_BG_NORMAL_OFF \
417 GENLIST_PART_BOTTOM_LINE_OFF \
418 GENLIST_PART_BG_DIALOGUE \
419 GENLIST_PART_PADDING_LEFT_SIZE( DIALOGUE_EDITFIELD_PADDING_SIZE_LEFT ) \
420 GENLIST_PART_PADDING_RIGHT_EDIT \
423 GENLIST_PART_FOCUS_DIALOGUE \
427 #define GENLIST_INHERIT_THUMB_CIRCLE(SIZE_PREFIX, MASK_SIZE, PARENT) \
429 image: "Content_views/00_circle_thumbnail_bg.png" COMP; \
430 image: "Content_views/00_circle_thumbnail_bg_press.png" COMP; \
431 image: "Content_views/00_circle_thumbnail_bg.png" COMP; \
432 image: "Content_views/00_circle_thumbnail_bg_press.png" COMP; \
435 GENLIST_PART_RECT("elm.thumb.clip", \
436 description { state: "default"; \
438 description { state: "flipped"; \
442 GENLIST_PART_IMAGE("elm.thumb", \
443 insert_before: "focus_part"; \
444 clip_to: "elm.thumb.clip"; \
446 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
447 image.normal: "Content_views/00_circle_thumbnail_bg.png"; \
448 min: MASK_SIZE MASK_SIZE; \
449 max: MASK_SIZE MASK_SIZE; \
452 description { state: "selected" 0.0; \
453 inherit: "default" 0.0; \
454 image.normal: "Content_views/00_circle_thumbnail_bg_press.png"; \
456 description { state: "reorder" 0.0; \
457 inherit: "default" 0.0; \
458 image.normal: "Content_views/00_circle_thumbnail_bg.png"; \
460 description { state: "reorder_selected" 0.0; \
461 inherit: "default" 0.0; \
462 image.normal: "Content_views/00_circle_thumbnail_bg_press.png"; \
464 description { state: "decorate" 0.0; \
465 inherit: "default" 0.0; \
467 description { state: "decorate_reorder" 0.0; \
468 inherit: "reorder" 0.0; \
473 #define GENLIST_INHERIT_THUMB_SQUARE(SIZE_PREFIX, MASK_SIZE, PARENT) \
475 image: "Content_views/00_square_thumbnail_bg.png" COMP; \
476 image: "Content_views/00_square_thumbnail_bg_press.png" COMP; \
477 image: "Content_views/00_square_thumbnail_bg.png" COMP; \
478 image: "Content_views/00_square_thumbnail_bg_press.png" COMP; \
481 GENLIST_PART_RECT("elm.thumb.clip", \
482 description { state: "default"; \
484 description { state: "flipped"; \
488 GENLIST_PART_IMAGE("elm.thumb", \
489 insert_before: "focus_part"; \
490 clip_to: "elm.thumb.clip"; \
492 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
493 image.normal: "Content_views/00_square_thumbnail_bg.png"; \
494 min: MASK_SIZE MASK_SIZE; \
495 max: MASK_SIZE MASK_SIZE; \
498 description { state: "selected" 0.0; \
499 inherit: "default" 0.0; \
500 image.normal: "Content_views/00_square_thumbnail_bg_press.png"; \
502 description { state: "reorder" 0.0; \
503 inherit: "default" 0.0; \
504 image.normal: "Content_views/00_square_thumbnail_bg.png"; \
506 description { state: "reorder_selected" 0.0; \
507 inherit: "default" 0.0; \
508 image.normal: "Content_views/00_square_thumbnail_bg_press.png"; \
510 description { state: "decorate" 0.0; \
511 inherit: "default" 0.0; \
513 description { state: "decorate_reorder" 0.0; \
514 inherit: "reorder" 0.0; \
520 #define GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE(SIZE_PREFIX, MASK_SIZE, PARENT) \
522 image: "Content_views/00_circle_thumbnail_bg.png" COMP; \
523 image: "Content_views/00_circle_thumbnail_bg_press.png" COMP; \
526 GENLIST_PART_RECT("elm.thumb.clip", \
527 description { state: "default"; \
529 description { state: "flipped"; \
533 GENLIST_PART_IMAGE("elm.thumb", \
534 insert_before: "focus_part_dialogue"; \
535 clip_to: "elm.thumb.clip"; \
537 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
538 image.normal: "Content_views/00_circle_thumbnail_bg.png"; \
539 min: MASK_SIZE MASK_SIZE; \
540 max: MASK_SIZE MASK_SIZE; \
543 description { state: "selected" 0.0; \
544 inherit: "default" 0.0; \
545 image.normal: "Content_views/00_circle_thumbnail_bg_press.png"; \
547 description { state: "reorder" 0.0; \
548 inherit: "default" 0.0; \
549 image.normal: "Content_views/00_circle_thumbnail_bg.png"; \
551 description { state: "reorder_selected" 0.0; \
552 inherit: "default" 0.0; \
553 image.normal: "Content_views/00_circle_thumbnail_bg_press.png"; \
555 description { state: "decorate" 0.0; \
556 inherit: "default" 0.0; \
558 description { state: "decorate_reorder" 0.0; \
559 inherit: "reorder" 0.0; \
564 #define GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE(SIZE_PREFIX, MASK_SIZE, PARENT) \
566 image: "Content_views/00_square_thumbnail_bg_normal.png" COMP; \
567 image: "Content_views/00_square_thumbnail_bg_press.png" COMP; \
570 GENLIST_PART_RECT("elm.thumb.clip", \
571 description { state: "default"; \
573 description { state: "flipped"; \
577 GENLIST_PART_IMAGE("elm.thumb", \
578 insert_before: "focus_part_dialogue"; \
579 clip_to: "elm.thumb.clip"; \
581 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
582 image.normal: "Content_views/00_square_thumbnail_bg.png"; \
583 min: MASK_SIZE MASK_SIZE; \
584 max: MASK_SIZE MASK_SIZE; \
587 description { state: "selected" 0.0; \
588 inherit: "default" 0.0; \
589 image.normal: "Content_views/00_square_thumbnail_bg_press.png"; \
591 description { state: "reorder" 0.0; \
592 inherit: "default" 0.0; \
593 image.normal: "Content_views/00_square_thumbnail_bg.png"; \
595 description { state: "reorder_selected" 0.0; \
596 inherit: "default" 0.0; \
597 image.normal: "Content_views/00_square_thumbnail_bg_press.png"; \
599 description { state: "decorate" 0.0; \
600 inherit: "default" 0.0; \
602 description { state: "decorate_reorder" 0.0; \
603 inherit: "reorder" 0.0; \
608 #define GENLIST_INHERIT_THUMB_CIRCLE_MEDIUM(PARENT) \
609 GENLIST_INHERIT_THUMB_CIRCLE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
611 #define GENLIST_INHERIT_THUMB_SQUARE_MEDIUM(PARENT) \
612 GENLIST_INHERIT_THUMB_SQUARE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
614 #define GENLIST_INHERIT_THUMB_CIRCLE_LARGE(PARENT) \
615 GENLIST_INHERIT_THUMB_CIRCLE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
617 #define GENLIST_INHERIT_THUMB_SQUARE_LARGE(PARENT) \
618 GENLIST_INHERIT_THUMB_SQUARE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
621 #define GENLIST_INHERIT_THUMB_CIRCLE_MEDIUM_DIALOGUE(PARENT) \
622 GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("81x81", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
624 #define GENLIST_INHERIT_THUMB_SQUARE_MEDIUM_DIALOGUE(PARENT) \
625 GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("81x81", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
627 #define GENLIST_INHERIT_THUMB_CIRCLE_LARGE_DIALOGUE(PARENT) \
628 GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
630 #define GENLIST_INHERIT_THUMB_SQUARE_LARGE_DIALOGUE(PARENT) \
631 GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
633 //****************************************************************************//
634 // ****************************** BG Image **********************************//
635 //****************************************************************************//
637 #define GENLIST_PART_BG_NORMAL \
638 GENLIST_PART_RECT("bg_clip", \
640 description { state: "default" 0.0; \
642 color: 255 255 255 255; \
644 description { state: "decorate" 0.0; \
645 inherit: "default" 0.0; \
648 description { state: "reorder" 0.0; \
649 inherit: "default" 0.0; \
652 description { state: "decorate_reorder" 0.0; \
653 inherit: "default" 0.0; \
657 GENLIST_PART_RECT("bg_reorder_clip", \
659 description { state: "default" 0.0; \
662 description { state: "reorder" 0.0; \
663 inherit: "default" 0.0; \
665 color: 255 255 255 255; \
667 description { state: "decorate_reorder" 0.0; \
668 inherit: "default" 0.0; \
671 description { state: "decorate" 0.0; \
672 inherit: "default" 0.0; \
675 description { state: "reorder_flip" 0.0; \
676 inherit: "default" 0.0; \
680 GENLIST_PART_RECT("bg", \
681 clip_to: "bg_clip"; \
682 description { state: "default" 0.0; \
683 color: GENLIST_LIST_BG_COLOR; \
685 description { state: "selected" 0.0; \
686 inherit: "default" 0.0; \
687 color: GENLIST_LIST_PRESS_COLOR; \
689 description { state: "disabled" 0.0; \
690 inherit: "default" 0.0; \
691 color: GENLIST_LIST_DIM_COLOR; \
694 GENLIST_PART_SPACER("bg_reorder_left", \
695 description { state: "default" 0.0; \
700 rel2.relative: 0 1; \
703 GENLIST_PART_SPACER("bg_reorder_right", \
704 description { state: "default" 0.0; \
709 rel1.relative: 1 0; \
712 GENLIST_PART_IMAGE("bg_reorder", \
713 clip_to: "bg_reorder_clip"; \
714 GENLIST_DESCRIPTION_LR("bg_reorder_left", "bg_reorder_right", \
716 normal: "00_list_group_bg.png"; \
721 description { state: "selected" 0.0; \
722 inherit: "default"; \
724 normal: "00_list_group_bg_press.png"; \
729 description { state: "flipped" 0.0; \
730 inherit: "default"; \
736 #define GENLIST_PART_BG_NORMAL_OFF \
737 GENLIST_PART_RECT("bg_clip", \
739 description { state: "default" 0.0; \
742 description { state: "decorate" 0.0; \
743 inherit: "default" 0.0; \
746 description { state: "reorder" 0.0; \
747 inherit: "default" 0.0; \
750 description { state: "decorate_reorder" 0.0; \
751 inherit: "default" 0.0; \
755 GENLIST_PART_RECT("bg", \
757 description { state: "default" 0.0; \
760 description { state: "selected" 0.0; \
763 description { state: "disabled" 0.0; \
767 GENLIST_PART_RECT("bg_reorder_clip", \
769 description { state: "default" 0.0; \
772 description { state: "reorder" 0.0; \
775 description { state: "decorate_reorder" 0.0; \
778 description { state: "decorate" 0.0; \
781 description { state: "reorder_flip" 0.0; \
785 GENLIST_PART_IMAGE("bg_reorder", \
787 description {state: "default" 0.0;\
790 description { state: "selected" 0.0; {\
793 description { state: "flipped" 0.0; {\
798 #define GENLIST_PART_BG_DIALOGUE \
799 GENLIST_PART_RECT("2depth", \
800 description { state: "default" 0.0; \
803 description { state: "2depth" 0.0; \
807 GENLIST_PART_SPACER("bg_dialogue_left", \
808 description { state: "default" 0.0; \
813 rel2.relative: 0 1; \
816 GENLIST_PART_SPACER("bg_dialogue_right", \
817 description { state: "default" 0.0; \
822 rel1.relative: 1 0; \
824 description { state: "editmode" 0.0; \
825 inherit: "default" 0.0; \
826 min: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_BTN_02_SIZE) 0; \
827 max: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_BTN_02_SIZE) 0; \
830 GENLIST_PART_IMAGE("bg_dialogue", \
831 insert_after: "base"; \
832 GENLIST_DESCRIPTION_LR("bg_dialogue_left", "bg_dialogue_right", \
834 normal: "00_list_group_bg.png"; \
839 description { state: "selected" 0.0; \
840 inherit: "default" 0.0; \
842 normal: "00_list_group_bg_press.png"; \
847 description { state: "top" 0.0; \
848 inherit: "default" 0.0; \
850 normal: "00_list_group_bg_top.png"; \
855 description { state: "top_selected" 0.0; \
856 inherit: "default" 0.0; \
858 normal: "00_list_group_bg_top_press.png"; \
863 description { state: "center" 0.0; \
864 inherit: "default" 0.0; \
866 normal: "00_list_group_bg_center.png"; \
871 description { state: "center_selected" 0.0; \
872 inherit: "default" 0.0; \
874 normal: "00_list_group_bg_center_press.png"; \
879 description { state: "bottom" 0.0; \
880 inherit: "default" 0.0; \
882 normal: "00_list_group_bg_bottom.png"; \
887 description { state: "bottom_selected" 0.0; \
888 inherit: "default" 0.0; \
890 normal: "00_list_group_bg_bottom_press.png"; \
895 description { state: "2depth" 0.0; \
896 inherit: "default" 0.0; \
898 normal: "00_expandable_bg.png"; \
903 description { state: "2depth_top" 0.0; \
904 inherit: "default" 0.0; \
906 normal: "00_expandable_bg_top.png"; \
911 description { state: "2depth_center" 0.0; \
912 inherit: "default" 0.0; \
914 normal: "00_expandable_bg_center.png"; \
919 description { state: "2depth_bottom" 0.0; \
920 inherit: "default" 0.0; \
922 normal: "00_expandable_bg_bottom.png"; \
929 //****************************************************************************//
930 // ****************************** BASE ********************************//
931 //****************************************************************************//
932 #define GENLIST_PART_BASE_SIZE(HEIGHT) \
933 part { name: "base"; \
937 description { state: "default" 0.0; \
941 description { state: "disabled" 0.0; \
942 inherit: "default"; \
945 part { name: "state"; \
949 description { state: "default" 0.0; \
952 description { state: "decorate" 0.0; \
953 inherit: "default"; \
955 description { state: "reorder" 0.0; \
956 inherit: "default"; \
958 description { state: "decorate_reorder" 0.0; \
959 inherit: "default"; \
963 #define GENLIST_PART_BASE \
964 GENLIST_PART_BASE_SIZE(0)
966 #define GENLIST_PART_FOCUS \
967 GENLIST_PART_IMAGE("focus_part", \
969 description { state: "default" 0.0; \
972 normal: "00_focus.png"; \
977 description { state: "focused" 0.0; \
978 inherit: "default" 0.0; \
982 GENLIST_PART_ICON("elm.icon.focus", \
984 GENLIST_DESCRIPTION_ENVELOP("focus_part", \
989 #define GENLIST_PART_FOCUS_REORDER \
990 GENLIST_PART_IMAGE("focus_part_reorder", \
992 GENLIST_DESCRIPTION_LR("bg_reorder_left", "bg_reorder_right", \
995 normal: "00_focus.png"; \
1000 description { state: "focused" 0.0; \
1001 inherit: "default" 0.0; \
1006 #define GENLIST_PART_FOCUS_NORMAL \
1007 GENLIST_PART_FOCUS \
1008 GENLIST_PART_FOCUS_REORDER
1011 #define GENLIST_PART_FOCUS_DIALOGUE \
1012 GENLIST_PART_IMAGE("focus_part_dialogue", \
1014 GENLIST_DESCRIPTION_LR("bg_dialogue_left", "bg_dialogue_right", \
1017 normal: "00_focus.png"; \
1022 description { state: "focused" 0.0; \
1023 inherit: "default" 0.0; \
1026 description { state: "top_focused" 0.0; \
1027 inherit: "default" 0.0; \
1030 normal: "00_list_group_bg_top_focus.png"; \
1034 description { state: "center_focused" 0.0; \
1035 inherit: "default" 0.0; \
1038 normal: "00_list_group_bg_center_focus.png"; \
1042 description { state: "bottom_focused" 0.0; \
1043 inherit: "default" 0.0; \
1046 normal: "00_list_group_bg_bottom_focus.png"; \
1051 GENLIST_PART_ICON("elm.icon.focus", \
1053 GENLIST_DESCRIPTION_ENVELOP("focus_part_dialogue", \
1058 //****************************************************************************//
1059 // ****************************** LINE ********************************//
1060 //****************************************************************************//
1061 #define GENLIST_PART_BOTTOM_LINE \
1062 GENLIST_PART_RECT("bottom_line_clip", \
1063 description { state: "default" 0.0; \
1064 color: 255 255 255 255; \
1066 description { state: "decorate" 0.0; \
1067 inherit: "default" 0.0; \
1070 description { state: "reorder" 0.0; \
1071 inherit: "default" 0.0; \
1074 description { state: "decorate_reorder" 0.0; \
1075 inherit: "default" 0.0; \
1079 GENLIST_PART_RECT("bottom_line", \
1081 clip_to: "bottom_line_clip"; \
1082 description { state: "default" 0.0; \
1083 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
1084 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
1087 color: GENLIST_LIST_LINE1_COLOR; \
1088 rel1.to: "bottom_line2"; \
1089 rel2.to: "bottom_line2"; \
1090 rel2.relative: 1 0; \
1091 rel1.offset: -1 -1; \
1093 description { state: "selected" 0.0; \
1094 inherit: "default" 0.0; \
1095 color: GENLIST_LIST_PRESS_COLOR; \
1097 description { state: "disabled" 0.0; \
1098 inherit: "default" 0.0; \
1099 color: GENLIST_LIST_LINE1_COLOR; \
1101 description { state: "flipped" 0.0; \
1102 inherit: "default" 0.0; \
1106 GENLIST_PART_RECT("bottom_line2", \
1108 clip_to: "bottom_line_clip"; \
1109 description { state: "default" 0.0; \
1110 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
1111 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
1114 color: GENLIST_LIST_LINE2_COLOR; \
1115 rel1.to_x: "base"; \
1116 rel1.relative: 0 0; \
1117 rel2.to_x: "base"; \
1118 rel2.relative: 1 1; \
1119 rel1.offset: -1 -1; \
1121 description { state: "selected" 0.0; \
1122 inherit: "default" 0.0; \
1123 color: GENLIST_LIST_PRESS_COLOR; \
1125 description { state: "disabled" 0.0; \
1126 inherit: "default" 0.0; \
1127 color: GENLIST_LIST_LINE2_COLOR; \
1129 description { state: "flipped" 0.0; \
1130 inherit: "default" 0.0; \
1135 #define GENLIST_PART_BOTTOM_LINE_OFF \
1136 GENLIST_PART_RECT("bottom_line", \
1138 description { state: "default" 0.0; \
1141 description { state: "selected" 0.0; \
1144 description { state: "disabled" 0.0; \
1147 description { state: "decorate" 0.0; \
1151 GENLIST_PART_RECT("bottom_line2", \
1153 description { state: "default" 0.0; \
1156 description { state: "selected" 0.0; \
1159 description { state: "disabled" 0.0; \
1162 description { state: "decorate" 0.0; \
1167 #define GENLIST_PART_DIVIDER_PADDING \
1168 GENLIST_PART_SPACER("elm.padding.divider.top", \
1169 description { state: "default" 0.0; \
1174 rel2.relative: 1 0; \
1177 GENLIST_PART_SPACER("elm.padding.divider.bottom", \
1178 description { state: "default" 0.0; \
1183 rel1.relative: 0 1; \
1187 #define GENLIST_PART_DIVIDER_L(LEFT) \
1188 GENLIST_PART_DIVIDER_PADDING \
1189 GENLIST_PART_RECT("elm.divider1", \
1191 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1197 color: GENLIST_LIST_DIVIDER1_COLOR; \
1200 GENLIST_PART_RECT("elm.divider2", \
1202 GENLIST_DESCRIPTION_LTB("elm.divider1", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1208 color: GENLIST_LIST_DIVIDER2_COLOR; \
1212 #define GENLIST_PART_DIVIDER_R(RIGHT) \
1213 GENLIST_PART_DIVIDER_PADDING \
1214 GENLIST_PART_RECT("elm.divider1", \
1216 GENLIST_DESCRIPTION_RTB("elm.divider2", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1221 color: GENLIST_LIST_DIVIDER1_COLOR; \
1224 GENLIST_PART_RECT("elm.divider2", \
1226 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1231 color: GENLIST_LIST_DIVIDER2_COLOR; \
1235 #define GENLIST_PART_CENTER_LINE_LRT(LEFT, RIGHT, TOP) \
1236 GENLIST_PART_RECT("center_line", \
1238 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
1242 color: GENLIST_LIST_DIVIDER1_COLOR; \
1243 rel2.relative: 1 1; \
1246 GENLIST_PART_RECT("center_line2", \
1247 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, "center_line", \
1251 color: GENLIST_LIST_DIVIDER2_COLOR; \
1252 rel2.relative: 1 1; \
1256 #define GENLIST_PART_COLORBAR \
1257 GENLIST_PART_SPACER("elm.padding.colorbar.top", \
1258 GENLIST_DESCRIPTION_ENVELOP("base", \
1263 rel2.relative: 1 0; \
1266 GENLIST_PART_SPACER("elm.padding.colorbar.bottom", \
1267 GENLIST_DESCRIPTION_ENVELOP("base", \
1272 rel1.relative: 0 1; \
1275 GENLIST_PART_ICON("elm.swallow.colorbar", \
1276 GENLIST_DESCRIPTION_TB("elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
1277 min: GENLIST_ICON_COLORBAR_SIZE 0; \
1278 max: GENLIST_ICON_COLORBAR_SIZE -1; \
1281 rel1.relative: 0 1; \
1282 rel2.relative: 0 0; \
1286 #define GENLIST_PART_COLORBAR_DIALOGUE \
1287 GENLIST_PART_SPACER("elm.padding.colorbar.top", \
1288 GENLIST_DESCRIPTION_ENVELOP("base", \
1293 rel2.relative: 1 0; \
1296 GENLIST_PART_SPACER("elm.padding.colorbar.bottom", \
1297 GENLIST_DESCRIPTION_ENVELOP("base", \
1302 rel1.relative: 0 1; \
1305 GENLIST_PART_SPACER("elm.padding.colorbar.left", \
1306 description{ state: "default" 0.0; \
1313 rel2.relative: 0 1; \
1316 GENLIST_PART_ICON("elm.swallow.colorbar", \
1317 GENLIST_DESCRIPTION_LTB("elm.padding.colorbar.left","elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
1318 min: GENLIST_ICON_COLORBAR_SIZE 0; \
1319 max: GENLIST_ICON_COLORBAR_SIZE -1; \
1324 //****************************************************************************//
1325 //********************************* PADDING **********************************//
1326 //****************************************************************************//
1327 #define GENLIST_PART_EXPANDED_PAD \
1328 part { name: "elm.swallow.pad"; \
1332 description { state: "default" 0.0; \
1339 rel2.relative: 0.0 1.0; \
1343 #define GENLIST_PART_PADDING( NAME, SIZE, REL1, REL2 ) \
1344 GENLIST_PART_SPACER(NAME, \
1345 description { state: "default" 0.0; \
1361 #define GENLIST_DESCRIPTION_DECORATE_PADDING \
1362 description { state: "decorate" 0.0; \
1363 inherit: "default" 0.0; \
1368 #define GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1369 description { state: "decorate_reorder" 0.0; \
1370 inherit: "default" 0.0; \
1375 #define GENLIST_DESCRIPTION_REORDER_PADDING \
1376 description { state: "reorder" 0.0; \
1377 inherit: "default" 0.0; \
1382 #define GENLIST_PART_PADDING_LEFT \
1383 GENLIST_PART_EXPANDED_PAD \
1384 GENLIST_PART_SPACER("elm.padding.left", \
1385 GENLIST_DESCRIPTION_L("elm.swallow.pad", \
1386 min: GENLIST_PADDING_SIZE_LEFT 0; \
1387 max: GENLIST_PADDING_SIZE_LEFT -1; \
1390 GENLIST_DESCRIPTION_DECORATE_PADDING \
1391 GENLIST_DESCRIPTION_REORDER_PADDING \
1392 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1395 #define GENLIST_PART_PADDING_LEFT_SIZE( SIZE ) \
1396 GENLIST_PART_EXPANDED_PAD \
1397 GENLIST_PART_SPACER("elm.padding.left", \
1398 GENLIST_DESCRIPTION_L("elm.swallow.pad", \
1403 GENLIST_DESCRIPTION_DECORATE_PADDING \
1404 GENLIST_DESCRIPTION_REORDER_PADDING \
1405 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1408 #define GENLIST_PART_EDITBTN \
1409 GENLIST_PART_SPACER("elm.padding.edit.right", \
1410 description { state: "default" 0.0; \
1413 rel1.relative: 1 0; \
1414 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1415 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1418 GENLIST_PART_ICON("elm.icon.edit", \
1419 GENLIST_DESCRIPTION_R("elm.padding.edit.right", \
1422 description { state: "editmode" 0.0; \
1423 inherit: "default" 0.0; \
1426 min: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE; \
1427 max: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE; \
1431 #define GENLIST_PART_PADDING_RIGHT \
1432 GENLIST_PART_SPACER("elm.padding.right", \
1433 description { state: "default" 0.0; \
1434 min: GENLIST_PADDING_SIZE_RIGHT 0; \
1435 max: GENLIST_PADDING_SIZE_RIGHT -1; \
1440 rel1.relative: 1 0; \
1442 GENLIST_DESCRIPTION_DECORATE_PADDING \
1443 GENLIST_DESCRIPTION_REORDER_PADDING \
1444 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1447 #define GENLIST_PART_PADDING_RIGHT_SIZE( SIZE ) \
1448 GENLIST_PART_SPACER("elm.padding.right", \
1449 description { state: "default" 0.0; \
1456 rel1.relative: 1 0; \
1458 GENLIST_DESCRIPTION_DECORATE_PADDING \
1459 GENLIST_DESCRIPTION_REORDER_PADDING \
1460 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1463 // FIXME: Use RECT instead of SPACER if this group is used on layout
1464 // for blocking events
1465 #define GENLIST_PART_PADDING_RIGHT_EDIT \
1466 GENLIST_PART_SPACER("elm.padding.right", \
1467 GENLIST_DESCRIPTION_R("elm.padding.right.edit", \
1468 min: DIALOGUE_PADDING_SIZE_RIGHT 0; \
1469 max: DIALOGUE_PADDING_SIZE_RIGHT -1; \
1472 GENLIST_DESCRIPTION_DECORATE_PADDING \
1473 GENLIST_DESCRIPTION_REORDER_PADDING \
1474 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1476 GENLIST_PART_SPACER("elm.padding.right.edit", \
1477 description { state: "default" 0.0; \
1482 rel1.relative: 1 0; \
1484 description { state: "editmode" 0.0; \
1485 inherit: "default" 0.0; \
1486 min: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_BTN_02_SIZE) 0; \
1487 max: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_BTN_02_SIZE) -1; \
1490 GENLIST_PART_EDITBTN
1492 #define GENLIST_PART_PADDING_TOP \
1493 GENLIST_PART_SPACER("elm.padding.top", \
1495 state: "default" 0.0; \
1496 min: 0 GENLIST_PADDING_SIZE_TOP; \
1497 max: -1 GENLIST_PADDING_SIZE_TOP; \
1501 rel2.relative: 1.0 0.0; \
1506 #define GENLIST_PART_PADDING_TOP_2LINE \
1507 GENLIST_PART_SPACER("elm.padding.top", \
1509 state: "default" 0.0; \
1510 min: 0 GENLIST_PADDING_SIZE_TOP_2LINE; \
1511 max: -1 GENLIST_PADDING_SIZE_TOP_2LINE; \
1515 rel2.relative: 1.0 0.0; \
1520 #define GENLIST_PART_PADDING_TOP_SIZE( SIZE ) \
1521 GENLIST_PART_SPACER("elm.padding.top", \
1523 state: "default" 0.0; \
1529 rel2.relative: 1.0 0.0; \
1534 #define GENLIST_PART_PADDING_BOTTOM \
1535 GENLIST_PART_SPACER("elm.padding.bottom", \
1536 description { state: "default" 0.0; \
1537 min: 0 GENLIST_PADDING_SIZE_BOTTOM; \
1538 max: -1 GENLIST_PADDING_SIZE_BOTTOM; \
1542 rel1.relative: 0.0 1.0; \
1547 #define GENLIST_PART_PADDING_BOTTOM_2LINE \
1548 GENLIST_PART_SPACER("elm.padding.bottom", \
1549 description { state: "default" 0.0; \
1550 min: 0 GENLIST_PADDING_SIZE_BOTTOM_2LINE; \
1551 max: -1 GENLIST_PADDING_SIZE_BOTTOM_2LINE; \
1555 rel1.relative: 0.0 1.0; \
1560 #define GENLIST_PART_PADDING_BOTTOM_SIZE( SIZE ) \
1561 GENLIST_PART_SPACER("elm.padding.bottom", \
1562 description { state: "default" 0.0; \
1568 rel1.relative: 0.0 1.0; \
1573 #define GENLIST_PART_PADDING_R( NAME, RIGHT ) \
1574 GENLIST_PART_SPACER(NAME, \
1575 description { state: "default" 0.0; \
1577 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1578 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1591 #define GENLIST_PART_PADDING_R_SIZE( NAME, RIGHT, SIZE ) \
1592 GENLIST_PART_SPACER(NAME, \
1593 description { state: "default" 0.0; \
1609 #define GENLIST_PART_PADDING_L( NAME, LEFT ) \
1610 GENLIST_PART_SPACER(NAME, \
1611 description { state: "default" 0.0; \
1613 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1614 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1627 #define GENLIST_PART_PADDING_L_SIZE( NAME, LEFT, SIZE ) \
1628 GENLIST_PART_SPACER(NAME, \
1629 description { state: "default" 0.0; \
1646 #define GENLIST_PART_PADDING_T_SIZE( NAME, TOP, SIZE ) \
1647 GENLIST_PART_SPACER(NAME, \
1648 description { state: "default" 0.0; \
1664 #define GENLIST_PART_PADDING_B_SIZE( NAME, BOTTOM, SIZE ) \
1665 GENLIST_PART_SPACER(NAME, \
1666 description { state: "default" 0.0; \
1682 #define GENLIST_PROGRAM_EXPAND_ROOT( TARGET ) \
1684 name: "go_expanded"; \
1685 signal: "elm,state,expanded"; \
1687 action: STATE_SET "expand_opened" 0.0; \
1691 name: "go_contracted"; \
1692 signal: "elm,state,contracted"; \
1694 action: STATE_SET "default" 0.0; \
1698 // 2.2.7 Genlist_Edit mode (Rename)
1699 // FIXME: padding is not needed when swallow content is NULL.
1700 // But how can edje know existence of swallow content?
1701 #define GENLIST_PART_FLIP \
1702 GENLIST_PART_RECT("elm.flip.bg", \
1704 description { state: "default" 0.0;\
1707 description { state: "flipped" 0.0; \
1708 inherit: "default" 0.0; \
1709 rel2.offset: 0 -3; \
1710 color: GENLIST_LIST_BG_COLOR;\
1713 GENLIST_PART_SPACER("elm.flip.padding.right", \
1714 description { state: "default" 0.0; \
1719 rel1.relative: 1 0; \
1722 GENLIST_PART_ICON("elm.flip.content", \
1723 GENLIST_DESCRIPTION("elm.padding.left", "elm.flip.padding.icon.left", \
1724 "elm.padding.top", "elm.padding.bottom", \
1729 description { state: "flipped" 0.0; \
1730 inherit: "default" 0.0; \
1734 GENLIST_PART_PADDING_R("elm.flip.padding.icon.left", "elm.flip.icon") \
1735 GENLIST_PART_ICON( "elm.flip.icon", \
1736 GENLIST_DESCRIPTION_RTB("elm.flip.padding.right", \
1737 "elm.padding.top", "elm.padding.bottom", \
1743 description { state: "flipped" 0.0; \
1744 inherit: "default" 0.0; \
1749 //****************************************************************************//
1750 // ******************************* Programs ********************************//
1751 //**************************************************************************//
1752 // signal: elm,state,%s,active
1753 // a "check" item named %s went active
1754 // signal: elm,state,%s,passive
1755 // a "check" item named %s went passive
1756 // default is passive
1757 #define GENLIST_PROGRAM_DEFAULT( TARGET ) \
1758 program { name: "default"; \
1759 signal: "elm,state,default"; \
1761 action: STATE_SET "default" 0.0; \
1765 #define GENLIST_PROGRAM_DISABLED( TARGET ) \
1766 program { name: "enabled"; \
1767 signal: "elm,state,enabled"; \
1769 action: STATE_SET "default" 0.0; \
1773 program { name: "disabled"; \
1774 signal: "elm,state,disabled"; \
1776 action: STATE_SET "disabled" 0.0; \
1781 #define GENLIST_PROGRAM_FOCUS \
1782 program { name: "focused"; \
1783 signal: "elm,state,focused"; \
1785 action: STATE_SET "focused" 0.0; \
1786 target: "focus_part"; \
1788 program { name: "unfocused"; \
1789 signal: "elm,state,unfocused"; \
1791 action: STATE_SET "default" 0.0; \
1792 target: "focus_part"; \
1795 #define GENLIST_PROGRAM_FOCUS_NORMAL \
1796 program { name: "focused"; \
1797 signal: "elm,state,focused"; \
1802 get_state(PART:"bg_reorder_clip", st, 30, vl); \
1803 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) \
1804 set_state(PART:"focus_part_reorder", "focused", 0.0); \
1806 set_state(PART:"focus_part", "focused", 0.0); \
1809 program { name: "unfocused"; \
1810 signal: "elm,state,unfocused"; \
1812 action: STATE_SET "default" 0.0; \
1813 target: "focus_part_reorder"; \
1814 target: "focus_part"; \
1817 #define GENLIST_PROGRAM_FOCUS_DIALOGUE \
1818 program { name: "focused"; \
1819 signal: "elm,state,focused"; \
1824 get_state(PART:"bg_dialogue", st, 30, vl); \
1825 if (!strcmp(st, "top") || !strcmp(st, "top_selected") || !strcmp(st, "2depth_top")) \
1826 set_state(PART:"focus_part_dialogue", "top_focused", 0.0); \
1827 else if (!strcmp(st, "center") || !strcmp(st, "center_selected") || !strcmp(st, "2depth_center")) \
1828 set_state(PART:"focus_part_dialogue", "center_focused", 0.0); \
1829 else if (!strcmp(st, "bottom") || !strcmp(st, "bottom_selected") || !strcmp(st, "2depth_bottom")) \
1830 set_state(PART:"focus_part_dialogue", "bottom_focused", 0.0); \
1831 else if (!strcmp(st, "default") || !strcmp(st, "selected") || !strcmp(st, "2depth")) \
1832 set_state(PART:"focus_part_dialogue", "focused", 0.0); \
1835 program { name: "unfocused"; \
1836 signal: "elm,state,unfocused"; \
1838 action: STATE_SET "default" 0.0; \
1839 target: "focus_part_dialogue"; \
1842 #define GENLIST_PROGRAM_SOUND( SRC ) \
1844 name: "sound_disable"SRC; \
1845 signal: "elm,state,slide,active"; \
1847 action: STATE_SET "disabled" 0.0; \
1851 name: "sound_enable"SRC; \
1852 signal: "elm,state,slide,passive"; \
1854 action: STATE_SET "default" 0.0; \
1857 program { name: "play_sound"SRC; \
1858 signal: "mouse,clicked,1"; \
1863 get_state(PART:"base", st, 30, vl); \
1864 if (strcmp(st, "disabled")) \
1865 run_program(PROGRAM:"play_button_press"SRC); \
1868 program { name: "play_button_press"SRC; \
1869 action: PLAY_SAMPLE "touch_sound" 1.0; \
1872 #define GENLIST_PROGRAM_REORDER_SOUND( SRC ) \
1873 program { name: "play_sound"SRC; \
1874 signal: "mouse,clicked,1"; \
1879 get_state(PART:"base", st, 30, vl); \
1880 if (strcmp(st, "disabled")) \
1881 run_program(PROGRAM:"play_button_press"SRC); \
1884 program { name: "play_button_press"SRC; \
1885 action: PLAY_SAMPLE "reorder_sound" 1.0; \
1888 #define GENLIST_PROGRAM_SELECT( TARGET ) \
1889 program { name: "selected"; \
1890 signal: "elm,state,selected"; \
1892 action: STATE_SET "selected" 0.0; \
1895 program { name: "unselected"; \
1896 signal: "elm,state,unselected"; \
1898 action: STATE_SET "default" 0.0; \
1902 #define GENLIST_PROGRAM_BG_DIALOGUE \
1903 program { name: "bg_default"; \
1904 signal: "elm,state,default"; \
1909 get_state(PART:"2depth", st, 30, vl); \
1910 if (!strcmp(st, "2depth")) \
1911 set_state(PART:"bg_dialogue", "2depth", 0.0); \
1913 set_state(PART:"bg_dialogue", "default", 0.0); \
1916 program { name: "bg_top"; \
1917 signal: "elm,state,top"; \
1922 get_state(PART:"2depth", st, 30, vl); \
1923 if (!strcmp(st, "2depth")) \
1924 set_state(PART:"bg_dialogue", "2depth_top", 0.0); \
1926 set_state(PART:"bg_dialogue", "top", 0.0); \
1929 program { name: "bg_center"; \
1930 signal: "elm,state,center"; \
1935 get_state(PART:"2depth", st, 30, vl); \
1936 if (!strcmp(st, "2depth")) \
1937 set_state(PART:"bg_dialogue", "2depth_center", 0.0); \
1939 set_state(PART:"bg_dialogue", "center", 0.0); \
1942 program { name: "bg_bottom"; \
1943 signal: "elm,state,bottom"; \
1948 get_state(PART:"2depth", st, 30, vl); \
1949 if (!strcmp(st, "2depth")) \
1950 set_state(PART:"bg_dialogue", "2depth_bottom", 0.0); \
1952 set_state(PART:"bg_dialogue", "bottom", 0.0); \
1956 #define GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
1957 program { name: "selected"; \
1958 signal: "elm,state,selected"; \
1963 get_state(PART:"bg_dialogue", st, 30, vl); \
1964 if (!strcmp(st, "top") || !strcmp(st, "2depth_top")) \
1965 set_state(PART:"bg_dialogue", "top_selected", 0.0); \
1966 else if (!strcmp(st, "center") || !strcmp(st, "2depth_center")) \
1967 set_state(PART:"bg_dialogue", "center_selected", 0.0); \
1968 else if (!strcmp(st, "bottom") || !strcmp(st, "2depth_bottom")) \
1969 set_state(PART:"bg_dialogue", "bottom_selected", 0.0); \
1970 else if (!strcmp(st, "default") || !strcmp(st, "2depth")) \
1971 set_state(PART:"bg_dialogue", "selected", 0.0); \
1972 run_program(PROGRAM:"target_selected"); \
1975 program { name: "unselected"; \
1976 signal: "elm,state,unselected"; \
1981 get_state(PART:"2depth", st, 30, vl); \
1982 if (!strcmp(st, "2depth")) { \
1983 get_state(PART:"bg_dialogue", st, 30, vl); \
1984 if (!strcmp(st, "top_selected")) \
1985 set_state(PART:"bg_dialogue", "2depth_top", 0.0); \
1986 else if (!strcmp(st, "center_selected")) \
1987 set_state(PART:"bg_dialogue", "2depth_center", 0.0); \
1988 else if (!strcmp(st, "bottom_selected")) \
1989 set_state(PART:"bg_dialogue", "2depth_bottom", 0.0); \
1990 else if (!strcmp(st, "selected")) \
1991 set_state(PART:"bg_dialogue", "2depth", 0.0); \
1993 get_state(PART:"bg_dialogue", st, 30, vl); \
1994 if (!strcmp(st, "top_selected")) \
1995 set_state(PART:"bg_dialogue", "top", 0.0); \
1996 else if (!strcmp(st, "center_selected")) \
1997 set_state(PART:"bg_dialogue", "center", 0.0); \
1998 else if (!strcmp(st, "bottom_selected")) \
1999 set_state(PART:"bg_dialogue", "bottom", 0.0); \
2000 else if (!strcmp(st, "selected")) \
2001 set_state(PART:"bg_dialogue", "default", 0.0); \
2003 run_program(PROGRAM:"target_unselected"); \
2006 program { name: "target_selected"; \
2007 action: STATE_SET "selected" 0.0; \
2010 program { name: "target_unselected"; \
2011 action: STATE_SET "default" 0.0; \
2014 GENLIST_PROGRAM_BG_DIALOGUE
2017 #define GENLIST_PROGRAM_SELECT_ARROW \
2018 program { name: "selected_arrow"; \
2019 signal: "elm,state,selected"; \
2024 get_state(PART:"arrow", st, 30, vl); \
2025 if (!strcmp(st, "default")) { \
2026 set_state(PART:"arrow", "default_press", 0.0); \
2027 set_state(PART:"arrow_clip", "default_press", 0.0); \
2029 else if (!strcmp(st, "expand_opened")) { \
2030 set_state(PART:"arrow", "expand_opened_press", 0.0); \
2031 set_state(PART:"arrow_clip", "expand_opened_press", 0.0); \
2035 program { name: "unselected_arrow"; \
2036 signal: "elm,state,unselected"; \
2041 get_state(PART:"arrow", st, 30, vl); \
2042 if (!strcmp(st, "default_press")) { \
2043 set_state(PART:"arrow", "default", 0.0); \
2044 set_state(PART:"arrow_clip", "default", 0.0); \
2046 else if (!strcmp(st, "expand_opened_press")) { \
2047 set_state(PART:"arrow", "expand_opened", 0.0); \
2048 set_state(PART:"arrow_clip", "expand_opened", 0.0); \
2053 #define GENLIST_PROGRAM_DECORATE( TARGET ) \
2054 program { name: "decorate_enabled_effect"; \
2055 signal: "elm,state,decorate,enabled,effect";\
2057 action: STATE_SET "decorate" 0.0;\
2060 program { name: "decorate_disabled_effect";\
2061 signal: "elm,state,decorate,disabled,effect";\
2063 action: STATE_SET "default" 0.0; \
2066 program { name: "decorate_enabled";\
2067 signal: "elm,state,decorate,enabled";\
2069 action: STATE_SET "decorate" 0.0;\
2072 program { name: "decorate_disabled";\
2073 signal: "elm,state,decorate,disabled";\
2075 action: STATE_SET "default" 0.0;\
2079 #define GENLIST_PROGRAM_REORDER( TARGET ) \
2080 program { name: "reorder_enabled"; \
2081 signal: "elm,state,reorder,mode_set"; \
2083 action: STATE_SET "reorder" 0.0; \
2086 program { name: "reorder_disabled"; \
2087 signal: "elm,state,reorder,mode_unset"; \
2089 action: STATE_SET "default" 0.0; \
2093 #define GENLIST_PROGRAM_DECORATE_REORDER( NAME, TARGET ) \
2094 program { name: "reorder_enabled"NAME; \
2095 signal: "elm,state,reorder,mode_set"; \
2100 get_state(PART:"state", st, 30, vl); \
2101 if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
2102 run_program(PROGRAM:"decorate_reorder_set"NAME); \
2104 run_program(PROGRAM:"reorder_set"NAME); \
2108 program { name: "reorder_disabled"NAME; \
2109 signal: "elm,state,reorder,mode_unset"; \
2114 get_state(PART:"state", st, 30, vl); \
2115 if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
2116 run_program(PROGRAM:"decorate_set"NAME); \
2118 run_program(PROGRAM:"default_set"NAME); \
2122 program { name: "decorate_enabled_effect"NAME; \
2123 signal: "elm,state,decorate,enabled,effect";\
2128 get_state(PART:"state", st, 30, vl); \
2129 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
2130 run_program(PROGRAM:"decorate_reorder_set"NAME); \
2132 run_program(PROGRAM:"decorate_set"NAME); \
2136 program { name: "decorate_disabled_effect"NAME;\
2137 signal: "elm,state,decorate,disabled,effect";\
2142 get_state(PART:"state", st, 30, vl); \
2143 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
2144 run_program(PROGRAM:"reorder_set"NAME); \
2146 run_program(PROGRAM:"default_set"NAME); \
2150 program { name: "decorate_enabled"NAME;\
2151 signal: "elm,state,decorate,enabled";\
2156 get_state(PART:"state", st, 30, vl); \
2157 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
2158 run_program(PROGRAM:"decorate_reorder_set"NAME); \
2160 run_program(PROGRAM:"decorate_set"NAME); \
2164 program { name: "decorate_disabled"NAME;\
2165 signal: "elm,state,decorate,disabled";\
2170 get_state(PART:"state", st, 30, vl); \
2171 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
2172 run_program(PROGRAM:"reorder_set"NAME); \
2174 run_program(PROGRAM:"default_set"NAME); \
2178 program { name: "default_set"NAME; \
2179 action: STATE_SET "default" 0.0;\
2183 program { name: "decorate_set"NAME; \
2184 action: STATE_SET "decorate" 0.0;\
2188 program { name: "reorder_set"NAME; \
2189 action: STATE_SET "reorder" 0.0;\
2193 program { name: "decorate_reorder_set"NAME; \
2194 action: STATE_SET "decorate_reorder" 0.0;\
2199 #define GENLIST_PROGRAM_FLIP \
2200 program { name: "flip_enabled"; \
2201 signal: "elm,state,flip,enabled"; \
2203 transition: DECELERATE 0.5; \
2204 action: STATE_SET "flipped" 0.0; \
2205 target: "elm.flip.content"; \
2206 target: "elm.flip.icon"; \
2208 program { name: "flip_disabled"; \
2209 signal: "elm,state,flip,disabled"; \
2211 transition: DECELERATE 0.5; \
2212 action: STATE_SET "default" 0.0; \
2213 target: "elm.flip.content"; \
2214 target: "elm.flip.icon"; \
2216 program { name: "flip_enabled_bg"; \
2217 signal: "elm,state,flip,enabled"; \
2219 action: STATE_SET "flipped" 0.0; \
2220 target: "elm.flip.bg"; \
2222 program { name: "flip_disabled_bg"; \
2223 signal: "elm,state,flip,disabled"; \
2225 action: STATE_SET "default" 0.0; \
2226 target: "elm.flip.bg"; \
2229 #define GENLIST_PROGRAM_FLIP_TARGET( TARGET ) \
2230 program { name: "flip_enabled_target"; \
2231 signal: "elm,state,flip,enabled"; \
2233 action: STATE_SET "flipped" 0.0; \
2236 program { name: "flip_disabled_target"; \
2237 signal: "elm,state,flip,disabled"; \
2239 action: STATE_SET "default" 0.0; \
2243 #define GENLIST_PROGRAM_FLIP_EFFECT_TARGET( TARGET ) \
2244 program { name: "flip_enabled_effect"; \
2245 signal: "elm,state,flip,enabled"; \
2247 transition: DECELERATE 0.5; \
2248 action: STATE_SET "flipped" 0.0; \
2251 program { name: "flip_disabled_effect"; \
2252 signal: "elm,state,flip,disabled"; \
2254 transition: DECELERATE 0.5; \
2255 action: STATE_SET "default" 0.0; \
2259 #define GENLIST_PROGRAM_EDITMODE \
2260 program { name: "edit_enabled"; \
2261 signal: "elm,state,edit,enabled"; \
2263 action: STATE_SET "editmode" 0.0; \
2264 target: "elm.padding.right.edit"; \
2265 target: "elm.icon.edit"; \
2266 target: "bg_dialogue_right"; \
2268 program { name: "edit_disabled"; \
2269 signal: "elm,state,edit,disabled"; \
2271 action: STATE_SET "default" 0.0; \
2272 target: "elm.padding.right.edit"; \
2273 target: "elm.icon.edit"; \
2274 target: "bg_dialogue_right"; \
2277 /***************************************************************************/
2278 /***************************************************************************/
2280 #define GENLIST_PROGRAMS_NORMAL( TARGET ) \
2282 GENLIST_PROGRAM_DEFAULT( TARGET \
2284 target: "bg_clip"; \
2285 target: "bottom_line"; \
2286 target: "bottom_line2"; \
2287 target: "bottom_line_clip"; \
2288 target: "bg_reorder"; \
2289 target: "elm.padding.left"; \
2290 target: "elm.padding.right"; \
2292 GENLIST_PROGRAM_DISABLED( TARGET \
2294 target: "bottom_line"; \
2295 target: "bottom_line2"; \
2296 target: "bg_reorder"; \
2298 GENLIST_PROGRAM_FOCUS_NORMAL \
2299 GENLIST_PROGRAM_SELECT( TARGET \
2301 target: "bottom_line"; \
2302 target: "bottom_line2"; \
2303 target: "bg_reorder"; \
2305 GENLIST_PROGRAM_SOUND("bg") \
2306 GENLIST_PROGRAM_REORDER_SOUND("bg_reorder") \
2307 GENLIST_PROGRAM_DECORATE_REORDER("normal", TARGET \
2308 target: "bg_clip"; \
2309 target: "bg_reorder_clip"; \
2310 target: "bottom_line_clip"; \
2311 target: "elm.padding.left"; \
2312 target: "elm.padding.right"; \
2314 GENLIST_PROGRAM_FLIP \
2317 #define GENLIST_PROGRAMS_DIALOGUE( TARGET ) \
2319 GENLIST_PROGRAM_DEFAULT( TARGET \
2320 target: "bg_dialogue"; \
2321 target: "elm.padding.left"; \
2322 target: "elm.padding.right"; \
2324 GENLIST_PROGRAM_DISABLED( TARGET ) \
2325 GENLIST_PROGRAM_FOCUS_DIALOGUE \
2326 GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
2327 program { name: "bg_color_change"; \
2328 signal: "bg_color_change"; \
2330 action: STATE_SET "2depth" 0.0; \
2333 GENLIST_PROGRAM_SOUND("bg_dialogue") \
2334 GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
2335 target: "elm.padding.left"; \
2336 target: "elm.padding.right"; \
2338 GENLIST_PROGRAM_FLIP \
2339 GENLIST_PROGRAM_EDITMODE \
2342 #define GENLIST_PROGRAMS_DECORATE_EFFECT( TARGET ) \
2343 program { name: "decorate_enabled_effect_ef"; \
2344 signal: "elm,state,decorate,enabled,effect";\
2346 transition: DECELERATE 0.5;\
2347 action: STATE_SET "decorate" 0.0;\
2350 program { name: "decorate_disabled_effect_ef";\
2351 signal: "elm,state,decorate,disabled,effect";\
2353 transition: ACCELERATE 0.5;\
2354 action: STATE_SET "default" 0.0;\
2357 program { name: "decorate_enabled_ef";\
2358 signal: "elm,state,decorate,enabled";\
2360 action: STATE_SET "decorate" 0.0;\
2363 program { name: "decorate_disabled_ef";\
2364 signal: "elm,state,decorate,disabled";\
2366 action: STATE_SET "default" 0.0;\
2370 #define GENLIST_PROGRAMS_ENTRY( TARGET ) \
2371 GENLIST_PROGRAM_DEFAULT( TARGET \
2373 target: "bg_clip"; \
2374 target: "bottom_line"; \
2375 target: "bottom_line2"; \
2376 target: "bottom_line_clip"; \
2377 target: "bg_reorder"; \
2378 target: "elm.padding.left"; \
2379 target: "elm.padding.right"; \
2381 GENLIST_PROGRAM_DISABLED( TARGET ) \
2382 GENLIST_PROGRAM_FOCUS_NORMAL \
2383 GENLIST_PROGRAM_DECORATE_REORDER("editfield", TARGET \
2384 target: "bg_clip"; \
2385 target: "bg_reorder_clip"; \
2386 target: "bottom_line_clip"; \
2387 target: "elm.padding.left"; \
2388 target: "elm.padding.right"; \
2391 #define GENLIST_PROGRAMS_DIALOGUE_ENTRY( TARGET ) \
2392 GENLIST_PROGRAM_DEFAULT( TARGET \
2393 target: "bg_dialogue"; \
2394 target: "elm.padding.left"; \
2395 target: "elm.padding.right"; \
2397 GENLIST_PROGRAM_DISABLED( TARGET ) \
2398 GENLIST_PROGRAM_FOCUS_DIALOGUE \
2399 program { name: "bg_color_change"; \
2400 signal: "bg_color_change"; \
2402 action: STATE_SET "2depth" 0.0; \
2405 GENLIST_PROGRAM_BG_DIALOGUE \
2406 GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
2407 target: "elm.padding.left"; \
2408 target: "elm.padding.right"; \
2410 GENLIST_PROGRAM_FLIP \
2411 GENLIST_PROGRAM_EDITMODE
2414 #define GENLIST_PROGRAMS_THUMB \
2415 GENLIST_PROGRAM_DECORATE_REORDER( "thumb", target: "elm.thumb"; ) \
2416 GENLIST_PROGRAM_FLIP_TARGET( target: "elm.thumb.clip"; ) \
2417 program { name: "enabled_thumb"; \
2418 signal: "elm,state,enabled"; \
2420 action: STATE_SET "default" 0.0; \
2422 target: "elm.thumb"; \
2424 program { name: "disabled_thumb"; \
2425 signal: "elm,state,disabled"; \
2427 action: STATE_SET "disabled" 0.0; \
2429 target: "elm.thumb"; \
2431 program { name: "selected_thumb"; \
2432 signal: "elm,state,selected"; \
2437 get_state(PART:"elm.thumb", st, 30, vl); \
2438 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) \
2439 set_state(PART:"elm.thumb", "reorder_selected", 0.0); \
2441 set_state(PART:"elm.thumb", "selected", 0.0); \
2444 program { name: "unselected_thumb"; \
2445 signal: "elm,state,unselected"; \
2450 get_state(PART:"elm.thumb", st, 30, vl); \
2451 if (!strcmp(st, "reorder_selected")) \
2452 set_state(PART:"elm.thumb", "reorder", 0.0); \
2454 set_state(PART:"elm.thumb", "default", 0.0); \
2458 //****************************************************************************//
2459 // ******************************* Icon Part ******************************//
2460 //***************************************************************************//
2461 #define GENLIST_PART_ICON(NAME, DESCRIPION) \
2462 part { name: NAME; \
2468 #define GENLIST_PARAM_ICON_BIG \
2469 min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
2470 max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
2472 #define GENLIST_PARAM_ICON_SMALL \
2473 min: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE; \
2474 max: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE;
2476 #define GENLIST_PARAM_ICON_BTN_01 \
2477 min: 0 GENLIST_BTN_01_HEIGHT; \
2478 max: -1 GENLIST_BTN_01_HEIGHT;
2480 #define GENLIST_PARAM_ICON_BTN_02 \
2481 min: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE; \
2482 max: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE;
2484 #define GENLIST_PARAM_ICON_ONOFF_WIDTH \
2485 min: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT; \
2486 max: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT;
2488 #define GENLIST_PARAM_ICON_THUMBNAIL1\
2489 min: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE; \
2490 max: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE;
2492 #define GENLIST_PARAM_ICON_CHECK_RADIO \
2493 min: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE; \
2494 max: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE;
2496 #define GENLIST_PARAM_ICON_STAR \
2497 min: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2498 max: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2500 #define GENLIST_PART_ICON_BIG_R(NAME, RIGHT) \
2501 GENLIST_PART_ICON(NAME, \
2502 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2504 GENLIST_PARAM_ICON_BIG \
2508 #define GENLIST_PART_ICON_BIG_L(NAME, LEFT) \
2509 GENLIST_PART_ICON(NAME, \
2510 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2511 GENLIST_PARAM_ICON_BIG \
2516 #define GENLIST_PART_ICON_SMALL_L(NAME, LEFT) \
2517 GENLIST_PART_ICON(NAME, \
2518 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2519 GENLIST_PARAM_ICON_SMALL \
2524 #define GENLIST_PART_ICON_SMALL_LB(NAME, LEFT, BOTTOM) \
2525 GENLIST_PART_ICON(NAME, \
2526 GENLIST_DESCRIPTION_LB(LEFT, BOTTOM, \
2527 GENLIST_PARAM_ICON_SMALL \
2532 #define GENLIST_PART_ICON_SMALL_LTB(NAME, LEFT, TOP, BOTTOM) \
2533 GENLIST_PART_ICON(NAME, \
2534 GENLIST_DESCRIPTION_LTB(LEFT, TOP, BOTTOM, \
2535 GENLIST_PARAM_ICON_SMALL \
2540 #define GENLIST_PART_ICON_SMALL_RTB(NAME, RIGHT, TOP, BOTTOM) \
2541 GENLIST_PART_ICON(NAME, \
2542 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2543 GENLIST_PARAM_ICON_SMALL \
2548 #define GENLIST_PART_ICON_BTN_01_RTB(NAME, RIGHT, TOP, BOTTOM) \
2549 GENLIST_PART_ICON(NAME, \
2550 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM,\
2551 GENLIST_PARAM_ICON_BTN_01 \
2556 #define GENLIST_PART_ICON_BTN_02_RTB(NAME, RIGHT, TOP, BOTTOM) \
2557 GENLIST_PART_ICON(NAME, \
2558 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM,\
2559 GENLIST_PARAM_ICON_BTN_02 \
2564 #define GENLIST_PART_ICON_BTN_ONOFF_R(NAME, RIGHT) \
2565 GENLIST_PART_ICON(NAME, \
2566 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2567 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2572 #define GENLIST_PART_ICON_BTN_ONOFF_L(NAME, LEFT) \
2573 GENLIST_PART_ICON(NAME, \
2574 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2575 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2580 #define GENLIST_PART_ICON_THUMBNAIL1_R(NAME, RIGHT) \
2581 GENLIST_PART_ICON(NAME, \
2582 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2583 GENLIST_PARAM_ICON_THUMBNAIL1 \
2588 #define GENLIST_PART_ICON_CHECK_RADIO_L(NAME, LEFT) \
2589 GENLIST_PART_ICON(NAME, \
2590 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2591 GENLIST_PARAM_ICON_CHECK_RADIO \
2596 #define GENLIST_PART_ICON_STAR_RTB(NAME, RIGHT, TOP, BOTTOM) \
2597 GENLIST_PART_ICON(NAME, \
2598 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2599 GENLIST_PARAM_ICON_STAR \
2604 /*****************************************************************************/
2605 /******************************* Genlist IMAGE ********************************/
2606 /*****************************************************************************/
2607 #define GENLIST_PART_IMAGE(NAME, DESCRIPION) \
2608 part { name: NAME; \
2614 #define GENLIST_PARAM_PASSWORD_IMAGE \
2615 min: GENLIST_ICON_PASSWORD_SIZE GENLIST_ICON_PASSWORD_SIZE; \
2616 max: GENLIST_ICON_PASSWORD_SIZE GENLIST_ICON_PASSWORD_SIZE; \
2617 image.normal: "00_search_edit_field_bg.png"; \
2618 image.border: 12 13 12 13; \
2619 image.border_scale: 1;
2621 /*****************************************************************************/
2622 /******************************* Genlist Bubble ********************************/
2623 /*****************************************************************************/
2624 #define GENLIST_IMAGES_EXPANDABLE_BTN \
2626 image: "00_button_expand_closed.png" COMP; \
2627 image: "00_button_expand_opened.png" COMP; \
2630 #define GENLIST_PART_EXPANDABLE_ARROW \
2631 GENLIST_PART_ICON("touch_arrow", \
2632 ignore_flags: ON_HOLD; \
2633 GENLIST_DESCRIPTION_ENVELOP("arrow", ) \
2635 GENLIST_PART_RECT("arrow_clip", \
2636 GENLIST_DESCRIPTION_ENVELOP("arrow", \
2637 color: 250 250 250 255; \
2639 description { state: "disabled" 0.0; \
2640 color: 250 250 250 76; \
2642 description { state: "expand_opened_press" 0.0; \
2643 color: 250 250 250 255; \
2645 description { state: "default_press" 0.0; \
2646 color: 250 250 250 255; \
2649 GENLIST_PART_IMAGE("arrow", \
2650 clip_to: "arrow_clip"; \
2651 ignore_flags: ON_HOLD; \
2653 GENLIST_DESCRIPTION_R("elm.padding.right", \
2657 image.normal: "00_button_expand_closed.png"; \
2659 description { state: "default_press" 0.0; \
2660 inherit: "default" 0.0; \
2661 image.normal: "00_button_expand_closed_press.png"; \
2663 description { state: "expand_opened" 0.0; \
2664 inherit: "default" 0.0; \
2665 image.normal: "00_button_expand_opened.png"; \
2667 description { state: "expand_opened_press" 0.0; \
2668 inherit: "expand_opened" 0.0; \
2669 image.normal: "00_button_expand_opened_press.png"; \
2672 /*****************************************************************************/
2673 /******************************* Genlist RECT ********************************/
2674 /*****************************************************************************/
2675 #define GENLIST_PART_SPACER(NAME, DESCRIPION) \
2676 part { name: NAME; \
2683 #define GENLIST_PART_RECT(NAME, DESCRIPION) \
2684 part { name: NAME; \
2690 /*****************************************************************************/
2691 /******************************* Genlist TEXT ********************************/
2692 /*****************************************************************************/
2693 // FIXME: because, when naviframe item is pushed,
2694 // naviframe freeze all events so text events cannot be repeated. :-(
2695 // So all texts should have it's own sound program, not repeat to BG
2696 #define GENLIST_PART_TEXT(NAME, DESCRIPION) \
2697 part { name: NAME; \
2703 #define GENLIST_PART_TEXTBLOCK(NAME, DESCRIPION) \
2704 part { name: NAME; \
2710 /*************************** parameters **********************************/
2711 #define GENLIST_PARAM_TEXT_LIMIT_RB \
2712 rel1.to_x: "base"; /* This limits text growing. */\
2713 rel1.relative: 0.35 0; /* This limits text growing. */\
2714 text.max: 1 0; /* This limits text growing. */
2716 #define GENLIST_PARAM_TEXT_LIMIT_RT \
2717 rel1.to_x: "base"; /* This limits text growing. */\
2718 rel1.relative: 0.35 1; /* This limits text growing. */\
2719 text.max: 1 0; /* This limits text growing. */
2721 #define GENLIST_PARAM_TEXT_LIMIT_RTB \
2722 rel1.to_x: "base"; /* This limits text growing. */\
2723 rel1.relative: 0.35 1; /* This limits text growing. */\
2724 text.max: 1 0; /* This limits text growing. */
2727 #define GENLIST_PARAM_DIALOGUE_GROUP_TITLE \
2728 color: GENLIST_DIALOGUE_GROUP_TITLE_COLOR; \
2731 font: "Tizen:style=Bold"; \
2733 size: GENLIST_DIALOGUE_GROUP_TITLE_SIZE; \
2734 text_class: "list_item"; \
2738 #define GENLIST_PARAM_PASSWORD_TITLE \
2739 color: DIALOGUE_PASSWORD_TITLE_COLOR; \
2741 font: "Tizen:style=Bold"; \
2742 size: DIALOGUE_PASSWORD_TITLE_SIZE; \
2745 text_class: "list_item"; \
2748 // Progress main text
2749 #define GENLIST_PARAM_PROGRESS_MAIN \
2750 color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
2754 font: "Tizen:style=Regular"; \
2755 size: GENLIST_PROGRESS_MAIN_TEXT_SIZE; \
2756 text_class: "list_item"; \
2760 #define GENLIST_PARAM_LISTITEM \
2761 color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
2765 font: "Tizen:style=Regular"; \
2766 size: GENLIST_LIST_MAIN_TEXT_SIZE; \
2767 text_class: "list_item"; \
2770 #define GENLIST_PARAM_LISTITEM_TB \
2773 style: "genlist_style_list_main_text_unread"; \
2776 #define GENLIST_PARAM_LISTITEM_TB_WRAP \
2779 style: "genlist_style_list_main_text_unread_wrap"; \
2783 #define GENLIST_PARAM_SUBITEM_DEFAULT \
2784 color: GENLIST_LIST_SUB_TEXT_DEFAULT_COLOR; \
2788 font: "Tizen:style=Bold"; \
2789 size: GENLIST_LIST_SUB_TEXT_SIZE; \
2790 text_class: "tizen"; \
2793 #define GENLIST_PARAM_SUBITEM_SETTINGS \
2794 color: GENLIST_LIST_SUB_TEXT_SETTINGS_COLOR; \
2798 font: "Tizen:style=Bold"; \
2799 size: GENLIST_LIST_SUB_TEXT_SIZE; \
2800 text_class: "tizen"; \
2803 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2806 style: "genlist_style_list_sub_text_default"; \
2809 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB_WRAP \
2812 style: "genlist_style_list_sub_text_default_wrap"; \
2815 #define GENLIST_PARAM_SUBITEM_SETTINGS_TB \
2818 style: "genlist_style_list_sub_text_settings"; \
2822 #define GENLIST_PARAM_SUBITEM_02 \
2823 color: GENLIST_LIST_SUB_TEXT_02_COLOR; \
2827 font: "Tizen:style=Bold"; \
2828 size: GENLIST_LIST_SUB_TEXT_02_SIZE; \
2829 text_class: "tizen"; \
2832 // Dialogue group - Apps
2833 #define GENLIST_PARAM_APPS_NAME\
2834 color: GENLIST_APPS_NAME_COLOR; \
2838 font: "Tizen:style=Bold"; \
2839 size: GENLIST_APPS_NAME_SIZE; \
2840 text_class: "list_item"; \
2843 #define GENLIST_PARAM_APPS_INC\
2844 color: GENLIST_APPS_INC_COLOR; \
2848 font: "Tizen:style=Bold"; \
2849 size: GENLIST_APPS_INC_SIZE; \
2850 text_class: "list_item"; \
2853 #define GENLIST_PARAM_APPS_RATING\
2854 color: GENLIST_APPS_RATING_COLOR; \
2858 font: "Tizen:style=Bold"; \
2859 size: GENLIST_APPS_RATING_SIZE; \
2860 text_class: "list_item"; \
2863 #define GENLIST_PARAM_APPS_PRICE\
2864 color: GENLIST_APPS_PRICE_ORIGINAL_COLOR; \
2868 font: "Tizen:style=Bold"; \
2869 size: GENLIST_APPS_PRICE_SIZE; \
2870 text_class: "list_item"; \
2873 #define GENLIST_PARAM_APPS_PRICE_SALE\
2874 color: GENLIST_APPS_PRICE_SALE_COLOR; \
2878 font: "Tizen:style=Bold"; \
2879 size: GENLIST_APPS_PRICE_SIZE; \
2880 text_class: "list_item"; \
2883 #define GENLIST_PARAM_CONTENTS_TEXT \
2884 color: GENLIST_CONTENTS_TEXT_COLOR; \
2888 font: "Tizen:style=Regular"; \
2889 size: GENLIST_CONTENTS_TEXT_SIZE; \
2890 text_class: "tizen"; \
2893 /*************************** Descriptions **********************************/
2895 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2896 description { state: "disabled" 0.0; \
2897 inherit: "default" 0.0; \
2898 color: GENLIST_LIST_MAIN_TEXT_UNREAD_DIM_COLOR; \
2900 description { state: "read" 0.0; \
2901 inherit: "default" 0.0; \
2902 color: GENLIST_LIST_MAIN_TEXT_READ_COLOR; \
2904 description { state: "read,disabled" 0.0; \
2905 inherit: "default" 0.0; \
2906 color: GENLIST_LIST_MAIN_TEXT_READ_DIM_COLOR; \
2908 description { state: "selected" 0.0; \
2909 inherit: "default" 0.0; \
2910 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2913 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2914 description { state: "disabled" 0.0; \
2915 inherit: "default" 0.0; \
2916 text.style: "genlist_style_list_main_text_unread_dim"; \
2918 description { state: "read" 0.0; \
2919 inherit: "default" 0.0; \
2920 text.style: "genlist_style_list_main_text_read"; \
2922 description { state: "read,disabled" 0.0; \
2923 inherit: "default" 0.0; \
2924 text.style: "genlist_style_list_main_text_read_dim"; \
2926 description { state: "selected" 0.0; \
2927 inherit: "default" 0.0; \
2928 text.style: "genlist_style_list_main_text_focus"; \
2932 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2933 description { state: "disabled" 0.0; \
2934 inherit: "default" 0.0; \
2935 color: GENLIST_LIST_SUB_TEXT_DEFAULT_DIM_COLOR; \
2937 description { state: "selected" 0.0; \
2938 inherit: "default" 0.0; \
2939 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2942 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2943 description { state: "disabled" 0.0; \
2944 inherit: "default" 0.0; \
2945 text.style: "genlist_style_list_sub_text_default_dim"; \
2947 description { state: "selected" 0.0; \
2948 inherit: "default" 0.0; \
2949 text.style: "genlist_style_list_sub_text_focus"; \
2952 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB_WRAP \
2953 description { state: "disabled" 0.0; \
2954 inherit: "default" 0.0; \
2955 text.style: "genlist_style_list_sub_text_default_dim_wrap"; \
2957 description { state: "selected" 0.0; \
2958 inherit: "default" 0.0; \
2959 text.style: "genlist_style_list_sub_text_focus_wrap"; \
2962 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
2963 description { state: "disabled" 0.0; \
2964 inherit: "default" 0.0; \
2965 color: GENLIST_LIST_SUB_TEXT_SETTINGS_DIM_COLOR; \
2967 description { state: "selected" 0.0; \
2968 inherit: "default" 0.0; \
2969 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2972 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
2973 description { state: "disabled" 0.0; \
2974 inherit: "default" 0.0; \
2975 text.style: "genlist_style_list_sub_text_settings_dim"; \
2977 description { state: "selected" 0.0; \
2978 inherit: "default" 0.0; \
2979 text.style: "genlist_style_list_sub_text_focus"; \
2982 // list main text multiline
2983 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB_WRAP \
2984 description { state: "disabled" 0.0; \
2985 inherit: "default" 0.0; \
2986 text.style: "genlist_style_list_main_text_unread_dim_wrap"; \
2988 description { state: "selected" 0.0; \
2989 inherit: "default" 0.0; \
2990 text.style: "genlist_style_list_main_text_focus_wrap"; \
2993 /*************************** Parts **********************************/
2994 #define GENLIST_PART_DIALOGUE_GROUP_HELP_TEXT(NAME, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2995 GENLIST_PART_TEXTBLOCK(NAME, \
2996 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2999 style: "genlist_style_dialogue_group_help_text"; \
3004 #define GENLIST_PART_LISTITEM(NAME, DESCRIPTION) \
3005 GENLIST_PART_TEXT(NAME, \
3007 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
3010 #define GENLIST_PART_LISTITEM_TB(NAME, DESCRIPTION) \
3011 GENLIST_PART_TEXTBLOCK(NAME, \
3013 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
3016 #define GENLIST_PART_LISTITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
3017 GENLIST_PART_TEXT(NAME, \
3018 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
3020 GENLIST_PARAM_LISTITEM \
3023 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
3026 #define GENLIST_PART_LISTITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
3027 GENLIST_PART_TEXTBLOCK(NAME, \
3028 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
3031 GENLIST_PARAM_LISTITEM_TB \
3034 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
3037 #define GENLIST_PART_LISTITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
3038 GENLIST_PART_TEXT(NAME, \
3039 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
3041 GENLIST_PARAM_LISTITEM \
3044 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
3047 #define GENLIST_PART_LISTITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
3048 GENLIST_PART_TEXT(NAME, \
3049 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
3052 GENLIST_PARAM_LISTITEM \
3055 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
3058 #define GENLIST_PART_LISTITEM_LRT_TB(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
3059 GENLIST_PART_TEXTBLOCK(NAME, \
3060 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
3063 GENLIST_PARAM_LISTITEM_TB \
3066 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
3069 #define GENLIST_PART_LISTITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
3070 GENLIST_PART_TEXTBLOCK(NAME, \
3071 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
3074 GENLIST_PARAM_LISTITEM_TB \
3077 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
3080 #define GENLIST_PART_SUBITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
3081 GENLIST_PART_TEXT(NAME, \
3082 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
3084 GENLIST_PARAM_SUBITEM_DEFAULT \
3087 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3090 #define GENLIST_PART_SUBITEM(NAME, DESCRIPTION) \
3091 GENLIST_PART_TEXT(NAME, \
3093 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3096 #define GENLIST_PART_SUBITEM_R(NAME, HEIGHT, RIGHT) \
3097 GENLIST_PART_TEXT(NAME, \
3098 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
3101 GENLIST_PARAM_TEXT_LIMIT_RB \
3102 GENLIST_PARAM_SUBITEM_DEFAULT \
3104 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3107 #define GENLIST_PART_SUBITEM_RB(NAME, HEIGHT, RIGHT, BOTTOM) \
3108 GENLIST_PART_TEXT(NAME, \
3109 GENLIST_DESCRIPTION_RB(RIGHT, BOTTOM, \
3112 GENLIST_PARAM_TEXT_LIMIT_RB \
3113 GENLIST_PARAM_SUBITEM_DEFAULT \
3115 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3118 #define GENLIST_PART_SUBITEM_RB_TB(NAME, HEIGHT, RIGHT, BOTTOM) \
3119 GENLIST_PART_TEXTBLOCK(NAME, \
3120 GENLIST_DESCRIPTION_RB(RIGHT, BOTTOM, \
3122 GENLIST_PARAM_TEXT_LIMIT_RB \
3124 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3126 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3129 #define GENLIST_PART_SUBITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM) \
3130 GENLIST_PART_TEXTBLOCK(NAME, \
3131 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
3133 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3135 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3138 #define GENLIST_PART_SUBITEM_R_FIXED(NAME, WIDTH, HEIGHT, RIGHT) \
3139 GENLIST_PART_TEXT(NAME, \
3140 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
3141 min: WIDTH HEIGHT; \
3143 GENLIST_PARAM_SUBITEM_DEFAULT \
3145 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3148 #define GENLIST_PART_SUBITEM_R_FIXED_TB(NAME, WIDTH, HEIGHT, RIGHT) \
3149 GENLIST_PART_TEXTBLOCK(NAME, \
3150 GENLIST_DESCRIPTION_R(RIGHT, \
3151 min: WIDTH HEIGHT; \
3153 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3155 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3158 #define GENLIST_PART_SUBITEM_L_FIXED(NAME, WIDTH, HEIGHT, LEFT) \
3159 GENLIST_PART_TEXT(NAME, \
3160 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
3161 min: WIDTH HEIGHT; \
3163 GENLIST_PARAM_SUBITEM_DEFAULT \
3165 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3168 #define GENLIST_PART_SUBITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
3169 GENLIST_PART_TEXT(NAME, \
3170 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
3172 GENLIST_PARAM_SUBITEM_DEFAULT \
3175 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3178 #define GENLIST_PART_SUBITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT) \
3179 GENLIST_PART_TEXTBLOCK(NAME, \
3180 GENLIST_DESCRIPTION_LR(LEFT, RIGHT, \
3182 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3184 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3187 #define GENLIST_PART_SUBITEM_LB(NAME, HEIGHT, LEFT, RIGHT) \
3188 GENLIST_PART_TEXT(NAME, \
3189 GENLIST_DESCRIPTION_LB(LEFT, BOTTOM, \
3191 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3193 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3196 #define GENLIST_PART_SUBITEM_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3197 GENLIST_PART_TEXT(NAME, \
3198 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3200 GENLIST_PARAM_SUBITEM_DEFAULT \
3203 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3206 #define GENLIST_PART_SUBITEM_SETTINGS_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM, PARAM) \
3207 GENLIST_PART_TEXT(NAME, \
3208 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3210 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
3211 GENLIST_PARAM_SUBITEM_SETTINGS\
3214 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
3217 #define GENLIST_PART_SUBITEM_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3218 GENLIST_PART_TEXTBLOCK(NAME, \
3219 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3221 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3224 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3227 #define GENLIST_PART_SUBITEM_SETTINGS_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3228 GENLIST_PART_TEXTBLOCK(NAME, \
3229 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3231 GENLIST_PARAM_SUBITEM_SETTINGS_TB \
3234 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
3237 #define GENLIST_PART_SUBITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
3238 GENLIST_PART_TEXT(NAME, \
3239 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
3242 GENLIST_PARAM_SUBITEM_DEFAULT \
3244 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3247 #define GENLIST_PART_SUBITEM_SETTINGS_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
3248 GENLIST_PART_TEXT(NAME, \
3249 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
3252 GENLIST_PARAM_SUBITEM_SETTINGS \
3254 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
3257 #define GENLIST_PART_SUBITEM_LTB(NAME, HEIGHT, LEFT, TOP, BOTTOM) \
3258 GENLIST_PART_TEXT(NAME, \
3259 GENLIST_DESCRIPTION_LTB(LEFT, TOP, BOTTOM, \
3261 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
3262 GENLIST_PARAM_SUBITEM_DEFAULT \
3264 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3267 #define GENLIST_PART_SUBITEM_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3268 GENLIST_PART_TEXT(NAME, \
3269 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3271 GENLIST_PARAM_TEXT_LIMIT_RT \
3272 GENLIST_PARAM_SUBITEM_DEFAULT \
3275 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3278 #define GENLIST_PART_SUBITEM_RTB_TB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3279 GENLIST_PART_TEXTBLOCK(NAME, \
3280 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3282 GENLIST_PARAM_TEXT_LIMIT_RT \
3283 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3286 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3289 #define GENLIST_PART_SUBITEM_02_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3290 GENLIST_PART_TEXT(NAME, \
3291 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3293 GENLIST_PARAM_TEXT_LIMIT_RT \
3294 GENLIST_PARAM_SUBITEM_02 \
3297 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3300 #define GENLIST_PARAM_LIST_BUBBLE_TEXT \
3301 color: GENLIST_LIST_BUBBLE_TEXT_COLOR; \
3305 font: "Tizen:style=Bold"; \
3306 size: GENLIST_LIST_BUBBLE_TEXT_SIZE; \
3307 text_class: "tizen"; \
3310 // FIXME: Need to find why rel2.offset: 9 -1 will not fix the alignment of bubble text ?
3311 #define GENLIST_PART_LIST_BUBBLE_TEXT_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3312 GENLIST_PART_IMAGE("elm.bubble", \
3314 GENLIST_DESCRIPTION_ENVELOP(NAME, \
3316 normal: "00_list_bubble_bg.png"; \
3319 rel1.offset: -10 0; \
3320 rel2.offset: 8 -1; \
3324 color: GENLIST_LIST_BUBBLE_COLOR; \
3326 description { state: "selected" 0.0; \
3327 inherit: "default" 0.0; \
3328 color: GENLIST_LIST_BUBBLE_PRESS_COLOR; \
3331 GENLIST_PART_TEXT(NAME, \
3332 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3334 GENLIST_PARAM_TEXT_LIMIT_RT \
3335 rel2.offset: -10 -1; /* This maintain the text alignment with bubble text. */\
3336 GENLIST_PARAM_LIST_BUBBLE_TEXT \
3338 description { state: "selected" 0.0; \
3339 inherit: "default" 0.0; \
3340 color: GENLIST_LIST_BUBBLE_TEXT_FOCUS_COLOR; \
3345 #define GENLIST_PART_BASE__( param_item_height ) \
3346 part { name: "base"; \
3350 description { state: "default" 0.0; \
3351 min: 0 param_item_height; \
3352 color: LAYOUT_GROUP_LIST_BG_COLOR_INC; \
3356 /******************************************************************************/
3358 /******************************************************************************/
3359 // FIXME: UX do not define selected state. But I thinkt that it is neededs :(
3361 #define GENLIST_PROOGRAM_EXPAND(SRC, TARGET) \
3364 signal: "mouse,clicked,1"; \
3366 action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; \
3369 name: "go_expanded"; \
3370 signal: "elm,state,expanded"; \
3372 action: STATE_SET "active" 0.0; \
3376 name: "go_contracted"; \
3377 signal: "elm,state,contracted"; \
3379 action: STATE_SET "default" 0.0; \
3383 #define GENLIST_PART_BASE_LIST_H( HEIGHT) \
3384 part { name: "base"; \
3388 description { state: "default" 0.0; \
3391 rel2.relative: 1 0; \
3392 rel2.to: "bottom_line"; \
3396 GENLIST_PART_BOTTOM_LINE
3398 #define GENLIST_PART_DIALOGUE_ITEM \
3399 part { name: "elm.rect.dialogue"; \
3402 description { state: "default" 0.0; \
3405 color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
3406 rel2.relative: 0.0 1.0; \
3411 #define GENLIST_PART_DIALOGUE_RIGHT_LINE \
3412 part { name: "elm.rect.dialogue.right.line"; \
3415 description { state: "default" 0.0; \
3419 relative: 1.0 0.0; \
3423 color: GENLIST_LIST_LINE1_COLOR; \
3427 #define GENLIST_PROGRAM_FLIP_1TEXT \
3428 program { name: "flipped"; \
3429 signal: "elm,state,flip,enabled"; \
3431 action: STATE_SET "flipped" 0.0; \
3432 target: "elm.text"; \
3433 target: "elm.flip.content"; \
3435 program { name: "flip_disabled"; \
3436 signal: "elm,state,flip,disabled"; \
3438 action: STATE_SET "default" 0.0; \
3439 target: "elm.text"; \
3440 target: "elm.flip.content"; \
3443 #define GENLIST_PROGRAM_FLIP_2TEXT \
3444 program { name: "flipped"; \
3445 signal: "elm,state,flip,enabled"; \
3447 action: STATE_SET "flipped" 0.0; \
3448 target: "elm.text.1"; \
3449 target: "elm.text.2"; \
3450 target: "elm.flip.content"; \
3452 program { name: "flip_disabled"; \
3453 signal: "elm,state,flip,disabled"; \
3455 action: STATE_SET "default" 0.0; \
3456 target: "elm.text.1"; \
3457 target: "elm.text.2"; \
3458 target: "elm.flip.content"; \
3461 #define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
3462 program { name: "flipped"; \
3463 signal: "elm,state,flip,enabled"; \
3465 action: STATE_SET "flipped" 0.0; \
3466 target: "elm.text.1"; \
3467 target: "elm.text.2"; \
3468 target: "elm.icon"; \
3469 target: "elm.flip.content"; \
3471 program { name: "flip_disabled"; \
3472 signal: "elm,state,flip,disabled"; \
3474 action: STATE_SET "default" 0.0; \
3475 target: "elm.text.1"; \
3476 target: "elm.text.2"; \
3477 target: "elm.icon"; \
3478 target: "elm.flip.content"; \
3481 #define GENLIST_PROGRAM_FLIP_2TEXT_2ICON \
3482 program { name: "flipped"; \
3483 signal: "elm,state,flip,enabled"; \
3485 action: STATE_SET "flipped" 0.0; \
3486 target: "elm.text.1"; \
3487 target: "elm.text.2"; \
3488 target: "elm.icon.1"; \
3489 target: "elm.icon.2"; \
3490 target: "elm.flip.content"; \
3492 program { name: "flip_disabled"; \
3493 signal: "elm,state,flip,disabled"; \
3495 action: STATE_SET "default" 0.0; \
3496 target: "elm.text.1"; \
3497 target: "elm.text.2"; \
3498 target: "elm.icon.1"; \
3499 target: "elm.icon.2"; \
3500 target: "elm.flip.content"; \
3503 #define GENLIST_PROGRAM_FLIP_3TEXT_2ICON \
3504 program { name: "flipped"; \
3505 signal: "elm,state,flip,enabled"; \
3507 action: STATE_SET "flipped" 0.0; \
3508 target: "elm.text.1"; \
3509 target: "elm.text.2"; \
3510 target: "elm.text.3"; \
3511 target: "elm.icon.1"; \
3512 target: "elm.icon.2"; \
3513 target: "elm.flip.content"; \
3515 program { name: "flip_disabled"; \
3516 signal: "elm,state,flip,disabled"; \
3518 action: STATE_SET "default" 0.0; \
3519 target: "elm.text.1"; \
3520 target: "elm.text.2"; \
3521 target: "elm.text.3"; \
3522 target: "elm.icon.1"; \
3523 target: "elm.icon.2"; \
3524 target: "elm.flip.content"; \
3528 #define GENLIST_DESCRIPTION_INVISIBLE_SELECTED \
3529 description { state: "selected" 1.0; \
3530 inherit: "default" 0.0; \
3534 #define GENLIST_DESCRIPTION_FLIP_ENABLED \
3535 description { state: "flipped" 0.0; \
3536 inherit: "default" 0.0; \
3540 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT \
3544 get_state(PART:"elm.text", st, 30, vl); \
3545 set_state(PART:"bg", "selected", 0.0); \
3546 if (!strcmp(st, "flipped")) \
3547 set_state(PART:"elm.text", "selected", 1.0); \
3549 set_state(PART:"elm.text", "selected", 0.0); \
3553 /* genlist multisense macro - start */
3554 #define GENLIST_PROGRAM_AFTER_PLAY_BUTTON_PRESS \
3555 after: "play_button_press";
3557 #define GENLIST_PROGRAM_PLAY_BUTTON_PRESS \
3558 program { name: "play_button_press"; \
3559 action: PLAY_SAMPLE "touch_sound" 1.0; \
3563 #define GENLIST_POPUP_STYLE(NAME) \
3564 group { GENLIST_NAME(NAME"/popup/default") \
3565 inherit: "elm/genlist/item/"NAME"/default"; \
3567 GENLIST_PART_RECT("bg", \
3568 description { state: "default" 0.0; \
3569 color: GENLIST_LIST_BG_POPUP_COLOR; \