a436e5896f7d018438432048006ddeca7dff1168
[platform/core/uifw/inputdelegator.git] / res / edje / w-input-selector.edc
1 #define FONT_NAME "GP45_ArabCJK_TouchWiz"
2
3 #define BTN_W 120
4 #define BTN_H 120
5 #define BTN_PAD_W 1
6 #define BTN_PAD_H 1
7
8 collections {
9    base_scale: 1.3;
10    group { name: "main";
11           parts {
12                  part { name: "background";
13                         type: RECT;
14                         description {
15                            state: "default" 0.0;
16                            color: 0 0 0 255;
17                         }
18                  }
19
20                  part { name: "txt_title";
21                         type: TEXT;
22                         mouse_events: 0;
23                         description { state: "default" 0.0;
24                                   rel1 { relative: 0.0 0.0; to: background; }
25                                   rel2 { relative: 1.0 0.35; to: background; }
26                            text { font: FONT_NAME; size: 35; }
27                            color: 0 140 239 255;
28                            fixed: 1 1;
29                         }
30                  }
31
32                  part { name: "btn1";
33                         type: SWALLOW;
34                         scale: 1;
35                         description { state: "default" 0.0;
36                                   rel1 { relative: 0.0 0.0; to: background; }
37                                   rel2 { relative: 1.0 1.0; to: background; }
38                            min: BTN_W BTN_H;
39                            max: BTN_W BTN_H;
40                            align: 0 0.5;
41                            fixed: 1 1;
42                         }
43                  }
44
45                  part { name: "padding";
46                         type: SPACER;
47                         scale: 1;
48                         mouse_events: 0;
49                         description { state: "default" 0.0;
50                            rel1 {
51                                   to_x: "btn1";
52                                   relative: 1.0 0.0;
53                            }
54                            rel2 {
55                                   to_y: "btn1";
56                                   relative: 1.0 1.0;
57                            }
58                            align: 0.0 1.0;
59                            min: BTN_PAD_W BTN_H;
60                            max: BTN_PAD_W BTN_H;
61                            fixed: 1 1;
62                         }
63                  }
64
65                  part { name: "btn2";
66                         type: SWALLOW;
67                         scale: 1;
68                         description { state: "default" 0.0;
69                            rel1 {
70                                   to_x: "padding";
71                                   relative: 1.0 0.0;
72                            }
73                            rel2 {
74                                   to_y: "padding";
75                                   relative: 1.0 1.0;
76                            }
77                            align: 0.0 1.0;
78                            min: (BTN_W - BTN_PAD_W) BTN_H;
79                            max: (BTN_W - BTN_PAD_W) BTN_H;
80                            fixed: 1 1;
81                         }
82                  }
83                  part { name: "padding2";
84                         type: SPACER;
85                         scale: 1;
86                         mouse_events: 0;
87                         description { state: "default" 0.0;
88                            rel1 {
89                                   to_x: "btn2";
90                                   relative: 1.0 0.0;
91                            }
92                            rel2 {
93                                   to_y: "btn2";
94                                   relative: 1.0 1.0;
95                            }
96                            align: 0.0 1.0;
97                            min: BTN_PAD_W BTN_H;
98                            max: BTN_PAD_W BTN_H;
99                            fixed: 1 1;
100                         }
101                  }
102
103                  part { name: "btn3";
104                         type: SWALLOW;
105                         scale: 1;
106                         description { state: "default" 0.0;
107                            rel1 {
108                                   to_x: "padding2";
109                                   relative: 1.0 0.0;
110                            }
111                            rel2 {
112                                   to_y: "padding2";
113                                   relative: 1.0 1.0;
114                            }
115                            align: 0.0 1.0;
116                            min: (BTN_W - BTN_PAD_W) BTN_H;
117                            max: (BTN_W - BTN_PAD_W) BTN_H;
118                            fixed: 1 1;
119                         }
120                  }
121
122                  part { name: "template_list";
123                         type: SWALLOW;
124                         scale: 1;
125                         description { state: "default" 0.0;
126                            rel1 { relative: 0.0 0.0; to: background; }
127                            rel2 { relative: 1.0 1.0; to: background; }
128                            align: 0.0 0.0;
129                         }
130                  }
131           }
132    }
133
134 #define LIST_BUTTON_PADDING_LEFT_SIZE_INC 0
135 #define LIST_BUTTON_PADDING_RIGHT_SIZE_INC 0
136 #define LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC 1
137 #define LIST_BUTTON_PADDING_BOTTOM_SIZE_INC 1
138 #define BUTTON_2BUTTON_WIDTH_INC 180
139 #define BUTTON_2BUTTON_RIGHT_WIDTH_INC 179
140 #define LIST_BUTTON_PADDING_CENTER_SIZE_INC 1
141
142 #define PART(TYPE, NAME, DESCRIPION) \
143         part { name: NAME; \
144                 scale: 1; \
145                 type: TYPE; \
146                 DESCRIPION \
147         }
148
149 #define DESC_LTB( LEFT, TOP, BOTTOM, PARAM ) \
150            description { state: "default" 0.0; \
151                   align: 0 0.5; \
152                   rel1 { \
153                          relative: 1 1; \
154                          to_x: LEFT; \
155                          to_y: TOP; \
156                   } \
157                   rel2 { \
158                          relative: 1 0; \
159                          to_x: LEFT; \
160                          to_y: BOTTOM; \
161                   } \
162                   PARAM \
163            }
164
165 #define DESC_TB( TOP, BOTTOM, PARAM ) \
166            description { state: "default" 0.0; \
167                   align: 0.5 0.5; \
168                   rel1 { \
169                          relative: 0 1; \
170                          to_y: TOP; \
171                   } \
172                   rel2 { \
173                          relative: 1 0; \
174                          to_y: BOTTOM; \
175                   } \
176                   PARAM \
177            }
178
179 #define DESC_LRTB( LEFT, RIGHT, TOP, BOTTOM, PARAM ) \
180            description { state: "default" 0.0; \
181                   rel1 { \
182                          relative: 1 1; \
183                          to_x: LEFT; \
184                          to_y: TOP; \
185                   } \
186                   rel2 { \
187                          relative: 0 0; \
188                          to_x: RIGHT; \
189                          to_y: BOTTOM; \
190                   } \
191                   PARAM \
192            }
193
194 #define DESC_FROM_L( PARAM ) \
195         description { state: "default" 0.0; \
196                 fixed: 1 0; \
197                 align: 0.0 0.5; \
198                 rel2.relative: 0.0 1.0; \
199                 PARAM \
200         }
201
202 #define DESC_FROM_R( PARAM ) \
203         description { state: "default" 0.0; \
204                 fixed: 1 0; \
205                 align: 1.0 0.5; \
206                 rel1.relative: 1 0; \
207                 PARAM \
208         }
209
210 #define DESC_FROM_T( PARAM ) \
211         description { state: "default" 0.0; \
212                 fixed: 0 1; \
213                 align: 0.5 0.0; \
214                 rel2.relative: 1.0 0.0; \
215                 PARAM \
216         }
217
218 #define DESC_FROM_B( PARAM ) \
219         description { state: "default" 0.0; \
220                 fixed: 0 1; \
221                 rel1.relative: 0.0 1.0; \
222                 align: 0.5 1.0; \
223                 PARAM \
224         }
225
226 #define DESC_L( LEFT, PARAM ) \
227         description { state: "default" 0.0; \
228                 align: 0 0.5; \
229                 fixed: 1 0; \
230                 rel1 { \
231                         relative: 1 0; \
232                         to_x: LEFT; \
233                 } \
234                 rel2 { \
235                         relative: 1 1; \
236                         to_x: LEFT; \
237                 } \
238                 PARAM \
239         }
240
241
242
243 #define PART_LIST_PADDINGS(LEFT_SIZE, RIGHT_SIZE, TOP_SIZE, BOTTOM_SIZE) \
244            PART(SWALLOW, "elm.swallow.pad", \
245                   mouse_events: 0; \
246                   DESC_FROM_L( ; ) \
247            ) \
248            PART(SWALLOW, "elm.swallow.colorbar", \
249                   mouse_events: 0; \
250                   DESC_L("elm.swallow.pad", ) \
251            ) \
252            PART(SPACER, "elm.padding.left", \
253                   scale: 0; \
254                   DESC_L("elm.swallow.pad", \
255                          min: LEFT_SIZE 0; \
256                          max: LEFT_SIZE -1; \
257                   ) \
258            ) \
259            PART(SPACER, "elm.padding.right", \
260                   scale: 0; \
261                   DESC_FROM_R( \
262                          min: RIGHT_SIZE 0; \
263                          max: RIGHT_SIZE -1; \
264                   ) \
265            ) \
266            PART(SPACER, "elm.padding.top", \
267                   scale: 0; \
268                   DESC_FROM_T( \
269                          min: 0 TOP_SIZE; \
270                          max: -1 TOP_SIZE; \
271                   ) \
272            ) \
273            PART(SPACER, "elm.padding.bottom", \
274                   scale: 0; \
275                   DESC_FROM_B( \
276                          min: 0 BOTTOM_SIZE; \
277                          max: -1 BOTTOM_SIZE; \
278                   ) \
279            )
280
281 #define PROGRAM_LIST_DEFAULT( TARGET ) \
282         program { name: "default"; \
283                 signal: "elm,state,default"; \
284                 source: "elm"; \
285                 action: STATE_SET "default" 0.0; \
286                 TARGET \
287         }
288
289 #define PROGRAM_LIST_DISABLE( TARGET ) \
290         program { name: "enabled"; \
291                 signal: "elm,state,enabled"; \
292                 source: "elm"; \
293                 action: STATE_SET "default" 0.0; \
294                 TARGET \
295         } \
296         program { name: "disabled"; \
297                 signal: "elm,state,disabled"; \
298                 source: "elm"; \
299                 action: STATE_SET "disabled" 0.0; \
300                 TARGET \
301         }
302
303 #define PROGRAM_LIST_SELECT( TARGET ) \
304         program { name: "selected"; \
305                 signal: "elm,state,selected"; \
306                 source: "elm"; \
307                 action: STATE_SET "selected" 0.0; \
308                 TARGET \
309         } \
310         program { name: "unselected"; \
311                 signal: "elm,state,unselected"; \
312                 source: "elm"; \
313                 action: STATE_SET "default" 0.0; \
314                 TARGET \
315         }
316
317 #define PROGRAM_LIST_HIGHLIGHT( TARGET ) \
318         program { name: "highlighted"; \
319                 signal: "elm,state,highlighted"; \
320                 source: "elm"; \
321                 action: STATE_SET "highlighted" 0.0; \
322                 TARGET \
323                 transition: LINEAR 1.0; \
324         } \
325         program { name: "unhighlighted"; \
326                 signal: "elm,state,unhighlighted"; \
327                 source: "elm"; \
328                 action: STATE_SET "default" 0.0; \
329                 TARGET \
330                 transition: LINEAR 1.0; \
331         }
332
333 #define PROGRAMS_LIST_BUTTON( TARGET ) \
334         programs { \
335                 PROGRAM_LIST_DEFAULT( TARGET \
336                         target: "elm.padding.left"; \
337                         target: "elm.padding.right"; \
338                 ) \
339                 PROGRAM_LIST_DISABLE( TARGET \
340                 ) \
341                 PROGRAM_LIST_SELECT( TARGET \
342                 ) \
343                 PROGRAM_LIST_HIGHLIGHT( TARGET ) \
344                 PROGRAM_LIST_SOUND \
345         }
346
347 #define PROGRAM_LIST_SOUND \
348            program { name: "play_sound"; \
349                   signal: "elm,state,clicked"; \
350                   source: "elm"; \
351                   script { \
352                          run_program(PROGRAM:"play_sample"); \
353                   } \
354            } \
355            program { \
356                   name: "play_sample"; \
357                   action: RUN_PLUGIN "touch_sound"; \
358            }
359
360
361 #define BUTTON_HEIGHT_INC       122
362
363 #define PART_LIST_BG \
364                    PART(RECT, "bg",  \
365                           description { state: "default" 0.0; \
366                                  color: 0 0 0 0; \
367                                  visible: 1; \
368                                 } \
369                         )
370
371         group {
372                 name: "elm/genlist/item/3button/default";
373                 data.item: "treesize" 0;
374                 data.item: "flips" "elm.flip.icon elm.flip.content";
375                 data.item: "contents" "base elm.icon.1.touch_area elm.icon.2.touch_area elm.icon.3.touch_area elm.icon.1 elm.icon.2 elm.icon.3 elm.swallow.center_check";
376                 data.item: "vi_effect" "off";
377
378                 parts {
379                         PART_LIST_BG
380                         PART_LIST_PADDINGS(
381                                 LIST_BUTTON_PADDING_LEFT_SIZE_INC, LIST_BUTTON_PADDING_RIGHT_SIZE_INC,
382                                 LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC, LIST_BUTTON_PADDING_BOTTOM_SIZE_INC
383                         )
384                         PART(SWALLOW, "base",
385                                 DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
386                                         min: 360 0;
387                                         fixed: 1 0;
388                                         visible: 1;
389                                 )
390                         )
391                         part { name: "elm.icon.1.touch_area"; // left icon
392 //                         type: RECT;
393                            type: SWALLOW;
394                            repeat_events, 0;
395                            description {
396                                   state: "default" 0.0;
397                                   color: 255 0 0 100;
398                                   visible: 1;
399                                   align: 0.5 0.5;
400                                   fixed: 1 1;
401                                   rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -5 -5;}
402                                   rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +5 +5;}
403                            }
404                            description {
405                                   state: "default" 0.1;
406                                   inherit: "default" 0.0;
407                                   rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -7 -7;}
408                                   rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +7 +7;}
409                            }
410                            description {
411                                   state: "default" 0.9;
412                                   inherit: "default" 0.0;
413                                   rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -8 -8;}
414                                   rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +8 +8;}
415                            }
416                         }
417                         part { name: "elm.icon.2.touch_area"; // center icon
418 //                         type: RECT;
419                            type: SWALLOW;
420                            repeat_events, 0;
421                            description {
422                                   state: "default" 0.0;
423                                   color: 0 255 0 100;
424                                   visible: 1;
425                                   align: 0.5 0.5;
426                                   fixed: 1 1;
427                                   rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -5 -5;}
428                                   rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +5 +5;}
429                            }
430                            description {
431                                   state: "default" 0.1;
432                                   inherit: "default" 0.0;
433                                   rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -7 -7;}
434                                   rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +7 +7;}
435                            }
436                            description {
437                                   state: "default" 0.9;
438                                   inherit: "default" 0.0;
439                                   rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -8 -8;}
440                                   rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +8 +8;}
441                            }
442
443                         }
444                         part { name: "elm.icon.3.touch_area"; // right icon
445 //                         type: RECT;
446                            type: SWALLOW;
447                            repeat_events, 0;
448                            description {
449                                   state: "default" 0.0;
450                                   color: 0 0 255 100;
451                                   visible: 1;
452                                   align: 0.5 0.5;
453                                   fixed: 1 1;
454                                   rel1 { relative: 0.0 0.0; to: "elm.icon.3"; offset: -6 -5;}
455                                   rel2 { relative: 1.0 1.0; to: "elm.icon.3"; offset: +6 +5;}
456                            }
457                            description {
458                                   state: "default" 0.1;
459                                   inherit: "default" 0.0;
460                                   rel1 { relative: 0.0 0.0; to: "elm.icon.3"; offset: -7 -7;}
461                                   rel2 { relative: 1.0 1.0; to: "elm.icon.3"; offset: +7 +7;}
462                            }
463                            description {
464                                   state: "default" 0.9;
465                                   inherit: "default" 0.0;
466                                   rel1 { relative: 0.0 0.0; to: "elm.icon.3"; offset: -9 -8;}
467                                   rel2 { relative: 1.0 1.0; to: "elm.icon.3"; offset: +9 +8;}
468                            }
469                         }
470                         part { name: "elm.icon.1"; // left icon
471                            type: SWALLOW;
472                            repeat_events, 1;
473                            description {
474                                   state: "default" 0.0;
475                                   //color: 255 0 0 255;
476                                   visible: 1;
477                                   align: 0.5 0;
478                                   fixed: 1 1;
479                                   min: 57 57;
480                                   max: 57 57;
481                                   rel1 { relative: 112/360 0; to: "base"; offset: 0 35;}
482                                   rel2 { relative: 112/360 0; to: "base"; offset: 0 35;}
483                            }
484                            description {
485                                   state: "default" 0.1;
486                                   inherit: "default" 0.0;
487                                   min: 57+(99-57)/2 57+(99-57)/2;
488                                   max: 57+(99-57)/2 57+(99-57)/2;
489                                   rel1 { relative: ((64+112)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
490                                   rel2 { relative: ((64+112)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
491                            }
492                            description {
493                                   state: "default" 0.9;
494                                   inherit: "default" 0.0;
495                                   min: 99 99;
496                                   max: 99 99;
497                                   rel1 { relative: 64/360 0; to: "base"; offset: 0 12;}
498                                   rel2 { relative: 64/360 0; to: "base"; offset: 0 12;}
499                            }
500                         }
501                         part { name: "elm.icon.2"; // center icon
502                            type: SWALLOW;
503                            repeat_events, 1;
504                            description {
505                                   state: "default" 0.0;
506                                   visible: 1;
507                                   align: 0.5 0;
508                                   fixed: 1 1;
509                                   min: 57 57;
510                                   max: 57 57;
511                                   rel1 { relative: 0.5 0; to: "bg"; offset: 0 20;}
512                                   rel2 { relative: 0.5 0; to: "bg"; offset: 0 20;}
513                            }
514                            description {
515                                   state: "default" 0.1;
516                                   inherit: "default" 0.0;
517                                   min: 57+(99-57)/2 57+(99-57)/2;
518                                   max: 57+(99-57)/2 57+(99-57)/2;
519                                   rel1 { relative: 0.5 0; to: "bg"; offset: 0 (20+12)/2;}
520                                   rel2 { relative: 0.5 0; to: "bg"; offset: 0 (20+12)/2;}
521                            }
522                            description {
523                                   state: "default" 0.9;
524                                   inherit: "default" 0.0;
525                                   min: 99 99;
526                                   max: 99 99;
527                                   rel1 { relative: 0.5 0; to: "base"; offset: 0 12;}
528                                   rel2 { relative: 0.5 0; to: "base"; offset: 0 12;}
529                            }
530                         }
531                         part { name: "elm.icon.3"; // right icon
532                            type: SWALLOW;
533                            repeat_events, 1;
534                            description {
535                                   state: "default" 0.0;
536                                   //color: 255 0 0 255;
537                                   visible: 1;
538                                   align: 0.5 0;
539                                   fixed: 1 1;
540                                   min: 57 57;
541                                   max: 57 57;
542                                   rel1 { relative: 249/360 0; to: "base"; offset: 0 35;}
543                                   rel2 { relative: 249/360 0; to: "base"; offset: 0 35;}
544                            }
545                            description {
546                                   state: "default" 0.1;
547                                   inherit: "default" 0.0;
548                                   min: 57+(99-57)/2 57+(99-57)/2;
549                                   max: 57+(99-57)/2 57+(99-57)/2;
550                                   rel1 { relative: ((249+297)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
551                                   rel2 { relative: ((249+297)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
552                            }
553                            description {
554                                   state: "default" 0.9;
555                                   inherit: "default" 0.0;
556                                   min: 99 99;
557                                   max: 99 99;
558                                   rel1 { relative: 297/360 0; to: "base"; offset: 0 12;}
559                                   rel2 { relative: 297/360 0; to: "base"; offset: 0 12;}
560                            }
561                         }
562
563                         PART(SPACER, "elm.padding.fake",
564                                 DESC_TB("elm.padding.top","elm.padding.bottom",
565                                         min: LIST_BUTTON_PADDING_CENTER_SIZE_INC 0;
566                                         max: LIST_BUTTON_PADDING_CENTER_SIZE_INC -1;
567                                         fixed: 1 0;
568                                 )
569                         )
570                         PART(SPACER, "elm.padding.center",
571                                 DESC_LTB("elm.padding.fake", "elm.padding.top", "elm.padding.bottom",
572                                         min: LIST_BUTTON_PADDING_CENTER_SIZE_INC 0;
573                                         max: LIST_BUTTON_PADDING_CENTER_SIZE_INC -1;
574                                         fixed: 1 0;
575                                 )
576                         )
577                         PART(SWALLOW, "elm.swallow.center_check",
578                                 description { state: "default" 0.0;
579                                         align: 0.5 0.5;
580                                 }
581                         )
582                 }
583 //Gesture VI
584                 program { name: "do_start_expand_0.0";
585                         action: STATE_SET "default" 0.0;
586                         target: "elm.icon.1";
587                         target: "elm.icon.2";
588                         target: "elm.icon.3";
589                         target: "elm.icon.1.touch_area";
590                         target: "elm.icon.2.touch_area";
591                         target: "elm.icon.3.touch_area";
592                         transition: LINEAR 0.3;
593                 }
594                 program { name: "do_start_expand_0.1";
595                         action: STATE_SET "default" 0.1;
596                         target: "elm.icon.1";
597                         target: "elm.icon.2";
598                         target: "elm.icon.3";
599                         target: "elm.icon.1.touch_area";
600                         target: "elm.icon.2.touch_area";
601                         target: "elm.icon.3.touch_area";
602                         transition: LINEAR 0.3;
603                 }
604                 program { name: "do_start_expand_0.9";
605                         action: STATE_SET "default" 0.9;
606                         target: "elm.icon.1";
607                         target: "elm.icon.2";
608                         target: "elm.icon.3";
609                         target: "elm.icon.1.touch_area";
610                         target: "elm.icon.2.touch_area";
611                         target: "elm.icon.3.touch_area";
612                         transition: LINEAR 0.3;
613                 }
614                 program { name: "start_expand_0.0";
615                    source: "elm";
616                    signal: "elm,action,ime,0.0";
617                    script {
618                           run_program(PROGRAM:"do_start_expand_0.0");
619                    }
620                 }
621                 program { name: "start_expand_0.1";
622                    source: "elm";
623                    signal: "elm,action,ime,0.1";
624                    script {
625                           run_program(PROGRAM:"do_start_expand_0.1");
626                    }
627                 }
628                 program { name: "start_expand_0.9";
629                    source: "elm";
630                    signal: "elm,action,ime,0.9";
631                    script {
632                           run_program(PROGRAM:"do_start_expand_0.9");
633                    }
634                 }
635
636 //Rotary VI
637                 program { name: "do_rotary_start_expand_0.9";
638                         action: STATE_SET "default" 0.9;
639                         target: "elm.icon.1";
640                         target: "elm.icon.2";
641                         target: "elm.icon.3";
642                         target: "elm.icon.1.touch_area";
643                         target: "elm.icon.2.touch_area";
644                         target: "elm.icon.3.touch_area";
645                         transition: LINEAR 0.5;
646                 }
647                 program { name: "do_rotary_start_expand_0.0";
648                         action: STATE_SET "default" 0.0;
649                         target: "elm.icon.1";
650                         target: "elm.icon.2";
651                         target: "elm.icon.3";
652                         target: "elm.icon.1.touch_area";
653                         target: "elm.icon.2.touch_area";
654                         target: "elm.icon.3.touch_area";
655                         transition: LINEAR 0.5;
656                 }
657                 program { name: "rotary_start_expand_0.9";
658                    source: "elm";
659                    signal: "elm,action,rotary,ime,0.9";
660                    script {
661                           run_program(PROGRAM:"do_rotary_start_expand_0.9");
662                    }
663                 }
664                 program { name: "rotary_start_expand_0.0";
665                    source: "elm";
666                    signal: "elm,action,rotary,ime,0.0";
667                    script {
668                           run_program(PROGRAM:"do_rotary_start_expand_0.0");
669                    }
670                 }
671
672         }
673
674 // 3 button
675         group {
676                 name: "elm/genlist/item/3button_flat/default";
677                 alias: "elm/genlist/item/3button_flat_recent/default";
678                 data.item: "treesize" 0;
679                 data.item: "flips" "elm.flip.icon elm.flip.content";
680                 data.item: "contents" "base elm.icon.1 elm.icon.2 elm.icon.3 elm.icon.1.touch_area elm.icon.2.touch_area elm.icon.3.touch_area";
681                 data.item: "vi_effect" "on";
682                 data.item: "dim" "off";
683                 data.item: "focus_bg" "off";
684
685
686                 parts {
687                         PART_LIST_BG
688                         PART_LIST_PADDINGS(
689                         LIST_BUTTON_PADDING_LEFT_SIZE_INC, LIST_BUTTON_PADDING_RIGHT_SIZE_INC,
690                         LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC, LIST_BUTTON_PADDING_BOTTOM_SIZE_INC
691                         )
692
693                         PART(SWALLOW, "base",
694                         DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
695                         min: 360 0;
696                         fixed: 1 0;
697                         visible: 1;
698                         )
699                         )
700
701                         part {
702                                 name: "elm.icon.1"; // left icon
703                                 type: SWALLOW;
704                                 description {
705                                         state: "default" 0.0;
706                                         visible: 1;
707                                         align: 0.5 0.5;
708                                         fixed: 1 1;
709                                         min: 100 100;
710                                         max: 100 100;
711                                         rel1 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
712                                         rel2 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
713                                 }
714                         }
715                         part {
716                                 name: "elm.icon.1.touch_area"; // left icon
717                                 type: SWALLOW;
718                                 description {
719                                         state: "default" 0.0;
720                                         visible: 1;
721                                         align: 0.5 0.5;
722                                         fixed: 1 1;
723                                         min: 120 120;
724                                         max: 120 120;
725                                         rel1 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
726                                         rel2 { relative: 60/360 0.5; to: "base"; offset: 0 0;}
727                                 }
728                         }
729
730                         part {
731                                 name: "elm.icon.2"; // center icon
732                                 type: SWALLOW;
733                                 description {
734                                         state: "default" 0.0;
735                                         visible: 1;
736                                         align: 0.5 0.5;
737                                         fixed: 1 1;
738                                         min: 100 100;
739                                         max: 100 100;
740                                         rel1 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
741                                         rel2 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
742                                 }
743
744                         }
745                         part {
746                                 name: "elm.icon.2.touch_area"; // center icon
747                                 type: SWALLOW;
748                                 description {
749                                         state: "default" 0.0;
750                                         visible: 1;
751                                         align: 0.5 0.5;
752                                         fixed: 1 1;
753                                         min: 120 120;
754                                         max: 120 120;
755                                         rel1 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
756                                         rel2 { relative: 180/360 0.5; to: "base"; offset: 0 0;}
757                                 }
758
759                         }
760
761
762                         part {
763                                 name: "elm.icon.3"; // right icon
764                                 type: SWALLOW;
765                                 description {
766                                         state: "default" 0.0;
767                                         visible: 1;
768                                         align: 0.5 0.5;
769                                         fixed: 1 1;
770                                         min: 100 100;
771                                         max: 100 100;
772                                         rel1 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
773                                         rel2 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
774                                 }
775                         }
776                         part {
777                                 name: "elm.icon.3.touch_area"; // right icon
778                                 type: SWALLOW;
779                                 description {
780                                         state: "default" 0.0;
781                                         visible: 1;
782                                         align: 0.5 0.5;
783                                         fixed: 1 1;
784                                         min: 120 120;
785                                         max: 120 120;
786                                         rel1 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
787                                         rel2 { relative: 300/360 0.5; to: "base"; offset: 0 0;}
788                                 }
789                         }
790
791                 }
792         }
793
794 //2button
795         group {
796                 name: "elm/genlist/item/2button_flat/default";
797                 data.item: "treesize" 0;
798                 data.item: "flips" "elm.flip.icon elm.flip.content";
799                 data.item: "contents" "base elm.icon.1 elm.icon.2 elm.icon.1.touch_area elm.icon.2.touch_area";
800                 data.item: "vi_effect" "on";
801                 data.item: "dim" "off";
802                 data.item: "focus_bg" "off";
803
804
805                 parts {
806                         PART_LIST_BG
807                         PART_LIST_PADDINGS(
808                         LIST_BUTTON_PADDING_LEFT_SIZE_INC, LIST_BUTTON_PADDING_RIGHT_SIZE_INC,
809                         LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC, LIST_BUTTON_PADDING_BOTTOM_SIZE_INC
810                         )
811
812                         PART(SWALLOW, "base",
813                         DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
814                         min: 360 0;
815                         fixed: 1 0;
816                         visible: 1;
817                         )
818                         )
819
820                         part {
821                                 name: "elm.icon.1"; // left icon
822                                 type: SWALLOW;
823                                 description {
824                                         state: "default" 0.0;
825                                         visible: 1;
826                                         align: 0.5 0.5;
827                                         fixed: 1 1;
828                                         min: 100 100;
829                                         max: 100 100;
830                                         rel1 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
831                                         rel2 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
832                                 }
833                         }
834                         part {
835                                 name: "elm.icon.1.touch_area"; // left icon
836                                 type: SWALLOW;
837                                 description {
838                                         state: "default" 0.0;
839                                         visible: 1;
840                                         align: 0.5 0.5;
841                                         fixed: 1 1;
842                                         min: 120 120;
843                                         max: 120 120;
844                                         rel1 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
845                                         rel2 { relative: 120/360 0.5; to: "base"; offset: 0 0;}
846                                 }
847                         }
848
849                         part {
850                                 name: "elm.icon.2"; // center icon
851                                 type: SWALLOW;
852                                 description {
853                                         state: "default" 0.0;
854                                         visible: 1;
855                                         align: 0.5 0.5;
856                                         fixed: 1 1;
857                                         min: 100 100;
858                                         max: 100 100;
859                                         rel1 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
860                                         rel2 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
861                                 }
862
863                         }
864                         part {
865                                 name: "elm.icon.2.touch_area"; // center icon
866                                 type: SWALLOW;
867                                 description {
868                                         state: "default" 0.0;
869                                         visible: 1;
870                                         align: 0.5 0.5;
871                                         fixed: 1 1;
872                                         min: 120 120;
873                                         max: 120 120;
874                                         rel1 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
875                                         rel2 { relative: 240/360 0.5; to: "base"; offset: 0 0;}
876                                 }
877
878                         }
879                 }
880         }
881
882         group { name: "elm/button/base/ime/transparent";
883                 parts {
884                         part {
885                                 name: "bg";
886                                 type: RECT;
887                                 scale: 1;
888                                 description {
889                                         state: "default" 0.0;
890                                         min: 0 130;
891                                         color_class: "AO015";
892                                         visible: 0;
893                                 }
894                                 description {
895                                         state: "pressed" 0.0;
896                                         inherit: "default" 0.0;
897                                         color_class: "AO015P";
898                                 }
899                                 description {
900                                         state: "disabled" 0.0;
901                                         inherit: "default" 0.0;
902                                         color_class: "AO015D";
903                                 }
904                         }
905                         part {
906                                 name: "padding_left_top";
907                                 type: SPACER;
908                                 scale: 1;
909                                 description {
910                                         state: "default" 0.0;
911                                         align: 0.0 0.0;
912                                         rel2.relative: 0.0 0.0;
913                                         min: 0 0;
914                                         fixed: 1 1;
915                                 }
916                         }
917                         part {
918                                 name: "padding_right_bottom";
919                                 type: SPACER;
920                                 scale: 1;
921                                 description {
922                                         state: "default" 0.0;
923                                         align: 1.0 1.0;
924                                         rel1.relative: 1.0 1.0;
925                                         min: 0 0;
926                                         fixed: 1 1;
927                                 }
928                         }
929                         part {
930                                 name: "icon_rect";
931                                 type: SPACER;
932                                 scale: 1;
933                                 description {
934                                         state: "default" 0.0;
935                                         align: 0.0 0.5;
936                                         rel1 {
937                                                 relative: 1.0 1.0;
938                                                 to: "padding_left_top";
939                                         }
940                                         rel2 {
941                                                 relative: 1.0 0.0;
942                                                 to_x: "padding_left_top";
943                                                 to_y: "padding_right_bottom";
944                                         }
945                                         min: 0 0;
946                                         fixed: 1 1;
947                                 }
948                                 description {
949                                         state: "visible" 0.0;
950                                         inherit: "default" 0.0;
951                                         min: 134 61;
952                                         max: 134 61;
953                                         fixed: 1 1;
954                                 }
955                         }
956                 }
957         }
958
959         group {
960                 name: "elm/genlist/item/2button/default";
961                 data.item: "treesize" 0;
962                 data.item: "flips" "elm.flip.icon elm.flip.content";
963                 data.item: "contents" "base elm.icon.1.touch_area elm.icon.2.touch_area elm.icon.1 elm.icon.2 elm.swallow.center_check";
964                 data.item: "vi_effect" "off";
965                 parts {
966                         PART_LIST_BG
967                         PART_LIST_PADDINGS(
968                                 LIST_BUTTON_PADDING_LEFT_SIZE_INC, LIST_BUTTON_PADDING_RIGHT_SIZE_INC,
969                                 LIST_BUTTON_PADDING_2BUTTON_TOP_SIZE_INC, LIST_BUTTON_PADDING_BOTTOM_SIZE_INC
970                         )
971                         PART(SWALLOW, "base",
972                                 DESC_LRTB("elm.padding.left", "elm.padding.right", "elm.padding.top", "elm.padding.bottom",
973                                         min: 360 0;
974                                         fixed: 1 0;
975                                         visible: 1;
976                                 )
977                         )
978                         part { name: "elm.icon.1.touch_area";
979                                 type: SWALLOW;
980                                 repeat_events, 0;
981                                 description {
982                                         state: "default" 0.0;
983                                         color: 255 0 0 100;
984                                         visible: 1;
985                                         align: 0.5 0.5;
986                                         fixed: 1 1;
987                                         rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -5 -5;}
988                                         rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +5 +5;}
989                                 }
990                                 description {
991                                         state: "default" 0.1;
992                                         inherit: "default" 0.0;
993                                         rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -7 -7;}
994                                         rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +7 +7;}
995                                 }
996                                 description {
997                                         state: "default" 0.9;
998                                         inherit: "default" 0.0;
999                                         rel1 { relative: 0.0 0.0; to: "elm.icon.1"; offset: -8 -8;}
1000                                         rel2 { relative: 1.0 1.0; to: "elm.icon.1"; offset: +8 +8;}
1001                                 }
1002                         }
1003                         part { name: "elm.icon.2.touch_area";
1004                                 type: SWALLOW;
1005                                 repeat_events, 0;
1006                                 description {
1007                                         state: "default" 0.0;
1008                                         color: 0 0 255 100;
1009                                         visible: 1;
1010                                         align: 0.5 0.5;
1011                                         fixed: 1 1;
1012                                         rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -6 -5;}
1013                                         rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +6 +5;}
1014                                 }
1015                                 description {
1016                                         state: "default" 0.1;
1017                                         inherit: "default" 0.0;
1018                                         rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -7 -7;}
1019                                         rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +7 +7;}
1020                                 }
1021                                 description {
1022                                         state: "default" 0.9;
1023                                         inherit: "default" 0.0;
1024                                         rel1 { relative: 0.0 0.0; to: "elm.icon.2"; offset: -9 -8;}
1025                                         rel2 { relative: 1.0 1.0; to: "elm.icon.2"; offset: +9 +8;}
1026                                 }
1027                         }
1028                         part { name: "elm.icon.1";
1029                                 type: SWALLOW;
1030                                 repeat_events, 1;
1031                                 description {
1032                                         state: "default" 0.0;
1033                                         visible: 1;
1034                                         align: 0.5 0;
1035                                         fixed: 1 1;
1036                                         min: 114 114;
1037                                         max: 114 114;
1038                                         rel1 { relative: 112/360 0; to: "base"; offset: 0 35;}
1039                                         rel2 { relative: 112/360 0; to: "base"; offset: 0 35;}
1040                                 }
1041                                 description {
1042                                         state: "default" 0.1;
1043                                         inherit: "default" 0.0;
1044                                         min: 114+(198-114)/2 114+(198-114)/2;
1045                                         max: 114+(198-114)/2 114+(198-114)/2;
1046                                         rel1 { relative: ((64+112)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
1047                                         rel2 { relative: ((64+112)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
1048                                 }
1049                                 description {
1050                                         state: "default" 0.9;
1051                                         inherit: "default" 0.0;
1052                                         min: 198 198;
1053                                         max: 198 198;
1054                                         rel1 { relative: 128/360 0; to: "base"; offset: 0 12;}
1055                                         rel2 { relative: 128/360 0; to: "base"; offset: 0 12;}
1056                                 }
1057                         }
1058                         part { name: "elm.icon.2";
1059                                 type: SWALLOW;
1060                                 repeat_events, 1;
1061                                 description {
1062                                         state: "default" 0.0;
1063                                         visible: 1;
1064                                         align: 0.5 0;
1065                                         fixed: 1 1;
1066                                         min: 114 114;
1067                                         max: 114 114;
1068                                         rel1 { relative: 249/360 0; to: "base"; offset: 0 35;}
1069                                         rel2 { relative: 249/360 0; to: "base"; offset: 0 35;}
1070                                 }
1071                                 description {
1072                                         state: "default" 0.1;
1073                                         inherit: "default" 0.0;
1074                                         min: 114+(198-114)/2 114+(99-114)/2;
1075                                         max: 114+(198-114)/2 114+(198-114)/2;
1076                                         rel1 { relative: ((249+297)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
1077                                         rel2 { relative: ((249+297)/2)/360 0; to: "base"; offset: 0 (35+12)/2;}
1078                                 }
1079                                 description {
1080                                         state: "default" 0.9;
1081                                         inherit: "default" 0.0;
1082                                         min: 198 198;
1083                                         max: 198 198;
1084                                         rel1 { relative: 297/360 0; to: "base"; offset: 0 12;}
1085                                         rel2 { relative: 297/360 0; to: "base"; offset: 0 12;}
1086                                 }
1087                         }
1088
1089                         PART(SPACER, "elm.padding.fake",
1090                                 DESC_TB("elm.padding.top","elm.padding.bottom",
1091                                         min: LIST_BUTTON_PADDING_CENTER_SIZE_INC 0;
1092                                         max: LIST_BUTTON_PADDING_CENTER_SIZE_INC -1;
1093                                         fixed: 1 0;
1094                                 )
1095                         )
1096                         PART(SPACER, "elm.padding.center",
1097                                 DESC_LTB("elm.padding.fake", "elm.padding.top", "elm.padding.bottom",
1098                                         min: LIST_BUTTON_PADDING_CENTER_SIZE_INC 0;
1099                                         max: LIST_BUTTON_PADDING_CENTER_SIZE_INC -1;
1100                                         fixed: 1 0;
1101                                 )
1102                         )
1103                         PART(SWALLOW, "elm.swallow.center_check",
1104                                 description { state: "default" 0.0;
1105                                         align: 0.5 0.5;
1106                                 }
1107                         )
1108                 }
1109 }