2 * Copyright 2012 Samsung Electronics Co., Ltd
\r
4 * Licensed under the Flora License, Version 1.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.tizenopensource.org/license
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
17 #define GENLIST_PART_BASE( param_item_height ) \
18 part { name: "base"; \
22 description { state: "default" 0.0; \
23 min: 0 param_item_height; \
24 color: GENLIST_PART_BG_COLOR_INC; \
28 #define GENLIST_PART_BG \
33 description { state: "default" 0.0; \
34 color: GENLIST_PART_BG_COLOR_INC; \
36 description { state: "hide" 0.0; \
37 inherit: "default" 0.0; \
38 rel1 { relative: 0.025 0.0; } \
39 rel2 { relative: 1.025 1.0; } \
41 description { state: "hide" 0.1; \
42 inherit: "default" 0.0; \
43 rel1 { relative: 0.13 0.0; } \
44 rel2 { relative: 1.13 1.0; } \
46 description { state: "hide" 0.2; \
47 inherit: "default" 0.0; \
48 rel1 { relative: 0.5 0.0; } \
49 rel2 { relative: 1.5 1.0; } \
51 description { state: "hide" 0.3; \
52 inherit: "default" 0.0; \
53 rel1 { relative: 1.0 0.0; } \
54 rel2 { relative: 2.0 1.0; } \
58 #define GENLIST_PART_BG_IMAGE \
59 part { name: "bg_image"; \
63 description { state: "default" 0.0; \
64 color: GENLIST_PART_LIST_BG_COLOR_INC; \
66 description { state: "selected" 0.0; \
67 inherit: "default" 0.0; \
68 color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
72 #define GENLIST_PART_BOTTOM_LINE \
73 part { name: "bottom_line"; \
76 description { state: "default" 0.0; \
80 color: GENLIST_PART_LIST_LINE_COLOR_INC; \
88 #define GENLIST_PART_BOTTOM_EFFECT_LINE \
89 part { name: "bottom_line"; \
92 description { state: "default" 0.0; \
96 color: GENLIST_PART_LIST_LINE_COLOR_INC; \
102 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
103 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
106 #define GENLIST_PART_PADDING_TOP( param_padding_size ) \
107 part { name: "elm.padding.top"; \
111 state: "default" 0.0; \
112 min: 0 param_padding_size; \
115 rel2.relative: 1.0 0.0; \
120 #define GENLIST_PART_PADDING_TEXT_TOP( param_padding_size ) \
121 part { name: "elm.padding.text.top"; \
125 state: "default" 0.0; \
126 min: 0 param_padding_size; \
129 rel2.relative: 1.0 0.0; \
134 #define GENLIST_PART_PADDING_BOTTOM( param_padding_size ) \
135 part { name: "elm.padding.bottom"; \
138 description { state: "default" 0.0; \
139 min: 0 param_padding_size; \
142 rel1.relative: 0.0 1.0; \
147 #define GENLIST_PART_PADDING_LEFT( param_padding_size ) \
148 part { name: "elm.padding.left"; \
151 description { state: "default" 0.0; \
152 min: param_padding_size 0; \
155 rel2.relative: 0.0 1.0; \
160 #define GENLIST_PART_PADDING_RIGHT( param_padding_size ) \
161 part { name: "elm.padding.right"; \
164 description { state: "default" 0.0; \
165 min: param_padding_size 0; \
168 rel1.relative: 1.0 0.0; \
173 #define GENLIST_PART_DIALOGUE_BASE( param_item_height ) \
174 part { name: "base"; \
176 clip_to: "disclip"; \
179 description { state: "default" 0.0; \
180 min: 0 param_item_height; \
181 color: LAYOUT_GROUP_LIST_BG_COLOR_INC; \
185 #define GENLIST_PART_DIALOGUE_ITEM \
186 part { name: "elm.rect.dialogue"; \
189 description { state: "default" 0.0; \
190 min: GENLIST_PADDING_12_INC 0; \
192 color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
193 rel2.relative: 0.0 1.0; \
198 #define GENLIST_PART_DIALOGUE_EXPANDABLE_ITEM \
199 part { name: "elm.rect.dialogue"; \
202 description { state: "default" 0.0; \
203 min: GENLIST_PADDING_12_INC 0; \
205 color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
206 rel2.relative: 0.0 1.0; \
209 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
210 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
213 #define GENLIST_PART_SWALLOW_END( param_padding_size ) \
214 part { name: "elm.padding.left.swallow.end";\
215 clip_to: "disclip"; \
218 description { state: "default" 0.0;\
219 min: param_padding_size 0;\
222 rel1.to_x: "elm.swallow.end";\
225 to_x: "elm.swallow.end";\
230 part { name: "elm.swallow.end";\
231 clip_to: "disclip"; \
234 description { state: "default" 0.0;\
237 rel1.to_x: "elm.padding.right";\
240 to_x: "elm.padding.right";\
245 #define GENLIST_PART_DISCLIP \
246 part { name: "disclip"; \
248 description { state: "default" 0.0; \
250 description { state: "disabled" 0.0; \
251 inherit: "default" 0.0; \
252 color: GENLIST_PART_DISCLIP_COLOR_INC; \
256 #define GENLIST_EXPANDABLE_PART_PERSPECTIVE_POINT() \
257 part { name: "point"; \
261 state: "default" 0.0; \
263 rel1 { relative: 0.0 0.0; } \
264 rel2 { relative: 1.0 0.0; } \
268 #define GENLIST_PART_MAP_START( param_x, param_y, param_z ) \
269 description { state: "map_transition" 0.0; \
270 inherit: "default" 0.0; \
271 color: 50 50 50 100; \
273 perspective: "point"; \
288 inherit: "default" 0.0; \
292 #define GENLIST_PART_MAP_FINISH( param_x, param_y, param_z ) \
294 state: "map_rotate" 0.0; \
295 inherit: "default" 0.0; \
297 perspective: "point"; \
311 #define GENLIST_PART_MAP_BASE( param_item_height ) \
312 part { name: "base"; \
316 description { state: "default" 0.0; \
317 min: 0 param_item_height; \
318 color: GENLIST_PART_BG_COLOR_INC; \
320 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
321 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
324 #define GENLIST_EXPANDABLE_PART_BASE( GE_HEIGHT , GE_COLOR ) \
325 part { name: "base"; \
329 description { state: "default" 0.0; \
333 description { state: "selected" 0.0; \
334 inherit: "default" 0.0; \
335 color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
337 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
338 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
341 #define GENLIST_PROGRAM_MAP_ROTATE_EXPAND_START() \
342 name: "rotaion_transition"; \
343 signal: "flip_item"; \
344 action: STATE_SET "map_transition" 0.0; \
347 #define GENLIST_PROGRAM_MAP_ROTATE_EXPAND_FINISH( second ) \
349 action: STATE_SET "map_rotate" 0.0; \
350 transition: LINEAR second; \
351 after: "rotation_end";
353 #define GENLIST_PROGRAM_MAP_EXPAND_END() \
354 name: "rotation_end"; \
355 action: STATE_SET "default" 0.0;
357 #define GENLIST_PROGRAM_MAP_ROTATE_CONTRACT_START() \
358 name: "rotation_transition2"; \
359 signal: "elm,state,contract_flip"; \
360 action: STATE_SET "map_rotate" 0.0; \
363 #define GENLIST_PROGRAM_MAP_ROTATE_CONTRACT_FINISH( second ) \
365 action: STATE_SET "map_transition" 0.0; \
366 transition: LINEAR second; \
369 #define GENLIST_PROGRAM_MAP_CONTRACT_END() \
371 action: STATE_SET "hide" 0.0;
373 #define GENLIST_PART_EXPANDABLE2_NOSHADOW_BASE( param_item_height ) \
374 part { name: "base"; \
378 description { state: "default" 0.0; \
379 min: 0 param_item_height; \
380 color: GENLIST_PART_EXPANDABLE_2ND_DEPTH_BG_COLOR_INC; \
382 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
383 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
386 #define GENLIST_PART_EXPANDABLE_SWALLOW_PADDING \
387 part { name: "elm.swallow.pad"; \
389 description { state: "default" 0.0; \
394 to_x: "elm.padding.left"; \
396 rel2.to_x: "elm.padding.left"; \
398 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
399 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
402 #define GENLIST_PART_PADDING_LEFT_SLIDE( param_padding_size ) \
403 part { name: "elm.padding.left"; \
407 state: "default" 0.0; \
408 min: param_padding_size 0; \
411 rel1 { relative: 0.0 0.0; to: "bg"; } \
412 rel2 { relative: 0.0 1.0; to: "bg"; } \
418 #define GENLIST_PART_BUTTON( param_name, param_text_name, param_text, param_left, param_right, param_top, param_bottom ) \
419 part { name: param_name; \
421 description { state: "default" 0.0; \
423 rel1 { relative: param_left param_top; offset: 0 0; } \
424 rel2 { relative: param_right param_bottom; offset: -1 -1; } \
426 normal: "btn_normal.png"; \
427 border: 10 10 10 10; \
430 image.middle: SOLID; \
433 description { state: "selected" 0.0; \
434 inherit: "default" 0.0; \
436 normal: "btn_selected.png"; \
440 part { name: param_text_name; \
446 state: "default" 0.0; \
448 rel1 { relative: 0.0 0.0; to: param_name; } \
449 rel2 { relative: 1.0 1.0; to: param_name; } \
452 font: "SLP:style=Roman"; \
456 text_class: "slp_roman"; \
462 #define GENLIST_PROGRAM_BUTTON( param_name_focused, param_name_normal, param_part_name ) \
463 program { name: param_name_focused; \
464 source: param_part_name; \
465 signal: "mouse,down,1"; \
466 action: STATE_SET "selected" 0.0; \
467 target: param_part_name; \
469 program { name: param_name_normal; \
470 source: param_part_name; \
471 signal: "mouse,up,1"; \
472 action: STATE_SET "default" 0.0; \
473 target: param_part_name; \
476 #define GENLIST_PROGRAM_SLIDE_WITH_AFTER( param_name, param_state, param_next ) \
477 program { name: param_name; \
478 action: STATE_SET "hide" param_state; \
480 transition: LINEAR 0.3; \
484 #define GENLIST_PROGRAM_SLIDE( param_name, param_state_name, param_state_value ) \
485 program { name: param_name; \
486 action: STATE_SET param_state_name param_state_value; \
488 transition: LINEAR 0.3; \
491 #define DESC_FLIP_IMAGE( param_state_value, param_image_file_name ) \
492 description { state: "flipping" param_state_value; \
493 inherit: "default" 0.0; \
494 image { normal: param_image_file_name; } \
497 #define DESC_TEXT_HIDE( param_state_value ) \
498 description { state: "hide" param_state_value; \
499 inherit: "default" 0.0; \
500 color: 0 0 0 (255*(1-param_state_value/0.20)); \
503 #define GENLIST_EDIT_PART_BASE( param_item_height ) \
504 part { name: "base"; \
508 description { state: "default" 0.0; \
509 min: 0 param_item_height; \
514 #define GENLIST_PART_FLIP \
515 part { name: "elm.flip.content"; \
516 clip_to: "disclip"; \
520 description { state: "default" 0.0; \
525 to_x: "elm.padding.left"; \
529 to_x: "elm.padding.right"; \
532 description { state: "flip_enabled" 0.0; \
533 inherit: "default" 0.0; \
538 #define GENLIST_DESCRIPTION_INVISIBLE_SELECTED \
539 description { state: "selected" 1.0; \
540 inherit: "default" 0.0; \
544 #define GENLIST_DESCRIPTION_FLIP_ENABLED \
545 description { state: "flip_enabled" 0.0; \
546 inherit: "default" 0.0; \
550 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT \
554 get_state(PART:"elm.text", st, 30, vl); \
555 set_state(PART:"bg_image", "selected", 0.0); \
556 if (!strcmp(st, "flip_enabled")) \
557 set_state(PART:"elm.text", "selected", 1.0); \
559 set_state(PART:"elm.text", "selected", 0.0); \
562 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_2TEXT \
566 get_state(PART:"elm.text.1", st, 30, vl); \
567 set_state(PART:"bg_image", "selected", 0.0); \
568 if (!strcmp(st, "flip_enabled")) { \
569 set_state(PART:"elm.text.1", "selected", 1.0); \
570 set_state(PART:"elm.text.2", "selected", 1.0); \
573 set_state(PART:"elm.text.1", "selected", 0.0); \
574 set_state(PART:"elm.text.2", "selected", 0.0); \
578 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_3TEXT \
582 get_state(PART:"elm.text.1", st, 30, vl); \
583 set_state(PART:"bg_image", "selected", 0.0); \
584 if (!strcmp(st, "flip_enabled")) { \
585 set_state(PART:"elm.text.1", "selected", 1.0); \
586 set_state(PART:"elm.text.2", "selected", 1.0); \
587 set_state(PART:"elm.text.3", "selected", 1.0); \
590 set_state(PART:"elm.text.1", "selected", 0.0); \
591 set_state(PART:"elm.text.2", "selected", 0.0); \
592 set_state(PART:"elm.text.3", "selected", 0.0); \
596 #define GENLIST_PROGRAM_FLIP_1TEXT \
597 program { name: "flip_enabled"; \
598 signal: "elm,state,flip,enabled"; \
600 action: STATE_SET "flip_enabled" 0.0; \
601 target: "elm.text"; \
602 target: "elm.flip.content"; \
604 program { name: "flip_disabled"; \
605 signal: "elm,state,flip,disabled"; \
607 action: STATE_SET "default" 0.0; \
608 target: "elm.text"; \
609 target: "elm.flip.content"; \
612 #define GENLIST_PROGRAM_FLIP_1TEXT_1ICON \
613 program { name: "flip_enabled"; \
614 signal: "elm,state,flip,enabled"; \
616 action: STATE_SET "flip_enabled" 0.0; \
617 target: "elm.text"; \
618 target: "elm.icon"; \
619 target: "elm.flip.content"; \
621 program { name: "flip_disabled"; \
622 signal: "elm,state,flip,disabled"; \
624 action: STATE_SET "default" 0.0; \
625 target: "elm.text"; \
626 target: "elm.icon"; \
627 target: "elm.flip.content"; \
630 #define GENLIST_PROGRAM_FLIP_1TEXT_2ICON \
631 program { name: "flip_enabled"; \
632 signal: "elm,state,flip,enabled"; \
634 action: STATE_SET "flip_enabled" 0.0; \
635 target: "elm.text"; \
636 target: "elm.icon.1"; \
637 target: "elm.icon.2"; \
638 target: "elm.flip.content"; \
640 program { name: "flip_disabled"; \
641 signal: "elm,state,flip,disabled"; \
643 action: STATE_SET "default" 0.0; \
644 target: "elm.text"; \
645 target: "elm.icon.1"; \
646 target: "elm.icon.2"; \
647 target: "elm.flip.content"; \
650 #define GENLIST_PROGRAM_FLIP_1TEXT_3ICON \
651 program { name: "flip_enabled"; \
652 signal: "elm,state,flip,enabled"; \
654 action: STATE_SET "flip_enabled" 0.0; \
655 target: "elm.text"; \
656 target: "elm.icon.1"; \
657 target: "elm.icon.2"; \
658 target: "elm.icon.3"; \
659 target: "elm.flip.content"; \
661 program { name: "flip_disabled"; \
662 signal: "elm,state,flip,disabled"; \
664 action: STATE_SET "default" 0.0; \
665 target: "elm.text"; \
666 target: "elm.icon.1"; \
667 target: "elm.icon.2"; \
668 target: "elm.icon.3"; \
669 target: "elm.flip.content"; \
672 #define GENLIST_PROGRAM_FLIP_2TEXT \
673 program { name: "flip_enabled"; \
674 signal: "elm,state,flip,enabled"; \
676 action: STATE_SET "flip_enabled" 0.0; \
677 target: "elm.text.1"; \
678 target: "elm.text.2"; \
679 target: "elm.flip.content"; \
681 program { name: "flip_disabled"; \
682 signal: "elm,state,flip,disabled"; \
684 action: STATE_SET "default" 0.0; \
685 target: "elm.text.1"; \
686 target: "elm.text.2"; \
687 target: "elm.flip.content"; \
690 #define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
691 program { name: "flip_enabled"; \
692 signal: "elm,state,flip,enabled"; \
694 action: STATE_SET "flip_enabled" 0.0; \
695 target: "elm.text.1"; \
696 target: "elm.text.2"; \
697 target: "elm.icon"; \
698 target: "elm.flip.content"; \
700 program { name: "flip_disabled"; \
701 signal: "elm,state,flip,disabled"; \
703 action: STATE_SET "default" 0.0; \
704 target: "elm.text.1"; \
705 target: "elm.text.2"; \
706 target: "elm.icon"; \
707 target: "elm.flip.content"; \
710 #define GENLIST_PROGRAM_FLIP_2TEXT_2ICON \
711 program { name: "flip_enabled"; \
712 signal: "elm,state,flip,enabled"; \
714 action: STATE_SET "flip_enabled" 0.0; \
715 target: "elm.text.1"; \
716 target: "elm.text.2"; \
717 target: "elm.icon.1"; \
718 target: "elm.icon.2"; \
719 target: "elm.flip.content"; \
721 program { name: "flip_disabled"; \
722 signal: "elm,state,flip,disabled"; \
724 action: STATE_SET "default" 0.0; \
725 target: "elm.text.1"; \
726 target: "elm.text.2"; \
727 target: "elm.icon.1"; \
728 target: "elm.icon.2"; \
729 target: "elm.flip.content"; \
732 #define GENLIST_PROGRAM_FLIP_2TEXT_3ICON \
733 program { name: "flip_enabled"; \
734 signal: "elm,state,flip,enabled"; \
736 action: STATE_SET "flip_enabled" 0.0; \
737 target: "elm.text.1"; \
738 target: "elm.text.2"; \
739 target: "elm.icon.1"; \
740 target: "elm.icon.2"; \
741 target: "elm.icon.3"; \
742 target: "elm.flip.content"; \
744 program { name: "flip_disabled"; \
745 signal: "elm,state,flip,disabled"; \
747 action: STATE_SET "default" 0.0; \
748 target: "elm.text.1"; \
749 target: "elm.text.2"; \
750 target: "elm.icon.1"; \
751 target: "elm.icon.2"; \
752 target: "elm.icon.3"; \
753 target: "elm.flip.content"; \
756 #define GENLIST_PROGRAM_FLIP_3TEXT \
757 program { name: "flip_enabled"; \
758 signal: "elm,state,flip,enabled"; \
760 action: STATE_SET "flip_enabled" 0.0; \
761 target: "elm.text.1"; \
762 target: "elm.text.2"; \
763 target: "elm.text.3"; \
764 target: "elm.flip.content"; \
766 program { name: "flip_disabled"; \
767 signal: "elm,state,flip,disabled"; \
769 action: STATE_SET "default" 0.0; \
770 target: "elm.text.1"; \
771 target: "elm.text.2"; \
772 target: "elm.text.3"; \
773 target: "elm.flip.content"; \
776 #define GENLIST_PROGRAM_FLIP_3TEXT_1ICON \
777 program { name: "flip_enabled"; \
778 signal: "elm,state,flip,enabled"; \
780 action: STATE_SET "flip_enabled" 0.0; \
781 target: "elm.text.1"; \
782 target: "elm.text.2"; \
783 target: "elm.text.3"; \
784 target: "elm.icon"; \
785 target: "elm.flip.content"; \
787 program { name: "flip_disabled"; \
788 signal: "elm,state,flip,disabled"; \
790 action: STATE_SET "default" 0.0; \
791 target: "elm.text.1"; \
792 target: "elm.text.2"; \
793 target: "elm.text.3"; \
794 target: "elm.icon"; \
795 target: "elm.flip.content"; \
798 #define GENLIST_PROGRAM_FLIP_3TEXT_2ICON \
799 program { name: "flip_enabled"; \
800 signal: "elm,state,flip,enabled"; \
802 action: STATE_SET "flip_enabled" 0.0; \
803 target: "elm.text.1"; \
804 target: "elm.text.2"; \
805 target: "elm.text.3"; \
806 target: "elm.icon.1"; \
807 target: "elm.icon.2"; \
808 target: "elm.flip.content"; \
810 program { name: "flip_disabled"; \
811 signal: "elm,state,flip,disabled"; \
813 action: STATE_SET "default" 0.0; \
814 target: "elm.text.1"; \
815 target: "elm.text.2"; \
816 target: "elm.text.3"; \
817 target: "elm.icon.1"; \
818 target: "elm.icon.2"; \
819 target: "elm.flip.content"; \
822 #define GENLIST_PROGRAM_FLIP_3TEXT_3ICON \
823 program { name: "flip_enabled"; \
824 signal: "elm,state,flip,enabled"; \
826 action: STATE_SET "flip_enabled" 0.0; \
827 target: "elm.text.1"; \
828 target: "elm.text.2"; \
829 target: "elm.text.3"; \
830 target: "elm.icon.1"; \
831 target: "elm.icon.2"; \
832 target: "elm.icon.3"; \
833 target: "elm.flip.content"; \
835 program { name: "flip_disabled"; \
836 signal: "elm,state,flip,disabled"; \
838 action: STATE_SET "default" 0.0; \
839 target: "elm.text.1"; \
840 target: "elm.text.2"; \
841 target: "elm.text.3"; \
842 target: "elm.icon.1"; \
843 target: "elm.icon.2"; \
844 target: "elm.icon.3"; \
845 target: "elm.flip.content"; \