summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2011-03-30 08:00:12 +0000
committerBoris Faure <billiob@gmail.com>2011-03-30 08:00:12 +0000
commit289eff7190014df389086d857627e6c751c6bf26 (patch)
treec2aa6e9a49544dd917cfd62b4323071bae517a83
parent0c544a025d0a4622775780741fcba62a408c6919 (diff)
mpdule: improve edc
SVN revision: 58195
-rw-r--r--mpdule.edc564
1 files changed, 278 insertions, 286 deletions
diff --git a/mpdule.edc b/mpdule.edc
index 4f1d8e6..3fe2b3c 100644
--- a/mpdule.edc
+++ b/mpdule.edc
@@ -40,460 +40,452 @@ collections
40{ 40{
41 group 41 group
42 { 42 {
43 name:"modules/mpdule/main"; 43 name: "modules/mpdule/main";
44 parts 44 parts
45 { 45 {
46 part 46 part
47 { 47 {
48 name:"base"; 48 name: "base";
49 type:RECT; 49 type: RECT;
50 mouse_events:0; 50 mouse_events: 0;
51 description 51 description
52 { 52 {
53 state:"default" 0.00; 53 state: "default" 0.00;
54 visible:1; 54 visible: 1;
55 rel1 55 rel1
56 { 56 {
57 relative:0.00 0.00; 57 relative: 0.00 0.00;
58 offset:0 0; 58 offset: 0 0;
59 } 59 }
60 rel2 60 rel2
61 { 61 {
62 relative:1.00 1.00; 62 relative: 1.00 1.00;
63 offset:-1 -1; 63 offset: -1 -1;
64 } 64 }
65 } 65 }
66 } 66 }
67 part 67 part
68 { 68 {
69 name:"item_clip"; 69 name: "item_clip";
70 type:RECT; 70 type: RECT;
71 description 71 description
72 { 72 {
73 state:"default" 0.00; 73 state: "default" 0.00;
74 visible:1; 74 visible: 1;
75 rel1 75 rel1
76 { 76 {
77 relative:0.00 0.00; 77 relative: 0.00 0.00;
78 offset:0 0; 78 offset: 0 0;
79 } 79 }
80 rel2 80 rel2
81 { 81 {
82 relative:1.00 1.00; 82 relative: 1.00 1.00;
83 offset:-1 -1; 83 offset: -1 -1;
84 } 84 }
85 color:255 255 255 0; 85 color: 255 255 255 0;
86 } 86 }
87 description 87 description
88 { 88 {
89 state:"hide" 0.00; 89 state: "hide" 0.00;
90 visible:1; 90 visible: 1;
91 rel1 91 rel1
92 { 92 {
93 relative:0.00 -1.00; 93 relative: 0.00 -1.00;
94 offset:0 0; 94 offset: 0 0;
95 } 95 }
96 rel2 96 rel2
97 { 97 {
98 relative:1.00 0.00; 98 relative: 1.00 0.00;
99 offset:-1 -1; 99 offset: -1 -1;
100 } 100 }
101 color:255 255 255 0; 101 color: 255 255 255 0;
102 } 102 }
103 } 103 }
104 part 104 part
105 { 105 {
106 name:"controls_clip"; 106 name: "controls_clip";
107 type:RECT; 107 type: RECT;
108 description 108 description
109 { 109 {
110 state:"default" 0.00; 110 state: "default" 0.00;
111 visible:1; 111 visible: 1;
112 rel1 112 rel1
113 { 113 {
114 relative:0.00 1.00; 114 relative: 0.00 1.00;
115 offset:0 0; 115 offset: 0 0;
116 } 116 }
117 rel2 117 rel2
118 { 118 {
119 relative:1.00 2.00; 119 relative: 1.00 2.00;
120 offset:-1 -1; 120 offset: -1 -1;
121 } 121 }
122 color:255 255 255 0; 122 color: 255 255 255 0;
123 } 123 }
124 description 124 description
125 { 125 {
126 state:"show" 0.00; 126 state: "show" 0.00;
127 visible:1; 127 visible: 1;
128 rel1 128 rel1
129 { 129 {
130 relative:0.00 0.00; 130 relative: 0.00 0.00;
131 offset:0 0; 131 offset: 0 0;
132 } 132 }
133 rel2 133 rel2
134 { 134 {
135 relative:1.00 1.00; 135 relative: 1.00 1.00;
136 offset:-1 -1; 136 offset: -1 -1;
137 } 137 }
138 color:255 255 255 0; 138 color: 255 255 255 0;
139 } 139 }
140 } 140 }
141 part 141 part
142 { 142 {
143 name:"mpdule.artist"; 143 name: "mpdule.artist";
144 type:TEXT; 144 type: TEXT;
145 effect:OUTLINE_SOFT_SHADOW; 145 effect: OUTLINE_SOFT_SHADOW;
146 clip_to:"base"; 146 clip_to: "base";
147 mouse_events:0; 147 mouse_events: 0;
148 description 148 description
149 { 149 {
150 state:"default" 0.00; 150 state: "default" 0.00;
151 visible:1; 151 visible: 1;
152 rel1 152 rel1
153 { 153 {
154 relative:0.00 0.00; 154 relative: 0.00 0.00;
155 offset:0 4; 155 offset: 0 4;
156 to:"item_clip"; 156 to: "item_clip";
157 } 157 }
158 rel2 158 rel2
159 { 159 {
160 relative:1.00 0.50; 160 relative: 1.00 0.50;
161 offset:-1 -3; 161 offset: -1 -3;
162 to:"item_clip"; 162 to: "item_clip";
163 } 163 }
164 color2:0 0 0 96; 164 color2: 0 0 0 96;
165 color3:0 0 0 32; 165 color3: 0 0 0 32;
166 text 166 text
167 { 167 {
168 text:""; 168 text: "";
169 text_class:"mpdule"; 169 text_class: "mpdule";
170 font:"Sans:style=Mono"; 170 font: "Sans:style=Mono";
171 size:10; 171 size: 10;
172 min:1 1; 172 min: 1 1;
173 align:0.50 0.50; 173 align: 0.50 0.50;
174 } 174 }
175 } 175 }
176 description 176 description
177 { 177 {
178 state:"hidden" 0.00; 178 state: "hidden" 0.00;
179 visible:0; 179 visible: 0;
180 rel1 180 rel1
181 { 181 {
182 relative:0.00 0.00; 182 relative: 0.00 0.00;
183 offset:0 4; 183 offset: 0 4;
184 to:"item_clip"; 184 to: "item_clip";
185 } 185 }
186 rel2 186 rel2
187 { 187 {
188 relative:1.00 0.50; 188 relative: 1.00 0.50;
189 offset:-1 -3; 189 offset: -1 -3;
190 to:"item_clip"; 190 to: "item_clip";
191 } 191 }
192 color2:0 0 0 96; 192 color2: 0 0 0 96;
193 color3:0 0 0 32; 193 color3: 0 0 0 32;
194 text 194 text
195 { 195 {
196 text:""; 196 text: "";
197 text_class:"mpdule"; 197 text_class: "mpdule";
198 font:"Sans:style=Mono"; 198 font: "Sans:style=Mono";
199 size:10; 199 size: 10;
200 min:1 1; 200 min: 1 1;
201 align:0.50 0.50; 201 align: 0.50 0.50;
202 } 202 }
203 } 203 }
204 description 204 description
205 { 205 {
206 state:"visible" 0.00; 206 state: "visible" 0.00;
207 visible:1; 207 visible: 1;
208 rel1 208 rel1
209 { 209 {
210 relative:0.00 0.00; 210 relative: 0.00 0.00;
211 offset:0 4; 211 offset: 0 4;
212 to:"item_clip"; 212 to: "item_clip";
213 } 213 }
214 rel2 214 rel2
215 { 215 {
216 relative:1.00 0.50; 216 relative: 1.00 0.50;
217 offset:-1 -3; 217 offset: -1 -3;
218 to:"item_clip"; 218 to: "item_clip";
219 } 219 }
220 color2:0 0 0 96; 220 color2: 0 0 0 96;
221 color3:0 0 0 32; 221 color3: 0 0 0 32;
222 text 222 text
223 { 223 {
224 text:""; 224 text: "";
225 text_class:"mpdule"; 225 text_class: "mpdule";
226 font:"Sans:style=Mono"; 226 font: "Sans:style=Mono";
227 size:10; 227 size: 10;
228 min:1 1; 228 min: 1 1;
229 align:0.50 0.50; 229 align: 0.50 0.50;
230 } 230 }
231 } 231 }
232 } 232 }
233 part 233 part
234 { 234 {
235 name:"mpdule.title"; 235 name: "mpdule.title";
236 type:TEXT; 236 type: TEXT;
237 effect:OUTLINE_SOFT_SHADOW; 237 effect: OUTLINE_SOFT_SHADOW;
238 clip_to:"base"; 238 clip_to: "base";
239 mouse_events:0; 239 mouse_events: 0;
240 description 240 description
241 { 241 {
242 state:"default" 0.00; 242 state: "default" 0.00;
243 visible:1; 243 visible: 1;
244 rel1 244 rel1
245 { 245 {
246 relative:0.00 0.50; 246 relative: 0.00 0.50;
247 offset:0 4; 247 offset: 0 4;
248 to:"item_clip"; 248 to: "item_clip";
249 } 249 }
250 rel2 250 rel2
251 { 251 {
252 relative:1.00 1.00; 252 relative: 1.00 1.00;
253 offset:-1 -3; 253 offset: -1 -3;
254 to:"item_clip"; 254 to: "item_clip";
255 } 255 }
256 color2:0 0 0 96; 256 color2: 0 0 0 96;
257 color3:0 0 0 32; 257 color3: 0 0 0 32;
258 text 258 text
259 { 259 {
260 text:""; 260 text: "";
261 text_class:"mpdule"; 261 text_class: "mpdule";
262 font:"Sans:style=Mono"; 262 font: "Sans:style=Mono";
263 size:9; 263 size: 9;
264 min:1 1; 264 min: 1 1;
265 align:0.50 0.50; 265 align: 0.50 0.50;
266 } 266 }
267 } 267 }
268 description 268 description
269 { 269 {
270 state:"hidden" 0.00; 270 state: "hidden" 0.00;
271 visible:0; 271 visible: 0;
272 rel1 272 rel1
273 { 273 {
274 relative:0.00 0.50; 274 relative: 0.00 0.50;
275 offset:0 4; 275 offset: 0 4;
276 to:"item_clip"; 276 to: "item_clip";
277 } 277 }
278 rel2 278 rel2
279 { 279 {
280 relative:1.00 1.00; 280 relative: 1.00 1.00;
281 offset:-1 -3; 281 offset: -1 -3;
282 to:"item_clip"; 282 to: "item_clip";
283 } 283 }
284 color2:0 0 0 96; 284 color2: 0 0 0 96;
285 color3:0 0 0 32; 285 color3: 0 0 0 32;
286 text 286 text
287 { 287 {
288 text:""; 288 text: "";
289 text_class:"mpdule"; 289 text_class: "mpdule";
290 font:"Sans:style=Mono"; 290 font: "Sans:style=Mono";
291 size:9; 291 size: 9;
292 min:1 1; 292 min: 1 1;
293 align:0.50 0.50; 293 align: 0.50 0.50;
294 } 294 }
295 } 295 }
296 description 296 description
297 { 297 {
298 state:"visible" 0.00; 298 state: "visible" 0.00;
299 visible:1; 299 visible: 1;
300 rel1 300 rel1
301 { 301 {
302 relative:0.00 0.50; 302 relative: 0.00 0.50;
303 offset:0 4; 303 offset: 0 4;
304 to:"item_clip"; 304 to: "item_clip";
305 } 305 }
306 rel2 306 rel2
307 { 307 {
308 relative:1.00 1.00; 308 relative: 1.00 1.00;
309 offset:-1 -3; 309 offset: -1 -3;
310 to:"item_clip"; 310 to: "item_clip";
311 } 311 }
312 color2:0 0 0 96; 312 color2: 0 0 0 96;
313 color3:0 0 0 32; 313 color3: 0 0 0 32;
314 text 314 text
315 { 315 {
316 text:""; 316 text: "";
317 text_class:"mpdule"; 317 text_class: "mpdule";
318 font:"Sans:style=Mono"; 318 font: "Sans:style=Mono";
319 size:9; 319 size: 9;
320 min:1 1; 320 min: 1 1;
321 align:0.50 0.50; 321 align: 0.50 0.50;
322 } 322 }
323 } 323 }
324 } 324 }
325 part 325 part
326 { 326 {
327 name:"mpdule.previous"; 327 name: "mpdule.previous";
328 type:IMAGE; 328 type: IMAGE;
329 mouse_events:1; 329 mouse_events: 1;
330 repeat_events:1; 330 repeat_events: 1;
331 description 331 description
332 { 332 {
333 state:"default" 0.0; 333 state: "default" 0.0;
334 visible:1; 334 visible: 1;
335 aspect:1 1; 335 aspect: 1 1;
336 align:0.0 0.5; 336 aspect_preference: BOTH;
337 align: 0.5 0.5;
337 rel1 338 rel1
338 { 339 {
339 relative:0.0 0.0; 340 relative: 0.0 0.0;
340 offset:0 0; 341 to: "controls_clip";
341 to:"controls_clip";
342 } 342 }
343 rel2 343 rel2
344 { 344 {
345 relative:0.0 1.0; 345 relative: 0.2 1.0;
346 to:"controls_clip"; 346 to: "controls_clip";
347 } 347 }
348 image 348 image
349 { 349 {
350 normal:"prev.png"; 350 normal: "prev.png";
351 } 351 }
352 } 352 }
353 } 353 }
354 part 354 part
355 { 355 {
356 name:"mpdule.play"; 356 name: "mpdule.play";
357 type:IMAGE; 357 type: IMAGE;
358 mouse_events:1; 358 mouse_events: 1;
359 repeat_events:1; 359 repeat_events: 1;
360 description 360 description
361 { 361 {
362 state:"default" 0.0; 362 state: "default" 0.0;
363 visible:1; 363 visible: 1;
364 aspect:1 1; 364 aspect: 1 1;
365 align:0.0 0.5; 365 aspect_preference: BOTH;
366 align: 0.5 0.5;
366 rel1 367 rel1
367 { 368 {
368 relative:1.0 0.0; 369 relative: 0.2 0.0;
369 offset:0 0; 370 to: "controls_clip";
370 to_x:"mpdule.previous";
371 to_y:"controls_clip";
372 } 371 }
373 rel2 372 rel2
374 { 373 {
375 relative:1.0 1.0; 374 relative: 0.4 1.0;
376 to_x:"mpdule.previous"; 375 to: "controls_clip";
377 to_y:"controls_clip";
378 } 376 }
379 image 377 image
380 { 378 {
381 normal:"play.png"; 379 normal: "play.png";
382 } 380 }
383 } 381 }
384 } 382 }
385 part 383 part
386 { 384 {
387 name:"mpdule.pause"; 385 name: "mpdule.pause";
388 type:IMAGE; 386 type: IMAGE;
389 mouse_events:1; 387 mouse_events: 1;
390 repeat_events:1; 388 repeat_events: 1;
391 description 389 description
392 { 390 {
393 state:"default" 0.0; 391 state: "default" 0.0;
394 visible:1; 392 visible: 1;
395 aspect:1 1; 393 aspect: 1 1;
396 align:0.0 0.5; 394 aspect_preference: BOTH;
395 align: 0.5 0.5;
397 rel1 396 rel1
398 { 397 {
399 relative:1.0 0.0; 398 relative: 0.4 0.0;
400 offset:0 0; 399 to: "controls_clip";
401 to_x:"mpdule.play";
402 to_y:"controls_clip";
403 } 400 }
404 rel2 401 rel2
405 { 402 {
406 relative:1.0 1.0; 403 relative: 0.6 1.0;
407 to_x:"mpdule.play"; 404 to: "controls_clip";
408 to_y:"controls_clip";
409 } 405 }
410 image 406 image
411 { 407 {
412 normal:"pause.png"; 408 normal: "pause.png";
413 } 409 }
414 } 410 }
415 } 411 }
416 part 412 part
417 { 413 {
418 name:"mpdule.stop"; 414 name: "mpdule.stop";
419 type:IMAGE; 415 type: IMAGE;
420 mouse_events:1; 416 mouse_events: 1;
421 repeat_events:1; 417 repeat_events: 1;
422 description 418 description
423 { 419 {
424 state:"default" 0.0; 420 state: "default" 0.0;
425 visible:1; 421 visible: 1;
426 aspect:1 1; 422 aspect: 1 1;
427 align:0.0 0.5; 423 aspect_preference: BOTH;
424 align: 0.5 0.5;
428 rel1 425 rel1
429 { 426 {
430 relative:1.0 0.0; 427 relative: 0.6 0.0;
431 offset:0 0; 428 to: "controls_clip";
432 to_x:"mpdule.pause";
433 to_y:"controls_clip";
434 } 429 }
435 rel2 430 rel2
436 { 431 {
437 relative:1.0 1.0; 432 relative: 0.8 1.0;
438 to_x:"mpdule.pause"; 433 to: "controls_clip";
439 to_y:"controls_clip";
440 } 434 }
441 image 435 image
442 { 436 {
443 normal:"stop.png"; 437 normal: "stop.png";
444 } 438 }
445 } 439 }
446 } 440 }
447 part 441 part
448 { 442 {
449 name:"mpdule.next"; 443 name: "mpdule.next";
450 type:IMAGE; 444 type: IMAGE;
451 mouse_events:1; 445 mouse_events: 1;
452 repeat_events:1; 446 repeat_events: 1;
453 description 447 description
454 { 448 {
455 state:"default" 0.0; 449 state: "default" 0.0;
456 visible:1; 450 visible: 1;
457 aspect:1 1; 451 aspect: 1 1;
458 align:0.0 0.5; 452 aspect_preference: BOTH;
453 align: 0.5 0.5;
459 rel1 454 rel1
460 { 455 {
461 relative:1.0 0.0; 456 relative: 0.8 0.0;
462 offset:0 0; 457 to: "controls_clip";
463 to_x:"mpdule.stop";
464 to_y:"controls_clip";
465 } 458 }
466 rel2 459 rel2
467 { 460 {
468 relative:1.0 1.0; 461 relative: 1.0 1.0;
469 to_x:"mpdule.stop"; 462 to: "controls_clip";
470 to_y:"controls_clip";
471 } 463 }
472 image 464 image
473 { 465 {
474 normal:"next.png"; 466 normal: "next.png";
475 } 467 }
476 } 468 }
477 } 469 }
478 part 470 part
479 { 471 {
480 name:"event_grab"; 472 name: "event_grab";
481 type:RECT; 473 type: RECT;
482 repeat_events:1; 474 repeat_events: 1;
483 description 475 description
484 { 476 {
485 state:"default" 0.00; 477 state: "default" 0.00;
486 visible:1; 478 visible: 1;
487 color:0 0 0 0; 479 color: 0 0 0 0;
488 rel1 480 rel1
489 { 481 {
490 relative:0.00 0.00; 482 relative: 0.00 0.00;
491 offset:0 0; 483 offset: 0 0;
492 } 484 }
493 rel2 485 rel2
494 { 486 {
495 relative:1.00 1.00; 487 relative: 1.00 1.00;
496 offset:-1 -1; 488 offset: -1 -1;
497 } 489 }
498 } 490 }
499 } 491 }
@@ -502,83 +494,83 @@ collections
502 { 494 {
503 program 495 program
504 { 496 {
505 name:"show_controls"; 497 name: "show_controls";
506 signal:"mouse,in"; 498 signal: "mouse,in";
507 source:"event_grab"; 499 source: "event_grab";
508 action:STATE_SET "show" 0.0; 500 action: STATE_SET "show" 0.0;
509 transition:LINEAR 0.1; 501 transition: LINEAR 0.1;
510 target:"controls_clip"; 502 target: "controls_clip";
511 } 503 }
512 program 504 program
513 { 505 {
514 name:"show_controls2"; 506 name: "show_controls2";
515 signal:"mouse,in"; 507 signal: "mouse,in";
516 source:"event_grab"; 508 source: "event_grab";
517 action:STATE_SET "hide" 0.0; 509 action: STATE_SET "hide" 0.0;
518 transition:LINEAR 0.1; 510 transition: LINEAR 0.1;
519 target:"item_clip"; 511 target: "item_clip";
520 } 512 }
521 program 513 program
522 { 514 {
523 name:"wait"; 515 name: "wait";
524 action:STATE_SET "hide" 0.0; 516 action: STATE_SET "hide" 0.0;
525 transition:LINEAR 2; 517 transition: LINEAR 2;
526 target:"item_clip"; 518 target: "item_clip";
527 after:"hide_controls"; 519 after: "hide_controls";
528 after:"hide_controls2"; 520 after: "hide_controls2";
529 } 521 }
530 program 522 program
531 { 523 {
532 name:"hide_controls"; 524 name: "hide_controls";
533 signal:"mouse,out"; 525 signal: "mouse,out";
534 source:"event_grab"; 526 source: "event_grab";
535 action:STATE_SET "default" 0.0; 527 action: STATE_SET "default" 0.0;
536 transition:LINEAR 0.1; 528 transition: LINEAR 0.1;
537 target:"controls_clip"; 529 target: "controls_clip";
538 } 530 }
539 program 531 program
540 { 532 {
541 name:"hide_controls2"; 533 name: "hide_controls2";
542 signal:"mouse,out"; 534 signal: "mouse,out";
543 source:"event_grab"; 535 source: "event_grab";
544 action:STATE_SET "default" 0.0; 536 action: STATE_SET "default" 0.0;
545 transition:LINEAR 0.1; 537 transition: LINEAR 0.1;
546 target:"item_clip"; 538 target: "item_clip";
547 } 539 }
548 program 540 program
549 { 541 {
550 name:"mouse_play"; 542 name: "mouse_play";
551 signal:"mouse,clicked,1"; 543 signal: "mouse,clicked,1";
552 source:"mpdule.play"; 544 source: "mpdule.play";
553 action:SIGNAL_EMIT "mpdule,play" ""; 545 action: SIGNAL_EMIT "mpdule,play" "";
554 } 546 }
555 program 547 program
556 { 548 {
557 name:"mouse_pause"; 549 name: "mouse_pause";
558 signal:"mouse,clicked,1"; 550 signal: "mouse,clicked,1";
559 source:"mpdule.pause"; 551 source: "mpdule.pause";
560 action:SIGNAL_EMIT "mpdule,pause" ""; 552 action: SIGNAL_EMIT "mpdule,pause" "";
561 } 553 }
562 program 554 program
563 { 555 {
564 name:"mouse_stop"; 556 name: "mouse_stop";
565 signal:"mouse,clicked,1"; 557 signal: "mouse,clicked,1";
566 source:"mpdule.stop"; 558 source: "mpdule.stop";
567 action:SIGNAL_EMIT "mpdule,stop" ""; 559 action: SIGNAL_EMIT "mpdule,stop" "";
568 } 560 }
569 program 561 program
570 { 562 {
571 name:"mouse_previous"; 563 name: "mouse_previous";
572 signal:"mouse,clicked,1"; 564 signal: "mouse,clicked,1";
573 source:"mpdule.previous"; 565 source: "mpdule.previous";
574 action:SIGNAL_EMIT "mpdule,previous" ""; 566 action: SIGNAL_EMIT "mpdule,previous" "";
575 } 567 }
576 program 568 program
577 { 569 {
578 name:"mouse_next"; 570 name: "mouse_next";
579 signal:"mouse,clicked,1"; 571 signal: "mouse,clicked,1";
580 source:"mpdule.next"; 572 source: "mpdule.next";
581 action:SIGNAL_EMIT "mpdule,next" ""; 573 action: SIGNAL_EMIT "mpdule,next" "";
582 } 574 }
583 } 575 }
584 } 576 }