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