[genlist] add elm.flip.icon part
[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_ITEM \
188          part { name: "elm.rect.dialogue"; \
189             type: RECT; \
190             scale: 1; \
191             description { state: "default" 0.0; \
192                min: GENLIST_PADDING_12_INC 0; \
193                fixed: 1 0; \
194                color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
195                rel2.relative: 0.0 1.0; \
196                align: 0.0 0.0; \
197             } \
198          }
199
200 #define GENLIST_PART_DIALOGUE_EXPANDABLE_ITEM \
201          part { name: "elm.rect.dialogue"; \
202             type: RECT; \
203             scale: 1; \
204             description { state: "default" 0.0; \
205                min: GENLIST_PADDING_12_INC 0; \
206                fixed: 1 0; \
207                color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
208                rel2.relative: 0.0 1.0; \
209                align: 0.0 0.0; \
210             } \
211             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
212             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
213          }
214
215 #define GENLIST_PART_SWALLOW_END( param_padding_size ) \
216          part { name: "elm.padding.left.swallow.end";\
217             clip_to: "disclip"; \
218             type: RECT;\
219             scale: 1;\
220             description { state: "default" 0.0;\
221                min: param_padding_size 0;\
222                fixed: 1 0;\
223                visible: 0; \
224                rel1.to_x: "elm.swallow.end";\
225                rel2 {\
226                   relative: 0.0  1.0;\
227                   to_x: "elm.swallow.end";\
228                }\
229                align: 1.0 0.5;\
230             }\
231          }\
232          part { name: "elm.swallow.end";\
233             clip_to: "disclip"; \
234             type: SWALLOW;\
235             scale: 1;\
236             description { state: "default" 0.0;\
237                fixed: 1 0;\
238                align: 1.0 0.5;\
239                rel1.to_x: "elm.padding.right";\
240                rel2 {\
241                   relative: 0.0  1.0;\
242                   to_x: "elm.padding.right";\
243                }\
244             }\
245          }
246
247 #define GENLIST_PART_DISCLIP \
248         part { name: "disclip"; \
249             type: RECT; \
250             description { state: "default" 0.0; \
251             } \
252             description { state: "disabled" 0.0; \
253                inherit: "default" 0.0; \
254                color: GENLIST_PART_DISCLIP_COLOR_INC; \
255             } \
256          }
257
258 #define GENLIST_EXPANDABLE_PART_PERSPECTIVE_POINT() \
259                 part { name: "point"; \
260                         type: RECT; \
261                         scale: 1; \
262                         description { \
263                                 state: "default" 0.0; \
264                                 color: 0 0 0 0; \
265                                 rel1 { relative: 0.0 0.0; } \
266                                 rel2 { relative: 1.0 0.0; } \
267                         } \
268                 }
269
270 #define GENLIST_PART_MAP_START( param_x, param_y, param_z ) \
271                 description { state: "map_transition" 0.0; \
272                    inherit: "default" 0.0; \
273                    color: 50 50 50 100; \
274                    map { \
275                       perspective: "point"; \
276                       on: 1; \
277                       smooth: 1; \
278                       perspective_on: 1; \
279                       backface_cull: 1; \
280                       rotation { \
281                          center: "point"; \
282                          x: param_x; \
283                          y: param_y; \
284                          z: param_z; \
285                       } \
286                   } \
287                 } \
288                 description { \
289                         state: "hide" 0.0; \
290                         inherit: "default" 0.0; \
291                         visible: 0; \
292                 }
293
294 #define GENLIST_PART_MAP_FINISH( param_x, param_y, param_z ) \
295                 description { \
296                         state: "map_rotate" 0.0; \
297                         inherit: "default" 0.0; \
298                         map { \
299                                 perspective: "point"; \
300                                 on: 1; \
301                                 smooth: 1; \
302                                 perspective_on: 1; \
303                                 backface_cull: 1; \
304                                 rotation { \
305                                         center: "point"; \
306                                         x: param_x; \
307                                         y: param_y; \
308                                         z: param_z; \
309                                 } \
310                        } \
311                } \
312
313 #define GENLIST_PART_MAP_BASE( param_item_height ) \
314          part { name: "base"; \
315             type: RECT; \
316             repeat_events: 1; \
317             scale: 1; \
318             description { state: "default" 0.0; \
319                min: 0 param_item_height; \
320                color: GENLIST_PART_BG_COLOR_INC; \
321             } \
322             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
323             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
324          }
325
326 #define GENLIST_EXPANDABLE_PART_BASE( GE_HEIGHT , GE_COLOR ) \
327          part { name: "base"; \
328             type: RECT; \
329             repeat_events: 1; \
330             scale: 1; \
331             description { state: "default" 0.0; \
332                min: 0 GE_HEIGHT; \
333                color: GE_COLOR; \
334             } \
335             description { state: "selected" 0.0; \
336                inherit: "default" 0.0; \
337                color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
338             } \
339             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
340             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
341          }
342
343 /* XXX: refactor expandable edc first.
344         and use GENLIST_EXPANDABLE_PART_BASE_NEW as GENLIST_EXPANDABLE_PART_BASE.
345 */
346 #define GENLIST_EXPANDABLE_PART_BASE_NEW( GE_HEIGHT , GE_COLOR ) \
347          part { name: "base"; \
348             type: RECT; \
349             repeat_events: 1; \
350             scale: 1; \
351             description { state: "default" 0.0; \
352                min: 0 GE_HEIGHT; \
353                color: GE_COLOR; \
354             } \
355             description { state: "selected" 0.0; \
356                inherit: "default" 0.0; \
357                color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
358             } \
359          }
360
361 #define GENLIST_PROGRAM_MAP_ROTATE_EXPAND_START() \
362                 name: "rotaion_transition"; \
363                 signal: "flip_item"; \
364                 action: STATE_SET "map_transition" 0.0; \
365                 after: "rotation";
366
367 #define GENLIST_PROGRAM_MAP_ROTATE_EXPAND_FINISH( second ) \
368                 name: "rotation"; \
369                 action: STATE_SET "map_rotate" 0.0; \
370                 transition: LINEAR second; \
371                 after: "rotation_end";
372
373 #define GENLIST_PROGRAM_MAP_EXPAND_END() \
374                 name: "rotation_end"; \
375                 action: STATE_SET "default" 0.0;
376
377 #define GENLIST_PROGRAM_MAP_ROTATE_CONTRACT_START() \
378                 name: "rotation_transition2"; \
379                 signal: "elm,state,contract_flip"; \
380                 action: STATE_SET "map_rotate" 0.0; \
381                 after: "rotation2";
382
383 #define GENLIST_PROGRAM_MAP_ROTATE_CONTRACT_FINISH( second ) \
384                 name: "rotation2"; \
385                 action: STATE_SET "map_transition" 0.0; \
386                 transition: LINEAR second; \
387                 after: "rotation3";
388
389 #define GENLIST_PROGRAM_MAP_CONTRACT_END() \
390                 name: "rotation3"; \
391                 action: STATE_SET "hide" 0.0;
392
393 #define GENLIST_PART_EXPANDABLE2_NOSHADOW_BASE( param_item_height ) \
394          part { name: "base"; \
395             type: RECT; \
396             repeat_events: 1; \
397             scale: 1; \
398             description { state: "default" 0.0; \
399                min: 0 param_item_height; \
400                color: GENLIST_PART_EXPANDABLE_2ND_DEPTH_BG_COLOR_INC; \
401             } \
402             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
403             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
404          }
405
406 #define GENLIST_PART_EXPANDABLE_SWALLOW_PADDING \
407          part { name: "elm.swallow.pad"; \
408             type: SWALLOW; \
409             description { state: "default" 0.0; \
410                fixed: 1 0; \
411                align: 0.0 0.5; \
412                rel1 { \
413                   relative: 1.0 0.0;\
414                   to_x: "elm.padding.left"; \
415                } \
416                rel2.to_x: "elm.padding.left"; \
417             } \
418             GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
419             GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
420          } \
421
422 #define GENLIST_PART_PADDING_LEFT_SLIDE( param_padding_size ) \
423          part { name: "elm.padding.left"; \
424             type: RECT; \
425             scale: 1; \
426             description { \
427                state: "default" 0.0; \
428                min: param_padding_size 0; \
429                fixed: 1 0; \
430                visible: 0; \
431                rel1 { relative: 0.0 0.0; to: "bg"; } \
432                rel2 { relative: 0.0 1.0; to: "bg"; } \
433                align: 0.0 0.0; \
434             } \
435          }
436
437 /* only for demo */
438 #define GENLIST_PART_BUTTON( param_name, param_text_name, param_text, param_left, param_right, param_top, param_bottom ) \
439        part { name: param_name; \
440          mouse_events: 1; \
441          description { state: "default" 0.0; \
442             visible: 1; \
443             rel1 { relative: param_left param_top; offset: 0 0; } \
444             rel2 { relative: param_right param_bottom; offset: -1 -1; } \
445             image { \
446                normal: "btn_normal.png"; \
447                border: 10 10 10 10; \
448                border_scale: 1; \
449             } \
450             image.middle: SOLID; \
451             fill.smooth: 0; \
452          } \
453          description { state: "selected" 0.0;  \
454             inherit: "default" 0.0;  \
455             image { \
456                normal: "btn_selected.png"; \
457             } \
458          } \
459       } \
460       part { name: param_text_name;  \
461          type: TEXT;  \
462          mouse_events: 0; \
463          scale: 1; \
464          description {  \
465             align: 0.0 0.0; \
466             state: "default" 0.0;  \
467             color: 0 0 0 255;  \
468             rel1 { relative: 0.0 0.0; to: param_name; } \
469             rel2 { relative: 1.0 1.0; to: param_name; } \
470             text {  \
471                text: param_text; \
472                font: "SLP:style=Roman"; \
473                size: 24;  \
474                min: 1 1;  \
475                align: 0.5 0.5;  \
476                text_class: "list_item"; \
477             }  \
478          }  \
479       }
480
481 /* only for demo */
482 #define GENLIST_PROGRAM_BUTTON( param_name_focused, param_name_normal, param_part_name ) \
483       program { name: param_name_focused; \
484          source: param_part_name; \
485          signal: "mouse,down,1"; \
486          action:  STATE_SET "selected" 0.0;  \
487          target: param_part_name; \
488       } \
489       program { name: param_name_normal; \
490          source: param_part_name; \
491          signal: "mouse,up,1"; \
492          action:  STATE_SET "default" 0.0;  \
493          target: param_part_name; \
494       }
495
496 #define GENLIST_PROGRAM_SLIDE_WITH_AFTER( param_name, param_state, param_next ) \
497       program { name: param_name; \
498          action:  STATE_SET "hide" param_state; \
499          target: "bg"; \
500          transition: LINEAR 0.3; \
501          after: param_next; \
502       }
503
504 #define GENLIST_PROGRAM_SLIDE( param_name, param_state_name, param_state_value ) \
505       program { name: param_name; \
506          action:  STATE_SET param_state_name param_state_value; \
507          target: "bg"; \
508          transition: LINEAR 0.3; \
509       }
510
511 #define DESC_FLIP_IMAGE( param_state_value, param_image_file_name ) \
512       description { state: "flipping" param_state_value; \
513          inherit: "default" 0.0; \
514          image { normal: param_image_file_name; } \
515       }
516
517 #define DESC_TEXT_HIDE( param_state_value ) \
518    description { state: "hide" param_state_value; \
519       inherit: "default" 0.0; \
520       color: 0 0 0 (255*(1-param_state_value/0.20)); \
521    }
522
523 #define GENLIST_EDIT_PART_BASE( param_item_height ) \
524          part { name: "base"; \
525             type: RECT; \
526             repeat_events: 0; \
527             scale: 1; \
528             description { state: "default" 0.0; \
529                min: 0 param_item_height; \
530                color: 0 0 0 0; \
531             } \
532          }
533
534 #define GENLIST_PART_FLIP \
535          part { name: "elm.flip.icon"; \
536             clip_to: "disclip"; \
537             type: SWALLOW; \
538             scale: 1; \
539             description { state: "default" 0.0; \
540                visible: 0; \
541                fixed: 1 1; \
542                align: 1 0; \
543                min: 80 0; \
544                rel1 { \
545                   relative: 0.0  0.0; \
546                   to_x: "elm.padding.right"; \
547                } \
548                rel2 { \
549                   relative: 0.0  1.0; \
550                   to_x: "elm.padding.right"; \
551                } \
552             } \
553             description { state: "flip_enabled" 0.0; \
554                inherit: "default" 0.0; \
555                visible: 1; \
556             } \
557          } \
558          part { name: "elm.flip.content"; \
559             clip_to: "disclip"; \
560             type: SWALLOW; \
561             scale: 1; \
562             description { state: "default" 0.0; \
563                visible: 0; \
564                fixed: 1 1; \
565                rel1 { \
566                   relative: 1.0  0.5; \
567                   to_x: "elm.padding.left"; \
568                } \
569                rel2 { \
570                   relative: 0.0  0.5; \
571                   to_x: "elm.flip.icon"; \
572                } \
573             } \
574             description { state: "flip_enabled" 0.0; \
575                inherit: "default" 0.0; \
576                visible: 1; \
577             } \
578          }
579
580 #define GENLIST_DESCRIPTION_INVISIBLE_SELECTED \
581             description { state: "selected" 1.0; \
582                inherit: "default" 0.0; \
583                visible: 0; \
584             }
585
586 #define GENLIST_DESCRIPTION_FLIP_ENABLED \
587             description { state: "flip_enabled" 0.0; \
588                inherit: "default" 0.0; \
589                visible: 0; \
590             }
591
592 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT \
593             script { \
594                new st[31]; \
595                new Float:vl; \
596                get_state(PART:"elm.text", st, 30, vl); \
597                set_state(PART:"bg_image", "selected", 0.0); \
598                if (!strcmp(st, "flip_enabled")) \
599                   set_state(PART:"elm.text", "selected", 1.0); \
600                else \
601                   set_state(PART:"elm.text", "selected", 0.0); \
602             }
603
604 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_2TEXT \
605             script { \
606                new st[31]; \
607                new Float:vl; \
608                get_state(PART:"elm.text.1", st, 30, vl); \
609                set_state(PART:"bg_image", "selected", 0.0); \
610                if (!strcmp(st, "flip_enabled")) { \
611                   set_state(PART:"elm.text.1", "selected", 1.0); \
612                   set_state(PART:"elm.text.2", "selected", 1.0); \
613                } \
614                else { \
615                   set_state(PART:"elm.text.1", "selected", 0.0); \
616                   set_state(PART:"elm.text.2", "selected", 0.0); \
617                } \
618             }
619
620 #define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_3TEXT \
621             script { \
622                new st[31]; \
623                new Float:vl; \
624                get_state(PART:"elm.text.1", st, 30, vl); \
625                set_state(PART:"bg_image", "selected", 0.0); \
626                if (!strcmp(st, "flip_enabled")) { \
627                   set_state(PART:"elm.text.1", "selected", 1.0); \
628                   set_state(PART:"elm.text.2", "selected", 1.0); \
629                   set_state(PART:"elm.text.3", "selected", 1.0); \
630                } \
631                else { \
632                   set_state(PART:"elm.text.1", "selected", 0.0); \
633                   set_state(PART:"elm.text.2", "selected", 0.0); \
634                   set_state(PART:"elm.text.3", "selected", 0.0); \
635                } \
636             }
637
638 #define GENLIST_PROGRAM_FLIP_1TEXT \
639          program { name: "flip_enabled"; \
640             signal: "elm,state,flip,enabled"; \
641             source: "elm"; \
642             action: STATE_SET "flip_enabled" 0.0; \
643             target: "elm.text"; \
644             target: "elm.flip.icon"; \
645             target: "elm.flip.content"; \
646          } \
647          program { name: "flip_disabled"; \
648             signal: "elm,state,flip,disabled"; \
649             source: "elm"; \
650             action: STATE_SET "default" 0.0; \
651             target: "elm.text"; \
652             target: "elm.flip.icon"; \
653             target: "elm.flip.content"; \
654          }
655
656 #define GENLIST_PROGRAM_FLIP_1TEXT_1ICON \
657          program { name: "flip_enabled"; \
658             signal: "elm,state,flip,enabled"; \
659             source: "elm"; \
660             action: STATE_SET "flip_enabled" 0.0; \
661             target: "elm.text"; \
662             target: "elm.icon"; \
663             target: "elm.flip.content"; \
664          } \
665          program { name: "flip_disabled"; \
666             signal: "elm,state,flip,disabled"; \
667             source: "elm"; \
668             action: STATE_SET "default" 0.0; \
669             target: "elm.text"; \
670             target: "elm.icon"; \
671             target: "elm.flip.content"; \
672          }
673
674 #define GENLIST_PROGRAM_FLIP_1TEXT_2ICON \
675          program { name: "flip_enabled"; \
676             signal: "elm,state,flip,enabled"; \
677             source: "elm"; \
678             action: STATE_SET "flip_enabled" 0.0; \
679             target: "elm.text"; \
680             target: "elm.icon.1"; \
681             target: "elm.icon.2"; \
682             target: "elm.flip.content"; \
683          } \
684          program { name: "flip_disabled"; \
685             signal: "elm,state,flip,disabled"; \
686             source: "elm"; \
687             action: STATE_SET "default" 0.0; \
688             target: "elm.text"; \
689             target: "elm.icon.1"; \
690             target: "elm.icon.2"; \
691             target: "elm.flip.content"; \
692          }
693
694 #define GENLIST_PROGRAM_FLIP_1TEXT_3ICON \
695          program { name: "flip_enabled"; \
696             signal: "elm,state,flip,enabled"; \
697             source: "elm"; \
698             action: STATE_SET "flip_enabled" 0.0; \
699             target: "elm.text"; \
700             target: "elm.icon.1"; \
701             target: "elm.icon.2"; \
702             target: "elm.icon.3"; \
703             target: "elm.flip.content"; \
704          } \
705          program { name: "flip_disabled"; \
706             signal: "elm,state,flip,disabled"; \
707             source: "elm"; \
708             action: STATE_SET "default" 0.0; \
709             target: "elm.text"; \
710             target: "elm.icon.1"; \
711             target: "elm.icon.2"; \
712             target: "elm.icon.3"; \
713             target: "elm.flip.content"; \
714          }
715
716 #define GENLIST_PROGRAM_FLIP_2TEXT \
717          program { name: "flip_enabled"; \
718             signal: "elm,state,flip,enabled"; \
719             source: "elm"; \
720             action: STATE_SET "flip_enabled" 0.0; \
721             target: "elm.text.1"; \
722             target: "elm.text.2"; \
723             target: "elm.flip.content"; \
724          } \
725          program { name: "flip_disabled"; \
726             signal: "elm,state,flip,disabled"; \
727             source: "elm"; \
728             action: STATE_SET "default" 0.0; \
729             target: "elm.text.1"; \
730             target: "elm.text.2"; \
731             target: "elm.flip.content"; \
732          }
733
734 #define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
735          program { name: "flip_enabled"; \
736             signal: "elm,state,flip,enabled"; \
737             source: "elm"; \
738             action: STATE_SET "flip_enabled" 0.0; \
739             target: "elm.text.1"; \
740             target: "elm.text.2"; \
741             target: "elm.icon"; \
742             target: "elm.flip.content"; \
743          } \
744          program { name: "flip_disabled"; \
745             signal: "elm,state,flip,disabled"; \
746             source: "elm"; \
747             action: STATE_SET "default" 0.0; \
748             target: "elm.text.1"; \
749             target: "elm.text.2"; \
750             target: "elm.icon"; \
751             target: "elm.flip.content"; \
752          }
753
754 #define GENLIST_PROGRAM_FLIP_2TEXT_2ICON \
755          program { name: "flip_enabled"; \
756             signal: "elm,state,flip,enabled"; \
757             source: "elm"; \
758             action: STATE_SET "flip_enabled" 0.0; \
759             target: "elm.text.1"; \
760             target: "elm.text.2"; \
761             target: "elm.icon.1"; \
762             target: "elm.icon.2"; \
763             target: "elm.flip.content"; \
764          } \
765          program { name: "flip_disabled"; \
766             signal: "elm,state,flip,disabled"; \
767             source: "elm"; \
768             action: STATE_SET "default" 0.0; \
769              target: "elm.text.1"; \
770             target: "elm.text.2"; \
771             target: "elm.icon.1"; \
772             target: "elm.icon.2"; \
773             target: "elm.flip.content"; \
774          }
775
776 #define GENLIST_PROGRAM_FLIP_2TEXT_3ICON \
777          program { name: "flip_enabled"; \
778             signal: "elm,state,flip,enabled"; \
779             source: "elm"; \
780             action: STATE_SET "flip_enabled" 0.0; \
781             target: "elm.text.1"; \
782             target: "elm.text.2"; \
783             target: "elm.icon.1"; \
784             target: "elm.icon.2"; \
785             target: "elm.icon.3"; \
786             target: "elm.flip.content"; \
787          } \
788          program { name: "flip_disabled"; \
789             signal: "elm,state,flip,disabled"; \
790             source: "elm"; \
791             action: STATE_SET "default" 0.0; \
792             target: "elm.text.1"; \
793             target: "elm.text.2"; \
794             target: "elm.icon.1"; \
795             target: "elm.icon.2"; \
796             target: "elm.icon.3"; \
797             target: "elm.flip.content"; \
798          }
799
800 #define GENLIST_PROGRAM_FLIP_3TEXT \
801          program { name: "flip_enabled"; \
802             signal: "elm,state,flip,enabled"; \
803             source: "elm"; \
804             action: STATE_SET "flip_enabled" 0.0; \
805             target: "elm.text.1"; \
806             target: "elm.text.2"; \
807             target: "elm.text.3"; \
808             target: "elm.flip.content"; \
809          } \
810          program { name: "flip_disabled"; \
811             signal: "elm,state,flip,disabled"; \
812             source: "elm"; \
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.flip.content"; \
818          }
819
820 #define GENLIST_PROGRAM_FLIP_3TEXT_1ICON \
821          program { name: "flip_enabled"; \
822             signal: "elm,state,flip,enabled"; \
823             source: "elm"; \
824             action: STATE_SET "flip_enabled" 0.0; \
825             target: "elm.text.1"; \
826             target: "elm.text.2"; \
827             target: "elm.text.3"; \
828             target: "elm.icon"; \
829             target: "elm.flip.content"; \
830          } \
831          program { name: "flip_disabled"; \
832             signal: "elm,state,flip,disabled"; \
833             source: "elm"; \
834             action: STATE_SET "default" 0.0; \
835             target: "elm.text.1"; \
836             target: "elm.text.2"; \
837             target: "elm.text.3"; \
838             target: "elm.icon"; \
839             target: "elm.flip.content"; \
840          }
841
842 #define GENLIST_PROGRAM_FLIP_3TEXT_2ICON \
843          program { name: "flip_enabled"; \
844             signal: "elm,state,flip,enabled"; \
845             source: "elm"; \
846             action: STATE_SET "flip_enabled" 0.0; \
847             target: "elm.text.1"; \
848             target: "elm.text.2"; \
849             target: "elm.text.3"; \
850             target: "elm.icon.1"; \
851             target: "elm.icon.2"; \
852             target: "elm.flip.content"; \
853          } \
854          program { name: "flip_disabled"; \
855             signal: "elm,state,flip,disabled"; \
856             source: "elm"; \
857             action: STATE_SET "default" 0.0; \
858             target: "elm.text.1"; \
859             target: "elm.text.2"; \
860             target: "elm.text.3"; \
861             target: "elm.icon.1"; \
862             target: "elm.icon.2"; \
863             target: "elm.flip.content"; \
864          }
865
866 #define GENLIST_PROGRAM_FLIP_3TEXT_3ICON \
867          program { name: "flip_enabled"; \
868             signal: "elm,state,flip,enabled"; \
869             source: "elm"; \
870             action: STATE_SET "flip_enabled" 0.0; \
871             target: "elm.text.1"; \
872             target: "elm.text.2"; \
873             target: "elm.text.3"; \
874             target: "elm.icon.1"; \
875             target: "elm.icon.2"; \
876             target: "elm.icon.3"; \
877             target: "elm.flip.content"; \
878          } \
879          program { name: "flip_disabled"; \
880             signal: "elm,state,flip,disabled"; \
881             source: "elm"; \
882             action: STATE_SET "default" 0.0; \
883             target: "elm.text.1"; \
884             target: "elm.text.2"; \
885             target: "elm.text.3"; \
886             target: "elm.icon.1"; \
887             target: "elm.icon.2"; \
888             target: "elm.icon.3"; \
889             target: "elm.flip.content"; \
890          }
891
892 /* genlist multisense macro - start */
893 #define GENLIST_PROGRAM_AFTER_PLAY_BUTTON_PRESS \
894             after: "play_button_press";
895
896 #define GENLIST_PROGRAM_PLAY_BUTTON_PRESS \
897          program { name: "play_button_press"; \
898             action: PLAY_SAMPLE "button-pressed" 1.0; \
899          }
900 /* genlist multisense macro - end */