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 */
21 name: "button-pressed" RAW;
22 source: "button-pressed.wav";
26 //****************************************************************************//
27 // ******************************* Default size macro **********************//
28 //**************************************************************************//
29 // if size is different for each theme, split it into each theme inc.
31 #define GENLIST_HEIGHT_1LINE 110 // (114 - top/bottom padding)
32 #define GENLIST_HEIGHT_2LINE_MAIN 54
33 #define GENLIST_HEIGHT_2LINE_SUB 42
34 #define GENLIST_HEIGHT_MULTILINE_SUB 38
35 #define GENLIST_PART_LIST_LINE_HEIGHT 1
36 #define GENLIST_HEIGHT_GROUPTITLE 46
38 #define GENLIST_PADDING_SIZE_DEFAULT 16
39 #define GENLIST_PADDING_SIZE_LEFT 26
40 #define GENLIST_PADDING_SIZE_RIGHT 26
41 // Dialogue group image has bottom padding (2piexl), Giant font can overlapped bottom line of image.
42 #define GENLIST_PADDING_SIZE_TOP 2
43 #define GENLIST_PADDING_SIZE_BOTTOM 2
44 // -----------------------------------------------------
45 #define GENLIST_PADDING_SIZE_TOP_2LINE 22
46 #define GENLIST_PADDING_SIZE_BOTTOM_2LINE 22
47 #define GENLIST_PADDING_SIZE_TOP_3LINE 17
48 #define GENLIST_PADDING_SIZE_BOTTOM_3LINE 17
49 #define GENLIST_PADDING_SIZE_NDEPTH 26
51 #define DIALOGUE_PADDING_SCROLLER 16
52 #define DIALOGUE_PADDING_SIZE_LEFT 16+20
53 #define DIALOGUE_PADDING_SIZE_RIGHT 16+20
55 #define GENLIST_ICON_SMALL_SIZE 45
56 #define GENLIST_ICON_STAR_SIZE 45
57 #define GENLIST_ICON_MEDIUM_SIZE 72
58 #define GENLIST_ICON_LARGE_SIZE 99
60 #define GENLIST_ICON_MEDIUM_MASK_SIZE 84
61 #define GENLIST_ICON_LARGE_MASK_SIZE 108
63 #define GENLIST_BTN_01_HEIGHT 74
64 #define GENLIST_BTN_02_SIZE 72
65 #define GENLIST_ICON_ONOFF_WIDTH 132
66 #define GENLIST_ICON_ONOFF_HEIGHT 70
67 #define GENLIST_ICON_CHECK_RADIO_SIZE 64
68 #define GENLIST_ICON_COLORBAR_SIZE 7
69 #define GENLIST_ICON_PASSWORD_SIZE 82
71 #define GENLIST_ICON_ENTRY_SIZE 54
73 #define GENLIST_TREESIZE_DEFAULT 26
75 //#define GENLIST_DIALOGUE_SEPARATOR_DEFAULT_HEIGHT 40
77 //****************************************************************************//
78 // ***************** EDJE description have 24 patterns **********************//
79 //**************************************************************************//
83 #define GENLIST_DESCRIPTION_ENVELOP( PART, PARAM ) \
84 description { state: "default" 0.0;\
97 // ---------------------
98 // left | HERE | right
99 // ---------------------
101 #define GENLIST_DESCRIPTION( left, right, top, bottom, param ) \
102 description { state: "default" 0.0;\
116 // ---------------------
118 // ---------------------
119 #define GENLIST_DESCRIPTION_L( left, param ) \
120 description { state: "default" 0.0;\
136 // ---------------------
138 // ---------------------
139 #define GENLIST_DESCRIPTION_R( right, param ) \
140 description { state: "default" 0.0;\
156 // --------------------------
157 // left |--> HERE <--| right
158 // --------------------------
159 #define GENLIST_DESCRIPTION_LR( left, right, param ) \
160 description { state: "default" 0.0;\
179 #define GENLIST_DESCRIPTION_RTB( right, top, bottom, param ) \
180 description { state: "default" 0.0;\
195 // left | HERE | right
196 // ---------------------
198 #define GENLIST_DESCRIPTION_LRB( left, right, bottom, param ) \
199 description { state: "default" 0.0;\
215 // ---------------------
216 // left | HERE | right
217 #define GENLIST_DESCRIPTION_LRT( left, right, top, param ) \
218 description { state: "default" 0.0;\
234 // ---------------------
236 #define GENLIST_DESCRIPTION_LT( left, top, param ) \
237 description { state: "default" 0.0;\
253 // ---------------------
255 #define GENLIST_DESCRIPTION_LB( left, bottom, param ) \
256 description { state: "default" 0.0;\
272 // ---------------------
274 // ---------------------
276 #define GENLIST_DESCRIPTION_LTB( left, top, bottom, param ) \
277 description { state: "default" 0.0;\
293 // ---------------------
295 #define GENLIST_DESCRIPTION_RT( right, top, param ) \
296 description { state: "default" 0.0;\
311 // | HERE <-- | right
312 // ---------------------
314 #define GENLIST_DESCRIPTION_RB( right, bottom, param ) \
315 description { state: "default" 0.0;\
335 #define GENLIST_DESCRIPTION_TB( top, bottom, param ) \
336 description { state: "default" 0.0;\
349 #define GENLIST_PROLOG \
350 data.item: "stacking" "above"; \
351 data.item: "selectraise" "on"; \
352 data.item: "treesize" 0;
354 #define GENLIST_PROLOG_NORMAL \
356 data.item: "treesize" GENLIST_TREESIZE_DEFAULT; \
357 data.item: "flips" "elm.flip.icon elm.flip.content elm.flip.eraser"; \
359 image : "00_list_group_bg.png" COMP; \
360 image : "00_list_group_bg_press.png" COMP; \
363 #define GENLIST_PROLOG_DIALOGUE \
365 data.item: "flips" "elm.flip.icon elm.flip.content elm.flip.eraser"; \
367 image : "00_list_group_bg.png" COMP; \
368 image : "00_list_group_bg_press.png" COMP; \
369 image : "00_list_group_bg_top.png" COMP; \
370 image : "00_list_group_bg_top_press.png" COMP; \
371 image : "00_list_group_bg_center.png" COMP; \
372 image : "00_list_group_bg_center_press.png" COMP; \
373 image : "00_list_group_bg_bottom.png" COMP; \
374 image : "00_list_group_bg_bottom_press.png" COMP; \
375 image : "00_list_group_bg_top_focus.png" COMP; \
376 image : "00_list_group_bg_center_focus.png" COMP; \
377 image : "00_list_group_bg_bottom_focus.png" COMP; \
380 #define GENLIST_NAME(NAME) \
381 name: "elm/genlist/item/"NAME; \
382 alias: "elm/genlist/item_odd/"NAME; \
383 alias: "elm/genlist/item_compress/"NAME; \
384 alias: "elm/genlist/item_compress_odd/"NAME; \
385 alias: "elm/genlist/tree/"NAME; \
386 alias: "elm/genlist/tree_odd/"NAME; \
387 alias: "elm/genlist/tree_compress/"NAME; \
388 alias: "elm/genlist/tree_compress_odd/"NAME; \
390 /*****************************************************************************/
391 /******************************* Dialogue group ******************************/
392 /*****************************************************************************/
393 #define GENLIST_DIALOGUE_INHERIT_BODY( _PARTS ) \
394 data.item: "treesize" 0; \
396 GENLIST_PART_BG_NORMAL_OFF \
397 GENLIST_PART_BOTTOM_LINE_OFF \
398 GENLIST_PART_BG_DIALOGUE \
399 GENLIST_PART_PADDING_LEFT_SIZE( DIALOGUE_PADDING_SIZE_LEFT ) \
400 GENLIST_PART_PADDING_RIGHT_EDIT \
403 GENLIST_PART_FOCUS_DIALOGUE \
406 #define GENLIST_INHERIT_THUMB_CIRCLE(SIZE_PREFIX, MASK_SIZE, PARENT) \
408 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_normal.png" COMP; \
409 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_press.png" COMP; \
410 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_dim.png" COMP; \
411 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png" COMP; \
412 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png" COMP; \
415 GENLIST_PART_RECT("elm.thumb.clip", \
416 description { state: "default"; \
418 description { state: "flipped"; \
422 GENLIST_PART_IMAGE("elm.thumb", \
423 clip_to: "elm.thumb.clip"; \
424 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
425 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_normal.png"; \
426 min: MASK_SIZE MASK_SIZE; \
427 max: MASK_SIZE MASK_SIZE; \
430 description { state: "selected" 0.0; \
431 inherit: "default" 0.0; \
432 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_press.png"; \
434 description { state: "disabled" 0.0; \
435 inherit: "default" 0.0; \
436 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_dim.png"; \
438 description { state: "reorder" 0.0; \
439 inherit: "default" 0.0; \
440 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png"; \
442 description { state: "reorder_selected" 0.0; \
443 inherit: "default" 0.0; \
444 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png"; \
446 description { state: "reorder_disabled" 0.0; \
447 inherit: "default" 0.0; \
448 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_dim.png"; \
450 description { state: "decorate" 0.0; \
451 inherit: "default" 0.0; \
453 description { state: "decorate_reorder" 0.0; \
454 inherit: "reorder" 0.0; \
460 #define GENLIST_INHERIT_THUMB_SQUARE(SIZE_PREFIX, MASK_SIZE, PARENT) \
462 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_normal.png" COMP; \
463 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_press.png" COMP; \
464 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_dim.png" COMP; \
465 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png" COMP; \
466 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png" COMP; \
469 GENLIST_PART_RECT("elm.thumb.clip", \
470 description { state: "default"; \
472 description { state: "flipped"; \
476 GENLIST_PART_IMAGE("elm.thumb", \
477 clip_to: "elm.thumb.clip"; \
478 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
479 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_normal.png"; \
480 min: MASK_SIZE MASK_SIZE; \
481 max: MASK_SIZE MASK_SIZE; \
484 description { state: "selected" 0.0; \
485 inherit: "default" 0.0; \
486 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_press.png"; \
488 description { state: "disabled" 0.0; \
489 inherit: "default" 0.0; \
490 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_dim.png"; \
492 description { state: "reorder" 0.0; \
493 inherit: "default" 0.0; \
494 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png"; \
496 description { state: "reorder_selected" 0.0; \
497 inherit: "default" 0.0; \
498 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png"; \
500 description { state: "reorder_disabled" 0.0; \
501 inherit: "default" 0.0; \
502 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_dim.png"; \
504 description { state: "decorate" 0.0; \
505 inherit: "default" 0.0; \
507 description { state: "decorate_reorder" 0.0; \
508 inherit: "reorder" 0.0; \
515 #define GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE(SIZE_PREFIX, MASK_SIZE, PARENT) \
517 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png" COMP; \
518 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png" COMP; \
519 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_dim.png" COMP; \
522 GENLIST_PART_RECT("elm.thumb.clip", \
523 description { state: "default"; \
525 description { state: "flipped"; \
529 GENLIST_PART_IMAGE("elm.thumb", \
530 clip_to: "elm.thumb.clip"; \
531 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
532 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png"; \
533 min: MASK_SIZE MASK_SIZE; \
534 max: MASK_SIZE MASK_SIZE; \
537 description { state: "selected" 0.0; \
538 inherit: "default" 0.0; \
539 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png"; \
541 description { state: "reorder" 0.0; \
542 inherit: "default" 0.0; \
543 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png"; \
545 description { state: "reorder_selected" 0.0; \
546 inherit: "default" 0.0; \
547 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png"; \
549 description { state: "decorate" 0.0; \
550 inherit: "default" 0.0; \
552 description { state: "decorate_reorder" 0.0; \
553 inherit: "reorder" 0.0; \
558 #define GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE(SIZE_PREFIX, MASK_SIZE, PARENT) \
560 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png" COMP; \
561 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png" COMP; \
562 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_dim.png" COMP; \
565 GENLIST_PART_RECT("elm.thumb.clip", \
566 description { state: "default"; \
568 description { state: "flipped"; \
572 GENLIST_PART_IMAGE("elm.thumb", \
573 clip_to: "elm.thumb.clip"; \
574 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
575 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png"; \
576 min: MASK_SIZE MASK_SIZE; \
577 max: MASK_SIZE MASK_SIZE; \
580 description { state: "selected" 0.0; \
581 inherit: "default" 0.0; \
582 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png"; \
584 description { state: "reorder" 0.0; \
585 inherit: "default" 0.0; \
586 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png"; \
588 description { state: "reorder_selected" 0.0; \
589 inherit: "default" 0.0; \
590 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png"; \
592 description { state: "decorate" 0.0; \
593 inherit: "default" 0.0; \
595 description { state: "decorate_reorder" 0.0; \
596 inherit: "reorder" 0.0; \
601 #define GENLIST_INHERIT_THUMB_CIRCLE_MEDIUM(PARENT) \
602 GENLIST_INHERIT_THUMB_CIRCLE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
604 #define GENLIST_INHERIT_THUMB_SQUARE_MEDIUM(PARENT) \
605 GENLIST_INHERIT_THUMB_SQUARE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
607 #define GENLIST_INHERIT_THUMB_CIRCLE_LARGE(PARENT) \
608 GENLIST_INHERIT_THUMB_CIRCLE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
610 #define GENLIST_INHERIT_THUMB_SQUARE_LARGE(PARENT) \
611 GENLIST_INHERIT_THUMB_SQUARE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
614 #define GENLIST_INHERIT_THUMB_CIRCLE_MEDIUM_DIALOGUE(PARENT) \
615 GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
617 #define GENLIST_INHERIT_THUMB_SQUARE_MEDIUM_DIALOGUE(PARENT) \
618 GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
620 #define GENLIST_INHERIT_THUMB_CIRCLE_LARGE_DIALOGUE(PARENT) \
621 GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
623 #define GENLIST_INHERIT_THUMB_SQUARE_LARGE_DIALOGUE(PARENT) \
624 GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
626 //****************************************************************************//
627 // ****************************** BG Image **********************************//
628 //****************************************************************************//
629 #define GENLIST_PART_BG_NORMAL \
630 GENLIST_PART_RECT("bg_clip", \
631 description { state: "default" 0.0; \
632 color: 255 255 255 255; \
634 description { state: "decorate" 0.0; \
635 inherit: "default" 0.0; \
638 description { state: "reorder" 0.0; \
639 inherit: "default" 0.0; \
642 description { state: "decorate_reorder" 0.0; \
643 inherit: "default" 0.0; \
647 GENLIST_PART_RECT("bg", \
648 clip_to: "bg_clip"; \
649 description { state: "default" 0.0; \
650 color: GENLIST_LIST_BG_COLOR; \
652 description { state: "selected" 0.0; \
653 inherit: "default" 0.0; \
654 color: GENLIST_LIST_PRESS_COLOR; \
656 description { state: "disabled" 0.0; \
657 inherit: "default" 0.0; \
658 color: GENLIST_LIST_DIM_COLOR; \
661 GENLIST_PART_RECT("bg_reorder_clip", \
662 description { state: "default" 0.0; \
665 description { state: "reorder" 0.0; \
666 inherit: "default" 0.0; \
667 color: 255 255 255 255; \
669 description { state: "decorate_reorder" 0.0; \
670 inherit: "default" 0.0; \
672 description { state: "decorate" 0.0; \
673 inherit: "default" 0.0; \
675 description { state: "reorder_flip" 0.0; \
676 inherit: "default" 0.0; \
679 GENLIST_PART_SPACER("bg_reorder_left", \
680 description { state: "default" 0.0; \
685 rel2.relative: 0 1; \
688 GENLIST_PART_SPACER("bg_reorder_right", \
689 description { state: "default" 0.0; \
694 rel1.relative: 1 0; \
697 GENLIST_PART_IMAGE("bg_reorder", \
698 clip_to: "bg_reorder_clip"; \
699 GENLIST_DESCRIPTION_LR("bg_reorder_left", "bg_reorder_right", \
701 normal: "00_list_group_bg.png"; \
706 description { state: "selected" 0.0; \
707 inherit: "default"; \
709 normal: "00_list_group_bg_press.png"; \
714 description { state: "flipped" 0.0; \
715 inherit: "default"; \
720 #define GENLIST_PART_BG_NORMAL_OFF \
721 GENLIST_PART_RECT("bg_clip", \
722 description { state: "default" 0.0; \
725 description { state: "decorate" 0.0; \
726 inherit: "default" 0.0; \
729 description { state: "reorder" 0.0; \
730 inherit: "default" 0.0; \
733 description { state: "decorate_reorder" 0.0; \
734 inherit: "default" 0.0; \
738 GENLIST_PART_RECT("bg", \
740 description { state: "default" 0.0; \
743 description { state: "selected" 0.0; \
746 description { state: "disabled" 0.0; \
750 GENLIST_PART_RECT("bg_reorder_clip", \
751 description { state: "default" 0.0; \
754 description { state: "reorder" 0.0; \
757 description { state: "decorate_reorder" 0.0; \
760 description { state: "decorate" 0.0; \
763 description { state: "reorder_flip" 0.0; \
767 GENLIST_PART_IMAGE("bg_reorder", \
768 description {state: "default" 0.0;\
771 description { state: "selected" 0.0; {\
774 description { state: "flipped" 0.0; {\
779 #define GENLIST_PART_BG_DIALOGUE \
780 GENLIST_PART_RECT("bg_dialogue_clip", \
781 description { state: "default" 0.0; \
782 color: 255 255 255 255; \
784 description { state: "2depth" 0.0; \
785 color: 220 218 211 255; \
788 GENLIST_PART_SPACER("bg_dialogue_left", \
789 description { state: "default" 0.0; \
794 rel2.relative: 0 1; \
797 GENLIST_PART_SPACER("bg_dialogue_right", \
798 description { state: "default" 0.0; \
803 rel1.relative: 1 0; \
805 description { state: "editmode" 0.0; \
806 inherit: "default" 0.0; \
807 min: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_MEDIUM_SIZE) 0; \
808 max: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_MEDIUM_SIZE) 0; \
811 GENLIST_PART_IMAGE("bg_dialogue", \
812 insert_after: "base"; \
813 clip_to: "bg_dialogue_clip"; \
814 GENLIST_DESCRIPTION_LR("bg_dialogue_left", "bg_dialogue_right", \
816 normal: "00_list_group_bg.png"; \
821 description { state: "selected" 0.0; \
822 inherit: "default" 0.0; \
824 normal: "00_list_group_bg_press.png"; \
829 description { state: "top" 0.0; \
830 inherit: "default" 0.0; \
832 normal: "00_list_group_bg_top.png"; \
837 description { state: "top_selected" 0.0; \
838 inherit: "default" 0.0; \
840 normal: "00_list_group_bg_top_press.png"; \
845 description { state: "center" 0.0; \
846 inherit: "default" 0.0; \
848 normal: "00_list_group_bg_center.png"; \
853 description { state: "center_selected" 0.0; \
854 inherit: "default" 0.0; \
856 normal: "00_list_group_bg_center_press.png"; \
861 description { state: "bottom" 0.0; \
862 inherit: "default" 0.0; \
864 normal: "00_list_group_bg_bottom.png"; \
869 description { state: "bottom_selected" 0.0; \
870 inherit: "default" 0.0; \
872 normal: "00_list_group_bg_bottom_press.png"; \
879 //****************************************************************************//
880 // ****************************** BASE ********************************//
881 //****************************************************************************//
882 #define GENLIST_PART_BASE_SIZE(HEIGHT) \
883 part { name: "base"; \
887 description { state: "default" 0.0; \
891 description { state: "disabled" 0.0; \
892 inherit: "default"; \
895 part { name: "state"; \
899 description { state: "default" 0.0; \
902 description { state: "decorate" 0.0; \
903 inherit: "default"; \
905 description { state: "reorder" 0.0; \
906 inherit: "default"; \
908 description { state: "decorate_reorder" 0.0; \
909 inherit: "default"; \
913 #define GENLIST_PART_BASE \
914 GENLIST_PART_BASE_SIZE(0)
917 #define GENLIST_PART_FOCUS \
918 GENLIST_PART_IMAGE("focus_part", \
920 description { state: "default" 0.0; \
923 normal: "00_focus.png"; \
927 description { state: "focused" 0.0; \
928 inherit: "default" 0.0; \
933 #define GENLIST_PART_FOCUS_DIALOGUE \
934 GENLIST_PART_IMAGE("focus_part", \
936 GENLIST_DESCRIPTION_LR("bg_dialogue_left", "bg_dialogue_right", \
939 normal: "00_focus.png"; \
943 description { state: "focused" 0.0; \
944 inherit: "default" 0.0; \
947 description { state: "top_focused" 0.0; \
948 inherit: "default" 0.0; \
951 normal: "00_list_group_bg_top_focus.png"; \
955 description { state: "center_focused" 0.0; \
956 inherit: "default" 0.0; \
959 normal: "00_list_group_bg_center_focus.png"; \
963 description { state: "bottom_focused" 0.0; \
964 inherit: "default" 0.0; \
967 normal: "00_list_group_bg_bottom_focus.png"; \
973 //****************************************************************************//
974 // ****************************** LINE ********************************//
975 //****************************************************************************//
976 #define GENLIST_PART_BOTTOM_LINE \
977 GENLIST_PART_RECT("bottom_line_clip", \
978 description { state: "default" 0.0; \
979 color: 255 255 255 255; \
981 description { state: "decorate" 0.0; \
982 inherit: "default" 0.0; \
985 description { state: "reorder" 0.0; \
986 inherit: "default" 0.0; \
989 description { state: "decorate_reorder" 0.0; \
990 inherit: "default" 0.0; \
994 GENLIST_PART_RECT("bottom_line", \
996 clip_to: "bottom_line_clip"; \
997 description { state: "default" 0.0; \
998 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
999 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
1002 color: GENLIST_LIST_LINE1_COLOR; \
1003 rel1.to: "bottom_line2"; \
1004 rel2.to: "bottom_line2"; \
1005 rel2.relative: 1 0; \
1006 rel1.offset: -1 -1; \
1008 description { state: "selected" 0.0; \
1009 inherit: "default" 0.0; \
1010 color: GENLIST_LIST_PRESS_COLOR; \
1012 description { state: "disabled" 0.0; \
1013 inherit: "default" 0.0; \
1014 color: GENLIST_LIST_DIM_COLOR; \
1016 description { state: "flipped" 0.0; \
1017 inherit: "default" 0.0; \
1021 GENLIST_PART_RECT("bottom_line2", \
1023 clip_to: "bottom_line_clip"; \
1024 description { state: "default" 0.0; \
1025 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
1026 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
1029 color: GENLIST_LIST_LINE2_COLOR; \
1030 rel1.to_x: "elm.padding.left"; \
1031 rel1.relative: 1 0; \
1032 rel2.to_x: "elm.padding.right"; \
1033 rel2.relative: 0 1; \
1034 rel1.offset: -1 -1; \
1036 description { state: "selected" 0.0; \
1037 inherit: "default" 0.0; \
1038 color: GENLIST_LIST_PRESS_COLOR; \
1040 description { state: "disabled" 0.0; \
1041 inherit: "default" 0.0; \
1042 color: GENLIST_LIST_DIM_COLOR; \
1044 description { state: "flipped" 0.0; \
1045 inherit: "default" 0.0; \
1050 #define GENLIST_PART_BOTTOM_LINE_OFF \
1051 GENLIST_PART_RECT("bottom_line", \
1053 description { state: "default" 0.0; \
1056 description { state: "selected" 0.0; \
1059 description { state: "disabled" 0.0; \
1062 description { state: "decorate" 0.0; \
1066 GENLIST_PART_RECT("bottom_line2", \
1068 description { state: "default" 0.0; \
1071 description { state: "selected" 0.0; \
1074 description { state: "disabled" 0.0; \
1077 description { state: "decorate" 0.0; \
1082 #define GENLIST_PART_DIVIDER_PADDING \
1083 GENLIST_PART_SPACER("elm.padding.divider.top", \
1084 description { state: "default" 0.0; \
1089 rel2.relative: 1 0; \
1092 GENLIST_PART_SPACER("elm.padding.divider.bottom", \
1093 description { state: "default" 0.0; \
1098 rel1.relative: 0 1; \
1102 #define GENLIST_PART_DIVIDER_L(LEFT) \
1103 GENLIST_PART_DIVIDER_PADDING \
1104 GENLIST_PART_RECT("elm.divider1", \
1106 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1112 color: GENLIST_LIST_DIVIDER1_COLOR; \
1115 GENLIST_PART_RECT("elm.divider2", \
1117 GENLIST_DESCRIPTION_LTB("elm.divider1", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1123 color: GENLIST_LIST_DIVIDER2_COLOR; \
1127 #define GENLIST_PART_DIVIDER_R(RIGHT) \
1128 GENLIST_PART_DIVIDER_PADDING \
1129 GENLIST_PART_RECT("elm.divider1", \
1131 GENLIST_DESCRIPTION_RTB("elm.divider2", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1136 color: GENLIST_LIST_DIVIDER1_COLOR; \
1139 GENLIST_PART_RECT("elm.divider2", \
1141 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1146 color: GENLIST_LIST_DIVIDER2_COLOR; \
1150 #define GENLIST_PART_CENTER_LINE_LT(LEFT, TOP) \
1151 GENLIST_PART_SPACER("elm.padding.divider.left", \
1152 GENLIST_DESCRIPTION_L(LEFT, \
1158 GENLIST_PART_SPACER("elm.padding.divider.right", \
1159 GENLIST_DESCRIPTION_ENVELOP("base", \
1164 rel1.relative: 1 0; \
1167 GENLIST_PART_RECT("center_line", \
1169 GENLIST_DESCRIPTION_LRT("elm.padding.divider.left", "elm.padding.divider.right", TOP, \
1173 color: GENLIST_LIST_DIVIDER1_COLOR; \
1176 GENLIST_PART_RECT("center_line2", \
1177 GENLIST_DESCRIPTION_LRT("elm.padding.divider.left", "elm.padding.divider.right", "center_line", \
1181 color: GENLIST_LIST_DIVIDER2_COLOR; \
1185 #define GENLIST_PART_COLORBAR \
1186 GENLIST_PART_SPACER("elm.padding.colorbar.top", \
1187 GENLIST_DESCRIPTION_ENVELOP("base", \
1192 rel2.relative: 1 0; \
1195 GENLIST_PART_SPACER("elm.padding.colorbar.bottom", \
1196 GENLIST_DESCRIPTION_ENVELOP("base", \
1201 rel1.relative: 0 1; \
1204 GENLIST_PART_ICON("elm.swallow.colorbar", \
1205 GENLIST_DESCRIPTION_TB("elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
1206 min: GENLIST_ICON_COLORBAR_SIZE 0; \
1207 max: GENLIST_ICON_COLORBAR_SIZE -1; \
1210 rel1.relative: 0 1; \
1211 rel2.relative: 0 0; \
1215 #define GENLIST_PART_COLORBAR_DIALOGUE \
1216 GENLIST_PART_SPACER("elm.padding.colorbar.top", \
1217 GENLIST_DESCRIPTION_ENVELOP("base", \
1222 rel2.relative: 1 0; \
1225 GENLIST_PART_SPACER("elm.padding.colorbar.bottom", \
1226 GENLIST_DESCRIPTION_ENVELOP("base", \
1231 rel1.relative: 0 1; \
1234 GENLIST_PART_SPACER("elm.padding.colorbar.left", \
1235 description{ state: "default" 0.0; \
1242 rel2.relative: 0 1; \
1245 GENLIST_PART_ICON("elm.swallow.colorbar", \
1246 GENLIST_DESCRIPTION_LTB("elm.padding.colorbar.left","elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
1247 min: GENLIST_ICON_COLORBAR_SIZE 0; \
1248 max: GENLIST_ICON_COLORBAR_SIZE -1; \
1253 //****************************************************************************//
1254 //********************************* PADDING **********************************//
1255 //****************************************************************************//
1256 #define GENLIST_PART_EXPANDED_PAD \
1257 part { name: "elm.swallow.pad"; \
1261 description { state: "default" 0.0; \
1268 rel2.relative: 0.0 1.0; \
1272 #define GENLIST_PART_PADDING( NAME, SIZE, REL1, REL2 ) \
1273 GENLIST_PART_SPACER(NAME, \
1274 description { state: "default" 0.0; \
1290 #define GENLIST_DESCRIPTION_DECORATE_PADDING \
1291 description { state: "decorate" 0.0; \
1292 inherit: "default" 0.0; \
1297 #define GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1298 description { state: "decorate_reorder" 0.0; \
1299 inherit: "default" 0.0; \
1304 #define GENLIST_DESCRIPTION_REORDER_PADDING \
1305 description { state: "reorder" 0.0; \
1306 inherit: "default" 0.0; \
1311 #define GENLIST_PART_PADDING_LEFT \
1312 GENLIST_PART_EXPANDED_PAD \
1313 GENLIST_PART_SPACER("elm.padding.left", \
1314 GENLIST_DESCRIPTION_L("elm.swallow.pad", \
1315 min: GENLIST_PADDING_SIZE_LEFT 0; \
1316 max: GENLIST_PADDING_SIZE_LEFT -1; \
1319 GENLIST_DESCRIPTION_DECORATE_PADDING \
1320 GENLIST_DESCRIPTION_REORDER_PADDING \
1321 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1324 #define GENLIST_PART_PADDING_LEFT_SIZE( SIZE ) \
1325 GENLIST_PART_EXPANDED_PAD \
1326 GENLIST_PART_SPACER("elm.padding.left", \
1327 GENLIST_DESCRIPTION_L("elm.swallow.pad", \
1332 GENLIST_DESCRIPTION_DECORATE_PADDING \
1333 GENLIST_DESCRIPTION_REORDER_PADDING \
1334 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1337 #define GENLIST_PART_EDITBTN \
1338 GENLIST_PART_SPACER("elm.padding.edit.right", \
1339 description { state: "default" 0.0; \
1342 rel1.relative: 1 0; \
1343 min: GENLIST_PADDING_SIZE_RIGHT 0; \
1344 max: GENLIST_PADDING_SIZE_RIGHT -1; \
1347 GENLIST_PART_ICON("elm.icon.edit", \
1348 GENLIST_DESCRIPTION_R("elm.padding.edit.right", \
1351 description { state: "editmode" 0.0; \
1352 inherit: "default" 0.0; \
1355 min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
1356 max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
1360 #define GENLIST_PART_PADDING_RIGHT \
1361 GENLIST_PART_SPACER("elm.padding.right", \
1362 description { state: "default" 0.0; \
1363 min: GENLIST_PADDING_SIZE_RIGHT 0; \
1364 max: GENLIST_PADDING_SIZE_RIGHT -1; \
1369 rel1.relative: 1 0; \
1371 GENLIST_DESCRIPTION_DECORATE_PADDING \
1372 GENLIST_DESCRIPTION_REORDER_PADDING \
1373 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1376 #define GENLIST_PART_PADDING_RIGHT_SIZE( SIZE ) \
1377 GENLIST_PART_SPACER("elm.padding.right", \
1378 description { state: "default" 0.0; \
1385 rel1.relative: 1 0; \
1387 GENLIST_DESCRIPTION_DECORATE_PADDING \
1388 GENLIST_DESCRIPTION_REORDER_PADDING \
1389 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1392 // FIXME: Use RECT instead of SPACER if this group is used on layout
1393 // for blocking events
1394 #define GENLIST_PART_PADDING_RIGHT_EDIT \
1395 GENLIST_PART_SPACER("elm.padding.right", \
1396 GENLIST_DESCRIPTION_R("elm.padding.right.edit", \
1397 min: DIALOGUE_PADDING_SIZE_RIGHT 0; \
1398 max: DIALOGUE_PADDING_SIZE_RIGHT -1; \
1401 GENLIST_DESCRIPTION_DECORATE_PADDING \
1402 GENLIST_DESCRIPTION_REORDER_PADDING \
1403 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1405 GENLIST_PART_SPACER("elm.padding.right.edit", \
1406 description { state: "default" 0.0; \
1411 rel1.relative: 1 0; \
1413 description { state: "editmode" 0.0; \
1414 inherit: "default" 0.0; \
1415 min: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_MEDIUM_SIZE) 0; \
1416 max: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_MEDIUM_SIZE) -1; \
1419 GENLIST_PART_EDITBTN
1421 #define GENLIST_PART_PADDING_TOP \
1422 GENLIST_PART_SPACER("elm.padding.top", \
1424 state: "default" 0.0; \
1425 min: 0 GENLIST_PADDING_SIZE_TOP; \
1426 max: -1 GENLIST_PADDING_SIZE_TOP; \
1430 rel2.relative: 1.0 0.0; \
1435 #define GENLIST_PART_PADDING_TOP_2LINE \
1436 GENLIST_PART_SPACER("elm.padding.top", \
1438 state: "default" 0.0; \
1439 min: 0 GENLIST_PADDING_SIZE_TOP_2LINE; \
1440 max: -1 GENLIST_PADDING_SIZE_TOP_2LINE; \
1444 rel2.relative: 1.0 0.0; \
1449 #define GENLIST_PART_PADDING_TOP_SIZE( SIZE ) \
1450 GENLIST_PART_SPACER("elm.padding.top", \
1452 state: "default" 0.0; \
1458 rel2.relative: 1.0 0.0; \
1463 #define GENLIST_PART_PADDING_BOTTOM \
1464 GENLIST_PART_SPACER("elm.padding.bottom", \
1465 description { state: "default" 0.0; \
1466 min: 0 GENLIST_PADDING_SIZE_BOTTOM; \
1467 max: -1 GENLIST_PADDING_SIZE_BOTTOM; \
1471 rel1.relative: 0.0 1.0; \
1476 #define GENLIST_PART_PADDING_BOTTOM_2LINE \
1477 GENLIST_PART_SPACER("elm.padding.bottom", \
1478 description { state: "default" 0.0; \
1479 min: 0 GENLIST_PADDING_SIZE_BOTTOM_2LINE; \
1480 max: -1 GENLIST_PADDING_SIZE_BOTTOM_2LINE; \
1484 rel1.relative: 0.0 1.0; \
1489 #define GENLIST_PART_PADDING_BOTTOM_SIZE( SIZE ) \
1490 GENLIST_PART_SPACER("elm.padding.bottom", \
1491 description { state: "default" 0.0; \
1497 rel1.relative: 0.0 1.0; \
1502 #define GENLIST_PART_PADDING_R( NAME, RIGHT ) \
1503 GENLIST_PART_SPACER(NAME, \
1504 description { state: "default" 0.0; \
1506 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1507 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1520 #define GENLIST_PART_PADDING_R_SIZE( NAME, RIGHT, SIZE ) \
1521 GENLIST_PART_SPACER(NAME, \
1522 description { state: "default" 0.0; \
1538 #define GENLIST_PART_PADDING_L( NAME, LEFT ) \
1539 GENLIST_PART_SPACER(NAME, \
1540 description { state: "default" 0.0; \
1542 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1543 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1556 #define GENLIST_PART_PADDING_L_SIZE( NAME, LEFT, SIZE ) \
1557 GENLIST_PART_SPACER(NAME, \
1558 description { state: "default" 0.0; \
1575 #define GENLIST_PART_PADDING_T_SIZE( NAME, TOP, SIZE ) \
1576 GENLIST_PART_SPACER(NAME, \
1577 description { state: "default" 0.0; \
1593 #define GENLIST_PART_PADDING_B_SIZE( NAME, BOTTOM, SIZE ) \
1594 GENLIST_PART_SPACER(NAME, \
1595 description { state: "default" 0.0; \
1611 #define GENLIST_PROGRAM_EXPAND_ROOT( TARGET ) \
1613 name: "go_expanded"; \
1614 signal: "elm,state,expanded"; \
1616 action: STATE_SET "expand_opened" 0.0; \
1620 name: "go_contracted"; \
1621 signal: "elm,state,contracted"; \
1623 action: STATE_SET "default" 0.0; \
1627 // 2.2.7 Genlist_Edit mode (Rename)
1628 // FIXME: padding is not needed when swallow content is NULL.
1629 // But how can edje know existence of swallow content?
1630 #define GENLIST_PART_FLIP \
1631 GENLIST_PART_RECT("elm.flip.bg", \
1633 description { state: "default" 0.0;\
1636 description { state: "flipped" 0.0; \
1637 inherit: "default" 0.0; \
1638 rel2.offset: 0 -3; \
1639 color: GENLIST_LIST_BG_COLOR;\
1642 GENLIST_PART_SPACER("elm.flip.padding.left", \
1643 description { state: "default" 0.0; \
1648 rel2.relative: 0 1; \
1651 GENLIST_PART_SPACER("elm.flip.padding.right", \
1652 description { state: "default" 0.0; \
1657 rel1.relative: 1 0; \
1660 GENLIST_PART_ICON("elm.flip.content", \
1661 GENLIST_DESCRIPTION("elm.flip.padding.left", "elm.flip.padding.eraser.left", \
1662 "elm.padding.top", "elm.padding.bottom", \
1666 description { state: "flipped" 0.0; \
1667 inherit: "default" 0.0; \
1671 GENLIST_PART_PADDING_R("elm.flip.padding.eraser.left", "elm.flip.eraser") \
1672 GENLIST_PART_ICON("elm.flip.eraser", \
1673 GENLIST_DESCRIPTION_RTB("elm.flip.padding.icon.left", \
1674 "elm.padding.top", "elm.padding.bottom", \
1677 min: GENLIST_ICON_ENTRY_SIZE GENLIST_ICON_ENTRY_SIZE; \
1678 max: GENLIST_ICON_ENTRY_SIZE GENLIST_ICON_ENTRY_SIZE; \
1680 description { state: "show" 0.0; \
1681 inherit: "default" 0.0; \
1685 GENLIST_PART_PADDING_R("elm.flip.padding.icon.left", "elm.flip.icon") \
1686 GENLIST_PART_ICON( "elm.flip.icon", \
1687 GENLIST_DESCRIPTION_RTB("elm.flip.padding.right", \
1688 "elm.padding.top", "elm.padding.bottom", \
1694 description { state: "flipped" 0.0; \
1695 inherit: "default" 0.0; \
1700 //****************************************************************************//
1701 // ******************************* Programs ********************************//
1702 //**************************************************************************//
1703 // signal: elm,state,%s,active
1704 // a "check" item named %s went active
1705 // signal: elm,state,%s,passive
1706 // a "check" item named %s went passive
1707 // default is passive
1708 #define GENLIST_PROGRAM_DEFAULT( TARGET ) \
1709 program { name: "default"; \
1710 signal: "elm,state,default"; \
1712 action: STATE_SET "default" 0.0; \
1716 #define GENLIST_PROGRAM_DISABLED( TARGET ) \
1717 program { name: "enabled"; \
1718 signal: "elm,state,enabled"; \
1720 action: STATE_SET "default" 0.0; \
1724 program { name: "disabled"; \
1725 signal: "elm,state,disabled"; \
1727 action: STATE_SET "disabled" 0.0; \
1732 #define GENLIST_PROGRAM_FOCUS \
1733 program { name: "focused"; \
1734 signal: "elm,state,focused"; \
1736 action: STATE_SET "focused" 0.0; \
1737 target: "focus_part"; \
1739 program { name: "unfocused"; \
1740 signal: "elm,state,unfocused"; \
1742 action: STATE_SET "default" 0.0; \
1743 target: "focus_part"; \
1746 #define GENLIST_PROGRAM_FOCUS_DIALOGUE \
1747 program { name: "focused"; \
1748 signal: "elm,state,focused"; \
1753 get_state(PART:"bg_dialogue", st, 30, vl); \
1754 if (!strcmp(st, "top") || !strcmp(st, "top_selected")) \
1755 set_state(PART:"focus_part", "top_focused", 0.0); \
1756 else if (!strcmp(st, "center") || !strcmp(st, "center_selected")) \
1757 set_state(PART:"focus_part", "center_focused", 0.0); \
1758 else if (!strcmp(st, "bottom") || !strcmp(st, "bottom_selected")) \
1759 set_state(PART:"focus_part", "bottom_focused", 0.0); \
1760 else if (!strcmp(st, "default") || !strcmp(st, "selected")) \
1761 set_state(PART:"focus_part", "focused", 0.0); \
1764 program { name: "unfocused"; \
1765 signal: "elm,state,unfocused"; \
1767 action: STATE_SET "default" 0.0; \
1768 target: "focus_part"; \
1771 #define GENLIST_PROGRAM_SOUND( SRC ) \
1772 program { name: "play_sound"SRC; \
1773 signal: "mouse,clicked,1"; \
1778 get_state(PART:"base", st, 30, vl); \
1779 if (strcmp(st, "disabled")) \
1780 run_program(PROGRAM:"play_button_press"SRC); \
1783 program { name: "play_button_press"SRC; \
1784 action: PLAY_SAMPLE "button-pressed" 1.0; \
1787 #define GENLIST_PROGRAM_SELECT( TARGET ) \
1788 program { name: "selected"; \
1789 signal: "elm,state,selected"; \
1791 action: STATE_SET "selected" 0.0; \
1794 program { name: "unselected"; \
1795 signal: "elm,state,unselected"; \
1797 action: STATE_SET "default" 0.0; \
1801 #define GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
1802 program { name: "selected"; \
1803 signal: "elm,state,selected"; \
1808 get_state(PART:"bg_dialogue", st, 30, vl); \
1809 if (!strcmp(st, "top")) \
1810 set_state(PART:"bg_dialogue", "top_selected", 0.0); \
1811 else if (!strcmp(st, "center")) \
1812 set_state(PART:"bg_dialogue", "center_selected", 0.0); \
1813 else if (!strcmp(st, "bottom")) \
1814 set_state(PART:"bg_dialogue", "bottom_selected", 0.0); \
1815 else if (!strcmp(st, "default")) \
1816 set_state(PART:"bg_dialogue", "selected", 0.0); \
1817 run_program(PROGRAM:"target_selected"); \
1820 program { name: "unselected"; \
1821 signal: "elm,state,unselected"; \
1826 get_state(PART:"bg_dialogue", st, 30, vl); \
1827 if (!strcmp(st, "top_selected")) \
1828 set_state(PART:"bg_dialogue", "top", 0.0); \
1829 else if (!strcmp(st, "center_selected")) \
1830 set_state(PART:"bg_dialogue", "center", 0.0); \
1831 else if (!strcmp(st, "bottom_selected")) \
1832 set_state(PART:"bg_dialogue", "bottom", 0.0); \
1833 else if (!strcmp(st, "selected")) \
1834 set_state(PART:"bg_dialogue", "default", 0.0); \
1835 run_program(PROGRAM:"target_unselected"); \
1838 program { name: "target_selected"; \
1839 action: STATE_SET "selected" 0.0; \
1842 program { name: "target_unselected"; \
1843 action: STATE_SET "default" 0.0; \
1846 program { name: "bg_default"; \
1847 signal: "elm,state,default"; \
1849 action: STATE_SET "default" 0.0; \
1850 target: "bg_dialogue"; \
1852 program { name: "bg_top"; \
1853 signal: "elm,state,top"; \
1855 action: STATE_SET "top" 0.0; \
1856 target: "bg_dialogue"; \
1858 program { name: "bg_center"; \
1859 signal: "elm,state,center"; \
1861 action: STATE_SET "center" 0.0; \
1862 target: "bg_dialogue"; \
1864 program { name: "bg_bottom"; \
1865 signal: "elm,state,bottom"; \
1867 action: STATE_SET "bottom" 0.0; \
1868 target: "bg_dialogue"; \
1871 #define GENLIST_PROGRAM_SELECT_ARROW \
1872 program { name: "selected_arrow"; \
1873 signal: "elm,state,selected"; \
1878 get_state(PART:"arrow", st, 30, vl); \
1879 if (!strcmp(st, "default")) { \
1880 set_state(PART:"arrow", "default_press", 0.0); \
1881 set_state(PART:"arrow_clip", "default_press", 0.0); \
1883 else if (!strcmp(st, "expand_opened")) { \
1884 set_state(PART:"arrow", "expand_opened_press", 0.0); \
1885 set_state(PART:"arrow_clip", "expand_opened_press", 0.0); \
1889 program { name: "unselected_arrow"; \
1890 signal: "elm,state,unselected"; \
1895 get_state(PART:"arrow", st, 30, vl); \
1896 if (!strcmp(st, "default_press")) { \
1897 set_state(PART:"arrow", "default", 0.0); \
1898 set_state(PART:"arrow_clip", "default", 0.0); \
1900 else if (!strcmp(st, "expand_opened_press")) { \
1901 set_state(PART:"arrow", "expand_opened", 0.0); \
1902 set_state(PART:"arrow_clip", "expand_opened", 0.0); \
1907 #define GENLIST_PROGRAM_DECORATE( TARGET ) \
1908 program { name: "decorate_enabled_effect"; \
1909 signal: "elm,state,decorate,enabled,effect";\
1911 action: STATE_SET "decorate" 0.0;\
1914 program { name: "decorate_disabled_effect";\
1915 signal: "elm,state,decorate,disabled,effect";\
1917 action: STATE_SET "default" 0.0; \
1920 program { name: "decorate_enabled";\
1921 signal: "elm,state,decorate,enabled";\
1923 action: STATE_SET "decorate" 0.0;\
1926 program { name: "decorate_disabled";\
1927 signal: "elm,state,decorate,disabled";\
1929 action: STATE_SET "default" 0.0;\
1933 #define GENLIST_PROGRAM_REORDER( TARGET ) \
1934 program { name: "reorder_enabled"; \
1935 signal: "elm,state,reorder,mode_set"; \
1937 action: STATE_SET "reorder" 0.0; \
1940 program { name: "reorder_disabled"; \
1941 signal: "elm,state,reorder,mode_unset"; \
1943 action: STATE_SET "default" 0.0; \
1947 #define GENLIST_PROGRAM_DECORATE_REORDER( NAME, TARGET ) \
1948 program { name: "reorder_enabled"NAME; \
1949 signal: "elm,state,reorder,mode_set"; \
1954 get_state(PART:"state", st, 30, vl); \
1955 if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
1956 run_program(PROGRAM:"decorate_reorder_set"NAME); \
1958 run_program(PROGRAM:"reorder_set"NAME); \
1962 program { name: "reorder_disabled"NAME; \
1963 signal: "elm,state,reorder,mode_unset"; \
1968 get_state(PART:"state", st, 30, vl); \
1969 if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
1970 run_program(PROGRAM:"decorate_set"NAME); \
1972 run_program(PROGRAM:"default_set"NAME); \
1976 program { name: "decorate_enabled_effect"NAME; \
1977 signal: "elm,state,decorate,enabled,effect";\
1982 get_state(PART:"state", st, 30, vl); \
1983 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1984 run_program(PROGRAM:"decorate_reorder_set"NAME); \
1986 run_program(PROGRAM:"decorate_set"NAME); \
1990 program { name: "decorate_disabled_effect"NAME;\
1991 signal: "elm,state,decorate,disabled,effect";\
1996 get_state(PART:"state", st, 30, vl); \
1997 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1998 run_program(PROGRAM:"reorder_set"NAME); \
2000 run_program(PROGRAM:"default_set"NAME); \
2004 program { name: "decorate_enabled"NAME;\
2005 signal: "elm,state,decorate,enabled";\
2010 get_state(PART:"state", st, 30, vl); \
2011 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
2012 run_program(PROGRAM:"decorate_reorder_set"NAME); \
2014 run_program(PROGRAM:"decorate_set"NAME); \
2018 program { name: "decorate_disabled"NAME;\
2019 signal: "elm,state,decorate,disabled";\
2024 get_state(PART:"state", st, 30, vl); \
2025 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
2026 run_program(PROGRAM:"reorder_set"NAME); \
2028 run_program(PROGRAM:"default_set"NAME); \
2032 program { name: "default_set"NAME; \
2033 action: STATE_SET "default" 0.0;\
2037 program { name: "decorate_set"NAME; \
2038 action: STATE_SET "decorate" 0.0;\
2042 program { name: "reorder_set"NAME; \
2043 action: STATE_SET "reorder" 0.0;\
2047 program { name: "decorate_reorder_set"NAME; \
2048 action: STATE_SET "decorate_reorder" 0.0;\
2053 #define GENLIST_PROGRAM_FLIP \
2054 program { name: "flip_enabled"; \
2055 signal: "elm,state,flip,enabled"; \
2057 transition: DECELERATE 0.5; \
2058 action: STATE_SET "flipped" 0.0; \
2059 target: "elm.flip.content"; \
2060 target: "elm.flip.icon"; \
2062 program { name: "flip_disabled"; \
2063 signal: "elm,state,flip,disabled"; \
2065 transition: DECELERATE 0.5; \
2066 action: STATE_SET "default" 0.0; \
2067 target: "elm.flip.content"; \
2068 target: "elm.flip.icon"; \
2070 program { name: "flip_enabled_bg"; \
2071 signal: "elm,state,flip,enabled"; \
2073 action: STATE_SET "flipped" 0.0; \
2074 target: "elm.flip.bg"; \
2076 program { name: "flip_disabled_bg"; \
2077 signal: "elm,state,flip,disabled"; \
2079 action: STATE_SET "default" 0.0; \
2080 target: "elm.flip.bg"; \
2083 signal: "elm,state,eraser,show"; \
2084 action: STATE_SET "show" 0.0; \
2085 target: "elm.flip.eraser"; \
2088 signal: "elm,state,eraser,hide"; \
2089 action: STATE_SET "default" 0.0; \
2090 target: "elm.flip.eraser"; \
2093 #define GENLIST_PROGRAM_FLIP_TARGET( TARGET ) \
2094 program { name: "flip_enabled_target"; \
2095 signal: "elm,state,flip,enabled"; \
2097 action: STATE_SET "flipped" 0.0; \
2100 program { name: "flip_disabled_target"; \
2101 signal: "elm,state,flip,disabled"; \
2103 action: STATE_SET "default" 0.0; \
2107 #define GENLIST_PROGRAM_FLIP_EFFECT_TARGET( TARGET ) \
2108 program { name: "flip_enabled_effect"; \
2109 signal: "elm,state,flip,enabled"; \
2111 transition: DECELERATE 0.5; \
2112 action: STATE_SET "flipped" 0.0; \
2115 program { name: "flip_disabled_effect"; \
2116 signal: "elm,state,flip,disabled"; \
2118 transition: DECELERATE 0.5; \
2119 action: STATE_SET "default" 0.0; \
2123 #define GENLIST_PROGRAM_EDITMODE \
2124 program { name: "edit_enabled"; \
2125 signal: "elm,state,edit,enabled"; \
2127 action: STATE_SET "editmode" 0.0; \
2128 target: "elm.padding.right.edit"; \
2129 target: "elm.icon.edit"; \
2130 target: "bg_dialogue_right"; \
2132 program { name: "edit_disabled"; \
2133 signal: "elm,state,edit,disabled"; \
2135 action: STATE_SET "default" 0.0; \
2136 target: "elm.padding.right.edit"; \
2137 target: "elm.icon.edit"; \
2138 target: "bg_dialogue_right"; \
2141 /***************************************************************************/
2142 /***************************************************************************/
2144 #define GENLIST_PROGRAMS_NORMAL( TARGET ) \
2146 GENLIST_PROGRAM_DEFAULT( TARGET \
2148 target: "bg_clip"; \
2149 target: "bottom_line"; \
2150 target: "bottom_line2"; \
2151 target: "bottom_line_clip"; \
2152 target: "bg_reorder"; \
2153 target: "elm.padding.left"; \
2154 target: "elm.padding.right"; \
2156 GENLIST_PROGRAM_DISABLED( TARGET \
2158 target: "bottom_line"; \
2159 target: "bottom_line2"; \
2160 target: "bg_reorder"; \
2162 GENLIST_PROGRAM_FOCUS \
2163 GENLIST_PROGRAM_SELECT( TARGET \
2165 target: "bottom_line"; \
2166 target: "bottom_line2"; \
2167 target: "bg_reorder"; \
2169 GENLIST_PROGRAM_SOUND( "bg" ) \
2170 GENLIST_PROGRAM_SOUND( "bg_reorder" ) \
2171 GENLIST_PROGRAM_DECORATE_REORDER("normal", TARGET \
2172 target: "bg_clip"; \
2173 target: "bg_reorder_clip"; \
2174 target: "bottom_line_clip"; \
2175 target: "elm.padding.left"; \
2176 target: "elm.padding.right"; \
2178 GENLIST_PROGRAM_FLIP \
2181 // FIXME: inheritance !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
2182 // if GENLIST_PROGRAM_EXPAND is here, expanda effect is something wrong.
2183 // because after can be duplicated when program inheriting.
2184 #define GENLIST_PROGRAMS_DIALOGUE( TARGET ) \
2186 GENLIST_PROGRAM_DEFAULT( TARGET \
2187 target: "bg_dialogue"; \
2188 target: "bg_dialogue_clip"; \
2189 target: "elm.padding.left"; \
2190 target: "elm.padding.right"; \
2192 GENLIST_PROGRAM_DISABLED( TARGET ) \
2193 GENLIST_PROGRAM_FOCUS_DIALOGUE \
2194 GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
2195 program { name: "bg_color_change"; \
2196 signal: "bg_color_change"; \
2198 action: STATE_SET "2depth" 0.0; \
2199 target: "bg_dialogue_clip"; \
2201 GENLIST_PROGRAM_SOUND("bg_dialogue") \
2202 GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
2203 target: "elm.padding.left"; \
2204 target: "elm.padding.right"; \
2206 GENLIST_PROGRAM_FLIP \
2207 GENLIST_PROGRAM_EDITMODE \
2210 #define GENLIST_PROGRAMS_READ_TEXT( TARGET ) \
2212 GENLIST_PROGRAM_DEFAULT( TARGET \
2214 target: "bg_clip"; \
2215 target: "bottom_line"; \
2216 target: "bottom_line2"; \
2217 target: "bottom_line_clip"; \
2218 target: "bg_reorder"; \
2219 target: "elm.padding.left"; \
2220 target: "elm.padding.right"; \
2222 GENLIST_PROGRAM_DISABLED( TARGET \
2224 target: "bottom_line"; \
2225 target: "bottom_line2"; \
2226 target: "bg_reorder"; \
2228 GENLIST_PROGRAM_FOCUS \
2229 GENLIST_PROGRAM_SELECT( TARGET \
2231 target: "bottom_line"; \
2232 target: "bottom_line2"; \
2233 target: "bg_reorder"; \
2235 GENLIST_PROGRAM_SOUND("bg") \
2236 GENLIST_PROGRAM_DECORATE_REORDER( "normal", \
2237 target: "bg_clip"; \
2238 target: "bg_reorder_clip"; \
2239 target: "bottom_line_clip"; \
2240 target: "elm.padding.left"; \
2241 target: "elm.padding.right"; \
2243 program { name: "unselected_target"; \
2244 action: STATE_SET "default" 0.0; \
2247 program { name: "unselected_read"; \
2248 signal: "elm,state,unselected"; \
2251 if (get_int(readed) == 1) \
2252 run_program(PROGRAM:"go_read_target"); \
2254 run_program(PROGRAM:"unselected_target"); \
2257 program { name: "go_read"; \
2258 signal: "elm,state,read"; \
2261 set_int(readed, 1); \
2262 run_program(PROGRAM:"go_read_target"); \
2265 program { name: "go_unread"; \
2266 signal: "elm,state,unread"; \
2269 set_int(readed, 0); \
2270 run_program(PROGRAM:"go_unread_target"); \
2273 program { name: "go_read_target"; \
2274 action: STATE_SET "read" 0.0; \
2277 program { name: "go_unread_target"; \
2278 action: STATE_SET "unread" 0.0; \
2283 #define GENLIST_PROGRAMS_DECORATE_EFFECT( TARGET ) \
2284 program { name: "decorate_enabled_effect_ef"; \
2285 signal: "elm,state,decorate,enabled,effect";\
2287 transition: DECELERATE 0.5;\
2288 action: STATE_SET "decorate" 0.0;\
2291 program { name: "decorate_disabled_effect_ef";\
2292 signal: "elm,state,decorate,disabled,effect";\
2294 transition: ACCELERATE 0.5;\
2295 action: STATE_SET "default" 0.0;\
2298 program { name: "decorate_enabled_ef";\
2299 signal: "elm,state,decorate,enabled";\
2301 action: STATE_SET "decorate" 0.0;\
2304 program { name: "decorate_disabled_ef";\
2305 signal: "elm,state,decorate,disabled";\
2307 action: STATE_SET "default" 0.0;\
2311 #define GENLIST_PROGRAMS_ENTRY \
2313 signal: "elm,state,eraser,show"; \
2314 action: STATE_SET "show" 0.0; \
2315 target: "elm.icon.eraser"; \
2318 signal: "elm,state,eraser,hide"; \
2319 action: STATE_SET "default" 0.0; \
2320 target: "elm.icon.eraser"; \
2323 signal: "elm,state,rename,show"; \
2324 action: STATE_SET "default" 0.0; \
2325 target: "elm.image.rename"; \
2328 signal: "elm,state,rename,hide"; \
2329 action: STATE_SET "hide" 0.0; \
2330 target: "elm.image.rename"; \
2333 #define GENLIST_PROGRAMS_THUMB \
2334 GENLIST_PROGRAM_DECORATE_REORDER( "thumb", target: "elm.thumb"; ) \
2335 GENLIST_PROGRAM_FLIP_TARGET( target: "elm.thumb.clip"; ) \
2336 program { name: "enabled_thumb"; \
2337 signal: "elm,state,enabled"; \
2339 action: STATE_SET "default" 0.0; \
2341 target: "elm.thumb"; \
2343 program { name: "disabled_thumb"; \
2344 signal: "elm,state,disabled"; \
2346 action: STATE_SET "disabled" 0.0; \
2348 target: "elm.thumb"; \
2350 program { name: "selected_thumb"; \
2351 signal: "elm,state,selected"; \
2356 get_state(PART:"elm.thumb", st, 30, vl); \
2357 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) \
2358 set_state(PART:"elm.thumb", "reorder_selected", 0.0); \
2360 set_state(PART:"elm.thumb", "selected", 0.0); \
2363 program { name: "unselected_thumb"; \
2364 signal: "elm,state,unselected"; \
2369 get_state(PART:"elm.thumb", st, 30, vl); \
2370 if (!strcmp(st, "reorder_selected")) \
2371 set_state(PART:"elm.thumb", "reorder", 0.0); \
2373 set_state(PART:"elm.thumb", "default", 0.0); \
2377 //****************************************************************************//
2378 // ******************************* Icon Part ******************************//
2379 //***************************************************************************//
2380 #define GENLIST_PART_ICON(NAME, DESCRIPION) \
2381 part { name: NAME; \
2387 #define GENLIST_PARAM_ICON_BIG \
2388 min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
2389 max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
2391 #define GENLIST_PARAM_ICON_SMALL \
2392 min: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE; \
2393 max: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE;
2395 #define GENLIST_PARAM_ICON_BTN_01 \
2396 min: 0 GENLIST_BTN_01_HEIGHT; \
2397 max: -1 GENLIST_BTN_01_HEIGHT;
2399 #define GENLIST_PARAM_ICON_BTN_02 \
2400 min: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE; \
2401 max: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE;
2403 #define GENLIST_PARAM_ICON_ONOFF_WIDTH \
2404 min: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT; \
2405 max: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT;
2407 #define GENLIST_PARAM_ICON_THUMBNAIL1\
2408 min: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE; \
2409 max: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE;
2411 #define GENLIST_PARAM_ICON_CHECK_RADIO \
2412 min: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE; \
2413 max: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE;
2415 #define GENLIST_PARAM_ICON_STAR \
2416 min: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2417 max: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2419 #define GENLIST_PART_ICON_BIG_R(NAME, RIGHT) \
2420 GENLIST_PART_ICON(NAME, \
2421 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2423 GENLIST_PARAM_ICON_BIG \
2427 #define GENLIST_PART_ICON_BIG_L(NAME, LEFT) \
2428 GENLIST_PART_ICON(NAME, \
2429 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2430 GENLIST_PARAM_ICON_BIG \
2435 #define GENLIST_PART_ICON_SMALL_L(NAME, LEFT) \
2436 GENLIST_PART_ICON(NAME, \
2437 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2438 GENLIST_PARAM_ICON_SMALL \
2443 #define GENLIST_PART_ICON_SMALL_LB(NAME, LEFT, BOTTOM) \
2444 GENLIST_PART_ICON(NAME, \
2445 GENLIST_DESCRIPTION_LB(LEFT, BOTTOM, \
2446 GENLIST_PARAM_ICON_SMALL \
2451 #define GENLIST_PART_ICON_SMALL_LTB(NAME, LEFT, TOP, BOTTOM) \
2452 GENLIST_PART_ICON(NAME, \
2453 GENLIST_DESCRIPTION_LTB(LEFT, TOP, BOTTOM, \
2454 GENLIST_PARAM_ICON_SMALL \
2459 #define GENLIST_PART_ICON_SMALL_RTB(NAME, RIGHT, TOP, BOTTOM) \
2460 GENLIST_PART_ICON(NAME, \
2461 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2462 GENLIST_PARAM_ICON_SMALL \
2467 #define GENLIST_PART_ICON_BTN_01_RTB(NAME, RIGHT, TOP, BOTTOM) \
2468 GENLIST_PART_ICON(NAME, \
2469 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM,\
2470 GENLIST_PARAM_ICON_BTN_01 \
2475 #define GENLIST_PART_ICON_BTN_02_RTB(NAME, RIGHT, TOP, BOTTOM) \
2476 GENLIST_PART_ICON(NAME, \
2477 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM,\
2478 GENLIST_PARAM_ICON_BTN_02 \
2483 #define GENLIST_PART_ICON_BTN_ONOFF_R(NAME, RIGHT) \
2484 GENLIST_PART_ICON(NAME, \
2485 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2486 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2491 #define GENLIST_PART_ICON_BTN_ONOFF_L(NAME, LEFT) \
2492 GENLIST_PART_ICON(NAME, \
2493 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2494 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2499 #define GENLIST_PART_ICON_THUMBNAIL1_R(NAME, RIGHT) \
2500 GENLIST_PART_ICON(NAME, \
2501 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2502 GENLIST_PARAM_ICON_THUMBNAIL1 \
2507 #define GENLIST_PART_ICON_CHECK_RADIO_L(NAME, LEFT) \
2508 GENLIST_PART_ICON(NAME, \
2509 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2510 GENLIST_PARAM_ICON_CHECK_RADIO \
2515 #define GENLIST_PART_ICON_STAR_RTB(NAME, RIGHT, TOP, BOTTOM) \
2516 GENLIST_PART_ICON(NAME, \
2517 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2518 GENLIST_PARAM_ICON_STAR \
2523 /*****************************************************************************/
2524 /******************************* Genlist IMAGE ********************************/
2525 /*****************************************************************************/
2526 #define GENLIST_PART_IMAGE(NAME, DESCRIPION) \
2527 part { name: NAME; \
2533 #define GENLIST_PARAM_PASSWORD_IMAGE \
2534 min: GENLIST_ICON_PASSWORD_SIZE GENLIST_ICON_PASSWORD_SIZE; \
2535 max: GENLIST_ICON_PASSWORD_SIZE GENLIST_ICON_PASSWORD_SIZE; \
2536 image.normal: "00_search_edit_field_bg_02.png"; \
2537 image.border: 12 13 12 13; \
2538 image.border_scale: 1;
2540 /*****************************************************************************/
2541 /******************************* Genlist Bubble ********************************/
2542 /*****************************************************************************/
2543 #define GENLIST_IMAGES_EXPANDABLE_BTN \
2545 image: "00_button_expand_closed.png" COMP; \
2546 image: "00_button_expand_opened.png" COMP; \
2549 #define GENLIST_PART_EXPANDABLE_ARROW \
2550 GENLIST_PART_ICON("touch_arrow", \
2551 ignore_flags: ON_HOLD; \
2552 GENLIST_DESCRIPTION_ENVELOP("arrow", ) \
2554 GENLIST_PART_RECT("arrow_clip", \
2555 GENLIST_DESCRIPTION_ENVELOP("arrow", \
2556 color: 101 101 101 255; \
2558 description { state: "disabled" 0.0; \
2559 color: 101 101 101 76; \
2561 description { state: "expand_opened_press" 0.0; \
2562 color: 248 246 239 255; \
2564 description { state: "default_press" 0.0; \
2565 color: 248 246 239 255; \
2568 GENLIST_PART_IMAGE("arrow", \
2569 clip_to: "arrow_clip"; \
2570 ignore_flags: ON_HOLD; \
2572 GENLIST_DESCRIPTION_R("elm.padding.right", \
2576 image.normal: "00_button_expand_closed.png"; \
2578 description { state: "default_press" 0.0; \
2579 inherit: "default" 0.0; \
2580 image.normal: "00_button_expand_closed_press.png"; \
2582 description { state: "expand_opened" 0.0; \
2583 inherit: "default" 0.0; \
2584 image.normal: "00_button_expand_opened.png"; \
2586 description { state: "expand_opened_press" 0.0; \
2587 inherit: "expand_opened" 0.0; \
2588 image.normal: "00_button_expand_opened_press.png"; \
2591 /*****************************************************************************/
2592 /******************************* Genlist RECT ********************************/
2593 /*****************************************************************************/
2594 #define GENLIST_PART_SPACER(NAME, DESCRIPION) \
2595 part { name: NAME; \
2602 #define GENLIST_PART_RECT(NAME, DESCRIPION) \
2603 part { name: NAME; \
2609 /*****************************************************************************/
2610 /******************************* Genlist TEXT ********************************/
2611 /*****************************************************************************/
2612 #define GENLIST_PART_TEXT(NAME, DESCRIPION) \
2613 part { name: NAME; \
2619 #define GENLIST_PART_TEXTBLOCK(NAME, DESCRIPION) \
2620 part { name: NAME; \
2626 /*************************** parameters **********************************/
2627 #define GENLIST_PARAM_TEXT_LIMIT_RB \
2628 rel1.to_x: "base"; /* This limits text growing. */\
2629 rel1.relative: 0.35 0; /* This limits text growing. */\
2630 text.max: 1 0; /* This limits text growing. */
2632 #define GENLIST_PARAM_TEXT_LIMIT_RT \
2633 rel1.to_x: "base"; /* This limits text growing. */\
2634 rel1.relative: 0.35 1; /* This limits text growing. */\
2635 text.max: 1 0; /* This limits text growing. */
2637 #define GENLIST_PARAM_TEXT_LIMIT_RTB \
2638 rel1.to_x: "base"; /* This limits text growing. */\
2639 rel1.relative: 0.35 1; /* This limits text growing. */\
2640 text.max: 1 0; /* This limits text growing. */
2643 #define GENLIST_PARAM_DIALOGUE_GROUP_TITLE \
2644 color: GENLIST_DIALOGUE_GROUP_TITLE_COLOR; \
2647 font: "Tizen:style=Bold"; \
2649 size: GENLIST_DIALOGUE_GROUP_TITLE_SIZE; \
2650 text_class: "list_item"; \
2654 #define GENLIST_PARAM_PASSWORD_TITLE \
2655 color: DIALOGUE_PASSWORD_TITLE_COLOR; \
2657 font: "Tizen:style=Bold"; \
2658 size: DIALOGUE_PASSWORD_TITLE_SIZE; \
2661 text_class: "list_item"; \
2664 // Progress main text
2665 #define GENLIST_PARAM_PROGRESS_MAIN \
2666 color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
2670 font: "Tizen:style=Regular"; \
2671 size: GENLIST_PROGRESS_MAIN_TEXT_SIZE; \
2672 text_class: "list_item"; \
2676 #define GENLIST_PARAM_LISTITEM \
2677 color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
2681 font: "Tizen:style=Regular"; \
2682 size: GENLIST_LIST_MAIN_TEXT_SIZE; \
2683 text_class: "list_item"; \
2686 #define GENLIST_PARAM_LISTITEM_TB \
2689 style: "genlist_style_list_main_text_unread"; \
2692 #define GENLIST_PARAM_LISTITEM_TB_WRAP \
2695 style: "genlist_style_list_main_text_unread_wrap"; \
2699 #define GENLIST_PARAM_SUBITEM_DEFAULT \
2700 color: GENLIST_LIST_SUB_TEXT_DEFAULT_COLOR; \
2704 font: "Tizen:style=Bold"; \
2705 size: GENLIST_LIST_SUB_TEXT_SIZE; \
2706 text_class: "tizen"; \
2709 #define GENLIST_PARAM_SUBITEM_SETTINGS \
2710 color: GENLIST_LIST_SUB_TEXT_SETTINGS_COLOR; \
2714 font: "Tizen:style=Bold"; \
2715 size: GENLIST_LIST_SUB_TEXT_SIZE; \
2716 text_class: "tizen"; \
2719 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2722 style: "genlist_style_list_sub_text_default"; \
2725 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB_WRAP \
2728 style: "genlist_style_list_sub_text_default_wrap"; \
2731 #define GENLIST_PARAM_SUBITEM_SETTINGS_TB \
2734 style: "genlist_style_list_sub_text_settings"; \
2738 #define GENLIST_PARAM_SUBITEM_02 \
2739 color: GENLIST_LIST_SUB_TEXT_02_COLOR; \
2743 font: "Tizen:style=Bold"; \
2744 size: GENLIST_LIST_SUB_TEXT_02_SIZE; \
2745 text_class: "tizen"; \
2748 // Dialogue group - Apps
2749 #define GENLIST_PARAM_APPS_NAME\
2750 color: GENLIST_APPS_NAME_COLOR; \
2754 font: "Tizen:style=Bold"; \
2755 size: GENLIST_APPS_NAME_SIZE; \
2756 text_class: "list_item"; \
2759 #define GENLIST_PARAM_APPS_INC\
2760 color: GENLIST_APPS_INC_COLOR; \
2764 font: "Tizen:style=Bold"; \
2765 size: GENLIST_APPS_INC_SIZE; \
2766 text_class: "list_item"; \
2769 #define GENLIST_PARAM_APPS_RATING\
2770 color: GENLIST_APPS_RATING_COLOR; \
2774 font: "Tizen:style=Bold"; \
2775 size: GENLIST_APPS_RATING_SIZE; \
2776 text_class: "list_item"; \
2779 #define GENLIST_PARAM_APPS_PRICE\
2780 color: GENLIST_APPS_PRICE_ORIGINAL_COLOR; \
2784 font: "Tizen:style=Bold"; \
2785 size: GENLIST_APPS_PRICE_SIZE; \
2786 text_class: "list_item"; \
2789 #define GENLIST_PARAM_APPS_PRICE_SALE\
2790 color: GENLIST_APPS_PRICE_SALE_COLOR; \
2794 font: "Tizen:style=Bold"; \
2795 size: GENLIST_APPS_PRICE_SIZE; \
2796 text_class: "list_item"; \
2799 #define GENLIST_PARAM_CONTENTS_TEXT \
2800 color: GENLIST_CONTENTS_TEXT_COLOR; \
2804 font: "Tizen:style=Regular"; \
2805 size: GENLIST_CONTENTS_TEXT_SIZE; \
2806 text_class: "tizen"; \
2809 /*************************** Descriptions **********************************/
2811 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2812 description { state: "disabled" 0.0; \
2813 inherit: "default" 0.0; \
2814 color: GENLIST_LIST_MAIN_TEXT_UNREAD_DIM_COLOR; \
2816 description { state: "read" 0.0; \
2817 inherit: "default" 0.0; \
2818 color: GENLIST_LIST_MAIN_TEXT_READ_COLOR; \
2820 description { state: "read,disabled" 0.0; \
2821 inherit: "default" 0.0; \
2822 color: GENLIST_LIST_MAIN_TEXT_READ_DIM_COLOR; \
2824 description { state: "selected" 0.0; \
2825 inherit: "default" 0.0; \
2826 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2829 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2830 description { state: "disabled" 0.0; \
2831 inherit: "default" 0.0; \
2832 text.style: "genlist_style_list_main_text_unread_dim"; \
2834 description { state: "read" 0.0; \
2835 inherit: "default" 0.0; \
2836 text.style: "genlist_style_list_main_text_read"; \
2838 description { state: "read,disabled" 0.0; \
2839 inherit: "default" 0.0; \
2840 text.style: "genlist_style_list_main_text_read_dim"; \
2842 description { state: "selected" 0.0; \
2843 inherit: "default" 0.0; \
2844 text.style: "genlist_style_list_main_text_focus"; \
2848 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2849 description { state: "disabled" 0.0; \
2850 inherit: "default" 0.0; \
2851 color: GENLIST_LIST_SUB_TEXT_DEFAULT_DIM_COLOR; \
2853 description { state: "selected" 0.0; \
2854 inherit: "default" 0.0; \
2855 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2858 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2859 description { state: "disabled" 0.0; \
2860 inherit: "default" 0.0; \
2861 text.style: "genlist_style_list_sub_text_default_dim"; \
2863 description { state: "selected" 0.0; \
2864 inherit: "default" 0.0; \
2865 text.style: "genlist_style_list_sub_text_focus"; \
2868 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB_WRAP \
2869 description { state: "disabled" 0.0; \
2870 inherit: "default" 0.0; \
2871 text.style: "genlist_style_list_sub_text_default_dim_wrap"; \
2873 description { state: "selected" 0.0; \
2874 inherit: "default" 0.0; \
2875 text.style: "genlist_style_list_sub_text_focus_wrap"; \
2878 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
2879 description { state: "disabled" 0.0; \
2880 inherit: "default" 0.0; \
2881 color: GENLIST_LIST_SUB_TEXT_SETTINGS_DIM_COLOR; \
2883 description { state: "selected" 0.0; \
2884 inherit: "default" 0.0; \
2885 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2888 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
2889 description { state: "disabled" 0.0; \
2890 inherit: "default" 0.0; \
2891 text.style: "genlist_style_list_sub_text_settings_dim"; \
2893 description { state: "selected" 0.0; \
2894 inherit: "default" 0.0; \
2895 text.style: "genlist_style_list_sub_text_focus"; \
2898 // list main text multiline
2899 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB_WRAP \
2900 description { state: "disabled" 0.0; \
2901 inherit: "default" 0.0; \
2902 text.style: "genlist_style_list_main_text_unread_dim_wrap"; \
2904 description { state: "selected" 0.0; \
2905 inherit: "default" 0.0; \
2906 text.style: "genlist_style_list_main_text_focus_wrap"; \
2909 /*************************** Parts **********************************/
2910 #define GENLIST_PART_DIALOGUE_GROUP_HELP_TEXT(NAME, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2911 GENLIST_PART_TEXTBLOCK(NAME, \
2912 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2915 style: "genlist_style_dialogue_group_help_text"; \
2920 #define GENLIST_PART_LISTITEM(NAME, DESCRIPTION) \
2921 GENLIST_PART_TEXT(NAME, \
2923 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2926 #define GENLIST_PART_LISTITEM_TB(NAME, DESCRIPTION) \
2927 GENLIST_PART_TEXTBLOCK(NAME, \
2929 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2932 #define GENLIST_PART_LISTITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2933 GENLIST_PART_TEXT(NAME, \
2934 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2936 GENLIST_PARAM_LISTITEM \
2939 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2942 #define GENLIST_PART_LISTITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2943 GENLIST_PART_TEXTBLOCK(NAME, \
2944 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2947 GENLIST_PARAM_LISTITEM_TB \
2950 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2953 #define GENLIST_PART_LISTITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2954 GENLIST_PART_TEXT(NAME, \
2955 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2957 GENLIST_PARAM_LISTITEM \
2960 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2963 #define GENLIST_PART_LISTITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
2964 GENLIST_PART_TEXT(NAME, \
2965 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
2968 GENLIST_PARAM_LISTITEM \
2971 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2974 #define GENLIST_PART_LISTITEM_LRT_TB(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
2975 GENLIST_PART_TEXTBLOCK(NAME, \
2976 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
2979 GENLIST_PARAM_LISTITEM_TB \
2982 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2985 #define GENLIST_PART_LISTITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2986 GENLIST_PART_TEXTBLOCK(NAME, \
2987 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2990 GENLIST_PARAM_LISTITEM_TB \
2993 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2996 #define GENLIST_PART_SUBITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2997 GENLIST_PART_TEXT(NAME, \
2998 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
3000 GENLIST_PARAM_SUBITEM_DEFAULT \
3003 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3006 #define GENLIST_PART_SUBITEM(NAME, DESCRIPTION) \
3007 GENLIST_PART_TEXT(NAME, \
3009 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3012 #define GENLIST_PART_SUBITEM_R(NAME, HEIGHT, RIGHT) \
3013 GENLIST_PART_TEXT(NAME, \
3014 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
3017 GENLIST_PARAM_TEXT_LIMIT_RB \
3018 GENLIST_PARAM_SUBITEM_DEFAULT \
3020 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3023 #define GENLIST_PART_SUBITEM_RB(NAME, HEIGHT, RIGHT, BOTTOM) \
3024 GENLIST_PART_TEXT(NAME, \
3025 GENLIST_DESCRIPTION_RB(RIGHT, BOTTOM, \
3028 GENLIST_PARAM_TEXT_LIMIT_RB \
3029 GENLIST_PARAM_SUBITEM_DEFAULT \
3031 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3034 #define GENLIST_PART_SUBITEM_RB_TB(NAME, HEIGHT, RIGHT, BOTTOM) \
3035 GENLIST_PART_TEXTBLOCK(NAME, \
3036 GENLIST_DESCRIPTION_RB(RIGHT, BOTTOM, \
3038 GENLIST_PARAM_TEXT_LIMIT_RB \
3040 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3042 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3045 #define GENLIST_PART_SUBITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM) \
3046 GENLIST_PART_TEXTBLOCK(NAME, \
3047 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
3049 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3051 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3054 #define GENLIST_PART_SUBITEM_R_FIXED(NAME, WIDTH, HEIGHT, RIGHT) \
3055 GENLIST_PART_TEXT(NAME, \
3056 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
3057 min: WIDTH HEIGHT; \
3059 GENLIST_PARAM_SUBITEM_DEFAULT \
3061 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3064 #define GENLIST_PART_SUBITEM_R_FIXED_TB(NAME, WIDTH, HEIGHT, RIGHT) \
3065 GENLIST_PART_TEXTBLOCK(NAME, \
3066 GENLIST_DESCRIPTION_R(RIGHT, \
3067 min: WIDTH HEIGHT; \
3069 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3071 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3074 #define GENLIST_PART_SUBITEM_L_FIXED(NAME, WIDTH, HEIGHT, LEFT) \
3075 GENLIST_PART_TEXT(NAME, \
3076 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
3077 min: WIDTH HEIGHT; \
3079 GENLIST_PARAM_SUBITEM_DEFAULT \
3081 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3084 #define GENLIST_PART_SUBITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
3085 GENLIST_PART_TEXT(NAME, \
3086 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
3088 GENLIST_PARAM_SUBITEM_DEFAULT \
3091 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3094 #define GENLIST_PART_SUBITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT) \
3095 GENLIST_PART_TEXTBLOCK(NAME, \
3096 GENLIST_DESCRIPTION_LR(LEFT, RIGHT, \
3098 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3100 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3103 #define GENLIST_PART_SUBITEM_LB(NAME, HEIGHT, LEFT, RIGHT) \
3104 GENLIST_PART_TEXT(NAME, \
3105 GENLIST_DESCRIPTION_LB(LEFT, BOTTOM, \
3107 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3109 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3112 #define GENLIST_PART_SUBITEM_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3113 GENLIST_PART_TEXT(NAME, \
3114 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3116 GENLIST_PARAM_SUBITEM_DEFAULT \
3119 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3122 #define GENLIST_PART_SUBITEM_SETTINGS_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM, PARAM) \
3123 GENLIST_PART_TEXT(NAME, \
3124 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3126 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
3127 GENLIST_PARAM_SUBITEM_SETTINGS\
3130 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
3133 #define GENLIST_PART_SUBITEM_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3134 GENLIST_PART_TEXTBLOCK(NAME, \
3135 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3137 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3140 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3143 #define GENLIST_PART_SUBITEM_SETTINGS_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3144 GENLIST_PART_TEXTBLOCK(NAME, \
3145 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3147 GENLIST_PARAM_SUBITEM_SETTINGS_TB \
3150 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
3153 #define GENLIST_PART_SUBITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
3154 GENLIST_PART_TEXT(NAME, \
3155 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
3158 GENLIST_PARAM_SUBITEM_DEFAULT \
3160 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3163 #define GENLIST_PART_SUBITEM_SETTINGS_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
3164 GENLIST_PART_TEXT(NAME, \
3165 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
3168 GENLIST_PARAM_SUBITEM_SETTINGS \
3170 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
3173 #define GENLIST_PART_SUBITEM_LTB(NAME, HEIGHT, LEFT, TOP, BOTTOM) \
3174 GENLIST_PART_TEXT(NAME, \
3175 GENLIST_DESCRIPTION_LTB(LEFT, TOP, BOTTOM, \
3177 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
3178 GENLIST_PARAM_SUBITEM_DEFAULT \
3180 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3183 #define GENLIST_PART_SUBITEM_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3184 GENLIST_PART_TEXT(NAME, \
3185 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3187 GENLIST_PARAM_TEXT_LIMIT_RT \
3188 GENLIST_PARAM_SUBITEM_DEFAULT \
3191 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3194 #define GENLIST_PART_SUBITEM_RTB_TB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3195 GENLIST_PART_TEXTBLOCK(NAME, \
3196 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3198 GENLIST_PARAM_TEXT_LIMIT_RT \
3199 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3202 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3205 #define GENLIST_PART_SUBITEM_02_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3206 GENLIST_PART_TEXT(NAME, \
3207 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3209 GENLIST_PARAM_TEXT_LIMIT_RT \
3210 GENLIST_PARAM_SUBITEM_02 \
3213 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3216 #define GENLIST_PARAM_LIST_BUBBLE_TEXT \
3217 color: GENLIST_LIST_BUBBLE_TEXT_COLOR; \
3221 font: "Tizen:style=Bold"; \
3222 size: GENLIST_LIST_BUBBLE_TEXT_SIZE; \
3223 text_class: "tizen"; \
3226 // FIXME: Need to find why rel2.offset: 9 -1 will not fix the alignment of bubble text ?
3227 #define GENLIST_PART_LIST_BUBBLE_TEXT_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3228 GENLIST_PART_IMAGE("elm.bubble", \
3229 GENLIST_DESCRIPTION_ENVELOP(NAME, \
3231 normal: "00_list_bubble_bg.png"; \
3234 rel1.offset: -10 0; \
3235 rel2.offset: 8 -1; \
3239 color: GENLIST_LIST_BUBBLE_COLOR; \
3241 description { state: "selected" 0.0; \
3242 inherit: "default" 0.0; \
3243 color: GENLIST_LIST_BUBBLE_PRESS_COLOR; \
3246 GENLIST_PART_TEXT(NAME, \
3247 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3249 GENLIST_PARAM_TEXT_LIMIT_RT \
3250 rel2.offset: -10 -1; /* This maintain the text alignment with bubble text. */\
3251 GENLIST_PARAM_LIST_BUBBLE_TEXT \
3253 description { state: "selected" 0.0; \
3254 inherit: "default" 0.0; \
3255 color: GENLIST_LIST_BUBBLE_TEXT_FOCUS_COLOR; \
3260 #define GENLIST_PART_BASE__( param_item_height ) \
3261 part { name: "base"; \
3265 description { state: "default" 0.0; \
3266 min: 0 param_item_height; \
3267 color: LAYOUT_GROUP_LIST_BG_COLOR_INC; \
3271 /******************************************************************************/
3273 /******************************************************************************/
3274 // FIXME: UX do not define selected state. But I thinkt that it is neededs :(
3276 #define GENLIST_PROOGRAM_EXPAND(SRC, TARGET) \
3279 signal: "mouse,clicked,1"; \
3281 action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; \
3284 name: "go_expanded"; \
3285 signal: "elm,state,expanded"; \
3287 action: STATE_SET "active" 0.0; \
3291 name: "go_contracted"; \
3292 signal: "elm,state,contracted"; \
3294 action: STATE_SET "default" 0.0; \
3298 #define GENLIST_PART_BASE_LIST_H( HEIGHT) \
3299 part { name: "base"; \
3303 description { state: "default" 0.0; \
3306 rel2.relative: 1 0; \
3307 rel2.to: "bottom_line"; \
3311 GENLIST_PART_BOTTOM_LINE
3313 #define GENLIST_PART_DIALOGUE_ITEM \
3314 part { name: "elm.rect.dialogue"; \
3317 description { state: "default" 0.0; \
3320 color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
3321 rel2.relative: 0.0 1.0; \
3326 #define GENLIST_PART_DIALOGUE_RIGHT_LINE \
3327 part { name: "elm.rect.dialogue.right.line"; \
3330 description { state: "default" 0.0; \
3334 relative: 1.0 0.0; \
3338 color: GENLIST_LIST_LINE1_COLOR; \
3342 #define GENLIST_PROGRAM_FLIP_1TEXT \
3343 program { name: "flipped"; \
3344 signal: "elm,state,flip,enabled"; \
3346 action: STATE_SET "flipped" 0.0; \
3347 target: "elm.text"; \
3348 target: "elm.flip.content"; \
3350 program { name: "flip_disabled"; \
3351 signal: "elm,state,flip,disabled"; \
3353 action: STATE_SET "default" 0.0; \
3354 target: "elm.text"; \
3355 target: "elm.flip.content"; \
3358 #define GENLIST_PROGRAM_FLIP_2TEXT \
3359 program { name: "flipped"; \
3360 signal: "elm,state,flip,enabled"; \
3362 action: STATE_SET "flipped" 0.0; \
3363 target: "elm.text.1"; \
3364 target: "elm.text.2"; \
3365 target: "elm.flip.content"; \
3367 program { name: "flip_disabled"; \
3368 signal: "elm,state,flip,disabled"; \
3370 action: STATE_SET "default" 0.0; \
3371 target: "elm.text.1"; \
3372 target: "elm.text.2"; \
3373 target: "elm.flip.content"; \
3376 #define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
3377 program { name: "flipped"; \
3378 signal: "elm,state,flip,enabled"; \
3380 action: STATE_SET "flipped" 0.0; \
3381 target: "elm.text.1"; \
3382 target: "elm.text.2"; \
3383 target: "elm.icon"; \
3384 target: "elm.flip.content"; \
3386 program { name: "flip_disabled"; \
3387 signal: "elm,state,flip,disabled"; \
3389 action: STATE_SET "default" 0.0; \
3390 target: "elm.text.1"; \
3391 target: "elm.text.2"; \
3392 target: "elm.icon"; \
3393 target: "elm.flip.content"; \
3396 #define GENLIST_PROGRAM_FLIP_2TEXT_2ICON \
3397 program { name: "flipped"; \
3398 signal: "elm,state,flip,enabled"; \
3400 action: STATE_SET "flipped" 0.0; \
3401 target: "elm.text.1"; \
3402 target: "elm.text.2"; \
3403 target: "elm.icon.1"; \
3404 target: "elm.icon.2"; \
3405 target: "elm.flip.content"; \
3407 program { name: "flip_disabled"; \
3408 signal: "elm,state,flip,disabled"; \
3410 action: STATE_SET "default" 0.0; \
3411 target: "elm.text.1"; \
3412 target: "elm.text.2"; \
3413 target: "elm.icon.1"; \
3414 target: "elm.icon.2"; \
3415 target: "elm.flip.content"; \
3418 #define GENLIST_PROGRAM_FLIP_3TEXT_2ICON \
3419 program { name: "flipped"; \
3420 signal: "elm,state,flip,enabled"; \
3422 action: STATE_SET "flipped" 0.0; \
3423 target: "elm.text.1"; \
3424 target: "elm.text.2"; \
3425 target: "elm.text.3"; \
3426 target: "elm.icon.1"; \
3427 target: "elm.icon.2"; \
3428 target: "elm.flip.content"; \
3430 program { name: "flip_disabled"; \
3431 signal: "elm,state,flip,disabled"; \
3433 action: STATE_SET "default" 0.0; \
3434 target: "elm.text.1"; \
3435 target: "elm.text.2"; \
3436 target: "elm.text.3"; \
3437 target: "elm.icon.1"; \
3438 target: "elm.icon.2"; \
3439 target: "elm.flip.content"; \
3443 #define GENLIST_DESCRIPTION_INVISIBLE_SELECTED \
3444 description { state: "selected" 1.0; \
3445 inherit: "default" 0.0; \
3449 #define GENLIST_DESCRIPTION_FLIP_ENABLED \
3450 description { state: "flipped" 0.0; \
3451 inherit: "default" 0.0; \
3455 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT \
3459 get_state(PART:"elm.text", st, 30, vl); \
3460 set_state(PART:"bg", "selected", 0.0); \
3461 if (!strcmp(st, "flipped")) \
3462 set_state(PART:"elm.text", "selected", 1.0); \
3464 set_state(PART:"elm.text", "selected", 0.0); \
3468 /* genlist multisense macro - start */
3469 #define GENLIST_PROGRAM_AFTER_PLAY_BUTTON_PRESS \
3470 after: "play_button_press";
3472 #define GENLIST_PROGRAM_PLAY_BUTTON_PRESS \
3473 program { name: "play_button_press"; \
3474 action: PLAY_SAMPLE "button-pressed" 1.0; \