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_dialogue_circle_icon_bg_normal.png" COMP; \
411 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png" COMP; \
414 GENLIST_PART_RECT("elm.thumb.clip", \
415 description { state: "default"; \
417 description { state: "flipped"; \
421 GENLIST_PART_IMAGE("elm.thumb", \
422 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: "reorder" 0.0; \
435 inherit: "default" 0.0; \
436 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png"; \
438 description { state: "reorder_selected" 0.0; \
439 inherit: "default" 0.0; \
440 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png"; \
442 description { state: "decorate" 0.0; \
443 inherit: "default" 0.0; \
445 description { state: "decorate_reorder" 0.0; \
446 inherit: "reorder" 0.0; \
452 #define GENLIST_INHERIT_THUMB_SQUARE(SIZE_PREFIX, MASK_SIZE, PARENT) \
454 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_normal.png" COMP; \
455 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_press.png" COMP; \
456 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png" COMP; \
457 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png" COMP; \
460 GENLIST_PART_RECT("elm.thumb.clip", \
461 description { state: "default"; \
463 description { state: "flipped"; \
467 GENLIST_PART_IMAGE("elm.thumb", \
468 clip_to: "elm.thumb.clip"; \
470 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
471 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_normal.png"; \
472 min: MASK_SIZE MASK_SIZE; \
473 max: MASK_SIZE MASK_SIZE; \
476 description { state: "selected" 0.0; \
477 inherit: "default" 0.0; \
478 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_press.png"; \
480 description { state: "reorder" 0.0; \
481 inherit: "default" 0.0; \
482 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png"; \
484 description { state: "reorder_selected" 0.0; \
485 inherit: "default" 0.0; \
486 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png"; \
488 description { state: "decorate" 0.0; \
489 inherit: "default" 0.0; \
491 description { state: "decorate_reorder" 0.0; \
492 inherit: "reorder" 0.0; \
499 #define GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE(SIZE_PREFIX, MASK_SIZE, PARENT) \
501 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png" COMP; \
502 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png" COMP; \
503 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_dim.png" COMP; \
506 GENLIST_PART_RECT("elm.thumb.clip", \
507 description { state: "default"; \
509 description { state: "flipped"; \
513 GENLIST_PART_IMAGE("elm.thumb", \
514 clip_to: "elm.thumb.clip"; \
516 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
517 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png"; \
518 min: MASK_SIZE MASK_SIZE; \
519 max: MASK_SIZE MASK_SIZE; \
522 description { state: "selected" 0.0; \
523 inherit: "default" 0.0; \
524 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png"; \
526 description { state: "reorder" 0.0; \
527 inherit: "default" 0.0; \
528 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png"; \
530 description { state: "reorder_selected" 0.0; \
531 inherit: "default" 0.0; \
532 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png"; \
534 description { state: "decorate" 0.0; \
535 inherit: "default" 0.0; \
537 description { state: "decorate_reorder" 0.0; \
538 inherit: "reorder" 0.0; \
543 #define GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE(SIZE_PREFIX, MASK_SIZE, PARENT) \
545 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png" COMP; \
546 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png" COMP; \
547 image: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_dim.png" COMP; \
550 GENLIST_PART_RECT("elm.thumb.clip", \
551 description { state: "default"; \
553 description { state: "flipped"; \
557 GENLIST_PART_IMAGE("elm.thumb", \
558 clip_to: "elm.thumb.clip"; \
560 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
561 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png"; \
562 min: MASK_SIZE MASK_SIZE; \
563 max: MASK_SIZE MASK_SIZE; \
566 description { state: "selected" 0.0; \
567 inherit: "default" 0.0; \
568 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png"; \
570 description { state: "reorder" 0.0; \
571 inherit: "default" 0.0; \
572 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png"; \
574 description { state: "reorder_selected" 0.0; \
575 inherit: "default" 0.0; \
576 image.normal: "Content_views/Icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png"; \
578 description { state: "decorate" 0.0; \
579 inherit: "default" 0.0; \
581 description { state: "decorate_reorder" 0.0; \
582 inherit: "reorder" 0.0; \
587 #define GENLIST_INHERIT_THUMB_CIRCLE_MEDIUM(PARENT) \
588 GENLIST_INHERIT_THUMB_CIRCLE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
590 #define GENLIST_INHERIT_THUMB_SQUARE_MEDIUM(PARENT) \
591 GENLIST_INHERIT_THUMB_SQUARE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
593 #define GENLIST_INHERIT_THUMB_CIRCLE_LARGE(PARENT) \
594 GENLIST_INHERIT_THUMB_CIRCLE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
596 #define GENLIST_INHERIT_THUMB_SQUARE_LARGE(PARENT) \
597 GENLIST_INHERIT_THUMB_SQUARE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
600 #define GENLIST_INHERIT_THUMB_CIRCLE_MEDIUM_DIALOGUE(PARENT) \
601 GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
603 #define GENLIST_INHERIT_THUMB_SQUARE_MEDIUM_DIALOGUE(PARENT) \
604 GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
606 #define GENLIST_INHERIT_THUMB_CIRCLE_LARGE_DIALOGUE(PARENT) \
607 GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
609 #define GENLIST_INHERIT_THUMB_SQUARE_LARGE_DIALOGUE(PARENT) \
610 GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
612 //****************************************************************************//
613 // ****************************** BG Image **********************************//
614 //****************************************************************************//
616 #define GENLIST_PART_BG_NORMAL \
617 GENLIST_PART_RECT("bg_clip", \
619 description { state: "default" 0.0; \
621 color: 255 255 255 255; \
623 description { state: "decorate" 0.0; \
624 inherit: "default" 0.0; \
627 description { state: "reorder" 0.0; \
628 inherit: "default" 0.0; \
631 description { state: "decorate_reorder" 0.0; \
632 inherit: "default" 0.0; \
636 GENLIST_PART_RECT("bg_reorder_clip", \
638 description { state: "default" 0.0; \
641 description { state: "reorder" 0.0; \
642 inherit: "default" 0.0; \
644 color: 255 255 255 255; \
646 description { state: "decorate_reorder" 0.0; \
647 inherit: "default" 0.0; \
650 description { state: "decorate" 0.0; \
651 inherit: "default" 0.0; \
654 description { state: "reorder_flip" 0.0; \
655 inherit: "default" 0.0; \
659 GENLIST_PART_RECT("bg", \
660 clip_to: "bg_clip"; \
661 description { state: "default" 0.0; \
662 color: GENLIST_LIST_BG_COLOR; \
664 description { state: "selected" 0.0; \
665 inherit: "default" 0.0; \
666 color: GENLIST_LIST_PRESS_COLOR; \
668 description { state: "disabled" 0.0; \
669 inherit: "default" 0.0; \
670 color: GENLIST_LIST_DIM_COLOR; \
673 GENLIST_PART_SPACER("bg_reorder_left", \
674 description { state: "default" 0.0; \
679 rel2.relative: 0 1; \
682 GENLIST_PART_SPACER("bg_reorder_right", \
683 description { state: "default" 0.0; \
688 rel1.relative: 1 0; \
691 GENLIST_PART_IMAGE("bg_reorder", \
692 clip_to: "bg_reorder_clip"; \
693 GENLIST_DESCRIPTION_LR("bg_reorder_left", "bg_reorder_right", \
695 normal: "00_list_group_bg.png"; \
700 description { state: "selected" 0.0; \
701 inherit: "default"; \
703 normal: "00_list_group_bg_press.png"; \
708 description { state: "flipped" 0.0; \
709 inherit: "default"; \
715 #define GENLIST_PART_BG_NORMAL_OFF \
716 GENLIST_PART_RECT("bg_clip", \
718 description { state: "default" 0.0; \
721 description { state: "decorate" 0.0; \
722 inherit: "default" 0.0; \
725 description { state: "reorder" 0.0; \
726 inherit: "default" 0.0; \
729 description { state: "decorate_reorder" 0.0; \
730 inherit: "default" 0.0; \
734 GENLIST_PART_RECT("bg", \
736 description { state: "default" 0.0; \
739 description { state: "selected" 0.0; \
742 description { state: "disabled" 0.0; \
746 GENLIST_PART_RECT("bg_reorder_clip", \
748 description { state: "default" 0.0; \
751 description { state: "reorder" 0.0; \
754 description { state: "decorate_reorder" 0.0; \
757 description { state: "decorate" 0.0; \
760 description { state: "reorder_flip" 0.0; \
764 GENLIST_PART_IMAGE("bg_reorder", \
766 description {state: "default" 0.0;\
769 description { state: "selected" 0.0; {\
772 description { state: "flipped" 0.0; {\
777 #define GENLIST_PART_BG_DIALOGUE \
778 GENLIST_PART_RECT("bg_dialogue_clip", \
779 description { state: "default" 0.0; \
780 color: 255 255 255 255; \
782 description { state: "2depth" 0.0; \
783 color: 220 218 211 255; \
786 GENLIST_PART_SPACER("bg_dialogue_left", \
787 description { state: "default" 0.0; \
792 rel2.relative: 0 1; \
795 GENLIST_PART_SPACER("bg_dialogue_right", \
796 description { state: "default" 0.0; \
801 rel1.relative: 1 0; \
803 description { state: "editmode" 0.0; \
804 inherit: "default" 0.0; \
805 min: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_MEDIUM_SIZE) 0; \
806 max: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_MEDIUM_SIZE) 0; \
809 GENLIST_PART_IMAGE("bg_dialogue", \
810 insert_after: "base"; \
811 clip_to: "bg_dialogue_clip"; \
812 GENLIST_DESCRIPTION_LR("bg_dialogue_left", "bg_dialogue_right", \
814 normal: "00_list_group_bg.png"; \
819 description { state: "selected" 0.0; \
820 inherit: "default" 0.0; \
822 normal: "00_list_group_bg_press.png"; \
827 description { state: "top" 0.0; \
828 inherit: "default" 0.0; \
830 normal: "00_list_group_bg_top.png"; \
835 description { state: "top_selected" 0.0; \
836 inherit: "default" 0.0; \
838 normal: "00_list_group_bg_top_press.png"; \
843 description { state: "center" 0.0; \
844 inherit: "default" 0.0; \
846 normal: "00_list_group_bg_center.png"; \
851 description { state: "center_selected" 0.0; \
852 inherit: "default" 0.0; \
854 normal: "00_list_group_bg_center_press.png"; \
859 description { state: "bottom" 0.0; \
860 inherit: "default" 0.0; \
862 normal: "00_list_group_bg_bottom.png"; \
867 description { state: "bottom_selected" 0.0; \
868 inherit: "default" 0.0; \
870 normal: "00_list_group_bg_bottom_press.png"; \
877 //****************************************************************************//
878 // ****************************** BASE ********************************//
879 //****************************************************************************//
880 #define GENLIST_PART_BASE_SIZE(HEIGHT) \
881 part { name: "base"; \
885 description { state: "default" 0.0; \
889 description { state: "disabled" 0.0; \
890 inherit: "default"; \
893 part { name: "state"; \
897 description { state: "default" 0.0; \
900 description { state: "decorate" 0.0; \
901 inherit: "default"; \
903 description { state: "reorder" 0.0; \
904 inherit: "default"; \
906 description { state: "decorate_reorder" 0.0; \
907 inherit: "default"; \
911 #define GENLIST_PART_BASE \
912 GENLIST_PART_BASE_SIZE(0)
914 #define GENLIST_PART_FOCUS \
915 GENLIST_PART_IMAGE("focus_part", \
917 description { state: "default" 0.0; \
920 normal: "00_focus.png"; \
924 description { state: "focused" 0.0; \
925 inherit: "default" 0.0; \
930 #define GENLIST_PART_FOCUS_DIALOGUE \
931 GENLIST_PART_IMAGE("focus_part", \
933 GENLIST_DESCRIPTION_LR("bg_dialogue_left", "bg_dialogue_right", \
936 normal: "00_focus.png"; \
940 description { state: "focused" 0.0; \
941 inherit: "default" 0.0; \
944 description { state: "top_focused" 0.0; \
945 inherit: "default" 0.0; \
948 normal: "00_list_group_bg_top_focus.png"; \
952 description { state: "center_focused" 0.0; \
953 inherit: "default" 0.0; \
956 normal: "00_list_group_bg_center_focus.png"; \
960 description { state: "bottom_focused" 0.0; \
961 inherit: "default" 0.0; \
964 normal: "00_list_group_bg_bottom_focus.png"; \
970 //****************************************************************************//
971 // ****************************** LINE ********************************//
972 //****************************************************************************//
973 #define GENLIST_PART_BOTTOM_LINE \
974 GENLIST_PART_RECT("bottom_line_clip", \
975 description { state: "default" 0.0; \
976 color: 255 255 255 255; \
978 description { state: "decorate" 0.0; \
979 inherit: "default" 0.0; \
982 description { state: "reorder" 0.0; \
983 inherit: "default" 0.0; \
986 description { state: "decorate_reorder" 0.0; \
987 inherit: "default" 0.0; \
991 GENLIST_PART_RECT("bottom_line", \
993 clip_to: "bottom_line_clip"; \
994 description { state: "default" 0.0; \
995 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
996 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
999 color: GENLIST_LIST_LINE1_COLOR; \
1000 rel1.to: "bottom_line2"; \
1001 rel2.to: "bottom_line2"; \
1002 rel2.relative: 1 0; \
1003 rel1.offset: -1 -1; \
1005 description { state: "selected" 0.0; \
1006 inherit: "default" 0.0; \
1007 color: GENLIST_LIST_PRESS_COLOR; \
1009 description { state: "disabled" 0.0; \
1010 inherit: "default" 0.0; \
1011 color: GENLIST_LIST_LINE1_COLOR; \
1013 description { state: "flipped" 0.0; \
1014 inherit: "default" 0.0; \
1018 GENLIST_PART_RECT("bottom_line2", \
1020 clip_to: "bottom_line_clip"; \
1021 description { state: "default" 0.0; \
1022 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
1023 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
1026 color: GENLIST_LIST_LINE2_COLOR; \
1027 rel1.to_x: "elm.padding.left"; \
1028 rel1.relative: 1 0; \
1029 rel2.to_x: "elm.padding.right"; \
1030 rel2.relative: 0 1; \
1031 rel1.offset: -1 -1; \
1033 description { state: "selected" 0.0; \
1034 inherit: "default" 0.0; \
1035 color: GENLIST_LIST_PRESS_COLOR; \
1037 description { state: "disabled" 0.0; \
1038 inherit: "default" 0.0; \
1039 color: GENLIST_LIST_LINE2_COLOR; \
1041 description { state: "flipped" 0.0; \
1042 inherit: "default" 0.0; \
1047 #define GENLIST_PART_BOTTOM_LINE_OFF \
1048 GENLIST_PART_RECT("bottom_line", \
1050 description { state: "default" 0.0; \
1053 description { state: "selected" 0.0; \
1056 description { state: "disabled" 0.0; \
1059 description { state: "decorate" 0.0; \
1063 GENLIST_PART_RECT("bottom_line2", \
1065 description { state: "default" 0.0; \
1068 description { state: "selected" 0.0; \
1071 description { state: "disabled" 0.0; \
1074 description { state: "decorate" 0.0; \
1079 #define GENLIST_PART_DIVIDER_PADDING \
1080 GENLIST_PART_SPACER("elm.padding.divider.top", \
1081 description { state: "default" 0.0; \
1086 rel2.relative: 1 0; \
1089 GENLIST_PART_SPACER("elm.padding.divider.bottom", \
1090 description { state: "default" 0.0; \
1095 rel1.relative: 0 1; \
1099 #define GENLIST_PART_DIVIDER_L(LEFT) \
1100 GENLIST_PART_DIVIDER_PADDING \
1101 GENLIST_PART_RECT("elm.divider1", \
1103 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1109 color: GENLIST_LIST_DIVIDER1_COLOR; \
1112 GENLIST_PART_RECT("elm.divider2", \
1114 GENLIST_DESCRIPTION_LTB("elm.divider1", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1120 color: GENLIST_LIST_DIVIDER2_COLOR; \
1124 #define GENLIST_PART_DIVIDER_R(RIGHT) \
1125 GENLIST_PART_DIVIDER_PADDING \
1126 GENLIST_PART_RECT("elm.divider1", \
1128 GENLIST_DESCRIPTION_RTB("elm.divider2", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1133 color: GENLIST_LIST_DIVIDER1_COLOR; \
1136 GENLIST_PART_RECT("elm.divider2", \
1138 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1143 color: GENLIST_LIST_DIVIDER2_COLOR; \
1147 #define GENLIST_PART_CENTER_LINE_LT(LEFT, TOP) \
1148 GENLIST_PART_SPACER("elm.padding.divider.left", \
1149 GENLIST_DESCRIPTION_L(LEFT, \
1155 GENLIST_PART_SPACER("elm.padding.divider.right", \
1156 GENLIST_DESCRIPTION_ENVELOP("base", \
1161 rel1.relative: 1 0; \
1164 GENLIST_PART_RECT("center_line", \
1166 GENLIST_DESCRIPTION_LRT("elm.padding.divider.left", "elm.padding.divider.right", TOP, \
1170 color: GENLIST_LIST_DIVIDER1_COLOR; \
1173 GENLIST_PART_RECT("center_line2", \
1174 GENLIST_DESCRIPTION_LRT("elm.padding.divider.left", "elm.padding.divider.right", "center_line", \
1178 color: GENLIST_LIST_DIVIDER2_COLOR; \
1182 #define GENLIST_PART_COLORBAR \
1183 GENLIST_PART_SPACER("elm.padding.colorbar.top", \
1184 GENLIST_DESCRIPTION_ENVELOP("base", \
1189 rel2.relative: 1 0; \
1192 GENLIST_PART_SPACER("elm.padding.colorbar.bottom", \
1193 GENLIST_DESCRIPTION_ENVELOP("base", \
1198 rel1.relative: 0 1; \
1201 GENLIST_PART_ICON("elm.swallow.colorbar", \
1202 GENLIST_DESCRIPTION_TB("elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
1203 min: GENLIST_ICON_COLORBAR_SIZE 0; \
1204 max: GENLIST_ICON_COLORBAR_SIZE -1; \
1207 rel1.relative: 0 1; \
1208 rel2.relative: 0 0; \
1212 #define GENLIST_PART_COLORBAR_DIALOGUE \
1213 GENLIST_PART_SPACER("elm.padding.colorbar.top", \
1214 GENLIST_DESCRIPTION_ENVELOP("base", \
1219 rel2.relative: 1 0; \
1222 GENLIST_PART_SPACER("elm.padding.colorbar.bottom", \
1223 GENLIST_DESCRIPTION_ENVELOP("base", \
1228 rel1.relative: 0 1; \
1231 GENLIST_PART_SPACER("elm.padding.colorbar.left", \
1232 description{ state: "default" 0.0; \
1239 rel2.relative: 0 1; \
1242 GENLIST_PART_ICON("elm.swallow.colorbar", \
1243 GENLIST_DESCRIPTION_LTB("elm.padding.colorbar.left","elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
1244 min: GENLIST_ICON_COLORBAR_SIZE 0; \
1245 max: GENLIST_ICON_COLORBAR_SIZE -1; \
1250 //****************************************************************************//
1251 //********************************* PADDING **********************************//
1252 //****************************************************************************//
1253 #define GENLIST_PART_EXPANDED_PAD \
1254 part { name: "elm.swallow.pad"; \
1258 description { state: "default" 0.0; \
1265 rel2.relative: 0.0 1.0; \
1269 #define GENLIST_PART_PADDING( NAME, SIZE, REL1, REL2 ) \
1270 GENLIST_PART_SPACER(NAME, \
1271 description { state: "default" 0.0; \
1287 #define GENLIST_DESCRIPTION_DECORATE_PADDING \
1288 description { state: "decorate" 0.0; \
1289 inherit: "default" 0.0; \
1294 #define GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1295 description { state: "decorate_reorder" 0.0; \
1296 inherit: "default" 0.0; \
1301 #define GENLIST_DESCRIPTION_REORDER_PADDING \
1302 description { state: "reorder" 0.0; \
1303 inherit: "default" 0.0; \
1308 #define GENLIST_PART_PADDING_LEFT \
1309 GENLIST_PART_EXPANDED_PAD \
1310 GENLIST_PART_SPACER("elm.padding.left", \
1311 GENLIST_DESCRIPTION_L("elm.swallow.pad", \
1312 min: GENLIST_PADDING_SIZE_LEFT 0; \
1313 max: GENLIST_PADDING_SIZE_LEFT -1; \
1316 GENLIST_DESCRIPTION_DECORATE_PADDING \
1317 GENLIST_DESCRIPTION_REORDER_PADDING \
1318 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1321 #define GENLIST_PART_PADDING_LEFT_SIZE( SIZE ) \
1322 GENLIST_PART_EXPANDED_PAD \
1323 GENLIST_PART_SPACER("elm.padding.left", \
1324 GENLIST_DESCRIPTION_L("elm.swallow.pad", \
1329 GENLIST_DESCRIPTION_DECORATE_PADDING \
1330 GENLIST_DESCRIPTION_REORDER_PADDING \
1331 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1334 #define GENLIST_PART_EDITBTN \
1335 GENLIST_PART_SPACER("elm.padding.edit.right", \
1336 description { state: "default" 0.0; \
1339 rel1.relative: 1 0; \
1340 min: GENLIST_PADDING_SIZE_RIGHT 0; \
1341 max: GENLIST_PADDING_SIZE_RIGHT -1; \
1344 GENLIST_PART_ICON("elm.icon.edit", \
1345 GENLIST_DESCRIPTION_R("elm.padding.edit.right", \
1348 description { state: "editmode" 0.0; \
1349 inherit: "default" 0.0; \
1352 min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
1353 max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
1357 #define GENLIST_PART_PADDING_RIGHT \
1358 GENLIST_PART_SPACER("elm.padding.right", \
1359 description { state: "default" 0.0; \
1360 min: GENLIST_PADDING_SIZE_RIGHT 0; \
1361 max: GENLIST_PADDING_SIZE_RIGHT -1; \
1366 rel1.relative: 1 0; \
1368 GENLIST_DESCRIPTION_DECORATE_PADDING \
1369 GENLIST_DESCRIPTION_REORDER_PADDING \
1370 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1373 #define GENLIST_PART_PADDING_RIGHT_SIZE( SIZE ) \
1374 GENLIST_PART_SPACER("elm.padding.right", \
1375 description { state: "default" 0.0; \
1382 rel1.relative: 1 0; \
1384 GENLIST_DESCRIPTION_DECORATE_PADDING \
1385 GENLIST_DESCRIPTION_REORDER_PADDING \
1386 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1389 // FIXME: Use RECT instead of SPACER if this group is used on layout
1390 // for blocking events
1391 #define GENLIST_PART_PADDING_RIGHT_EDIT \
1392 GENLIST_PART_SPACER("elm.padding.right", \
1393 GENLIST_DESCRIPTION_R("elm.padding.right.edit", \
1394 min: DIALOGUE_PADDING_SIZE_RIGHT 0; \
1395 max: DIALOGUE_PADDING_SIZE_RIGHT -1; \
1398 GENLIST_DESCRIPTION_DECORATE_PADDING \
1399 GENLIST_DESCRIPTION_REORDER_PADDING \
1400 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1402 GENLIST_PART_SPACER("elm.padding.right.edit", \
1403 description { state: "default" 0.0; \
1408 rel1.relative: 1 0; \
1410 description { state: "editmode" 0.0; \
1411 inherit: "default" 0.0; \
1412 min: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_MEDIUM_SIZE) 0; \
1413 max: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_MEDIUM_SIZE) -1; \
1416 GENLIST_PART_EDITBTN
1418 #define GENLIST_PART_PADDING_TOP \
1419 GENLIST_PART_SPACER("elm.padding.top", \
1421 state: "default" 0.0; \
1422 min: 0 GENLIST_PADDING_SIZE_TOP; \
1423 max: -1 GENLIST_PADDING_SIZE_TOP; \
1427 rel2.relative: 1.0 0.0; \
1432 #define GENLIST_PART_PADDING_TOP_2LINE \
1433 GENLIST_PART_SPACER("elm.padding.top", \
1435 state: "default" 0.0; \
1436 min: 0 GENLIST_PADDING_SIZE_TOP_2LINE; \
1437 max: -1 GENLIST_PADDING_SIZE_TOP_2LINE; \
1441 rel2.relative: 1.0 0.0; \
1446 #define GENLIST_PART_PADDING_TOP_SIZE( SIZE ) \
1447 GENLIST_PART_SPACER("elm.padding.top", \
1449 state: "default" 0.0; \
1455 rel2.relative: 1.0 0.0; \
1460 #define GENLIST_PART_PADDING_BOTTOM \
1461 GENLIST_PART_SPACER("elm.padding.bottom", \
1462 description { state: "default" 0.0; \
1463 min: 0 GENLIST_PADDING_SIZE_BOTTOM; \
1464 max: -1 GENLIST_PADDING_SIZE_BOTTOM; \
1468 rel1.relative: 0.0 1.0; \
1473 #define GENLIST_PART_PADDING_BOTTOM_2LINE \
1474 GENLIST_PART_SPACER("elm.padding.bottom", \
1475 description { state: "default" 0.0; \
1476 min: 0 GENLIST_PADDING_SIZE_BOTTOM_2LINE; \
1477 max: -1 GENLIST_PADDING_SIZE_BOTTOM_2LINE; \
1481 rel1.relative: 0.0 1.0; \
1486 #define GENLIST_PART_PADDING_BOTTOM_SIZE( SIZE ) \
1487 GENLIST_PART_SPACER("elm.padding.bottom", \
1488 description { state: "default" 0.0; \
1494 rel1.relative: 0.0 1.0; \
1499 #define GENLIST_PART_PADDING_R( NAME, RIGHT ) \
1500 GENLIST_PART_SPACER(NAME, \
1501 description { state: "default" 0.0; \
1503 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1504 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1517 #define GENLIST_PART_PADDING_R_SIZE( NAME, RIGHT, SIZE ) \
1518 GENLIST_PART_SPACER(NAME, \
1519 description { state: "default" 0.0; \
1535 #define GENLIST_PART_PADDING_L( NAME, LEFT ) \
1536 GENLIST_PART_SPACER(NAME, \
1537 description { state: "default" 0.0; \
1539 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1540 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1553 #define GENLIST_PART_PADDING_L_SIZE( NAME, LEFT, SIZE ) \
1554 GENLIST_PART_SPACER(NAME, \
1555 description { state: "default" 0.0; \
1572 #define GENLIST_PART_PADDING_T_SIZE( NAME, TOP, SIZE ) \
1573 GENLIST_PART_SPACER(NAME, \
1574 description { state: "default" 0.0; \
1590 #define GENLIST_PART_PADDING_B_SIZE( NAME, BOTTOM, SIZE ) \
1591 GENLIST_PART_SPACER(NAME, \
1592 description { state: "default" 0.0; \
1608 #define GENLIST_PROGRAM_EXPAND_ROOT( TARGET ) \
1610 name: "go_expanded"; \
1611 signal: "elm,state,expanded"; \
1613 action: STATE_SET "expand_opened" 0.0; \
1617 name: "go_contracted"; \
1618 signal: "elm,state,contracted"; \
1620 action: STATE_SET "default" 0.0; \
1624 // 2.2.7 Genlist_Edit mode (Rename)
1625 // FIXME: padding is not needed when swallow content is NULL.
1626 // But how can edje know existence of swallow content?
1627 #define GENLIST_PART_FLIP \
1628 GENLIST_PART_RECT("elm.flip.bg", \
1630 description { state: "default" 0.0;\
1633 description { state: "flipped" 0.0; \
1634 inherit: "default" 0.0; \
1635 rel2.offset: 0 -3; \
1636 color: GENLIST_LIST_BG_COLOR;\
1639 GENLIST_PART_SPACER("elm.flip.padding.left", \
1640 description { state: "default" 0.0; \
1645 rel2.relative: 0 1; \
1648 GENLIST_PART_SPACER("elm.flip.padding.right", \
1649 description { state: "default" 0.0; \
1654 rel1.relative: 1 0; \
1657 GENLIST_PART_ICON("elm.flip.content", \
1658 GENLIST_DESCRIPTION("elm.flip.padding.left", "elm.flip.padding.eraser.left", \
1659 "elm.padding.top", "elm.padding.bottom", \
1663 description { state: "flipped" 0.0; \
1664 inherit: "default" 0.0; \
1668 GENLIST_PART_PADDING_R("elm.flip.padding.eraser.left", "elm.flip.eraser") \
1669 GENLIST_PART_ICON("elm.flip.eraser", \
1670 GENLIST_DESCRIPTION_RTB("elm.flip.padding.icon.left", \
1671 "elm.padding.top", "elm.padding.bottom", \
1674 min: GENLIST_ICON_ENTRY_SIZE GENLIST_ICON_ENTRY_SIZE; \
1675 max: GENLIST_ICON_ENTRY_SIZE GENLIST_ICON_ENTRY_SIZE; \
1677 description { state: "show" 0.0; \
1678 inherit: "default" 0.0; \
1682 GENLIST_PART_PADDING_R("elm.flip.padding.icon.left", "elm.flip.icon") \
1683 GENLIST_PART_ICON( "elm.flip.icon", \
1684 GENLIST_DESCRIPTION_RTB("elm.flip.padding.right", \
1685 "elm.padding.top", "elm.padding.bottom", \
1691 description { state: "flipped" 0.0; \
1692 inherit: "default" 0.0; \
1697 //****************************************************************************//
1698 // ******************************* Programs ********************************//
1699 //**************************************************************************//
1700 // signal: elm,state,%s,active
1701 // a "check" item named %s went active
1702 // signal: elm,state,%s,passive
1703 // a "check" item named %s went passive
1704 // default is passive
1705 #define GENLIST_PROGRAM_DEFAULT( TARGET ) \
1706 program { name: "default"; \
1707 signal: "elm,state,default"; \
1709 action: STATE_SET "default" 0.0; \
1713 #define GENLIST_PROGRAM_DISABLED( TARGET ) \
1714 program { name: "enabled"; \
1715 signal: "elm,state,enabled"; \
1717 action: STATE_SET "default" 0.0; \
1721 program { name: "disabled"; \
1722 signal: "elm,state,disabled"; \
1724 action: STATE_SET "disabled" 0.0; \
1729 #define GENLIST_PROGRAM_FOCUS \
1730 program { name: "focused"; \
1731 signal: "elm,state,focused"; \
1733 action: STATE_SET "focused" 0.0; \
1734 target: "focus_part"; \
1736 program { name: "unfocused"; \
1737 signal: "elm,state,unfocused"; \
1739 action: STATE_SET "default" 0.0; \
1740 target: "focus_part"; \
1743 #define GENLIST_PROGRAM_FOCUS_DIALOGUE \
1744 program { name: "focused"; \
1745 signal: "elm,state,focused"; \
1750 get_state(PART:"bg_dialogue", st, 30, vl); \
1751 if (!strcmp(st, "top") || !strcmp(st, "top_selected")) \
1752 set_state(PART:"focus_part", "top_focused", 0.0); \
1753 else if (!strcmp(st, "center") || !strcmp(st, "center_selected")) \
1754 set_state(PART:"focus_part", "center_focused", 0.0); \
1755 else if (!strcmp(st, "bottom") || !strcmp(st, "bottom_selected")) \
1756 set_state(PART:"focus_part", "bottom_focused", 0.0); \
1757 else if (!strcmp(st, "default") || !strcmp(st, "selected")) \
1758 set_state(PART:"focus_part", "focused", 0.0); \
1761 program { name: "unfocused"; \
1762 signal: "elm,state,unfocused"; \
1764 action: STATE_SET "default" 0.0; \
1765 target: "focus_part"; \
1768 #define GENLIST_PROGRAM_SOUND( SRC ) \
1769 program { name: "play_sound"SRC; \
1770 signal: "mouse,clicked,1"; \
1775 get_state(PART:"base", st, 30, vl); \
1776 if (strcmp(st, "disabled")) \
1777 run_program(PROGRAM:"play_button_press"SRC); \
1780 program { name: "play_button_press"SRC; \
1781 action: PLAY_SAMPLE "button-pressed" 1.0; \
1784 #define GENLIST_PROGRAM_SELECT( TARGET ) \
1785 program { name: "selected"; \
1786 signal: "elm,state,selected"; \
1788 action: STATE_SET "selected" 0.0; \
1791 program { name: "unselected"; \
1792 signal: "elm,state,unselected"; \
1794 action: STATE_SET "default" 0.0; \
1798 #define GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
1799 program { name: "selected"; \
1800 signal: "elm,state,selected"; \
1805 get_state(PART:"bg_dialogue", st, 30, vl); \
1806 if (!strcmp(st, "top")) \
1807 set_state(PART:"bg_dialogue", "top_selected", 0.0); \
1808 else if (!strcmp(st, "center")) \
1809 set_state(PART:"bg_dialogue", "center_selected", 0.0); \
1810 else if (!strcmp(st, "bottom")) \
1811 set_state(PART:"bg_dialogue", "bottom_selected", 0.0); \
1812 else if (!strcmp(st, "default")) \
1813 set_state(PART:"bg_dialogue", "selected", 0.0); \
1814 run_program(PROGRAM:"target_selected"); \
1817 program { name: "unselected"; \
1818 signal: "elm,state,unselected"; \
1823 get_state(PART:"bg_dialogue", st, 30, vl); \
1824 if (!strcmp(st, "top_selected")) \
1825 set_state(PART:"bg_dialogue", "top", 0.0); \
1826 else if (!strcmp(st, "center_selected")) \
1827 set_state(PART:"bg_dialogue", "center", 0.0); \
1828 else if (!strcmp(st, "bottom_selected")) \
1829 set_state(PART:"bg_dialogue", "bottom", 0.0); \
1830 else if (!strcmp(st, "selected")) \
1831 set_state(PART:"bg_dialogue", "default", 0.0); \
1832 run_program(PROGRAM:"target_unselected"); \
1835 program { name: "target_selected"; \
1836 action: STATE_SET "selected" 0.0; \
1839 program { name: "target_unselected"; \
1840 action: STATE_SET "default" 0.0; \
1843 program { name: "bg_default"; \
1844 signal: "elm,state,default"; \
1846 action: STATE_SET "default" 0.0; \
1847 target: "bg_dialogue"; \
1849 program { name: "bg_top"; \
1850 signal: "elm,state,top"; \
1852 action: STATE_SET "top" 0.0; \
1853 target: "bg_dialogue"; \
1855 program { name: "bg_center"; \
1856 signal: "elm,state,center"; \
1858 action: STATE_SET "center" 0.0; \
1859 target: "bg_dialogue"; \
1861 program { name: "bg_bottom"; \
1862 signal: "elm,state,bottom"; \
1864 action: STATE_SET "bottom" 0.0; \
1865 target: "bg_dialogue"; \
1868 #define GENLIST_PROGRAM_SELECT_ARROW \
1869 program { name: "selected_arrow"; \
1870 signal: "elm,state,selected"; \
1875 get_state(PART:"arrow", st, 30, vl); \
1876 if (!strcmp(st, "default")) { \
1877 set_state(PART:"arrow", "default_press", 0.0); \
1878 set_state(PART:"arrow_clip", "default_press", 0.0); \
1880 else if (!strcmp(st, "expand_opened")) { \
1881 set_state(PART:"arrow", "expand_opened_press", 0.0); \
1882 set_state(PART:"arrow_clip", "expand_opened_press", 0.0); \
1886 program { name: "unselected_arrow"; \
1887 signal: "elm,state,unselected"; \
1892 get_state(PART:"arrow", st, 30, vl); \
1893 if (!strcmp(st, "default_press")) { \
1894 set_state(PART:"arrow", "default", 0.0); \
1895 set_state(PART:"arrow_clip", "default", 0.0); \
1897 else if (!strcmp(st, "expand_opened_press")) { \
1898 set_state(PART:"arrow", "expand_opened", 0.0); \
1899 set_state(PART:"arrow_clip", "expand_opened", 0.0); \
1904 #define GENLIST_PROGRAM_DECORATE( TARGET ) \
1905 program { name: "decorate_enabled_effect"; \
1906 signal: "elm,state,decorate,enabled,effect";\
1908 action: STATE_SET "decorate" 0.0;\
1911 program { name: "decorate_disabled_effect";\
1912 signal: "elm,state,decorate,disabled,effect";\
1914 action: STATE_SET "default" 0.0; \
1917 program { name: "decorate_enabled";\
1918 signal: "elm,state,decorate,enabled";\
1920 action: STATE_SET "decorate" 0.0;\
1923 program { name: "decorate_disabled";\
1924 signal: "elm,state,decorate,disabled";\
1926 action: STATE_SET "default" 0.0;\
1930 #define GENLIST_PROGRAM_REORDER( TARGET ) \
1931 program { name: "reorder_enabled"; \
1932 signal: "elm,state,reorder,mode_set"; \
1934 action: STATE_SET "reorder" 0.0; \
1937 program { name: "reorder_disabled"; \
1938 signal: "elm,state,reorder,mode_unset"; \
1940 action: STATE_SET "default" 0.0; \
1944 #define GENLIST_PROGRAM_DECORATE_REORDER( NAME, TARGET ) \
1945 program { name: "reorder_enabled"NAME; \
1946 signal: "elm,state,reorder,mode_set"; \
1951 get_state(PART:"state", st, 30, vl); \
1952 if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
1953 run_program(PROGRAM:"decorate_reorder_set"NAME); \
1955 run_program(PROGRAM:"reorder_set"NAME); \
1959 program { name: "reorder_disabled"NAME; \
1960 signal: "elm,state,reorder,mode_unset"; \
1965 get_state(PART:"state", st, 30, vl); \
1966 if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
1967 run_program(PROGRAM:"decorate_set"NAME); \
1969 run_program(PROGRAM:"default_set"NAME); \
1973 program { name: "decorate_enabled_effect"NAME; \
1974 signal: "elm,state,decorate,enabled,effect";\
1979 get_state(PART:"state", st, 30, vl); \
1980 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1981 run_program(PROGRAM:"decorate_reorder_set"NAME); \
1983 run_program(PROGRAM:"decorate_set"NAME); \
1987 program { name: "decorate_disabled_effect"NAME;\
1988 signal: "elm,state,decorate,disabled,effect";\
1993 get_state(PART:"state", st, 30, vl); \
1994 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1995 run_program(PROGRAM:"reorder_set"NAME); \
1997 run_program(PROGRAM:"default_set"NAME); \
2001 program { name: "decorate_enabled"NAME;\
2002 signal: "elm,state,decorate,enabled";\
2007 get_state(PART:"state", st, 30, vl); \
2008 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
2009 run_program(PROGRAM:"decorate_reorder_set"NAME); \
2011 run_program(PROGRAM:"decorate_set"NAME); \
2015 program { name: "decorate_disabled"NAME;\
2016 signal: "elm,state,decorate,disabled";\
2021 get_state(PART:"state", st, 30, vl); \
2022 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
2023 run_program(PROGRAM:"reorder_set"NAME); \
2025 run_program(PROGRAM:"default_set"NAME); \
2029 program { name: "default_set"NAME; \
2030 action: STATE_SET "default" 0.0;\
2034 program { name: "decorate_set"NAME; \
2035 action: STATE_SET "decorate" 0.0;\
2039 program { name: "reorder_set"NAME; \
2040 action: STATE_SET "reorder" 0.0;\
2044 program { name: "decorate_reorder_set"NAME; \
2045 action: STATE_SET "decorate_reorder" 0.0;\
2050 #define GENLIST_PROGRAM_FLIP \
2051 program { name: "flip_enabled"; \
2052 signal: "elm,state,flip,enabled"; \
2054 transition: DECELERATE 0.5; \
2055 action: STATE_SET "flipped" 0.0; \
2056 target: "elm.flip.content"; \
2057 target: "elm.flip.icon"; \
2059 program { name: "flip_disabled"; \
2060 signal: "elm,state,flip,disabled"; \
2062 transition: DECELERATE 0.5; \
2063 action: STATE_SET "default" 0.0; \
2064 target: "elm.flip.content"; \
2065 target: "elm.flip.icon"; \
2067 program { name: "flip_enabled_bg"; \
2068 signal: "elm,state,flip,enabled"; \
2070 action: STATE_SET "flipped" 0.0; \
2071 target: "elm.flip.bg"; \
2073 program { name: "flip_disabled_bg"; \
2074 signal: "elm,state,flip,disabled"; \
2076 action: STATE_SET "default" 0.0; \
2077 target: "elm.flip.bg"; \
2080 signal: "elm,state,eraser,show"; \
2081 action: STATE_SET "show" 0.0; \
2082 target: "elm.flip.eraser"; \
2085 signal: "elm,state,eraser,hide"; \
2086 action: STATE_SET "default" 0.0; \
2087 target: "elm.flip.eraser"; \
2090 #define GENLIST_PROGRAM_FLIP_TARGET( TARGET ) \
2091 program { name: "flip_enabled_target"; \
2092 signal: "elm,state,flip,enabled"; \
2094 action: STATE_SET "flipped" 0.0; \
2097 program { name: "flip_disabled_target"; \
2098 signal: "elm,state,flip,disabled"; \
2100 action: STATE_SET "default" 0.0; \
2104 #define GENLIST_PROGRAM_FLIP_EFFECT_TARGET( TARGET ) \
2105 program { name: "flip_enabled_effect"; \
2106 signal: "elm,state,flip,enabled"; \
2108 transition: DECELERATE 0.5; \
2109 action: STATE_SET "flipped" 0.0; \
2112 program { name: "flip_disabled_effect"; \
2113 signal: "elm,state,flip,disabled"; \
2115 transition: DECELERATE 0.5; \
2116 action: STATE_SET "default" 0.0; \
2120 #define GENLIST_PROGRAM_EDITMODE \
2121 program { name: "edit_enabled"; \
2122 signal: "elm,state,edit,enabled"; \
2124 action: STATE_SET "editmode" 0.0; \
2125 target: "elm.padding.right.edit"; \
2126 target: "elm.icon.edit"; \
2127 target: "bg_dialogue_right"; \
2129 program { name: "edit_disabled"; \
2130 signal: "elm,state,edit,disabled"; \
2132 action: STATE_SET "default" 0.0; \
2133 target: "elm.padding.right.edit"; \
2134 target: "elm.icon.edit"; \
2135 target: "bg_dialogue_right"; \
2138 /***************************************************************************/
2139 /***************************************************************************/
2141 #define GENLIST_PROGRAMS_NORMAL( TARGET ) \
2143 GENLIST_PROGRAM_DEFAULT( TARGET \
2145 target: "bg_clip"; \
2146 target: "bottom_line"; \
2147 target: "bottom_line2"; \
2148 target: "bottom_line_clip"; \
2149 target: "bg_reorder"; \
2150 target: "elm.padding.left"; \
2151 target: "elm.padding.right"; \
2153 GENLIST_PROGRAM_DISABLED( TARGET \
2155 target: "bottom_line"; \
2156 target: "bottom_line2"; \
2157 target: "bg_reorder"; \
2159 GENLIST_PROGRAM_FOCUS \
2160 GENLIST_PROGRAM_SELECT( TARGET \
2162 target: "bottom_line"; \
2163 target: "bottom_line2"; \
2164 target: "bg_reorder"; \
2166 GENLIST_PROGRAM_SOUND("bg") \
2167 GENLIST_PROGRAM_SOUND("bg_reorder") \
2168 GENLIST_PROGRAM_DECORATE_REORDER("normal", TARGET \
2169 target: "bg_clip"; \
2170 target: "bg_reorder_clip"; \
2171 target: "bottom_line_clip"; \
2172 target: "elm.padding.left"; \
2173 target: "elm.padding.right"; \
2175 GENLIST_PROGRAM_FLIP \
2178 // FIXME: inheritance !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
2179 // if GENLIST_PROGRAM_EXPAND is here, expanda effect is something wrong.
2180 // because after can be duplicated when program inheriting.
2181 #define GENLIST_PROGRAMS_DIALOGUE( TARGET ) \
2183 GENLIST_PROGRAM_DEFAULT( TARGET \
2184 target: "bg_dialogue"; \
2185 target: "bg_dialogue_clip"; \
2186 target: "elm.padding.left"; \
2187 target: "elm.padding.right"; \
2189 GENLIST_PROGRAM_DISABLED( TARGET ) \
2190 GENLIST_PROGRAM_FOCUS_DIALOGUE \
2191 GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
2192 program { name: "bg_color_change"; \
2193 signal: "bg_color_change"; \
2195 action: STATE_SET "2depth" 0.0; \
2196 target: "bg_dialogue_clip"; \
2198 GENLIST_PROGRAM_SOUND("bg_dialogue") \
2199 GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
2200 target: "elm.padding.left"; \
2201 target: "elm.padding.right"; \
2203 GENLIST_PROGRAM_FLIP \
2204 GENLIST_PROGRAM_EDITMODE \
2207 #define GENLIST_PROGRAMS_DECORATE_EFFECT( TARGET ) \
2208 program { name: "decorate_enabled_effect_ef"; \
2209 signal: "elm,state,decorate,enabled,effect";\
2211 transition: DECELERATE 0.5;\
2212 action: STATE_SET "decorate" 0.0;\
2215 program { name: "decorate_disabled_effect_ef";\
2216 signal: "elm,state,decorate,disabled,effect";\
2218 transition: ACCELERATE 0.5;\
2219 action: STATE_SET "default" 0.0;\
2222 program { name: "decorate_enabled_ef";\
2223 signal: "elm,state,decorate,enabled";\
2225 action: STATE_SET "decorate" 0.0;\
2228 program { name: "decorate_disabled_ef";\
2229 signal: "elm,state,decorate,disabled";\
2231 action: STATE_SET "default" 0.0;\
2235 #define GENLIST_PROGRAMS_ENTRY( TARGET ) \
2236 GENLIST_PROGRAM_DEFAULT( TARGET \
2238 target: "bg_clip"; \
2239 target: "bottom_line"; \
2240 target: "bottom_line2"; \
2241 target: "bottom_line_clip"; \
2242 target: "bg_reorder"; \
2243 target: "elm.padding.left"; \
2244 target: "elm.padding.right"; \
2246 GENLIST_PROGRAM_DISABLED( TARGET ) \
2247 GENLIST_PROGRAM_FOCUS \
2248 GENLIST_PROGRAM_DECORATE_REORDER("editfield", TARGET \
2249 target: "bg_clip"; \
2250 target: "bg_reorder_clip"; \
2251 target: "bottom_line_clip"; \
2252 target: "elm.padding.left"; \
2253 target: "elm.padding.right"; \
2256 #define GENLIST_PROGRAMS_DIALOGUE_ENTRY( TARGET ) \
2257 GENLIST_PROGRAM_DEFAULT( TARGET \
2258 target: "bg_dialogue"; \
2259 target: "bg_dialogue_clip"; \
2260 target: "elm.padding.left"; \
2261 target: "elm.padding.right"; \
2263 GENLIST_PROGRAM_DISABLED( TARGET ) \
2264 GENLIST_PROGRAM_FOCUS_DIALOGUE \
2265 program { name: "bg_color_change"; \
2266 signal: "bg_color_change"; \
2268 action: STATE_SET "2depth" 0.0; \
2269 target: "bg_dialogue_clip"; \
2271 GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
2272 target: "elm.padding.left"; \
2273 target: "elm.padding.right"; \
2275 GENLIST_PROGRAM_FLIP \
2276 GENLIST_PROGRAM_EDITMODE
2279 #define GENLIST_PROGRAMS_THUMB \
2280 GENLIST_PROGRAM_DECORATE_REORDER( "thumb", target: "elm.thumb"; ) \
2281 GENLIST_PROGRAM_FLIP_TARGET( target: "elm.thumb.clip"; ) \
2282 program { name: "enabled_thumb"; \
2283 signal: "elm,state,enabled"; \
2285 action: STATE_SET "default" 0.0; \
2287 target: "elm.thumb"; \
2289 program { name: "disabled_thumb"; \
2290 signal: "elm,state,disabled"; \
2292 action: STATE_SET "disabled" 0.0; \
2294 target: "elm.thumb"; \
2296 program { name: "selected_thumb"; \
2297 signal: "elm,state,selected"; \
2302 get_state(PART:"elm.thumb", st, 30, vl); \
2303 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) \
2304 set_state(PART:"elm.thumb", "reorder_selected", 0.0); \
2306 set_state(PART:"elm.thumb", "selected", 0.0); \
2309 program { name: "unselected_thumb"; \
2310 signal: "elm,state,unselected"; \
2315 get_state(PART:"elm.thumb", st, 30, vl); \
2316 if (!strcmp(st, "reorder_selected")) \
2317 set_state(PART:"elm.thumb", "reorder", 0.0); \
2319 set_state(PART:"elm.thumb", "default", 0.0); \
2323 //****************************************************************************//
2324 // ******************************* Icon Part ******************************//
2325 //***************************************************************************//
2326 #define GENLIST_PART_ICON(NAME, DESCRIPION) \
2327 part { name: NAME; \
2333 #define GENLIST_PARAM_ICON_BIG \
2334 min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
2335 max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
2337 #define GENLIST_PARAM_ICON_SMALL \
2338 min: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE; \
2339 max: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE;
2341 #define GENLIST_PARAM_ICON_BTN_01 \
2342 min: 0 GENLIST_BTN_01_HEIGHT; \
2343 max: -1 GENLIST_BTN_01_HEIGHT;
2345 #define GENLIST_PARAM_ICON_BTN_02 \
2346 min: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE; \
2347 max: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE;
2349 #define GENLIST_PARAM_ICON_ONOFF_WIDTH \
2350 min: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT; \
2351 max: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT;
2353 #define GENLIST_PARAM_ICON_THUMBNAIL1\
2354 min: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE; \
2355 max: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE;
2357 #define GENLIST_PARAM_ICON_CHECK_RADIO \
2358 min: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE; \
2359 max: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE;
2361 #define GENLIST_PARAM_ICON_STAR \
2362 min: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2363 max: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2365 #define GENLIST_PART_ICON_BIG_R(NAME, RIGHT) \
2366 GENLIST_PART_ICON(NAME, \
2367 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2369 GENLIST_PARAM_ICON_BIG \
2373 #define GENLIST_PART_ICON_BIG_L(NAME, LEFT) \
2374 GENLIST_PART_ICON(NAME, \
2375 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2376 GENLIST_PARAM_ICON_BIG \
2381 #define GENLIST_PART_ICON_SMALL_L(NAME, LEFT) \
2382 GENLIST_PART_ICON(NAME, \
2383 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2384 GENLIST_PARAM_ICON_SMALL \
2389 #define GENLIST_PART_ICON_SMALL_LB(NAME, LEFT, BOTTOM) \
2390 GENLIST_PART_ICON(NAME, \
2391 GENLIST_DESCRIPTION_LB(LEFT, BOTTOM, \
2392 GENLIST_PARAM_ICON_SMALL \
2397 #define GENLIST_PART_ICON_SMALL_LTB(NAME, LEFT, TOP, BOTTOM) \
2398 GENLIST_PART_ICON(NAME, \
2399 GENLIST_DESCRIPTION_LTB(LEFT, TOP, BOTTOM, \
2400 GENLIST_PARAM_ICON_SMALL \
2405 #define GENLIST_PART_ICON_SMALL_RTB(NAME, RIGHT, TOP, BOTTOM) \
2406 GENLIST_PART_ICON(NAME, \
2407 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2408 GENLIST_PARAM_ICON_SMALL \
2413 #define GENLIST_PART_ICON_BTN_01_RTB(NAME, RIGHT, TOP, BOTTOM) \
2414 GENLIST_PART_ICON(NAME, \
2415 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM,\
2416 GENLIST_PARAM_ICON_BTN_01 \
2421 #define GENLIST_PART_ICON_BTN_02_RTB(NAME, RIGHT, TOP, BOTTOM) \
2422 GENLIST_PART_ICON(NAME, \
2423 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM,\
2424 GENLIST_PARAM_ICON_BTN_02 \
2429 #define GENLIST_PART_ICON_BTN_ONOFF_R(NAME, RIGHT) \
2430 GENLIST_PART_ICON(NAME, \
2431 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2432 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2437 #define GENLIST_PART_ICON_BTN_ONOFF_L(NAME, LEFT) \
2438 GENLIST_PART_ICON(NAME, \
2439 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2440 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2445 #define GENLIST_PART_ICON_THUMBNAIL1_R(NAME, RIGHT) \
2446 GENLIST_PART_ICON(NAME, \
2447 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2448 GENLIST_PARAM_ICON_THUMBNAIL1 \
2453 #define GENLIST_PART_ICON_CHECK_RADIO_L(NAME, LEFT) \
2454 GENLIST_PART_ICON(NAME, \
2455 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2456 GENLIST_PARAM_ICON_CHECK_RADIO \
2461 #define GENLIST_PART_ICON_STAR_RTB(NAME, RIGHT, TOP, BOTTOM) \
2462 GENLIST_PART_ICON(NAME, \
2463 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2464 GENLIST_PARAM_ICON_STAR \
2469 /*****************************************************************************/
2470 /******************************* Genlist IMAGE ********************************/
2471 /*****************************************************************************/
2472 #define GENLIST_PART_IMAGE(NAME, DESCRIPION) \
2473 part { name: NAME; \
2479 #define GENLIST_PARAM_PASSWORD_IMAGE \
2480 min: GENLIST_ICON_PASSWORD_SIZE GENLIST_ICON_PASSWORD_SIZE; \
2481 max: GENLIST_ICON_PASSWORD_SIZE GENLIST_ICON_PASSWORD_SIZE; \
2482 image.normal: "00_search_edit_field_bg_02.png"; \
2483 image.border: 12 13 12 13; \
2484 image.border_scale: 1;
2486 /*****************************************************************************/
2487 /******************************* Genlist Bubble ********************************/
2488 /*****************************************************************************/
2489 #define GENLIST_IMAGES_EXPANDABLE_BTN \
2491 image: "00_button_expand_closed.png" COMP; \
2492 image: "00_button_expand_opened.png" COMP; \
2495 #define GENLIST_PART_EXPANDABLE_ARROW \
2496 GENLIST_PART_ICON("touch_arrow", \
2497 ignore_flags: ON_HOLD; \
2498 GENLIST_DESCRIPTION_ENVELOP("arrow", ) \
2500 GENLIST_PART_RECT("arrow_clip", \
2501 GENLIST_DESCRIPTION_ENVELOP("arrow", \
2502 color: 101 101 101 255; \
2504 description { state: "disabled" 0.0; \
2505 color: 101 101 101 76; \
2507 description { state: "expand_opened_press" 0.0; \
2508 color: 248 246 239 255; \
2510 description { state: "default_press" 0.0; \
2511 color: 248 246 239 255; \
2514 GENLIST_PART_IMAGE("arrow", \
2515 clip_to: "arrow_clip"; \
2516 ignore_flags: ON_HOLD; \
2518 GENLIST_DESCRIPTION_R("elm.padding.right", \
2522 image.normal: "00_button_expand_closed.png"; \
2524 description { state: "default_press" 0.0; \
2525 inherit: "default" 0.0; \
2526 image.normal: "00_button_expand_closed_press.png"; \
2528 description { state: "expand_opened" 0.0; \
2529 inherit: "default" 0.0; \
2530 image.normal: "00_button_expand_opened.png"; \
2532 description { state: "expand_opened_press" 0.0; \
2533 inherit: "expand_opened" 0.0; \
2534 image.normal: "00_button_expand_opened_press.png"; \
2537 /*****************************************************************************/
2538 /******************************* Genlist RECT ********************************/
2539 /*****************************************************************************/
2540 #define GENLIST_PART_SPACER(NAME, DESCRIPION) \
2541 part { name: NAME; \
2548 #define GENLIST_PART_RECT(NAME, DESCRIPION) \
2549 part { name: NAME; \
2555 /*****************************************************************************/
2556 /******************************* Genlist TEXT ********************************/
2557 /*****************************************************************************/
2558 // FIXME: because, when naviframe item is pushed,
2559 // naviframe freeze all events so text events cannot be repeated. :-(
2560 // So all texts should have it's own sound program, not repeat to BG
2561 #define GENLIST_PART_TEXT(NAME, DESCRIPION) \
2562 part { name: NAME; \
2568 #define GENLIST_PART_TEXTBLOCK(NAME, DESCRIPION) \
2569 part { name: NAME; \
2575 /*************************** parameters **********************************/
2576 #define GENLIST_PARAM_TEXT_LIMIT_RB \
2577 rel1.to_x: "base"; /* This limits text growing. */\
2578 rel1.relative: 0.35 0; /* This limits text growing. */\
2579 text.max: 1 0; /* This limits text growing. */
2581 #define GENLIST_PARAM_TEXT_LIMIT_RT \
2582 rel1.to_x: "base"; /* This limits text growing. */\
2583 rel1.relative: 0.35 1; /* This limits text growing. */\
2584 text.max: 1 0; /* This limits text growing. */
2586 #define GENLIST_PARAM_TEXT_LIMIT_RTB \
2587 rel1.to_x: "base"; /* This limits text growing. */\
2588 rel1.relative: 0.35 1; /* This limits text growing. */\
2589 text.max: 1 0; /* This limits text growing. */
2592 #define GENLIST_PARAM_DIALOGUE_GROUP_TITLE \
2593 color: GENLIST_DIALOGUE_GROUP_TITLE_COLOR; \
2596 font: "Tizen:style=Bold"; \
2598 size: GENLIST_DIALOGUE_GROUP_TITLE_SIZE; \
2599 text_class: "list_item"; \
2603 #define GENLIST_PARAM_PASSWORD_TITLE \
2604 color: DIALOGUE_PASSWORD_TITLE_COLOR; \
2606 font: "Tizen:style=Bold"; \
2607 size: DIALOGUE_PASSWORD_TITLE_SIZE; \
2610 text_class: "list_item"; \
2613 // Progress main text
2614 #define GENLIST_PARAM_PROGRESS_MAIN \
2615 color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
2619 font: "Tizen:style=Regular"; \
2620 size: GENLIST_PROGRESS_MAIN_TEXT_SIZE; \
2621 text_class: "list_item"; \
2625 #define GENLIST_PARAM_LISTITEM \
2626 color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
2630 font: "Tizen:style=Regular"; \
2631 size: GENLIST_LIST_MAIN_TEXT_SIZE; \
2632 text_class: "list_item"; \
2635 #define GENLIST_PARAM_LISTITEM_TB \
2638 style: "genlist_style_list_main_text_unread"; \
2641 #define GENLIST_PARAM_LISTITEM_TB_WRAP \
2644 style: "genlist_style_list_main_text_unread_wrap"; \
2648 #define GENLIST_PARAM_SUBITEM_DEFAULT \
2649 color: GENLIST_LIST_SUB_TEXT_DEFAULT_COLOR; \
2653 font: "Tizen:style=Bold"; \
2654 size: GENLIST_LIST_SUB_TEXT_SIZE; \
2655 text_class: "tizen"; \
2658 #define GENLIST_PARAM_SUBITEM_SETTINGS \
2659 color: GENLIST_LIST_SUB_TEXT_SETTINGS_COLOR; \
2663 font: "Tizen:style=Bold"; \
2664 size: GENLIST_LIST_SUB_TEXT_SIZE; \
2665 text_class: "tizen"; \
2668 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2671 style: "genlist_style_list_sub_text_default"; \
2674 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB_WRAP \
2677 style: "genlist_style_list_sub_text_default_wrap"; \
2680 #define GENLIST_PARAM_SUBITEM_SETTINGS_TB \
2683 style: "genlist_style_list_sub_text_settings"; \
2687 #define GENLIST_PARAM_SUBITEM_02 \
2688 color: GENLIST_LIST_SUB_TEXT_02_COLOR; \
2692 font: "Tizen:style=Bold"; \
2693 size: GENLIST_LIST_SUB_TEXT_02_SIZE; \
2694 text_class: "tizen"; \
2697 // Dialogue group - Apps
2698 #define GENLIST_PARAM_APPS_NAME\
2699 color: GENLIST_APPS_NAME_COLOR; \
2703 font: "Tizen:style=Bold"; \
2704 size: GENLIST_APPS_NAME_SIZE; \
2705 text_class: "list_item"; \
2708 #define GENLIST_PARAM_APPS_INC\
2709 color: GENLIST_APPS_INC_COLOR; \
2713 font: "Tizen:style=Bold"; \
2714 size: GENLIST_APPS_INC_SIZE; \
2715 text_class: "list_item"; \
2718 #define GENLIST_PARAM_APPS_RATING\
2719 color: GENLIST_APPS_RATING_COLOR; \
2723 font: "Tizen:style=Bold"; \
2724 size: GENLIST_APPS_RATING_SIZE; \
2725 text_class: "list_item"; \
2728 #define GENLIST_PARAM_APPS_PRICE\
2729 color: GENLIST_APPS_PRICE_ORIGINAL_COLOR; \
2733 font: "Tizen:style=Bold"; \
2734 size: GENLIST_APPS_PRICE_SIZE; \
2735 text_class: "list_item"; \
2738 #define GENLIST_PARAM_APPS_PRICE_SALE\
2739 color: GENLIST_APPS_PRICE_SALE_COLOR; \
2743 font: "Tizen:style=Bold"; \
2744 size: GENLIST_APPS_PRICE_SIZE; \
2745 text_class: "list_item"; \
2748 #define GENLIST_PARAM_CONTENTS_TEXT \
2749 color: GENLIST_CONTENTS_TEXT_COLOR; \
2753 font: "Tizen:style=Regular"; \
2754 size: GENLIST_CONTENTS_TEXT_SIZE; \
2755 text_class: "tizen"; \
2758 /*************************** Descriptions **********************************/
2760 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2761 description { state: "disabled" 0.0; \
2762 inherit: "default" 0.0; \
2763 color: GENLIST_LIST_MAIN_TEXT_UNREAD_DIM_COLOR; \
2765 description { state: "read" 0.0; \
2766 inherit: "default" 0.0; \
2767 color: GENLIST_LIST_MAIN_TEXT_READ_COLOR; \
2769 description { state: "read,disabled" 0.0; \
2770 inherit: "default" 0.0; \
2771 color: GENLIST_LIST_MAIN_TEXT_READ_DIM_COLOR; \
2773 description { state: "selected" 0.0; \
2774 inherit: "default" 0.0; \
2775 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2778 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2779 description { state: "disabled" 0.0; \
2780 inherit: "default" 0.0; \
2781 text.style: "genlist_style_list_main_text_unread_dim"; \
2783 description { state: "read" 0.0; \
2784 inherit: "default" 0.0; \
2785 text.style: "genlist_style_list_main_text_read"; \
2787 description { state: "read,disabled" 0.0; \
2788 inherit: "default" 0.0; \
2789 text.style: "genlist_style_list_main_text_read_dim"; \
2791 description { state: "selected" 0.0; \
2792 inherit: "default" 0.0; \
2793 text.style: "genlist_style_list_main_text_focus"; \
2797 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2798 description { state: "disabled" 0.0; \
2799 inherit: "default" 0.0; \
2800 color: GENLIST_LIST_SUB_TEXT_DEFAULT_DIM_COLOR; \
2802 description { state: "selected" 0.0; \
2803 inherit: "default" 0.0; \
2804 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2807 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2808 description { state: "disabled" 0.0; \
2809 inherit: "default" 0.0; \
2810 text.style: "genlist_style_list_sub_text_default_dim"; \
2812 description { state: "selected" 0.0; \
2813 inherit: "default" 0.0; \
2814 text.style: "genlist_style_list_sub_text_focus"; \
2817 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB_WRAP \
2818 description { state: "disabled" 0.0; \
2819 inherit: "default" 0.0; \
2820 text.style: "genlist_style_list_sub_text_default_dim_wrap"; \
2822 description { state: "selected" 0.0; \
2823 inherit: "default" 0.0; \
2824 text.style: "genlist_style_list_sub_text_focus_wrap"; \
2827 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
2828 description { state: "disabled" 0.0; \
2829 inherit: "default" 0.0; \
2830 color: GENLIST_LIST_SUB_TEXT_SETTINGS_DIM_COLOR; \
2832 description { state: "selected" 0.0; \
2833 inherit: "default" 0.0; \
2834 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2837 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
2838 description { state: "disabled" 0.0; \
2839 inherit: "default" 0.0; \
2840 text.style: "genlist_style_list_sub_text_settings_dim"; \
2842 description { state: "selected" 0.0; \
2843 inherit: "default" 0.0; \
2844 text.style: "genlist_style_list_sub_text_focus"; \
2847 // list main text multiline
2848 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB_WRAP \
2849 description { state: "disabled" 0.0; \
2850 inherit: "default" 0.0; \
2851 text.style: "genlist_style_list_main_text_unread_dim_wrap"; \
2853 description { state: "selected" 0.0; \
2854 inherit: "default" 0.0; \
2855 text.style: "genlist_style_list_main_text_focus_wrap"; \
2858 /*************************** Parts **********************************/
2859 #define GENLIST_PART_DIALOGUE_GROUP_HELP_TEXT(NAME, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2860 GENLIST_PART_TEXTBLOCK(NAME, \
2861 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2864 style: "genlist_style_dialogue_group_help_text"; \
2869 #define GENLIST_PART_LISTITEM(NAME, DESCRIPTION) \
2870 GENLIST_PART_TEXT(NAME, \
2872 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2875 #define GENLIST_PART_LISTITEM_TB(NAME, DESCRIPTION) \
2876 GENLIST_PART_TEXTBLOCK(NAME, \
2878 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2881 #define GENLIST_PART_LISTITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2882 GENLIST_PART_TEXT(NAME, \
2883 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2885 GENLIST_PARAM_LISTITEM \
2888 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2891 #define GENLIST_PART_LISTITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2892 GENLIST_PART_TEXTBLOCK(NAME, \
2893 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2896 GENLIST_PARAM_LISTITEM_TB \
2899 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2902 #define GENLIST_PART_LISTITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2903 GENLIST_PART_TEXT(NAME, \
2904 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2906 GENLIST_PARAM_LISTITEM \
2909 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2912 #define GENLIST_PART_LISTITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
2913 GENLIST_PART_TEXT(NAME, \
2914 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
2917 GENLIST_PARAM_LISTITEM \
2920 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2923 #define GENLIST_PART_LISTITEM_LRT_TB(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
2924 GENLIST_PART_TEXTBLOCK(NAME, \
2925 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
2928 GENLIST_PARAM_LISTITEM_TB \
2931 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2934 #define GENLIST_PART_LISTITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2935 GENLIST_PART_TEXTBLOCK(NAME, \
2936 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2939 GENLIST_PARAM_LISTITEM_TB \
2942 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2945 #define GENLIST_PART_SUBITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2946 GENLIST_PART_TEXT(NAME, \
2947 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2949 GENLIST_PARAM_SUBITEM_DEFAULT \
2952 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2955 #define GENLIST_PART_SUBITEM(NAME, DESCRIPTION) \
2956 GENLIST_PART_TEXT(NAME, \
2958 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2961 #define GENLIST_PART_SUBITEM_R(NAME, HEIGHT, RIGHT) \
2962 GENLIST_PART_TEXT(NAME, \
2963 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2966 GENLIST_PARAM_TEXT_LIMIT_RB \
2967 GENLIST_PARAM_SUBITEM_DEFAULT \
2969 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2972 #define GENLIST_PART_SUBITEM_RB(NAME, HEIGHT, RIGHT, BOTTOM) \
2973 GENLIST_PART_TEXT(NAME, \
2974 GENLIST_DESCRIPTION_RB(RIGHT, BOTTOM, \
2977 GENLIST_PARAM_TEXT_LIMIT_RB \
2978 GENLIST_PARAM_SUBITEM_DEFAULT \
2980 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2983 #define GENLIST_PART_SUBITEM_RB_TB(NAME, HEIGHT, RIGHT, BOTTOM) \
2984 GENLIST_PART_TEXTBLOCK(NAME, \
2985 GENLIST_DESCRIPTION_RB(RIGHT, BOTTOM, \
2987 GENLIST_PARAM_TEXT_LIMIT_RB \
2989 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2991 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2994 #define GENLIST_PART_SUBITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM) \
2995 GENLIST_PART_TEXTBLOCK(NAME, \
2996 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2998 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3000 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3003 #define GENLIST_PART_SUBITEM_R_FIXED(NAME, WIDTH, HEIGHT, RIGHT) \
3004 GENLIST_PART_TEXT(NAME, \
3005 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
3006 min: WIDTH HEIGHT; \
3008 GENLIST_PARAM_SUBITEM_DEFAULT \
3010 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3013 #define GENLIST_PART_SUBITEM_R_FIXED_TB(NAME, WIDTH, HEIGHT, RIGHT) \
3014 GENLIST_PART_TEXTBLOCK(NAME, \
3015 GENLIST_DESCRIPTION_R(RIGHT, \
3016 min: WIDTH HEIGHT; \
3018 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3020 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3023 #define GENLIST_PART_SUBITEM_L_FIXED(NAME, WIDTH, HEIGHT, LEFT) \
3024 GENLIST_PART_TEXT(NAME, \
3025 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
3026 min: WIDTH HEIGHT; \
3028 GENLIST_PARAM_SUBITEM_DEFAULT \
3030 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3033 #define GENLIST_PART_SUBITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
3034 GENLIST_PART_TEXT(NAME, \
3035 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
3037 GENLIST_PARAM_SUBITEM_DEFAULT \
3040 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3043 #define GENLIST_PART_SUBITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT) \
3044 GENLIST_PART_TEXTBLOCK(NAME, \
3045 GENLIST_DESCRIPTION_LR(LEFT, RIGHT, \
3047 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3049 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3052 #define GENLIST_PART_SUBITEM_LB(NAME, HEIGHT, LEFT, RIGHT) \
3053 GENLIST_PART_TEXT(NAME, \
3054 GENLIST_DESCRIPTION_LB(LEFT, BOTTOM, \
3056 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3058 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3061 #define GENLIST_PART_SUBITEM_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3062 GENLIST_PART_TEXT(NAME, \
3063 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3065 GENLIST_PARAM_SUBITEM_DEFAULT \
3068 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3071 #define GENLIST_PART_SUBITEM_SETTINGS_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM, PARAM) \
3072 GENLIST_PART_TEXT(NAME, \
3073 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3075 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
3076 GENLIST_PARAM_SUBITEM_SETTINGS\
3079 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
3082 #define GENLIST_PART_SUBITEM_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3083 GENLIST_PART_TEXTBLOCK(NAME, \
3084 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3086 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3089 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3092 #define GENLIST_PART_SUBITEM_SETTINGS_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3093 GENLIST_PART_TEXTBLOCK(NAME, \
3094 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3096 GENLIST_PARAM_SUBITEM_SETTINGS_TB \
3099 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
3102 #define GENLIST_PART_SUBITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
3103 GENLIST_PART_TEXT(NAME, \
3104 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
3107 GENLIST_PARAM_SUBITEM_DEFAULT \
3109 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3112 #define GENLIST_PART_SUBITEM_SETTINGS_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
3113 GENLIST_PART_TEXT(NAME, \
3114 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
3117 GENLIST_PARAM_SUBITEM_SETTINGS \
3119 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
3122 #define GENLIST_PART_SUBITEM_LTB(NAME, HEIGHT, LEFT, TOP, BOTTOM) \
3123 GENLIST_PART_TEXT(NAME, \
3124 GENLIST_DESCRIPTION_LTB(LEFT, TOP, BOTTOM, \
3126 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
3127 GENLIST_PARAM_SUBITEM_DEFAULT \
3129 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3132 #define GENLIST_PART_SUBITEM_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3133 GENLIST_PART_TEXT(NAME, \
3134 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3136 GENLIST_PARAM_TEXT_LIMIT_RT \
3137 GENLIST_PARAM_SUBITEM_DEFAULT \
3140 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3143 #define GENLIST_PART_SUBITEM_RTB_TB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3144 GENLIST_PART_TEXTBLOCK(NAME, \
3145 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3147 GENLIST_PARAM_TEXT_LIMIT_RT \
3148 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3151 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3154 #define GENLIST_PART_SUBITEM_02_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3155 GENLIST_PART_TEXT(NAME, \
3156 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3158 GENLIST_PARAM_TEXT_LIMIT_RT \
3159 GENLIST_PARAM_SUBITEM_02 \
3162 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3165 #define GENLIST_PARAM_LIST_BUBBLE_TEXT \
3166 color: GENLIST_LIST_BUBBLE_TEXT_COLOR; \
3170 font: "Tizen:style=Bold"; \
3171 size: GENLIST_LIST_BUBBLE_TEXT_SIZE; \
3172 text_class: "tizen"; \
3175 // FIXME: Need to find why rel2.offset: 9 -1 will not fix the alignment of bubble text ?
3176 #define GENLIST_PART_LIST_BUBBLE_TEXT_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3177 GENLIST_PART_IMAGE("elm.bubble", \
3179 GENLIST_DESCRIPTION_ENVELOP(NAME, \
3181 normal: "00_list_bubble_bg.png"; \
3184 rel1.offset: -10 0; \
3185 rel2.offset: 8 -1; \
3189 color: GENLIST_LIST_BUBBLE_COLOR; \
3191 description { state: "selected" 0.0; \
3192 inherit: "default" 0.0; \
3193 color: GENLIST_LIST_BUBBLE_PRESS_COLOR; \
3196 GENLIST_PART_TEXT(NAME, \
3197 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3199 GENLIST_PARAM_TEXT_LIMIT_RT \
3200 rel2.offset: -10 -1; /* This maintain the text alignment with bubble text. */\
3201 GENLIST_PARAM_LIST_BUBBLE_TEXT \
3203 description { state: "selected" 0.0; \
3204 inherit: "default" 0.0; \
3205 color: GENLIST_LIST_BUBBLE_TEXT_FOCUS_COLOR; \
3210 #define GENLIST_PART_BASE__( param_item_height ) \
3211 part { name: "base"; \
3215 description { state: "default" 0.0; \
3216 min: 0 param_item_height; \
3217 color: LAYOUT_GROUP_LIST_BG_COLOR_INC; \
3221 /******************************************************************************/
3223 /******************************************************************************/
3224 // FIXME: UX do not define selected state. But I thinkt that it is neededs :(
3226 #define GENLIST_PROOGRAM_EXPAND(SRC, TARGET) \
3229 signal: "mouse,clicked,1"; \
3231 action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; \
3234 name: "go_expanded"; \
3235 signal: "elm,state,expanded"; \
3237 action: STATE_SET "active" 0.0; \
3241 name: "go_contracted"; \
3242 signal: "elm,state,contracted"; \
3244 action: STATE_SET "default" 0.0; \
3248 #define GENLIST_PART_BASE_LIST_H( HEIGHT) \
3249 part { name: "base"; \
3253 description { state: "default" 0.0; \
3256 rel2.relative: 1 0; \
3257 rel2.to: "bottom_line"; \
3261 GENLIST_PART_BOTTOM_LINE
3263 #define GENLIST_PART_DIALOGUE_ITEM \
3264 part { name: "elm.rect.dialogue"; \
3267 description { state: "default" 0.0; \
3270 color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
3271 rel2.relative: 0.0 1.0; \
3276 #define GENLIST_PART_DIALOGUE_RIGHT_LINE \
3277 part { name: "elm.rect.dialogue.right.line"; \
3280 description { state: "default" 0.0; \
3284 relative: 1.0 0.0; \
3288 color: GENLIST_LIST_LINE1_COLOR; \
3292 #define GENLIST_PROGRAM_FLIP_1TEXT \
3293 program { name: "flipped"; \
3294 signal: "elm,state,flip,enabled"; \
3296 action: STATE_SET "flipped" 0.0; \
3297 target: "elm.text"; \
3298 target: "elm.flip.content"; \
3300 program { name: "flip_disabled"; \
3301 signal: "elm,state,flip,disabled"; \
3303 action: STATE_SET "default" 0.0; \
3304 target: "elm.text"; \
3305 target: "elm.flip.content"; \
3308 #define GENLIST_PROGRAM_FLIP_2TEXT \
3309 program { name: "flipped"; \
3310 signal: "elm,state,flip,enabled"; \
3312 action: STATE_SET "flipped" 0.0; \
3313 target: "elm.text.1"; \
3314 target: "elm.text.2"; \
3315 target: "elm.flip.content"; \
3317 program { name: "flip_disabled"; \
3318 signal: "elm,state,flip,disabled"; \
3320 action: STATE_SET "default" 0.0; \
3321 target: "elm.text.1"; \
3322 target: "elm.text.2"; \
3323 target: "elm.flip.content"; \
3326 #define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
3327 program { name: "flipped"; \
3328 signal: "elm,state,flip,enabled"; \
3330 action: STATE_SET "flipped" 0.0; \
3331 target: "elm.text.1"; \
3332 target: "elm.text.2"; \
3333 target: "elm.icon"; \
3334 target: "elm.flip.content"; \
3336 program { name: "flip_disabled"; \
3337 signal: "elm,state,flip,disabled"; \
3339 action: STATE_SET "default" 0.0; \
3340 target: "elm.text.1"; \
3341 target: "elm.text.2"; \
3342 target: "elm.icon"; \
3343 target: "elm.flip.content"; \
3346 #define GENLIST_PROGRAM_FLIP_2TEXT_2ICON \
3347 program { name: "flipped"; \
3348 signal: "elm,state,flip,enabled"; \
3350 action: STATE_SET "flipped" 0.0; \
3351 target: "elm.text.1"; \
3352 target: "elm.text.2"; \
3353 target: "elm.icon.1"; \
3354 target: "elm.icon.2"; \
3355 target: "elm.flip.content"; \
3357 program { name: "flip_disabled"; \
3358 signal: "elm,state,flip,disabled"; \
3360 action: STATE_SET "default" 0.0; \
3361 target: "elm.text.1"; \
3362 target: "elm.text.2"; \
3363 target: "elm.icon.1"; \
3364 target: "elm.icon.2"; \
3365 target: "elm.flip.content"; \
3368 #define GENLIST_PROGRAM_FLIP_3TEXT_2ICON \
3369 program { name: "flipped"; \
3370 signal: "elm,state,flip,enabled"; \
3372 action: STATE_SET "flipped" 0.0; \
3373 target: "elm.text.1"; \
3374 target: "elm.text.2"; \
3375 target: "elm.text.3"; \
3376 target: "elm.icon.1"; \
3377 target: "elm.icon.2"; \
3378 target: "elm.flip.content"; \
3380 program { name: "flip_disabled"; \
3381 signal: "elm,state,flip,disabled"; \
3383 action: STATE_SET "default" 0.0; \
3384 target: "elm.text.1"; \
3385 target: "elm.text.2"; \
3386 target: "elm.text.3"; \
3387 target: "elm.icon.1"; \
3388 target: "elm.icon.2"; \
3389 target: "elm.flip.content"; \
3393 #define GENLIST_DESCRIPTION_INVISIBLE_SELECTED \
3394 description { state: "selected" 1.0; \
3395 inherit: "default" 0.0; \
3399 #define GENLIST_DESCRIPTION_FLIP_ENABLED \
3400 description { state: "flipped" 0.0; \
3401 inherit: "default" 0.0; \
3405 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT \
3409 get_state(PART:"elm.text", st, 30, vl); \
3410 set_state(PART:"bg", "selected", 0.0); \
3411 if (!strcmp(st, "flipped")) \
3412 set_state(PART:"elm.text", "selected", 1.0); \
3414 set_state(PART:"elm.text", "selected", 0.0); \
3418 /* genlist multisense macro - start */
3419 #define GENLIST_PROGRAM_AFTER_PLAY_BUTTON_PRESS \
3420 after: "play_button_press";
3422 #define GENLIST_PROGRAM_PLAY_BUTTON_PRESS \
3423 program { name: "play_button_press"; \
3424 action: PLAY_SAMPLE "button-pressed" 1.0; \