7d681966bb03f2d96ab839232129fa98a79d8323
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / genlist / genlist_expandable.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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
19
20 /*
21  * vim:ts=3
22 */
23
24 // 2.5.1.1
25    group { GENLIST_NAME("dialogue/2text/expandable/default")
26       GENLIST_PROLOG_DIALOGUE
27       data.item: "texts" "elm.text.1 elm.text.2";
28
29       GENLIST_IMAGES_EXPANDABLE_BTN
30       parts {
31          GENLIST_PART_BG_DIALOGUE
32          GENLIST_PART_BASE
33          GENLIST_PART_PADDING_TOP_2LINE
34          GENLIST_PART_PADDING_BOTTOM_2LINE
35          GENLIST_PART_PADDING_LEFT_SIZE(DIALOGUE_PADDING_SIZE_LEFT)
36          GENLIST_PART_PADDING_RIGHT_EDIT
37
38          GENLIST_PART_LISTITEM("elm.text.1",
39             GENLIST_DESCRIPTION("elm.padding.left", "elm.padding.arrow.left",
40                "elm.padding.top", "elm.text.2",
41                min: 0 GENLIST_HEIGHT_2LINE_MAIN;
42                GENLIST_PARAM_LISTITEM
43             )
44          )
45          GENLIST_PART_SUBITEM("elm.text.2",
46             GENLIST_DESCRIPTION_LRB("elm.padding.left", "elm.padding.arrow.left", "elm.padding.bottom",
47                fixed: 0 1;
48                min: 0 GENLIST_HEIGHT_2LINE_SUB;
49                GENLIST_PARAM_SUBITEM_DEFAULT
50             )
51          )
52          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
53          GENLIST_PART_EXPANDABLE_ARROW
54          GENLIST_PART_FLIP
55          GENLIST_PART_FOCUS_DIALOGUE
56       }
57       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2"; target: "arrow_clip"; )
58       programs {
59          GENLIST_PROGRAM_SELECT_ARROW
60          GENLIST_PROGRAM_EXPAND_ROOT( target: "arrow"; )
61          GENLIST_PROGRAM_SOUND("elm.text.1")
62          GENLIST_PROGRAM_SOUND("elm.text.2")
63       }
64    }
65
66 // 2.5.1.2
67    group { GENLIST_NAME("dialogue/2text.2/expandable/default")
68       GENLIST_PROLOG_DIALOGUE
69       data.item: "texts" "elm.text.1 elm.text.2";
70
71       GENLIST_IMAGES_EXPANDABLE_BTN
72       parts {
73          GENLIST_PART_BG_DIALOGUE
74          GENLIST_PART_BASE
75          GENLIST_PART_PADDING_TOP_2LINE
76          GENLIST_PART_PADDING_BOTTOM_2LINE
77          GENLIST_PART_PADDING_LEFT_SIZE(DIALOGUE_PADDING_SIZE_LEFT)
78          GENLIST_PART_PADDING_RIGHT_EDIT
79
80          GENLIST_PART_SUBITEM("elm.text.2",
81             GENLIST_DESCRIPTION_LRT("elm.padding.left", "elm.padding.arrow.left",
82                "elm.padding.top",
83                fixed: 1 1;
84                min: 0 GENLIST_HEIGHT_2LINE_SUB;
85                GENLIST_PARAM_SUBITEM_DEFAULT
86             )
87          )
88          GENLIST_PART_LISTITEM("elm.text.1",
89             GENLIST_DESCRIPTION("elm.padding.left", "elm.padding.arrow.left",
90                "elm.text.2", "elm.padding.bottom",
91                min: 0 GENLIST_HEIGHT_2LINE_MAIN;
92                GENLIST_PARAM_LISTITEM
93             )
94          )
95          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
96          GENLIST_PART_EXPANDABLE_ARROW
97          GENLIST_PART_FLIP
98          GENLIST_PART_FOCUS_DIALOGUE
99       }
100       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2";  target: "arrow_clip"; )
101       programs {
102          GENLIST_PROGRAM_SELECT_ARROW
103          GENLIST_PROGRAM_EXPAND_ROOT( target: "arrow"; )
104          GENLIST_PROGRAM_SOUND("elm.text.1")
105          GENLIST_PROGRAM_SOUND("elm.text.2")
106       }
107    }
108
109 // 2.5.1.3
110    group { GENLIST_NAME("dialogue/2text.3/expandable/default")
111       GENLIST_PROLOG_DIALOGUE
112       data.item: "texts" "elm.text.1 elm.text.2";
113
114       GENLIST_IMAGES_EXPANDABLE_BTN
115       parts {
116          GENLIST_PART_BG_DIALOGUE
117          GENLIST_PART_BASE
118          GENLIST_PART_PADDING_TOP_2LINE
119          GENLIST_PART_PADDING_BOTTOM_2LINE
120          GENLIST_PART_PADDING_LEFT_SIZE(DIALOGUE_PADDING_SIZE_LEFT)
121          GENLIST_PART_PADDING_RIGHT_EDIT
122
123          GENLIST_PART_LISTITEM("elm.text.1",
124             GENLIST_DESCRIPTION("elm.padding.left", "elm.padding.arrow.left",
125                "elm.padding.top", "elm.text.2",
126                min: 0 GENLIST_HEIGHT_2LINE_MAIN;
127                GENLIST_PARAM_LISTITEM
128             )
129          )
130          GENLIST_PART_SUBITEM("elm.text.2",
131             GENLIST_DESCRIPTION_LRB("elm.padding.left", "elm.padding.arrow.left", "elm.padding.bottom",
132                min: 0 GENLIST_HEIGHT_2LINE_SUB;
133                fixed: 1 1;
134                GENLIST_PARAM_SUBITEM_SETTINGS
135             )
136          )
137          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
138          GENLIST_PART_EXPANDABLE_ARROW
139          GENLIST_PART_FLIP
140          GENLIST_PART_FOCUS_DIALOGUE
141       }
142       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2"; target: "arrow_clip"; )
143       programs {
144          GENLIST_PROGRAM_SELECT_ARROW
145          GENLIST_PROGRAM_EXPAND_ROOT( target: "arrow"; )
146          GENLIST_PROGRAM_SOUND("elm.text.1")
147          GENLIST_PROGRAM_SOUND("elm.text.2")
148       }
149    }
150
151 // 2.5.1.4
152    group { GENLIST_NAME("dialogue/2text.1icon/expandable/default")
153       GENLIST_PROLOG_DIALOGUE
154       data.item: "texts" "elm.text.1 elm.text.2";
155       data.item: "contents" "elm.icon";
156
157       images {
158          image: "00_button_expand_closed.png" COMP;
159          image: "00_button_expand_opened.png" COMP;
160       }
161       GENLIST_IMAGES_EXPANDABLE_BTN
162       parts {
163          GENLIST_PART_BG_DIALOGUE
164          GENLIST_PART_BASE
165          GENLIST_PART_PADDING_TOP_2LINE
166          GENLIST_PART_PADDING_BOTTOM_2LINE
167          GENLIST_PART_PADDING_LEFT_SIZE(DIALOGUE_PADDING_SIZE_LEFT)
168          GENLIST_PART_PADDING_RIGHT_EDIT
169          GENLIST_PART_ICON("elm.icon",
170             GENLIST_DESCRIPTION_L("elm.padding.left",
171                GENLIST_PARAM_ICON_CHECK_RADIO)
172          )
173          GENLIST_PART_PADDING_L("elm.padding.icon.right", "elm.icon")
174          GENLIST_PART_LISTITEM("elm.text.1",
175             GENLIST_DESCRIPTION("elm.padding.icon.right", "elm.padding.arrow.left",
176                "elm.padding.top", "elm.text.2",
177                min: 0 GENLIST_HEIGHT_2LINE_MAIN;
178                GENLIST_PARAM_LISTITEM
179             )
180          )
181          GENLIST_PART_SUBITEM("elm.text.2",
182             GENLIST_DESCRIPTION_LRB("elm.padding.icon.right", "elm.padding.arrow.left", "elm.padding.bottom",
183                min: 0 GENLIST_HEIGHT_2LINE_SUB;
184                fixed: 1 1;
185                GENLIST_PARAM_SUBITEM_DEFAULT
186             )
187          )
188          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
189          GENLIST_PART_EXPANDABLE_ARROW
190          GENLIST_PART_FLIP
191          GENLIST_PART_FOCUS_DIALOGUE
192       }
193       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text.1"; target: "elm.text.2"; target: "arrow_clip"; )
194       programs {
195          GENLIST_PROGRAM_SELECT_ARROW
196          GENLIST_PROGRAM_EXPAND_ROOT( target: "arrow"; )
197          GENLIST_PROGRAM_SOUND("elm.text.1")
198          GENLIST_PROGRAM_SOUND("elm.text.2")
199       }
200    }
201
202 // 2.5.1.5
203    group { GENLIST_NAME("dialogue/3text.1icon/expandable/default")
204       GENLIST_PROLOG_DIALOGUE
205
206       data.item: "texts" "elm.text.1 elm.text.2 elm.text.3";
207       data.item: "contents" "elm.swallow.colorbar elm.icon";
208
209       images {
210          image: "00_button_expand_closed.png" COMP;
211          image: "00_button_expand_opened.png" COMP;
212       }
213
214       GENLIST_IMAGES_EXPANDABLE_BTN
215       parts {
216          GENLIST_PART_BG_DIALOGUE
217          GENLIST_PART_BASE
218          GENLIST_PART_PADDING_TOP_2LINE
219          GENLIST_PART_PADDING_BOTTOM_2LINE
220          GENLIST_PART_PADDING_LEFT_SIZE(DIALOGUE_PADDING_SIZE_LEFT)
221          GENLIST_PART_PADDING_RIGHT_EDIT
222          GENLIST_PART_COLORBAR
223
224          GENLIST_PART_ICON_BIG_L("elm.icon", "elm.padding.left")
225          GENLIST_PART_PADDING_L("elm.padding.icon.right", "elm.icon")
226          GENLIST_PART_LISTITEM("elm.text.1",
227             GENLIST_DESCRIPTION("elm.padding.icon.right", "elm.text.3",
228                "elm.padding.top", "elm.text.2",
229                min: 0 GENLIST_HEIGHT_2LINE_MAIN;
230                GENLIST_PARAM_LISTITEM
231             )
232          )
233          GENLIST_PART_SUBITEM_RTB("elm.text.3", GENLIST_HEIGHT_2LINE_MAIN,
234             "elm.padding.arrow.left", "elm.padding.top", "elm.text.2"
235          )
236          GENLIST_PART_SUBITEM("elm.text.2",
237             GENLIST_DESCRIPTION_LRB("elm.padding.icon.right", "elm.padding.arrow.left", "elm.padding.bottom",
238                min: 0 GENLIST_HEIGHT_2LINE_SUB;
239                fixed: 1 1;
240                GENLIST_PARAM_SUBITEM_DEFAULT
241             )
242          )
243          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
244          GENLIST_PART_EXPANDABLE_ARROW
245          GENLIST_PART_FLIP
246          GENLIST_PART_FOCUS_DIALOGUE
247       }
248       GENLIST_PROGRAMS_DIALOGUE( target: "elm.icon"; target: "elm.text.1"; target: "elm.text.2"; target: "elm.text.3";
249           target: "arrow_clip"; )
250       programs {
251          GENLIST_PROGRAM_SELECT_ARROW
252          GENLIST_PROGRAM_EXPAND_ROOT( target: "arrow"; )
253          GENLIST_PROGRAM_SOUND("elm.text.1")
254          GENLIST_PROGRAM_SOUND("elm.text.2")
255          GENLIST_PROGRAM_SOUND("elm.text.3")
256       }
257    }
258
259 // 2.5.1.6
260    group { GENLIST_NAME("dialogue/1text/expandable/default")
261
262       // FIXME: deprecated, only for backward compatibility
263       alias: "elm/genlist/tree/dialogue/1text/expandable2/default";
264       alias: "elm/genlist/tree_odd/dialogue/1text/expandable2/default";
265       alias: "elm/genlist/tree_compress/dialogue/1text/expandable2/default";
266       alias: "elm/genlist/tree_compress_odd/dialogue/1text/expandable2/default";
267
268       GENLIST_PROLOG_DIALOGUE
269       data.item: "texts" "elm.text";
270
271       GENLIST_IMAGES_EXPANDABLE_BTN
272       parts {
273          GENLIST_PART_BG_DIALOGUE
274          GENLIST_PART_BASE
275          GENLIST_PART_PADDING_LEFT_SIZE(DIALOGUE_PADDING_SIZE_LEFT)
276          GENLIST_PART_PADDING_TOP_SIZE(0)
277          GENLIST_PART_PADDING_BOTTOM_SIZE(0)
278          GENLIST_PART_PADDING_RIGHT_EDIT
279
280          GENLIST_PART_LISTITEM("elm.text",
281             GENLIST_DESCRIPTION("elm.padding.left", "elm.padding.arrow.left",
282                "elm.padding.top", "elm.padding.bottom",
283                min: 0 GENLIST_HEIGHT_1LINE;
284                GENLIST_PARAM_LISTITEM
285             )
286          )
287          GENLIST_PART_PADDING_R("elm.padding.arrow.left", "arrow")
288          GENLIST_PART_EXPANDABLE_ARROW
289          GENLIST_PART_FLIP
290          GENLIST_PART_FOCUS_DIALOGUE
291       }
292       GENLIST_PROGRAMS_DIALOGUE( target: "elm.text";  target: "arrow_clip"; )
293       programs {
294          GENLIST_PROGRAM_SELECT_ARROW
295          GENLIST_PROGRAM_EXPAND_ROOT( target: "arrow"; )
296          GENLIST_PROGRAM_SOUND("elm.text")
297       }
298    }
299 #if 0
300    group { name: "elm/genlist/tree/1text.2/expandable_n_depth/default";
301       alias: "elm/genlist/tree_odd/1text.2/expandable_n_depth/default";
302       alias: "elm/genlist/tree_compress/1text.2/expandable_n_depth/default";
303       alias: "elm/genlist/tree_compress_odd/1text.2/expandable_n_depth/default";
304       alias: "elm/genlist/item/1text.2/expandable_n_depth/default";
305       alias: "elm/genlist/item_odd/1text.2/expandable_n_depth/default";
306       alias: "elm/genlist/item_compress/1text.2/expandable_n_depth/default";
307       alias: "elm/genlist/item_compress_odd/1text.2/expandable_n_depth/default";
308
309       data.item: "texts" "elm.text";
310       data.item: "contents" "elm.icon elm.icon.edit";
311
312       parts {
313          GENLIST_PART_BG_NORMAL
314          GENLIST_PART_BASE
315          GENLIST_PART_BOTTOM_LINE
316          GENLIST_PART_PADDING_LEFT
317          GENLIST_PART_PADDING_RIGHT
318
319          GENLIST_PART_ICON_BIG_L("elm.icon", "elm.swallow.pad")
320          GENLIST_PART_PADDING_L("elm.icon.right", "elm.icon")
321          GENLIST_PART_LISTITEM("elm.text",
322             GENLIST_DESCRIPTION_LR("elm.icon.right", "elm.padding.right",
323                min: 0 GENLIST_HEIGHT_1LINE;
324                GENLIST_PARAM_LISTITEM
325             )
326          )
327       }
328       programs {
329          GENLIST_PROGRAM_DISABLED
330          GENLIST_PROGRAM_SELECT_BOTTOMLINE( target: "elm.text"; )
331          GENLIST_PROGRAM_SOUND("elm.text")
332       }
333    }
334
335    group { name: "elm/genlist/item/1text.1/expandable_n_depth/default";
336       alias: "elm/genlist/item_odd/1text.1/expandable_n_depth/default";
337       alias: "elm/genlist/item_compress/1text.1/expandable_n_depth/default";
338       alias: "elm/genlist/item_compress_odd/1text.1/expandable_n_depth/default";
339       alias: "elm/genlist/tree/1text.1/expandable_n_depth/default";
340       alias: "elm/genlist/tree_odd/1text.1/expandable_n_depth/default";
341       alias: "elm/genlist/tree_compress/1text.1/expandable_n_depth/default";
342       alias: "elm/genlist/tree_compress_odd/1text.1/expandable_n_depth/default";
343
344       data.item: "texts" "elm.text";
345       data.item: "contents" "elm.icon elm.icon.edit";
346
347       parts {
348          GENLIST_PART_BG_NORMAL
349          GENLIST_PART_BASE
350          GENLIST_PART_BOTTOM_LINE
351          GENLIST_PART_PADDING_LEFT
352          GENLIST_PART_PADDING_RIGHT
353
354          GENLIST_PART_IMAGE("elm.icon", "elm.swallow.pad")
355          GENLIST_PART_PADDING_L("elm.icon.right", "elm.icon")
356          GENLIST_PART_LISTITEM("elm.text",
357             GENLIST_DESCRIPTION_LR("elm.icon.right", "elm.padding.right",
358                min: 0 GENLIST_HEIGHT_1LINE;
359                GENLIST_PARAM_LISTITEM
360             )
361          )
362       }
363       programs {
364          GENLIST_PROGRAM_DISABLED
365          GENLIST_PROGRAM_SELECT_BOTTOMLINE( target: "elm.text"; )
366          GENLIST_PROGRAM_SOUND("elm.text")
367       }
368    }
369
370
371       data.item: "texts" "elm.text";
372       data.item: "treesize" "26";
373
374       broadcast_signal: 1;
375       parts {
376          alias: "base" "group:base";
377          alias: "arrow" "group:arrow";
378          alias: "elm.text" "group:elm.text";
379          alias: "bottom_line" "group:bottom_line";
380          alias: "elm.padding.left" "group:elm.padding.left";
381          alias: "elm.padding.right" "group:elm.padding.right";
382          alias: "elm.swallow.pad" "group:elm.swallow.pad";
383
384          GENLIST_PART_PERSPECTIVE_POINT
385          part { name: "event";
386             type: RECT;
387             description {
388                state: "default" 0.0;
389                color: 0 0 0 0;
390             }
391          }
392          part { name: "group";
393             type: GROUP;
394             scale: 1;
395             source: "elm/genlist/tree/1text.1/expandable_n_depth/effect_parts/default";
396             description {
397                min: 16 GENLIST_HEIGHT_1LINE;
398                state: "default" 0.0;
399             }
400             GENLIST_DESCRIPTION_ROTATE(-90.0, 0, 0)
401          }
402       }
403       programs {
404          program {
405             name: "expand";
406             signal: "mouse,up,1";
407             source: "group:touch_arrow";
408             action:  SIGNAL_EMIT "elm,action,expand,toggle" "elm";
409          }
410          GENLIST_PROGRAM_ROTATE(0.2, 0.3,
411             target: "group";
412          )
413          program {
414             name: "show";
415             signal: "elm,state,show";
416             action: STATE_SET "default" 0.0;
417             target: "group";
418          }
419          program {
420             name: "hide";
421             signal: "elm,state,hide";
422             action: STATE_SET "hide" 0.0;
423             target: "group";
424          }
425       }
426    }
427
428    /* internally used in 2.5.3.1 */
429    group { name: "elm/genlist/tree/1text.1/expandable_n_depth/effect_parts/default";
430       images {
431          image: "00_folder_icon_folder_plus.png" COMP;
432          image: "00_folder_icon_folder_minus.png" COMP;
433       }
434       parts {
435          GENLIST_PART_BASE
436          GENLIST_PART_PADDING_LEFT
437          GENLIST_PART_PADDING_RIGHT_EDIT
438
439          part { name: "touch_arrow";
440             type: RECT;
441             ignore_flags: ON_HOLD;
442             scale: 1;
443             description { state: "default" 0.0;
444                min: 112 128;
445                fixed: 1 1;
446                align: 0.5 0.5;
447                rel1 {
448                   relative: 0.5 0.5;
449                   to: "arrow";
450                }
451                rel2 {
452                   relative: 0.5 0.5;
453                   to: "arrow";
454                }
455                color: 0 0 0 0;
456             }
457          }
458          part { name: "elm.padding.arrow.right";
459             type: RECT;
460             scale: 1;
461             description { state: "default" 0.0;
462                min: 16 0;
463                fixed: 1 0;
464                visible: 0;
465                align: 0.0 0.5;
466                rel1 {
467                   relative: 1.0 0.0;
468                   to: "arrow";
469                }
470                rel2.to: "arrow";
471             }
472          }
473          part { name: "arrow";
474             ignore_flags: ON_HOLD;
475             mouse_events: 0;
476             scale: 1;
477             description { state: "default" 0.0;
478                min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
479                max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
480                fixed: 1 1;
481                align: 0.0 0.5;
482                aspect: 1.0 1.0;
483                rel1 {
484                   relative: 1.0 0.0;
485                   to_x: "elm.swallow.pad";
486                }
487                rel2.to_x: "elm.swallow.pad";
488                image.normal: "00_folder_icon_folder_plus.png";
489             }
490             description { state: "active" 0.0;
491                inherit: "default" 0.0;
492                image.normal: "00_folder_icon_folder_minus.png";
493             }
494          }
495          part { name: "elm.text";
496             type: TEXT;
497             mouse_events: 0;
498             scale: 1;
499             description { state: "default" 0.0;
500                align: 0.5 0.5;
501                rel1 {
502                   relative: 1.0 0.0;
503                   to_x: "elm.padding.arrow.right";
504                }
505                rel2 {
506                   relative: 0.0 1.0;
507                   to_x: "elm.padding.right";
508                }
509                color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR;
510                text {
511                   font: "Tizen:style=Roman";
512                   size: GENLIST_LIST_MAIN_TEXT_SIZE;
513                   min: 0 1;
514                   align: 0.0 0.5;
515                   text_class: "list_item";
516                }
517             }
518             description { state: "selected" 0.0;
519                inherit: "default" 0.0;
520                color: GENLIST_LIST_TEXT_FOCUS_COLOR;
521             }
522          }
523          GENLIST_PART_DISCLIP
524       }
525       programs {
526          program {
527             name: "go_expanded";
528             signal: "elm,state,expanded";
529             source: "elm";
530             action: STATE_SET "active" 0.0;
531             target: "arrow";
532          }
533          program {
534             name: "go_contracted";
535             signal: "elm,state,contracted";
536             source: "elm";
537             action: STATE_SET "default" 0.0;
538             target: "arrow";
539          }
540
541          program {
542             name: "go_active";
543             signal: "elm,state,selected";
544             source: "elm";
545             action: STATE_SET "selected" 0.0;
546             target: "base";
547             target: "elm.text";
548          }
549          program {
550             name: "go_passive";
551             signal: "elm,state,unselected";
552             source: "elm";
553             action: STATE_SET "default" 0.0;
554             target: "base";
555             target: "elm.text";
556             transition: LINEAR 0.1;
557          }
558          program {
559             name: "go_disabled";
560             signal: "elm,state,disabled";
561             source: "elm";
562             action: STATE_SET "disabled" 0.0;
563             target: "disclip";
564          }
565          program {
566             name: "go_enabled";
567             signal: "elm,state,enabled";
568             source: "elm";
569             action: STATE_SET "default" 0.0;
570             target: "disclip";
571          }
572          GENLIST_PROGRAM_SOUND("elm.text")
573       }
574    }
575
576    /* 2.5.3.2 */
577    group { name: "elm/genlist/item/1text.2/expandable_n_depth/default";
578       alias: "elm/genlist/item_odd/1text.2/expandable_n_depth/default";
579       alias: "elm/genlist/item_compress/1text.2/expandable_n_depth/default";
580       alias: "elm/genlist/item_compress_odd/1text.2/expandable_n_depth/default";
581       inherit: "elm/genlist/tree/1text.1/expandable_n_depth/default";
582       broadcast_signal: 1;
583       parts {
584          alias: "base" "group:base";
585          alias: "arrow" "group:arrow";
586          alias: "elm.text" "group:elm.text";
587          alias: "bottom_line" "group:bottom_line";
588          alias: "elm.padding.left" "group:elm.padding.left";
589          alias: "elm.padding.right" "group:elm.padding.right";
590          alias: "elm.swallow.pad" "group:elm.swallow.pad";
591          part { name: "group";
592             type: GROUP;
593             scale: 1;
594             source: "elm/genlist/tree/1text.2/expandable_n_depth/effect_parts/default";
595             description {
596                min: 16 GENLIST_HEIGHT_1LINE;
597                state: "default" 0.0;
598             }
599             GENLIST_DESCRIPTION_ROTATE(-90.0, 0, 0)
600          }
601       }
602    }
603
604    /* internally used in 2.5.3.2 */
605    group { name: "elm/genlist/tree/1text.2/expandable_n_depth/effect_parts/default";
606       inherit: "elm/genlist/tree/1text.1/expandable_n_depth/effect_parts/default";
607       images {
608          image: "00_folder_icon_folder.png" COMP;
609       }
610       parts {
611          part { name: "touch_arrow";
612             mouse_events: 0;
613          }
614          part { name: "arrow";
615             description { state: "default" 0.0;
616                image.normal: "00_folder_icon_folder.png";
617             }
618             description { state: "active" 0.0;
619                image.normal: "00_folder_icon_folder.png";
620             }
621          }
622       }
623    }
624 #endif
625
626
627 #if 0
628 // 2.5.2.7
629    group { name: "elm/genlist/item/dialogue/1text.2icon/expandable2/default";
630       alias: "elm/genlist/item_odd/dialogue/1text.2icon/expandable2/default";
631       alias: "elm/genlist/item_compress/dialogue/1text.2icon/expandable2/default";
632       alias: "elm/genlist/item_compress_odd/dialogue/1text.2icon/expandable2/default";
633       data.item: "stacking" "above";
634       data.item: "selectraise" "on";
635       data.item: "texts" "elm.text";
636       data.item: "contents" "elm.icon.1 elm.icon.2";
637       data.item: "treesize" "GENLIST_TREESIZE_16_INC";
638
639       parts {
640          GENLIST_PART_BASE
641          GENLIST_PART_PADDING_LEFT_SIZE( GENLIST_PADDING_32_INC )
642          GENLIST_PART_PADDING_RIGHT_EDIT
643          part { name: "elm.padding.icon1.right";
644             type: RECT;
645             scale: 1;
646             description { state: "default" 0.0;
647                min: GENLIST_PADDING_16_INC 0;
648                fixed: 1 0;
649                visible: 0;
650                rel1 {
651                   relative: 1.0 0.0;
652                   to_x: "elm.icon.1";
653                }
654                rel2.to_x: "elm.icon.1";
655                align: 0.0 0.0;
656             }
657          }
658          part { name: "elm.icon.1";
659             type: SWALLOW;
660             scale: 1;
661             description { state: "default" 0.0;
662                min: GENLIST_SIZE_60_INC GENLIST_SIZE_60_INC;
663                max: GENLIST_SIZE_60_INC GENLIST_SIZE_60_INC;
664                fixed: 1 1;
665                align: 0.0 0.5;
666                rel1 {
667                   relative: 1.0 0.0;
668                   to_x: "elm.swallow.pad";
669                }
670                rel2 {
671                   relative: 1.0 1.0;
672                   to_x: "elm.swallow.pad";
673                }
674             }
675             GENLIST_DESCRIPTION_FADEOUT
676          }
677          part { name: "elm.padding.icon2.right";
678             type: RECT;
679             scale: 1;
680             description { state: "default" 0.0;
681                min: GENLIST_PADDING_16_INC 0;
682                fixed: 1 0;
683                visible: 0;
684                rel1 {
685                   relative: 1.0 0.0;
686                   to_x: "elm.icon.2";
687                }
688                rel2.to_x: "elm.icon.2";
689                align: 0.0 0.0;
690             }
691          }
692          part { name: "elm.icon.2";
693             type: SWALLOW;
694             scale: 1;
695             description { state: "default" 0.0;
696                min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
697                max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
698                fixed: 1 1;
699                align: 0.0 0.5;
700                rel1 {
701                   relative: 1.0 0.0;
702                   to_x: "elm.padding.icon1.right";
703                }
704                rel2 {
705                   relative: 1.0 1.0;
706                   to_x: "elm.padding.icon1.right";
707                }
708             }
709             GENLIST_DESCRIPTION_FADEOUT
710          }
711          part { name: "elm.text";
712             type: TEXT;
713             mouse_events: 0;
714             scale: 1;
715             description { state: "default" 0.0;
716                rel1 {
717                   relative: 1.0  0.0;
718                   to_x: "elm.padding.icon2.right";
719                }
720                rel2 {
721                   relative: 0.0  1.0;
722                   to_x: "elm.padding.right";
723                }
724                color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR;
725                text {
726                   font: "Tizen:style=Regular";
727                   size: GENLIST_LIST_MAIN_TEXT_SIZE;
728                   min: 0 1;
729                   align: 0.0 0.5;
730                   text_class: "list_item";
731                }
732             }
733             description { state: "selected" 0.0;
734                inherit: "default" 0.0;
735                color: GENLIST_LIST_TEXT_FOCUS_COLOR;
736             }
737             GENLIST_DESCRIPTION_FADEOUT
738          }
739          GENLIST_PART_DISCLIP
740       }
741       programs {
742          program { name: "go_active";
743             signal: "elm,state,selected";
744             source: "elm";
745             action: STATE_SET "selected" 0.0;
746             target: "base";
747             target: "elm.text";
748          }
749          program { name: "go_passive";
750             signal: "elm,state,unselected";
751             source: "elm";
752             action: STATE_SET "default" 0.0;
753             target: "base";
754             target: "elm.text";
755             transition: LINEAR 0.1;
756          }
757          program { name: "go_disabled";
758             signal: "elm,state,disabled";
759             source: "elm";
760             action: STATE_SET "disabled" 0.0;
761             target: "disclip";
762          }
763          program { name: "go_enabled";
764             signal: "elm,state,enabled";
765             source: "elm";
766             action: STATE_SET "default" 0.0;
767             target: "disclip";
768          }
769          GENLIST_PROGRAM_ROTATE(0.2, 0.3,
770             target: "base";
771             target: "elm.text";
772             target: "elm.swallow.pad";
773             target: "elm.icon.1";
774             target: "elm.icon.2";
775          )
776          program {
777             name: "show";
778             signal: "elm,state,show";
779             action: STATE_SET "default" 0.0;
780             target: "base";
781             target: "elm.text";
782             target: "elm.icon.1";
783             target: "elm.icon.2";
784             target: "elm.swallow.pad";
785          }
786          program {
787             name: "hide";
788             signal: "elm,state,hide";
789             action: STATE_SET "hide" 0.0;
790             target: "base";
791             target: "elm.text";
792             target: "elm.icon.1";
793             target: "elm.icon.2";
794             target: "elm.swallow.pad";
795          }
796       }
797    }
798
799 //removed
800 // 3.10.21
801    group { name: "elm/genlist/item/dialogue/1text/expandable3/default";
802       alias: "elm/genlist/item_odd/dialogue/1text/expandable3/default";
803       alias: "elm/genlist/item_compress/dialogue/1text/expandable3/default";
804       alias: "elm/genlist/item_compress_odd/dialogue/1text/expandable3/default";
805       data.item: "stacking" "above";
806       data.item: "selectraise" "on";
807       data.item: "texts" "elm.text";
808       data.item: "treesize" "10";
809
810       parts {
811          GENLIST_PART_BASE
812          GENLIST_PART_PADDING_LEFT_SIZE( GENLIST_PADDING_32_INC )
813          GENLIST_PART_PADDING_RIGHT_EDIT
814          part { name: "elm.text";
815             type: TEXT;
816             mouse_events: 0;
817             scale: 1;
818             description { state: "default" 0.0;
819                rel1 {
820                   relative: 1.0  0.0;
821                   offset: 0 0;
822                   to_x: "elm.swallow.pad";
823                }
824                rel2 {
825                   to_x: "elm.padding.right";
826                   relative: 0.0  1.0;
827                   offset:   0   0;
828                }
829                color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR;
830                text {
831                   font: "Tizen:style=Regular";
832                   size: GENLIST_LIST_MAIN_TEXT_SIZE;
833                   min: 0 1;
834                   align: 0.0 0.5;
835                   text_class: "list_item";
836                }
837             }
838             description { state: "selected" 0.0;
839                inherit: "default" 0.0;
840                color: GENLIST_LIST_TEXT_FOCUS_COLOR;
841             }
842             GENLIST_DESCRIPTION_FADEOUT
843          }
844          GENLIST_PART_DISCLIP
845       }
846       programs {
847          program { name: "go_active";
848             signal: "elm,state,selected";
849             source: "elm";
850             action: STATE_SET "selected" 0.0;
851             target: "base";
852             target: "elm.text";
853          }
854          program { name: "go_passive";
855             signal: "elm,state,unselected";
856             source: "elm";
857             action: STATE_SET "default" 0.0;
858             target: "base";
859             target: "elm.text";
860             transition: LINEAR 0.1;
861          }
862          program { name: "go_disabled";
863             signal: "elm,state,disabled";
864             source: "elm";
865             action: STATE_SET "disabled" 0.0;
866             target: "disclip";
867          }
868          program { name: "go_enabled";
869             signal: "elm,state,enabled";
870             source: "elm";
871             action: STATE_SET "default" 0.0;
872             target: "disclip";
873          }
874          GENLIST_PROGRAM_ROTATE(0.2, 0.3,
875             target: "base";
876             target: "elm.text";
877             target: "elm.swallow.pad";
878          )
879          program {
880             name: "show";
881             signal: "elm,state,show";
882             action: STATE_SET "default" 0.0;
883             target: "base";
884             target: "elm.text";
885             target: "elm.swallow.pad";
886          }
887          program {
888             name: "hide";
889             signal: "elm,state,hide";
890             action: STATE_SET "hide" 0.0;
891             target: "base";
892             target: "elm.text";
893             target: "elm.swallow.pad";
894          }
895       }
896    }
897
898 //removed
899 /* B01.3.10.20 */
900    group { name: "elm/genlist/item/dialogue/1text.2/expandable3/default";
901       alias: "elm/genlist/item_odd/dialogue/1text.2/expandable3/default";
902       alias: "elm/genlist/item_compress/dialogue/1text.2/expandable3/default";
903       alias: "elm/genlist/item_compress_odd/dialogue/1text.2/expandable3/default";
904       data.item: "stacking" "above";
905       data.item: "selectraise" "on";
906       data.item: "texts" "elm.text";
907       data.item: "treesize" "GENLIST_TREESIZE_16_INC";
908
909       parts {
910          GENLIST_PART_BASE
911          GENLIST_PART_PADDING_LEFT_SIZE( GENLIST_SIZE_48_INC )
912          GENLIST_PART_PADDING_RIGHT_EDIT( GENLIST_SIZE_16_INC )
913          part { name: "elm.text";
914             type: TEXT;
915             mouse_events: 0;
916             scale: 1;
917             description { state: "default" 0.0;
918                rel1 {
919                   relative: 1.0  0.0;
920                   offset: 0 0;
921                   to_x: "elm.swallow.pad";
922                }
923                rel2 {
924                   to_x: "elm.padding.right";
925                   relative: 0.0  1.0;
926                   offset:   0   0;
927                }
928                color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR;
929                text {
930                   font: "Tizen:style=Regular";
931                   size: GENLIST_LIST_MAIN_TEXT_SIZE;
932                   min: 0 1;
933                   align: 0.0 0.5;
934                   text_class: "list_item";
935                }
936             }
937             description { state: "selected" 0.0;
938                inherit: "default" 0.0;
939                color: GENLIST_LIST_TEXT_FOCUS_COLOR;
940             }
941             GENLIST_DESCRIPTION_FADEOUT
942          }
943          GENLIST_PART_DISCLIP
944       }
945       programs {
946          program { name: "go_active";
947             signal: "elm,state,selected";
948             source: "elm";
949             action: STATE_SET "selected" 0.0;
950             target: "base";
951             target: "elm.text";
952          }
953          program { name: "go_passive";
954             signal: "elm,state,unselected";
955             source: "elm";
956             action: STATE_SET "default" 0.0;
957             target: "base";
958             target: "elm.text";
959             transition: LINEAR 0.1;
960          }
961          program { name: "go_disabled";
962             signal: "elm,state,disabled";
963             source: "elm";
964             action: STATE_SET "disabled" 0.0;
965             target: "disclip";
966          }
967          program { name: "go_enabled";
968             signal: "elm,state,enabled";
969             source: "elm";
970             action: STATE_SET "default" 0.0;
971             target: "disclip";
972          }
973          GENLIST_PROGRAM_ROTATE(0.2, 0.3,
974             target: "base";
975             target: "elm.text";
976             target: "elm.swallow.pad";
977          )
978          program {
979             name: "show";
980             signal: "elm,state,show";
981             action: STATE_SET "default" 0.0;
982             target: "base";
983             target: "elm.text";
984             target: "elm.swallow.pad";
985          }
986          program {
987             name: "hide";
988             signal: "elm,state,hide";
989             action: STATE_SET "hide" 0.0;
990             target: "base";
991             target: "elm.text";
992             target: "elm.swallow.pad";
993          }
994       }
995    }
996
997    /
998 // 2.5.1.5 (Deprecated)
999    group { name: "elm/genlist/tree/dialogue/2text.2icon/expandable/default";
1000       alias: "elm/genlist/tree_odd/dialogue/2text.2icon/expandable/default";
1001       alias: "elm/genlist/tree_compress/dialogue/2text.2icon/expandable/default";
1002       alias: "elm/genlist/tree_compress_odd/dialogue/2text.2icon/expandable/default";
1003       data.item: "stacking" "above";
1004       data.item: "selectraise" "on";
1005       data.item: "texts" "elm.text.1 elm.text.2";
1006       data.item: "contents" "elm.icon elm.swallow.colorbar";
1007       data.item: "treesize" "GENLIST_TREESIZE_16_INC";
1008       images {
1009          image: "00_button_expand_closed.png" COMP;
1010          image: "00_button_expand_opened.png" COMP;
1011       }
1012       parts {
1013          GENLIST_PART_BASE
1014          GENLIST_PART_PADDING_TOP_SIZE( GENLIST_PADDING_10_INC )
1015          GENLIST_PART_PADDING_BOTTOM_SIZE( GENLIST_PADDING_10_INC )
1016          GENLIST_PART_PADDING_LEFT_SIZE( GENLIST_PADDING_32_INC )
1017          GENLIST_PART_PADDING_RIGHT_EDIT
1018          part { name: "elm.swallow.colorbar";
1019             clip_to: "disclip";
1020             type: SWALLOW;
1021             scale: 1;
1022             description { state: "default" 0.0;
1023                min: GENLIST_SIZE_10_INC GENLIST_SIZE_21_INC;
1024                fixed: 1 1;
1025                rel2.relative: 0.0 0.0;
1026                align: 0.0 0.0;
1027             }
1028          }
1029          part { name: "touch_arrow";
1030             type: RECT;
1031             clip_to: "disclip";
1032             ignore_flags: ON_HOLD;
1033             scale: 1;
1034             description { state: "default" 0.0;
1035                min: GENLIST_SIZE_112_INC GENLIST_SIZE_128_INC;
1036                fixed: 1 1;
1037                align: 0.5 0.5;
1038                rel1 {
1039                   relative: 0.5 0.5;
1040                   to: "arrow";
1041                }
1042                rel2 {
1043                   relative: 0.5 0.5;
1044                   to: "arrow";
1045                }
1046                color: 0 0 0 0;
1047             }
1048          }
1049          part { name: "arrow";
1050             clip_to: "disclip";
1051             ignore_flags: ON_HOLD;
1052             mouse_events: 0;
1053             scale: 1;
1054             description { state: "default" 0.0;
1055                min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
1056                max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
1057                fixed: 1 1;
1058                align: 1.0 0.5;
1059                aspect: 1.0 1.0;
1060                rel1.to_x: "elm.padding.right";
1061                rel2 {
1062                   relative: 0.0 1.0;
1063                   offset: 0 0;
1064                   to_x: "elm.padding.right";
1065                }
1066                image.normal: "00_button_expand_closed.png";
1067             }
1068             description { state: "active" 0.0;
1069                inherit: "default" 0.0;
1070                image.normal: "00_button_expand_opened.png";
1071             }
1072             GENLIST_DESCRIPTION_FADEOUT
1073          }
1074          part { name: "elm.padding.arrow.left";
1075             type: RECT;
1076             scale: 1;
1077             description { state: "default" 0.0;
1078                min: GENLIST_SIZE_8_INC 0;
1079                fixed: 1 0;
1080                visible: 0;
1081                align: 1.0 0.5;
1082                rel1.to: "arrow";
1083                rel2 {
1084                   relative: 0.0 1.0;
1085                   to: "arrow";
1086                }
1087             }
1088          }
1089          part { name: "elm.padding.icon.right";
1090             type: RECT;
1091             scale: 1;
1092             description { state: "default" 0.0;
1093                min: GENLIST_SIZE_16_INC 0;
1094                fixed: 1 0;
1095                visible: 0;
1096                rel1 {
1097                   relative: 1.0 0.0;
1098                   to_x: "elm.icon";
1099                }
1100                rel2.to_x: "elm.icon";
1101                align: 0.0 0.0;
1102             }
1103          }
1104          part { name: "elm.icon";
1105             clip_to: "disclip";
1106             type: SWALLOW;
1107             scale: 1;
1108             description { state: "default" 0.0;
1109                min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
1110                max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
1111                fixed: 1 1;
1112                align: 0.0 0.5;
1113                rel1 {
1114                   relative: 1.0 0.0;
1115                   to_x: "elm.swallow.pad";
1116                }
1117                rel2 {
1118                   relative: 1.0 1.0;
1119                   to_x: "elm.swallow.pad";
1120                }
1121             }
1122          }
1123          part { name: "elm.text.1";
1124             clip_to: "disclip";
1125             type: TEXT;
1126             mouse_events: 0;
1127             scale: 1;
1128             description { state: "default" 0.0;
1129                min: 0 GENLIST_SIZE_61_INC;
1130                fixed: 0 1;
1131                align: 0.0 0.0;
1132                rel1 {
1133                   relative: 1.0 1.0;
1134                   to_x: "elm.padding.icon.right";
1135                   to_y: "elm.padding.top";
1136                }
1137                rel2 {
1138                   relative: 0.0 1.0;
1139                   to_x: "elm.padding.arrow.left";
1140                   to_y: "elm.padding.top";
1141                }
1142                color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR;
1143                text {
1144                   font: "Tizen:style=Regular";
1145                   size: GENLIST_LIST_MAIN_TEXT_SIZE;
1146                   min: 0 1;
1147                   align: 0.0 0.5;
1148                   text_class: "list_item";
1149                }
1150             }
1151             description { state: "selected" 0.0;
1152                inherit: "default" 0.0;
1153                color: GENLIST_LIST_TEXT_FOCUS_COLOR;
1154             }
1155             GENLIST_DESCRIPTION_FADEOUT
1156          }
1157          part { name: "elm.text.2";
1158             clip_to: "disclip";
1159             type: TEXT;
1160             mouse_events: 0;
1161             scale: 1;
1162             description { state: "default" 0.0;
1163                rel1 {
1164                   relative: 1.0 1.0;
1165                   to_x: "elm.padding.icon.right";
1166                   to_y: "elm.text.1";
1167                }
1168                rel2 {
1169                   relative: 0.0 0.0;
1170                   offset: 0 0;
1171                   to_x: "elm.padding.arrow.left";
1172                   to_y: "elm.padding.bottom";
1173                }
1174                color: GENLIST_LIST_SUB_TEXT_DEFAULT_COLOR;
1175                text {
1176                   font: "Tizen:style=Medium";
1177                   size: GENLIST_FONT_32_INC;
1178                   min: 0 1;
1179                   align: 0.0 0.5;
1180                   text_class: "tizen";
1181                }
1182             }
1183             description { state: "selected" 0.0;
1184                inherit: "default" 0.0;
1185                color: GENLIST_LIST_TEXT_FOCUS_COLOR;
1186             }
1187             GENLIST_DESCRIPTION_FADEOUT
1188          }
1189          GENLIST_PART_DISCLIP
1190       }
1191       programs {
1192          program {
1193             name: "go_active";
1194             signal: "elm,state,selected";
1195             source: "elm";
1196             action: STATE_SET "selected" 0.0;
1197             target: "base";
1198             target: "elm.text.1";
1199             target: "elm.text.2";
1200          }
1201          program {
1202             name: "go_passive";
1203             signal: "elm,state,unselected";
1204             source: "elm";
1205             action: STATE_SET "default" 0.0;
1206             target: "base";
1207             target: "elm.text.1";
1208             target: "elm.text.2";
1209             transition: LINEAR 0.1;
1210          }
1211          program {
1212             name: "go_disabled";
1213             signal: "elm,state,disabled";
1214             source: "elm";
1215             action: STATE_SET "disabled" 0.0;
1216             target: "disclip";
1217          }
1218          program {
1219             name: "go_enabled";
1220             signal: "elm,state,enabled";
1221             source: "elm";
1222             action: STATE_SET "default" 0.0;
1223             target: "disclip";
1224          }
1225          program {
1226             name: "expand";
1227             signal: "mouse,up,1";
1228             source: "touch_arrow";
1229             action: SIGNAL_EMIT "elm,action,expand,toggle" "elm";
1230          }
1231          program {
1232             name: "go_expanded";
1233             signal: "elm,state,expanded";
1234             source: "elm";
1235             action: STATE_SET "active" 0.0;
1236             target: "arrow";
1237          }
1238          program {
1239             name: "go_contracted";
1240             signal: "elm,state,contracted";
1241             source: "elm";
1242             action: STATE_SET "default" 0.0;
1243             target: "arrow";
1244          }
1245          GENLIST_PROGRAM_ROTATE(0.2, 0.3,
1246             target: "base";
1247             target: "elm.text.1";
1248             target: "elm.text.2";
1249             target: "elm.icon";
1250             target: "elm.swallow.colorbar";
1251             target: "arrow";
1252             target: "elm.swallow.pad";
1253          )
1254          program {
1255             name: "show";
1256             signal: "elm,state,show";
1257             action: STATE_SET "default" 0.0;
1258             target: "base";
1259             target: "elm.text.1";
1260             target: "elm.text.2";
1261             target: "elm.icon";
1262             target: "elm.swallow.colorbar";
1263             target: "arrow";
1264             target: "elm.swallow.pad";
1265          }
1266          program {
1267             name: "hide";
1268             signal: "elm,state,hide";
1269             action: STATE_SET "hide" 0.0;
1270             target: "base";
1271             target: "elm.text.1";
1272             target: "elm.text.2";
1273             target: "elm.icon";
1274             target: "elm.swallow.colorbar";
1275             target: "arrow";
1276             target: "elm.swallow.pad";
1277          }
1278       }
1279    }
1280
1281 #define GENLIST_EXPANDABLE_TREE_GROUP(GE_STYLE_NAME, GE_COLOR, GE_LEFT) \
1282    group { name: "elm/genlist/tree/"GE_STYLE_NAME"/default"; \
1283       alias: "elm/genlist/tree_odd/"GE_STYLE_NAME"/default"; \
1284       data.item: "stacking" "above"; \
1285       data.item: "selectraise" "on"; \
1286       data.item: "texts" "elm.text"; \
1287       data.item: "contents" "elm.swallow.icon elm.swallow.end"; \
1288       data.item: "treesize" "GENLIST_TREESIZE_16_INC"; \
1289       images { \
1290          image: "00_button_expand_closed.png" COMP; \
1291          image: "00_button_expand_opened.png" COMP; \
1292       } \
1293       parts { \
1294          GENLIST_PART_BASE \
1295          GENLIST_PART_PADDING_LEFT_SIZE( GE_LEFT ) \
1296          GENLIST_PART_PADDING_RIGHT_EDIT \
1297          part { name: "touch_arrow"; \
1298             type: RECT; \
1299             clip_to: "disclip"; \
1300             ignore_flags: ON_HOLD; \
1301             scale: 1; \
1302             description { state: "default" 0.0; \
1303                min: GENLIST_SIZE_112_INC GENLIST_SIZE_128_INC; \
1304                fixed: 1 1; \
1305                align: 0.5 0.5; \
1306                rel1 { \
1307                   relative: 0.5 0.5; \
1308                   to: "arrow"; \
1309                } \
1310                rel2 { \
1311                   relative: 0.5 0.5; \
1312                   to: "arrow"; \
1313                } \
1314                color: 0 0 0 0; \
1315             } \
1316          } \
1317          part { name: "arrow"; \
1318             clip_to: "disclip"; \
1319             ignore_flags: ON_HOLD; \
1320             mouse_events: 0; \
1321             scale: 1; \
1322             description { state: "default" 0.0; \
1323                min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
1324                max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
1325                fixed: 1 1; \
1326                align: 1.0 0.5; \
1327                aspect: 1.0 1.0; \
1328                rel1.to_x: "elm.padding.right"; \
1329                rel2 { \
1330                   relative: 0.0 1.0; \
1331                   offset: 0 0; \
1332                   to_x: "elm.padding.right"; \
1333                } \
1334                image.normal: "00_button_expand_closed.png"; \
1335             } \
1336             description { state: "active" 0.0; \
1337                inherit: "default" 0.0; \
1338                image.normal: "00_button_expand_opened.png"; \
1339             } \
1340             GENLIST_DESCRIPTION_FADEOUT \
1341          } \
1342          part { name: "elm.padding.arrow.left"; \
1343             type: RECT; \
1344             scale: 1; \
1345             description { state: "default" 0.0; \
1346                min: GENLIST_SIZE_8_INC 0; \
1347                fixed: 1 0; \
1348                visible: 0; \
1349                align: 1.0 0.5; \
1350                rel1.to: "arrow"; \
1351                rel2 { \
1352                   relative: 0.0 1.0; \
1353                   to: "arrow"; \
1354                } \
1355             } \
1356          } \
1357          part { name: "elm.text"; \
1358             clip_to: "disclip"; \
1359             type: TEXT; \
1360             mouse_events: 0; \
1361             scale: 1; \
1362             description { state: "default" 0.0; \
1363                align: 0.5 0.5; \
1364                rel1 { \
1365                   relative: 1.0 0.0; \
1366                   to_x: "elm.swallow.pad"; \
1367                } \
1368                rel2 { \
1369                   relative: 0.0 1.0; \
1370                   to_x: "elm.padding.arrow.left"; \
1371                } \
1372                color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
1373                text { \
1374                   font: "Tizen:style=Roman"; \
1375                   size: GENLIST_LIST_MAIN_TEXT_SIZE; \
1376                   min: 0 1; \
1377                   align: 0.0 0.5; \
1378                   text_class: "list_item"; \
1379                } \
1380             } \
1381             description { state: "selected" 0.0; \
1382                inherit: "default" 0.0; \
1383                color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
1384             } \
1385             GENLIST_DESCRIPTION_FADEOUT \
1386          } \
1387          GENLIST_PART_DISCLIP \
1388       } \
1389       programs { \
1390          program { \
1391             name: "go_active"; \
1392             signal: "elm,state,selected"; \
1393             source: "elm"; \
1394             action: STATE_SET "selected" 0.0; \
1395             target: "base"; \
1396             target: "elm.text"; \
1397          } \
1398          program { \
1399             name: "go_passive"; \
1400             signal: "elm,state,unselected"; \
1401             source: "elm"; \
1402             action: STATE_SET "default" 0.0; \
1403             target: "base"; \
1404             target: "elm.text"; \
1405             transition: LINEAR 0.1; \
1406          } \
1407          program { \
1408             name: "go_disabled"; \
1409             signal: "elm,state,disabled"; \
1410             source: "elm"; \
1411             action: STATE_SET "disabled" 0.0; \
1412             target: "disclip"; \
1413          } \
1414          program { \
1415             name: "go_enabled"; \
1416             signal: "elm,state,enabled"; \
1417             source: "elm"; \
1418             action: STATE_SET "default" 0.0; \
1419             target: "disclip"; \
1420          } \
1421          program { \
1422             name: "expand"; \
1423             signal: "mouse,up,1"; \
1424             source: "touch_arrow"; \
1425             action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; \
1426          } \
1427          program { \
1428             name: "go_expanded"; \
1429             signal: "elm,state,expanded"; \
1430             source: "elm"; \
1431             action: STATE_SET "active" 0.0; \
1432             target: "arrow"; \
1433          } \
1434          program { \
1435             name: "go_contracted"; \
1436             signal: "elm,state,contracted"; \
1437             source: "elm"; \
1438             action: STATE_SET "default" 0.0; \
1439             target: "arrow"; \
1440          } \
1441          GENLIST_PROGRAM_ROTATE(0.2, 0.3, \
1442             target: "base"; \
1443             target: "elm.text"; \
1444             target: "arrow"; \
1445             target: "elm.swallow.pad"; \
1446          ) \
1447          program { \
1448             name: "show"; \
1449             signal: "elm,state,show"; \
1450             action: STATE_SET "default" 0.0; \
1451             target: "base"; \
1452             target: "elm.text"; \
1453             target: "arrow"; \
1454             target: "elm.swallow.pad"; \
1455          } \
1456          program { \
1457             name: "hide"; \
1458             signal: "elm,state,hide"; \
1459             action: STATE_SET "hide" 0.0; \
1460             target: "base"; \
1461             target: "elm.text"; \
1462             target: "arrow"; \
1463             target: "elm.swallow.pad"; \
1464          } \
1465       } \
1466    }
1467
1468 #define GENLIST_EXPANDABLE_ITEM_GROUP(GE_STYLE_NAME, GE_COLOR, GE_LEFT) \
1469    group { name: "elm/genlist/item/"GE_STYLE_NAME"/default"; \
1470       alias: "elm/genlist/item_odd/"GE_STYLE_NAME"/default"; \
1471       data.item: "stacking" "above"; \
1472       data.item: "selectraise" "on"; \
1473       data.item: "texts" "elm.text"; \
1474       data.item: "contents" "elm.swallow.icon elm.swallow.end"; \
1475       data.item: "treesize" "GENLIST_TREESIZE_16_INC"; \
1476       parts { \
1477          GENLIST_PART_BASE  \
1478          GENLIST_PART_PADDING_LEFT_SIZE( GE_LEFT ) \
1479          GENLIST_PART_PADDING_RIGHT_EDIT \
1480          part { name: "elm.swallow.end"; \
1481             type: SWALLOW; \
1482             scale: 1; \
1483             description { state: "default" 0.0; \
1484                fixed: 1 0; \
1485                align: 1.0 0.5; \
1486                rel1.to_x: "elm.padding.right"; \
1487                rel2 { \
1488                   relative: 0.0  1.0; \
1489                   to_x: "elm.padding.right"; \
1490                } \
1491             } \
1492             GENLIST_DESCRIPTION_FADEOUT \
1493          } \
1494         part { name: "elm.text"; \
1495             clip_to: "disclip"; \
1496             type: TEXT; \
1497             mouse_events: 0; \
1498             scale: 1; \
1499             description { state: "default" 0.0; \
1500                rel1 { \
1501                   relative: 1.0  0.0; \
1502                   offset: 0 0; \
1503                   to_x: "elm.swallow.pad"; \
1504                } \
1505                rel2 { \
1506                   to_x: "elm.padding.right"; \
1507                   relative: 0.0  1.0; \
1508                   offset:   0   0; \
1509                } \
1510                color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR; \
1511                text { \
1512                   font: "Tizen:style=Roman"; \
1513                   size: GENLIST_LIST_MAIN_TEXT_SIZE; \
1514                   min: 0 1; \
1515                   align: 0.0 0.5; \
1516                   text_class: "list_item"; \
1517                } \
1518             } \
1519             description { state: "selected" 0.0; \
1520                inherit: "default" 0.0; \
1521                color: GENLIST_LIST_TEXT_FOCUS_COLOR; \
1522             } \
1523             GENLIST_DESCRIPTION_FADEOUT \
1524          } \
1525          GENLIST_PART_DISCLIP \
1526       } \
1527       programs { \
1528          program { name: "go_active"; \
1529             signal: "elm,state,selected"; \
1530             source: "elm"; \
1531             action: STATE_SET "selected" 0.0; \
1532             target: "base"; \
1533             target: "elm.text"; \
1534          } \
1535          program { name: "go_passive"; \
1536             signal: "elm,state,unselected"; \
1537             source: "elm"; \
1538             action: STATE_SET "default" 0.0; \
1539             target: "base"; \
1540             target: "elm.text"; \
1541             transition: LINEAR 0.1; \
1542          } \
1543          program { name: "go_disabled"; \
1544             signal: "elm,state,disabled"; \
1545             source: "elm"; \
1546             action: STATE_SET "disabled" 0.0; \
1547             target: "disclip"; \
1548          } \
1549          program { name: "go_enabled"; \
1550             signal: "elm,state,enabled"; \
1551             source: "elm"; \
1552             action: STATE_SET "default" 0.0; \
1553             target: "disclip"; \
1554          } \
1555          GENLIST_PROGRAM_ROTATE(0.2, 0.3,  \
1556             target: "base"; \
1557             target: "elm.text"; \
1558             target: "elm.swallow.pad"; \
1559             target: "elm.swallow.end"; \
1560          ) \
1561          program { \
1562             name: "show"; \
1563             signal: "elm,state,show"; \
1564             action: STATE_SET "default" 0.0; \
1565             target: "base"; \
1566             target: "elm.text"; \
1567             target: "elm.swallow.end"; \
1568             target: "elm.swallow.pad"; \
1569          } \
1570          program { \
1571             name: "hide"; \
1572             signal: "elm,state,hide"; \
1573             action: STATE_SET "hide" 0.0; \
1574             target: "base"; \
1575             target: "elm.text"; \
1576             target: "elm.swallow.end"; \
1577             target: "elm.swallow.pad"; \
1578          } \
1579       } \
1580    }
1581
1582 /* legacy styles */
1583 GENLIST_EXPANDABLE_TREE_GROUP("expandable", GENLIST_PART_DIALOGUE_GROUP_BG_COLOR, GENLIST_PADDING_32_INC)
1584 GENLIST_EXPANDABLE_TREE_GROUP("expandable2", GENLIST_PART_EXPANDABLE_2ND_DEPTH_BG_COLOR_INC, GENLIST_PADDING_32_INC)
1585
1586 GENLIST_EXPANDABLE_ITEM_GROUP("expandable", GENLIST_PART_DIALOGUE_GROUP_BG_COLOR, GENLIST_PADDING_16_INC)
1587 GENLIST_EXPANDABLE_ITEM_GROUP("expandable2", GENLIST_PART_EXPANDABLE_2ND_DEPTH_BG_COLOR_INC, GENLIST_PADDING_16_INC)
1588 GENLIST_EXPANDABLE_ITEM_GROUP("expandable3", GENLIST_PART_EXPANDABLE_3ND_DEPTH_BG_COLOR_INC, GENLIST_PADDING_16_INC)
1589
1590 // 2.5.2.6
1591 GENLIST_EXPANDABLE_TREE_GROUP("1text/expandable2", GENLIST_PART_EXPANDABLE_2ND_DEPTH_BG_COLOR_INC, GENLIST_PADDING_32_INC)
1592 GENLIST_EXPANDABLE_ITEM_GROUP("1text/expandable2", GENLIST_PART_EXPANDABLE_2ND_DEPTH_BG_COLOR_INC, GENLIST_PADDING_16_INC)
1593
1594 //removed
1595 /* B01.3.10.21 */
1596 GENLIST_EXPANDABLE_TREE_GROUP("1text/expandable3", GENLIST_PART_EXPANDABLE_3ND_DEPTH_BG_COLOR_INC, GENLIST_PADDING_48_INC)
1597 GENLIST_EXPANDABLE_ITEM_GROUP("1text/expandable3", GENLIST_PART_EXPANDABLE_3ND_DEPTH_BG_COLOR_INC, GENLIST_PADDING_48_INC)
1598 #endif