Use icon size name instead of 32,64
[profile/ivi/efl-theme-tizen.git] / themes / widgets / genlist / genlist_macro.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of SAMSUNG
7  * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8  * software is owned by Samsung and you shall not disclose such Confidential
9  * Information and shall use it only in accordance with the terms of the license
10  * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11  * representations or warranties about the suitability of the software, either
12  * express or implied, including but not limited to the implied warranties of
13  * merchantability, fitness for a particular purpose, or non-infringement.
14  * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15  * of or releated to this software.
16  *
17  */
18
19 #define GENLIST_PART_BASE( param_item_height ) \
20          part { name: "base"; \
21             type: RECT; \
22             repeat_events: 1; \
23             scale: 1; \
24             description { state: "default" 0.0; \
25                min: 0 param_item_height; \
26                color: GENLIST_PART_BG_COLOR_INC; \
27             } \
28          }
29
30 #define GENLIST_PART_BG \
31          part { name: "bg"; \
32             type: RECT; \
33             clip_to: "disclip"; \
34             mouse_events: 0; \
35             description { state: "default" 0.0; \
36                color: GENLIST_PART_BG_COLOR_INC; \
37             } \
38             description { state: "hide" 0.0; \
39                inherit: "default" 0.0; \
40                rel1 { relative: 0.025 0.0; } \
41                rel2 { relative: 1.025 1.0; } \
42             } \
43             description { state: "hide" 0.1;  \
44                inherit: "default" 0.0; \
45                rel1 { relative: 0.13 0.0; } \
46                rel2 { relative: 1.13 1.0; } \
47             } \
48             description { state: "hide" 0.2; \
49                inherit: "default" 0.0; \
50                rel1 { relative: 0.5 0.0; } \
51                rel2 { relative: 1.5 1.0; } \
52             } \
53             description { state: "hide" 0.3; \
54                inherit: "default" 0.0; \
55                rel1 { relative: 1.0 0.0; } \
56                rel2 { relative: 2.0 1.0; } \
57             } \
58          }
59
60 #define GENLIST_PART_BG_IMAGE \
61          part { name: "bg_image"; \
62             type: RECT; \
63             clip_to: "disclip"; \
64             mouse_events: 0; \
65             description { state: "default" 0.0; \
66                color: GENLIST_PART_LIST_BG_COLOR_INC; \
67             } \
68             description { state: "selected" 0.0; \
69                inherit: "default" 0.0; \
70                color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
71             } \
72          }
73
74 #define GENLIST_PART_BOTTOM_LINE \
75          part { name: "bottom_line"; \
76             type: RECT; \
77             mouse_events: 0; \
78             description { state: "default" 0.0; \
79                min: 0 1; \
80                fixed: 0 1; \
81                visible: 1; \
82                color: GENLIST_PART_LIST_LINE_COLOR_INC; \
83                rel1 { \
84                   relative: 0.0 1.0; \
85                   offset: 0 -1; \
86                } \
87             } \
88          }
89
90 #define GENLIST_PART_BOTTOM_EFFECT_LINE \
91          part { name: "bottom_line"; \
92             type: RECT; \
93             mouse_events: 0; \
94             description { state: "default" 0.0; \
95                min: 0 1; \
96                fixed: 0 1; \
97                visible: 1; \
98                color: GENLIST_PART_LIST_LINE_COLOR_INC; \
99                rel1 { \
100                   relative: 0.0 1.0; \
101                   offset: 0 -1; \
102                } \
103             } \
104             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
105             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
106          }
107
108 #define GENLIST_PART_PADDING_TOP( param_padding_size ) \
109        part { name: "elm.padding.top"; \
110             type: RECT; \
111             scale: 1; \
112             description { \
113                state: "default" 0.0; \
114                min: 0 param_padding_size; \
115                fixed: 0 1; \
116                visible: 0; \
117                rel2.relative: 1.0 0.0; \
118                align: 0.0 0.0; \
119             } \
120          }
121
122 #define GENLIST_PART_PADDING_TEXT_TOP( param_padding_size ) \
123        part { name: "elm.padding.text.top"; \
124             type: RECT; \
125             scale: 1; \
126             description { \
127                state: "default" 0.0; \
128                min: 0 param_padding_size; \
129                fixed: 0 1; \
130                visible: 0; \
131                rel2.relative: 1.0 0.0; \
132                align: 0.0 0.0; \
133             } \
134          }
135
136 #define GENLIST_PART_PADDING_BOTTOM( param_padding_size ) \
137        part { name: "elm.padding.bottom"; \
138             type: RECT; \
139             scale: 1; \
140             description { state: "default" 0.0; \
141                min: 0 param_padding_size; \
142                fixed: 0 1; \
143                visible: 0; \
144                rel1.relative: 0.0 1.0; \
145                align: 0.0 1.0; \
146             } \
147          }
148
149 #define GENLIST_PART_PADDING_LEFT( param_padding_size ) \
150          part { name: "elm.padding.left"; \
151             type: RECT; \
152             scale: 1; \
153             description { state: "default" 0.0; \
154                min: param_padding_size 0; \
155                fixed: 1 0; \
156                visible: 0; \
157                rel2.relative: 0.0 1.0; \
158                align: 0.0 0.0; \
159             } \
160          }
161
162 #define GENLIST_PART_PADDING_RIGHT( param_padding_size ) \
163        part { name: "elm.padding.right"; \
164             type: RECT; \
165             scale: 1; \
166             description { state: "default" 0.0; \
167                min: param_padding_size 0; \
168                fixed: 1 0; \
169                visible: 0; \
170                rel1.relative: 1.0  0.0; \
171                align: 1.0 0.0; \
172             } \
173          }
174
175 #define GENLIST_PART_DIALOGUE_BASE( param_item_height ) \
176          part { name: "base"; \
177             type: RECT; \
178             clip_to: "disclip"; \
179             repeat_events: 1; \
180             scale: 1; \
181             description { state: "default" 0.0; \
182                min: 0 param_item_height; \
183                color: LAYOUT_GROUP_LIST_BG_COLOR_INC; \
184             } \
185          }
186
187 #define GENLIST_PART_DIALOGUE_BG_IMAGE \
188          part { name: "bg_image"; \
189             type: RECT; \
190             clip_to: "disclip"; \
191             mouse_events: 0; \
192             description { state: "default" 0.0; \
193                color: GENLIST_DIALOGUE_BG_IMAGE_COLOR_INC; \
194             } \
195             description { state: "selected" 0.0; \
196                inherit: "default" 0.0; \
197                color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
198             } \
199          }
200
201 #define GENLIST_PART_DIALOGUE_ITEM \
202          part { name: "elm.rect.dialogue"; \
203             type: RECT; \
204             scale: 1; \
205             description { state: "default" 0.0; \
206                min: GENLIST_PADDING_12_INC 0; \
207                fixed: 1 0; \
208                color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
209                rel2.relative: 0.0 1.0; \
210                align: 0.0 0.0; \
211             } \
212          }
213
214 #define GENLIST_PART_DIALOGUE_RIGHT_LINE \
215          part { name: "elm.rect.dialogue.right.line"; \
216             type: RECT; \
217             scale: 1; \
218             description { state: "default" 0.0; \
219                min: 1 0; \
220                fixed: 1 0; \
221                visible: 1; \
222                rel1.relative: 1.0  0.0; \
223                align: 1.0 0.0; \
224                color: GENLIST_PART_LIST_LINE_COLOR_INC; \
225             } \
226          }
227
228 #define GENLIST_PART_DIALOGUE_EXPANDABLE_ITEM \
229          part { name: "elm.rect.dialogue"; \
230             type: RECT; \
231             scale: 1; \
232             description { state: "default" 0.0; \
233                min: GENLIST_PADDING_12_INC 0; \
234                fixed: 1 0; \
235                color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
236                rel2.relative: 0.0 1.0; \
237                align: 0.0 0.0; \
238             } \
239             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
240             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
241          }
242
243 #define GENLIST_PART_SWALLOW_END( param_padding_size ) \
244          part { name: "elm.padding.left.swallow.end";\
245             clip_to: "disclip"; \
246             type: RECT;\
247             scale: 1;\
248             description { state: "default" 0.0;\
249                min: param_padding_size 0;\
250                fixed: 1 0;\
251                visible: 0; \
252                rel1.to_x: "elm.swallow.end";\
253                rel2 {\
254                   relative: 0.0  1.0;\
255                   to_x: "elm.swallow.end";\
256                }\
257                align: 1.0 0.5;\
258             }\
259          }\
260          part { name: "elm.swallow.end";\
261             clip_to: "disclip"; \
262             type: SWALLOW;\
263             scale: 1;\
264             description { state: "default" 0.0;\
265                fixed: 1 0;\
266                align: 1.0 0.5;\
267                rel1.to_x: "elm.padding.right";\
268                rel2 {\
269                   relative: 0.0  1.0;\
270                   to_x: "elm.padding.right";\
271                }\
272             }\
273          }
274
275 // When rotating, sometimes item size is expaned.
276 #define GENLIST_PART_DISCLIP \
277         part { name: "disclip"; \
278             type: RECT; \
279             description { state: "default" 0.0; \
280             } \
281             description { state: "disabled" 0.0; \
282                inherit: "default" 0.0; \
283                color: GENLIST_PART_DISCLIP_COLOR_INC; \
284             } \
285          }
286
287 #define GENLIST_EXPANDABLE_PART_PERSPECTIVE_POINT() \
288                 part { name: "point"; \
289                         type: RECT; \
290                         scale: 1; \
291                         description { \
292                                 state: "default" 0.0; \
293                                 color: 0 0 0 0; \
294                                 rel1 { relative: 0.0 0.0; } \
295                                 rel2 { relative: 1.0 0.0; } \
296                         } \
297                 }
298
299 #define GENLIST_PART_MAP_START( param_x, param_y, param_z ) \
300                 description { state: "map_transition" 0.0; \
301                    inherit: "default" 0.0; \
302                    color: 50 50 50 100; \
303                    map { \
304                       perspective: "point"; \
305                       on: 1; \
306                       smooth: 1; \
307                       perspective_on: 1; \
308                       backface_cull: 1; \
309                       rotation { \
310                          center: "point"; \
311                          x: param_x; \
312                          y: param_y; \
313                          z: param_z; \
314                       } \
315                   } \
316                 } \
317                 description { \
318                         state: "hide" 0.0; \
319                         inherit: "default" 0.0; \
320                         visible: 0; \
321                 }
322
323 #define GENLIST_PART_MAP_FINISH( param_x, param_y, param_z ) \
324                 description { \
325                         state: "map_rotate" 0.0; \
326                         inherit: "default" 0.0; \
327                         map { \
328                                 perspective: "point"; \
329                                 on: 1; \
330                                 smooth: 1; \
331                                 perspective_on: 1; \
332                                 backface_cull: 1; \
333                                 rotation { \
334                                         center: "point"; \
335                                         x: param_x; \
336                                         y: param_y; \
337                                         z: param_z; \
338                                 } \
339                        } \
340                } \
341
342 #define GENLIST_PART_MAP_BASE( param_item_height ) \
343          part { name: "base"; \
344             type: RECT; \
345             repeat_events: 1; \
346             scale: 1; \
347             description { state: "default" 0.0; \
348                min: 0 param_item_height; \
349                color: GENLIST_PART_BG_COLOR_INC; \
350             } \
351             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
352             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
353          }
354
355 #define GENLIST_EXPANDABLE_PART_BASE( GE_HEIGHT , GE_COLOR ) \
356          part { name: "base"; \
357             type: RECT; \
358             repeat_events: 1; \
359             scale: 1; \
360             description { state: "default" 0.0; \
361                min: 0 GE_HEIGHT; \
362                color: GE_COLOR; \
363             } \
364             description { state: "selected" 0.0; \
365                inherit: "default" 0.0; \
366                color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
367             } \
368             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
369             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
370          }
371
372 /* XXX: refactor expandable edc first.
373         and use GENLIST_EXPANDABLE_PART_BASE_NEW as GENLIST_EXPANDABLE_PART_BASE.
374 */
375 #define GENLIST_EXPANDABLE_PART_BASE_NEW( GE_HEIGHT , GE_COLOR ) \
376          part { name: "base"; \
377             type: RECT; \
378             repeat_events: 1; \
379             scale: 1; \
380             description { state: "default" 0.0; \
381                min: 0 GE_HEIGHT; \
382                color: GE_COLOR; \
383             } \
384             description { state: "selected" 0.0; \
385                inherit: "default" 0.0; \
386                color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
387             } \
388          }
389
390 #define GENLIST_PROGRAM_MAP_ROTATE_EXPAND_START() \
391                 name: "rotaion_transition"; \
392                 signal: "flip_item"; \
393                 action: STATE_SET "map_transition" 0.0; \
394                 after: "rotation";
395
396 #define GENLIST_PROGRAM_MAP_ROTATE_EXPAND_FINISH( second ) \
397                 name: "rotation"; \
398                 action: STATE_SET "map_rotate" 0.0; \
399                 transition: LINEAR second; \
400                 after: "rotation_end";
401
402 #define GENLIST_PROGRAM_MAP_EXPAND_END() \
403                 name: "rotation_end"; \
404                 action: STATE_SET "default" 0.0;
405
406 #define GENLIST_PROGRAM_MAP_ROTATE_CONTRACT_START() \
407                 name: "rotation_transition2"; \
408                 signal: "elm,state,contract_flip"; \
409                 action: STATE_SET "map_rotate" 0.0; \
410                 after: "rotation2";
411
412 #define GENLIST_PROGRAM_MAP_ROTATE_CONTRACT_FINISH( second ) \
413                 name: "rotation2"; \
414                 action: STATE_SET "map_transition" 0.0; \
415                 transition: LINEAR second; \
416                 after: "rotation3";
417
418 #define GENLIST_PROGRAM_MAP_CONTRACT_END() \
419                 name: "rotation3"; \
420                 action: STATE_SET "hide" 0.0;
421
422 #define GENLIST_PART_EXPANDABLE2_NOSHADOW_BASE( param_item_height ) \
423          part { name: "base"; \
424             type: RECT; \
425             repeat_events: 1; \
426             scale: 1; \
427             description { state: "default" 0.0; \
428                min: 0 param_item_height; \
429                color: GENLIST_PART_EXPANDABLE_2ND_DEPTH_BG_COLOR_INC; \
430             } \
431             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
432             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
433          }
434
435 #define GENLIST_PART_EXPANDABLE_SWALLOW_PADDING \
436          part { name: "elm.swallow.pad"; \
437             type: SWALLOW; \
438             description { state: "default" 0.0; \
439                fixed: 1 0; \
440                align: 0.0 0.5; \
441                rel1 { \
442                   relative: 1.0 0.0;\
443                   to_x: "elm.padding.left"; \
444                } \
445                rel2.to_x: "elm.padding.left"; \
446             } \
447             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
448             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
449          } \
450
451 #define GENLIST_PART_PADDING_LEFT_SLIDE( param_padding_size ) \
452          part { name: "elm.padding.left"; \
453             type: RECT; \
454             scale: 1; \
455             description { \
456                state: "default" 0.0; \
457                min: param_padding_size 0; \
458                fixed: 1 0; \
459                visible: 0; \
460                rel1 { relative: 0.0 0.0; to: "bg"; } \
461                rel2 { relative: 0.0 1.0; to: "bg"; } \
462                align: 0.0 0.0; \
463             } \
464          }
465
466 /* only for demo */
467 #define GENLIST_PART_BUTTON( param_name, param_text_name, param_text, param_left, param_right, param_top, param_bottom ) \
468        part { name: param_name; \
469          mouse_events: 1; \
470          description { state: "default" 0.0; \
471             visible: 1; \
472             rel1 { relative: param_left param_top; offset: 0 0; } \
473             rel2 { relative: param_right param_bottom; offset: -1 -1; } \
474             image { \
475                normal: "btn_normal.png"; \
476                border: 10 10 10 10; \
477                border_scale: 1; \
478             } \
479             image.middle: SOLID; \
480             fill.smooth: 0; \
481          } \
482          description { state: "selected" 0.0;  \
483             inherit: "default" 0.0;  \
484             image { \
485                normal: "btn_selected.png"; \
486             } \
487          } \
488       } \
489       part { name: param_text_name;  \
490          type: TEXT;  \
491          mouse_events: 0; \
492          scale: 1; \
493          description {  \
494             align: 0.0 0.0; \
495             state: "default" 0.0;  \
496             color: 0 0 0 255;  \
497             rel1 { relative: 0.0 0.0; to: param_name; } \
498             rel2 { relative: 1.0 1.0; to: param_name; } \
499             text {  \
500                text: param_text; \
501                font: "SLP:style=Roman"; \
502                size: 24;  \
503                min: 1 1;  \
504                align: 0.5 0.5;  \
505                text_class: "list_item"; \
506             }  \
507          }  \
508       }
509
510 /* only for demo */
511 #define GENLIST_PROGRAM_BUTTON( param_name_focused, param_name_normal, param_part_name ) \
512       program { name: param_name_focused; \
513          source: param_part_name; \
514          signal: "mouse,down,1"; \
515          action:  STATE_SET "selected" 0.0;  \
516          target: param_part_name; \
517       } \
518       program { name: param_name_normal; \
519          source: param_part_name; \
520          signal: "mouse,up,1"; \
521          action:  STATE_SET "default" 0.0;  \
522          target: param_part_name; \
523       }
524
525 #define GENLIST_PROGRAM_SLIDE_WITH_AFTER( param_name, param_state, param_next ) \
526       program { name: param_name; \
527          action:  STATE_SET "hide" param_state; \
528          target: "bg"; \
529          transition: LINEAR 0.3; \
530          after: param_next; \
531       }
532
533 #define GENLIST_PROGRAM_SLIDE( param_name, param_state_name, param_state_value ) \
534       program { name: param_name; \
535          action:  STATE_SET param_state_name param_state_value; \
536          target: "bg"; \
537          transition: LINEAR 0.3; \
538       }
539
540 #define DESC_FLIP_IMAGE( param_state_value, param_image_file_name ) \
541       description { state: "flipping" param_state_value; \
542          inherit: "default" 0.0; \
543          image { normal: param_image_file_name; } \
544       }
545
546 #define DESC_TEXT_HIDE( param_state_value ) \
547    description { state: "hide" param_state_value; \
548       inherit: "default" 0.0; \
549       color: 0 0 0 (255*(1-param_state_value/0.20)); \
550    }
551
552 #define GENLIST_EDIT_PART_BASE( param_item_height ) \
553          part { name: "base"; \
554             type: RECT; \
555             repeat_events: 0; \
556             scale: 1; \
557             description { state: "default" 0.0; \
558                min: 0 param_item_height; \
559                color: 0 0 0 0; \
560             } \
561          }
562
563 #define GENLIST_PART_FLIP \
564          part { name: "elm.flip.content"; \
565             clip_to: "disclip"; \
566             type: SWALLOW; \
567             mouse_events: 1; \
568             scale: 1; \
569             description { state: "default" 0.0; \
570                visible: 0; \
571                fixed: 1 1; \
572                rel1 { \
573                   relative: 1.0  0.5; \
574                   to_x: "elm.padding.left"; \
575                } \
576                rel2 { \
577                   relative: 0.0  0.5; \
578                   to_x: "elm.padding.right"; \
579                } \
580             } \
581             description { state: "flip_enabled" 0.0; \
582                inherit: "default" 0.0; \
583                visible: 1; \
584             } \
585          }
586
587 #define GENLIST_DESCRIPTION_INVISIBLE_SELECTED \
588             description { state: "selected" 1.0; \
589                inherit: "default" 0.0; \
590                visible: 0; \
591             }
592
593 #define GENLIST_DESCRIPTION_FLIP_ENABLED \
594             description { state: "flip_enabled" 0.0; \
595                inherit: "default" 0.0; \
596                visible: 0; \
597             }
598
599 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT \
600             script { \
601                new st[31]; \
602                new Float:vl; \
603                get_state(PART:"elm.text", st, 30, vl); \
604                set_state(PART:"bg_image", "selected", 0.0); \
605                if (!strcmp(st, "flip_enabled")) \
606                   set_state(PART:"elm.text", "selected", 1.0); \
607                else \
608                   set_state(PART:"elm.text", "selected", 0.0); \
609             }
610
611 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_2TEXT \
612             script { \
613                new st[31]; \
614                new Float:vl; \
615                get_state(PART:"elm.text.1", st, 30, vl); \
616                set_state(PART:"bg_image", "selected", 0.0); \
617                if (!strcmp(st, "flip_enabled")) { \
618                   set_state(PART:"elm.text.1", "selected", 1.0); \
619                   set_state(PART:"elm.text.2", "selected", 1.0); \
620                } \
621                else { \
622                   set_state(PART:"elm.text.1", "selected", 0.0); \
623                   set_state(PART:"elm.text.2", "selected", 0.0); \
624                } \
625             }
626
627 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_3TEXT \
628             script { \
629                new st[31]; \
630                new Float:vl; \
631                get_state(PART:"elm.text.1", st, 30, vl); \
632                set_state(PART:"bg_image", "selected", 0.0); \
633                if (!strcmp(st, "flip_enabled")) { \
634                   set_state(PART:"elm.text.1", "selected", 1.0); \
635                   set_state(PART:"elm.text.2", "selected", 1.0); \
636                   set_state(PART:"elm.text.3", "selected", 1.0); \
637                } \
638                else { \
639                   set_state(PART:"elm.text.1", "selected", 0.0); \
640                   set_state(PART:"elm.text.2", "selected", 0.0); \
641                   set_state(PART:"elm.text.3", "selected", 0.0); \
642                } \
643             }
644
645 #define GENLIST_PROGRAM_FLIP_1TEXT \
646          program { name: "flip_enabled"; \
647             signal: "elm,state,flip,enabled"; \
648             source: "elm"; \
649             action: STATE_SET "flip_enabled" 0.0; \
650             target: "elm.text"; \
651             target: "elm.flip.content"; \
652          } \
653          program { name: "flip_disabled"; \
654             signal: "elm,state,flip,disabled"; \
655             source: "elm"; \
656             action: STATE_SET "default" 0.0; \
657             target: "elm.text"; \
658             target: "elm.flip.content"; \
659          }
660
661 #define GENLIST_PROGRAM_FLIP_1TEXT_1ICON \
662          program { name: "flip_enabled"; \
663             signal: "elm,state,flip,enabled"; \
664             source: "elm"; \
665             action: STATE_SET "flip_enabled" 0.0; \
666             target: "elm.text"; \
667             target: "elm.icon"; \
668             target: "elm.flip.content"; \
669          } \
670          program { name: "flip_disabled"; \
671             signal: "elm,state,flip,disabled"; \
672             source: "elm"; \
673             action: STATE_SET "default" 0.0; \
674             target: "elm.text"; \
675             target: "elm.icon"; \
676             target: "elm.flip.content"; \
677          }
678
679 #define GENLIST_PROGRAM_FLIP_1TEXT_2ICON \
680          program { name: "flip_enabled"; \
681             signal: "elm,state,flip,enabled"; \
682             source: "elm"; \
683             action: STATE_SET "flip_enabled" 0.0; \
684             target: "elm.text"; \
685             target: "elm.icon.1"; \
686             target: "elm.icon.2"; \
687             target: "elm.flip.content"; \
688          } \
689          program { name: "flip_disabled"; \
690             signal: "elm,state,flip,disabled"; \
691             source: "elm"; \
692             action: STATE_SET "default" 0.0; \
693             target: "elm.text"; \
694             target: "elm.icon.1"; \
695             target: "elm.icon.2"; \
696             target: "elm.flip.content"; \
697          }
698
699 #define GENLIST_PROGRAM_FLIP_1TEXT_3ICON \
700          program { name: "flip_enabled"; \
701             signal: "elm,state,flip,enabled"; \
702             source: "elm"; \
703             action: STATE_SET "flip_enabled" 0.0; \
704             target: "elm.text"; \
705             target: "elm.icon.1"; \
706             target: "elm.icon.2"; \
707             target: "elm.icon.3"; \
708             target: "elm.flip.content"; \
709          } \
710          program { name: "flip_disabled"; \
711             signal: "elm,state,flip,disabled"; \
712             source: "elm"; \
713             action: STATE_SET "default" 0.0; \
714             target: "elm.text"; \
715             target: "elm.icon.1"; \
716             target: "elm.icon.2"; \
717             target: "elm.icon.3"; \
718             target: "elm.flip.content"; \
719          }
720
721 #define GENLIST_PROGRAM_FLIP_2TEXT \
722          program { name: "flip_enabled"; \
723             signal: "elm,state,flip,enabled"; \
724             source: "elm"; \
725             action: STATE_SET "flip_enabled" 0.0; \
726             target: "elm.text.1"; \
727             target: "elm.text.2"; \
728             target: "elm.flip.content"; \
729          } \
730          program { name: "flip_disabled"; \
731             signal: "elm,state,flip,disabled"; \
732             source: "elm"; \
733             action: STATE_SET "default" 0.0; \
734             target: "elm.text.1"; \
735             target: "elm.text.2"; \
736             target: "elm.flip.content"; \
737          }
738
739 #define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
740          program { name: "flip_enabled"; \
741             signal: "elm,state,flip,enabled"; \
742             source: "elm"; \
743             action: STATE_SET "flip_enabled" 0.0; \
744             target: "elm.text.1"; \
745             target: "elm.text.2"; \
746             target: "elm.icon"; \
747             target: "elm.flip.content"; \
748          } \
749          program { name: "flip_disabled"; \
750             signal: "elm,state,flip,disabled"; \
751             source: "elm"; \
752             action: STATE_SET "default" 0.0; \
753             target: "elm.text.1"; \
754             target: "elm.text.2"; \
755             target: "elm.icon"; \
756             target: "elm.flip.content"; \
757          }
758
759 #define GENLIST_PROGRAM_FLIP_2TEXT_2ICON \
760          program { name: "flip_enabled"; \
761             signal: "elm,state,flip,enabled"; \
762             source: "elm"; \
763             action: STATE_SET "flip_enabled" 0.0; \
764             target: "elm.text.1"; \
765             target: "elm.text.2"; \
766             target: "elm.icon.1"; \
767             target: "elm.icon.2"; \
768             target: "elm.flip.content"; \
769          } \
770          program { name: "flip_disabled"; \
771             signal: "elm,state,flip,disabled"; \
772             source: "elm"; \
773             action: STATE_SET "default" 0.0; \
774              target: "elm.text.1"; \
775             target: "elm.text.2"; \
776             target: "elm.icon.1"; \
777             target: "elm.icon.2"; \
778             target: "elm.flip.content"; \
779          }
780
781 #define GENLIST_PROGRAM_FLIP_2TEXT_3ICON \
782          program { name: "flip_enabled"; \
783             signal: "elm,state,flip,enabled"; \
784             source: "elm"; \
785             action: STATE_SET "flip_enabled" 0.0; \
786             target: "elm.text.1"; \
787             target: "elm.text.2"; \
788             target: "elm.icon.1"; \
789             target: "elm.icon.2"; \
790             target: "elm.icon.3"; \
791             target: "elm.flip.content"; \
792          } \
793          program { name: "flip_disabled"; \
794             signal: "elm,state,flip,disabled"; \
795             source: "elm"; \
796             action: STATE_SET "default" 0.0; \
797             target: "elm.text.1"; \
798             target: "elm.text.2"; \
799             target: "elm.icon.1"; \
800             target: "elm.icon.2"; \
801             target: "elm.icon.3"; \
802             target: "elm.flip.content"; \
803          }
804
805 #define GENLIST_PROGRAM_FLIP_3TEXT \
806          program { name: "flip_enabled"; \
807             signal: "elm,state,flip,enabled"; \
808             source: "elm"; \
809             action: STATE_SET "flip_enabled" 0.0; \
810             target: "elm.text.1"; \
811             target: "elm.text.2"; \
812             target: "elm.text.3"; \
813             target: "elm.flip.content"; \
814          } \
815          program { name: "flip_disabled"; \
816             signal: "elm,state,flip,disabled"; \
817             source: "elm"; \
818             action: STATE_SET "default" 0.0; \
819             target: "elm.text.1"; \
820             target: "elm.text.2"; \
821             target: "elm.text.3"; \
822             target: "elm.flip.content"; \
823          }
824
825 #define GENLIST_PROGRAM_FLIP_3TEXT_1ICON \
826          program { name: "flip_enabled"; \
827             signal: "elm,state,flip,enabled"; \
828             source: "elm"; \
829             action: STATE_SET "flip_enabled" 0.0; \
830             target: "elm.text.1"; \
831             target: "elm.text.2"; \
832             target: "elm.text.3"; \
833             target: "elm.icon"; \
834             target: "elm.flip.content"; \
835          } \
836          program { name: "flip_disabled"; \
837             signal: "elm,state,flip,disabled"; \
838             source: "elm"; \
839             action: STATE_SET "default" 0.0; \
840             target: "elm.text.1"; \
841             target: "elm.text.2"; \
842             target: "elm.text.3"; \
843             target: "elm.icon"; \
844             target: "elm.flip.content"; \
845          }
846
847 #define GENLIST_PROGRAM_FLIP_3TEXT_2ICON \
848          program { name: "flip_enabled"; \
849             signal: "elm,state,flip,enabled"; \
850             source: "elm"; \
851             action: STATE_SET "flip_enabled" 0.0; \
852             target: "elm.text.1"; \
853             target: "elm.text.2"; \
854             target: "elm.text.3"; \
855             target: "elm.icon.1"; \
856             target: "elm.icon.2"; \
857             target: "elm.flip.content"; \
858          } \
859          program { name: "flip_disabled"; \
860             signal: "elm,state,flip,disabled"; \
861             source: "elm"; \
862             action: STATE_SET "default" 0.0; \
863             target: "elm.text.1"; \
864             target: "elm.text.2"; \
865             target: "elm.text.3"; \
866             target: "elm.icon.1"; \
867             target: "elm.icon.2"; \
868             target: "elm.flip.content"; \
869          }
870
871 #define GENLIST_PROGRAM_FLIP_3TEXT_3ICON \
872          program { name: "flip_enabled"; \
873             signal: "elm,state,flip,enabled"; \
874             source: "elm"; \
875             action: STATE_SET "flip_enabled" 0.0; \
876             target: "elm.text.1"; \
877             target: "elm.text.2"; \
878             target: "elm.text.3"; \
879             target: "elm.icon.1"; \
880             target: "elm.icon.2"; \
881             target: "elm.icon.3"; \
882             target: "elm.flip.content"; \
883          } \
884          program { name: "flip_disabled"; \
885             signal: "elm,state,flip,disabled"; \
886             source: "elm"; \
887             action: STATE_SET "default" 0.0; \
888             target: "elm.text.1"; \
889             target: "elm.text.2"; \
890             target: "elm.text.3"; \
891             target: "elm.icon.1"; \
892             target: "elm.icon.2"; \
893             target: "elm.icon.3"; \
894             target: "elm.flip.content"; \
895          }
896
897 /* genlist multisense macro - start */
898 #define GENLIST_PROGRAM_AFTER_PLAY_BUTTON_PRESS \
899             after: "play_button_press";
900
901 #define GENLIST_PROGRAM_PLAY_BUTTON_PRESS \
902          program { name: "play_button_press"; \
903             action: PLAY_SAMPLE "button-pressed" 1.0; \
904          }
905
906
907
908 /* genlist multisense macro - end */