summaryrefslogtreecommitdiff
path: root/main/layout/genlist/genlist_macro.edc
blob: 55ab855334464b702ac2dee56de45ee31ff9a7ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
/*
 * Copyright 2012  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *	  http://www.tizenopensource.org/license
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#define GENLIST_PART_BASE( param_item_height ) \
	  part { name: "base"; \
		 type: RECT; \
		 repeat_events: 1; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: 0 param_item_height; \
			color: GENLIST_PART_BG_COLOR_INC; \
		 } \
	  }

#define GENLIST_PART_BG \
	  part { name: "bg"; \
		 type: RECT; \
		 clip_to: "disclip"; \
		 mouse_events: 0; \
		 description { state: "default" 0.0; \
			color: GENLIST_PART_BG_COLOR_INC; \
		 } \
		 description { state: "hide" 0.0; \
			inherit: "default" 0.0; \
			rel1 { relative: 0.025 0.0; } \
			rel2 { relative: 1.025 1.0; } \
		 } \
		 description { state: "hide" 0.1;  \
			inherit: "default" 0.0; \
			rel1 { relative: 0.13 0.0; } \
			rel2 { relative: 1.13 1.0; } \
		 } \
		 description { state: "hide" 0.2; \
			inherit: "default" 0.0; \
			rel1 { relative: 0.5 0.0; } \
			rel2 { relative: 1.5 1.0; } \
		 } \
		 description { state: "hide" 0.3; \
			inherit: "default" 0.0; \
			rel1 { relative: 1.0 0.0; } \
			rel2 { relative: 2.0 1.0; } \
		 } \
	  }

#define GENLIST_PART_BG_IMAGE \
	  part { name: "bg_image"; \
		 type: RECT; \
		 clip_to: "disclip"; \
		 mouse_events: 0; \
		 description { state: "default" 0.0; \
			color: GENLIST_PART_LIST_BG_COLOR_INC; \
		 } \
		 description { state: "selected" 0.0; \
			inherit: "default" 0.0; \
			color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
		 } \
	  }

#define GENLIST_PART_BOTTOM_LINE \
	  part { name: "bottom_line"; \
		 type: RECT; \
		 mouse_events: 0; \
		 description { state: "default" 0.0; \
			min: 0 1; \
			fixed: 0 1; \
			visible: 1; \
			color: GENLIST_PART_LIST_LINE_COLOR_INC; \
			rel1 { \
			   relative: 0.0 1.0; \
			   offset: 0 -1; \
			} \
		 } \
	  }

#define GENLIST_PART_BOTTOM_EFFECT_LINE \
	  part { name: "bottom_line"; \
		 type: RECT; \
		 mouse_events: 0; \
		 description { state: "default" 0.0; \
			min: 0 1; \
			fixed: 0 1; \
			visible: 1; \
			color: GENLIST_PART_LIST_LINE_COLOR_INC; \
			rel1 { \
			   relative: 0.0 1.0; \
			   offset: 0 -1; \
			} \
		 } \
		 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
		 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
	  }

#define GENLIST_PART_PADDING_TOP( param_padding_size ) \
	part { name: "elm.padding.top"; \
		 type: RECT; \
		 scale: 1; \
		 description { \
			state: "default" 0.0; \
			min: 0 param_padding_size; \
			fixed: 0 1; \
			visible: 0; \
			rel2.relative: 1.0 0.0; \
			align: 0.0 0.0; \
		 } \
	  }

#define GENLIST_PART_PADDING_TEXT_TOP( param_padding_size ) \
	part { name: "elm.padding.text.top"; \
		 type: RECT; \
		 scale: 1; \
		 description { \
			state: "default" 0.0; \
			min: 0 param_padding_size; \
			fixed: 0 1; \
			visible: 0; \
			rel2.relative: 1.0 0.0; \
			align: 0.0 0.0; \
		 } \
	  }

#define GENLIST_PART_PADDING_BOTTOM( param_padding_size ) \
	part { name: "elm.padding.bottom"; \
		 type: RECT; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: 0 param_padding_size; \
			fixed: 0 1; \
			visible: 0; \
			rel1.relative: 0.0 1.0; \
			align: 0.0 1.0; \
		 } \
	  }

#define GENLIST_PART_PADDING_LEFT( param_padding_size ) \
	  part { name: "elm.padding.left"; \
		 type: RECT; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: param_padding_size 0; \
			fixed: 1 0; \
			visible: 0; \
			rel2.relative: 0.0 1.0; \
			align: 0.0 0.0; \
		 } \
	  }

#define GENLIST_PART_PADDING_RIGHT( param_padding_size ) \
	part { name: "elm.padding.right"; \
		 type: RECT; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: param_padding_size 0; \
			fixed: 1 0; \
			visible: 0; \
			rel1.relative: 1.0	0.0; \
			align: 1.0 0.0; \
		 } \
	  }

#define GENLIST_PART_DIALOGUE_BASE( param_item_height ) \
	  part { name: "base"; \
		 type: RECT; \
		 clip_to: "disclip"; \
		 repeat_events: 1; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: 0 param_item_height; \
			color: LAYOUT_GROUP_LIST_BG_COLOR_INC; \
		 } \
	  }

#define GENLIST_PART_DIALOGUE_ITEM \
	  part { name: "elm.rect.dialogue"; \
		 type: RECT; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: GENLIST_PADDING_12_INC 0; \
			fixed: 1 0; \
			color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
			rel2.relative: 0.0 1.0; \
			align: 0.0 0.0; \
		 } \
	  }

#define GENLIST_PART_DIALOGUE_EXPANDABLE_ITEM \
	  part { name: "elm.rect.dialogue"; \
		 type: RECT; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: GENLIST_PADDING_12_INC 0; \
			fixed: 1 0; \
			color: GENLIST_DIALOGUE_GROUP_LEFT_BG_COLOR_INC; \
			rel2.relative: 0.0 1.0; \
			align: 0.0 0.0; \
		 } \
		 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
		 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
	  }

#define GENLIST_PART_SWALLOW_END( param_padding_size ) \
	  part { name: "elm.padding.left.swallow.end";\
		 clip_to: "disclip"; \
		 type: RECT;\
		 scale: 1;\
		 description { state: "default" 0.0;\
			min: param_padding_size 0;\
			fixed: 1 0;\
			visible: 0; \
			rel1.to_x: "elm.swallow.end";\
			rel2 {\
			   relative: 0.0  1.0;\
			   to_x: "elm.swallow.end";\
			}\
			align: 1.0 0.5;\
		 }\
	  }\
	  part { name: "elm.swallow.end";\
		 clip_to: "disclip"; \
		 type: SWALLOW;\
		 scale: 1;\
		 description { state: "default" 0.0;\
			fixed: 1 0;\
			align: 1.0 0.5;\
			rel1.to_x: "elm.padding.right";\
			rel2 {\
			   relative: 0.0  1.0;\
			   to_x: "elm.padding.right";\
			}\
		 }\
	  }

#define GENLIST_PART_DISCLIP \
	 part { name: "disclip"; \
		 type: RECT; \
		 description { state: "default" 0.0; \
		 } \
		 description { state: "disabled" 0.0; \
			inherit: "default" 0.0; \
			color: GENLIST_PART_DISCLIP_COLOR_INC; \
		 } \
	  }

#define GENLIST_EXPANDABLE_PART_PERSPECTIVE_POINT() \
	 part { name: "point"; \
		 type: RECT; \
		 scale: 1; \
					 description { \
							 state: "default" 0.0; \
							 color: 0 0 0 0; \
							 rel1 { relative: 0.0 0.0; } \
							 rel2 { relative: 1.0 0.0; } \
					 } \
			 }

#define GENLIST_PART_MAP_START( param_x, param_y, param_z ) \
	 description { state: "map_transition" 0.0; \
				inherit: "default" 0.0; \
				color: 50 50 50 100; \
				map { \
				   perspective: "point"; \
				   on: 1; \
				   smooth: 1; \
				   perspective_on: 1; \
				   backface_cull: 1; \
				   rotation { \
					  center: "point"; \
					  x: param_x; \
					  y: param_y; \
					  z: param_z; \
				   } \
			   } \
			 } \
			 description { \
					 state: "hide" 0.0; \
					 inherit: "default" 0.0; \
					 visible: 0; \
			 }

#define GENLIST_PART_MAP_FINISH( param_x, param_y, param_z ) \
			 description { \
					 state: "map_rotate" 0.0; \
					 inherit: "default" 0.0; \
					 map { \
							 perspective: "point"; \
							 on: 1; \
							 smooth: 1; \
							 perspective_on: 1; \
							 backface_cull: 1; \
							 rotation { \
									 center: "point"; \
									 x: param_x; \
									 y: param_y; \
									 z: param_z; \
							 } \
					} \
			} \

#define GENLIST_PART_MAP_BASE( param_item_height ) \
	  part { name: "base"; \
		 type: RECT; \
		 repeat_events: 1; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: 0 param_item_height; \
			color: GENLIST_PART_BG_COLOR_INC; \
		 } \
		 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
		 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
	  }

#define GENLIST_EXPANDABLE_PART_BASE( GE_HEIGHT , GE_COLOR ) \
	  part { name: "base"; \
		 type: RECT; \
		 repeat_events: 1; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: 0 GE_HEIGHT; \
			color: GE_COLOR; \
		 } \
		 description { state: "selected" 0.0; \
			inherit: "default" 0.0; \
			color: GENLIST_PART_LIST_PRESS_COLOR_INC; \
		 } \
		 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
		 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
	  }

#define GENLIST_PROGRAM_MAP_ROTATE_EXPAND_START() \
			 name: "rotaion_transition"; \
			 signal: "flip_item"; \
			 action: STATE_SET "map_transition" 0.0; \
			 after: "rotation";

#define GENLIST_PROGRAM_MAP_ROTATE_EXPAND_FINISH( second ) \
			 name: "rotation"; \
			 action: STATE_SET "map_rotate" 0.0; \
			 transition: LINEAR second; \
			 after: "rotation_end";

#define GENLIST_PROGRAM_MAP_EXPAND_END() \
			 name: "rotation_end"; \
			 action: STATE_SET "default" 0.0;

#define GENLIST_PROGRAM_MAP_ROTATE_CONTRACT_START() \
			 name: "rotation_transition2"; \
			 signal: "elm,state,contract_flip"; \
			 action: STATE_SET "map_rotate" 0.0; \
			 after: "rotation2";

#define GENLIST_PROGRAM_MAP_ROTATE_CONTRACT_FINISH( second ) \
			 name: "rotation2"; \
			 action: STATE_SET "map_transition" 0.0; \
			 transition: LINEAR second; \
			 after: "rotation3";

#define GENLIST_PROGRAM_MAP_CONTRACT_END() \
			 name: "rotation3"; \
			 action: STATE_SET "hide" 0.0;

#define GENLIST_PART_EXPANDABLE2_NOSHADOW_BASE( param_item_height ) \
	  part { name: "base"; \
		 type: RECT; \
		 repeat_events: 1; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: 0 param_item_height; \
			color: GENLIST_PART_EXPANDABLE_2ND_DEPTH_BG_COLOR_INC; \
		 } \
		 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
		 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
	  }

#define GENLIST_PART_EXPANDABLE_SWALLOW_PADDING \
	  part { name: "elm.swallow.pad"; \
		 type: SWALLOW; \
		 description { state: "default" 0.0; \
			fixed: 1 0; \
			align: 0.0 0.5; \
			rel1 { \
			   relative: 1.0 0.0;\
			   to_x: "elm.padding.left"; \
			} \
			rel2.to_x: "elm.padding.left"; \
		 } \
		 GENLIST_PART_MAP_START(-90.0, 0.0, 0.0) \
		 GENLIST_PART_MAP_FINISH(0.0, 0.0, 0.0) \
	  } \

#define GENLIST_PART_PADDING_LEFT_SLIDE( param_padding_size ) \
	  part { name: "elm.padding.left"; \
		 type: RECT; \
		 scale: 1; \
		 description { \
			state: "default" 0.0; \
			min: param_padding_size 0; \
			fixed: 1 0; \
			visible: 0; \
			rel1 { relative: 0.0 0.0; to: "bg"; } \
			rel2 { relative: 0.0 1.0; to: "bg"; } \
			align: 0.0 0.0; \
		 } \
	  }

/* only for demo */
#define GENLIST_PART_BUTTON( param_name, param_text_name, param_text, param_left, param_right, param_top, param_bottom ) \
	part { name: param_name; \
	  mouse_events: 1; \
	  description { state: "default" 0.0; \
		 visible: 1; \
		 rel1 { relative: param_left param_top; offset: 0 0; } \
		 rel2 { relative: param_right param_bottom; offset: -1 -1; } \
		 image { \
			normal: "btn_normal.png"; \
			border: 10 10 10 10; \
			border_scale: 1; \
		 } \
		 image.middle: SOLID; \
		 fill.smooth: 0; \
	  } \
	  description { state: "selected" 0.0;	\
		 inherit: "default" 0.0;  \
		 image { \
			normal: "btn_selected.png"; \
		 } \
	  } \
   } \
   part { name: param_text_name;  \
	  type: TEXT;  \
	  mouse_events: 0; \
	  scale: 1; \
	  description {  \
		 align: 0.0 0.0; \
		 state: "default" 0.0;	\
		 color: 0 0 0 255;	\
		 rel1 { relative: 0.0 0.0; to: param_name; } \
		 rel2 { relative: 1.0 1.0; to: param_name; } \
		 text {  \
			text: param_text; \
			font: "SLP:style=Roman"; \
			size: 24;  \
			min: 1 1;  \
			align: 0.5 0.5;  \
			text_class: "slp_roman"; \
		 }	\
	  }  \
   }

