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 112
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
62 #define GENLIST_ICON_THUMB_MASK_SIZE 132
64 #define GENLIST_BTN_01_HEIGHT 74
65 #define GENLIST_BTN_02_SIZE 72
66 #define GENLIST_ICON_ONOFF_WIDTH 132
67 #define GENLIST_ICON_ONOFF_HEIGHT 70
68 #define GENLIST_ICON_CHECK_RADIO_SIZE 64
69 #define GENLIST_ICON_COLORBAR_SIZE 7
70 #define GENLIST_ICON_PASSWORD_SIZE 82
72 #define GENLIST_ICON_ENTRY_SIZE 54
74 #define GENLIST_TREESIZE_DEFAULT 26
76 //#define GENLIST_DIALOGUE_SEPARATOR_DEFAULT_HEIGHT 40
78 //****************************************************************************//
79 // ***************** EDJE description have 24 patterns **********************//
80 //**************************************************************************//
84 #define GENLIST_DESCRIPTION_ENVELOP( PART, PARAM ) \
85 description { state: "default" 0.0;\
98 // ---------------------
99 // left | HERE | right
100 // ---------------------
102 #define GENLIST_DESCRIPTION( left, right, top, bottom, param ) \
103 description { state: "default" 0.0;\
117 // ---------------------
119 // ---------------------
120 #define GENLIST_DESCRIPTION_L( left, param ) \
121 description { state: "default" 0.0;\
137 // ---------------------
139 // ---------------------
140 #define GENLIST_DESCRIPTION_R( right, param ) \
141 description { state: "default" 0.0;\
157 // --------------------------
158 // left |--> HERE <--| right
159 // --------------------------
160 #define GENLIST_DESCRIPTION_LR( left, right, param ) \
161 description { state: "default" 0.0;\
180 #define GENLIST_DESCRIPTION_RTB( right, top, bottom, param ) \
181 description { state: "default" 0.0;\
196 // left | HERE | right
197 // ---------------------
199 #define GENLIST_DESCRIPTION_LRB( left, right, bottom, param ) \
200 description { state: "default" 0.0;\
216 // ---------------------
217 // left | HERE | right
218 #define GENLIST_DESCRIPTION_LRT( left, right, top, param ) \
219 description { state: "default" 0.0;\
235 // ---------------------
237 #define GENLIST_DESCRIPTION_LT( left, top, param ) \
238 description { state: "default" 0.0;\
254 // ---------------------
256 #define GENLIST_DESCRIPTION_LB( left, bottom, param ) \
257 description { state: "default" 0.0;\
273 // ---------------------
275 // ---------------------
277 #define GENLIST_DESCRIPTION_LTB( left, top, bottom, param ) \
278 description { state: "default" 0.0;\
294 // ---------------------
296 #define GENLIST_DESCRIPTION_RT( right, top, param ) \
297 description { state: "default" 0.0;\
312 // | HERE <-- | right
313 // ---------------------
315 #define GENLIST_DESCRIPTION_RB( right, bottom, param ) \
316 description { state: "default" 0.0;\
336 #define GENLIST_DESCRIPTION_TB( top, bottom, param ) \
337 description { state: "default" 0.0;\
350 #define GENLIST_PROLOG \
351 data.item: "stacking" "above"; \
352 data.item: "selectraise" "on"; \
353 data.item: "treesize" 0;
355 #define GENLIST_PROLOG_NORMAL \
357 data.item: "treesize" GENLIST_TREESIZE_DEFAULT; \
358 data.item: "flips" "elm.flip.icon elm.flip.content elm.flip.eraser"; \
360 image : "00_list_group_bg.png" COMP; \
361 image : "00_list_group_bg_press.png" COMP; \
364 #define GENLIST_PROLOG_DIALOGUE \
366 data.item: "flips" "elm.flip.icon elm.flip.content elm.flip.eraser"; \
368 image : "00_list_group_bg.png" COMP; \
369 image : "00_list_group_bg_press.png" COMP; \
370 image : "00_list_group_bg_top.png" COMP; \
371 image : "00_list_group_bg_top_press.png" COMP; \
372 image : "00_list_group_bg_center.png" COMP; \
373 image : "00_list_group_bg_center_press.png" COMP; \
374 image : "00_list_group_bg_bottom.png" COMP; \
375 image : "00_list_group_bg_bottom_press.png" COMP; \
378 #define GENLIST_NAME(NAME) \
379 name: "elm/genlist/item/"NAME; \
380 alias: "elm/genlist/item_odd/"NAME; \
381 alias: "elm/genlist/item_compress/"NAME; \
382 alias: "elm/genlist/item_compress_odd/"NAME; \
383 alias: "elm/genlist/tree/"NAME; \
384 alias: "elm/genlist/tree_odd/"NAME; \
385 alias: "elm/genlist/tree_compress/"NAME; \
386 alias: "elm/genlist/tree_compress_odd/"NAME; \
388 /*****************************************************************************/
389 /******************************* Dialogue group ******************************/
390 /*****************************************************************************/
391 #define GENLIST_DIALOGUE_INHERIT_BODY( _PARTS ) \
392 data.item: "treesize" 0; \
394 GENLIST_PART_BG_NORMAL_OFF \
395 GENLIST_PART_BOTTOM_LINE_OFF \
396 GENLIST_PART_BG_DIALOGUE \
397 GENLIST_PART_PADDING_LEFT_SIZE( DIALOGUE_PADDING_SIZE_LEFT ) \
398 GENLIST_PART_PADDING_RIGHT_EDIT \
403 #define GENLIST_INHERIT_THUMB_CIRCLE(SIZE_PREFIX, MASK_SIZE, PARENT) \
405 image: "thumbnail/"SIZE_PREFIX"/00_list_circle_thumbnail_normal.png" COMP; \
406 image: "thumbnail/"SIZE_PREFIX"/00_list_circle_thumbnail_press.png" COMP; \
407 image: "thumbnail/"SIZE_PREFIX"/00_list_circle_thumbnail_dim.png" COMP; \
408 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_normal.png" COMP; \
409 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_press.png" COMP; \
410 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_dim.png" COMP; \
413 GENLIST_PART_RECT("elm.thumb.clip", \
414 description { state: "default"; \
416 description { state: "flipped"; \
420 GENLIST_PART_IMAGE("elm.thumb", \
421 clip_to: "elm.thumb.clip"; \
422 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
423 image.normal: "thumbnail/"SIZE_PREFIX"/00_list_circle_thumbnail_normal.png"; \
424 min: MASK_SIZE MASK_SIZE; \
425 max: MASK_SIZE MASK_SIZE; \
428 description { state: "selected" 0.0; \
429 inherit: "default" 0.0; \
430 image.normal: "thumbnail/"SIZE_PREFIX"/00_list_circle_thumbnail_press.png"; \
432 description { state: "disabled" 0.0; \
433 inherit: "default" 0.0; \
434 image.normal: "thumbnail/"SIZE_PREFIX"/00_list_circle_thumbnail_dim.png"; \
436 description { state: "reorder" 0.0; \
437 inherit: "default" 0.0; \
438 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_normal.png"; \
440 description { state: "reorder_selected" 0.0; \
441 inherit: "default" 0.0; \
442 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_press.png"; \
444 description { state: "reorder_disabled" 0.0; \
445 inherit: "default" 0.0; \
446 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_dim.png"; \
448 description { state: "decorate" 0.0; \
449 inherit: "default" 0.0; \
451 description { state: "decorate_reorder" 0.0; \
452 inherit: "reorder" 0.0; \
458 #define GENLIST_INHERIT_THUMB_SQUARE(SIZE_PREFIX, MASK_SIZE, PARENT) \
460 image: "thumbnail/"SIZE_PREFIX"/00_list_square_thumbnail_normal.png" COMP; \
461 image: "thumbnail/"SIZE_PREFIX"/00_list_square_thumbnail_press.png" COMP; \
462 image: "thumbnail/"SIZE_PREFIX"/00_list_square_thumbnail_dim.png" COMP; \
463 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_normal.png" COMP; \
464 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_press.png" COMP; \
465 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_dim.png" COMP; \
468 GENLIST_PART_RECT("elm.thumb.clip", \
469 description { state: "default"; \
471 description { state: "flipped"; \
475 GENLIST_PART_IMAGE("elm.thumb", \
476 clip_to: "elm.thumb.clip"; \
477 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
478 image.normal: "thumbnail/"SIZE_PREFIX"/00_list_square_thumbnail_normal.png"; \
479 min: MASK_SIZE MASK_SIZE; \
480 max: MASK_SIZE MASK_SIZE; \
483 description { state: "selected" 0.0; \
484 inherit: "default" 0.0; \
485 image.normal: "thumbnail/"SIZE_PREFIX"/00_list_square_thumbnail_press.png"; \
487 description { state: "disabled" 0.0; \
488 inherit: "default" 0.0; \
489 image.normal: "thumbnail/"SIZE_PREFIX"/00_list_square_thumbnail_dim.png"; \
491 description { state: "reorder" 0.0; \
492 inherit: "default" 0.0; \
493 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_normal.png"; \
495 description { state: "reorder_selected" 0.0; \
496 inherit: "default" 0.0; \
497 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_press.png"; \
499 description { state: "reorder_disabled" 0.0; \
500 inherit: "default" 0.0; \
501 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_dim.png"; \
503 description { state: "decorate" 0.0; \
504 inherit: "default" 0.0; \
506 description { state: "decorate_reorder" 0.0; \
507 inherit: "reorder" 0.0; \
514 #define GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE(SIZE_PREFIX, MASK_SIZE, PARENT) \
516 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_normal.png" COMP; \
517 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_press.png" COMP; \
518 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_dim.png" COMP; \
521 GENLIST_PART_RECT("elm.thumb.clip", \
522 description { state: "default"; \
524 description { state: "flipped"; \
528 GENLIST_PART_IMAGE("elm.thumb", \
529 clip_to: "elm.thumb.clip"; \
530 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
531 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_normal.png"; \
532 min: MASK_SIZE MASK_SIZE; \
533 max: MASK_SIZE MASK_SIZE; \
536 description { state: "selected" 0.0; \
537 inherit: "default" 0.0; \
538 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_press.png"; \
540 description { state: "reorder" 0.0; \
541 inherit: "default" 0.0; \
542 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_normal.png"; \
544 description { state: "reorder_selected" 0.0; \
545 inherit: "default" 0.0; \
546 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_circle_thumbnail_press.png"; \
548 description { state: "decorate" 0.0; \
549 inherit: "default" 0.0; \
551 description { state: "decorate_reorder" 0.0; \
552 inherit: "reorder" 0.0; \
557 #define GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE(SIZE_PREFIX, MASK_SIZE, PARENT) \
559 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_normal.png" COMP; \
560 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_press.png" COMP; \
561 image: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_dim.png" COMP; \
564 GENLIST_PART_RECT("elm.thumb.clip", \
565 description { state: "default"; \
567 description { state: "flipped"; \
571 GENLIST_PART_IMAGE("elm.thumb", \
572 clip_to: "elm.thumb.clip"; \
573 GENLIST_DESCRIPTION_ENVELOP(PARENT, \
574 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_normal.png"; \
575 min: MASK_SIZE MASK_SIZE; \
576 max: MASK_SIZE MASK_SIZE; \
579 description { state: "selected" 0.0; \
580 inherit: "default" 0.0; \
581 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_press.png"; \
583 description { state: "reorder" 0.0; \
584 inherit: "default" 0.0; \
585 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_normal.png"; \
587 description { state: "reorder_selected" 0.0; \
588 inherit: "default" 0.0; \
589 image.normal: "thumbnail/"SIZE_PREFIX"/00_dialogue_square_thumbnail_press.png"; \
591 description { state: "decorate" 0.0; \
592 inherit: "default" 0.0; \
594 description { state: "decorate_reorder" 0.0; \
595 inherit: "reorder" 0.0; \
600 #define GENLIST_INHERIT_THUMB_CIRCLE_MEDIUM(PARENT) \
601 GENLIST_INHERIT_THUMB_CIRCLE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
603 // FIXME: 72x72 squre image is not ready yet. UX team!!!!!!?@!#!!
604 #define GENLIST_INHERIT_THUMB_SQUARE_MEDIUM(PARENT) \
605 GENLIST_INHERIT_THUMB_SQUARE("99x99", 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)
613 #define GENLIST_INHERIT_THUMB_CIRCLE_THUMB(PARENT) \
614 GENLIST_INHERIT_THUMB_CIRCLE("126x126", GENLIST_ICON_THUMB_MASK_SIZE, PARENT)
616 // FIXME: 72x72 squre image is not ready yet. UX team!!!!!!?@!#!!
617 #define GENLIST_INHERIT_THUMB_SQUARE_THUMB(PARENT) \
618 GENLIST_INHERIT_THUMB_SQUARE("99x99", GENLIST_ICON_THUMB_MASK_SIZE, PARENT)
621 #define GENLIST_INHERIT_THUMB_CIRCLE_MEDIUM_DIALOGUE(PARENT) \
622 GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
624 // FIXME: 72x72 squre image is not ready yet. UX team!!!!!!?@!#!!
625 #define GENLIST_INHERIT_THUMB_SQUARE_MEDIUM_DIALOGUE(PARENT) \
626 GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("99x99", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
628 #define GENLIST_INHERIT_THUMB_CIRCLE_LARGE_DIALOGUE(PARENT) \
629 GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
631 #define GENLIST_INHERIT_THUMB_SQUARE_LARGE_DIALOGUE(PARENT) \
632 GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
634 #define GENLIST_INHERIT_THUMB_CIRCLE_THUMB_DIALOGUE(PARENT) \
635 GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("126x126", GENLIST_ICON_THUMB_MASK_SIZE, PARENT)
637 // FIXME: 72x72 squre image is not ready yet. UX team!!!!!!?@!#!!
638 #define GENLIST_INHERIT_THUMB_SQUARE_THUMB_DIALOGUE(PARENT) \
639 GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("99x99", GENLIST_ICON_THUMB_MASK_SIZE, PARENT)
641 //****************************************************************************//
642 // ****************************** BG Image **********************************//
643 //****************************************************************************//
644 #define GENLIST_PART_BG_NORMAL \
645 GENLIST_PART_RECT("bg_clip", \
646 description { state: "default" 0.0; \
647 color: 255 255 255 255; \
649 description { state: "decorate" 0.0; \
650 inherit: "default" 0.0; \
653 description { state: "reorder" 0.0; \
654 inherit: "default" 0.0; \
657 description { state: "decorate_reorder" 0.0; \
658 inherit: "default" 0.0; \
662 GENLIST_PART_RECT("bg", \
663 clip_to: "bg_clip"; \
664 description { state: "default" 0.0; \
665 color: GENLIST_LIST_BG_COLOR; \
667 description { state: "selected" 0.0; \
668 inherit: "default" 0.0; \
669 color: GENLIST_LIST_PRESS_COLOR; \
671 description { state: "disabled" 0.0; \
672 inherit: "default" 0.0; \
673 color: GENLIST_LIST_DIM_COLOR; \
676 GENLIST_PART_RECT("bg_reorder_clip", \
677 description { state: "default" 0.0; \
680 description { state: "reorder" 0.0; \
681 inherit: "default" 0.0; \
682 color: 255 255 255 255; \
684 description { state: "decorate_reorder" 0.0; \
685 inherit: "default" 0.0; \
687 description { state: "decorate" 0.0; \
688 inherit: "default" 0.0; \
690 description { state: "reorder_flip" 0.0; \
691 inherit: "default" 0.0; \
694 GENLIST_PART_SPACER("bg_reorder_left", \
695 description { state: "default" 0.0; \
700 rel2.relative: 0 1; \
703 GENLIST_PART_SPACER("bg_reorder_right", \
704 description { state: "default" 0.0; \
709 rel1.relative: 1 0; \
712 GENLIST_PART_IMAGE("bg_reorder", \
713 clip_to: "bg_reorder_clip"; \
714 GENLIST_DESCRIPTION_LR("bg_reorder_left", "bg_reorder_right", \
716 normal: "00_list_group_bg.png"; \
721 description { state: "selected" 0.0; \
722 inherit: "default"; \
724 normal: "00_list_group_bg_press.png"; \
729 description { state: "flipped" 0.0; \
730 inherit: "default"; \
735 #define GENLIST_PART_BG_NORMAL_OFF \
736 GENLIST_PART_RECT("bg_clip", \
737 description { state: "default" 0.0; \
740 description { state: "decorate" 0.0; \
741 inherit: "default" 0.0; \
744 description { state: "reorder" 0.0; \
745 inherit: "default" 0.0; \
748 description { state: "decorate_reorder" 0.0; \
749 inherit: "default" 0.0; \
753 GENLIST_PART_RECT("bg", \
755 description { state: "default" 0.0; \
758 description { state: "selected" 0.0; \
761 description { state: "disabled" 0.0; \
765 GENLIST_PART_IMAGE("bg_reorder", \
766 description {state: "default" 0.0;\
769 description { state: "selected" 0.0; {\
770 inherit: "default" 0.0; \
775 #define GENLIST_PART_BG_DIALOGUE \
776 GENLIST_PART_RECT("bg_dialogue_clip", \
777 description { state: "default" 0.0; \
778 color: 255 255 255 255; \
780 description { state: "2depth" 0.0; \
781 color: 220 218 211 255; \
784 GENLIST_PART_SPACER("bg_dialogue_left", \
785 description { state: "default" 0.0; \
790 rel2.relative: 0 1; \
793 GENLIST_PART_SPACER("bg_dialogue_right", \
794 description { state: "default" 0.0; \
799 rel1.relative: 1 0; \
801 description { state: "editmode" 0.0; \
802 inherit: "default" 0.0; \
803 min: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_MEDIUM_SIZE) 0; \
804 max: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_MEDIUM_SIZE) 0; \
807 GENLIST_PART_IMAGE("bg_dialogue", \
808 insert_after: "base"; \
809 clip_to: "bg_dialogue_clip"; \
810 GENLIST_DESCRIPTION_LR("bg_dialogue_left", "bg_dialogue_right", \
812 normal: "00_list_group_bg.png"; \
817 description { state: "selected" 0.0; \
818 inherit: "default" 0.0; \
820 normal: "00_list_group_bg_press.png"; \
825 description { state: "top" 0.0; \
826 inherit: "default" 0.0; \
828 normal: "00_list_group_bg_top.png"; \
833 description { state: "top_selected" 0.0; \
834 inherit: "default" 0.0; \
836 normal: "00_list_group_bg_top_press.png"; \
841 description { state: "center" 0.0; \
842 inherit: "default" 0.0; \
844 normal: "00_list_group_bg_center.png"; \
849 description { state: "center_selected" 0.0; \
850 inherit: "default" 0.0; \
852 normal: "00_list_group_bg_center_press.png"; \
857 description { state: "bottom" 0.0; \
858 inherit: "default" 0.0; \
860 normal: "00_list_group_bg_bottom.png"; \
865 description { state: "bottom_selected" 0.0; \
866 inherit: "default" 0.0; \
868 normal: "00_list_group_bg_bottom_press.png"; \
875 //****************************************************************************//
876 // ****************************** BASE ********************************//
877 //****************************************************************************//
878 #define GENLIST_PART_BASE_SIZE(HEIGHT) \
879 part { name: "base"; \
883 description { state: "default" 0.0; \
887 description { state: "disabled" 0.0; \
888 inherit: "default"; \
891 part { name: "state"; \
895 description { state: "default" 0.0; \
898 description { state: "decorate" 0.0; \
899 inherit: "default"; \
901 description { state: "reorder" 0.0; \
902 inherit: "default"; \
904 description { state: "decorate_reorder" 0.0; \
905 inherit: "default"; \
909 #define GENLIST_PART_BASE \
910 GENLIST_PART_BASE_SIZE(0)
912 //****************************************************************************//
913 // ****************************** LINE ********************************//
914 //****************************************************************************//
915 #define GENLIST_PART_BOTTOM_LINE \
916 GENLIST_PART_RECT("bottom_line_clip", \
917 description { state: "default" 0.0; \
918 color: 255 255 255 255; \
920 description { state: "decorate" 0.0; \
921 inherit: "default" 0.0; \
924 description { state: "reorder" 0.0; \
925 inherit: "default" 0.0; \
928 description { state: "decorate_reorder" 0.0; \
929 inherit: "default" 0.0; \
933 GENLIST_PART_RECT("bottom_line", \
935 clip_to: "bottom_line_clip"; \
936 description { state: "default" 0.0; \
937 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
938 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
941 color: GENLIST_LIST_LINE1_COLOR; \
942 rel1.to: "bottom_line2"; \
943 rel2.to: "bottom_line2"; \
944 rel2.relative: 1 0; \
945 rel1.offset: -1 -1; \
947 description { state: "selected" 0.0; \
948 inherit: "default" 0.0; \
949 color: GENLIST_LIST_PRESS_COLOR; \
951 description { state: "disabled" 0.0; \
952 inherit: "default" 0.0; \
953 color: GENLIST_LIST_DIM_COLOR; \
955 description { state: "flipped" 0.0; \
956 inherit: "default" 0.0; \
960 GENLIST_PART_RECT("bottom_line2", \
962 clip_to: "bottom_line_clip"; \
963 description { state: "default" 0.0; \
964 min: 0 GENLIST_PART_LIST_LINE_HEIGHT; \
965 max: -1 GENLIST_PART_LIST_LINE_HEIGHT; \
968 color: GENLIST_LIST_LINE2_COLOR; \
969 rel1.to_x: "elm.padding.left"; \
970 rel1.relative: 1 0; \
971 rel2.to_x: "elm.padding.right"; \
972 rel2.relative: 0 1; \
973 rel1.offset: -1 -1; \
975 description { state: "selected" 0.0; \
976 inherit: "default" 0.0; \
977 color: GENLIST_LIST_PRESS_COLOR; \
979 description { state: "disabled" 0.0; \
980 inherit: "default" 0.0; \
981 color: GENLIST_LIST_DIM_COLOR; \
983 description { state: "flipped" 0.0; \
984 inherit: "default" 0.0; \
989 #define GENLIST_PART_BOTTOM_LINE_OFF \
990 GENLIST_PART_RECT("bottom_line", \
992 description { state: "default" 0.0; \
995 description { state: "selected" 0.0; \
998 description { state: "disabled" 0.0; \
1001 description { state: "decorate" 0.0; \
1005 GENLIST_PART_RECT("bottom_line2", \
1007 description { state: "default" 0.0; \
1010 description { state: "selected" 0.0; \
1013 description { state: "disabled" 0.0; \
1016 description { state: "decorate" 0.0; \
1021 #define GENLIST_PART_DIVIDER_PADDING \
1022 GENLIST_PART_SPACER("elm.padding.divider.top", \
1023 description { state: "default" 0.0; \
1028 rel2.relative: 1 0; \
1031 GENLIST_PART_SPACER("elm.padding.divider.bottom", \
1032 description { state: "default" 0.0; \
1037 rel1.relative: 0 1; \
1041 #define GENLIST_PART_DIVIDER_L(LEFT) \
1042 GENLIST_PART_DIVIDER_PADDING \
1043 GENLIST_PART_RECT("elm.divider1", \
1045 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1051 color: GENLIST_LIST_DIVIDER1_COLOR; \
1054 GENLIST_PART_RECT("elm.divider2", \
1056 GENLIST_DESCRIPTION_LTB("elm.divider1", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1062 color: GENLIST_LIST_DIVIDER2_COLOR; \
1066 #define GENLIST_PART_DIVIDER_R(RIGHT) \
1067 GENLIST_PART_DIVIDER_PADDING \
1068 GENLIST_PART_RECT("elm.divider1", \
1070 GENLIST_DESCRIPTION_RTB("elm.divider2", "elm.padding.divider.top", "elm.padding.divider.bottom", \
1075 color: GENLIST_LIST_DIVIDER1_COLOR; \
1078 GENLIST_PART_RECT("elm.divider2", \
1080 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.divider.top", "elm.padding.divider.bottom", \
1085 color: GENLIST_LIST_DIVIDER2_COLOR; \
1089 #define GENLIST_PART_CENTER_LINE_LT(LEFT, TOP) \
1090 GENLIST_PART_SPACER("elm.padding.divider.left", \
1091 GENLIST_DESCRIPTION_L(LEFT, \
1097 GENLIST_PART_SPACER("elm.padding.divider.right", \
1098 GENLIST_DESCRIPTION_ENVELOP("base", \
1103 rel1.relative: 1 0; \
1106 GENLIST_PART_RECT("center_line", \
1108 GENLIST_DESCRIPTION_LRT("elm.padding.divider.left", "elm.padding.divider.right", TOP, \
1112 color: GENLIST_LIST_DIVIDER1_COLOR; \
1115 GENLIST_PART_RECT("center_line2", \
1116 GENLIST_DESCRIPTION_LRT("elm.padding.divider.left", "elm.padding.divider.right", "center_line", \
1120 color: GENLIST_LIST_DIVIDER2_COLOR; \
1124 #define GENLIST_PART_COLORBAR \
1125 GENLIST_PART_SPACER("elm.padding.colorbar.top", \
1126 GENLIST_DESCRIPTION_ENVELOP("base", \
1131 rel2.relative: 1 0; \
1134 GENLIST_PART_SPACER("elm.padding.colorbar.bottom", \
1135 GENLIST_DESCRIPTION_ENVELOP("base", \
1140 rel1.relative: 0 1; \
1143 GENLIST_PART_ICON("elm.swallow.colorbar", \
1144 GENLIST_DESCRIPTION_TB("elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
1145 min: GENLIST_ICON_COLORBAR_SIZE 0; \
1146 max: GENLIST_ICON_COLORBAR_SIZE -1; \
1149 rel1.relative: 0 1; \
1150 rel2.relative: 0 0; \
1154 #define GENLIST_PART_COLORBAR_DIALOGUE \
1155 GENLIST_PART_SPACER("elm.padding.colorbar.top", \
1156 GENLIST_DESCRIPTION_ENVELOP("base", \
1161 rel2.relative: 1 0; \
1164 GENLIST_PART_SPACER("elm.padding.colorbar.bottom", \
1165 GENLIST_DESCRIPTION_ENVELOP("base", \
1170 rel1.relative: 0 1; \
1173 GENLIST_PART_SPACER("elm.padding.colorbar.left", \
1174 description{ state: "default" 0.0; \
1181 rel2.relative: 0 1; \
1184 GENLIST_PART_ICON("elm.swallow.colorbar", \
1185 GENLIST_DESCRIPTION_LTB("elm.padding.colorbar.left","elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
1186 min: GENLIST_ICON_COLORBAR_SIZE 0; \
1187 max: GENLIST_ICON_COLORBAR_SIZE -1; \
1192 //****************************************************************************//
1193 //********************************* PADDING **********************************//
1194 //****************************************************************************//
1195 #define GENLIST_PART_EXPANDED_PAD \
1196 part { name: "elm.swallow.pad"; \
1200 description { state: "default" 0.0; \
1207 rel2.relative: 0.0 1.0; \
1211 #define GENLIST_PART_PADDING( NAME, SIZE, REL1, REL2 ) \
1212 GENLIST_PART_SPACER(NAME, \
1213 description { state: "default" 0.0; \
1229 #define GENLIST_DESCRIPTION_DECORATE_PADDING \
1230 description { state: "decorate" 0.0; \
1231 inherit: "default" 0.0; \
1236 #define GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1237 description { state: "decorate_reorder" 0.0; \
1238 inherit: "default" 0.0; \
1243 #define GENLIST_DESCRIPTION_REORDER_PADDING \
1244 description { state: "reorder" 0.0; \
1245 inherit: "default" 0.0; \
1250 #define GENLIST_PART_PADDING_LEFT \
1251 GENLIST_PART_EXPANDED_PAD \
1252 GENLIST_PART_SPACER("elm.padding.left", \
1253 GENLIST_DESCRIPTION_L("elm.swallow.pad", \
1254 min: GENLIST_PADDING_SIZE_LEFT 0; \
1255 max: GENLIST_PADDING_SIZE_LEFT -1; \
1258 GENLIST_DESCRIPTION_DECORATE_PADDING \
1259 GENLIST_DESCRIPTION_REORDER_PADDING \
1260 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1263 #define GENLIST_PART_PADDING_LEFT_SIZE( SIZE ) \
1264 GENLIST_PART_EXPANDED_PAD \
1265 GENLIST_PART_SPACER("elm.padding.left", \
1266 GENLIST_DESCRIPTION_L("elm.swallow.pad", \
1271 GENLIST_DESCRIPTION_DECORATE_PADDING \
1272 GENLIST_DESCRIPTION_REORDER_PADDING \
1273 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1276 #define GENLIST_PART_EDITBTN \
1277 GENLIST_PART_SPACER("elm.padding.edit.right", \
1278 description { state: "default" 0.0; \
1281 rel1.relative: 1 0; \
1282 min: GENLIST_PADDING_SIZE_RIGHT 0; \
1283 max: GENLIST_PADDING_SIZE_RIGHT -1; \
1286 GENLIST_PART_ICON("elm.icon.edit", \
1287 GENLIST_DESCRIPTION_R("elm.padding.edit.right", \
1290 description { state: "editmode" 0.0; \
1291 inherit: "default" 0.0; \
1294 min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
1295 max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
1299 #define GENLIST_PART_PADDING_RIGHT \
1300 GENLIST_PART_SPACER("elm.padding.right", \
1301 description { state: "default" 0.0; \
1302 min: GENLIST_PADDING_SIZE_RIGHT 0; \
1303 max: GENLIST_PADDING_SIZE_RIGHT -1; \
1308 rel1.relative: 1 0; \
1310 GENLIST_DESCRIPTION_DECORATE_PADDING \
1311 GENLIST_DESCRIPTION_REORDER_PADDING \
1312 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1315 #define GENLIST_PART_PADDING_RIGHT_SIZE( SIZE ) \
1316 GENLIST_PART_SPACER("elm.padding.right", \
1317 description { state: "default" 0.0; \
1324 rel1.relative: 1 0; \
1326 GENLIST_DESCRIPTION_DECORATE_PADDING \
1327 GENLIST_DESCRIPTION_REORDER_PADDING \
1328 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1331 // FIXME: Use RECT instead of SPACER if this group is used on layout
1332 // for blocking events
1333 #define GENLIST_PART_PADDING_RIGHT_EDIT \
1334 GENLIST_PART_SPACER("elm.padding.right", \
1335 GENLIST_DESCRIPTION_R("elm.padding.right.edit", \
1336 min: DIALOGUE_PADDING_SIZE_RIGHT 0; \
1337 max: DIALOGUE_PADDING_SIZE_RIGHT -1; \
1340 GENLIST_DESCRIPTION_DECORATE_PADDING \
1341 GENLIST_DESCRIPTION_REORDER_PADDING \
1342 GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
1344 GENLIST_PART_SPACER("elm.padding.right.edit", \
1345 description { state: "default" 0.0; \
1350 rel1.relative: 1 0; \
1352 description { state: "editmode" 0.0; \
1353 inherit: "default" 0.0; \
1354 min: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_MEDIUM_SIZE) 0; \
1355 max: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_MEDIUM_SIZE) -1; \
1358 GENLIST_PART_EDITBTN
1360 #define GENLIST_PART_PADDING_TOP \
1361 GENLIST_PART_SPACER("elm.padding.top", \
1363 state: "default" 0.0; \
1364 min: 0 GENLIST_PADDING_SIZE_TOP; \
1365 max: -1 GENLIST_PADDING_SIZE_TOP; \
1369 rel2.relative: 1.0 0.0; \
1374 #define GENLIST_PART_PADDING_TOP_2LINE \
1375 GENLIST_PART_SPACER("elm.padding.top", \
1377 state: "default" 0.0; \
1378 min: 0 GENLIST_PADDING_SIZE_TOP_2LINE; \
1379 max: -1 GENLIST_PADDING_SIZE_TOP_2LINE; \
1383 rel2.relative: 1.0 0.0; \
1388 #define GENLIST_PART_PADDING_TOP_SIZE( SIZE ) \
1389 GENLIST_PART_SPACER("elm.padding.top", \
1391 state: "default" 0.0; \
1397 rel2.relative: 1.0 0.0; \
1402 #define GENLIST_PART_PADDING_BOTTOM \
1403 GENLIST_PART_SPACER("elm.padding.bottom", \
1404 description { state: "default" 0.0; \
1405 min: 0 GENLIST_PADDING_SIZE_BOTTOM; \
1406 max: -1 GENLIST_PADDING_SIZE_BOTTOM; \
1410 rel1.relative: 0.0 1.0; \
1415 #define GENLIST_PART_PADDING_BOTTOM_2LINE \
1416 GENLIST_PART_SPACER("elm.padding.bottom", \
1417 description { state: "default" 0.0; \
1418 min: 0 GENLIST_PADDING_SIZE_BOTTOM_2LINE; \
1419 max: -1 GENLIST_PADDING_SIZE_BOTTOM_2LINE; \
1423 rel1.relative: 0.0 1.0; \
1428 #define GENLIST_PART_PADDING_BOTTOM_SIZE( SIZE ) \
1429 GENLIST_PART_SPACER("elm.padding.bottom", \
1430 description { state: "default" 0.0; \
1436 rel1.relative: 0.0 1.0; \
1441 #define GENLIST_PART_PADDING_R( NAME, RIGHT ) \
1442 GENLIST_PART_SPACER(NAME, \
1443 description { state: "default" 0.0; \
1445 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1446 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1459 #define GENLIST_PART_PADDING_R_SIZE( NAME, RIGHT, SIZE ) \
1460 GENLIST_PART_SPACER(NAME, \
1461 description { state: "default" 0.0; \
1477 #define GENLIST_PART_PADDING_L( NAME, LEFT ) \
1478 GENLIST_PART_SPACER(NAME, \
1479 description { state: "default" 0.0; \
1481 min: GENLIST_PADDING_SIZE_DEFAULT 0; \
1482 max: GENLIST_PADDING_SIZE_DEFAULT -1; \
1495 #define GENLIST_PART_PADDING_L_SIZE( NAME, LEFT, SIZE ) \
1496 GENLIST_PART_SPACER(NAME, \
1497 description { state: "default" 0.0; \
1514 #define GENLIST_PART_PADDING_T_SIZE( NAME, TOP, SIZE ) \
1515 GENLIST_PART_SPACER(NAME, \
1516 description { state: "default" 0.0; \
1532 #define GENLIST_PART_PADDING_B_SIZE( NAME, BOTTOM, SIZE ) \
1533 GENLIST_PART_SPACER(NAME, \
1534 description { state: "default" 0.0; \
1550 #define GENLIST_PROGRAM_EXPAND_ROOT( TARGET ) \
1552 name: "go_expanded"; \
1553 signal: "elm,state,expanded"; \
1555 action: STATE_SET "expand_opened" 0.0; \
1559 name: "go_contracted"; \
1560 signal: "elm,state,contracted"; \
1562 action: STATE_SET "default" 0.0; \
1566 // 2.2.7 Genlist_Edit mode (Rename)
1567 // FIXME: padding is not needed when swallow content is NULL.
1568 // But how can edje know existence of swallow content?
1569 #define GENLIST_PART_FLIP \
1570 GENLIST_PART_RECT("elm.flip.bg", \
1572 description { state: "default" 0.0;\
1575 description { state: "flipped" 0.0; \
1576 inherit: "default" 0.0; \
1577 color: GENLIST_LIST_BG_COLOR;\
1580 GENLIST_PART_SPACER("elm.flip.padding.left", \
1581 description { state: "default" 0.0; \
1586 rel2.relative: 0 1; \
1589 GENLIST_PART_SPACER("elm.flip.padding.right", \
1590 description { state: "default" 0.0; \
1595 rel1.relative: 1 0; \
1598 GENLIST_PART_ICON("elm.flip.content", \
1599 GENLIST_DESCRIPTION("elm.flip.padding.left", "elm.flip.padding.eraser.left", \
1600 "elm.padding.top", "elm.padding.bottom", \
1604 description { state: "flipped" 0.0; \
1605 inherit: "default" 0.0; \
1609 GENLIST_PART_PADDING_R("elm.flip.padding.eraser.left", "elm.flip.eraser") \
1610 GENLIST_PART_ICON("elm.flip.eraser", \
1611 GENLIST_DESCRIPTION_RTB("elm.flip.padding.icon.left", \
1612 "elm.padding.top", "elm.padding.bottom", \
1615 min: GENLIST_ICON_ENTRY_SIZE GENLIST_ICON_ENTRY_SIZE; \
1616 max: GENLIST_ICON_ENTRY_SIZE GENLIST_ICON_ENTRY_SIZE; \
1618 description { state: "show" 0.0; \
1619 inherit: "default" 0.0; \
1623 GENLIST_PART_PADDING_R("elm.flip.padding.icon.left", "elm.flip.icon") \
1624 GENLIST_PART_ICON( "elm.flip.icon", \
1625 GENLIST_DESCRIPTION_RTB("elm.flip.padding.right", \
1626 "elm.padding.top", "elm.padding.bottom", \
1632 description { state: "flipped" 0.0; \
1633 inherit: "default" 0.0; \
1638 //****************************************************************************//
1639 // ******************************* Programs ********************************//
1640 //**************************************************************************//
1641 // signal: elm,state,%s,active
1642 // a "check" item named %s went active
1643 // signal: elm,state,%s,passive
1644 // a "check" item named %s went passive
1645 // default is passive
1646 #define GENLIST_PROGRAM_DEFAULT( TARGET ) \
1647 program { name: "default"; \
1648 signal: "elm,state,default"; \
1650 action: STATE_SET "default" 0.0; \
1654 #define GENLIST_PROGRAM_DISABLED( TARGET ) \
1655 program { name: "enabled"; \
1656 signal: "elm,state,enabled"; \
1658 action: STATE_SET "default" 0.0; \
1662 program { name: "disabled"; \
1663 signal: "elm,state,disabled"; \
1665 action: STATE_SET "disabled" 0.0; \
1670 // If check is swallowed, genlist selected/unselected should be synched with check.
1671 #define GENLIST_PROGRAM_CHECK(CHECK) \
1672 program { name: "selected"CHECK; \
1673 signal: "mouse,down,1"; \
1678 get_state(PART:"base", st, 30, vl); \
1679 if (strcmp(st, "disabled")) \
1680 run_program(PROGRAM:"selected"); \
1683 program { name: "unselected"CHECK; \
1684 signal: "mouse,up,1"; \
1689 get_state(PART:"base", st, 30, vl); \
1690 if (strcmp(st, "disabled")) \
1691 run_program(PROGRAM:"unselected"); \
1695 #define GENLIST_PROGRAM_SOUND( SRC ) \
1696 program { name: "play_sound"SRC; \
1697 signal: "mouse,clicked,1"; \
1702 get_state(PART:"base", st, 30, vl); \
1703 if (strcmp(st, "disabled")) \
1704 run_program(PROGRAM:"play_button_press"SRC); \
1707 program { name: "play_button_press"SRC; \
1708 action: PLAY_SAMPLE "button-pressed" 1.0; \
1711 #define GENLIST_PROGRAM_SELECT( TARGET ) \
1712 program { name: "selected"; \
1713 signal: "elm,state,selected"; \
1715 action: STATE_SET "selected" 0.0; \
1718 program { name: "unselected"; \
1719 signal: "elm,state,unselected"; \
1721 action: STATE_SET "default" 0.0; \
1725 #define GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
1726 program { name: "selected"; \
1727 signal: "elm,state,selected"; \
1732 get_state(PART:"bg_dialogue", st, 30, vl); \
1733 if (!strcmp(st, "top")) \
1734 set_state(PART:"bg_dialogue", "top_selected", 0.0); \
1735 else if (!strcmp(st, "center")) \
1736 set_state(PART:"bg_dialogue", "center_selected", 0.0); \
1737 else if (!strcmp(st, "bottom")) \
1738 set_state(PART:"bg_dialogue", "bottom_selected", 0.0); \
1739 else if (!strcmp(st, "default")) \
1740 set_state(PART:"bg_dialogue", "selected", 0.0); \
1741 run_program(PROGRAM:"target_selected"); \
1744 program { name: "unselected"; \
1745 signal: "elm,state,unselected"; \
1750 get_state(PART:"bg_dialogue", st, 30, vl); \
1751 if (!strcmp(st, "top_selected")) \
1752 set_state(PART:"bg_dialogue", "top", 0.0); \
1753 else if (!strcmp(st, "center_selected")) \
1754 set_state(PART:"bg_dialogue", "center", 0.0); \
1755 else if (!strcmp(st, "bottom_selected")) \
1756 set_state(PART:"bg_dialogue", "bottom", 0.0); \
1757 else if (!strcmp(st, "selected")) \
1758 set_state(PART:"bg_dialogue", "default", 0.0); \
1759 run_program(PROGRAM:"target_unselected"); \
1762 program { name: "target_selected"; \
1763 action: STATE_SET "selected" 0.0; \
1766 program { name: "target_unselected"; \
1767 action: STATE_SET "default" 0.0; \
1770 program { name: "bg_default"; \
1771 signal: "elm,state,default"; \
1773 action: STATE_SET "default" 0.0; \
1774 target: "bg_dialogue"; \
1776 program { name: "bg_top"; \
1777 signal: "elm,state,top"; \
1779 action: STATE_SET "top" 0.0; \
1780 target: "bg_dialogue"; \
1782 program { name: "bg_center"; \
1783 signal: "elm,state,center"; \
1785 action: STATE_SET "center" 0.0; \
1786 target: "bg_dialogue"; \
1788 program { name: "bg_bottom"; \
1789 signal: "elm,state,bottom"; \
1791 action: STATE_SET "bottom" 0.0; \
1792 target: "bg_dialogue"; \
1795 #define GENLIST_PROGRAM_SELECT_ARROW \
1796 program { name: "selected_arrow"; \
1797 signal: "elm,state,selected"; \
1802 get_state(PART:"arrow", st, 30, vl); \
1803 if (!strcmp(st, "default")) { \
1804 set_state(PART:"arrow", "default_press", 0.0); \
1805 set_state(PART:"arrow_clip", "default_press", 0.0); \
1807 else if (!strcmp(st, "expand_opened")) { \
1808 set_state(PART:"arrow", "expand_opened_press", 0.0); \
1809 set_state(PART:"arrow_clip", "expand_opened_press", 0.0); \
1813 program { name: "unselected_arrow"; \
1814 signal: "elm,state,unselected"; \
1819 get_state(PART:"arrow", st, 30, vl); \
1820 if (!strcmp(st, "default_press")) { \
1821 set_state(PART:"arrow", "default", 0.0); \
1822 set_state(PART:"arrow_clip", "default", 0.0); \
1824 else if (!strcmp(st, "expand_opened_press")) { \
1825 set_state(PART:"arrow", "expand_opened", 0.0); \
1826 set_state(PART:"arrow_clip", "expand_opened", 0.0); \
1831 #define GENLIST_PROGRAM_DECORATE( TARGET ) \
1832 program { name: "decorate_enabled_effect"; \
1833 signal: "elm,state,decorate,enabled,effect";\
1835 action: STATE_SET "decorate" 0.0;\
1838 program { name: "decorate_disabled_effect";\
1839 signal: "elm,state,decorate,disabled,effect";\
1841 action: STATE_SET "default" 0.0; \
1844 program { name: "decorate_enabled";\
1845 signal: "elm,state,decorate,enabled";\
1847 action: STATE_SET "decorate" 0.0;\
1850 program { name: "decorate_disabled";\
1851 signal: "elm,state,decorate,disabled";\
1853 action: STATE_SET "default" 0.0;\
1857 #define GENLIST_PROGRAM_REORDER( TARGET ) \
1858 program { name: "reorder_enabled"; \
1859 signal: "elm,state,reorder,mode_set"; \
1861 action: STATE_SET "reorder" 0.0; \
1864 program { name: "reorder_disabled"; \
1865 signal: "elm,state,reorder,mode_unset"; \
1867 action: STATE_SET "default" 0.0; \
1871 #define GENLIST_PROGRAM_DECORATE_REORDER( NAME, TARGET ) \
1872 program { name: "reorder_enabled"NAME; \
1873 signal: "elm,state,reorder,mode_set"; \
1878 get_state(PART:"state", st, 30, vl); \
1879 if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
1880 run_program(PROGRAM:"decorate_reorder_set"NAME); \
1882 run_program(PROGRAM:"reorder_set"NAME); \
1886 program { name: "reorder_disabled"NAME; \
1887 signal: "elm,state,reorder,mode_unset"; \
1892 get_state(PART:"state", st, 30, vl); \
1893 if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
1894 run_program(PROGRAM:"decorate_set"NAME); \
1896 run_program(PROGRAM:"default_set"NAME); \
1900 program { name: "decorate_enabled_effect"NAME; \
1901 signal: "elm,state,decorate,enabled,effect";\
1906 get_state(PART:"state", st, 30, vl); \
1907 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1908 run_program(PROGRAM:"decorate_reorder_set"NAME); \
1910 run_program(PROGRAM:"decorate_set"NAME); \
1914 program { name: "decorate_disabled_effect"NAME;\
1915 signal: "elm,state,decorate,disabled,effect";\
1920 get_state(PART:"state", st, 30, vl); \
1921 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1922 run_program(PROGRAM:"reorder_set"NAME); \
1924 run_program(PROGRAM:"default_set"NAME); \
1928 program { name: "decorate_enabled"NAME;\
1929 signal: "elm,state,decorate,enabled";\
1934 get_state(PART:"state", st, 30, vl); \
1935 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1936 run_program(PROGRAM:"decorate_reorder_set"NAME); \
1938 run_program(PROGRAM:"decorate_set"NAME); \
1942 program { name: "decorate_disabled"NAME;\
1943 signal: "elm,state,decorate,disabled";\
1948 get_state(PART:"state", st, 30, vl); \
1949 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
1950 run_program(PROGRAM:"reorder_set"NAME); \
1952 run_program(PROGRAM:"default_set"NAME); \
1956 program { name: "default_set"NAME; \
1957 action: STATE_SET "default" 0.0;\
1961 program { name: "decorate_set"NAME; \
1962 action: STATE_SET "decorate" 0.0;\
1966 program { name: "reorder_set"NAME; \
1967 action: STATE_SET "reorder" 0.0;\
1971 program { name: "decorate_reorder_set"NAME; \
1972 action: STATE_SET "decorate_reorder" 0.0;\
1977 #define GENLIST_PROGRAM_FLIP \
1978 program { name: "flip_enabled"; \
1979 signal: "elm,state,flip,enabled"; \
1981 transition: DECELERATE 0.5; \
1982 action: STATE_SET "flipped" 0.0; \
1983 target: "elm.flip.content"; \
1984 target: "elm.flip.icon"; \
1986 program { name: "flip_disabled"; \
1987 signal: "elm,state,flip,disabled"; \
1989 transition: DECELERATE 0.5; \
1990 action: STATE_SET "default" 0.0; \
1991 target: "elm.flip.content"; \
1992 target: "elm.flip.icon"; \
1994 program { name: "flip_enabled_bg"; \
1995 signal: "elm,state,flip,enabled"; \
1997 action: STATE_SET "flipped" 0.0; \
1998 target: "elm.flip.bg"; \
2000 program { name: "flip_disabled_bg"; \
2001 signal: "elm,state,flip,disabled"; \
2003 action: STATE_SET "default" 0.0; \
2004 target: "elm.flip.bg"; \
2007 signal: "elm,state,eraser,show"; \
2008 action: STATE_SET "show" 0.0; \
2009 target: "elm.flip.eraser"; \
2012 signal: "elm,state,eraser,hide"; \
2013 action: STATE_SET "default" 0.0; \
2014 target: "elm.flip.eraser"; \
2017 #define GENLIST_PROGRAM_FLIP_TARGET( TARGET ) \
2018 program { name: "flip_enabled_target"; \
2019 signal: "elm,state,flip,enabled"; \
2021 action: STATE_SET "flipped" 0.0; \
2024 program { name: "flip_disabled_target"; \
2025 signal: "elm,state,flip,disabled"; \
2027 action: STATE_SET "default" 0.0; \
2031 #define GENLIST_PROGRAM_FLIP_EFFECT_TARGET( TARGET ) \
2032 program { name: "flip_enabled_effect"; \
2033 signal: "elm,state,flip,enabled"; \
2035 transition: DECELERATE 0.5; \
2036 action: STATE_SET "flipped" 0.0; \
2039 program { name: "flip_disabled_effect"; \
2040 signal: "elm,state,flip,disabled"; \
2042 transition: DECELERATE 0.5; \
2043 action: STATE_SET "default" 0.0; \
2047 #define GENLIST_PROGRAM_EDITMODE \
2048 program { name: "edit_enabled"; \
2049 signal: "elm,state,edit,enabled"; \
2051 action: STATE_SET "editmode" 0.0; \
2052 target: "elm.padding.right.edit"; \
2053 target: "elm.icon.edit"; \
2054 target: "bg_dialogue_right"; \
2056 program { name: "edit_disabled"; \
2057 signal: "elm,state,edit,disabled"; \
2059 action: STATE_SET "default" 0.0; \
2060 target: "elm.padding.right.edit"; \
2061 target: "elm.icon.edit"; \
2062 target: "bg_dialogue_right"; \
2065 /***************************************************************************/
2066 /***************************************************************************/
2068 #define GENLIST_PROGRAMS_NORMAL( TARGET ) \
2070 GENLIST_PROGRAM_DEFAULT( TARGET \
2072 target: "bg_clip"; \
2073 target: "bottom_line"; \
2074 target: "bottom_line2"; \
2075 target: "bottom_line_clip"; \
2076 target: "bg_reorder"; \
2077 target: "elm.padding.left"; \
2078 target: "elm.padding.right"; \
2080 GENLIST_PROGRAM_DISABLED( TARGET \
2082 target: "bottom_line"; \
2083 target: "bottom_line2"; \
2084 target: "bg_reorder"; \
2086 GENLIST_PROGRAM_SELECT( TARGET \
2088 target: "bottom_line"; \
2089 target: "bottom_line2"; \
2090 target: "bg_reorder"; \
2092 GENLIST_PROGRAM_SOUND( "bg" ) \
2093 GENLIST_PROGRAM_SOUND( "bg_reorder" ) \
2094 GENLIST_PROGRAM_DECORATE_REORDER("normal", TARGET \
2095 target: "bg_clip"; \
2096 target: "bg_reorder_clip"; \
2097 target: "bottom_line_clip"; \
2098 target: "elm.padding.left"; \
2099 target: "elm.padding.right"; \
2101 GENLIST_PROGRAM_FLIP \
2104 // FIXME: inheritance !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
2105 // if GENLIST_PROGRAM_EXPAND is here, expanda effect is something wrong.
2106 // because after can be duplicated when program inheriting.
2107 #define GENLIST_PROGRAMS_DIALOGUE( TARGET ) \
2109 GENLIST_PROGRAM_DEFAULT( TARGET \
2110 target: "bg_dialogue"; \
2111 target: "bg_dialogue_clip"; \
2112 target: "elm.padding.left"; \
2113 target: "elm.padding.right"; \
2115 GENLIST_PROGRAM_DISABLED( TARGET ) \
2116 GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
2117 program { name: "bg_color_change"; \
2118 signal: "bg_color_change"; \
2120 action: STATE_SET "2depth" 0.0; \
2121 target: "bg_dialogue_clip"; \
2123 GENLIST_PROGRAM_SOUND("bg_dialogue") \
2124 GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
2125 target: "elm.padding.left"; \
2126 target: "elm.padding.right"; \
2128 GENLIST_PROGRAM_FLIP \
2129 GENLIST_PROGRAM_EDITMODE \
2132 #define GENLIST_PROGRAMS_READ_TEXT( TARGET ) \
2134 GENLIST_PROGRAM_DEFAULT( TARGET \
2136 target: "bg_clip"; \
2137 target: "bottom_line"; \
2138 target: "bottom_line2"; \
2139 target: "bottom_line_clip"; \
2140 target: "bg_reorder"; \
2141 target: "elm.padding.left"; \
2142 target: "elm.padding.right"; \
2144 GENLIST_PROGRAM_DISABLED( TARGET \
2146 target: "bottom_line"; \
2147 target: "bottom_line2"; \
2148 target: "bg_reorder"; \
2150 GENLIST_PROGRAM_SELECT( TARGET \
2152 target: "bottom_line"; \
2153 target: "bottom_line2"; \
2154 target: "bg_reorder"; \
2156 GENLIST_PROGRAM_SOUND("bg") \
2157 GENLIST_PROGRAM_DECORATE_REORDER( "normal", \
2158 target: "bg_clip"; \
2159 target: "bg_reorder_clip"; \
2160 target: "bottom_line_clip"; \
2161 target: "elm.padding.left"; \
2162 target: "elm.padding.right"; \
2164 program { name: "unselected_target"; \
2165 action: STATE_SET "default" 0.0; \
2168 program { name: "unselected_read"; \
2169 signal: "elm,state,unselected"; \
2172 if (get_int(readed) == 1) \
2173 run_program(PROGRAM:"go_read_target"); \
2175 run_program(PROGRAM:"unselected_target"); \
2178 program { name: "go_read"; \
2179 signal: "elm,state,read"; \
2182 set_int(readed, 1); \
2183 run_program(PROGRAM:"go_read_target"); \
2186 program { name: "go_unread"; \
2187 signal: "elm,state,unread"; \
2190 set_int(readed, 0); \
2191 run_program(PROGRAM:"go_unread_target"); \
2194 program { name: "go_read_target"; \
2195 action: STATE_SET "read" 0.0; \
2198 program { name: "go_unread_target"; \
2199 action: STATE_SET "unread" 0.0; \
2204 #define GENLIST_PROGRAMS_DECORATE_EFFECT( TARGET ) \
2205 program { name: "decorate_enabled_effect_ef"; \
2206 signal: "elm,state,decorate,enabled,effect";\
2208 transition: DECELERATE 0.5;\
2209 action: STATE_SET "decorate" 0.0;\
2212 program { name: "decorate_disabled_effect_ef";\
2213 signal: "elm,state,decorate,disabled,effect";\
2215 transition: ACCELERATE 0.5;\
2216 action: STATE_SET "default" 0.0;\
2219 program { name: "decorate_enabled_ef";\
2220 signal: "elm,state,decorate,enabled";\
2222 action: STATE_SET "decorate" 0.0;\
2225 program { name: "decorate_disabled_ef";\
2226 signal: "elm,state,decorate,disabled";\
2228 action: STATE_SET "default" 0.0;\
2232 #define GENLIST_PROGRAMS_ENTRY \
2234 signal: "elm,state,eraser,show"; \
2235 action: STATE_SET "show" 0.0; \
2236 target: "elm.icon.eraser"; \
2239 signal: "elm,state,eraser,hide"; \
2240 action: STATE_SET "default" 0.0; \
2241 target: "elm.icon.eraser"; \
2244 signal: "elm,state,rename,show"; \
2245 action: STATE_SET "default" 0.0; \
2246 target: "elm.image.rename"; \
2249 signal: "elm,state,rename,hide"; \
2250 action: STATE_SET "hide" 0.0; \
2251 target: "elm.image.rename"; \
2254 #define GENLIST_PROGRAMS_THUMB \
2255 GENLIST_PROGRAM_DECORATE_REORDER( "thumb", target: "elm.thumb"; ) \
2256 GENLIST_PROGRAM_FLIP_TARGET( target: "elm.thumb.clip"; ) \
2257 program { name: "enabled_thumb"; \
2258 signal: "elm,state,enabled"; \
2260 action: STATE_SET "default" 0.0; \
2262 target: "elm.thumb"; \
2264 program { name: "disabled_thumb"; \
2265 signal: "elm,state,disabled"; \
2267 action: STATE_SET "disabled" 0.0; \
2269 target: "elm.thumb"; \
2271 program { name: "selected_thumb"; \
2272 signal: "elm,state,selected"; \
2277 get_state(PART:"elm.thumb", st, 30, vl); \
2278 if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) \
2279 set_state(PART:"elm.thumb", "reorder_selected", 0.0); \
2281 set_state(PART:"elm.thumb", "selected", 0.0); \
2284 program { name: "unselected_thumb"; \
2285 signal: "elm,state,unselected"; \
2290 get_state(PART:"elm.thumb", st, 30, vl); \
2291 if (!strcmp(st, "reorder_selected")) \
2292 set_state(PART:"elm.thumb", "reorder", 0.0); \
2294 set_state(PART:"elm.thumb", "default", 0.0); \
2298 //****************************************************************************//
2299 // ******************************* Icon Part ******************************//
2300 //***************************************************************************//
2301 #define GENLIST_PART_ICON(NAME, DESCRIPION) \
2302 part { name: NAME; \
2308 #define GENLIST_PARAM_ICON_BIG \
2309 min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
2310 max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
2312 #define GENLIST_PARAM_ICON_SMALL \
2313 min: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE; \
2314 max: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE;
2316 #define GENLIST_PARAM_ICON_BTN_01 \
2317 min: 0 GENLIST_BTN_01_HEIGHT; \
2318 max: -1 GENLIST_BTN_01_HEIGHT;
2320 #define GENLIST_PARAM_ICON_BTN_02 \
2321 min: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE; \
2322 max: GENLIST_BTN_02_SIZE GENLIST_BTN_02_SIZE;
2324 #define GENLIST_PARAM_ICON_ONOFF_WIDTH \
2325 min: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT; \
2326 max: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT;
2328 #define GENLIST_PARAM_ICON_THUMBNAIL1\
2329 min: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE; \
2330 max: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE;
2332 #define GENLIST_PARAM_ICON_CHECK_RADIO \
2333 min: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE; \
2334 max: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE;
2336 #define GENLIST_PARAM_ICON_STAR \
2337 min: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2338 max: GENLIST_ICON_STAR_SIZE GENLIST_ICON_STAR_SIZE; \
2340 #define GENLIST_PART_ICON_BIG_R(NAME, RIGHT) \
2341 GENLIST_PART_ICON(NAME, \
2342 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2344 GENLIST_PARAM_ICON_BIG \
2348 #define GENLIST_PART_ICON_BIG_L(NAME, LEFT) \
2349 GENLIST_PART_ICON(NAME, \
2350 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2351 GENLIST_PARAM_ICON_BIG \
2356 #define GENLIST_PART_ICON_SMALL_L(NAME, LEFT) \
2357 GENLIST_PART_ICON(NAME, \
2358 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2359 GENLIST_PARAM_ICON_SMALL \
2364 #define GENLIST_PART_ICON_SMALL_LB(NAME, LEFT, BOTTOM) \
2365 GENLIST_PART_ICON(NAME, \
2366 GENLIST_DESCRIPTION_LB(LEFT, BOTTOM, \
2367 GENLIST_PARAM_ICON_SMALL \
2372 #define GENLIST_PART_ICON_SMALL_LTB(NAME, LEFT, TOP, BOTTOM) \
2373 GENLIST_PART_ICON(NAME, \
2374 GENLIST_DESCRIPTION_LTB(LEFT, TOP, BOTTOM, \
2375 GENLIST_PARAM_ICON_SMALL \
2380 #define GENLIST_PART_ICON_SMALL_RTB(NAME, RIGHT, TOP, BOTTOM) \
2381 GENLIST_PART_ICON(NAME, \
2382 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2383 GENLIST_PARAM_ICON_SMALL \
2388 #define GENLIST_PART_ICON_BTN_01_RTB(NAME, RIGHT, TOP, BOTTOM) \
2389 GENLIST_PART_ICON(NAME, \
2390 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM,\
2391 GENLIST_PARAM_ICON_BTN_01 \
2396 #define GENLIST_PART_ICON_BTN_02_RTB(NAME, RIGHT, TOP, BOTTOM) \
2397 GENLIST_PART_ICON(NAME, \
2398 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM,\
2399 GENLIST_PARAM_ICON_BTN_02 \
2404 #define GENLIST_PART_ICON_BTN_ONOFF_R(NAME, RIGHT) \
2405 GENLIST_PART_ICON(NAME, \
2406 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2407 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2412 #define GENLIST_PART_ICON_BTN_ONOFF_L(NAME, LEFT) \
2413 GENLIST_PART_ICON(NAME, \
2414 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2415 GENLIST_PARAM_ICON_ONOFF_WIDTH \
2420 #define GENLIST_PART_ICON_THUMBNAIL1_R(NAME, RIGHT) \
2421 GENLIST_PART_ICON(NAME, \
2422 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2423 GENLIST_PARAM_ICON_THUMBNAIL1 \
2428 #define GENLIST_PART_ICON_CHECK_RADIO_L(NAME, LEFT) \
2429 GENLIST_PART_ICON(NAME, \
2430 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2431 GENLIST_PARAM_ICON_CHECK_RADIO \
2436 #define GENLIST_PART_ICON_STAR_RTB(NAME, RIGHT, TOP, BOTTOM) \
2437 GENLIST_PART_ICON(NAME, \
2438 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
2439 GENLIST_PARAM_ICON_STAR \
2444 /*****************************************************************************/
2445 /******************************* Genlist IMAGE ********************************/
2446 /*****************************************************************************/
2447 #define GENLIST_PART_IMAGE(NAME, DESCRIPION) \
2448 part { name: NAME; \
2454 #define GENLIST_PARAM_PASSWORD_IMAGE \
2455 min: GENLIST_ICON_PASSWORD_SIZE GENLIST_ICON_PASSWORD_SIZE; \
2456 max: GENLIST_ICON_PASSWORD_SIZE GENLIST_ICON_PASSWORD_SIZE; \
2457 image.normal: "00_search_edit_field_bg_02.png"; \
2458 image.border: 12 13 12 13; \
2459 image.border_scale: 1;
2461 /*****************************************************************************/
2462 /******************************* Genlist Bubble ********************************/
2463 /*****************************************************************************/
2464 #define GENLIST_IMAGES_EXPANDABLE_BTN \
2466 image: "00_button_expand_closed.png" COMP; \
2467 image: "00_button_expand_opened.png" COMP; \
2470 #define GENLIST_PART_EXPANDABLE_ARROW \
2471 GENLIST_PART_ICON("touch_arrow", \
2472 ignore_flags: ON_HOLD; \
2473 GENLIST_DESCRIPTION_ENVELOP("arrow", ) \
2475 GENLIST_PART_RECT("arrow_clip", \
2476 GENLIST_DESCRIPTION_ENVELOP("arrow", \
2477 color: 101 101 101 255; \
2479 description { state: "disabled" 0.0; \
2480 color: 101 101 101 76; \
2482 description { state: "expand_opened_press" 0.0; \
2483 color: 248 246 239 255; \
2485 description { state: "default_press" 0.0; \
2486 color: 248 246 239 255; \
2489 GENLIST_PART_IMAGE("arrow", \
2490 clip_to: "arrow_clip"; \
2491 ignore_flags: ON_HOLD; \
2493 GENLIST_DESCRIPTION_R("elm.padding.right", \
2497 image.normal: "00_button_expand_closed.png"; \
2499 description { state: "default_press" 0.0; \
2500 inherit: "default" 0.0; \
2501 image.normal: "00_button_expand_closed_press.png"; \
2503 description { state: "expand_opened" 0.0; \
2504 inherit: "default" 0.0; \
2505 image.normal: "00_button_expand_opened.png"; \
2507 description { state: "expand_opened_press" 0.0; \
2508 inherit: "expand_opened" 0.0; \
2509 image.normal: "00_button_expand_opened_press.png"; \
2512 /*****************************************************************************/
2513 /******************************* Genlist RECT ********************************/
2514 /*****************************************************************************/
2515 #define GENLIST_PART_SPACER(NAME, DESCRIPION) \
2516 part { name: NAME; \
2523 #define GENLIST_PART_RECT(NAME, DESCRIPION) \
2524 part { name: NAME; \
2530 /*****************************************************************************/
2531 /******************************* Genlist TEXT ********************************/
2532 /*****************************************************************************/
2533 #define GENLIST_PART_TEXT(NAME, DESCRIPION) \
2534 part { name: NAME; \
2541 #define GENLIST_PART_TEXTBLOCK(NAME, DESCRIPION) \
2542 part { name: NAME; \
2549 /*************************** parameters **********************************/
2550 #define GENLIST_PARAM_TEXT_LIMIT_RB \
2551 rel1.to_x: "base"; /* This limits text growing. */\
2552 rel1.relative: 0.35 0; /* This limits text growing. */\
2553 text.max: 1 0; /* This limits text growing. */
2555 #define GENLIST_PARAM_TEXT_LIMIT_RT \
2556 rel1.to_x: "base"; /* This limits text growing. */\
2557 rel1.relative: 0.35 1; /* This limits text growing. */\
2558 text.max: 1 0; /* This limits text growing. */
2560 #define GENLIST_PARAM_TEXT_LIMIT_RTB \
2561 rel1.to_x: "base"; /* This limits text growing. */\
2562 rel1.relative: 0.35 1; /* This limits text growing. */\
2563 text.max: 1 0; /* This limits text growing. */
2566 #define GENLIST_PARAM_DIALOGUE_GROUP_TITLE \
2567 color: GENLIST_DIALOGUE_GROUP_TITLE_COLOR; \
2570 font: "Tizen:style=Bold"; \
2572 size: GENLIST_DIALOGUE_GROUP_TITLE_SIZE; \
2573 text_class: "list_item"; \
2577 #define GENLIST_PARAM_PASSWORD_TITLE \
2578 color: DIALOGUE_PASSWORD_TITLE_COLOR; \
2580 font: "Tizen:style=Bold"; \
2581 size: DIALOGUE_PASSWORD_TITLE_SIZE; \
2584 text_class: "list_item"; \
2587 // Progress main text
2588 #define GENLIST_PARAM_PROGRESS_MAIN \
2589 color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
2593 font: "Tizen:style=Regular"; \
2594 size: GENLIST_PROGRESS_MAIN_TEXT_SIZE; \
2595 text_class: "list_item"; \
2599 #define GENLIST_PARAM_LISTITEM \
2600 color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
2604 font: "Tizen:style=Regular"; \
2605 size: GENLIST_LIST_MAIN_TEXT_SIZE; \
2606 text_class: "list_item"; \
2609 #define GENLIST_PARAM_LISTITEM_TB \
2612 style: "genlist_style_list_main_text_unread"; \
2615 #define GENLIST_PARAM_LISTITEM_TB_WRAP \
2618 style: "genlist_style_list_main_text_unread_wrap"; \
2622 #define GENLIST_PARAM_SUBITEM_DEFAULT \
2623 color: GENLIST_LIST_SUB_TEXT_DEFAULT_COLOR; \
2627 font: "Tizen:style=Medium"; \
2628 size: GENLIST_LIST_SUB_TEXT_SIZE; \
2629 text_class: "tizen"; \
2632 #define GENLIST_PARAM_SUBITEM_SETTINGS \
2633 color: GENLIST_LIST_SUB_TEXT_SETTINGS_COLOR; \
2637 font: "Tizen:style=Medium"; \
2638 size: GENLIST_LIST_SUB_TEXT_SIZE; \
2639 text_class: "tizen"; \
2642 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2645 style: "genlist_style_list_sub_text_default"; \
2648 #define GENLIST_PARAM_SUBITEM_DEFAULT_TB_WRAP \
2651 style: "genlist_style_list_sub_text_default_wrap"; \
2654 #define GENLIST_PARAM_SUBITEM_SETTINGS_TB \
2657 style: "genlist_style_list_sub_text_settings"; \
2660 #define GENLIST_PARAM_APPS_NAME\
2661 color: GENLIST_APPS_NAME_COLOR; \
2665 font: "Tizen:style=Bold"; \
2666 size: GENLIST_APPS_NAME_SIZE; \
2667 text_class: "list_item"; \
2670 #define GENLIST_PARAM_APPS_INC\
2671 color: GENLIST_APPS_INC_COLOR; \
2675 font: "Tizen:style=Bold"; \
2676 size: GENLIST_APPS_INC_SIZE; \
2677 text_class: "list_item"; \
2680 #define GENLIST_PARAM_APPS_RATING\
2681 color: GENLIST_APPS_RATING_COLOR; \
2685 font: "Tizen:style=Bold"; \
2686 size: GENLIST_APPS_RATING_SIZE; \
2687 text_class: "list_item"; \
2690 #define GENLIST_PARAM_APPS_PRICE\
2691 color: GENLIST_APPS_PRICE_ORIGINAL_COLOR; \
2695 font: "Tizen:style=Bold"; \
2696 size: GENLIST_APPS_PRICE_SIZE; \
2697 text_class: "list_item"; \
2700 #define GENLIST_PARAM_APPS_PRICE_SALE\
2701 color: GENLIST_APPS_PRICE_SALE_COLOR; \
2705 font: "Tizen:style=Bold"; \
2706 size: GENLIST_APPS_PRICE_SIZE; \
2707 text_class: "list_item"; \
2710 #define GENLIST_PARAM_CONTENTS_TEXT \
2711 color: GENLIST_CONTENTS_TEXT_COLOR; \
2715 font: "Tizen:style=Regular"; \
2716 size: GENLIST_CONTENTS_TEXT_SIZE; \
2717 text_class: "tizen"; \
2720 /*************************** Descriptions **********************************/
2722 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2723 description { state: "disabled" 0.0; \
2724 inherit: "default" 0.0; \
2725 color: GENLIST_LIST_MAIN_TEXT_UNREAD_DIM_COLOR; \
2727 description { state: "read" 0.0; \
2728 inherit: "default" 0.0; \
2729 color: GENLIST_LIST_MAIN_TEXT_READ_COLOR; \
2731 description { state: "read,disabled" 0.0; \
2732 inherit: "default" 0.0; \
2733 color: GENLIST_LIST_MAIN_TEXT_READ_DIM_COLOR; \
2735 description { state: "selected" 0.0; \
2736 inherit: "default" 0.0; \
2737 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2740 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2741 description { state: "disabled" 0.0; \
2742 inherit: "default" 0.0; \
2743 text.style: "genlist_style_list_main_text_unread_dim"; \
2745 description { state: "read" 0.0; \
2746 inherit: "default" 0.0; \
2747 text.style: "genlist_style_list_main_text_read"; \
2749 description { state: "read,disabled" 0.0; \
2750 inherit: "default" 0.0; \
2751 text.style: "genlist_style_list_main_text_read_dim"; \
2753 description { state: "selected" 0.0; \
2754 inherit: "default" 0.0; \
2755 text.style: "genlist_style_list_main_text_focus"; \
2759 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2760 description { state: "disabled" 0.0; \
2761 inherit: "default" 0.0; \
2762 color: GENLIST_LIST_SUB_TEXT_DEFAULT_DIM_COLOR; \
2764 description { state: "selected" 0.0; \
2765 inherit: "default" 0.0; \
2766 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2769 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2770 description { state: "disabled" 0.0; \
2771 inherit: "default" 0.0; \
2772 text.style: "genlist_style_list_sub_text_default_dim"; \
2774 description { state: "selected" 0.0; \
2775 inherit: "default" 0.0; \
2776 text.style: "genlist_style_list_sub_text_focus"; \
2779 #define GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB_WRAP \
2780 description { state: "disabled" 0.0; \
2781 inherit: "default" 0.0; \
2782 text.style: "genlist_style_list_sub_text_default_dim_wrap"; \
2784 description { state: "selected" 0.0; \
2785 inherit: "default" 0.0; \
2786 text.style: "genlist_style_list_sub_text_focus_wrap"; \
2789 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
2790 description { state: "disabled" 0.0; \
2791 inherit: "default" 0.0; \
2792 color: GENLIST_LIST_SUB_TEXT_SETTINGS_DIM_COLOR; \
2794 description { state: "selected" 0.0; \
2795 inherit: "default" 0.0; \
2796 color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
2799 #define GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
2800 description { state: "disabled" 0.0; \
2801 inherit: "default" 0.0; \
2802 text.style: "genlist_style_list_sub_text_settings_dim"; \
2804 description { state: "selected" 0.0; \
2805 inherit: "default" 0.0; \
2806 text.style: "genlist_style_list_sub_text_focus"; \
2809 // list main text multiline
2810 #define GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB_WRAP \
2811 description { state: "disabled" 0.0; \
2812 inherit: "default" 0.0; \
2813 text.style: "genlist_style_list_main_text_unread_dim_wrap"; \
2815 description { state: "selected" 0.0; \
2816 inherit: "default" 0.0; \
2817 text.style: "genlist_style_list_main_text_focus_wrap"; \
2820 /*************************** Parts **********************************/
2821 #define GENLIST_PART_DIALOGUE_GROUP_HELP_TEXT(NAME, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2822 GENLIST_PART_TEXTBLOCK(NAME, \
2823 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2826 style: "genlist_style_dialogue_group_help_text"; \
2831 #define GENLIST_PART_LISTITEM(NAME, DESCRIPTION) \
2832 GENLIST_PART_TEXT(NAME, \
2834 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2837 #define GENLIST_PART_LISTITEM_TB(NAME, DESCRIPTION) \
2838 GENLIST_PART_TEXTBLOCK(NAME, \
2840 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2843 #define GENLIST_PART_LISTITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2844 GENLIST_PART_TEXT(NAME, \
2845 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2847 GENLIST_PARAM_LISTITEM \
2850 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2853 #define GENLIST_PART_LISTITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2854 GENLIST_PART_TEXTBLOCK(NAME, \
2855 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2858 GENLIST_PARAM_LISTITEM_TB \
2861 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2864 #define GENLIST_PART_LISTITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2865 GENLIST_PART_TEXT(NAME, \
2866 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2868 GENLIST_PARAM_LISTITEM \
2871 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2874 #define GENLIST_PART_LISTITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
2875 GENLIST_PART_TEXT(NAME, \
2876 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
2879 GENLIST_PARAM_LISTITEM \
2882 GENLIST_DESCRIPTION_LISTITEM_OTHERS \
2885 #define GENLIST_PART_LISTITEM_LRT_TB(NAME, HEIGHT, LEFT, RIGHT, TOP, PARAM) \
2886 GENLIST_PART_TEXTBLOCK(NAME, \
2887 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
2890 GENLIST_PARAM_LISTITEM_TB \
2893 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2896 #define GENLIST_PART_LISTITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2897 GENLIST_PART_TEXTBLOCK(NAME, \
2898 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2901 GENLIST_PARAM_LISTITEM_TB \
2904 GENLIST_DESCRIPTION_LISTITEM_OTHERS_TB \
2907 #define GENLIST_PART_SUBITEM_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM, PARAM) \
2908 GENLIST_PART_TEXT(NAME, \
2909 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2911 GENLIST_PARAM_SUBITEM_DEFAULT \
2914 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2917 #define GENLIST_PART_SUBITEM(NAME, DESCRIPTION) \
2918 GENLIST_PART_TEXT(NAME, \
2920 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2923 #define GENLIST_PART_SUBITEM_R(NAME, HEIGHT, RIGHT) \
2924 GENLIST_PART_TEXT(NAME, \
2925 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2928 GENLIST_PARAM_TEXT_LIMIT_RB \
2929 GENLIST_PARAM_SUBITEM_DEFAULT \
2931 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2934 #define GENLIST_PART_SUBITEM_RB(NAME, HEIGHT, RIGHT, BOTTOM) \
2935 GENLIST_PART_TEXT(NAME, \
2936 GENLIST_DESCRIPTION_RB(RIGHT, BOTTOM, \
2939 GENLIST_PARAM_TEXT_LIMIT_RB \
2940 GENLIST_PARAM_SUBITEM_DEFAULT \
2942 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2945 #define GENLIST_PART_SUBITEM_RB_TB(NAME, HEIGHT, RIGHT, BOTTOM) \
2946 GENLIST_PART_TEXTBLOCK(NAME, \
2947 GENLIST_DESCRIPTION_RB(RIGHT, BOTTOM, \
2949 GENLIST_PARAM_TEXT_LIMIT_RB \
2951 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2953 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2956 #define GENLIST_PART_SUBITEM_TB_(NAME, HEIGHT, LEFT, RIGHT, TOP, BOTTOM) \
2957 GENLIST_PART_TEXTBLOCK(NAME, \
2958 GENLIST_DESCRIPTION(LEFT, RIGHT, TOP, BOTTOM, \
2960 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2962 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2965 #define GENLIST_PART_SUBITEM_R_FIXED(NAME, WIDTH, HEIGHT, RIGHT) \
2966 GENLIST_PART_TEXT(NAME, \
2967 GENLIST_DESCRIPTION_RTB(RIGHT, "elm.padding.top", "elm.padding.bottom", \
2968 min: WIDTH HEIGHT; \
2970 GENLIST_PARAM_SUBITEM_DEFAULT \
2972 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2975 #define GENLIST_PART_SUBITEM_R_FIXED_TB(NAME, WIDTH, HEIGHT, RIGHT) \
2976 GENLIST_PART_TEXTBLOCK(NAME, \
2977 GENLIST_DESCRIPTION_R(RIGHT, \
2978 min: WIDTH HEIGHT; \
2980 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
2982 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
2985 #define GENLIST_PART_SUBITEM_L_FIXED(NAME, WIDTH, HEIGHT, LEFT) \
2986 GENLIST_PART_TEXT(NAME, \
2987 GENLIST_DESCRIPTION_LTB(LEFT, "elm.padding.top", "elm.padding.bottom", \
2988 min: WIDTH HEIGHT; \
2990 GENLIST_PARAM_SUBITEM_DEFAULT \
2992 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
2995 #define GENLIST_PART_SUBITEM_LR(NAME, HEIGHT, LEFT, RIGHT, PARAM) \
2996 GENLIST_PART_TEXT(NAME, \
2997 GENLIST_DESCRIPTION(LEFT, RIGHT, "elm.padding.top", "elm.padding.bottom", \
2999 GENLIST_PARAM_SUBITEM_DEFAULT \
3002 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3005 #define GENLIST_PART_SUBITEM_LR_TB(NAME, HEIGHT, LEFT, RIGHT) \
3006 GENLIST_PART_TEXTBLOCK(NAME, \
3007 GENLIST_DESCRIPTION_LR(LEFT, RIGHT, \
3009 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3011 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3014 #define GENLIST_PART_SUBITEM_LB(NAME, HEIGHT, LEFT, RIGHT) \
3015 GENLIST_PART_TEXT(NAME, \
3016 GENLIST_DESCRIPTION_LB(LEFT, BOTTOM, \
3018 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3020 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3023 #define GENLIST_PART_SUBITEM_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3024 GENLIST_PART_TEXT(NAME, \
3025 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3027 GENLIST_PARAM_SUBITEM_DEFAULT \
3030 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3033 #define GENLIST_PART_SUBITEM_SETTINGS_LRB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM, PARAM) \
3034 GENLIST_PART_TEXT(NAME, \
3035 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3037 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
3038 GENLIST_PARAM_SUBITEM_SETTINGS\
3041 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
3044 #define GENLIST_PART_SUBITEM_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3045 GENLIST_PART_TEXTBLOCK(NAME, \
3046 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3048 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3051 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3054 #define GENLIST_PART_SUBITEM_SETTINGS_LRB_TB(NAME, HEIGHT, LEFT, RIGHT, BOTTOM) \
3055 GENLIST_PART_TEXTBLOCK(NAME, \
3056 GENLIST_DESCRIPTION_LRB(LEFT, RIGHT, BOTTOM, \
3058 GENLIST_PARAM_SUBITEM_SETTINGS_TB \
3061 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS_TB \
3064 #define GENLIST_PART_SUBITEM_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
3065 GENLIST_PART_TEXT(NAME, \
3066 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
3069 GENLIST_PARAM_SUBITEM_DEFAULT \
3071 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3074 #define GENLIST_PART_SUBITEM_SETTINGS_LRT(NAME, HEIGHT, LEFT, RIGHT, TOP) \
3075 GENLIST_PART_TEXT(NAME, \
3076 GENLIST_DESCRIPTION_LRT(LEFT, RIGHT, TOP, \
3079 GENLIST_PARAM_SUBITEM_SETTINGS \
3081 GENLIST_DESCRIPTION_SUBITEM_SETTINGS_OTHERS \
3084 #define GENLIST_PART_SUBITEM_LTB(NAME, HEIGHT, LEFT, TOP, BOTTOM) \
3085 GENLIST_PART_TEXT(NAME, \
3086 GENLIST_DESCRIPTION_LTB(LEFT, TOP, BOTTOM, \
3088 fixed: 1 1; /*FIXME: why text need this, but textblock doesn't */ \
3089 GENLIST_PARAM_SUBITEM_DEFAULT \
3091 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3094 #define GENLIST_PART_SUBITEM_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3095 GENLIST_PART_TEXT(NAME, \
3096 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3098 GENLIST_PARAM_TEXT_LIMIT_RT \
3099 GENLIST_PARAM_SUBITEM_DEFAULT \
3102 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS \
3105 #define GENLIST_PART_SUBITEM_RTB_TB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3106 GENLIST_PART_TEXTBLOCK(NAME, \
3107 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3109 GENLIST_PARAM_TEXT_LIMIT_RT \
3110 GENLIST_PARAM_SUBITEM_DEFAULT_TB \
3113 GENLIST_DESCRIPTION_SUBITEM_DEFAULT_OTHERS_TB \
3116 #define GENLIST_PARAM_LIST_BUBBLE_TEXT \
3117 color: GENLIST_LIST_BUBBLE_TEXT_COLOR; \
3121 font: "Tizen:style=Bold"; \
3122 size: GENLIST_LIST_BUBBLE_TEXT_SIZE; \
3123 text_class: "tizen"; \
3126 // FIXME: Need to find why rel2.offset: 9 -1 will not fix the alignment of bubble text ?
3127 #define GENLIST_PART_LIST_BUBBLE_TEXT_RTB(NAME, HEIGHT, RIGHT, TOP, BOTTOM) \
3128 GENLIST_PART_IMAGE("elm.bubble", \
3129 GENLIST_DESCRIPTION_ENVELOP(NAME, \
3131 normal: "00_list_bubble_bg.png"; \
3134 rel1.offset: -10 0; \
3135 rel2.offset: 8 -1; \
3141 GENLIST_PART_TEXT(NAME, \
3142 GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
3144 GENLIST_PARAM_TEXT_LIMIT_RT \
3145 rel2.offset: -10 -1; /* This maintain the text alignment with bubble text. */\
3146 GENLIST_PARAM_LIST_BUBBLE_TEXT \
3151 #define GENLIST_PART_BASE__( param_item_height ) \
3152 part { name: "base"; \
3156 description { state: "default" 0.0; \
3157 min: 0 param_item_height; \
3158 color: LAYOUT_GROUP_LIST_BG_COLOR_INC; \
3162 /******************************************************************************/
3164 /******************************************************************************/
3165 // FIXME: UX do not define selected state. But I thinkt that it is neededs :(
3167 #define GENLIST_PROOGRAM_EXPAND(SRC, TARGET) \
3170 signal: "mouse,clicked,1"; \
3172 action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; \
3175 name: "go_expanded"; \
3176 signal: "elm,state,expanded"; \
3178 action: STATE_SET "active" 0.0; \
3182 name: "go_contracted"; \
3183 signal: "elm,state,contracted"; \
3185 action: STATE_SET "default" 0.0; \
3189 #define GENLIST_PART_BASE_LIST_H( HEIGHT) \
3190 part { name: "base"; \
3194 description { state: "default" 0.0; \
3197 rel2.relative: 1 0; \
3198 rel2.to: "bottom_line"; \
3202 GENLIST_PART_BOTTOM_LINE
3204 #define GENLIST_PART_DIALOGUE_ITEM \
3205 part { name: "elm.rect.dialogue"; \
3208 description { state: "default" 0.0; \
3211 color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
3212 rel2.relative: 0.0 1.0; \
3217 #define GENLIST_PART_DIALOGUE_RIGHT_LINE \
3218 part { name: "elm.rect.dialogue.right.line"; \
3221 description { state: "default" 0.0; \
3225 relative: 1.0 0.0; \
3229 color: GENLIST_LIST_LINE1_COLOR; \
3233 #define GENLIST_PROGRAM_FLIP_1TEXT \
3234 program { name: "flipped"; \
3235 signal: "elm,state,flip,enabled"; \
3237 action: STATE_SET "flipped" 0.0; \
3238 target: "elm.text"; \
3239 target: "elm.flip.content"; \
3241 program { name: "flip_disabled"; \
3242 signal: "elm,state,flip,disabled"; \
3244 action: STATE_SET "default" 0.0; \
3245 target: "elm.text"; \
3246 target: "elm.flip.content"; \
3249 #define GENLIST_PROGRAM_FLIP_2TEXT \
3250 program { name: "flipped"; \
3251 signal: "elm,state,flip,enabled"; \
3253 action: STATE_SET "flipped" 0.0; \
3254 target: "elm.text.1"; \
3255 target: "elm.text.2"; \
3256 target: "elm.flip.content"; \
3258 program { name: "flip_disabled"; \
3259 signal: "elm,state,flip,disabled"; \
3261 action: STATE_SET "default" 0.0; \
3262 target: "elm.text.1"; \
3263 target: "elm.text.2"; \
3264 target: "elm.flip.content"; \
3267 #define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
3268 program { name: "flipped"; \
3269 signal: "elm,state,flip,enabled"; \
3271 action: STATE_SET "flipped" 0.0; \
3272 target: "elm.text.1"; \
3273 target: "elm.text.2"; \
3274 target: "elm.icon"; \
3275 target: "elm.flip.content"; \
3277 program { name: "flip_disabled"; \
3278 signal: "elm,state,flip,disabled"; \
3280 action: STATE_SET "default" 0.0; \
3281 target: "elm.text.1"; \
3282 target: "elm.text.2"; \
3283 target: "elm.icon"; \
3284 target: "elm.flip.content"; \
3287 #define GENLIST_PROGRAM_FLIP_2TEXT_2ICON \
3288 program { name: "flipped"; \
3289 signal: "elm,state,flip,enabled"; \
3291 action: STATE_SET "flipped" 0.0; \
3292 target: "elm.text.1"; \
3293 target: "elm.text.2"; \
3294 target: "elm.icon.1"; \
3295 target: "elm.icon.2"; \
3296 target: "elm.flip.content"; \
3298 program { name: "flip_disabled"; \
3299 signal: "elm,state,flip,disabled"; \
3301 action: STATE_SET "default" 0.0; \
3302 target: "elm.text.1"; \
3303 target: "elm.text.2"; \
3304 target: "elm.icon.1"; \
3305 target: "elm.icon.2"; \
3306 target: "elm.flip.content"; \
3309 #define GENLIST_PROGRAM_FLIP_3TEXT_2ICON \
3310 program { name: "flipped"; \
3311 signal: "elm,state,flip,enabled"; \
3313 action: STATE_SET "flipped" 0.0; \
3314 target: "elm.text.1"; \
3315 target: "elm.text.2"; \
3316 target: "elm.text.3"; \
3317 target: "elm.icon.1"; \
3318 target: "elm.icon.2"; \
3319 target: "elm.flip.content"; \
3321 program { name: "flip_disabled"; \
3322 signal: "elm,state,flip,disabled"; \
3324 action: STATE_SET "default" 0.0; \
3325 target: "elm.text.1"; \
3326 target: "elm.text.2"; \
3327 target: "elm.text.3"; \
3328 target: "elm.icon.1"; \
3329 target: "elm.icon.2"; \
3330 target: "elm.flip.content"; \
3334 #define GENLIST_DESCRIPTION_INVISIBLE_SELECTED \
3335 description { state: "selected" 1.0; \
3336 inherit: "default" 0.0; \
3340 #define GENLIST_DESCRIPTION_FLIP_ENABLED \
3341 description { state: "flipped" 0.0; \
3342 inherit: "default" 0.0; \
3346 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT \
3350 get_state(PART:"elm.text", st, 30, vl); \
3351 set_state(PART:"bg", "selected", 0.0); \
3352 if (!strcmp(st, "flipped")) \
3353 set_state(PART:"elm.text", "selected", 1.0); \
3355 set_state(PART:"elm.text", "selected", 0.0); \
3359 /* genlist multisense macro - start */
3360 #define GENLIST_PROGRAM_AFTER_PLAY_BUTTON_PRESS \
3361 after: "play_button_press";
3363 #define GENLIST_PROGRAM_PLAY_BUTTON_PRESS \
3364 program { name: "play_button_press"; \
3365 action: PLAY_SAMPLE "button-pressed" 1.0; \