sync with tizen_2.0
[apps/core/preloaded/music-player.git] / layout / mp-play-view.edc
1 /* font name*/
2 #define FONT_TITLE_NAME "system_title"  //"system_title"
3 #define FONT_CONTENT_NAME "system_content"      //"system_content"
4 #define FONT_SUBCONTENT_NAME "system_subcontent"        //"system_subcontent"
5 #define ALBUMART_IMAGE_SHADOW_RGBA 0 0 0 0
6
7 #define ALBUM_IMG_H 481
8 #define TRACK_INFO_H 139
9 #define TRACK_TITLE_H 40
10 #define ALBUM_TITLE_H 36
11 #define ARTIST_TITLE_H 34
12 #define FAVOUR_ICON_H 34
13
14 /* main size */
15 #define HD_MAIN_W 720
16 #define HD_MAIN_H 1280
17
18 #define HD_STATUSBAR_H 50
19 #define HD_NAVIGATIONBAR_H 100
20
21 #define HD_PLAYVIEW_H (HD_MAIN_H-HD_STATUSBAR_H)
22 #define HD_PLAYVIEW_W HD_MAIN_W
23
24 #define PLAYVIEW_TITLE_H 108
25 #define PLAYVIEW_OPTION_H 64
26 #define PLAYVIEW_ALBUM_BG_H 843
27 #define PLAYVIEW_ALBUM_H 488
28 #define PLAYVIEW_ALBUM_W 488
29 #define PLAYVIEW_ALBUM_TOP_H 142
30 #define PLAYVIEW_ALBUM_BOTTOM_H 140
31 #define PLAYVIEW_MENU_H 96
32 #define PLAYVIEW_PROGRESSBAR_H 28
33 #define PLAYVIEW_PROGRESSBAR_PAD_MENU 48
34 #define PLAYVIEW_CONTROLBAR_H 115
35 #define PLAYVIEW_CONTROLBAR_PAD_PROGRESSBAR 27
36 #define PLAYVIEW_LYRIC_H 744
37
38 #define PLAYVIEW_TITLE_SX 0.0
39 #define PLAYVIEW_TITLE_EX 1.0
40 #define PLAYVIEW_TITLE_SY 0.0
41 #define PLAYVIEW_TITLE_EY PLAYVIEW_TITLE_H/HD_PLAYVIEW_H
42
43 #define PLAYVIEW_OPTION_SX 0.0
44 #define PLAYVIEW_OPTION_EX 1.0
45 #define PLAYVIEW_OPTION_SY PLAYVIEW_TITLE_EY
46 #define PLAYVIEW_OPTION_EY (PLAYVIEW_OPTION_SY+PLAYVIEW_OPTION_H/HD_PLAYVIEW_H)
47
48 #define PLAYVIEW_ALBUM_BG_SX 0.0
49 #define PLAYVIEW_ALBUM_BG_EX 1.0
50 #define PLAYVIEW_ALBUM_BG_SY PLAYVIEW_OPTION_EY
51 #define PLAYVIEW_ALBUM_BG_EY (PLAYVIEW_ALBUM_BG_SY+PLAYVIEW_ALBUM_BG_H/HD_PLAYVIEW_H)
52
53 #define PLAYVIEW_ALBUM_SX (1-PLAYVIEW_ALBUM_W/HD_PLAYVIEW_W)/2
54 #define PLAYVIEW_ALBUM_EX (1+PLAYVIEW_ALBUM_W/HD_PLAYVIEW_W)/2
55 #define PLAYVIEW_ALBUM_SY (PLAYVIEW_OPTION_EY+PLAYVIEW_ALBUM_TOP_H/HD_PLAYVIEW_H)
56 #define PLAYVIEW_ALBUM_EY (PLAYVIEW_OPTION_EY+(PLAYVIEW_ALBUM_TOP_H+PLAYVIEW_ALBUM_H)/HD_PLAYVIEW_H)
57
58 #define PLAYVIEW_LYRIC_SX 0.0
59 #define PLAYVIEW_LYRIC_EX 1.0
60 #define PLAYVIEW_LYRIC_SY PLAYVIEW_OPTION_EY
61 #define PLAYVIEW_LYRIC_EY (PLAYVIEW_LYRIC_SY+PLAYVIEW_LYRIC_H/HD_PLAYVIEW_H)
62
63 #define PLAYVIEW_MENU_SX 0.0
64 #define PLAYVIEW_MENU_EX 1.0
65 #define PLAYVIEW_MENU_SY PLAYVIEW_LYRIC_EY
66 #define PLAYVIEW_MENU_EY (PLAYVIEW_MENU_SY+PLAYVIEW_MENU_H/HD_PLAYVIEW_H)
67
68 #define PLAYVIEW_PROGRESSBAR_SX 0.0
69 #define PLAYVIEW_PROGRESSBAR_EX 1.0
70 #define PLAYVIEW_PROGRESSBAR_SY (PLAYVIEW_MENU_EY+PLAYVIEW_PROGRESSBAR_PAD_MENU/HD_PLAYVIEW_H)
71 #define PLAYVIEW_PROGRESSBAR_EY (PLAYVIEW_PROGRESSBAR_SY+PLAYVIEW_PROGRESSBAR_H/HD_PLAYVIEW_H)
72
73 #define PLAYVIEW_CONTROLBAR_SX 0.0
74 #define PLAYVIEW_CONTROLBAR_EX 1.0
75 #define PLAYVIEW_CONTROLBAR_SY (PLAYVIEW_PROGRESSBAR_EY+PLAYVIEW_CONTROLBAR_PAD_PROGRESSBAR/HD_PLAYVIEW_H)
76 #define PLAYVIEW_CONTROLBAR_EY 1.0
77
78 #define FLICK_TIMER 0.35
79 #define PLAYVIEW_IMAGE_SHADOW "player/T02_Album_art_image_Shadow.png"
80
81 #define PLAYVIEW_VOLUME_W       626
82 #define PLAYVIEW_VOLUME_H       112
83 #define PLAYVIEW_VOLUME_SX      (((HD_PLAYVIEW_W-PLAYVIEW_VOLUME_W)/2)/PLAYVIEW_VOLUME_W)
84 #define PLAYVIEW_VOLUME_SY      (798/HD_PLAYVIEW_H)
85 #define PLAYVIEW_VOLUME_EX      (1-PLAYVIEW_VOLUME_SX)
86 #define PLAYVIEW_VOLUME_EY      ((798+PLAYVIEW_VOLUME_H)/HD_PLAYVIEW_H)
87
88 #define PLAYVIEW_SELECTINFO_H   114
89
90 #define LRC_PROG \
91                         program {\
92                                 signal: "lrc_invisible";\
93                                 source: "lrc";\
94                                 action:   STATE_SET "default" 0.0;\
95                                 target: "lrc";\
96                                 transition: LINEAR 0.3;\
97                         }\
98                         program {\
99                                 signal: "lrc_visible";\
100                                 source: "lrc";\
101                                 action:   STATE_SET "show" 0.0;\
102                                 target: "lrc";\
103                                 transition: LINEAR 0.3;\
104                         }\
105                         program {\
106                                 signal: "lrc_destroy";\
107                                 source: "lrc";\
108                                 action:   STATE_SET "default" 0.0;\
109                                 target: "lrc";\
110                         }
111
112 #define OPT_PROG \
113                         program {\
114                                 name: "option_menu_invisible" ;\
115                                 signal: "option_menu_invisible";\
116                                 source: "player_option_menu";\
117                                 action:   STATE_SET "invisible" 0.0;\
118                                 target: "player_option_menu";\
119                                 transition: LINEAR 0.3;\
120                                 after :"option_hide_done";\
121                         }\
122                         program {\
123                                 name: "option_hide_done";\
124                                 signal: "option_hide";\
125                                 source: "player_option_menu";\
126                                 action:   STATE_SET "invisible" 1.0;\
127                                 target: "player_option_menu";\
128                         }\
129                         program {\
130                                 name: "option_menu_visible" ;\
131                                 signal: "option_menu_visible";\
132                                 source: "player_option_menu";\
133                                 action:   STATE_SET "default" 0.0;\
134                                 target: "player_option_menu";\
135                                 transition: LINEAR 0.3;\
136                         }
137
138
139 group {
140     name: "mp_play_view_layout";
141
142     parts {
143             part {
144                     name: "bg";
145                     mouse_events: 0;
146                     type: RECT;
147                     description {
148                             state: "default" 0.0;
149                             visible: 1;
150                             rel1 { relative: 0.0 0.0;}
151                             rel2 { relative: 1.0 1.0;}
152                             color: 0 0 0 255;
153                     }
154             }
155
156             part{
157                     name : "bg_base";
158                     type: RECT;
159                     mouse_events:1;
160                     scale : 1;
161                     description {
162                             visible:1;
163                             color: 0 0 0 0;
164                             state: "default" 0.0;
165                             rel1 { relative: 0.0 0.0;to: "bg";}
166                             rel2 { relative: 1.0 1.0;to: "bg";}
167                     }
168             }
169
170             part {
171                     name: "bg_clipper";
172                     mouse_events: 0;
173                     type: RECT;
174                     description {
175                             state: "default" 0.0;
176                             visible: 1;
177                             rel1 { relative: 0.0 0.0;
178                             offset : 0 0; to: "bg_base";}
179                             rel2 { relative: 1.0 1.0; to: "bg_base";}
180                             color: 255 255 255 255;
181                     }
182             }
183
184             part {
185                     name : "bg_list_content";
186                     type: SWALLOW;
187                     mouse_events: 1;
188                     repeat_events: 1;
189                     scale: 1;
190                     clip_to : "bg_clipper";
191                     description {
192                             visible:1;
193                             fixed: 1 1;
194                             state: "default" 0.0;
195                             rel1 { relative: 0.0 0.0;to: "bg_base";}
196                             rel2 { relative: 1.0 1.0;to: "bg_base";}
197                     }
198                     description {
199                             visible:0;
200                             fixed: 1 1;
201                             state: "invisible" 0.0;
202                             rel1 { relative: 0.0 0.0;to: "bg_base";}
203                             rel2 { relative: 1.0 1.0;to: "bg_base";}
204                     }
205                     description {
206                             visible:1;
207                             fixed: 1 1;
208                             state: "left" 0.0;
209                             rel1 { relative: -1.0 0.0;to: "bg_base";}
210                             rel2 { relative: 0.0 1.0;to: "bg_base";}
211                     }
212                     description {
213                             visible:1;
214                             fixed: 1 1;
215                             state: "right" 0.0;
216                             rel1 { relative: 1.0.0 0.0;to: "bg_base";}
217                             rel2 { relative: 2.0 1.0;to: "bg_base";}
218                     }
219             }
220
221             part {
222                     name : "bg_list_content_temp";
223                     type: SWALLOW;
224                     mouse_events: 1;
225                     repeat_events: 1;
226                     scale: 1;
227                     clip_to : "bg_clipper";
228                     description {
229                             visible:1;
230                             fixed: 1 1;
231                             state: "default" 0.0;
232                             rel1 { relative: 0.0 0.0;to: "bg_base";}
233                             rel2 { relative: 1.0 1.0;to: "bg_base";}
234                     }
235                     description {
236                             visible:0;
237                             fixed: 1 1;
238                             state: "invisible" 0.0;
239                             rel1 { relative: 0.0 0.0;to: "bg_base";}
240                             rel2 { relative: 1.0 1.0;to: "bg_base";}
241                     }
242                     description {
243                             visible:1;
244                             fixed: 1 1;
245                             state: "left" 0.0;
246                             rel1 { relative: -1.0 0.0;to: "bg_base";}
247                             rel2 { relative: 0.0 1.0;to: "bg_base";}
248                     }
249                     description {
250                             visible:1;
251                             fixed: 1 1;
252                             state: "right" 0.0;
253                             rel1 { relative: 1.0.0 0.0;to: "bg_base";}
254                             rel2 { relative: 2.0 1.0;to: "bg_base";}
255                     }
256             }
257
258             part{
259                     name : "player_info";
260                     type: SWALLOW;
261                     mouse_events:1;
262                     scale : 1;
263                     description {
264                             visible:1;
265                             color: 0 0 0 0;
266                             state: "default" 0.0;
267                             rel1 { relative: PLAYVIEW_TITLE_SX PLAYVIEW_TITLE_SY; to: "bg";}
268                             rel2 { relative: PLAYVIEW_TITLE_EX PLAYVIEW_TITLE_EY; to: "bg";}
269                     }
270                     description {
271                                                         state: "hide" 0.0;
272                                                         inherit: "default" 0.0;
273                                                         visible:0;
274                                         }
275             }
276
277             part{
278                     name : "player_options";
279                     type: SWALLOW;
280                     mouse_events:1;
281                     scale : 1;
282                     description {
283                             visible:1;
284                             color: 0 0 0 0;
285                             state: "default" 0.0;
286                             rel1 { relative: PLAYVIEW_OPTION_SX PLAYVIEW_OPTION_SY; to: "bg";}
287                             rel2 { relative: PLAYVIEW_OPTION_EX PLAYVIEW_OPTION_EY; to: "bg";}
288                     }
289                     description {
290                                                         state: "hide" 0.0;
291                                                         inherit: "default" 0.0;
292                                                         visible:0;
293                                         }
294             }
295
296             part {
297                     name : "list_content";
298                     type: SWALLOW;
299                     mouse_events: 1;
300                     repeat_events: 1;
301                     scale: 1;
302                     clip_to : "bg_clipper";
303                     description {
304                             visible:1;
305                             //min: PLAYVIEW_ALBUM_W PLAYVIEW_ALBUM_H;
306                             //max: PLAYVIEW_ALBUM_W PLAYVIEW_ALBUM_H;
307                             fixed: 1 1;
308                             align: 0.5 0.5;
309                             state: "default" 0.0;
310                             rel1 { relative: PLAYVIEW_ALBUM_SX PLAYVIEW_ALBUM_SY;to: "bg_base";}
311                             rel2 { relative: PLAYVIEW_ALBUM_EX PLAYVIEW_ALBUM_EY;to: "bg_base";}
312                     }
313                     description {
314                             visible:0;
315                             fixed: 1 1;
316                             align: 0.5 0.5;
317                             state: "invisible" 0.0;
318                             rel1 { relative: PLAYVIEW_ALBUM_SX PLAYVIEW_ALBUM_SY;to: "bg_base";}
319                             rel2 { relative: PLAYVIEW_ALBUM_EX PLAYVIEW_ALBUM_EY;to: "bg_base";}
320                     }
321                     description {
322                             visible:1;
323                             fixed: 1 1;
324                             align: 0.5 0.5;
325                             state: "left" 0.0;
326                             rel1 { relative: (-1.0+PLAYVIEW_ALBUM_SX) PLAYVIEW_ALBUM_SY;to: "bg_base";}
327                             rel2 { relative: (-1.0+PLAYVIEW_ALBUM_EX) PLAYVIEW_ALBUM_EY;to: "bg_base";}
328                     }
329                     description {
330                             visible:1;
331                             fixed: 1 1;
332                             align: 0.5 0.5;
333                             state: "right" 0.0;
334                             rel1 { relative: (1.0+PLAYVIEW_ALBUM_SX) PLAYVIEW_ALBUM_SY;to: "bg_base";}
335                             rel2 { relative: (1.0+PLAYVIEW_ALBUM_EX) PLAYVIEW_ALBUM_EY;to: "bg_base";}
336                     }
337             }
338
339             part {
340                     name : "list_content_temp";
341                     type: SWALLOW;
342                     mouse_events: 1;
343                     repeat_events: 1;
344                     scale: 1;
345                     clip_to : "bg_clipper";
346                     description {
347                             visible:1;
348                             fixed: 1 1;
349                             align: 0.5 0.5;
350                             state: "default" 0.0;
351                             rel1 { relative: PLAYVIEW_ALBUM_SX PLAYVIEW_ALBUM_SY;to: "bg_base";}
352                             rel2 { relative: PLAYVIEW_ALBUM_EX PLAYVIEW_ALBUM_EY;to: "bg_base";}
353                     }
354                     description {
355                             visible:0;
356                             fixed: 1 1;
357                             align: 0.5 0.5;
358                             state: "invisible" 0.0;
359                             rel1 { relative: PLAYVIEW_ALBUM_SX PLAYVIEW_ALBUM_SY;to: "bg_base";}
360                             rel2 { relative: PLAYVIEW_ALBUM_EX PLAYVIEW_ALBUM_EY;to: "bg_base";}
361                     }
362                     description {
363                             visible:1;
364                             fixed: 1 1;
365                             align: 0.5 0.5;
366                             state: "left" 0.0;
367                             rel1 { relative: (-1.0+PLAYVIEW_ALBUM_SX) PLAYVIEW_ALBUM_SY;to: "bg_base";}
368                             rel2 { relative: (-1.0+PLAYVIEW_ALBUM_EX) PLAYVIEW_ALBUM_EY;to: "bg_base";}
369                     }
370                     description {
371                             visible:1;
372                             fixed: 1 1;
373                             align: 0.5 0.5;
374                             state: "right" 0.0;
375                             rel1 { relative: (1.0+PLAYVIEW_ALBUM_SX) PLAYVIEW_ALBUM_SY;to: "bg_base";}
376                             rel2 { relative: (1.0+PLAYVIEW_ALBUM_EX) PLAYVIEW_ALBUM_EY;to: "bg_base";}
377                     }
378             }
379
380                         part {
381                     name: "lrc";
382                     type: SWALLOW;
383                     mouse_events: 1;
384                     repeat_events: 1;
385                     description {
386                             state: "default" 0.0;
387                             visible: 1;
388                             rel1 { relative: PLAYVIEW_LYRIC_SX PLAYVIEW_LYRIC_SY; offset: 0 -1; to: "bg";}
389                             rel2 { relative: PLAYVIEW_LYRIC_EX PLAYVIEW_LYRIC_EY; offset: 0 -1; to: "bg";}
390                     }
391                     description {
392                             state: "show" 0.0;
393                             visible: 1;
394                             rel1 { relative: PLAYVIEW_LYRIC_SX PLAYVIEW_LYRIC_SY; offset: 0 -1; to: "bg";}
395                             rel2 { relative: PLAYVIEW_LYRIC_EX PLAYVIEW_LYRIC_EY; offset: 0 -1; to: "bg";}
396                     }
397             }
398
399             part {
400                     name: "bottom_bg";
401                     type: RECT;
402                     mouse_events: 1;
403                     description {
404                             state: "default" 0.0;
405                             visible: 1;
406                                                         rel1 { relative: 0.0 PLAYVIEW_MENU_SY; to: "bg";}
407                             rel2 { relative: 1.0 1.0; offset: 0 1; to: "bg";}
408                             color: 0 0 0 204;
409                     }
410                     description {
411                                                         state: "hide" 0.0;
412                                                         inherit: "default" 0.0;
413                                                         visible:0;
414                                         }
415             }
416
417             part {
418                     name: "separate_line";
419                     type: RECT;
420                     mouse_events: 1;
421                     description {
422                             state: "default" 0.0;
423                             visible: 1;
424                                                         rel1 { relative: 0.0 0.0; offset: 0 -1; to: "bottom_bg";}
425                             rel2 { relative: 1.0 0.0; offset: 0 0; to: "bg";}
426                             color: 255 255 255 179;
427                     }
428                     description {
429                                                         state: "hide" 0.0;
430                                                         inherit: "default" 0.0;
431                                                         visible:0;
432                                         }
433             }
434
435             part {
436                                         name: "player_option_menu";
437                                         type: SWALLOW;
438                                         mouse_events: 1;
439                                         description {
440                                                         state: "default" 0.0;
441                                                         rel1 { relative: PLAYVIEW_MENU_SX PLAYVIEW_MENU_SY; to: "bg";}
442                                         rel2 { relative: PLAYVIEW_MENU_EX PLAYVIEW_MENU_EY; to: "bg";}
443                                                         color: 35 35 35 0;
444                                         }
445                                         description {
446                                                         state: "invisible" 0.0;
447                                                         inherit: "default" 0.0;
448                                                         rel1 { relative: PLAYVIEW_MENU_SX PLAYVIEW_MENU_SY; to: "bg";}
449                                         rel2 { relative: PLAYVIEW_MENU_EX PLAYVIEW_MENU_EY; to: "bg";}
450                     }
451                     description {
452                                                         state: "invisible" 1.0;
453                                                         inherit: "invisible" 0.0;
454                                                         visible: 0;
455                     }
456                     description {
457                                                         state: "hide" 0.0;
458                                                         inherit: "default" 0.0;
459                                                         visible:0;
460                                         }
461             }
462
463                         part {
464                     name: "controlbar_bg";
465                     type: RECT;
466                     mouse_events: 1;
467                     description {
468                             state: "default" 0.0;
469                             visible: 1;
470                                                         rel1 { relative: 0.0 (1-215/HD_PLAYVIEW_H); to: "bg";}
471                             rel2 { relative: 1.0 1.0; offset: 0 1; to: "bg";}
472                             color: 0 0 0 0;
473                     }
474                     description {
475                                                         state: "hide" 0.0;
476                                                         inherit: "default" 0.0;
477                                                         visible:0;
478                                         }
479             }
480
481             part {
482                     name: "player_progress";
483                     type: SWALLOW;
484                     mouse_events: 1;
485                     description {
486                             state: "default" 0.0;
487                             visible: 1;
488                                                         rel1 { relative: PLAYVIEW_PROGRESSBAR_SX PLAYVIEW_PROGRESSBAR_SY; to: "bg";}
489                             rel2 { relative: PLAYVIEW_PROGRESSBAR_EX PLAYVIEW_PROGRESSBAR_EY; to: "bg";}
490                     }
491                     description {
492                                                         state: "hide" 0.0;
493                                                         inherit: "default" 0.0;
494                                                         visible:0;
495                                         }
496             }
497
498             part {
499                     name : "elm.swallow.controlbar";
500                     type: SWALLOW;
501                     mouse_events:1;
502                     scale : 1;
503                     description {
504                             visible:1;
505                             state: "default" 0.0;
506                                                         rel1 { relative: PLAYVIEW_CONTROLBAR_SX PLAYVIEW_CONTROLBAR_SY; to: "bg";}
507                             rel2 { relative: PLAYVIEW_CONTROLBAR_EX PLAYVIEW_CONTROLBAR_EY; to: "bg";}
508                     }
509                     description {
510                                                         state: "hide" 0.0;
511                                                         inherit: "default" 0.0;
512                                                         visible:0;
513                                         }
514             }
515
516                         part  { name: "volume_layout";
517                                 type: SWALLOW;
518                                 scale: 1;
519                                 description { state: "default" 0.0;
520                                         rel1 { relative: PLAYVIEW_VOLUME_SX PLAYVIEW_VOLUME_SY; to: "bg"; }
521                                         rel2 { relative: PLAYVIEW_VOLUME_EX PLAYVIEW_VOLUME_EY; to: "bg"; }
522                                 }
523                         }
524         }
525
526         programs {
527                 LRC_PROG
528
529                 #if 0
530                 OPT_PROG
531             #endif
532                  program { name: "flick_left";
533                         signal: "flick_left";
534                         source: "list_content";
535                         action: STATE_SET "left" 0.0;
536                         target: "bg_list_content";
537                         target: "list_content";
538                         transition: LINEAR FLICK_TIMER;
539                  }
540                  program { name: "flick_right";
541                         signal: "flick_right";
542                         source: "list_content";
543                         action: STATE_SET "right" 0.0;
544                         target: "bg_list_content";
545                         target: "list_content";
546                         transition: LINEAR FLICK_TIMER;
547                  }
548                   program { name: "set_right";
549                         signal: "set_right";
550                         source: "list_content_temp";
551                         action: STATE_SET "right" 0.0;
552                         target: "bg_list_content_temp";
553                         target: "list_content_temp";
554                  }
555                  program { name: "set_left";
556                         signal: "set_left";
557                         source: "list_content_temp";
558                         action: STATE_SET "left" 0.0;
559                         target: "bg_list_content_temp";
560                         target: "list_content_temp";
561                  }
562                   program { name: "set_default";
563                         signal: "set_default";
564                         source: "list_content_temp";
565                         action: STATE_SET "default" 0.0;
566                         target: "bg_list_content_temp";
567                         target: "list_content_temp";
568                         transition: LINEAR FLICK_TIMER;
569                         after :"list_content_transit_done";
570                  }
571                  program { name: "set_default_list";
572                         signal: "set_default";
573                         source: "list_content";
574                         action: STATE_SET "default" 0.0;
575                         target: "bg_list_content";
576                         target: "list_content";
577                 }
578                  program { name : "list_content_transit_done";
579                          signal: "transit_done";
580                          source: "list_content";
581                         script {
582                                 emit("transit_done", "list");
583                 }
584                 in: 0.0 0.0;  //delay
585                 after :"set_default_parts";
586                 }
587                  program { name : "list_temp_transit_done";
588                          signal: "transit_done";
589                          source: "list_content_temp";
590                         script {
591                                 emit("transit_done", "temp");
592             }
593                 }
594                  program { name: "set_default_parts";
595                         signal: "set_default";
596                         source: "mp_play_view_layout";
597                         action: STATE_SET "default" 0.0;
598                         target: "player_info";
599                         target: "player_options";
600                         target: "player_option_menu";
601                         target: "controlbar_bg";
602                         target: "player_progress";
603                         target: "bottom_bg";
604                         target: "separate_line";
605                         target: "elm.swallow.controlbar";
606                 }
607                 program { name: "set_hide_parts";
608                         signal: "set_hide";
609                         source: "mp_play_view_layout";
610                         action: STATE_SET "hide" 0.0;
611                         target: "player_info";
612                         target: "player_options";
613                         target: "player_option_menu";
614                         target: "controlbar_bg";
615                         target: "player_progress";
616                         target: "bottom_bg";
617                         target: "separate_line";
618                         target: "elm.swallow.controlbar";
619                 }
620         }
621 }
622
623 group {  name : "mp_play_view";
624
625         images {
626         image:  "T02_controls_bg_shadow.png" COMP;
627         image:  "music_player_bg.PNG" COMP;
628         image:  "music_popup_mute.png" COMP;
629         image:  "allshare_dmr_icon.png" COMP;
630         image:  PLAYVIEW_IMAGE_SHADOW COMP;
631     }
632
633         parts {
634
635                 part {
636                         name: "bg";
637                         type: SWALLOW;
638                         scale: 1;
639                         mouse_events: 0;
640                         description {
641                                 state: "default" 0.0;
642                                 visible: 0;
643                                 rel1 { relative: 0.0 0.0;}
644                                 rel2 { relative: 1.0 1.0; }
645                         }
646                 }
647
648                 part {
649                         name: "album_shadow_bg";
650                         type: IMAGE;
651                         mouse_events: 0;
652                         scale: 1;
653                         description { state: "default" 0.0;
654                                 visible: 1;
655                                 rel1 { relative: 0 0; offset: -19 -19; to: "bg";}
656                                 rel2 { relative: 1 1; offset: 19 19; to: "bg";}
657                                 image {
658                                         normal : PLAYVIEW_IMAGE_SHADOW;
659                                         border: 19 19 19 19;
660                                         border_scale: 1;
661                                 }
662                         }
663                 }
664
665                 part {
666                         name: "album_bg";
667                         type: SWALLOW;
668                         mouse_events: 0;
669                         scale: 1;
670                         description {
671                                 state: "default" 0.0;
672                                 visible: 1;
673                                 rel1 { relative: 0 0; to: "bg";}
674                                 rel2 { relative: 1 1; to: "bg";}
675                         }
676                 }
677
678                 part {
679                         name: "album_art";
680                         type: SWALLOW;
681                         mouse_events: 0;
682                         scale: 1;
683                         description {
684                                 state: "default" 0.0;
685                                 visible: 1;
686                                 rel1 { relative: 0 0; to: "bg";}
687                                 rel2 { relative: 1 1; to: "bg";}
688                         }
689                 }
690
691                 part { name: "event_box";
692                         type : SWALLOW;
693                         mouse_events: 1;
694                         scale: 1;
695                         description { state: "default" 0.0;
696                                 visible: 1;
697                                 rel1 { relative: ((0-(HD_PLAYVIEW_W-PLAYVIEW_ALBUM_W)/2)/PLAYVIEW_ALBUM_W) (-PLAYVIEW_ALBUM_TOP_H/PLAYVIEW_ALBUM_H); to: "album_bg"; }
698                                 rel2 { relative: (1.0+((HD_PLAYVIEW_W-PLAYVIEW_ALBUM_W)/2)/PLAYVIEW_ALBUM_W)) (1.0+PLAYVIEW_ALBUM_BOTTOM_H/PLAYVIEW_ALBUM_H); to: "album_bg"; }
699                         }
700                 }
701
702                 /* streaming buffering area */
703                 part {
704                         name: "buffering_area";
705                         type: SWALLOW;
706                         mouse_events: 0;
707                         scale: 1;
708                         description {
709                                 state: "default" 0.0;
710                                 visible: 1;
711                                 min: 100 100;
712                                 align: 1.0 1.0;
713                                 fixed: 1 1;
714                                 rel1 { relative: 1.0 1.0; to: "album_art"; }
715                                 rel2 { relative: 1.0 1.0; to: "album_art"; }
716                         }
717                 }
718
719                 /* allshare DMR icon */
720                 part {
721                         name: "dmr_icon";
722                         type: IMAGE;
723                         mouse_events: 1;
724                         scale: 1;
725                         description {
726                                 state: "default" 0.0;
727                                 visible: 0;
728                                 min: 60 80;
729                                 align: 0.0 1.0;
730                                 fixed: 1 1;
731                                 rel1 { relative: 0.0 1.0; offset: 30 -10; to: "album_art"; }
732                                 rel2 { relative: 0.0 1.0; offset: 30 -10; to: "album_art"; }
733                                 image { normal: "allshare_dmr_icon.png"; }
734                         }
735                         description {
736                                 state: "show" 0.0;
737                                 inherit: "default" 0.0;
738                                 visible: 1;
739                         }
740                 }
741
742
743         }
744
745         programs {
746
747                 /* allshare DMR icon */
748                 program {
749                         source: "dmr_icon";
750                         signal: "mouse,clicked,1";
751                         action: SIGNAL_EMIT "dmr_icon_clicked" "ctrl_edj";
752                 }
753
754                 program {
755                         signal: "show_dmr_icon";
756                         source: "*";
757                         action: STATE_SET "show" 0.0;
758                         target: "dmr_icon";
759                 }
760
761                 program {
762                         signal: "hide_dmr_icon";
763                         source: "*";
764                         action: STATE_SET "default" 0.0;
765                         target: "dmr_icon";
766                 }
767         }
768 }
769
770 group {  name : "mp_play_view_bg";
771
772         images {
773         image:  "T02_controls_bg_shadow.png" COMP;
774         image:  "music_player_bg.PNG" COMP;
775         image:  "music_popup_mute.png" COMP;
776         image:  "allshare_dmr_icon.png" COMP;
777     }
778
779         parts {
780
781                 part {
782                         name: "bg";
783                         type: SWALLOW;
784                         scale: 1;
785                         mouse_events: 0;
786                         description {
787                                 state: "default" 0.0;
788                                 visible: 0;
789                                 rel1 { relative: 0.0 0.0;}
790                                 rel2 { relative: 1.0 1.0; }
791                         }
792                 }
793
794                 part {
795                         name: "album_bg";
796                         type: SWALLOW;
797                         mouse_events: 0;
798                         scale: 1;
799                         description {
800                                 state: "default" 0.0;
801                                 visible: 1;
802                                 rel1 { relative: 0.0 0.0; to: "bg";}
803                                 rel2 { relative: 1.0 1.0; to: "bg";}
804                         }
805                 }
806
807                 part {
808                         name: "album_art";
809                         type: SWALLOW;
810                         mouse_events: 0;
811                         scale: 1;
812                         description {
813                                 state: "default" 0.0;
814                                 visible: 1;
815                                 rel1 { relative: 0.0 0.0; to: "bg";}
816                                 rel2 { relative: 1.0 1.0; to: "bg";}
817                         }
818                 }
819
820                 part { name: "event_box";
821                         type : SWALLOW;
822                         mouse_events: 1;
823                         scale: 1;
824                         description { state: "default" 0.0;
825                                 visible: 1;
826                                 rel1 { relative: 0.0 0.0; to: "album_bg"; }
827                                 rel2 { relative: 1.0 1.0; to: "album_bg"; }
828                         }
829                 }
830
831                 /* streaming buffering area */
832                 part {
833                         name: "buffering_area";
834                         type: SWALLOW;
835                         mouse_events: 0;
836                         scale: 1;
837                         description {
838                                 state: "default" 0.0;
839                                 visible: 1;
840                                 min: 100 100;
841                                 align: 1.0 1.0;
842                                 fixed: 1 1;
843                                 rel1 { relative: 1.0 1.0; to: "album_art"; }
844                                 rel2 { relative: 1.0 1.0; to: "album_art"; }
845                         }
846                 }
847
848                 /* allshare DMR icon */
849                 part {
850                         name: "dmr_icon";
851                         type: IMAGE;
852                         mouse_events: 1;
853                         scale: 1;
854                         description {
855                                 state: "default" 0.0;
856                                 visible: 0;
857                                 min: 60 80;
858                                 align: 0.0 1.0;
859                                 fixed: 1 1;
860                                 rel1 { relative: 0.0 1.0; offset: 30 -10; to: "album_art"; }
861                                 rel2 { relative: 0.0 1.0; offset: 30 -10; to: "album_art"; }
862                                 image { normal: "allshare_dmr_icon.png"; }
863                         }
864                         description {
865                                 state: "show" 0.0;
866                                 inherit: "default" 0.0;
867                                 visible: 1;
868                         }
869                 }
870
871
872         }
873
874         programs {
875
876                 /* allshare DMR icon */
877                 program {
878                         source: "dmr_icon";
879                         signal: "mouse,clicked,1";
880                         action: SIGNAL_EMIT "dmr_icon_clicked" "ctrl_edj";
881                 }
882
883                 program {
884                         signal: "show_dmr_icon";
885                         source: "*";
886                         action: STATE_SET "show" 0.0;
887                         target: "dmr_icon";
888                 }
889
890                 program {
891                         signal: "hide_dmr_icon";
892                         source: "*";
893                         action: STATE_SET "default" 0.0;
894                         target: "dmr_icon";
895                 }
896         }
897 }
898
899 #define PLAYVIEW_H_LANDSCAPE HD_MAIN_W
900 #define PLAYVIEW_CONTROLBAR_H_LANDSCAPE 128
901
902 group {
903         name: "landscape_layout";
904
905         parts {
906
907                 part { name: "bg";
908                         mouse_events: 0;
909                         type: RECT;
910                         description { state: "default" 0.0;
911                                 visible: 1;
912                                 rel1 { relative: 0.0 0.0;}
913                                 rel2 { relative: 1.0 1.0;}
914                                 color: 37 37 37 255;
915                         }
916                 }
917
918                 part {
919                         name : "list_content";
920                         type: SWALLOW;
921                         mouse_events: 1;
922                         scale: 1;
923                         description {
924                                 visible:1;
925                                 min: 100 100;
926                                 fixed: 1 1;
927                                 state: "default" 0.0;
928                                 rel1 { relative: 0.0 0.0;to: "bg";}
929                                 rel2 { relative: 1.0 1.0;to: "bg";}
930                         }
931                 }
932
933                 part {
934                         name : "elm.swallow.controlbar";
935                         type: SWALLOW;
936                         mouse_events:1;
937                         scale : 1;
938                         description {
939                                 visible:1;
940                                 state: "default" 0.0;
941                                 rel1 { relative: 0.0 (PLAYVIEW_H_LANDSCAPE-PLAYVIEW_CONTROLBAR_H_LANDSCAPE)/PLAYVIEW_H_LANDSCAPE; to: "bg";}
942                                 rel2 { relative: 1.0 1.0;to: "bg";}
943                         }
944                 }
945         }
946 }
947
948 group {
949         name: "empty_layout";
950         parts {
951
952                 part { name: "bg";
953                         mouse_events: 0;
954                         type: RECT;
955                         description { state: "default" 0.0;
956                                 visible: 1;
957                                 rel1 { relative: 0.0 0.0;
958                                                 offset : 0 0;}
959                                 rel2 { relative: 1.0 1.0;}
960                                 color: 0 0 0 255;
961                         }
962                 }
963         }
964 }
965
966 #define TITLE_BOX_H 108
967 #define TITLE_BOX_W 720
968
969 #define TITLE_SONG_TITLE_H 48
970 #define TITLE_ARTIST_NAME_H 40
971
972 #define TITILE_PAD 10
973
974 #define TITILE_ICON_PAD 2
975 #define TITILE_ICON_W 120
976
977 #define TITLE_SOUND_PATH_BG_SX ((TITLE_BOX_W-TITILE_ICON_W)/TITLE_BOX_W)
978 #define TITLE_SOUND_PATH_BG_SY TITILE_PAD/TITLE_BOX_H
979 #define TITLE_SOUND_PATH_BG_EX 1.0
980 #define TITLE_SOUND_PATH_BG_EY ((TITLE_BOX_H-TITILE_PAD)/TITLE_BOX_H)
981
982 #define TITLE_NEARBY_DEVICE_BG_SX ((TITLE_BOX_W-TITILE_ICON_W*2-TITILE_ICON_PAD)/TITLE_BOX_W)
983 #define TITLE_NEARBY_DEVICE_BG_SY TITLE_SOUND_PATH_BG_SY
984 #define TITLE_NEARBY_DEVICE_BG_EX (TITLE_SOUND_PATH_BG_SX-TITILE_ICON_PAD/TITLE_BOX_W)
985 #define TITLE_NEARBY_DEVICE_BG_EY TITLE_SOUND_PATH_BG_EY
986
987 #define TITLE_SONG_TITLE_SX (TITILE_PAD/TITLE_BOX_W)
988 #define TITLE_SONG_TITLE_SY (TITILE_PAD/TITLE_BOX_H)
989 #define TITLE_SONG_TITLE_EX (TITLE_NEARBY_DEVICE_BG_SX-TITILE_PAD/TITLE_BOX_W)
990 #define TITLE_SONG_TITLE_EY ((TITLE_SONG_TITLE_H+TITILE_PAD)/TITLE_BOX_H)
991
992 #define TITLE_ARTIST_NAME_SX TITLE_SONG_TITLE_SX
993 #define TITLE_ARTIST_NAME_SY TITLE_SONG_TITLE_EY
994 #define TITLE_ARTIST_NAME_EX TITLE_SONG_TITLE_EX
995 #define TITLE_ARTIST_NAME_EY ((TITLE_BOX_H-TITILE_PAD)/TITLE_BOX_H)
996
997 group {
998         name: "player_view_info";
999
1000         images {
1001                 image:  "T02_title_icon_nearby_device.png" COMP;
1002                 image:  "T02_title_icon_sound_path.png" COMP;
1003         }
1004
1005         parts {
1006
1007                 part { name: "bg";
1008                         mouse_events: 0;
1009                         type : RECT;
1010                         description { state: "default" 0.0;
1011                                 visible: 1;
1012                                 rel1 { relative: 0.0 0.0;}
1013                                 rel2 { relative: 1.0 1.0;}
1014                                 color: 0 0 0 51;
1015                         }
1016                 }
1017
1018                 part { name: "sound_path";
1019                         mouse_events: 1;
1020                         type : SWALLOW;
1021                         description { state: "default" 0.0;
1022                                 rel1 { relative: TITLE_SOUND_PATH_BG_SX TITLE_SOUND_PATH_BG_SY;to: "bg";}
1023                                 rel2 { relative: TITLE_SOUND_PATH_BG_EX TITLE_SOUND_PATH_BG_EY;to: "bg";}
1024                         }
1025                 }
1026
1027                 part { name: "nearby_dmr";
1028                         mouse_events: 1;
1029                         type : SWALLOW;
1030                         description { state: "default" 0.0;
1031                                 rel1 { relative: TITLE_NEARBY_DEVICE_BG_SX TITLE_NEARBY_DEVICE_BG_SY;to: "bg";}
1032                                 rel2 { relative: TITLE_NEARBY_DEVICE_BG_EX TITLE_NEARBY_DEVICE_BG_EY;to: "bg";}
1033                         }
1034                 }
1035
1036                 part {
1037                         name : "title";
1038                         type: TEXT;
1039                         mouse_events: 1;
1040                         scale: 1;
1041                         description {
1042                                 visible:1;
1043                                 state: "default" 0.0;
1044                                 rel1 { relative: TITLE_SONG_TITLE_SX TITLE_SONG_TITLE_SY;to: "bg";}
1045                                 rel2 { relative: TITLE_SONG_TITLE_EX TITLE_SONG_TITLE_EY;to: "bg";}
1046                                 text {
1047                                         font: FONT_STYLE_ROMAN;
1048                                         text_class: "slp_roman";
1049                                         size: 38;
1050                                         align: 0.0 0.5;
1051                                 }
1052                                 color: 255 255 255 255;
1053                         }
1054                 }
1055                 part {
1056                         name : "artist_name";
1057                         type: TEXT;
1058                         mouse_events: 1;
1059                         scale: 1;
1060                         description {
1061                                 visible:1;
1062                                 state: "default" 0.0;
1063                                 rel1 { relative: TITLE_ARTIST_NAME_SX TITLE_ARTIST_NAME_SY;to: "bg";}
1064                                 rel2 { relative: TITLE_ARTIST_NAME_EX TITLE_ARTIST_NAME_EY;to: "bg";}
1065                                 text {
1066                                         font: FONT_STYLE_ROMAN;
1067                                         text_class: "slp_roman";
1068                                         size: 32;
1069                                         align: 0.0 0.5;
1070                                 }
1071                                 color: 255 255 255 255;
1072                         }
1073                 }
1074
1075                 part { name: "separate_line";
1076                         mouse_events: 0;
1077                         type : RECT;
1078                         description { state: "default" 0.0;
1079                                 visible: 1;
1080                                 align: 0.0 0.0;
1081                                 rel1 { relative: 0.0 1.0; offset: 0 -1; to: "bg";}
1082                                 rel2 { relative: 1.0 1.0; to: "bg";}
1083                                 color: 255 255 255 77;
1084                         }
1085                 }
1086         }
1087 }
1088
1089 /* sub layout option */
1090 #define OPTION_BUTTON_H 70
1091
1092 #define MP_FEATURE_INNER_SETTINGS
1093 #define OPTION_BUTTON_W 220
1094 #define OPTION_BUTTON_PAD_LEFT 12
1095
1096 #define OPTION_BUTTON_PAD_TOP 4
1097 #define OPTION_BUTTON_PAD_BUTTON 18
1098 #define OPTION_SY OPTION_BUTTON_PAD_TOP/PLAYVIEW_OPTION_H
1099 #define OPTION_EY (OPTION_BUTTON_PAD_TOP+OPTION_BUTTON_H)/PLAYVIEW_OPTION_H
1100 #define OPTION_1_SX OPTION_BUTTON_PAD_LEFT/HD_PLAYVIEW_W
1101 #define OPTION_1_EX (OPTION_BUTTON_PAD_LEFT+OPTION_BUTTON_W)/HD_PLAYVIEW_W
1102 #define OPTION_2_SX (OPTION_BUTTON_PAD_LEFT+OPTION_BUTTON_W+OPTION_BUTTON_PAD_BUTTON)/HD_PLAYVIEW_W
1103 #define OPTION_2_EX (OPTION_BUTTON_PAD_LEFT+OPTION_BUTTON_W*2+OPTION_BUTTON_PAD_BUTTON)/HD_PLAYVIEW_W
1104 #define OPTION_3_SX (OPTION_BUTTON_PAD_LEFT+OPTION_BUTTON_W*2+OPTION_BUTTON_PAD_BUTTON*2)/HD_PLAYVIEW_W
1105 #define OPTION_3_EX (OPTION_BUTTON_PAD_LEFT+OPTION_BUTTON_W*3+OPTION_BUTTON_PAD_BUTTON*2)/HD_PLAYVIEW_W
1106 #define OPTION_4_SX (OPTION_BUTTON_PAD_LEFT+OPTION_BUTTON_W*3+OPTION_BUTTON_PAD_BUTTON*3)/HD_PLAYVIEW_W
1107 #define OPTION_4_EX (OPTION_BUTTON_PAD_LEFT+OPTION_BUTTON_W*4+OPTION_BUTTON_PAD_BUTTON*3)/HD_PLAYVIEW_W