sync with tizen_2.0
[apps/core/preloaded/music-player.git] / layout / mp-play-menu.edc
1 #define PLAYER_MENU_BTN_PRESS_BG "player/T02_function_btn_press.png"
2
3 #define PART_BTN_BG(_name, _to) \
4 part { name: _name; \
5         type: RECT; \
6         mouse_events: 0; \
7         scale: 1; \
8         description { state: "default" 0.0; \
9                 rel1.to: _to; \
10                 rel2.to: _to; \
11                 color: 150 150 150 255; \
12                 visible: 0; \
13         } \
14         description { state: "clicked" 0.0; \
15                 inherit: "default" 0.0; \
16                 visible: 1; \
17         } \
18 } \
19 part { name: _name"_image"; \
20         type: IMAGE; \
21         mouse_events: 0; \
22         scale: 1; \
23         clip_to: _name; \
24         description { state: "default" 0.0; \
25                 rel1.to: _name; \
26                 rel2.to: _name; \
27                 image { normal: PLAYER_MENU_BTN_PRESS_BG; border: 3 3 1 1; } \
28         } \
29 }
30
31 group {
32         name: "mp_play_menu";
33
34         images {
35                 image:  "T02_option_shuffle_on.png" COMP;
36                 image:  "T02_option_shuffle_off.png" COMP;
37                 image:  "T02_option_rep_1.png" COMP;
38                 image:  "T02_option_rep_all.png" COMP;
39                 image:  "T02_option_rep_A.png" COMP;
40                 image:  "T02_option_add_playlist.png" COMP;
41                 //image:  "T02_option_favorite_on.png" COMP;
42                 image:  "T02_option_bg.png" COMP;
43                 image: PLAYER_MENU_BTN_PRESS_BG COMP;
44         }
45
46         parts {
47                 /* Menu Box **********************************************************************/
48                 part {
49                         name: "menu_box_bg";
50                         type: RECT;
51                         mouse_events: 0;
52                         description {
53                                 state: "default" 0.0;
54                                 rel1 { relative: 0.0 0.0; }
55                                 rel2 { relative: 1.0 1.0; }
56                                 color : 0 0 0 0;
57                         }
58                 }
59                 PART_BTN_BG("shuffle_bg", "shuffle")
60
61                 part {
62                         name: "shuffle";
63                         type: IMAGE;
64                         mouse_events: 1;
65                         description {
66                                 state: "default" 0.0;
67                                 image { normal: "T02_option_shuffle_on.png"; }
68                                 rel1 { relative: MENU_SHUFFLE_SX MENU_SY; offset: 0 0; to: "menu_box_bg"; }
69                                 rel2 { relative: MENU_SHUFFLE_EX MENU_EY; offset: -1 0; to: "menu_box_bg"; }
70                         }
71                         description {
72                                 state: "clicked" 0.0;
73                                 inherit: "default" 0.0;
74                                 image { normal: "T02_option_shuffle_on.png"; }
75                         }
76                         description {
77                                 state: "invisible" 0.0;
78                                 inherit: "default" 0.0;
79                                 visible: 0;
80                         }
81                 }
82
83                 part {
84                         name: "shuffle_non";
85                         type: IMAGE;
86                         mouse_events: 1;
87                         description {
88                             state: "default" 0.0;
89                             image { normal: "T02_option_shuffle_off.png"; }
90                      rel1 { relative: MENU_SHUFFLE_SX MENU_SY; offset: 0 0; to: "menu_box_bg"; }
91                       rel2 { relative: MENU_SHUFFLE_EX MENU_EY; offset: 0 0; to: "menu_box_bg"; }
92                         }
93                         description {
94                                 state: "clicked" 0.0;
95                                 inherit: "default" 0.0;
96                                 image { normal: "T02_option_shuffle_off.png"; }
97                         }
98                         description {
99                                 state: "invisible" 0.0;
100                                 inherit: "default" 0.0;
101                                 visible: 0;
102                         }
103                 }
104
105                 PART_BTN_BG("repeat_bg", "rep_all")
106
107                 part {
108                         name: "rep_all";
109                         type: IMAGE;
110                         mouse_events: 1;
111                         description {
112                             state: "default" 0.0;
113                             image { normal: "T02_option_rep_all.png"; }
114                      rel1 { relative: MENU_REP_ALL_SX MENU_SY; offset: 0 0; to: "menu_box_bg"; }
115                       rel2 { relative: MENU_REP_ALL_EX MENU_EY; offset: 0 0; to: "menu_box_bg"; }
116                         }
117                         description {
118                                 state: "invisible" 0.0;
119                                 inherit: "default" 0.0;
120                                 visible: 0;
121                         }
122                 }
123
124                 part {
125                         name: "rep_non";
126                         type: IMAGE;
127                         mouse_events: 1;
128                         description {
129                                 state: "default" 0.0;
130                                 image { normal: "T02_option_rep_A.png"; }
131                                 rel1 { relative: MENU_REP_ALL_SX MENU_SY; offset: 0 0; to: "menu_box_bg"; }
132                                 rel2 { relative: MENU_REP_ALL_EX MENU_EY; offset: 0 0; to: "menu_box_bg"; }
133                         }
134                         /*description {
135                                 state: "clicked" 0.0;
136                                 inherit: "default" 0.0;
137                                 image { normal: "34_menu_rep_non_press.png"; }
138                         }*/
139                         description {
140                                 state: "invisible" 0.0;
141                                 inherit: "default" 0.0;
142                                 visible: 0;
143                         }
144                 }
145
146                 part {
147                         name: "rep_1";
148                         type: IMAGE;
149                         mouse_events: 1;
150                         description {
151                                 state: "default" 0.0;
152                                 image { normal: "T02_option_rep_1.png"; }
153                                 rel1 { relative: MENU_REP_ALL_SX MENU_SY; offset: 0 0; to: "menu_box_bg"; }
154                                 rel2 { relative: MENU_REP_ALL_EX MENU_EY; offset: 0 0; to: "menu_box_bg"; }
155                         }
156                         description {
157                                 state: "invisible" 0.0;
158                                 inherit: "default" 0.0;
159                                 visible: 0;
160                         }
161                 }
162
163                 PART_BTN_BG("add_to_playlist_bg", "add_to_playlist")
164                 part {
165                         name: "add_to_playlist";
166                         type: IMAGE;
167                         mouse_events: 1;
168                         description {
169                                 state: "default" 0.0;
170                                 visible: 1;
171                                 image { normal: "T02_option_add_playlist.png"; }
172                                 rel1 { relative: MENU_FAVORITE_SX MENU_SY; offset: 0 0; to: "menu_box_bg"; }
173                                 rel2 { relative: MENU_FAVORITE_EX MENU_EY; offset: 0 0; to: "menu_box_bg"; }
174                         }
175                         description {
176                                 state: "invisible" 0.0;
177                                 inherit: "default" 0.0;
178                                 visible: 0;
179                         }
180                 }
181         }
182
183         programs {
184                 program { name: "shuffle_down";
185                         source: "shuffle";
186                         signal: "mouse,down,1";
187                         action: STATE_SET "clicked" 0.0;
188                         target: "shuffle";
189                         target: "shuffle_bg";
190                 }
191                 program { name: "shuffle_up";
192                         source: "shuffle";
193                         signal: "mouse,up,1";
194                         action: STATE_SET "default" 0.0;
195                         target: "shuffle";
196                         target: "shuffle_bg";
197                 }
198                 program {
199                         name: "shuffle_clicked";
200                         source: "shuffle";
201                         signal: "mouse,clicked,1";
202                         action: SIGNAL_EMIT "shuffle_clicked" 0.0;
203                 }
204
205                 program {
206                         name: "shuffle_visible" ;
207                         signal: "shuffle_visible";
208                         source: "shuffle";
209                         action:   STATE_SET "default" 0.0;
210                         target: "shuffle";
211                 }
212
213                 program {
214                         name: "shuffle_invisible" ;
215                         signal: "shuffle_invisible";
216                         source: "shuffle";
217                         action:   STATE_SET "invisible" 0.0;
218                         target: "shuffle";
219                 }
220
221                 program {
222                         name: "shuffle_non_down";
223                         source: "shuffle_non";
224                         signal: "mouse,down,1";
225                         action: STATE_SET "clicked" 0.0;
226                         target: "shuffle_non";
227                         target: "shuffle_bg";
228                 }
229
230                 program {
231                         name: "shuffle_non_up";
232                         source: "shuffle_non";
233                         signal: "mouse,up,1";
234                         action: STATE_SET "default" 0.0;
235                         target: "shuffle_non";
236                         target: "shuffle_bg";
237                 }
238
239                 program {
240                         name: "shuffle_non_clicked";
241                         source: "shuffle_non";
242                         signal: "mouse,clicked,1";
243                         action: SIGNAL_EMIT "shuffle_non_clicked" 0.0;
244                 }
245
246                 program {
247                         name: "shuffle_non_visible" ;
248                         signal: "shuffle_non_visible";
249                         source: "shuffle_non";
250                         action:   STATE_SET "default" 0.0;
251                         target: "shuffle_non";
252                 }
253
254                 program {
255                         name: "shuffle_non_invisible" ;
256                         signal: "shuffle_non_invisible";
257                         source: "shuffle_non";
258                         action:   STATE_SET "invisible" 0.0;
259                         target: "shuffle_non";
260                 }
261
262                 program {
263                         name: "rep_all_down";
264                         source: "rep_all";
265                         signal: "mouse,down,1";
266                         action: STATE_SET "clicked" 0.0;
267                         target: "rep_all";
268                         target: "repeat_bg";
269                 }
270
271                 program {
272                         name: "rep_all_up";
273                         source: "rep_all";
274                         signal: "mouse,up,1";
275                         action: STATE_SET "default" 0.0;
276                         target: "rep_all";
277                         target: "repeat_bg";
278                 }
279
280                 program {
281                         name: "rep_all_clicked";
282                         source: "rep_all";
283                         signal: "mouse,clicked,1";
284                         action: SIGNAL_EMIT "rep_all_clicked" 0.0;
285                 }
286
287                 program {
288                         name: "rep_all_visible" ;
289                         signal: "rep_all_visible";
290                         source: "rep_all";
291                         action:   STATE_SET "default" 0.0;
292                         target: "rep_all";
293                 }
294
295                 program {
296                         name: "rep_all_invisible" ;
297                         signal: "rep_all_invisible";
298                         source: "rep_all";
299                         action:   STATE_SET "invisible" 0.0;
300                         target: "rep_all";
301                 }
302
303                 program {
304                         name: "rep_non_down";
305                         source: "rep_non";
306                         signal: "mouse,down,1";
307                         action: STATE_SET "clicked" 0.0;
308                         target: "rep_non";
309                         target: "repeat_bg";
310                 }
311
312                 program {
313                         name: "rep_non_up";
314                         source: "rep_non";
315                         signal: "mouse,up,1";
316                         action: STATE_SET "default" 0.0;
317                         target: "rep_non";
318                         target: "repeat_bg";
319                 }
320
321                 program {
322                         name: "rep_non_clicked";
323                         source: "rep_non";
324                         signal: "mouse,clicked,1";
325                         action: SIGNAL_EMIT "rep_non_clicked" 0.0;
326                 }
327
328                 program {
329                         name: "rep_non_visible" ;
330                         signal: "rep_non_visible";
331                         source: "rep_non";
332                         action:   STATE_SET "default" 0.0;
333                         target: "rep_non";
334                 }
335
336                 program {
337                         name: "rep_non_invisible" ;
338                         signal: "rep_non_invisible";
339                         source: "rep_non";
340                         action:   STATE_SET "invisible" 0.0;
341                         target: "rep_non";
342                 }
343
344                 program {
345                         name: "rep_1_down";
346                         source: "rep_1";
347                         signal: "mouse,down,1";
348                         action: STATE_SET "clicked" 0.0;
349                         target: "rep_1";
350                         target: "repeat_bg";
351                 }
352
353                 program {
354                         name: "rep_1_up";
355                         source: "rep_1";
356                         signal: "mouse,up,1";
357                         action: STATE_SET "default" 0.0;
358                         target: "rep_1";
359                         target: "repeat_bg";
360                 }
361
362                 program {
363                         name: "rep_1_clicked";
364                         source: "rep_1";
365                         signal: "mouse,clicked,1";
366                         action: SIGNAL_EMIT "rep_1_clicked" 0.0;
367                 }
368
369                 program {
370                         name: "rep_1_visible" ;
371                         signal: "rep_1_visible";
372                         source: "rep_1";
373                         action:   STATE_SET "default" 0.0;
374                         target: "rep_1";
375                 }
376
377                 program {
378                         name: "rep_1_invisible" ;
379                         signal: "rep_1_invisible";
380                         source: "rep_1";
381                         action:   STATE_SET "invisible" 0.0;
382                         target: "rep_1";
383                 }
384                 program {
385                         name: "add_to_playlist_clicked";
386                         source: "add_to_playlist";
387                         signal: "mouse,clicked,1";
388                         action: SIGNAL_EMIT "add_to_playlist_clicked" 0.0;
389                 }
390                 program {
391                         name: "add_to_playlist_invisible";
392                         source: "play_view";
393                         signal: "add_to_playlist_invisible";
394                         action:   STATE_SET "invisible" 0.0;
395                         target: "add_to_playlist";
396                 }
397                 program { name: "add_to_playlist_down";
398                         source: "add_to_playlist";
399                         signal: "mouse,down,1";
400                         action: STATE_SET "clicked" 0.0;
401                         target: "add_to_playlist_bg";
402                 }
403
404                 program { name: "add_to_playlist_up";
405                         source: "add_to_playlist";
406                         signal: "mouse,up,1";
407                         action: STATE_SET "default" 0.0;
408                         target: "add_to_playlist_bg";
409                 }
410         }
411 }