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