/* only for demo */
#define GENLIST_PROGRAM_BUTTON( param_name_focused, param_name_normal, param_part_name ) \
   program { name: param_name_focused; \
	  source: param_part_name; \
	  signal: "mouse,down,1"; \
	  action:  STATE_SET "selected" 0.0;  \
	  target: param_part_name; \
   } \
   program { name: param_name_normal; \
	  source: param_part_name; \
	  signal: "mouse,up,1"; \
	  action:  STATE_SET "default" 0.0;  \
	  target: param_part_name; \
   }

#define GENLIST_PROGRAM_SLIDE_WITH_AFTER( param_name, param_state, param_next ) \
   program { name: param_name; \
	  action:  STATE_SET "hide" param_state; \
	  target: "bg"; \
	  transition: LINEAR 0.3; \
	  after: param_next; \
   }

#define GENLIST_PROGRAM_SLIDE( param_name, param_state_name, param_state_value ) \
   program { name: param_name; \
	  action:  STATE_SET param_state_name param_state_value; \
	  target: "bg"; \
	  transition: LINEAR 0.3; \
   }

#define DESC_FLIP_IMAGE( param_state_value, param_image_file_name ) \
   description { state: "flipping" param_state_value; \
	  inherit: "default" 0.0; \
	  image { normal: param_image_file_name; } \
   }

