summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-12-13 13:14:20 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-12-13 13:14:20 +0900
commitd93a54b278576233d95bfa7ddc3754d1011b32b7 (patch)
tree9a9e5ae0bdb029eb8e51be6aa0815f8cf555c4cd /data
parent2ca0e69529510892a414a7fbcccd01d3d05e9474 (diff)
terminology - nyanology - remove pointless copy and paste from default
this makes nyanoology work with the tabbar
Diffstat (limited to 'data')
-rw-r--r--data/themes/nyanology/nyanology.edc1617
1 files changed, 0 insertions, 1617 deletions
diff --git a/data/themes/nyanology/nyanology.edc b/data/themes/nyanology/nyanology.edc
index 7d66c7b..9c9a3ab 100644
--- a/data/themes/nyanology/nyanology.edc
+++ b/data/themes/nyanology/nyanology.edc
@@ -1,1178 +1,6 @@
1collections { 1collections {
2 2
3////////////////////////////////////////////////////////////////////////////// 3//////////////////////////////////////////////////////////////////////////////
4 //// the background and general container for the terminal
5 group { name: "terminology/background";
6 images {
7 image: "bg_bevel.png" COMP;
8 image: "bg_shine.png" COMP;
9 image: "bg_glint.png" COMP;
10 image: "pm_shadow.png" COMP;
11 image: "pm_overlay.png" COMP;
12 image: "pm_fill.png" COMP;
13 image: "cr_glow.png" COMP;
14 }
15 script {
16 public message(Msg_Type:type, id, ...) {
17 new r, g, b, a, v;
18
19 if ((type != MSG_INT) || (id != 1)) return;
20
21 v = (getarg(2) * 255) / 100;
22
23 custom_state(PART:"base", "default", 0.0);
24 get_state_val(PART:"base", STATE_COLOR, r, g, b, a);
25 set_state_val(PART:"base", STATE_COLOR, r, g, b, v);
26 set_state(PART:"base", "custom", 0.0);
27 }
28 }
29 parts {
30// other signals sent not handled here
31// program { name: "focus_in";
32// signal: "focus,in";
33// source: "terminology";
34// }
35// program { name: "focus_out";
36// signal: "focus,out";
37// source: "terminology";
38// }
39
40 ////////////////////////////////////////////////////////////////////
41 // background handling
42 part { name: "base"; type: RECT;
43 mouse_events: 1;
44 description { state: "default" 0.0;
45 color: 0 0 0 255;
46 }
47 description { state: "catblue" 0.0;
48 color: 0 51 102 255;
49 }
50 program { name: "belling";
51 //signal: "bell";
52 source: "terminology";
53 action: STATE_SET "catblue" 0.0;
54 target: "base";
55 transition: DECELERATE 0.15;
56 after: "belling2";
57 }
58 program { name: "belling2";
59 action: STATE_SET "default" 0.0;
60 target: "base";
61 transition: ACCELERATE 0.15;
62 }
63 }
64 part { name: "terminology.background"; type: SWALLOW;
65 description { state: "default" 0.0;
66 }
67 description { state: "image" 0.0;
68 inherit: "default" 0.0;
69 }
70 description { state: "scale" 0.0;
71 inherit: "default" 0.0;
72 }
73 description { state: "edje" 0.0;
74 inherit: "default" 0.0;
75 }
76 description { state: "movie" 0.0;
77 inherit: "default" 0.0;
78 }
79 }
80 program { name: "media_off";
81 signal: "media,off";
82 source: "terminology";
83 action: STATE_SET "default" 0.0;
84 target: "terminology.background";
85 }
86 program { name: "media_img";
87 signal: "media,image";
88 source: "terminology";
89 action: STATE_SET "image" 0.0;
90 target: "terminology.background";
91 }
92 program { name: "media_scale";
93 signal: "media,scale";
94 source: "terminology";
95 action: STATE_SET "scale" 0.0;
96 target: "terminology.background";
97 }
98 program { name: "media_edje";
99 signal: "media,edje";
100 source: "terminology";
101 action: STATE_SET "edje" 0.0;
102 target: "terminology.background";
103 }
104 program { name: "media_mov";
105 signal: "media,movie";
106 source: "terminology";
107 action: STATE_SET "movie" 0.0;
108 target: "terminology.background";
109 }
110
111 ////////////////////////////////////////////////////////////////////
112 // actual text grid for chars, cursors, selectiond etc. goes here
113 part { name: "terminology.content"; type: SWALLOW;
114 description { state: "default" 0.0;
115 rel1.offset: 1 2;
116 rel2.offset: -2 -2;
117 }
118 }
119
120 ////////////////////////////////////////////////////////////////////
121 // indicator of other tabs and control
122 part { name: "tabcount_clip"; type: RECT;
123 description { state: "default" 0.0;
124 color: 255 255 255 0;
125 visible: 0;
126 }
127 description { state: "on" 0.0;
128 inherit: "default" 0.0;
129 visible: 1;
130 color: 255 255 255 255;
131 }
132 }
133 part { name: "terminology.tabmissed.label"; type: TEXT; mouse_events: 0;
134 effect: GLOW;
135 scale: 1;
136 clip_to: "tabcount_clip";
137 description { state: "default" 0.0;
138 fixed: 1 1;
139 rel1.to: "terminology.tabcount.label";
140 rel2.to: "terminology.tabcount.label";
141 rel1.offset: -4 0;
142 rel2.relative: 0.0 1.0;
143 rel2.offset: -5 -1;
144 color: 255 153 51 64;
145 color2: 255 51 0 18;
146 color3: 255 0 0 8;
147 align: 1.0 0.5;
148 text { font: "Sans"; size: 8;
149 align: 1.0 0.5;
150 min: 1 1;
151 ellipsis: 0;
152 }
153 }
154 description { state: "over" 0.0;
155 inherit: "default" 0.0;
156 color: 255 255 64 255;
157 color2: 255 153 51 128;
158 color3: 255 0 0 20;
159 }
160 }
161 part { name: "terminology.tabcount.label"; type: TEXT; mouse_events: 0;
162 effect: GLOW;
163 scale: 1;
164 clip_to: "tabcount_clip";
165 description { state: "default" 0.0;
166 fixed: 1 1;
167 rel1.to: "terminology.tabcount.control";
168 rel2.to: "terminology.tabcount.control";
169 rel1.relative: -0.2 0.0;
170 rel2.relative: -0.2 1.0;
171 color: 51 153 255 64;
172 color2: 51 153 255 18;
173 color3: 51 153 255 8;
174 align: 1.0 0.5;
175 text { font: "Sans"; size: 8;
176 align: 1.0 0.5;
177 min: 1 1;
178 ellipsis: 0;
179 }
180 }
181 description { state: "over" 0.0;
182 inherit: "default" 0.0;
183 color: 255 255 255 255;
184 color2: 51 153 255 128;
185 color3: 51 153 255 20;
186 }
187 }
188 part { name: "tabcount_glow_r0";
189 clip_to: "tabcount_clip";
190 description { state: "default" 0.0;
191 rel1.to: "tabcount_r0";
192 rel2.to: "tabcount_r0";
193 rel1.offset: -4 -4;
194 rel2.offset: 3 3;
195 image {
196 normal: "cr_glow.png";
197 border: 9 9 9 9;
198 }
199 color: 51 153 255 32;
200 }
201 description { state: "over" 0.0;
202 inherit: "default" 0.0;
203 color: 51 153 255 255;
204 }
205 }
206 part { name: "tabcount_glow_r1";
207 clip_to: "tabcount_clip";
208 description { state: "default" 0.0;
209 rel1.to: "tabcount_r1";
210 rel2.to: "tabcount_r1";
211 rel1.offset: -4 -4;
212 rel2.offset: 3 3;
213 image {
214 normal: "cr_glow.png";
215 border: 9 9 9 9;
216 }
217 color: 51 153 255 32;
218 }
219 description { state: "over" 0.0;
220 inherit: "default" 0.0;
221 color: 51 153 255 255;
222 }
223 }
224 part { name: "tabcount_glow_r2";
225 clip_to: "tabcount_clip";
226 description { state: "default" 0.0;
227 rel1.to: "tabcount_r2";
228 rel2.to: "tabcount_r2";
229 rel1.offset: -4 -4;
230 rel2.offset: 3 3;
231 image {
232 normal: "cr_glow.png";
233 border: 9 9 9 9;
234 }
235 color: 51 153 255 32;
236 }
237 description { state: "over" 0.0;
238 inherit: "default" 0.0;
239 color: 51 153 255 255;
240 }
241 }
242 part { name: "tabcount_glow_r3";
243 clip_to: "tabcount_clip";
244 description { state: "default" 0.0;
245 rel1.to: "tabcount_r3";
246 rel2.to: "tabcount_r3";
247 rel1.offset: -4 -4;
248 rel2.offset: 3 3;
249 image {
250 normal: "cr_glow.png";
251 border: 9 9 9 9;
252 }
253 color: 51 153 255 32;
254 }
255 description { state: "over" 0.0;
256 inherit: "default" 0.0;
257 color: 51 153 255 255;
258 }
259 }
260 part { name: "tabcount_r0"; type: RECT;
261 clip_to: "tabcount_clip";
262 description { state: "default" 0.0;
263 rel1.to: "terminology.tabcount.control";
264 rel2.to: "terminology.tabcount.control";
265 rel1.relative: 0.05 0.05;
266 rel2.relative: 0.45 0.45;
267 color: 255 255 255 32;
268 }
269 description { state: "over" 0.0;
270 inherit: "default" 0.0;
271 color: 255 255 255 255;
272 }
273 }
274 part { name: "tabcount_r1"; type: RECT;
275 clip_to: "tabcount_clip";
276 description { state: "default" 0.0;
277 rel1.to: "terminology.tabcount.control";
278 rel2.to: "terminology.tabcount.control";
279 rel1.relative: 0.55 0.05;
280 rel2.relative: 0.95 0.45;
281 color: 255 255 255 32;
282 }
283 description { state: "over" 0.0;
284 inherit: "default" 0.0;
285 color: 255 255 255 255;
286 }
287 }
288 part { name: "tabcount_r2"; type: RECT;
289 clip_to: "tabcount_clip";
290 description { state: "default" 0.0;
291 rel1.to: "terminology.tabcount.control";
292 rel2.to: "terminology.tabcount.control";
293 rel1.relative: 0.05 0.55;
294 rel2.relative: 0.45 0.95;
295 color: 255 255 255 32;
296 }
297 description { state: "over" 0.0;
298 inherit: "default" 0.0;
299 color: 255 255 255 255;
300 }
301 }
302 part { name: "tabcount_r3"; type: RECT;
303 clip_to: "tabcount_clip";
304 description { state: "default" 0.0;
305 rel1.to: "terminology.tabcount.control";
306 rel2.to: "terminology.tabcount.control";
307 rel1.relative: 0.55 0.55;
308 rel2.relative: 0.95 0.95;
309 color: 255 255 255 32;
310 }
311 description { state: "over" 0.0;
312 inherit: "default" 0.0;
313 color: 255 255 255 255;
314 }
315 }
316 part { name: "terminology.tabcount.control"; type: SWALLOW;
317 clip_to: "tabcount_clip";
318 description { state: "default" 0.0;
319 fixed: 1 1;
320 rel1.relative: 1.0 0.0;
321 rel1.offset: -3 2;
322 rel2.relative: 1.0 0.0;
323 rel2.offset: -3 2;
324 align: 1.0 0.0;
325 min: 16 16;
326 }
327 }
328 part { name: "tabcount_ev"; type: RECT; repeat_events: 1;
329 clip_to: "tabcount_clip";
330 description { state: "default" 0.0;
331 fixed: 1 1;
332 rel1.to: "terminology.tabcount.control";
333 rel2.to: "terminology.tabcount.control";
334 color: 0 0 0 0;
335 }
336 }
337 program {
338 signal: "mouse,in"; source: "tabcount_ev";
339 action: STATE_SET "over" 0.0;
340 transition: DECELERATE 0.5;
341 target: "tabcount_r0";
342 target: "tabcount_r1";
343 target: "tabcount_r2";
344 target: "tabcount_r3";
345 target: "tabcount_glow_r0";
346 target: "tabcount_glow_r1";
347 target: "tabcount_glow_r2";
348 target: "tabcount_glow_r3";
349 target: "terminology.tabcount.label";
350 target: "terminology.tabmissed.label";
351 }
352 program {
353 signal: "mouse,out"; source: "tabcount_ev";
354 action: STATE_SET "default" 0.0;
355 transition: DECELERATE 2.0;
356 target: "tabcount_r0";
357 target: "tabcount_r1";
358 target: "tabcount_r2";
359 target: "tabcount_r3";
360 target: "tabcount_glow_r0";
361 target: "tabcount_glow_r1";
362 target: "tabcount_glow_r2";
363 target: "tabcount_glow_r3";
364 target: "terminology.tabcount.label";
365 target: "terminology.tabmissed.label";
366 }
367 program {
368 signal: "mouse,clicked,1"; source: "tabcount_ev";
369 action: SIGNAL_EMIT "tabcount,go" "terminology";
370 }
371 program {
372 signal: "mouse,wheel,0,-1"; source: "tabcount_ev";
373 action: SIGNAL_EMIT "tabcount,prev" "terminology";
374 }
375 program {
376 signal: "mouse,wheel,0,1"; source: "tabcount_ev";
377 action: SIGNAL_EMIT "tabcount,next" "terminology";
378 }
379 program {
380 signal: "tabcount,off"; source: "terminology";
381 action: STATE_SET "default" 0.0;
382 transition: DECELERATE 0.5;
383 target: "tabcount_clip";
384 }
385 program {
386 signal: "tabcount,on"; source: "terminology";
387 action: STATE_SET "on" 0.0;
388 transition: DECELERATE 0.5;
389 target: "tabcount_clip";
390 }
391 program {
392 signal: "tabmissed,off"; source: "terminology";
393 action: STATE_SET "default" 0.0;
394 transition: DECELERATE 0.5;
395 target: "terminology.tabmissed.label";
396 }
397 program {
398 signal: "tabmissed,on"; source: "terminology";
399 action: STATE_SET "over" 0.0;
400 transition: DECELERATE 0.2;
401 target: "terminology.tabmissed.label";
402 after: "tabmissed2";
403 }
404 program { name: "tabmissed2";
405 signal: "tabmissed,on"; source: "terminology";
406 action: STATE_SET "default" 0.0;
407 transition: DECELERATE 3.0;
408 target: "terminology.tabmissed.label";
409 }
410
411 ////////////////////////////////////////////////////////////////////
412 // miniview
413 part { name: "terminology.miniview"; type: SWALLOW;
414 description { state: "default" 0.0;
415 //color: 255 255 255 0;
416 visible: 0;
417 }
418 description { state: "on" 0.0;
419 inherit: "default" 0.0;
420 visible: 1;
421 //color: 255 255 255 255;
422 }
423 }
424
425 program {
426 signal: "miniview,off"; source: "terminology";
427 action: STATE_SET "default" 0.0;
428 target: "terminology.miniview";
429 }
430 program {
431 signal: "miniview,on"; source: "terminology";
432 action: STATE_SET "on" 0.0;
433 target: "terminology.miniview";
434 }
435
436 ////////////////////////////////////////////////////////////////////
437 // overlayed prettiness
438 part { name: "bevel";
439 mouse_events: 0;
440 description { state: "default" 0.0;
441 rel1.offset: 0 0;
442 rel2.offset: -1 -1;
443 image.normal: "bg_bevel.png";
444 image.border: 3 3 5 3;
445 image.middle: 0;
446 fill.smooth: 0;
447 visible: 1;
448 }
449 }
450 part { name: "glintclip"; type: RECT;
451 mouse_events: 1;
452 description { state: "default" 0.0;
453 }
454 }
455 part { name: "glint";
456 mouse_events: 0;
457 clip_to: "glintclip";
458 description { state: "default" 0.0;
459 fixed: 1 1;
460 min: 79 5;
461 max: 79 5;
462 rel1 {
463 relative: 0.0 0.0;
464 offset: 0 1;
465 }
466 rel2 {
467 relative: 1.0 0.0;
468 offset: -1 1;
469 }
470 image.normal: "bg_glint.png";
471 }
472 }
473
474 ////////////////////////////////////////////////////////////////////
475 // a place terminology will place an entry box for internal commands
476 part { name: "cmdclip"; type: RECT;
477 description { state: "default" 0.0;
478 rel1.to: "terminology.cmdbox";
479 rel1.offset: -100 -100;
480 rel2.to: "terminology.cmdbox";
481 rel2.offset: 99 99;
482 color: 255 255 255 0;
483 visible: 0;
484 }
485 description { state: "visible" 0.0;
486 inherit: "default" 0.0;
487 color: 255 255 255 255;
488 visible: 1;
489 }
490 }
491 part { name: "cmdback"; type: RECT;
492 clip_to: "cmdclip";
493 description { state: "default" 0.0;
494 color: 255 255 255 255;
495 rel1.to: "terminology.cmdbox";
496 rel1.offset: -2 -2;
497 rel2.to: "terminology.cmdbox";
498 rel2.offset: 1 1;
499 }
500 }
501 part { name: "terminology.cmdbox"; type: SWALLOW;
502 clip_to: "cmdclip";
503 description { state: "default" 0.0;
504 fixed: 1 1;
505 min: 8 8;
506 rel1.relative: 0.0 1.0;
507 rel1.offset: 8 9;
508 rel2.offset: -9 9;
509 align: 0.5 0.0;
510 }
511 description { state: "visible" 0.0;
512 inherit: "default" 0.0;
513 rel1.offset: 8 -9;
514 rel2.offset: -9 -9;
515 align: 0.5 1.0;
516 }
517 }
518 program { name: "cmdshow0";
519 signal: "cmdbox,show";
520 source: "terminology";
521 action: STATE_SET "visible" 0.0;
522 transition: DECELERATE 0.4;
523 target: "cmdclip";
524 }
525 program { name: "cmdshow";
526 signal: "cmdbox,show";
527 source: "terminology";
528 action: STATE_SET "visible" 0.0;
529 transition: SPRING 0.4 0.5 4;
530 target: "terminology.cmdbox";
531 }
532 program { name: "cmdhide";
533 signal: "cmdbox,hide";
534 source: "terminology";
535 action: STATE_SET "default" 0.0;
536 transition: ACCELERATE 0.5;
537 target: "terminology.cmdbox";
538 target: "cmdclip";
539 }
540
541 ////////////////////////////////////////////////////////////////////
542 // visual bell - spinning red siren light
543 /*part { name: "bell_glow";
544 mouse_events: 0;
545 description { state: "default" 0.0;
546 fixed: 1 1;
547 visible: 0;
548 color: 255 255 255 0;
549 rel1.to: "bell_base";
550 rel2.to: "bell_base";
551 min: 1600 1600;
552 fill.smooth: 0;
553 image.normal: "bg_led_glow.png";
554 }
555 description { state: "visible" 0.0;
556 inherit: "default" 0.0;
557 visible: 1;
558 color: 255 255 255 255;
559 }
560 description { state: "done" 0.0;
561 inherit: "default" 0.0;
562 visible: 0;
563 color: 255 255 255 0;
564 min: 0 0;
565 }
566 }
567 part { name: "bell_base";
568 mouse_events: 0;
569 description { state: "default" 0.0;
570 fixed: 1 1;
571 visible: 0;
572 color: 255 255 255 0;
573 min: 32 32;
574 max: 32 32;
575 rel2.offset: -1 -1;
576 align: 1.0 1.0;
577 image.normal: "bg_led_base.png";
578 }
579 description { state: "visible" 0.0;
580 inherit: "default" 0.0;
581 visible: 1;
582 color: 255 255 255 255;
583 }
584 }
585 part { name: "bell";
586 mouse_events: 0;
587 description { state: "default" 0.0;
588 fixed: 1 1;
589 visible: 0;
590 color: 255 255 255 0;
591 rel1.to: "bell_base";
592 rel2.to: "bell_base";
593 image.normal: "bg_led.png";
594 }
595 description { state: "visible" 0.0;
596 inherit: "default" 0.0;
597 visible: 1;
598 color: 255 255 255 255;
599 }
600 }
601 part { name: "bell_strobe";
602 mouse_events: 0;
603 description { state: "default" 0.0;
604 fixed: 1 1;
605 visible: 0;
606 color: 255 255 255 0;
607 rel1.to: "bell";
608 rel2.to: "bell";
609 image.normal: "bg_led_strobe.png";
610 map {
611 on: 1;
612 smooth: 1;
613 rotation.center: "bell";
614 }
615 }
616 description { state: "spin" 0.0;
617 inherit: "default" 0.0;
618 visible: 1;
619 color: 255 255 255 255;
620 map.rotation.z: 36.0;
621 }
622 description { state: "spin_done" 0.0;
623 inherit: "default" 0.0;
624 visible: 0;
625 color: 255 255 255 0;
626 map.rotation.z: 684.0;
627 }
628 }
629 program { name: "bell0";
630 signal: "bell";
631 source: "terminology";
632 action: STATE_SET "default" 0.0;
633 target: "bell_base";
634 target: "bell";
635 target: "bell_strobe";
636 target: "bell_glow";
637 after: "bell";
638 }
639 program { name: "bell";
640 action: STATE_SET "visible" 0.0;
641 target: "bell_base";
642 target: "bell_glow";
643 after: "bell2";
644 }
645 program { name: "bell2";
646 action: STATE_SET "visible" 0.0;
647 transition: DECELERATE 0.1;
648 target: "bell";
649 target: "bell_glow";
650 after: "bell3";
651 after: "bell3.1";
652 }
653 program { name: "bell3";
654 action: STATE_SET "spin" 0.0;
655 transition: LINEAR 0.1;
656 target: "bell_strobe";
657 after: "bell4.0";
658 after: "bell4.1";
659 after: "bell4.2";
660 }
661 program { name: "bell3.1";
662 action: STATE_SET "done" 0.0;
663 transition: DECELERATE 0.5;
664 target: "bell_glow";
665 }
666 program { name: "bell4.0";
667 action: STATE_SET "default" 0.0;
668 transition: ACCELERATE 1.2;
669 target: "bell";
670 }
671 program { name: "bell4.1";
672 action: STATE_SET "default" 0.0;
673 transition: ACCELERATE 1.6;
674 target: "bell_base";
675 }
676 program { name: "bell4.2";
677 action: STATE_SET "spin_done" 0.0;
678 transition: LINEAR 0.9;
679 target: "bell_strobe";
680 }
681 */
682
683 ////////////////////////////////////////////////////////////////////
684 // popup media over the terminal (until dismissed)
685 part { name: "popmedia_clip"; type: RECT;
686 mouse_events: 1;
687 description { state: "default" 0.0;
688 fixed: 1 1;
689 visible: 0;
690 color: 255 255 255 0;
691 }
692 description { state: "visible" 0.0;
693 inherit: "default" 0.0;
694 visible: 1;
695 color: 255 255 255 255;
696 }
697 }
698 part { name: "popmedia_shadow";
699 mouse_events: 0;
700 description { state: "default" 0.0;
701 fixed: 1 1;
702 rel1 {
703 to: "terminology.popmedia";
704 }
705 rel2 {
706 to: "terminology.popmedia";
707 }
708 image.normal: "pm_shadow.png";
709 image.border: 64 64 64 64;
710 image.border_scale_by: 0.1;
711 fill.smooth: 0;
712 visible: 0;
713 }
714 description { state: "visible" 0.0;
715 inherit: "default" 0.0;
716 rel1.offset: -32 -32;
717 rel2.offset: 31 31;
718 image.border_scale_by: 1.0;
719 visible: 1;
720 }
721 }
722 part { name: "popmedia_fill";
723 mouse_events: 0;
724 description { state: "default" 0.0;
725 fixed: 1 1;
726 rel1.to: "terminology.popmedia";
727 rel2.to: "terminology.popmedia";
728 image.normal: "pm_fill.png";
729 fill {
730 size.relative: 0.0 0.0;
731 size.offset: 64 64;
732 }
733 }
734 }
735 part { name: "terminology.popmedia"; type: SWALLOW;
736 clip_to: "popmedia_clip";
737 description { state: "default" 0.0;
738 fixed: 1 1;
739 rel1.relative: 0.5 0.5;
740 rel2.relative: 0.5 0.5;
741 visible: 0;
742 }
743 description { state: "image" 0.0;
744 inherit: "default" 0.0;
745 rel1.relative: 0.1 0.1;
746 rel2.relative: 0.9 0.9;
747 visible: 1;
748 }
749 description { state: "scale" 0.0;
750 inherit: "default" 0.0;
751 rel1.relative: 0.1 0.1;
752 rel2.relative: 0.9 0.9;
753 visible: 1;
754 }
755 description { state: "edje" 0.0;
756 inherit: "default" 0.0;
757 rel1.relative: 0.1 0.1;
758 rel2.relative: 0.9 0.9;
759 visible: 1;
760 }
761 description { state: "movie" 0.0;
762 inherit: "default" 0.0;
763 rel1.relative: 0.1 0.1;
764 rel2.relative: 0.9 0.9;
765 visible: 1;
766 }
767 }
768 part { name: "popmedia_overlay";
769 mouse_events: 0;
770 description { state: "default" 0.0;
771 fixed: 1 1;
772 rel1.to: "terminology.popmedia";
773 rel2.to: "terminology.popmedia";
774 image.normal: "pm_overlay.png";
775 fill.smooth: 0;
776 visible: 0;
777 }
778 description { state: "visible" 0.0;
779 inherit: "default" 0.0;
780 visible: 1;
781 }
782 }
783 part { name: "popmedia_bevel";
784 mouse_events: 0;
785 description { state: "default" 0.0;
786 fixed: 1 1;
787 rel1.to: "terminology.popmedia";
788 rel2.to: "terminology.popmedia";
789 image.normal: "bg_bevel.png";
790 image.border: 3 3 5 3;
791 image.middle: 0;
792 fill.smooth: 0;
793 visible: 0;
794 }
795 description { state: "visible" 0.0;
796 inherit: "default" 0.0;
797 visible: 1;
798 }
799 }
800 part { name: "popmedia_glintclip"; type: RECT;
801 mouse_events: 0;
802 description { state: "default" 0.0;
803 fixed: 1 1;
804 visible: 0;
805 }
806 description { state: "visible" 0.0;
807 inherit: "default" 0.0;
808 visible: 1;
809 }
810 }
811 part { name: "popmedia_glint";
812 mouse_events: 0;
813 clip_to: "popmedia_glintclip";
814 description { state: "default" 0.0;
815 fixed: 1 1;
816 min: 79 5;
817 max: 79 5;
818 rel1 {
819 to: "terminology.popmedia";
820 relative: 0.0 0.0;
821 offset: 0 0;
822 }
823 rel2 {
824 to: "terminology.popmedia";
825 relative: 1.0 0.0;
826 offset: -1 0;
827 }
828 image.normal: "bg_glint.png";
829 visible: 0;
830 }
831 description { state: "visible" 0.0;
832 inherit: "default" 0.0;
833 visible: 1;
834 }
835 }
836 part { name: "popmedia_shine";
837 mouse_events: 0;
838 description { state: "default" 0.0;
839 fixed: 1 1;
840 rel1.to: "terminology.popmedia";
841 rel2.to: "terminology.popmedia";
842 image.normal: "bg_shine.png";
843 fill.smooth: 0;
844 align: 0.5 0.0;
845 aspect: (255/120) (255/120);
846 aspect_preference: HORIZONTAL;
847 visible: 0;
848 }
849 description { state: "visible" 0.0;
850 inherit: "default" 0.0;
851 visible: 1;
852 }
853 }
854 part { name: "popmedia_dismiss"; type: RECT;
855 mouse_events: 1;
856 description { state: "default" 0.0;
857 fixed: 1 1;
858 color: 0 0 0 0;
859 visible: 0;
860 }
861 description { state: "visible" 0.0;
862 inherit: "default" 0.0;
863 visible: 1;
864 }
865 }
866 program { name: "popmedia_dismiss";
867 signal: "mouse,clicked,*";
868 source: "popmedia_dismiss";
869 action: STATE_SET "default" 0.0;
870 transition: DECELERATE 0.5;
871 target: "terminology.popmedia";
872 target: "popmedia_clip";
873 target: "popmedia_dismiss";
874 target: "popmedia_shadow";
875 target: "popmedia_fill";
876 target: "popmedia_overlay";
877 target: "popmedia_bevel";
878 target: "popmedia_glint";
879 target: "popmedia_glintclip";
880 target: "popmedia_shine";
881 after: "popmedia_dismiss2";
882 }
883 program { name: "popmedia_dismiss2";
884 action: SIGNAL_EMIT "popmedia,done" "terminology";
885 }
886 program { name: "popmedia_off";
887 signal: "popmedia,off";
888 source: "terminology";
889 action: STATE_SET "default" 0.0;
890 transition: DECELERATE 0.2;
891 target: "terminology.popmedia";
892 target: "popmedia_clip";
893 target: "popmedia_dismiss";
894 target: "popmedia_shadow";
895 target: "popmedia_fill";
896 target: "popmedia_overlay";
897 target: "popmedia_bevel";
898 target: "popmedia_glint";
899 target: "popmedia_glintclip";
900 target: "popmedia_shine";
901 after: "popmedia_dismiss2";
902 }
903 program { name: "popmedia_img";
904 signal: "popmedia,image";
905 source: "terminology";
906 action: STATE_SET "image" 0.0;
907 transition: DECELERATE 0.2;
908 target: "terminology.popmedia";
909 }
910 program { name: "popmedia_scale";
911 signal: "popmedia,scale";
912 source: "terminology";
913 action: STATE_SET "scale" 0.0;
914 transition: DECELERATE 0.2;
915 target: "terminology.popmedia";
916 }
917 program { name: "popmedia_edje";
918 signal: "popmedia,edje";
919 source: "terminology";
920 action: STATE_SET "edje" 0.0;
921 transition: DECELERATE 0.2;
922 target: "terminology.popmedia";
923 }
924 program { name: "popmedia_mov";
925 signal: "popmedia,movie";
926 source: "terminology";
927 action: STATE_SET "movie" 0.0;
928 transition: DECELERATE 0.2;
929 target: "terminology.popmedia";
930 }
931 program { name: "popmedia_img2";
932 signal: "popmedia,image";
933 source: "terminology";
934 action: STATE_SET "visible" 0.0;
935 transition: DECELERATE 0.2;
936 target: "popmedia_clip";
937 target: "popmedia_dismiss";
938 target: "popmedia_shadow";
939 target: "popmedia_fill";
940 target: "popmedia_overlay";
941 target: "popmedia_bevel";
942 target: "popmedia_glint";
943 target: "popmedia_glintclip";
944 target: "popmedia_shine";
945 }
946 program { name: "popmedia_scale2";
947 signal: "popmedia,scale";
948 source: "terminology";
949 action: STATE_SET "visible" 0.0;
950 transition: DECELERATE 0.2;
951 target: "popmedia_clip";
952 target: "popmedia_dismiss";
953 target: "popmedia_shadow";
954 target: "popmedia_fill";
955 target: "popmedia_overlay";
956 target: "popmedia_bevel";
957 target: "popmedia_glint";
958 target: "popmedia_glintclip";
959 target: "popmedia_shine";
960 }
961 program { name: "popmedia_edje2";
962 signal: "popmedia,edje";
963 source: "terminology";
964 action: STATE_SET "visible" 0.0;
965 transition: DECELERATE 0.2;
966 target: "popmedia_clip";
967 target: "popmedia_dismiss";
968 target: "popmedia_shadow";
969 target: "popmedia_fill";
970 target: "popmedia_overlay";
971 target: "popmedia_bevel";
972 target: "popmedia_glint";
973 target: "popmedia_glintclip";
974 target: "popmedia_shine";
975 }
976 program { name: "popmedia_mov2";
977 signal: "popmedia,movie";
978 source: "terminology";
979 action: STATE_SET "visible" 0.0;
980 transition: DECELERATE 0.2;
981 target: "popmedia_clip";
982 target: "popmedia_dismiss";
983 target: "popmedia_shadow";
984 target: "popmedia_fill";
985 target: "popmedia_overlay";
986 target: "popmedia_bevel";
987 target: "popmedia_glint";
988 target: "popmedia_glintclip";
989 target: "popmedia_shine";
990 }
991
992 ////////////////////////////////////////////////////////////////////
993 // overlayed options and controls
994 part { name: "terminology.about"; type: SWALLOW;
995 scale: 1;
996 description { state: "default" 0.0;
997 fixed: 1 1;
998 min: 198 198;
999 max: 198 198;
1000 align: 0.5 0.0;
1001 visible: 0;
1002 rel1.relative: 0.0 1.0;
1003 rel2.relative: 1.0 1.0;
1004 }
1005 description { state: "visible" 0.0;
1006 inherit: "default" 0.0;
1007 visible: 1;
1008 align: 0.5 0.5;
1009 rel1.relative: 0.0 0.0;
1010 rel2.relative: 1.0 1.0;
1011 }
1012 }
1013 program { name: "ab_show";
1014 signal: "about,show";
1015 source: "terminology";
1016 action: STATE_SET "visible" 0.0;
1017 transition: SPRING 1.2 2.0 6;
1018 target: "terminology.about";
1019 }
1020 program { name: "ab_hide";
1021 signal: "about,hide";
1022 source: "terminology";
1023 action: STATE_SET "default" 0.0;
1024 transition: DECELERATE 0.6;
1025 target: "terminology.about";
1026 }
1027
1028 ////////////////////////////////////////////////////////////////////
1029 // swallow to hold invisile rect to click on to dismiss things
1030 part { name: "terminology.dismiss"; type: SWALLOW;
1031 description { state: "default" 0.0;
1032 }
1033 }
1034
1035 ////////////////////////////////////////////////////////////////////
1036 // overlayed options and controls
1037 part { name: "terminology.optdetails"; type: SWALLOW;
1038 scale: 1;
1039 description { state: "default" 0.0;
1040 fixed: 1 1;
1041 min: 40 40;
1042 align: 0.0 0.5;
1043 visible: 0;
1044 rel1 {
1045 relative: 1.0 0.02;
1046 offset: 8 8;
1047 }
1048 rel2 {
1049 relative: 1.0 0.98;
1050 offset: 8 -9;
1051 }
1052 }
1053 description { state: "visible" 0.0;
1054 inherit: "default" 0.0;
1055 visible: 1;
1056 align: 1.0 0.5;
1057 rel1 {
1058 relative: 0.1 0.02;
1059 offset: 8 8;
1060 }
1061 rel2 {
1062 to_x: "terminology.options";
1063 relative: 0.0 0.98;
1064 offset: -9 -9;
1065 }
1066 }
1067 }
1068 program { name: "opdt_show";
1069 signal: "optdetails,show";
1070 source: "terminology";
1071 action: STATE_SET "visible" 0.0;
1072 transition: DECELERATE 0.4;
1073 target: "terminology.optdetails";
1074 }
1075 program { name: "opdt_hide";
1076 signal: "optdetails,hide";
1077 source: "terminology";
1078 action: STATE_SET "default" 0.0;
1079 transition: DECELERATE 0.2;
1080 target: "terminology.optdetails";
1081 after: "opdt_hide2";
1082 }
1083 program { name: "opdt_hide2";
1084 action: SIGNAL_EMIT "optdetails,hide,done" "terminology";
1085 }
1086
1087 part { name: "terminology.options"; type: SWALLOW;
1088 scale: 1;
1089 description { state: "default" 0.0;
1090 fixed: 1 1;
1091 align: 0.0 0.5;
1092 visible: 0;
1093 rel1 {
1094 relative: 1.0 0.02;
1095 offset: 8 8;
1096 }
1097 rel2 {
1098 relative: 1.0 0.98;
1099 offset: 8 -9;
1100 }
1101 }
1102 description { state: "visible" 0.0;
1103 inherit: "default" 0.0;
1104 visible: 1;
1105 align: 1.0 0.5;
1106 rel1 {
1107 offset: -9 8;
1108 }
1109 rel2 {
1110 offset: -9 -9;
1111 }
1112 }
1113 }
1114 program { name: "op_show";
1115 signal: "options,show";
1116 source: "terminology";
1117 action: STATE_SET "visible" 0.0;
1118 transition: DECELERATE 0.4;
1119 target: "terminology.options";
1120 }
1121 program { name: "op_hide";
1122 signal: "options,hide";
1123 source: "terminology";
1124 action: STATE_SET "default" 0.0;
1125 transition: DECELERATE 0.6;
1126 target: "terminology.options";
1127 }
1128
1129 part { name: "terminology.controls"; type: SWALLOW;
1130 scale: 1;
1131 description { state: "default" 0.0;
1132 fixed: 1 1;
1133 min: 10 10;
1134 align: 0.0 0.5;
1135 visible: 0;
1136 rel1 {
1137 relative: 1.0 0.5;
1138 offset: 8 8;
1139 }
1140 rel2 {
1141 relative: 1.0 0.5;
1142 offset: 8 -9;
1143 }
1144 }
1145 description { state: "visible" 0.0;
1146 inherit: "default" 0.0;
1147 visible: 1;
1148 align: 1.0 0.5;
1149 rel1 {
1150 relative: 1.0 0.5;
1151 offset: -9 8;
1152 }
1153 rel2 {
1154 offset: -9 -9;
1155 }
1156 }
1157 }
1158 program { name: "ct_show";
1159 signal: "controls,show";
1160 source: "terminology";
1161 action: STATE_SET "visible" 0.0;
1162 transition: DECELERATE 0.3;
1163 target: "terminology.controls";
1164 }
1165 program { name: "ct_hide";
1166 signal: "controls,hide";
1167 source: "terminology";
1168 action: STATE_SET "default" 0.0;
1169 transition: DECELERATE 0.5;
1170 target: "terminology.controls";
1171 }
1172 }
1173 }
1174
1175//////////////////////////////////////////////////////////////////////////////
1176 //// the selection 4 //// the selection
1177 // selections come in 5 modes: 5 // selections come in 5 modes:
1178 // 6 //
@@ -2383,451 +1211,6 @@ target: "4.bottom"
2383 } 1211 }
2384 } 1212 }
2385 } 1213 }
2386
2387//////////////////////////////////////////////////////////////////////////////
2388 //// the multimedia controls
2389 group { name: "terminology/mediabusy";
2390 images {
2391 image: "media_busy_knob.png" COMP;
2392 image: "media_busy_spinner.png" COMP;
2393 image: "media_busy_progress.png" COMP;
2394 }
2395 script {
2396 public message(Msg_Type:type, id, ...) {
2397 if ((type == MSG_FLOAT) && (id == 1)) {
2398 new Float:val;
2399 val = getfarg(2);
2400 // val 0.0 -. 1.0 percentage
2401 custom_state(PART:"progress", "default", 0.0);
2402 set_state_val(PART:"progress", STATE_REL2, val, 1.0);
2403 set_state(PART:"progress", "custom", 0.0);
2404 }
2405 }
2406 }
2407 parts {
2408 part { name: "progress_area"; type: SPACER;
2409 mouse_events: 0;
2410 description { state: "default" 0.0;
2411 fixed: 1 1;
2412 rel2.to_x: "knob";
2413 rel2.relative: 0.0 1.0;
2414 min: 10 40;
2415 max: 99999 40;
2416 align: 0.0 1.0;
2417 }
2418 }
2419 part { name: "progress";
2420 mouse_events: 0;
2421 clip_to: "fade";
2422 description { state: "default" 0.0;
2423 fixed: 1 1;
2424 rel1.to: "progress_area";
2425 rel2.to: "progress_area";
2426 rel2.relative: 0.0 1.0;
2427 color: 100 160 255 255;
2428 image.normal: "media_busy_progress.png";
2429 image.border: 5 5 0 0;
2430 min: 10 40;
2431 align: 0.0 1.0;
2432 }
2433 }
2434 part { name: "fade"; type: RECT;
2435 mouse_events: 0;
2436 description { state: "default" 0.0;
2437 color: 255 255 255 0;
2438 visible: 0;
2439 }
2440 description { state: "visible" 0.0;
2441 inherit: "default" 0.0;
2442 visible: 1;
2443 color: 255 255 255 255;
2444 }
2445 }
2446 part { name: "knob";
2447 clip_to: "fade";
2448 mouse_events: 0;
2449 description { state: "default" 0.0;
2450 fixed: 1 1;
2451 image.normal: "media_busy_knob.png";
2452 min: 40 40;
2453 max: 40 40;
2454 align: 1.0 1.0;
2455 }
2456 }
2457 part { name: "knob_spinner";
2458 clip_to: "fade";
2459 mouse_events: 0;
2460 description { state: "default" 0.0;
2461 fixed: 1 1;
2462 color: 100 160 255 255;
2463 rel1.to: "knob";
2464 rel2.to: "knob";
2465 image.normal: "media_busy_spinner.png";
2466 map {
2467 on: 1;
2468 smooth: 1;
2469 rotation.center: "knob";
2470 }
2471 }
2472 description { state: "spin" 0.0;
2473 inherit: "default" 0.0;
2474 visible: 1;
2475 map.rotation.z: 360;
2476 }
2477 }
2478 }
2479 programs {
2480 program { name: "busy";
2481 signal: "busy";
2482 source: "terminology";
2483 action: STATE_SET "visible" 0.0;
2484 transition: DECELERATE 0.5;
2485 target: "fade";
2486 }
2487 program { name: "spin1";
2488 signal: "busy";
2489 source: "terminology";
2490 action: STATE_SET "spin" 0.0;
2491 transition: LINEAR 0.5;
2492 target: "knob_spinner";
2493 after: "spin2";
2494 }
2495 program { name: "spin2";
2496 action: STATE_SET "default" 0.0;
2497 target: "knob_spinner";
2498 after: "spin1";
2499 }
2500// program { name: "downloading";
2501// signal: "busy";
2502// source: "terminology";
2503// action: STATE_SET "default" 0.0;
2504// }
2505 program { name: "done";
2506 signal: "done";
2507 source: "terminology";
2508 action: STATE_SET "default" 0.0;
2509 transition: DECELERATE 1.5;
2510 target: "fade";
2511 }
2512 }
2513 }
2514//////////////////////////////////////////////////////////////////////////////
2515 //// the multimedia controls
2516 group { name: "terminology/mediactrl";
2517 images {
2518 image: "media_bg.png" COMP;
2519 image: "media_play.png" COMP;
2520 image: "media_stop.png" COMP;
2521 image: "media_pause.png" COMP;
2522 image: "media_line.png" COMP;
2523 image: "media_knob_vol.png" COMP;
2524 image: "media_knob_pos.png" COMP;
2525 }
2526 parts {
2527 part { name: "media_clip"; type: RECT;
2528 mouse_events: 0;
2529 description { state: "default" 0.0;
2530 rel1.to: "media_bg";
2531 rel2.to: "media_bg";
2532 }
2533 }
2534 part { name: "media_bg";
2535 clip_to: "media_clip";
2536 description { state: "default" 0.0;
2537 image.normal: "media_bg.png";
2538 image.border: 11 11 11 11;
2539 min: 24 24;
2540 max: 24 24;
2541 align: 1.0 0.0;
2542 }
2543 description { state: "expanded" 0.0;
2544 inherit: "default" 0.0;
2545 min: 216 24;
2546 max: 216 24;
2547 }
2548 }
2549 part { name: "play";
2550 mouse_events: 1;
2551 repeat_events: 1;
2552 clip_to: "media_clip";
2553 description { state: "default" 0.0;
2554 image.normal: "media_pause.png";
2555 max: 24 24;
2556 align: 1.0 0.0;
2557 }
2558 description { state: "paused" 0.0;
2559 inherit: "default" 0.0;
2560 image.normal: "media_play.png";
2561 }
2562 }
2563 part { name: "stop";
2564 mouse_events: 1;
2565 repeat_events: 1;
2566 clip_to: "media_clip";
2567 description { state: "default" 0.0;
2568 image.normal: "media_stop.png";
2569 max: 24 24;
2570 rel1.to: "play";
2571 rel2.to: "play";
2572 rel1.offset: -16 0;
2573 rel2.offset: -16 0;
2574 }
2575 }
2576 part { name: "posline";
2577 mouse_events: 1;
2578 repeat_events: 1;
2579 clip_to: "media_clip";
2580 description { state: "default" 0.0;
2581 image.normal: "media_line.png";
2582 image.border: 15 15 0 0;
2583 min: 90 14;
2584 max: 90 14;
2585 rel1.to: "stop";
2586 rel2.to: "stop";
2587 rel1.offset: -25 0;
2588 rel2.offset: -90 0;
2589 }
2590 }
2591 part { name: "terminology.posdrag";
2592 mouse_events: 0;
2593 repeat_events: 1;
2594 clip_to: "media_clip";
2595 dragable {
2596 confine: "posline";
2597 x: 1 1 0;
2598 y: 0 0 0;
2599 }
2600 description { state: "default" 0.0;
2601 image.normal: "media_knob_pos.png";
2602 min: 14 14;
2603 max: 14 14;
2604 }
2605 description { state: "muted" 0.0;
2606 visible: 0;
2607 }
2608 }
2609 part { name: "volline";
2610 mouse_events: 1;
2611 repeat_events: 1;
2612 clip_to: "media_clip";
2613 description { state: "default" 0.0;
2614 image.normal: "media_line.png";
2615 image.border: 15 15 0 0;
2616 min: 60 14;
2617 max: 60 14;
2618 rel1 {
2619 to: "posline";
2620 offset: -25 0;
2621 }
2622 rel2 {
2623 to: "posline";
2624 relative: 0.0 1.0;
2625 offset: -60 0;
2626 }
2627 }
2628 }
2629 part { name: "terminology.voldrag"; type: IMAGE;
2630 mouse_events: 0;
2631 repeat_events: 1;
2632 clip_to: "media_clip";
2633 dragable {
2634 confine: "volline";
2635 x: 1 1 0;
2636 y: 0 0 0;
2637 }
2638 description { state: "default" 0.0;
2639 image.normal: "media_knob_vol.png";
2640 min: 14 14;
2641 max: 14 14;
2642 }
2643 description { state: "muted" 0.0;
2644 visible: 0;
2645 }
2646 }
2647 }
2648 programs {
2649 program { name: "media_mouse_in";
2650 signal: "mouse,in";
2651 source: "media_bg";
2652 action: STATE_SET "expanded" 0.0;
2653 transition: SINUSOIDAL 0.4 CURRENT;
2654 target: "media_bg";
2655 }
2656 program { name: "media_mouse_out";
2657 signal: "mouse,out";
2658 source: "media_bg";
2659 action: STATE_SET "default" 0.0;
2660 transition: SINUSOIDAL 0.4 CURRENT;
2661 target: "media_bg";
2662 }
2663 program { name: "media_pause_click";
2664 signal: "mouse,up,*";
2665 source: "play";
2666 filter: "play" "default";
2667 action: SIGNAL_EMIT "pause" "";
2668 }
2669 program { name: "media_play_click";
2670 signal: "mouse,up,1";
2671 source: "play";
2672 filter: "play" "paused";
2673 action: SIGNAL_EMIT "play" "";
2674 }
2675 program { name: "media_stop_click";
2676 signal: "mouse,up,1";
2677 source: "stop";
2678 action: SIGNAL_EMIT "stop" "";
2679 }
2680 program { name: "media_signal_pause";
2681 signal: "pause,set";
2682 source: "terminology";
2683 action: STATE_SET "paused" 0.0;
2684 target: "play";
2685 }
2686 program { name: "media_signal_play";
2687 signal: "play,set";
2688 source: "terminology";
2689 action: STATE_SET "default" 0.0;
2690 target: "play";
2691 }
2692 program { name: "media_signal_mute";
2693 signal: "mute,set";
2694 source: "terminology";
2695 action: STATE_SET "muted" 0.0;
2696 target: "terminology.voldrag";
2697 }
2698 program { name: "media_signal_unmute";
2699 signal: "mute,unset";
2700 source: "terminology";
2701 action: STATE_SET "default" 0.0;
2702 target: "terminology.voldrag";
2703 }
2704 program { name: "media_pos_drag_start";
2705 signal: "mouse,down,1"; source: "posline";
2706 filter: "terminology.posdrag" "default";
2707 script {
2708 new x, y, w, h, m_x, m_y;
2709 new Float:pos;
2710
2711 get_geometry(PART:"posline", x, y, w, h);
2712 get_mouse(m_x, m_y);
2713 pos = m_x - x;
2714 pos = pos / w;
2715 set_drag(PART:"terminology.posdrag", pos, 0.0);
2716 emit("pos,drag,start", "");
2717
2718 }
2719 }
2720 program { name: "media_pos_drag_stop";
2721 signal: "mouse,up,1"; source: "posline";
2722 action: SIGNAL_EMIT "pos,drag,stop" "";
2723 }
2724 program { name: "media_pos_drag";
2725 signal: "mouse,move"; source: "posline";
2726 script {
2727 new x, y, w, h, m_x, m_y;
2728 new Float:pos;
2729
2730 if (!get_mouse_buttons()) return;
2731
2732 get_geometry(PART:"posline", x, y, w, h);
2733 get_mouse(m_x, m_y);
2734 pos = m_x - x;
2735 pos = pos / w;
2736 set_drag(PART:"terminology.posdrag", pos, 0.0);
2737 emit("pos,drag", "");
2738 }
2739 }
2740 program { name: "media_vol_drag_start";
2741 signal: "mouse,down,1"; source: "volline";
2742 filter: "terminology.voldrag" "default";
2743 script {
2744 new x, y, w, h, m_x, m_y;
2745 new Float:pos;
2746
2747 get_geometry(PART:"volline", x, y, w, h);
2748 get_mouse(m_x, m_y);
2749 pos = m_x - x;
2750 pos = pos / w;
2751 set_drag(PART:"terminology.voldrag", pos, 0.0);
2752 emit("vol,drag", "");
2753
2754 }
2755 }
2756 program { name: "media_vol_drag";
2757 signal: "mouse,move"; source: "volline";
2758 script {
2759 new x, y, w, h, m_x, m_y;
2760 new Float:pos;
2761
2762 if (!get_mouse_buttons()) return;
2763
2764 get_geometry(PART:"volline", x, y, w, h);
2765 get_mouse(m_x, m_y);
2766 pos = m_x - x;
2767 pos = pos / w;
2768 set_drag(PART:"terminology.voldrag", pos, 0.0);
2769 emit("vol,drag", "");
2770 }
2771 }
2772 }
2773 }
2774
2775//////////////////////////////////////////////////////////////////////////////
2776 //// used in the font selection dialog to give a base for black text
2777 //// previews so they are always visible
2778 group { name: "terminology/fontpreview";
2779 images {
2780 image: "fn_shadow.png" COMP;
2781 }
2782 parts {
2783 part { name: "shadow";
2784 mouse_events: 0;
2785 description { state: "default" 0.0;
2786 rel1 {
2787 offset: -2 -1;
2788 to: "base";
2789 }
2790 rel2 {
2791 offset: 1 2;
2792 to: "base";
2793 }
2794 image {
2795 normal: "fn_shadow.png";
2796 border: 5 5 5 5;
2797 }
2798 fill.smooth: 0;
2799 }
2800 }
2801 part { name: "base"; type: RECT;
2802 mouse_events: 1;
2803 description { state: "default" 0.0;
2804 color: 255 255 255 255;
2805 rel1.offset: 2 2;
2806 rel2.offset: -3 -3;
2807 }
2808 }
2809 part { name: "clip"; type: RECT;
2810 description { state: "default" 0.0;
2811 rel1.to: "base";
2812 rel2.to: "base";
2813 color: 255 255 255 255;
2814 }
2815 }
2816 part { name: "terminology.text.preview"; type: SWALLOW;
2817 clip_to: "clip";
2818 description { state: "default" 0.0;
2819 rel1 {
2820 to: "base";
2821 offset: 1 1;
2822 }
2823 rel2 {
2824 to: "base";
2825 offset: -2 -2;
2826 }
2827 }
2828 }
2829 }
2830 }
2831} 1214}
2832#include "nyancursor.edc" 1215#include "nyancursor.edc"
2833#include "about.edc" 1216#include "about.edc"