2.0_alpha
[apps/core/preloaded/video-player.git] / res / edc / main.edc
1 #define GRAY_RECT_COLOR                 128 128 128 128
2 #define SPEEDBOX_OFFSET_Y               225
3
4
5 #include "image_res.edc"
6 #include "vp_font.edc"
7
8 collections {
9         group {
10                 name: "main";
11
12                 parts {
13                         part {
14                                 name: "main.background";
15                                 type: RECT;
16                                 mouse_events: 0;
17                                 scale: 1;
18                                 description {
19                                         state: "default" 0.0;
20                                         rel1 { relative: 0.0 0.0;}
21                                         rel2 { relative: 1.0 1.0;}
22                                         color: 255 255 255 0;
23                                 }
24                         }
25                         part {
26                                 name: "main.nocontents.bg";
27                                 type: IMAGE;
28                                 mouse_events: 0;
29                                 scale: 1;
30                                 description {
31                                         state: "default" 0.0;
32                                         visible: 0;
33                                         min: 399 399;
34                                         fixed: 1 1;
35                                         align: 0.5 0.5;
36                                         rel1 { relative: 0.5 0.4;}
37                                         rel2 { relative: 0.5 0.4;}
38                                         image { normal: "gallery_video_player_bg.png"; border: 7 7 0 0; }
39                                         color: GRAY_RECT_COLOR;
40                                 }
41                                 description {
42                                         state: "show" 0.0;
43                                         inherit: "default" 0.0;
44                                         visible: 1;
45                                 }
46                         }
47
48                         part {
49                                 name: "main.nocontents.image";
50                                 type: IMAGE;
51                                 mouse_events: 0;
52                                 scale: 1;
53                                 description {
54                                         state: "default" 0.0;
55                                         visible: 0;
56                                         min: 144 144;
57                                         fixed: 1 1;
58                                         align: 0.5 0.5;
59                                         rel1 { relative: 0.5 0.4;}
60                                         rel2 { relative: 0.5 0.4;}
61                                         image { normal: "T01_Nocontents_multimedia.png"; }
62                                         color: 255 255 255 255;
63                                 }
64                                 description {
65                                         state: "show" 0.0;
66                                         inherit: "default" 0.0;
67                                         visible: 1;
68                                 }
69                         }
70
71                         part {
72                                 name: "main.speedbox";
73                                 type: RECT;
74                                 mouse_events: 0;
75                                 scale: 1;
76                                 description {
77                                         state: "default" 0.0;
78                                         visible: 0;
79                                         min: 0 78;
80                                         fixed: 0 1;
81                                         align: 0.5 1.0;
82                                         rel1 { relative: 0.2 0.0; to_y: "main.option.button.bg"; }
83                                         rel2 { relative: 0.8 0.0; to_y: "main.option.button.bg"; }
84                                         color: GRAY_RECT_COLOR;
85                                 }
86                                 description {
87                                         state: "show" 0.0;
88                                         inherit: "default" 0.0;
89                                         visible: 1;
90                                 }
91                         }
92
93                         part {
94                                 name: "main.speedbox.txt";
95                                 type: TEXT;
96                                 mouse_events: 0;
97                                 scale: 1;
98                                 description {
99                                         state: "default" 0.0;
100                                         visible: 0;
101                                         min: 0 78;
102                                         fixed: 0 1;
103                                         align: 0.5 1.0;
104                                         rel1 { relative: 0.2 0.0; to_y: "main.option.button.bg"; }
105                                         rel2 { relative: 0.8 0.0; to_y: "main.option.button.bg"; }
106                                         text {
107                                                 font: FONT_BOLD_TYPE;
108                                                 text_class: "slp_bold";
109                                                 size: 32;
110                                                 text:  "";
111                                                 align: 0.5 0.5;
112                                         }
113                                 }
114                                 description {
115                                         state: "show" 0.0;
116                                         inherit: "default" 0.0;
117                                         visible: 1;
118                                 }
119                         }
120                         part {
121                                 name: "main.option.start.rect";
122                                 type: RECT;
123                                 scale: 1;
124                                 description {
125                                         state: "default" 0.0;
126                                         visible: 1;
127                                         min: 0 3;
128                                         fixed: 0 1;
129                                         align: 0.0 0.0;
130                                         rel1 { relative: 0.0 0.0; }
131                                         rel2 { relative: 1.0 0.0; }
132                                         color: 0 0 0 0;
133                                 }
134                         }
135
136                         part {
137                                 name: "main.option.button.bg";
138                                 type: IMAGE;
139                                 scale: 1;
140                                 description {
141                                         state: "default" 0.0;
142                                         visible: 1;
143                                         min: 0 65;
144                                         fixed: 0 1;
145                                         align: 0.0 0.0;
146                                         rel1 { relative: 0.0 0.0; }
147                                         rel2 { relative: 1.0 0.0; }
148                                         image { normal: "icon/T01-2_icon_function_bg.png"; }
149                                         color: 255 255 255 255;
150
151                                 }
152                                 description {
153                                         state: "hide" 0.0;
154                                         inherit: "default" 0.0;
155                                         visible: 0;
156                                 }
157                                 description {
158                                         state: "portrate" 0.0;
159                                         inherit: "default" 0.0;
160                                 }
161                                 description {
162                                         state: "landscape" 0.0;
163                                         inherit: "default" 0.0;
164                                         min: 0 64;
165                                 }
166                                 description {
167                                         state: "trim" 0.0;
168                                         inherit: "default" 0.0;
169                                         visible : 0;
170                                 }
171
172                         }
173
174                         part {
175                                 name: "main.option.button";
176                                 type: SWALLOW;
177                                 scale: 1;
178                                 mouse_events: 1;
179                                 description {
180                                         state: "default" 0.0;
181                                         visible: 1;
182                                         min: 0 62;
183                                         fixed: 0 1;
184                                         align: 0.5 0.0;
185                                         rel1 { relative: 0.0 1.0; to_y: main.option.start.rect;}
186                                         rel2 { relative: 1.0 0.0; }
187                                 }
188                                 description {
189                                         state: "hide" 0.0;
190                                         inherit: "default" 0.0;
191                                         visible: 0;
192                                 }
193                                 description {
194                                         state: "portrate" 0.0;
195                                         inherit: "default" 0.0;
196                                 }
197                                 description {
198                                         state: "landscape" 0.0;
199                                         inherit: "default" 0.0;
200                                         min: 0 61;
201                                 }
202                                 description {
203                                         state: "trim" 0.0;
204                                         inherit: "default" 0.0;
205                                         visible : 0;
206                                 }
207                         }
208
209                         part {
210                                 name: "main.bookmark";
211                                 type: SWALLOW;
212                                 scale: 1;
213                                 mouse_events: 1;
214                                 description {
215                                         state: "default" 0.0;
216                                         min: 0 206;
217                                         fixed: 0 1;
218                                         align: 0.5 0.0;
219                                         rel1 { relative: 0.0 1.0; to_y: "main.option.button";}
220                                         rel2 { relative: 1.0 0.0; }
221                                 }
222                                 description {
223                                         state: "landscape" 0.0;
224                                         inherit: "default" 0.0;
225                                         min: 0 207;
226                                 }
227                                 description {
228                                         state: "trim" 0.0;
229                                         inherit: "default" 0.0;
230                                         visible : 0;
231                                 }
232                         }
233
234                         part {
235                                 name: "main.panel.bg";
236                                 type: RECT;
237                                 scale: 1;
238                                 mouse_events: 1;
239                                 description {
240                                         state: "default" 0.0;
241                                         visible: 1;
242                                         min: 0 214;
243                                         fixed: 0 1;
244                                         align: 0.5 1.0;
245                                         rel1 { relative: 0.0 1.0; }
246                                         rel2 { relative: 1.0 1.0; }
247                                         color : 0 0 0 128;
248                                 }
249                                 description {
250                                         state: "portrate" 0.0;
251                                         inherit: "default" 0.0;
252                                 }
253                                 description {
254                                         state: "landscape" 0.0;
255                                         inherit: "default" 0.0;
256                                         min: 0 204;
257                                 }
258                                 description {
259                                         state: "trim" 0.0;
260                                         inherit: "default" 0.0;
261                                         min: 0 228;
262                                 }
263                         }
264
265                         part {
266                                 name: "main.panel.line";
267                                 type: RECT;
268                                 scale: 1;
269                                 mouse_events: 1;
270                                 description {
271                                         state: "default" 0.0;
272                                         visible: 1;
273                                         min: 0 1;
274                                         fixed: 0 1;
275                                         align: 0.5 0.0;
276                                         rel1 { relative: 0.0 0.0; to_y: "main.panel.bg";}
277                                         rel2 { relative: 1.0 0.0; to_y: "main.panel.bg";}
278                                         color : 153 153 153 171;
279                                 }
280                                 description {
281                                         state: "portrate" 0.0;
282                                         inherit: "default" 0.0;
283                                 }
284                                 description {
285                                         state: "landscape" 0.0;
286                                         inherit: "default" 0.0;
287                                         min: 0 1;
288                                 }
289
290                                 description {
291                                         state: "trim" 0.0;
292                                         inherit: "default" 0.0;
293                                         visible: 0;
294                                 }
295                         }
296
297                         part {
298                                 name: "main.panel.top";
299                                 type: RECT;
300                                 scale: 1;
301                                 mouse_events: 1;
302                                 description {
303                                         state: "default" 0.0;
304                                         visible: 1;
305                                         min: 0 12;
306                                         fixed: 0 1;
307                                         align: 0.5 0.0;
308                                         rel1 { relative: 0.3 0.0; to_y: "main.panel.line";}
309                                         rel2 { relative: 0.7 1.0; to_y: "main.panel.line";}
310                                         color : 0 0 0 0;
311                                 }
312                                 description {
313                                         state: "portrate" 0.0;
314                                         inherit: "default" 0.0;
315                                 }
316                                 description {
317                                         state: "landscape" 0.0;
318                                         inherit: "default" 0.0;
319                                         min: 0 17;
320                                 }
321                                 description {
322                                         state: "trim" 0.0;
323                                         inherit: "default" 0.0;
324                                         visible: 0;
325                                 }
326                         }
327
328                         part {
329                                 name: "main.panel.button";
330                                 type: SWALLOW;
331                                 scale: 1;
332                                 mouse_events: 1;
333                                 description {
334                                         state: "default" 0.0;
335                                         visible: 1;
336                                         min: 0 56;
337                                         fixed: 0 1;
338                                         align: 0.0 0.0;
339                                         rel1 { relative: 0.0486 1.0; to_y: "main.panel.top";}
340                                         rel2 { relative: 0.9514 1.0; to_y: "main.panel.top";}
341                                 }
342                                 description {
343                                         state: "portrate" 0.0;
344                                         inherit: "default" 0.0;
345                                 }
346                                 description {
347                                         state: "landscape" 0.0;
348                                         inherit: "default" 0.0;
349                                         rel1 { relative: 0.0273 1.0; to_y: "main.panel.top";}
350                                         rel2 { relative: 0.9727 1.0; to_y: "main.panel.top";}
351                                 }
352                                 description {
353                                         state: "trim" 0.0;
354                                         inherit: "default" 0.0;
355                                         visible: 0;
356                                 }
357                         }
358
359
360                         part {
361                                 name: "main.panel";
362                                 type: SWALLOW;
363                                 scale: 1;
364                                 mouse_events: 1;
365                                 description {
366                                         state: "default" 0.0;
367                                         min: 0 167;
368                                         fixed: 0 1;
369                                         align: 0.5 1.0;
370                                         rel1 { relative: 0.0 1.0; }
371                                         rel2 { relative: 1.0 1.0; }
372                                 }
373                                 description {
374                                         state: "portrate" 0.0;
375                                         inherit: "default" 0.0;
376                                 }
377                                 description {
378                                         state: "landscape" 0.0;
379                                         inherit: "default" 0.0;
380                                         min: 0 167;
381                                 }
382                                 description {
383                                         state: "trim" 0.0;
384                                         inherit: "default" 0.0;
385                                         min: 0 297;
386                                 }
387                         }
388
389                         part { name: "main.animation";
390                                 type: SWALLOW;
391                                 scale: 1;
392                                 mouse_events: 1;
393                                 description {
394                                         state: "default" 0.0;
395                                         visible: 0;
396                                         min: 288 195;
397                                         fixed: 1 1;
398                                         align: 0.5 0.5;
399                                         rel1 { relative: 0.5 0.4;}
400                                         rel2 { relative: 0.5 0.4;}
401                                         color: 255 0 0 255;
402                                 }
403                                 description {
404                                         state: "show" 0.0;
405                                         inherit: "default" 0.0;
406                                         visible: 1;
407                                 }
408                                 description {
409                                         state: "trim" 0.0;
410                                         inherit: "default" 0.0;
411                                         visible: 0;
412                                 }
413                         }
414
415                 } /* parts */
416
417                 programs {
418                         program {
419                                 signal: "signal.main.nocontents.show";
420                                 source: "*";
421                                  action: STATE_SET "show" 0.0;
422                                  target: "main.nocontents.image";
423                                  target: "main.nocontents.bg";
424                         }
425
426                         program {
427                                 signal: "signal.main.nocontents.hide";
428                                 source: "*";
429                                  action: STATE_SET "default" 0.0;
430                                  target: "main.nocontents.image";
431                                  target: "main.nocontents.bg";
432                         }
433
434                         program {
435                                 signal: "signal.main.speedbox.show";
436                                 source: "*";
437                                  action: STATE_SET "show" 0.0;
438                                  target: "main.speedbox";
439                                  target: "main.speedbox.txt";
440                         }
441
442                         program {
443                                 signal: "signal.main.speedbox.hide";
444                                 source: "*";
445                                  action: STATE_SET "default" 0.0;
446                                  target: "main.speedbox";
447                                  target: "main.speedbox.txt";
448                         }
449
450                         program {
451                                 signal: "signal.main.animation.show";
452                                 source: "*";
453                                  action: STATE_SET "show" 0.0;
454                                  target: "main.animation";
455                         }
456
457                         program {
458                                 signal: "signal.main.animation.hide";
459                                 source: "*";
460                                  action: STATE_SET "default" 0.0;
461                                  target: "main.animation";
462                         }
463
464                         program {
465                                 signal: "signal.main.option.button.bg.hide";
466                                 source: "*";
467                                  action: STATE_SET "hide" 0.0;
468                                  target: "main.option.button.bg";
469                         }
470
471                         program {
472                                 signal: "signal.main.portrate.mode";
473                                 source: "*";
474                                 action: STATE_SET "portrate" 0.0;
475                                 target: "main.option.button.bg";
476                                 target: "main.option.button";
477                                 target: "main.panel.bg";
478                                 target: "main.panel.top";
479                                 target: "main.panel.button";
480                                 target: "main.panel";
481                         }
482
483                         program {
484                                 signal: "signal.main.landscape.mode";
485                                 source: "*";
486                                 action: STATE_SET "landscape" 0.0;
487                                 target: "main.option.button.bg";
488                                 target: "main.option.button";
489                                 target: "main.panel.bg";
490                                 target: "main.panel.top";
491                                 target: "main.panel.button";
492                                 target: "main.panel";
493                         }
494
495                         program {
496                                 signal: "signal.main.trim.mode";
497                                 source: "*";
498                                 action: STATE_SET "trim" 0.0;
499                                 target: "main.option.button.bg";
500                                 target: "main.option.button";
501                                 target: "main.panel.bg";
502                                 target: "main.panel.top";
503                                 target: "main.panel.button";
504                                 target: "main.panel.line";
505                                 target: "main.panel";
506                         }
507                 }       /* programs */
508         }       /* group */
509 } /* collections */