#define DESC_TEXT_HIDE( param_state_value ) \
description { state: "hide" param_state_value; \
   inherit: "default" 0.0; \
   color: 0 0 0 (255*(1-param_state_value/0.20)); \
}

#define GENLIST_EDIT_PART_BASE( param_item_height ) \
	  part { name: "base"; \
		 type: RECT; \
		 repeat_events: 0; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			min: 0 param_item_height; \
			color: 0 0 0 0; \
		 } \
	  }

#define GENLIST_PART_FLIP \
	  part { name: "elm.flip.content"; \
		 clip_to: "disclip"; \
		 type: SWALLOW; \
		 mouse_events: 1; \
		 scale: 1; \
		 description { state: "default" 0.0; \
			visible: 0; \
			fixed: 1 1; \
			rel1 { \
			   relative: 1.0  0.5; \
			   to_x: "elm.padding.left"; \
			} \
			rel2 { \
			   relative: 0.0  0.5; \
			   to_x: "elm.padding.right"; \
			} \
		 } \
		 description { state: "flip_enabled" 0.0; \
			inherit: "default" 0.0; \
			visible: 1; \
		 } \
	  }

#define GENLIST_DESCRIPTION_INVISIBLE_SELECTED \
		 description { state: "selected" 1.0; \
			inherit: "default" 0.0; \
			visible: 0; \
		 }

#define GENLIST_DESCRIPTION_FLIP_ENABLED \
		 description { state: "flip_enabled" 0.0; \
			inherit: "default" 0.0; \
			visible: 0; \
		 }

#define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_1TEXT \
		 script { \
			new st[31]; \
			new Float:vl; \
			get_state(PART:"elm.text", st, 30, vl); \
			set_state(PART:"bg_image", "selected", 0.0); \
			if (!strcmp(st, "flip_enabled")) \
			   set_state(PART:"elm.text", "selected", 1.0); \
			else \
			   set_state(PART:"elm.text", "selected", 0.0); \
		 }

#define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_2TEXT \
		 script { \
			new st[31]; \
			new Float:vl; \
			get_state(PART:"elm.text.1", st, 30, vl); \
			set_state(PART:"bg_image", "selected", 0.0); \
			if (!strcmp(st, "flip_enabled")) { \
			   set_state(PART:"elm.text.1", "selected", 1.0); \
			   set_state(PART:"elm.text.2", "selected", 1.0); \
			} \
			else { \
			   set_state(PART:"elm.text.1", "selected", 0.0); \
			   set_state(PART:"elm.text.2", "selected", 0.0); \
			} \
		 }

#define GENLIST_PROGRAM_SCRIPT_FLIP_SELECT_3TEXT \
		 script { \
			new st[31]; \
			new Float:vl; \
			get_state(PART:"elm.text.1", st, 30, vl); \
			set_state(PART:"bg_image", "selected", 0.0); \
			if (!strcmp(st, "flip_enabled")) { \
			   set_state(PART:"elm.text.1", "selected", 1.0); \
			   set_state(PART:"elm.text.2", "selected", 1.0); \
			   set_state(PART:"elm.text.3", "selected", 1.0); \
			} \
			else { \
			   set_state(PART:"elm.text.1", "selected", 0.0); \
			   set_state(PART:"elm.text.2", "selected", 0.0); \
			   set_state(PART:"elm.text.3", "selected", 0.0); \
			} \
		 }

#define GENLIST_PROGRAM_FLIP_1TEXT \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_1TEXT_1ICON \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text"; \
		 target: "elm.icon"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text"; \
		 target: "elm.icon"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_1TEXT_2ICON \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_1TEXT_3ICON \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.icon.3"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.icon.3"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_2TEXT \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.icon"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.icon"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_2TEXT_2ICON \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		  target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_2TEXT_3ICON \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.icon.3"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.icon.3"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_3TEXT \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.text.3"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.text.3"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_3TEXT_1ICON \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.text.3"; \
		 target: "elm.icon"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.text.3"; \
		 target: "elm.icon"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_3TEXT_2ICON \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.text.3"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.text.3"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.flip.content"; \
	  }

#define GENLIST_PROGRAM_FLIP_3TEXT_3ICON \
	  program { name: "flip_enabled"; \
		 signal: "elm,state,flip,enabled"; \
		 source: "elm"; \
		 action: STATE_SET "flip_enabled" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.text.3"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.icon.3"; \
		 target: "elm.flip.content"; \
	  } \
	  program { name: "flip_disabled"; \
		 signal: "elm,state,flip,disabled"; \
		 source: "elm"; \
		 action: STATE_SET "default" 0.0; \
		 target: "elm.text.1"; \
		 target: "elm.text.2"; \
		 target: "elm.text.3"; \
		 target: "elm.icon.1"; \
		 target: "elm.icon.2"; \
		 target: "elm.icon.3"; \
		 target: "elm.flip.content"; \
	  }