summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-08-14 12:08:13 +0100
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-10-20 08:16:41 +0100
commit8d3730a93f8982ae28a47d938be0dcea2534ab19 (patch)
tree4d0650cd4f5c003694d5db948c7799fd0d9dcd95
parentec88245da9bbfd8e903ad45f8bb6dd1ee17c93f4 (diff)
another terminology demo, now with dinosaurs
-rw-r--r--data/themes/Makefile.am8
-rw-r--r--data/themes/default-dino.edc3522
-rw-r--r--data/themes/images/TRIAB-01.pngbin0 -> 11986 bytes
-rw-r--r--data/themes/images/TRIAB-02.pngbin0 -> 20327 bytes
-rw-r--r--data/themes/images/TRIAB-03.pngbin0 -> 25595 bytes
-rw-r--r--data/themes/images/TRIAB-04.pngbin0 -> 32985 bytes
-rw-r--r--data/themes/images/TRIAB-05.pngbin0 -> 35054 bytes
-rw-r--r--data/themes/images/TRIAB-06.pngbin0 -> 50610 bytes
-rw-r--r--data/themes/images/TRIAB-07.pngbin0 -> 47706 bytes
-rw-r--r--data/themes/images/TRIAB-08.pngbin0 -> 37297 bytes
-rw-r--r--data/themes/images/TRIAB-09.pngbin0 -> 28545 bytes
-rw-r--r--data/themes/images/TRIAB-10.pngbin0 -> 33959 bytes
-rw-r--r--data/themes/images/TRIAB-11.pngbin0 -> 36823 bytes
-rw-r--r--data/themes/images/TRIAB-12.pngbin0 -> 38466 bytes
14 files changed, 3529 insertions, 1 deletions
diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index a746a8c..46ab7d9 100644
--- a/data/themes/Makefile.am
+++ b/data/themes/Makefile.am
@@ -11,6 +11,7 @@ EDJE_FLAGS = $(EDJE_FLAGS_VERBOSE_$(V)) -id $(top_srcdir)/data/themes/images -fd
11filesdir = $(pkgdatadir)/themes 11filesdir = $(pkgdatadir)/themes
12files_DATA = \ 12files_DATA = \
13default.edj \ 13default.edj \
14default-dino.edj \
14default-nausea.edj \ 15default-nausea.edj \
15default-spin.edj \ 16default-spin.edj \
16mild.edj \ 17mild.edj \
@@ -24,7 +25,7 @@ am__v_EDJ_ = $(am__v_EDJ_$(AM_DEFAULT_VERBOSITY))
24am__v_EDJ_0 = @echo " EDJ " $@; 25am__v_EDJ_0 = @echo " EDJ " $@;
25 26
26 27
27EXTRA_DIST = default.edc default-spin.edc default-nausea.edc mild.edc black.edc mustang.edc default_colors.in.edc 28EXTRA_DIST = default.edc default-spin.edc default-nausea.edc default-dino.edc mild.edc black.edc mustang.edc default_colors.in.edc
28 29
29default.edj: Makefile default.edc default_colors.in.edc 30default.edj: Makefile default.edc default_colors.in.edc
30 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_FLAGS) \ 31 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_FLAGS) \
@@ -41,6 +42,11 @@ default-nausea.edj: Makefile default-nausea.edc default_colors.in.edc
41 $(top_srcdir)/data/themes/default-nausea.edc \ 42 $(top_srcdir)/data/themes/default-nausea.edc \
42 $(top_builddir)/data/themes/default-nausea.edj 43 $(top_builddir)/data/themes/default-nausea.edj
43 44
45default-dino.edj: Makefile default-dino.edc default_colors.in.edc
46 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_FLAGS) \
47 $(top_srcdir)/data/themes/default-dino.edc \
48 $(top_builddir)/data/themes/default-dino.edj
49
44mild.edj: Makefile mild.edc default_colors.in.edc 50mild.edj: Makefile mild.edc default_colors.in.edc
45 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_FLAGS) \ 51 $(AM_V_EDJ)$(EDJE_CC) $(EDJE_FLAGS) \
46 $(top_srcdir)/data/themes/mild.edc \ 52 $(top_srcdir)/data/themes/mild.edc \
diff --git a/data/themes/default-dino.edc b/data/themes/default-dino.edc
new file mode 100644
index 0000000..642cca6
--- /dev/null
+++ b/data/themes/default-dino.edc
@@ -0,0 +1,3522 @@
1collections {
2
3//////////////////////////////////////////////////////////////////////////////
4 //// the background and general container for the terminal
5 group { name: "terminology/core";
6 parts {
7 ////////////////////////////////////////////////////////////////////
8 // background handling
9 part { name: "fade"; type: RECT;
10 description { state: "default" 0.0;
11 }
12 description { state: "translucent" 0.0;
13 inherit: "default" 0.0;
14 color: 255 255 255 128;
15 }
16 }
17 program {
18 signal: "translucent,on"; source: "terminology";
19 action: STATE_SET "translucent" 0.0;
20 target: "fade";
21 }
22 program {
23 signal: "translucent,off"; source: "terminology";
24 action: STATE_SET "default" 0.0;
25 target: "fade";
26 }
27 part { name: "terminology.background"; type: SWALLOW;
28 clip_to: "fade";
29 description { state: "default" 0.0;
30 }
31 description { state: "image" 0.0;
32 inherit: "default" 0.0;
33 }
34 description { state: "scale" 0.0;
35 inherit: "default" 0.0;
36 }
37 description { state: "edje" 0.0;
38 inherit: "default" 0.0;
39 }
40 description { state: "movie" 0.0;
41 inherit: "default" 0.0;
42 }
43 }
44 program {
45 signal: "media,off"; source: "terminology";
46 action: STATE_SET "default" 0.0;
47 target: "terminology.background";
48 }
49 program {
50 signal: "media,image"; source: "terminology";
51 action: STATE_SET "image" 0.0;
52 target: "terminology.background";
53 }
54 program {
55 signal: "media,scale"; source: "terminology";
56 action: STATE_SET "scale" 0.0;
57 target: "terminology.background";
58 }
59 program {
60 signal: "media,edje"; source: "terminology";
61 action: STATE_SET "edje" 0.0;
62 target: "terminology.background";
63 }
64 program {
65 signal: "media,movie"; source: "terminology";
66 action: STATE_SET "movie" 0.0;
67 target: "terminology.background";
68 }
69
70 ////////////////////////////////////////////////////////////////////
71 // actual text grid for chars, cursors, selectiond etc. goes here
72 part { name: "terminology.content"; type: SWALLOW;
73 description { state: "default" 0.0;
74 rel1.offset: 1 1;
75 rel2.offset: -2 -2;
76 }
77 }
78 }
79 }
80
81 //// the background and general container for the terminal
82 group { name: "terminology/background";
83 images {
84 image: "bg_bevel.png" COMP;
85 image: "bg_shine.png" COMP;
86 image: "bg_glint.png" COMP;
87 image: "bg_glow_in.png" COMP;
88 image: "bg_shadow.png" COMP;
89 image: "bg_led_glow.png" COMP;
90 image: "bg_led_base.png" COMP;
91 image: "bg_led.png" COMP;
92 image: "bg_led_strobe.png" COMP;
93 image: "pm_shadow.png" COMP;
94 image: "pm_overlay.png" COMP;
95 image: "pm_fill.png" COMP;
96 image: "cr_glow.png" COMP;
97 image: "TRIAB-01.png" COMP;
98 image: "TRIAB-02.png" COMP;
99 image: "TRIAB-03.png" COMP;
100 image: "TRIAB-04.png" COMP;
101 image: "TRIAB-05.png" COMP;
102 image: "TRIAB-06.png" COMP;
103 image: "TRIAB-07.png" COMP;
104 image: "TRIAB-08.png" COMP;
105 image: "TRIAB-09.png" COMP;
106 image: "TRIAB-10.png" COMP;
107 image: "TRIAB-11.png" COMP;
108 image: "TRIAB-12.png" COMP;
109 }
110 sounds {
111 sample { name: "bell" LOSSY 64;
112 source: "bell.wav";
113 }
114 }
115 parts {
116 ////////////////////////////////////////////////////////////////////
117 // background handling
118 part { name: "shadow";
119 mouse_events: 0;
120 description { state: "default" 0.0;
121 image.normal: "bg_shadow.png";
122 fill.smooth: 0;
123 visible: 0;
124 }
125 description { state: "translucent" 0.0;
126 inherit: "default" 0.0;
127 visible: 1;
128 }
129 }
130 part { name: "base"; type: RECT;
131 mouse_events: 1;
132 description { state: "default" 0.0;
133 color: 32 32 32 255;
134 }
135 description { state: "translucent" 0.0;
136 inherit: "default" 0.0;
137 visible: 0;
138 }
139 }
140 program {
141 signal: "translucent,on"; source: "terminology";
142 action: STATE_SET "translucent" 0.0;
143 target: "base";
144 target: "shadow";
145 }
146 program {
147 signal: "translucent,off"; source: "terminology";
148 action: STATE_SET "default" 0.0;
149 target: "base";
150 target: "shadow";
151 }
152
153 ////////////////////////////////////////////////////////////////////
154 // actual text grid for chars, cursors, selectiond etc. goes here
155 // and has a background layered behind it inside the swallowed
156 // child edje
157 part { name: "terminology.content"; type: SWALLOW;
158 description { state: "default" 0.0;
159 }
160 }
161
162 ////////////////////////////////////////////////////////////////////
163 // indicator of other tabs and control
164 part { name: "tabcount_clip"; type: RECT;
165 description { state: "default" 0.0;
166 color: 255 255 255 0;
167 visible: 0;
168 }
169 description { state: "on" 0.0;
170 inherit: "default" 0.0;
171 visible: 1;
172 color: 255 255 255 255;
173 }
174 }
175 part { name: "terminology.tabmissed.label"; type: TEXT; mouse_events: 0;
176 effect: GLOW;
177 scale: 1;
178 clip_to: "tabcount_clip";
179 description { state: "default" 0.0;
180 fixed: 1 1;
181 rel1.to: "terminology.tabcount.label";
182 rel2.to: "terminology.tabcount.label";
183 rel1.offset: -4 0;
184 rel2.relative: 0.0 1.0;
185 rel2.offset: -5 -1;
186 color: 255 153 51 64;
187 color2: 255 51 0 18;
188 color3: 255 0 0 8;
189 align: 1.0 0.5;
190 text { font: "Sans"; size: 8;
191 align: 1.0 0.5;
192 min: 1 1;
193 }
194 }
195 description { state: "over" 0.0;
196 inherit: "default" 0.0;
197 color: 255 255 64 255;
198 color2: 255 153 51 128;
199 color3: 255 0 0 20;
200 }
201 }
202 part { name: "terminology.tabcount.label"; type: TEXT; mouse_events: 0;
203 effect: GLOW;
204 scale: 1;
205 clip_to: "tabcount_clip";
206 description { state: "default" 0.0;
207 fixed: 1 1;
208 rel1.to: "terminology.tabcount.control";
209 rel2.to: "terminology.tabcount.control";
210 rel1.relative: -0.2 0.0;
211 rel2.relative: -0.2 1.0;
212 color: 51 153 255 64;
213 color2: 51 153 255 18;
214 color3: 51 153 255 8;
215 align: 1.0 0.5;
216 text { font: "Sans"; size: 8;
217 align: 1.0 0.5;
218 min: 1 1;
219 }
220 }
221 description { state: "over" 0.0;
222 inherit: "default" 0.0;
223 color: 255 255 255 255;
224 color2: 51 153 255 128;
225 color3: 51 153 255 20;
226 }
227 }
228 part { name: "tabcount_glow_r0";
229 clip_to: "tabcount_clip";
230 description { state: "default" 0.0;
231 rel1.to: "tabcount_r0";
232 rel2.to: "tabcount_r0";
233 rel1.offset: -4 -4;
234 rel2.offset: 3 3;
235 image {
236 normal: "cr_glow.png";
237 border: 9 9 9 9;
238 }
239 color: 51 153 255 32;
240 }
241 description { state: "over" 0.0;
242 inherit: "default" 0.0;
243 color: 51 153 255 255;
244 }
245 }
246 part { name: "tabcount_glow_r1";
247 clip_to: "tabcount_clip";
248 description { state: "default" 0.0;
249 rel1.to: "tabcount_r1";
250 rel2.to: "tabcount_r1";
251 rel1.offset: -4 -4;
252 rel2.offset: 3 3;
253 image {
254 normal: "cr_glow.png";
255 border: 9 9 9 9;
256 }
257 color: 51 153 255 32;
258 }
259 description { state: "over" 0.0;
260 inherit: "default" 0.0;
261 color: 51 153 255 255;
262 }
263 }
264 part { name: "tabcount_glow_r2";
265 clip_to: "tabcount_clip";
266 description { state: "default" 0.0;
267 rel1.to: "tabcount_r2";
268 rel2.to: "tabcount_r2";
269 rel1.offset: -4 -4;
270 rel2.offset: 3 3;
271 image {
272 normal: "cr_glow.png";
273 border: 9 9 9 9;
274 }
275 color: 51 153 255 32;
276 }
277 description { state: "over" 0.0;
278 inherit: "default" 0.0;
279 color: 51 153 255 255;
280 }
281 }
282 part { name: "tabcount_glow_r3";
283 clip_to: "tabcount_clip";
284 description { state: "default" 0.0;
285 rel1.to: "tabcount_r3";
286 rel2.to: "tabcount_r3";
287 rel1.offset: -4 -4;
288 rel2.offset: 3 3;
289 image {
290 normal: "cr_glow.png";
291 border: 9 9 9 9;
292 }
293 color: 51 153 255 32;
294 }
295 description { state: "over" 0.0;
296 inherit: "default" 0.0;
297 color: 51 153 255 255;
298 }
299 }
300 part { name: "tabcount_r0"; type: RECT;
301 clip_to: "tabcount_clip";
302 description { state: "default" 0.0;
303 rel1.to: "terminology.tabcount.control";
304 rel2.to: "terminology.tabcount.control";
305 rel1.relative: 0.05 0.05;
306 rel2.relative: 0.45 0.45;
307 color: 255 255 255 32;
308 }
309 description { state: "over" 0.0;
310 inherit: "default" 0.0;
311 color: 255 255 255 255;
312 }
313 }
314 part { name: "tabcount_r1"; type: RECT;
315 clip_to: "tabcount_clip";
316 description { state: "default" 0.0;
317 rel1.to: "terminology.tabcount.control";
318 rel2.to: "terminology.tabcount.control";
319 rel1.relative: 0.55 0.05;
320 rel2.relative: 0.95 0.45;
321 color: 255 255 255 32;
322 }
323 description { state: "over" 0.0;
324 inherit: "default" 0.0;
325 color: 255 255 255 255;
326 }
327 }
328 part { name: "tabcount_r2"; type: RECT;
329 clip_to: "tabcount_clip";
330 description { state: "default" 0.0;
331 rel1.to: "terminology.tabcount.control";
332 rel2.to: "terminology.tabcount.control";
333 rel1.relative: 0.05 0.55;
334 rel2.relative: 0.45 0.95;
335 color: 255 255 255 32;
336 }
337 description { state: "over" 0.0;
338 inherit: "default" 0.0;
339 color: 255 255 255 255;
340 }
341 }
342 part { name: "tabcount_r3"; type: RECT;
343 clip_to: "tabcount_clip";
344 description { state: "default" 0.0;
345 rel1.to: "terminology.tabcount.control";
346 rel2.to: "terminology.tabcount.control";
347 rel1.relative: 0.55 0.55;
348 rel2.relative: 0.95 0.95;
349 color: 255 255 255 32;
350 }
351 description { state: "over" 0.0;
352 inherit: "default" 0.0;
353 color: 255 255 255 255;
354 }
355 }
356 part { name: "terminology.tabcount.control"; type: SWALLOW;
357 clip_to: "tabcount_clip";
358 description { state: "default" 0.0;
359 fixed: 1 1;
360 rel1.relative: 1.0 0.0;
361 rel1.offset: -3 2;
362 rel2.relative: 1.0 0.0;
363 rel2.offset: -3 2;
364 align: 1.0 0.0;
365 min: 16 16;
366 }
367 }
368 part { name: "tabcount_ev"; type: RECT; repeat_events: 1;
369 clip_to: "tabcount_clip";
370 description { state: "default" 0.0;
371 fixed: 1 1;
372 rel1.to: "terminology.tabcount.control";
373 rel2.to: "terminology.tabcount.control";
374 color: 0 0 0 0;
375 }
376 }
377 program {
378 signal: "mouse,in"; source: "tabcount_ev";
379 action: STATE_SET "over" 0.0;
380 transition: DECELERATE 0.5;
381 target: "tabcount_r0";
382 target: "tabcount_r1";
383 target: "tabcount_r2";
384 target: "tabcount_r3";
385 target: "tabcount_glow_r0";
386 target: "tabcount_glow_r1";
387 target: "tabcount_glow_r2";
388 target: "tabcount_glow_r3";
389 target: "terminology.tabcount.label";
390 target: "terminology.tabmissed.label";
391 }
392 program {
393 signal: "mouse,out"; source: "tabcount_ev";
394 action: STATE_SET "default" 0.0;
395 transition: DECELERATE 2.0;
396 target: "tabcount_r0";
397 target: "tabcount_r1";
398 target: "tabcount_r2";
399 target: "tabcount_r3";
400 target: "tabcount_glow_r0";
401 target: "tabcount_glow_r1";
402 target: "tabcount_glow_r2";
403 target: "tabcount_glow_r3";
404 target: "terminology.tabcount.label";
405 target: "terminology.tabmissed.label";
406 }
407 program {
408 signal: "mouse,clicked,1"; source: "tabcount_ev";
409 action: SIGNAL_EMIT "tabcount,go" "terminology";
410 }
411 program {
412 signal: "tabcount,off"; source: "terminology";
413 action: STATE_SET "default" 0.0;
414 transition: DECELERATE 0.5;
415 target: "tabcount_clip";
416 }
417 program {
418 signal: "tabcount,on"; source: "terminology";
419 action: STATE_SET "on" 0.0;
420 transition: DECELERATE 0.5;
421 target: "tabcount_clip";
422 }
423 program {
424 signal: "tabmissed,off"; source: "terminology";
425 action: STATE_SET "default" 0.0;
426 transition: DECELERATE 0.5;
427 target: "terminology.tabmissed.label";
428 }
429 program {
430 signal: "tabmissed,on"; source: "terminology";
431 action: STATE_SET "over" 0.0;
432 transition: DECELERATE 0.2;
433 target: "terminology.tabmissed.label";
434 after: "tabmissed2";
435 }
436 program { name: "tabmissed2";
437 signal: "tabmissed,on"; source: "terminology";
438 action: STATE_SET "default" 0.0;
439 transition: DECELERATE 3.0;
440 target: "terminology.tabmissed.label";
441 }
442
443 ////////////////////////////////////////////////////////////////////
444 // overlayed prettiness
445 part { name: "glow";
446 mouse_events: 0;
447 description { state: "default" 0.0;
448 image.normal: "bg_glow_in.png";
449 image.border: 7 7 7 7;
450 image.middle: 0;
451 fill.smooth: 0;
452 color: 51 153 255 0;
453 }
454 description { state: "focused" 0.0;
455 inherit: "default" 0.0;
456 color: 51 153 255 255;
457 }
458 description { state: "focused2" 0.0;
459 inherit: "default" 0.0;
460 color: 51 153 255 64;
461 }
462 }
463 part { name: "bevel";
464 mouse_events: 0;
465 description { state: "default" 0.0;
466 image.normal: "bg_bevel.png";
467 image.border: 3 3 5 3;
468 image.middle: 0;
469 fill.smooth: 0;
470 }
471 }
472 part { name: "glintclip"; type: RECT;
473 description { state: "default" 0.0;
474 }
475 }
476 part { name: "glint";
477 mouse_events: 0;
478 clip_to: "glintclip";
479 description { state: "default" 0.0;
480 fixed: 1 1;
481 min: 79 5;
482 max: 79 5;
483 rel1 {
484 relative: 0.0 0.0;
485 offset: 0 0;
486 }
487 rel2 {
488 relative: 1.0 0.0;
489 offset: -1 0;
490 }
491 image.normal: "bg_glint.png";
492 color: 255 255 255 128;
493 }
494 description { state: "focused" 0.0;
495 inherit: "default" 0.0;
496 color: 255 255 255 255;
497 }
498 }
499 part { name: "shine";
500 mouse_events: 0;
501 description { state: "default" 0.0;
502 rel1.offset: 0 0;
503 rel2.offset: -1 -1;
504 image.normal: "bg_shine.png";
505 fill.smooth: 0;
506 align: 0.5 0.0;
507 aspect: (255/120) (255/120);
508 aspect_preference: HORIZONTAL;
509 color: 255 255 255 64;
510 }
511 description { state: "focused" 0.0;
512 inherit: "default" 0.0;
513 color: 255 255 255 255;
514 }
515 }
516 program {
517 signal: "focus,in"; source: "terminology";
518 action: STATE_SET "focused" 0.0;
519 target: "glint";
520 target: "glow";
521 target: "shine";
522 after: "focus_in2";
523 }
524 program { name: "focus_in2";
525 action: STATE_SET "focused2" 0.0;
526 transition: DECELERATE 0.5;
527 target: "glow";
528 }
529 program {
530 signal: "focus,out"; source: "terminology";
531 action: STATE_SET "default" 0.0;
532 target: "glint";
533 target: "glow";
534 target: "shine";
535 }
536
537 ////////////////////////////////////////////////////////////////////
538 // visual bell - dinosaur
539 part { name: "dino";
540 mouse_events: 0;
541 description { state: "default" 0.0;
542 aspect: 1.0 1.0;
543 aspect_preference: BOTH;
544 image.normal: "TRIAB-01.png";
545 visible: 0;
546 }
547 description { state: "animate" 0.0;
548 inherit: "default" 0.0;
549 visible: 1;
550 image {
551 tween: "TRIAB-02.png";
552 tween: "TRIAB-03.png";
553 tween: "TRIAB-04.png";
554 tween: "TRIAB-05.png";
555 tween: "TRIAB-06.png";
556 tween: "TRIAB-07.png";
557 tween: "TRIAB-08.png";
558 tween: "TRIAB-09.png";
559 tween: "TRIAB-10.png";
560 tween: "TRIAB-11.png";
561 tween: "TRIAB-12.png";
562 }
563 }
564 }
565 program {
566 signal: "bell"; source: "terminology";
567 action: PLAY_SAMPLE "bell" 1.0;
568 }
569 program {
570 signal: "bell"; source: "terminology";
571 action: ACTION_STOP;
572 target: "bell_anim";
573 after: "bell_anim";
574 }
575 program {
576 name: "bell_anim";
577 signal: "bell"; source: "terminology";
578 action: STATE_SET "animate" 0.0;
579 transition: LINEAR 0.8;
580 target: "dino";
581 after: "hide";
582 }
583 program {
584 name: "hide";
585 action: STATE_SET "default" 0.0;
586 target: "dino";
587 }
588
589 ////////////////////////////////////////////////////////////////////
590 // popup media over the terminal (until dismissed)
591 part { name: "popmedia_clip"; type: RECT;
592 mouse_events: 1;
593 description { state: "default" 0.0;
594 fixed: 1 1;
595 visible: 0;
596 color: 255 255 255 0;
597 }
598 description { state: "visible" 0.0;
599 inherit: "default" 0.0;
600 visible: 1;
601 color: 255 255 255 255;
602 }
603 }
604 part { name: "popmedia_shadow";
605 mouse_events: 0;
606 description { state: "default" 0.0;
607 fixed: 1 1;
608 rel1.to: "terminology.popmedia";
609 rel2.to: "terminology.popmedia";
610 image.normal: "pm_shadow.png";
611 image.border: 64 64 64 64;
612 image.border_scale_by: 0.1;
613 fill.smooth: 0;
614 visible: 0;
615 }
616 description { state: "visible" 0.0;
617 inherit: "default" 0.0;
618 rel1.offset: -32 -32;
619 rel2.offset: 31 31;
620 image.border_scale_by: 1.0;
621 visible: 1;
622 }
623 }
624 part { name: "popmedia_fill";
625 mouse_events: 0;
626 description { state: "default" 0.0;
627 fixed: 1 1;
628 rel1.to: "terminology.popmedia";
629 rel2.to: "terminology.popmedia";
630 image.normal: "pm_fill.png";
631 fill {
632 size.relative: 0.0 0.0;
633 size.offset: 64 64;
634 }
635 }
636 }
637 part { name: "terminology.popmedia"; type: SWALLOW;
638 clip_to: "popmedia_clip";
639 description { state: "default" 0.0;
640 fixed: 1 1;
641 rel1.relative: 0.5 0.5;
642 rel2.relative: 0.5 0.5;
643 visible: 0;
644 }
645 description { state: "image" 0.0;
646 inherit: "default" 0.0;
647 rel1.relative: 0.1 0.1;
648 rel2.relative: 0.9 0.9;
649 visible: 1;
650 }
651 description { state: "scale" 0.0;
652 inherit: "default" 0.0;
653 rel1.relative: 0.1 0.1;
654 rel2.relative: 0.9 0.9;
655 visible: 1;
656 }
657 description { state: "edje" 0.0;
658 inherit: "default" 0.0;
659 rel1.relative: 0.1 0.1;
660 rel2.relative: 0.9 0.9;
661 visible: 1;
662 }
663 description { state: "movie" 0.0;
664 inherit: "default" 0.0;
665 rel1.relative: 0.1 0.1;
666 rel2.relative: 0.9 0.9;
667 visible: 1;
668 }
669 }
670 part { name: "popmedia_overlay";
671 mouse_events: 0;
672 description { state: "default" 0.0;
673 fixed: 1 1;
674 rel1.to: "terminology.popmedia";
675 rel2.to: "terminology.popmedia";
676 image.normal: "pm_overlay.png";
677 fill.smooth: 0;
678 visible: 0;
679 }
680 description { state: "visible" 0.0;
681 inherit: "default" 0.0;
682 visible: 1;
683 }
684 }
685 part { name: "popmedia_bevel";
686 mouse_events: 0;
687 description { state: "default" 0.0;
688 fixed: 1 1;
689 rel1.to: "terminology.popmedia";
690 rel2.to: "terminology.popmedia";
691 image.normal: "bg_bevel.png";
692 image.border: 3 3 5 3;
693 image.middle: 0;
694 fill.smooth: 0;
695 visible: 0;
696 }
697 description { state: "visible" 0.0;
698 inherit: "default" 0.0;
699 visible: 1;
700 }
701 }
702 part { name: "popmedia_glintclip"; type: RECT;
703 mouse_events: 0;
704 description { state: "default" 0.0;
705 fixed: 1 1;
706 visible: 0;
707 }
708 description { state: "visible" 0.0;
709 inherit: "default" 0.0;
710 visible: 1;
711 }
712 }
713 part { name: "popmedia_glint";
714 mouse_events: 0;
715 clip_to: "popmedia_glintclip";
716 description { state: "default" 0.0;
717 fixed: 1 1;
718 min: 79 5;
719 max: 79 5;
720 rel1 {
721 to: "terminology.popmedia";
722 relative: 0.0 0.0;
723 offset: 0 0;
724 }
725 rel2 {
726 to: "terminology.popmedia";
727 relative: 1.0 0.0;
728 offset: -1 0;
729 }
730 image.normal: "bg_glint.png";
731 visible: 0;
732 }
733 description { state: "visible" 0.0;
734 inherit: "default" 0.0;
735 visible: 1;
736 }
737 }
738 part { name: "popmedia_shine";
739 mouse_events: 0;
740 description { state: "default" 0.0;
741 fixed: 1 1;
742 rel1.to: "terminology.popmedia";
743 rel2.to: "terminology.popmedia";
744 image.normal: "bg_shine.png";
745 fill.smooth: 0;
746 align: 0.5 0.0;
747 aspect: (255/120) (255/120);
748 aspect_preference: HORIZONTAL;
749 visible: 0;
750 }
751 description { state: "visible" 0.0;
752 inherit: "default" 0.0;
753 visible: 1;
754 }
755 }
756 part { name: "popmedia_dismiss"; type: RECT;
757 mouse_events: 1;
758 description { state: "default" 0.0;
759 fixed: 1 1;
760 color: 0 0 0 0;
761 visible: 0;
762 }
763 description { state: "visible" 0.0;
764 inherit: "default" 0.0;
765 visible: 1;
766 }
767 }
768 program {
769 signal: "mouse,clicked,*"; source: "popmedia_dismiss";
770 action: STATE_SET "default" 0.0;
771 transition: DECELERATE 0.5;
772 target: "terminology.popmedia";
773 target: "popmedia_clip";
774 target: "popmedia_dismiss";
775 target: "popmedia_shadow";
776 target: "popmedia_fill";
777 target: "popmedia_overlay";
778 target: "popmedia_bevel";
779 target: "popmedia_glint";
780 target: "popmedia_glintclip";
781 target: "popmedia_shine";
782 after: "popmedia_dismiss2";
783 }
784 program { name: "popmedia_dismiss2";
785 action: SIGNAL_EMIT "popmedia,done" "terminology";
786 }
787 program {
788 signal: "popmedia,off"; source: "terminology";
789 action: STATE_SET "default" 0.0;
790 transition: DECELERATE 0.2;
791 target: "terminology.popmedia";
792 target: "popmedia_clip";
793 target: "popmedia_dismiss";
794 target: "popmedia_shadow";
795 target: "popmedia_fill";
796 target: "popmedia_overlay";
797 target: "popmedia_bevel";
798 target: "popmedia_glint";
799 target: "popmedia_glintclip";
800 target: "popmedia_shine";
801 after: "popmedia_dismiss2";
802 }
803 program {
804 signal: "popmedia,image"; source: "terminology";
805 action: STATE_SET "image" 0.0;
806 transition: DECELERATE 0.2;
807 target: "terminology.popmedia";
808 }
809 program {
810 signal: "popmedia,scale"; source: "terminology";
811 action: STATE_SET "scale" 0.0;
812 transition: DECELERATE 0.2;
813 target: "terminology.popmedia";
814 }
815 program {
816 signal: "popmedia,edje"; source: "terminology";
817 action: STATE_SET "edje" 0.0;
818 transition: DECELERATE 0.2;
819 target: "terminology.popmedia";
820 }
821 program {
822 signal: "popmedia,movie"; source: "terminology";
823 action: STATE_SET "movie" 0.0;
824 transition: DECELERATE 0.2;
825 target: "terminology.popmedia";
826 }
827 program {
828 signal: "popmedia,image"; source: "terminology";
829 action: STATE_SET "visible" 0.0;
830 transition: DECELERATE 0.2;
831 target: "popmedia_clip";
832 target: "popmedia_dismiss";
833 target: "popmedia_shadow";
834 target: "popmedia_fill";
835 target: "popmedia_overlay";
836 target: "popmedia_bevel";
837 target: "popmedia_glint";
838 target: "popmedia_glintclip";
839 target: "popmedia_shine";
840 }
841 program {
842 signal: "popmedia,scale"; source: "terminology";
843 action: STATE_SET "visible" 0.0;
844 transition: DECELERATE 0.2;
845 target: "popmedia_clip";
846 target: "popmedia_dismiss";
847 target: "popmedia_shadow";
848 target: "popmedia_fill";
849 target: "popmedia_overlay";
850 target: "popmedia_bevel";
851 target: "popmedia_glint";
852 target: "popmedia_glintclip";
853 target: "popmedia_shine";
854 }
855 program {
856 signal: "popmedia,edje"; source: "terminology";
857 action: STATE_SET "visible" 0.0;
858 transition: DECELERATE 0.2;
859 target: "popmedia_clip";
860 target: "popmedia_dismiss";
861 target: "popmedia_shadow";
862 target: "popmedia_fill";
863 target: "popmedia_overlay";
864 target: "popmedia_bevel";
865 target: "popmedia_glint";
866 target: "popmedia_glintclip";
867 target: "popmedia_shine";
868 }
869 program {
870 signal: "popmedia,movie"; source: "terminology";
871 action: STATE_SET "visible" 0.0;
872 transition: DECELERATE 0.2;
873 target: "popmedia_clip";
874 target: "popmedia_dismiss";
875 target: "popmedia_shadow";
876 target: "popmedia_fill";
877 target: "popmedia_overlay";
878 target: "popmedia_bevel";
879 target: "popmedia_glint";
880 target: "popmedia_glintclip";
881 target: "popmedia_shine";
882 }
883 }
884 }
885
886 group { name: "terminology/base";
887 parts {
888 part { name: "terminology.content"; type: SWALLOW;
889 description { state: "default" 0.0;
890 }
891 }
892 ////////////////////////////////////////////////////////////////////
893 // a place terminology will place an entry box for internal commands
894 part { name: "cmdclip"; type: RECT;
895 description { state: "default" 0.0;
896 rel1.to: "terminology.cmdbox";
897 rel1.offset: -100 -100;
898 rel2.to: "terminology.cmdbox";
899 rel2.offset: 99 99;
900 color: 255 255 255 0;
901 visible: 0;
902 }
903 description { state: "visible" 0.0;
904 inherit: "default" 0.0;
905 color: 255 255 255 255;
906 visible: 1;
907 }
908 }
909 part { name: "cmdback"; type: RECT;
910 clip_to: "cmdclip";
911 description { state: "default" 0.0;
912 color: 255 255 255 255;
913 rel1.to: "terminology.cmdbox";
914 rel1.offset: -2 -2;
915 rel2.to: "terminology.cmdbox";
916 rel2.offset: 1 1;
917 }
918 }
919 part { name: "terminology.cmdbox"; type: SWALLOW;
920 clip_to: "cmdclip";
921 description { state: "default" 0.0;
922 fixed: 1 1;
923 min: 8 8;
924 rel1.relative: 0.0 1.0;
925 rel1.offset: 8 9;
926 rel2.offset: -9 9;
927 align: 0.5 0.0;
928 }
929 description { state: "visible" 0.0;
930 inherit: "default" 0.0;
931 rel1.offset: 8 -9;
932 rel2.offset: -9 -9;
933 align: 0.5 1.0;
934 }
935 }
936 program {
937 signal: "cmdbox,show"; source: "terminology";
938 action: STATE_SET "visible" 0.0;
939 transition: DECELERATE 0.4;
940 target: "cmdclip";
941 }
942 program {
943 signal: "cmdbox,show"; source: "terminology";
944 action: STATE_SET "visible" 0.0;
945 transition: SPRING 0.4 0.5 4;
946 target: "terminology.cmdbox";
947 }
948 program {
949 signal: "cmdbox,hide"; source: "terminology";
950 action: STATE_SET "default" 0.0;
951 transition: ACCELERATE 0.5;
952 target: "terminology.cmdbox";
953 target: "cmdclip";
954 }
955
956 ////////////////////////////////////////////////////////////////////
957 // overlayed options and controls
958 part { name: "terminology.about"; type: SWALLOW;
959 scale: 1;
960 description { state: "default" 0.0;
961 fixed: 1 1;
962 min: 198 198;
963 max: 198 198;
964 align: 0.5 0.0;
965 visible: 0;
966 rel1.relative: 0.0 1.0;
967 rel2.relative: 1.0 1.0;
968 }
969 description { state: "visible" 0.0;
970 inherit: "default" 0.0;
971 visible: 1;
972 align: 0.5 0.5;
973 rel1.relative: 0.0 0.0;
974 rel2.relative: 1.0 1.0;
975 }
976 }
977 program {
978 signal: "about,show"; source: "terminology";
979 action: STATE_SET "visible" 0.0;
980 transition: SPRING 1.2 2.0 6;
981 target: "terminology.about";
982 }
983 program {
984 signal: "about,hide"; source: "terminology";
985 action: STATE_SET "default" 0.0;
986 transition: DECELERATE 0.6;
987 target: "terminology.about";
988 }
989
990 ////////////////////////////////////////////////////////////////////
991 // swallow to hold invisile rect to click on to dismiss things
992 part { name: "terminology.dismiss"; type: SWALLOW;
993 description { state: "default" 0.0;
994 }
995 }
996
997 ////////////////////////////////////////////////////////////////////
998 // overlayed options and controls
999 part { name: "terminology.optdetails"; type: SWALLOW;
1000 scale: 1;
1001 description { state: "default" 0.0;
1002 fixed: 1 1;
1003 min: 40 40;
1004 align: 0.0 0.5;
1005 visible: 0;
1006 rel1 {
1007 relative: 1.0 0.02;
1008 offset: 8 8;
1009 }
1010 rel2 {
1011 relative: 1.0 0.98;
1012 offset: 8 -9;
1013 }
1014 }
1015 description { state: "visible" 0.0;
1016 inherit: "default" 0.0;
1017 visible: 1;
1018 align: 1.0 0.5;
1019 rel1 {
1020 relative: 0.1 0.02;
1021 offset: 8 8;
1022 }
1023 rel2 {
1024 to_x: "terminology.options";
1025 relative: 0.0 0.98;
1026 offset: -9 -9;
1027 }
1028 }
1029 }
1030 program {
1031 signal: "optdetails,show"; source: "terminology";
1032 action: STATE_SET "visible" 0.0;
1033 transition: DECELERATE 0.4;
1034 target: "terminology.optdetails";
1035 }
1036 program {
1037 signal: "optdetails,hide"; source: "terminology";
1038 action: STATE_SET "default" 0.0;
1039 transition: DECELERATE 0.2;
1040 target: "terminology.optdetails";
1041 after: "opdt_hide2";
1042 }
1043 program { name: "opdt_hide2";
1044 action: SIGNAL_EMIT "optdetails,hide,done" "terminology";
1045 }
1046
1047 part { name: "terminology.options"; type: SWALLOW;
1048 scale: 1;
1049 description { state: "default" 0.0;
1050 fixed: 1 1;
1051 align: 0.0 0.5;
1052 visible: 0;
1053 rel1 {
1054 relative: 1.0 0.02;
1055 offset: 8 8;
1056 }
1057 rel2 {
1058 relative: 1.0 0.98;
1059 offset: 8 -9;
1060 }
1061 }
1062 description { state: "visible" 0.0;
1063 inherit: "default" 0.0;
1064 visible: 1;
1065 align: 1.0 0.5;
1066 rel1 {
1067 offset: -9 8;
1068 }
1069 rel2 {
1070 offset: -9 -9;
1071 }
1072 }
1073 }
1074 program {
1075 signal: "options,show"; source: "terminology";
1076 action: STATE_SET "visible" 0.0;
1077 transition: DECELERATE 0.4;
1078 target: "terminology.options";
1079 }
1080 program {
1081 signal: "options,hide"; source: "terminology";
1082 action: STATE_SET "default" 0.0;
1083 transition: DECELERATE 0.6;
1084 target: "terminology.options";
1085 }
1086
1087 part { name: "terminology.controls"; type: SWALLOW;
1088 scale: 1;
1089 description { state: "default" 0.0;
1090 fixed: 1 1;
1091 min: 10 10;
1092 align: 0.0 0.5;
1093 visible: 0;
1094 rel1 {
1095 relative: 1.0 0.5;
1096 offset: 8 8;
1097 }
1098 rel2 {
1099 relative: 1.0 0.5;
1100 offset: 8 -9;
1101 }
1102 }
1103 description { state: "visible" 0.0;
1104 inherit: "default" 0.0;
1105 visible: 1;
1106 align: 1.0 0.5;
1107 rel1 {
1108 relative: 1.0 0.5;
1109 offset: -9 8;
1110 }
1111 rel2 {
1112 offset: -9 -9;
1113 }
1114 }
1115 }
1116 program {
1117 signal: "controls,show"; source: "terminology";
1118 action: STATE_SET "visible" 0.0;
1119 transition: DECELERATE 0.3;
1120 target: "terminology.controls";
1121 }
1122 program {
1123 signal: "controls,hide"; source: "terminology";
1124 action: STATE_SET "default" 0.0;
1125 transition: DECELERATE 0.5;
1126 target: "terminology.controls";
1127 }
1128 }
1129 }
1130
1131//////////////////////////////////////////////////////////////////////////////
1132 //// the selection
1133 // selections come in 5 modes:
1134 //
1135 // oneline (also multiple lines but all fill the row):
1136 // | ######### |
1137 //
1138 // disjoint:
1139 // | #######|
1140 // |## |
1141 //
1142 // default:
1143 // | ###########|
1144 // |######### |
1145 //
1146 // topfull:
1147 // |##############|
1148 // |###### |
1149 //
1150 // bottomfull:
1151 // | ######|
1152 // |##############|
1153#define PATCOL 51 153 255 128
1154#define PATCOL2 51 153 255 144
1155#define OUTCOL 51 153 255 128
1156#define OUTCOL2 51 153 255 255
1157
1158 group { name: "terminology/selection";
1159 images {
1160 image: "sl_stripe.png" COMP;
1161 image: "sl_left.png" COMP;
1162 image: "sl_right.png" COMP;
1163 image: "sl_top.png" COMP;
1164 image: "sl_bottom.png" COMP;
1165 image: "sl_htop.png" COMP;
1166 image: "sl_hbottom.png" COMP;
1167 }
1168 parts {
1169 // background pattern. duplicated because clips cut out regions of
1170 // it to see and clips don't overlap
1171 part { name: "background_top";
1172 mouse_events: 0;
1173 clip_to: "top_clip";
1174 description { state: "default" 0.0;
1175 color: PATCOL;
1176 image.normal: "sl_stripe.png";
1177 fill.size.relative: 0.0 0.0;
1178 fill.size.offset: 40 40;
1179 }
1180 description { state: "pulse" 0.0;
1181 inherit: "default" 0.0;
1182 color: PATCOL2;
1183 }
1184 }
1185 part { name: "background_middle";
1186 mouse_events: 0;
1187 clip_to: "middle_clip";
1188 description { state: "default" 0.0;
1189 color: PATCOL;
1190 image.normal: "sl_stripe.png";
1191 fill.size.relative: 0.0 0.0;
1192 fill.size.offset: 40 40;
1193 }
1194 description { state: "pulse" 0.0;
1195 inherit: "default" 0.0;
1196 color: PATCOL2;
1197 }
1198 }
1199 part { name: "background_bottom";
1200 mouse_events: 0;
1201 clip_to: "bottom_clip";
1202 description { state: "default" 0.0;
1203 color: PATCOL;
1204 image.normal: "sl_stripe.png";
1205 fill.size.relative: 0.0 0.0;
1206 fill.size.offset: 40 40;
1207 }
1208 description { state: "pulse" 0.0;
1209 inherit: "default" 0.0;
1210 color: PATCOL2;
1211 }
1212 }
1213
1214 // clips that clip the above pattern images to occupy specific
1215 // regions of the object (or be invisible since clip is invisible)
1216 part { name: "top_clip"; type: RECT;
1217 mouse_events: 0;
1218 description { state: "default" 0.0;
1219 rel1.to: "terminology.top_left";
1220 rel1.relative: 1.0 0.0;
1221 rel2.to_y: "terminology.top_left";
1222 rel2.relative: 1.0 1.0;
1223 }
1224 description { state: "oneline" 0.0;
1225 visible: 0;
1226 }
1227 }
1228 part { name: "middle_clip"; type: RECT;
1229 mouse_events: 0;
1230 description { state: "default" 0.0;
1231 rel1.to: "terminology.top_left";
1232 rel1.relative: 0.0 1.0;
1233 rel2.to: "terminology.bottom_right";
1234 rel2.relative: 1.0 0.0;
1235 }
1236 description { state: "oneline" 0.0;
1237 rel1.to: "terminology.top_left";
1238 rel1.relative: 1.0 0.0;
1239 rel2.to: "terminology.bottom_right";
1240 rel2.relative: 0.0 1.0;
1241 }
1242 }
1243 part { name: "bottom_clip"; type: RECT;
1244 mouse_events: 0;
1245 description { state: "default" 0.0;
1246 rel1.to_y: "terminology.bottom_right";
1247 rel1.relative: 0.0 0.0;
1248 rel2.to_x: "terminology.bottom_right";
1249 rel2.relative: 0.0 1.0;
1250 }
1251 description { state: "oneline" 0.0;
1252 visible: 0;
1253 }
1254 }
1255
1256 // the outline around the selection...
1257#define TARGETS \
1258target: "top_clip"; target: "middle_clip"; target: "bottom_clip"; \
1259target: "0.clip"; target: "1.clip"; target: "2.clip"; target: "3.clip"; target: "4.clip"
1260
1261 part { name: "0.clip"; type: RECT;
1262 mouse_events: 0;
1263 description { state: "default" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1264 description { state: "oneline" 0.0; visible: 1; rel1.offset: -100 -100; rel2.offset: 101 101; }
1265 description { state: "disjoint" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1266 description { state: "topfull" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1267 description { state: "bottomfull" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1268 }
1269 part { name: "1.clip"; type: RECT;
1270 mouse_events: 0;
1271 description { state: "default" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1272 description { state: "oneline" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1273 description { state: "disjoint" 0.0; visible: 1; rel1.offset: -100 -100; rel2.offset: 101 101; }
1274 description { state: "topfull" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1275 description { state: "bottomfull" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1276 }
1277 part { name: "2.clip"; type: RECT;
1278 mouse_events: 0;
1279 description { state: "default" 0.0; visible: 1; rel1.offset: -100 -100; rel2.offset: 101 101; }
1280 description { state: "oneline" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1281 description { state: "disjoint" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1282 description { state: "topfull" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1283 description { state: "bottomfull" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1284 }
1285 part { name: "3.clip"; type: RECT;
1286 mouse_events: 0;
1287 description { state: "default" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1288 description { state: "oneline" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1289 description { state: "disjoint" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1290 description { state: "topfull" 0.0; visible: 1; rel1.offset: -100 -100; rel2.offset: 101 101; }
1291 description { state: "bottomfull" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1292 }
1293 part { name: "4.clip"; type: RECT;
1294 mouse_events: 0;
1295 description { state: "default" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1296 description { state: "oneline" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1297 description { state: "disjoint" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1298 description { state: "topfull" 0.0; visible: 0; rel1.offset: -100 -100; rel2.offset: 101 101; }
1299 description { state: "bottomfull" 0.0; visible: 1; rel1.offset: -100 -100; rel2.offset: 101 101; }
1300 }
1301
1302 // oneline (also multiple lines but all fill the row):
1303 // | ######### |
1304 part { name: "0.left";
1305 mouse_events: 0;
1306 clip_to: "0.clip";
1307 description { state: "default" 0.0;
1308 rel1 {
1309 to_x: "terminology.top_left";
1310 relative: 1.0 0.0;
1311 offset: -1 -1;
1312 }
1313 rel2 {
1314 to_x: "terminology.top_left";
1315 relative: 1.0 1.0;
1316 offset: 2 0;
1317 }
1318 color: OUTCOL;
1319 image.normal: "sl_left.png";
1320 image.border: 0 0 4 4;
1321 fill.smooth: 0;
1322 }
1323 description { state: "pulse" 0.0;
1324 inherit: "default" 0.0;
1325 color: OUTCOL2;
1326 }
1327 }
1328 part { name: "0.right";
1329 mouse_events: 0;
1330 clip_to: "0.clip";
1331 description { state: "default" 0.0;
1332 rel1 {
1333 to_x: "terminology.bottom_right";
1334 relative: 0.0 0.0;
1335 offset: -3 -1;
1336 }
1337 rel2 {
1338 to_x: "terminology.bottom_right";
1339 relative: 0.0 1.0;
1340 offset: 0 0;
1341 }
1342 color: OUTCOL;
1343 image.normal: "sl_right.png";
1344 image.border: 0 0 4 4;
1345 fill.smooth: 0;
1346 }
1347 description { state: "pulse" 0.0;
1348 inherit: "default" 0.0;
1349 color: OUTCOL2;
1350 }
1351 }
1352 part { name: "0.top";
1353 mouse_events: 0;
1354 clip_to: "0.clip";
1355 description { state: "default" 0.0;
1356 rel1 {
1357 to: "0.left";
1358 relative: 1.0 0.0;
1359 offset: 0 0;
1360 }
1361 rel2 {
1362 to: "0.right";
1363 relative: 0.0 0.0;
1364 offset: -1 3;
1365 }
1366 color: OUTCOL;
1367 image.normal: "sl_htop.png";
1368 fill.smooth: 0;
1369 }
1370 description { state: "pulse" 0.0;
1371 inherit: "default" 0.0;
1372 color: OUTCOL2;
1373 }
1374 }
1375 part { name: "0.bottom";
1376 mouse_events: 0;
1377 clip_to: "0.clip";
1378 description { state: "default" 0.0;
1379 rel1 {
1380 to: "0.left";
1381 relative: 1.0 1.0;
1382 offset: 0 -4;
1383 }
1384 rel2 {
1385 to: "0.right";
1386 relative: 0.0 1.0;
1387 offset: -1 -1;
1388 }
1389 color: OUTCOL;
1390 image.normal: "sl_hbottom.png";
1391 fill.smooth: 0;
1392 }
1393 description { state: "pulse" 0.0;
1394 inherit: "default" 0.0;
1395 color: OUTCOL2;
1396 }
1397 }
1398 program { name: "oneline";
1399 signal: "mode,oneline";
1400 source: "terminology";
1401 action: STATE_SET "oneline" 0.0;
1402 TARGETS;
1403 }
1404
1405 // disjoint:
1406 // | #######|
1407 // |## |
1408 part { name: "1.left";
1409 mouse_events: 0;
1410 clip_to: "1.clip";
1411 description { state: "default" 0.0;
1412 rel1 {
1413 to: "terminology.top_left";
1414 relative: 1.0 0.0;
1415 offset: -1 -1;
1416 }
1417 rel2 {
1418 to: "terminology.top_left";
1419 relative: 1.0 1.0;
1420 offset: 2 0;
1421 }
1422 color: OUTCOL;
1423 image.normal: "sl_left.png";
1424 image.border: 0 0 4 4;
1425 fill.smooth: 0;
1426 }
1427 description { state: "pulse" 0.0;
1428 inherit: "default" 0.0;
1429 color: OUTCOL2;
1430 }
1431 }
1432 part { name: "1.right";
1433 mouse_events: 0;
1434 clip_to: "1.clip";
1435 description { state: "default" 0.0;
1436 rel1 {
1437 to_y: "terminology.top_left";
1438 relative: 1.0 0.0;
1439 offset: -4 -1;
1440 }
1441 rel2 {
1442 to_y: "terminology.top_left";
1443 relative: 1.0 1.0;
1444 offset: -1 0;
1445 }
1446 color: OUTCOL;
1447 image.normal: "sl_right.png";
1448 image.border: 0 0 4 4;
1449 fill.smooth: 0;
1450 }
1451 description { state: "pulse" 0.0;
1452 inherit: "default" 0.0;
1453 color: OUTCOL2;
1454 }
1455 }
1456 part { name: "1.top";
1457 mouse_events: 0;
1458 clip_to: "1.clip";
1459 description { state: "default" 0.0;
1460 rel1 {
1461 to: "1.left";
1462 relative: 1.0 0.0;
1463 offset: 0 0;
1464 }
1465 rel2 {
1466 to: "1.right";
1467 relative: 0.0 0.0;
1468 offset: -1 3;
1469 }
1470 color: OUTCOL;
1471 image.normal: "sl_htop.png";
1472 fill.smooth: 0;
1473 }
1474 description { state: "pulse" 0.0;
1475 inherit: "default" 0.0;
1476 color: OUTCOL2;
1477 }
1478 }
1479 part { name: "1.bottom";
1480 mouse_events: 0;
1481 clip_to: "1.clip";
1482 description { state: "default" 0.0;
1483 rel1 {
1484 to: "1.left";
1485 relative: 1.0 1.0;
1486 offset: 0 -4;
1487 }
1488 rel2 {
1489 to: "1.right";
1490 relative: 0.0 1.0;
1491 offset: -1 -1;
1492 }
1493 color: OUTCOL;
1494 image.normal: "sl_hbottom.png";
1495 fill.smooth: 0;
1496 }
1497 description { state: "pulse" 0.0;
1498 inherit: "default" 0.0;
1499 color: OUTCOL2;
1500 }
1501 }
1502 part { name: "1.left2";
1503 mouse_events: 0;
1504 clip_to: "1.clip";
1505 description { state: "default" 0.0;
1506 rel1 {
1507 to_y: "terminology.bottom_right";
1508 offset: -1 -1;
1509 }
1510 rel2 {
1511 to_y: "terminology.bottom_right";
1512 relative: 0.0 1.0;
1513 offset: 2 0;
1514 }
1515 color: OUTCOL;
1516 image.normal: "sl_left.png";
1517 image.border: 0 0 4 4;
1518 fill.smooth: 0;
1519 }
1520 description { state: "pulse" 0.0;
1521 inherit: "default" 0.0;
1522 color: OUTCOL2;
1523 }
1524 }
1525 part { name: "1.right2";
1526 mouse_events: 0;
1527 clip_to: "1.clip";
1528 description { state: "default" 0.0;
1529 rel1 {
1530 to: "terminology.bottom_right";
1531 relative: 0.0 0.0;
1532 offset: -3 -1;
1533 }
1534 rel2 {
1535 to: "terminology.bottom_right";
1536 relative: 0.0 1.0;
1537 offset: 0 0;
1538 }
1539 color: OUTCOL;
1540 image.normal: "sl_right.png";
1541 image.border: 0 0 4 4;
1542 fill.smooth: 0;
1543 }
1544 description { state: "pulse" 0.0;
1545 inherit: "default" 0.0;
1546 color: OUTCOL2;
1547 }
1548 }
1549 part { name: "1.top2";
1550 mouse_events: 0;
1551 clip_to: "1.clip";
1552 description { state: "default" 0.0;
1553 rel1 {
1554 to: "1.left2";
1555 relative: 1.0 0.0;
1556 offset: 0 0;
1557 }
1558 rel2 {
1559 to: "1.right2";
1560 relative: 0.0 0.0;
1561 offset: -1 3;
1562 }
1563 color: OUTCOL;
1564 image.normal: "sl_htop.png";
1565 fill.smooth: 0;
1566 }
1567 description { state: "pulse" 0.0;
1568 inherit: "default" 0.0;
1569 color: OUTCOL2;
1570 }
1571 }
1572 part { name: "1.bottom2";
1573 mouse_events: 0;
1574 clip_to: "1.clip";
1575 description { state: "default" 0.0;
1576 rel1 {
1577 to: "1.left2";
1578 relative: 1.0 1.0;
1579 offset: 0 -4;
1580 }
1581 rel2 {
1582 to: "1.right2";
1583 relative: 0.0 1.0;
1584 offset: -1 -1;
1585 }
1586 color: OUTCOL;
1587 image.normal: "sl_hbottom.png";
1588 fill.smooth: 0;
1589 }
1590 description { state: "pulse" 0.0;
1591 inherit: "default" 0.0;
1592 color: OUTCOL2;
1593 }
1594 }
1595 program { name: "disjoint";
1596 signal: "mode,disjoint";
1597 source: "terminology";
1598 action: STATE_SET "disjoint" 0.0;
1599 TARGETS;
1600 }
1601
1602 // default:
1603 // | ###########|
1604 // |######### |
1605 part { name: "2.topkink";
1606 mouse_events: 0;
1607 clip_to: "2.clip";
1608 description { state: "default" 0.0;
1609 rel1 {
1610 to: "top_clip";
1611 relative: 0.0 0.0;
1612 offset: -4 -1;
1613 }
1614 rel2 {
1615 to: "top_clip";
1616 relative: 0.0 1.0;
1617 offset: 2 2;
1618 }
1619 color: OUTCOL;
1620 image.normal: "sl_top.png";
1621 image.border: 0 0 4 7;
1622 }
1623 description { state: "pulse" 0.0;
1624 inherit: "default" 0.0;
1625 color: OUTCOL2;
1626 }
1627 }
1628 part { name: "2.bottomkink";
1629 mouse_events: 0;
1630 clip_to: "2.clip";
1631 description { state: "default" 0.0;
1632 rel1 {
1633 to: "bottom_clip";
1634 relative: 1.0 0.0;
1635 offset: -3 -3;
1636 }
1637 rel2 {
1638 to: "bottom_clip";
1639 relative: 1.0 1.0;
1640 offset: 3 0;
1641 }
1642 color: OUTCOL;
1643 image.normal: "sl_bottom.png";
1644 image.border: 0 0 7 4;
1645 }
1646 description { state: "pulse" 0.0;
1647 inherit: "default" 0.0;
1648 color: OUTCOL2;
1649 }
1650 }
1651 part { name: "2.left";
1652 mouse_events: 0;
1653 clip_to: "2.clip";
1654 description { state: "default" 0.0;
1655 rel1 {
1656 to: "middle_clip";
1657 offset: -1 -1;
1658 }
1659 rel2 {
1660 to: "bottom_clip";
1661 relative: 0.0 1.0;
1662 offset: 2 0;
1663 }
1664 color: OUTCOL;
1665 image.normal: "sl_left.png";
1666 image.border: 0 0 4 4;
1667 fill.smooth: 0;
1668 }
1669 description { state: "pulse" 0.0;
1670 inherit: "default" 0.0;
1671 color: OUTCOL2;
1672 }
1673 }
1674 part { name: "2.right";
1675 mouse_events: 0;
1676 clip_to: "2.clip";
1677 description { state: "default" 0.0;
1678 rel1 {
1679 to: "top_clip";
1680 relative: 1.0 0.0;
1681 offset: -3 -1;
1682 }
1683 rel2 {
1684 to: "middle_clip";
1685 offset: 0 0;
1686 }
1687 color: OUTCOL;
1688 image.normal: "sl_right.png";
1689 image.border: 0 0 4 4;
1690 fill.smooth: 0;
1691 }
1692 description { state: "pulse" 0.0;
1693 inherit: "default" 0.0;
1694 color: OUTCOL2;
1695 }
1696 }
1697 part { name: "2.top";
1698 mouse_events: 0;
1699 clip_to: "2.clip";
1700 description { state: "default" 0.0;
1701 rel1 {
1702 to: "2.topkink";
1703 relative: 1.0 0.0;
1704 offset: 0 0;
1705 }
1706 rel2 {
1707 to: "2.right";
1708 relative: 0.0 0.0;
1709 offset: -1 3;
1710 }
1711 color: OUTCOL;
1712 image.normal: "sl_htop.png";
1713 fill.smooth: 0;
1714 }
1715 description { state: "pulse" 0.0;
1716 inherit: "default" 0.0;
1717 color: OUTCOL2;
1718 }
1719 }
1720 part { name: "2.top2";
1721 mouse_events: 0;
1722 clip_to: "2.clip";
1723 description { state: "default" 0.0;
1724 rel1 {
1725 to: "2.left";
1726 relative: 1.0 0.0;
1727 offset: 0 0;
1728 }
1729 rel2 {
1730 to: "2.topkink";
1731 relative: 0.0 1.0;
1732 offset: -1 -1;
1733 }
1734 color: OUTCOL;
1735 image.normal: "sl_htop.png";
1736 fill.smooth: 0;
1737 }
1738 description { state: "pulse" 0.0;
1739 inherit: "default" 0.0;
1740 color: OUTCOL2;
1741 }
1742 }
1743 part { name: "2.bottom";
1744 mouse_events: 0;
1745 clip_to: "2.clip";
1746 description { state: "default" 0.0;
1747 rel1 {
1748 to: "2.left";
1749 relative: 1.0 1.0;
1750 offset: 0 -4;
1751 }
1752 rel2 {
1753 to: "2.bottomkink";
1754 relative: 0.0 1.0;
1755 offset: -1 -1;
1756 }
1757 color: OUTCOL;
1758 image.normal: "sl_hbottom.png";
1759 fill.smooth: 0;
1760 }
1761 description { state: "pulse" 0.0;
1762 inherit: "default" 0.0;
1763 color: OUTCOL2;
1764 }
1765 }
1766 part { name: "2.bottom2";
1767 mouse_events: 0;
1768 clip_to: "2.clip";
1769 description { state: "default" 0.0;
1770 rel1 {
1771 to: "2.bottomkink";
1772 relative: 1.0 0.0;
1773 offset: 0 0;
1774 }
1775 rel2 {
1776 to: "2.right";
1777 relative: 0.0 1.0;
1778 offset: -1 -1;
1779 }
1780 color: OUTCOL;
1781 image.normal: "sl_hbottom.png";
1782 fill.smooth: 0;
1783 }
1784 description { state: "pulse" 0.0;
1785 inherit: "default" 0.0;
1786 color: OUTCOL2;
1787 }
1788 }
1789 program { name: "multiline";
1790 signal: "mode,multiline";
1791 source: "terminology";
1792 action: STATE_SET "default" 0.0;
1793 TARGETS;
1794 }
1795
1796 // topfull:
1797 // |##############|
1798 // |###### |
1799 part { name: "3.bottomkink";
1800 mouse_events: 0;
1801 clip_to: "3.clip";
1802 description { state: "default" 0.0;
1803 rel1 {
1804 to: "bottom_clip";
1805 relative: 1.0 0.0;
1806 offset: -3 -3;
1807 }
1808 rel2 {
1809 to: "bottom_clip";
1810 relative: 1.0 1.0;
1811 offset: 3 0;
1812 }
1813 color: OUTCOL;
1814 image.normal: "sl_bottom.png";
1815 image.border: 0 0 7 4;
1816 }
1817 description { state: "pulse" 0.0;
1818 inherit: "default" 0.0;
1819 color: OUTCOL2;
1820 }
1821 }
1822 part { name: "3.left";
1823 mouse_events: 0;
1824 clip_to: "3.clip";
1825 description { state: "default" 0.0;
1826 rel1 {
1827 to: "top_clip";
1828 offset: -1 -1;
1829 }
1830 rel2 {
1831 to: "bottom_clip";
1832 relative: 0.0 1.0;
1833 offset: 2 0;
1834 }
1835 color: OUTCOL;
1836 image.normal: "sl_left.png";
1837 image.border: 0 0 4 4;
1838 fill.smooth: 0;
1839 }
1840 description { state: "pulse" 0.0;
1841 inherit: "default" 0.0;
1842 color: OUTCOL2;
1843 }
1844 }
1845 part { name: "3.right";
1846 mouse_events: 0;
1847 clip_to: "3.clip";
1848 description { state: "default" 0.0;
1849 rel1 {
1850 to: "top_clip";
1851 relative: 1.0 0.0;
1852 offset: -3 -1;
1853 }
1854 rel2 {
1855 to: "middle_clip";
1856 offset: 0 0;
1857 }
1858 color: OUTCOL;
1859 image.normal: "sl_right.png";
1860 image.border: 0 0 4 4;
1861 fill.smooth: 0;
1862 }
1863 description { state: "pulse" 0.0;
1864 inherit: "default" 0.0;
1865 color: OUTCOL2;
1866 }
1867 }
1868 part { name: "3.top";
1869 mouse_events: 0;
1870 clip_to: "3.clip";
1871 description { state: "default" 0.0;
1872 rel1 {
1873 to: "3.left";
1874 relative: 1.0 0.0;
1875 offset: 0 0;
1876 }
1877 rel2 {
1878 to: "3.right";
1879 relative: 0.0 0.0;
1880 offset: -1 3;
1881 }
1882 color: OUTCOL;
1883 image.normal: "sl_htop.png";
1884 fill.smooth: 0;
1885 }
1886 description { state: "pulse" 0.0;
1887 inherit: "default" 0.0;
1888 color: OUTCOL2;
1889 }
1890 }
1891 part { name: "3.bottom";
1892 mouse_events: 0;
1893 clip_to: "3.clip";
1894 description { state: "default" 0.0;
1895 rel1 {
1896 to: "3.left";
1897 relative: 1.0 1.0;
1898 offset: 0 -4;
1899 }
1900 rel2 {
1901 to: "3.bottomkink";
1902 relative: 0.0 1.0;
1903 offset: -1 -1;
1904 }
1905 color: OUTCOL;
1906 image.normal: "sl_hbottom.png";
1907 fill.smooth: 0;
1908 }
1909 description { state: "pulse" 0.0;
1910 inherit: "default" 0.0;
1911 color: OUTCOL2;
1912 }
1913 }
1914 part { name: "3.bottom2";
1915 mouse_events: 0;
1916 clip_to: "3.clip";
1917 description { state: "default" 0.0;
1918 rel1 {
1919 to: "3.bottomkink";
1920 relative: 1.0 0.0;
1921 offset: 0 0;
1922 }
1923 rel2 {
1924 to: "3.right";
1925 relative: 0.0 1.0;
1926 offset: -1 -1;
1927 }
1928 color: OUTCOL;
1929 image.normal: "sl_hbottom.png";
1930 fill.smooth: 0;
1931 }
1932 description { state: "pulse" 0.0;
1933 inherit: "default" 0.0;
1934 color: OUTCOL2;
1935 }
1936 }
1937 program { name: "topfull";
1938 signal: "mode,topfull";
1939 source: "terminology";
1940 action: STATE_SET "topfull" 0.0;
1941 TARGETS;
1942 }
1943
1944 // bottomfull:
1945 // | ######|
1946 // |##############|
1947 part { name: "4.topkink";
1948 mouse_events: 0;
1949 clip_to: "4.clip";
1950 description { state: "default" 0.0;
1951 rel1 {
1952 to: "top_clip";
1953 relative: 0.0 0.0;
1954 offset: -4 -1;
1955 }
1956 rel2 {
1957 to: "top_clip";
1958 relative: 0.0 1.0;
1959 offset: 2 2;
1960 }
1961 color: OUTCOL;
1962 image.normal: "sl_top.png";
1963 image.border: 0 0 4 7;
1964 }
1965 description { state: "pulse" 0.0;
1966 inherit: "default" 0.0;
1967 color: OUTCOL2;
1968 }
1969 }
1970 part { name: "4.left";
1971 mouse_events: 0;
1972 clip_to: "4.clip";
1973 description { state: "default" 0.0;
1974 rel1 {
1975 to: "middle_clip";
1976 offset: -1 -1;
1977 }
1978 rel2 {
1979 to: "bottom_clip";
1980 relative: 0.0 1.0;
1981 offset: 2 0;
1982 }
1983 color: OUTCOL;
1984 image.normal: "sl_left.png";
1985 image.border: 0 0 4 4;
1986 fill.smooth: 0;
1987 }
1988 description { state: "pulse" 0.0;
1989 inherit: "default" 0.0;
1990 color: OUTCOL2;
1991 }
1992 }
1993 part { name: "4.right";
1994 mouse_events: 0;
1995 clip_to: "4.clip";
1996 description { state: "default" 0.0;
1997 rel1 {
1998 to: "top_clip";
1999 relative: 1.0 0.0;
2000 offset: -3 -1;
2001 }
2002 rel2 {
2003 offset: 0 0;
2004 }
2005 color: OUTCOL;
2006 image.normal: "sl_right.png";
2007 image.border: 0 0 4 4;
2008 fill.smooth: 0;
2009 }
2010 description { state: "pulse" 0.0;
2011 inherit: "default" 0.0;
2012 color: OUTCOL2;
2013 }
2014 }
2015 part { name: "4.top";
2016 mouse_events: 0;
2017 clip_to: "4.clip";
2018 description { state: "default" 0.0;
2019 rel1 {
2020 to: "4.topkink";
2021 relative: 1.0 0.0;
2022 offset: 0 0;
2023 }
2024 rel2 {
2025 to: "4.right";
2026 relative: 0.0 0.0;
2027 offset: -1 3;
2028 }
2029 color: OUTCOL;
2030 image.normal: "sl_htop.png";
2031 fill.smooth: 0;
2032 }
2033 description { state: "pulse" 0.0;
2034 inherit: "default" 0.0;
2035 color: OUTCOL2;
2036 }
2037 }
2038 part { name: "4.top2";
2039 mouse_events: 0;
2040 clip_to: "4.clip";
2041 description { state: "default" 0.0;
2042 rel1 {
2043 to: "4.left";
2044 relative: 1.0 0.0;
2045 offset: 0 0;
2046 }
2047 rel2 {
2048 to: "4.topkink";
2049 relative: 0.0 1.0;
2050 offset: -1 -1;
2051 }
2052 color: OUTCOL;
2053 image.normal: "sl_htop.png";
2054 fill.smooth: 0;
2055 }
2056 description { state: "pulse" 0.0;
2057 inherit: "default" 0.0;
2058 color: OUTCOL2;
2059 }
2060 }
2061 part { name: "4.bottom";
2062 mouse_events: 0;
2063 clip_to: "4.clip";
2064 description { state: "default" 0.0;
2065 rel1 {
2066 to: "4.left";
2067 relative: 1.0 1.0;
2068 offset: 0 -4;
2069 }
2070 rel2 {
2071 to: "4.right";
2072 relative: 1.0 1.0;
2073 offset: -1 -1;
2074 }
2075 color: OUTCOL;
2076 image.normal: "sl_hbottom.png";
2077 fill.smooth: 0;
2078 }
2079 description { state: "pulse" 0.0;
2080 inherit: "default" 0.0;
2081 color: OUTCOL2;
2082 }
2083 }
2084 program {
2085 signal: "mode,bottomfull"; source: "terminology";
2086 action: STATE_SET "bottomfull" 0.0;
2087 TARGETS;
2088 }
2089
2090#define SELPULSE \
2091target: "background_top"; \
2092target: "background_middle"; \
2093target: "background_bottom"; \
2094target: "0.left"; \
2095target: "0.right"; \
2096target: "0.top"; \
2097target: "0.bottom"; \
2098target: "1.left"; \
2099target: "1.right"; \
2100target: "1.top"; \
2101target: "1.bottom"; \
2102target: "1.left2"; \
2103target: "1.right2"; \
2104target: "1.top2"; \
2105target: "1.bottom2"; \
2106target: "2.topkink"; \
2107target: "2.bottomkink"; \
2108target: "2.left"; \
2109target: "2.right"; \
2110target: "2.top2"; \
2111target: "2.top"; \
2112target: "2.bottom"; \
2113target: "2.bottom2"; \
2114target: "3.bottomkink"; \
2115target: "3.left"; \
2116target: "3.right"; \
2117target: "3.top"; \
2118target: "3.bottom"; \
2119target: "3.bottom2"; \
2120target: "4.topkink"; \
2121target: "4.left"; \
2122target: "4.right"; \
2123target: "4.top2"; \
2124target: "4.top"; \
2125target: "4.bottom"
2126
2127 program { name: "selpulse";
2128 signal: "show"; source: "";
2129 action: STATE_SET "pulse" 0.0;
2130 transition: SINUSOIDAL 0.5;
2131 SELPULSE;
2132 after: "selpulse2";
2133 }
2134 program { name: "selpulse2";
2135 action: STATE_SET "default" 0.0;
2136 transition: SINUSOIDAL 1.0;
2137 SELPULSE;
2138 after: "selpulse";
2139 }
2140
2141 // top and bottom swallows used to coimmunicate via min/max size the
2142 // size of the top and bottom lines
2143 part { name: "terminology.top_left"; type: SWALLOW;
2144 mouse_events: 0;
2145 description { state: "default" 0.0;
2146 align: 0.0 0.0;
2147 rel2.relative: 0.0 0.0;
2148 visible: 0;
2149 }
2150 }
2151 part { name: "terminology.bottom_right"; type: SWALLOW;
2152 mouse_events: 0;
2153 description { state: "default" 0.0;
2154 align: 1.0 1.0;
2155 rel1.relative: 1.0 1.0;
2156 visible: 0;
2157 }
2158 }
2159
2160 // blinky cursors indicating you can drag the ends of the selection
2161 part { name: "cursor.top_left"; type: RECT;
2162 mouse_events: 0;
2163 description { state: "default" 0.0;
2164 rel1.to: "terminology.top_left";
2165 rel1.relative: 1.0 0.0;
2166 rel2.to: "terminology.top_left";
2167 rel2.relative: 1.0 1.0;
2168 rel2.offset: 0 -1;
2169 color: 255 0 0 128;
2170 }
2171 }
2172 part { name: "cursor_blink.top_left"; type: RECT;
2173 mouse_events: 0;
2174 description { state: "default" 0.0;
2175 rel1.to: "cursor.top_left";
2176 rel2.to: "cursor.top_left";
2177 visible: 0;
2178 }
2179 description { state: "fading" 0.0;
2180 inherit: "default" 0.0;
2181 color: 255 0 0 255;
2182 visible: 1;
2183 }
2184 description { state: "fading" 1.0;
2185 inherit: "fading" 0.0;
2186 color: 255 0 0 64;
2187 rel1.offset: -5 0;
2188 }
2189 }
2190 part { name: "zone.top_left"; type: RECT;
2191 description { state: "default" 0.0;
2192 rel1.to: "cursor.top_left";
2193 rel1.offset: -15 0;
2194 rel2.to: "cursor.top_left";
2195 rel2.offset: 15 0;
2196 color: 0 0 0 0;
2197 }
2198 program { name: "top_left.blink";
2199 signal: "mouse,in";
2200 source: "zone.top_left";
2201 action: STATE_SET "fading" 0.0;
2202 target: "cursor_blink.top_left";
2203 after: "top_left.fade";
2204 }
2205 program { name: "top_left.fade";
2206 action: STATE_SET "fading" 1.0;
2207 transition: LINEAR 0.3;
2208 target: "cursor_blink.top_left";
2209 after: "top_left.blink";
2210 }
2211 program { name: "top_left.stop";
2212 signal: "mouse,out";
2213 source: "zone.top_left";
2214 action: STATE_SET "default" 0.0;
2215 target: "cursor_blink.top_left";
2216 }
2217 }
2218 part { name: "cursor.bottom_right"; type: RECT;
2219 mouse_events: 0;
2220 description { state: "default" 0.0;
2221 rel1.to: "terminology.bottom_right";
2222 rel1.relative: 0.0 0.0;
2223 rel1.offset: -1 0;
2224 rel2.to: "terminology.bottom_right";
2225 rel2.relative: 0.0 1.0;
2226 rel2.offset: -1 -1;
2227 color: 255 0 0 128;
2228 }
2229 }
2230 part { name: "cursor_blink.bottom_right"; type: RECT;
2231 mouse_events: 0;
2232 description { state: "default" 0.0;
2233 rel1.to: "cursor.bottom_right";
2234 rel2.to: "cursor.bottom_right";
2235 visible: 0;
2236 }
2237 description { state: "fading" 0.0;
2238 inherit: "default" 0.0;
2239 color: 255 0 0 255;
2240 visible: 1;
2241 }
2242 description { state: "fading" 1.0;
2243 inherit: "fading" 0.0;
2244 color: 255 0 0 64;
2245 rel2.offset: +5 0;
2246 }
2247 }
2248 part { name: "zone.bottom_right"; type: RECT;
2249 description { state: "default" 0.0;
2250 rel1.to: "cursor.bottom_right";
2251 rel1.offset: -15 0;
2252 rel2.to: "cursor.bottom_right";
2253 rel2.offset: 15 0;
2254 color: 0 0 0 0;
2255 }
2256 program { name: "bottom_right.blink";
2257 signal: "mouse,in"; source: "zone.bottom_right";
2258 action: STATE_SET "fading" 0.0;
2259 target: "cursor_blink.bottom_right";
2260 after: "bottom_right.fade";
2261 }
2262 program { name: "bottom_right.fade";
2263 action: STATE_SET "fading" 1.0;
2264 transition: LINEAR 0.3;
2265 target: "cursor_blink.bottom_right";
2266 after: "bottom_right.blink";
2267 }
2268 program { name: "bottom_right.stop";
2269 signal: "mouse,out"; source: "zone.bottom_right";
2270 action: STATE_SET "default" 0.0;
2271 target: "cursor_blink.bottom_right";
2272 }
2273 }
2274 }
2275 }
2276
2277
2278//////////////////////////////////////////////////////////////////////////////
2279 //// the cursor to show where text is typed
2280 group { name: "terminology/cursor";
2281 images {
2282 image: "cr_key.png" COMP;
2283 image: "cr_out.png" COMP;
2284 image: "cr_pulse.png" COMP;
2285 image: "cr_glow.png" COMP;
2286 }
2287 sounds {
2288 sample { name: "key-tap1" LOSSY 64;
2289 source: "kbd-tap.wav";
2290 }
2291 sample { name: "key-tap2" LOSSY 64;
2292 source: "kbd-tap2.wav";
2293 }
2294 sample { name: "key-tap3" LOSSY 64;
2295 source: "kbd-tap3.wav";
2296 }
2297 sample { name: "key-tap4" LOSSY 64;
2298 source: "kbd-tap4.wav";
2299 }
2300 sample { name: "key-tap5" LOSSY 64;
2301 source: "kbd-tap5.wav";
2302 }
2303 }
2304 parts {
2305 part { name: "key";
2306 mouse_events: 0;
2307 description { state: "default" 0.0;
2308 rel1 {
2309 to: "outline";
2310 offset: -5 -5;
2311 }
2312 rel2 {
2313 to: "outline";
2314 offset: 4 4;
2315 }
2316 image {
2317 normal: "cr_key.png";
2318 border: 4 4 4 4;
2319 }
2320 color: 51 153 255 0;
2321 }
2322 description { state: "on" 0.0;
2323 inherit: "default" 0.0;
2324 color: 51 153 255 255;
2325 }
2326 description { state: "out" 0.0;
2327 inherit: "default" 0.0;
2328 color: 51 153 255 0;
2329 rel1.offset: -7 -15;
2330 rel2.offset: 6 14;
2331 }
2332 }
2333 part { name: "pulse";
2334 mouse_events: 0;
2335 description { state: "default" 0.0;
2336 rel1 {
2337 to: "outline";
2338 offset: -4 -4;
2339 }
2340 rel2 {
2341 to: "outline";
2342 offset: 3 3;
2343 }
2344 image {
2345 normal: "cr_pulse.png";
2346 border: 4 4 4 4;
2347 }
2348 color: 51 153 255 0;
2349 }
2350 description { state: "on" 0.0;
2351 inherit: "default" 0.0;
2352 color: 51 153 255 255;
2353 }
2354 description { state: "out" 0.0;
2355 inherit: "default" 0.0;
2356 color: 51 153 255 0;
2357 rel1.offset: -8 -8;
2358 rel2.offset: 7 7;
2359 }
2360 }
2361 part { name: "glow";
2362 mouse_events: 0;
2363 description { state: "default" 0.0;
2364 rel1.offset: -4 -4;
2365 rel2.offset: 3 3;
2366 image {
2367 normal: "cr_glow.png";
2368 border: 9 9 9 9;
2369 }
2370 color: 51 153 255 40;
2371 }
2372 description { state: "focused" 0.0;
2373 inherit: "default" 0.0;
2374 color: 51 153 255 255;
2375 }
2376 }
2377 part { name: "outline";
2378 mouse_events: 0;
2379 description { state: "default" 0.0;
2380 image {
2381 normal: "cr_out.png";
2382 border: 3 3 3 3;
2383 }
2384 color: 51 153 255 80;
2385 }
2386 description { state: "focused" 0.0;
2387 inherit: "default" 0.0;
2388 color: 255 255 255 255;
2389 }
2390 }
2391 programs {
2392 program {
2393 signal: "focus,in,noblink"; source: "terminology";
2394 action: STATE_SET "focused" 0.0;
2395 target: "glow";
2396 target: "outline";
2397 }
2398 program { name: "focus_in";
2399 signal: "focus,in"; source: "terminology";
2400 action: STATE_SET "focused" 0.0;
2401 target: "glow";
2402 target: "outline";
2403 after: "focus2";
2404 after: "pulse";
2405 }
2406 program { name: "focus2";
2407 in: 0.5 0.0;
2408 action: STATE_SET "default" 0.0;
2409 transition: DECELERATE 0.2;
2410 target: "glow";
2411 target: "outline";
2412 after: "focus3";
2413 }
2414 program { name: "focus3";
2415 in: 0.5 0.0;
2416 action: STATE_SET "focused" 0.0;
2417 target: "glow";
2418 target: "outline";
2419 after: "focus2";
2420 after: "pulse";
2421 }
2422 program { name: "pulse";
2423 action: STATE_SET "on" 0.0;
2424 target: "pulse";
2425 after: "pulse2";
2426 }
2427 program { name: "pulse2";
2428 action: STATE_SET "out" 0.0;
2429 transition: DECELERATE 0.4;
2430 target: "pulse";
2431 }
2432 program {
2433 signal: "focus,out"; source: "terminology";
2434 action: ACTION_STOP;
2435 target: "focus_in";
2436 target: "focus2";
2437 target: "focus3";
2438 target: "pulse";
2439 target: "pulse2";
2440 after: "focus_out2";
2441 }
2442 program { name: "focus_out2";
2443 action: STATE_SET "default" 0.0;
2444 target: "glow";
2445 target: "outline";
2446 }
2447 program {
2448 signal: "key,down"; source: "terminology";
2449 script {
2450 new buf[32];
2451 snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
2452 run_program(get_program_id(buf));
2453 }
2454 }
2455 program { name: "key-down1";
2456 action: PLAY_SAMPLE "key-tap1" 1.0;
2457 }
2458 program { name: "key-down2";
2459 action: PLAY_SAMPLE "key-tap2" 1.0;
2460 }
2461 program { name: "key-down3";
2462 action: PLAY_SAMPLE "key-tap3" 1.0;
2463 }
2464 program { name: "key-down4";
2465 action: PLAY_SAMPLE "key-tap4" 1.0;
2466 }
2467 program { name: "key-down5";
2468 action: PLAY_SAMPLE "key-tap5" 1.0;
2469 }
2470 program {
2471 signal: "key,down"; source: "terminology";
2472 action: STATE_SET "default" 0.0;
2473 target: "key";
2474 after: "key2";
2475 }
2476 program { name: "key2";
2477 action: STATE_SET "on" 0.0;
2478 target: "key";
2479 after: "key3";
2480 }
2481 program { name: "key3";
2482 action: STATE_SET "out" 0.0;
2483 transition: DECELERATE 0.3;
2484 target: "key";
2485 }
2486 }
2487 }
2488 }
2489//////////////////////////////////////////////////////////////////////////////
2490 //// an object to contain the selection tool used for selecting tabs (with
2491 //// a glow grid of terms
2492 group { name: "terminology/sel/base";
2493 images {
2494 image: "pm_overlay.png" COMP;
2495 image: "pm_fill.png" COMP;
2496 image: "bg_shadow.png" COMP;
2497 image: "inset_shadow.png" COMP;
2498 }
2499 parts {
2500 ////////////////////////////////////////////////////////////////////
2501 // background and shadows
2502 part { name: "shadow";
2503 mouse_events: 0;
2504 description { state: "default" 0.0;
2505 image.normal: "bg_shadow.png";
2506 fill.smooth: 0;
2507 }
2508 }
2509 part { name: "fill";
2510 mouse_events: 0;
2511 description { state: "default" 0.0;
2512 image.normal: "pm_fill.png";
2513 fill {
2514 size.relative: 0.0 0.0;
2515 size.offset: 64 64;
2516 }
2517 }
2518 description { state: "translucent" 0.0;
2519 inherit: "default" 0.0;
2520 visible: 0;
2521 }
2522 }
2523 program {
2524 signal: "translucent,on"; source: "terminology";
2525 action: STATE_SET "translucent" 0.0;
2526 target: "fill";
2527 }
2528 program {
2529 signal: "translucent,off"; source: "terminology";
2530 action: STATE_SET "default" 0.0;
2531 target: "fill";
2532 }
2533
2534 ////////////////////////////////////////////////////////////////////
2535 // content (where the grid of terms goes)
2536 part { name: "clip"; type: RECT;
2537 description { state: "default" 0.0;
2538 }
2539 }
2540 part { name: "terminology.content"; type: SWALLOW;
2541 clip_to: "clip";
2542 description { state: "default" 0.0;
2543 }
2544 }
2545
2546 ////////////////////////////////////////////////////////////////////
2547 // fancy stuff on top
2548 part { name: "overlay";
2549 mouse_events: 0;
2550 description { state: "default" 0.0;
2551 image.normal: "pm_overlay.png";
2552 color: 255 255 255 0;
2553 fill.smooth: 0;
2554 }
2555 description { state: "visible" 0.0;
2556 inherit: "default" 0.0;
2557 color: 255 255 255 255;
2558 }
2559 }
2560 part { name: "overlay_shadow"; mouse_events: 0;
2561 description { state: "default" 0.0;
2562 image.normal: "inset_shadow.png";
2563 image.border: 5 5 7 3;
2564 image.middle: 0;
2565 fill.smooth: 0;
2566 color: 255 255 255 0;
2567 }
2568 description { state: "visible" 0.0;
2569 inherit: "default" 0.0;
2570 color: 255 255 255 255;
2571 }
2572 }
2573 program {
2574 signal: "begin"; source: "terminology";
2575 action: STATE_SET "visible" 0.0;
2576 transition: DECELERATE 0.3;
2577 target: "overlay";
2578 target: "overlay_shadow";
2579 }
2580 program {
2581 signal: "end"; source: "terminology";
2582 action: STATE_SET "default" 0.0;
2583 transition: DECELERATE 0.3 CURRENT;
2584 target: "overlay";
2585 target: "overlay_shadow";
2586 }
2587 }
2588 }
2589
2590 group { name: "terminology/sel/item";
2591 images {
2592 image: "bg_bevel.png" COMP;
2593 image: "bg_shine.png" COMP;
2594 image: "bg_glint.png" COMP;
2595 image: "pm_shadow.png" COMP;
2596 image: "cr_glow.png" COMP;
2597 image: "bg_led_glow.png" COMP;
2598 image: "bg_led_base.png" COMP;
2599 image: "bg_led.png" COMP;
2600 image: "bg_led_strobe.png" COMP;
2601 }
2602 parts {
2603 ////////////////////////////////////////////////////////////////////
2604 // base background and selection image
2605 part { name: "clip"; type: RECT;
2606 description { state: "default" 0.0;
2607 rel1.to: "terminology.content";
2608 rel2.to: "terminology.content";
2609 color: 128 128 128 255;
2610 }
2611 description { state: "selected" 0.0;
2612 inherit: "default" 0.0;
2613 color: 255 255 255 255;
2614 }
2615 }
2616 part { name: "shadow";
2617 mouse_events: 0;
2618 description { state: "default" 0.0;
2619 fixed: 1 1;
2620 rel1.to: "terminology.content";
2621 rel2.to: "terminology.content";
2622 rel1.offset: -5 -5;
2623 rel2.offset: 4 4;
2624 image.normal: "pm_shadow.png";
2625 image.border: 64 64 64 64;
2626 image.border_scale_by: 0.1;
2627 color: 255 255 255 128;
2628 fill.smooth: 0;
2629 }
2630 description { state: "selected" 0.0;
2631 inherit: "default" 0.0;
2632 rel1.offset: -40 -40;
2633 rel2.offset: 39 39;
2634 image.border_scale_by: 1.0;
2635 color: 255 255 255 255;
2636 }
2637 }
2638 part { name: "glow";
2639 mouse_events: 0;
2640 description { state: "default" 0.0;
2641 rel1.to: "terminology.content";
2642 rel2.to: "terminology.content";
2643 rel1.offset: -4 -4;
2644 rel2.offset: 3 3;
2645 image {
2646 normal: "cr_glow.png";
2647 border: 9 9 9 9;
2648 }
2649 color: 51 153 255 0;
2650 }
2651 description { state: "selected" 0.0;
2652 inherit: "default" 0.0;
2653 color: 51 153 255 255;
2654 }
2655 }
2656
2657 ////////////////////////////////////////////////////////////////////
2658 // swallowed terminal content + bg inside it
2659 part { name: "base"; type: RECT;
2660 clip_to: "clip";
2661 description { state: "default" 0.0;
2662 color: 32 32 32 255;
2663 rel1.to: "terminology.content";
2664 rel2.to: "terminology.content";
2665 }
2666 }
2667 part { name: "terminology.content"; type: SWALLOW;
2668 clip_to: "clip";
2669 description { state: "default" 0.0;
2670 rel1.relative: 0.1 0.1;
2671 rel2.relative: 0.9 0.9;
2672 }
2673 description { state: "selected" 0.0;
2674 inherit: "default" 0.0;
2675 rel1.relative: 0.0 0.0;
2676 rel2.relative: 1.0 1.0;
2677 }
2678 }
2679 program {
2680 signal: "selected"; source: "terminology";
2681 action: STATE_SET "selected" 0.0;
2682 transition: DECELERATE 0.2 CURRENT;
2683 target: "terminology.content";
2684 target: "terminology.label";
2685 target: "shadow";
2686 target: "clip";
2687 target: "glow";
2688 }
2689 program {
2690 signal: "selected,start"; source: "terminology";
2691 action: STATE_SET "selected" 0.0;
2692 target: "terminology.content";
2693 target: "terminology.label";
2694 target: "shadow";
2695 target: "clip";
2696 target: "glow";
2697 }
2698 program {
2699 signal: "unselected"; source: "terminology";
2700 action: STATE_SET "default" 0.0;
2701 transition: DECELERATE 0.4 CURRENT;
2702 target: "terminology.content";
2703 target: "terminology.label";
2704 target: "shadow";
2705 target: "clip";
2706 target: "glow";
2707 }
2708
2709 ////////////////////////////////////////////////////////////////////
2710 // fancy stuff over the top of the terminal for shading and labelling
2711 part { name: "overlay";
2712 mouse_events: 0;
2713 description { state: "default" 0.0;
2714 fixed: 1 1;
2715 rel1.to: "terminology.content";
2716 rel2.to: "terminology.content";
2717 image.normal: "pm_overlay.png";
2718 fill.smooth: 0;
2719 }
2720 }
2721 part { name: "bevel";
2722 mouse_events: 0;
2723 description { state: "default" 0.0;
2724 fixed: 1 1;
2725 rel1.to: "terminology.content";
2726 rel2.to: "terminology.content";
2727 image.normal: "bg_bevel.png";
2728 image.border: 3 3 5 3;
2729 image.middle: 0;
2730 fill.smooth: 0;
2731 }
2732 }
2733 part { name: "terminology.label"; type: TEXT; mouse_events: 0;
2734 effect: GLOW;
2735 scale: 1;
2736 description { state: "default" 0.0;
2737 rel1.to: "terminology.content";
2738 rel2.to: "terminology.content";
2739 color: 51 153 255 255;
2740 color2: 51 153 255 24;
2741 color3: 51 153 255 18;
2742 align: 0.5 1.0;
2743 text { font: "Sans"; size: 10;
2744 align: 0.5 1.0;
2745 min: 0 1;
2746 }
2747 }
2748 description { state: "selected" 0.0;
2749 inherit: "default" 0.0;
2750 color: 255 255 255 255;
2751 color2: 51 153 255 128;
2752 color3: 51 153 255 20;
2753 }
2754 }
2755 part { name: "clip2"; type: RECT;
2756 description { state: "default" 0.0;
2757 rel1.to: "terminology.content";
2758 rel2.to: "terminology.content";
2759 }
2760 }
2761
2762 ////////////////////////////////////////////////////////////////////
2763 // fancy stuff on top
2764 part { name: "glint";
2765 mouse_events: 0;
2766 clip_to: "clip2";
2767 description { state: "default" 0.0;
2768 fixed: 1 1;
2769 min: 79 5;
2770 max: 79 5;
2771 rel1 {
2772 to: "terminology.content";
2773 relative: 0.0 0.0;
2774 offset: 0 0;
2775 }
2776 rel2 {
2777 to: "terminology.content";
2778 relative: 1.0 0.0;
2779 offset: -1 0;
2780 }
2781 image.normal: "bg_glint.png";
2782 }
2783 }
2784 part { name: "shine";
2785 mouse_events: 0;
2786 clip_to: "clip2";
2787 description { state: "default" 0.0;
2788 fixed: 1 1;
2789 rel1.to: "terminology.content";
2790 rel2.to: "terminology.content";
2791 image.normal: "bg_shine.png";
2792 fill.smooth: 0;
2793 align: 0.5 0.0;
2794 aspect: (255/120) (255/120);
2795 aspect_preference: HORIZONTAL;
2796 }
2797 }
2798
2799 ////////////////////////////////////////////////////////////////////
2800 // visual bell - spinning red siren light
2801 part { name: "bell_glow";
2802 mouse_events: 0;
2803 description { state: "default" 0.0;
2804 fixed: 1 1;
2805 visible: 0;
2806 color: 255 255 255 0;
2807 rel1.to: "bell_base";
2808 rel2.to: "bell_base";
2809 min: 200 200;
2810 fill.smooth: 0;
2811 image.normal: "bg_led_glow.png";
2812 }
2813 description { state: "visible" 0.0;
2814 inherit: "default" 0.0;
2815 visible: 1;
2816 color: 255 255 255 255;
2817 }
2818 }
2819 part { name: "bell_base";
2820 mouse_events: 0;
2821 description { state: "default" 0.0;
2822 fixed: 1 1;
2823 visible: 0;
2824 color: 255 255 255 0;
2825 min: 32 32;
2826 max: 32 32;
2827 rel1.to: "terminology.content";
2828 rel2.to: "terminology.content";
2829 align: 1.0 1.0;
2830 image.normal: "bg_led_base.png";
2831 }
2832 description { state: "visible" 0.0;
2833 inherit: "default" 0.0;
2834 visible: 1;
2835 color: 255 255 255 255;
2836 }
2837 }
2838 part { name: "bell";
2839 mouse_events: 0;
2840 description { state: "default" 0.0;
2841 fixed: 1 1;
2842 visible: 0;
2843 color: 255 255 255 0;
2844 rel1.to: "bell_base";
2845 rel2.to: "bell_base";
2846 image.normal: "bg_led.png";
2847 }
2848 description { state: "visible" 0.0;
2849 inherit: "default" 0.0;
2850 visible: 1;
2851 color: 255 255 255 255;
2852 }
2853 }
2854 part { name: "bell_strobe";
2855 mouse_events: 0;
2856 description { state: "default" 0.0;
2857 fixed: 1 1;
2858 visible: 0;
2859 color: 255 255 255 0;
2860 rel1.to: "bell";
2861 rel2.to: "bell";
2862 image.normal: "bg_led_strobe.png";
2863 map {
2864 on: 1;
2865 smooth: 1;
2866 rotation.center: "bell";
2867 }
2868 }
2869 description { state: "spin" 0.0;
2870 inherit: "default" 0.0;
2871 visible: 1;
2872 color: 255 255 255 255;
2873 map.rotation.z: 36.0;
2874 }
2875 description { state: "spin_done" 0.0;
2876 inherit: "spin" 0.0;
2877 map.rotation.z: 720.0;
2878 }
2879 description { state: "spin_done2" 0.0;
2880 inherit: "spin" 0.0;
2881 map.rotation.z: 1440.0;
2882 }
2883 }
2884 program {
2885 signal: "bell"; source: "terminology";
2886 action: STATE_SET "default" 0.0;
2887 target: "bell_base";
2888 target: "bell";
2889 target: "bell_strobe";
2890 target: "bell_glow";
2891 after: "bell";
2892 }
2893 program { name: "bell";
2894 action: STATE_SET "visible" 0.0;
2895 target: "bell_base";
2896 target: "bell_glow";
2897 after: "bell2";
2898 }
2899 program { name: "bell2";
2900 action: STATE_SET "visible" 0.0;
2901 transition: DECELERATE 0.1;
2902 target: "bell";
2903 target: "bell_glow";
2904 after: "bell3";
2905 }
2906 program { name: "bell3";
2907 action: STATE_SET "spin" 0.0;
2908 transition: LINEAR 0.1;
2909 target: "bell_strobe";
2910 after: "bell4.2";
2911 }
2912 program { name: "bell4.2";
2913 action: STATE_SET "spin_done" 0.0;
2914 transition: LINEAR 0.9;
2915 target: "bell_strobe";
2916 after: "bell4.3";
2917 }
2918 program { name: "bell4.3";
2919 action: STATE_SET "spin_done2" 0.0;
2920 transition: LINEAR 1.0;
2921 target: "bell_strobe";
2922 after: "bell4.4";
2923 }
2924 program { name: "bell4.4";
2925 action: STATE_SET "spin_done" 0.0;
2926 target: "bell_strobe";
2927 after: "bell4.3";
2928 }
2929 }
2930 }
2931
2932//////////////////////////////////////////////////////////////////////////////
2933 //// an object overlayd on text that is a link
2934 group { name: "terminology/link";
2935 images {
2936 image: "lk_bottom.png" COMP;
2937 image: "lk_left.png" COMP;
2938 image: "lk_right.png" COMP;
2939 }
2940 parts {
2941 part { name: "bottom";
2942 mouse_events: 0;
2943 description { state: "default" 0.0;
2944 image.normal: "lk_bottom.png";
2945 image.border: 9 9 0 0;
2946 align: 0.5 1.0;
2947 min: 20 8;
2948 rel1.offset: -6 0;
2949 rel1.relative: 0.0 1.0;
2950 rel2.offset: 5 0;
2951 color: 51 153 255 255;
2952 fill.smooth: 0;
2953 }
2954 }
2955 part { name: "l";
2956 mouse_events: 0;
2957 description { state: "default" 0.0;
2958 image.normal: "lk_left.png";
2959 align: 0.0 1.0;
2960 min: 4 4;
2961 rel1.offset: 16 -1;
2962 rel1.relative: 0.0 1.0;
2963 rel2.offset: 16 -1;
2964 rel2.relative: 0.0 1.0;
2965 color: 51 153 255 0;
2966 }
2967 description { state: "out" 0.0;
2968 inherit: "default" 0.0;
2969 min: 16 16;
2970 rel1.offset: -10 -1;
2971 rel2.offset: -10 -1;
2972 color: 51 153 255 255;
2973 }
2974 description { state: "out2" 0.0;
2975 inherit: "default" 0.0;
2976 min: 32 32;
2977 rel1.offset: -26 -1;
2978 rel2.offset: -26 -1;
2979 color: 51 153 255 0;
2980 }
2981 }
2982 part { name: "r";
2983 mouse_events: 0;
2984 description { state: "default" 0.0;
2985 image.normal: "lk_right.png";
2986 align: 1.0 1.0;
2987 min: 4 4;
2988 rel1.offset: -15 0;
2989 rel1.relative: 1.0 1.0;
2990 rel2.offset: -15 0;
2991 rel2.relative: 1.0 1.0;
2992 color: 51 153 255 0;
2993 }
2994 description { state: "out" 0.0;
2995 inherit: "default" 0.0;
2996 min: 16 16;
2997 rel1.offset: 9 -1;
2998 rel2.offset: 9 -1;
2999 color: 51 153 255 255;
3000 }
3001 description { state: "out2" 0.0;
3002 inherit: "default" 0.0;
3003 min: 32 32;
3004 rel1.offset: 25 -1;
3005 rel2.offset: 25 -1;
3006 color: 51 153 255 0;
3007 }
3008 }
3009 part { name: "event"; type: RECT;
3010 mouse_events: 1;
3011 repeat_events: 1;
3012 description { state: "default" 0.0;
3013 color: 0 0 0 0;
3014 }
3015 }
3016 programs {
3017 program { name: "show";
3018 signal: "show"; source: "";
3019 action: STATE_SET "out" 0.0;
3020 transition: LINEAR 0.3;
3021 target: "l";
3022 target: "r";
3023 after: "show2";
3024 }
3025 program { name: "show2";
3026 action: STATE_SET "default" 0.0;
3027 action: STATE_SET "out2" 0.0;
3028 transition: LINEAR 0.3;
3029 target: "l";
3030 target: "r";
3031 after: "show3";
3032 }
3033 program { name: "show3";
3034 action: STATE_SET "default" 0.0;
3035 target: "l";
3036 target: "r";
3037 after: "show";
3038 }
3039 }
3040 }
3041 }
3042
3043//////////////////////////////////////////////////////////////////////////////
3044 //// the multimedia controls
3045 group { name: "terminology/mediabusy";
3046 images {
3047 image: "media_busy_knob.png" COMP;
3048 image: "media_busy_spinner.png" COMP;
3049 image: "media_busy_progress.png" COMP;
3050 }
3051 script {
3052 public message(Msg_Type:type, id, ...) {
3053 if ((type == MSG_FLOAT) && (id == 1)) {
3054 new Float:val;
3055 val = getfarg(2);
3056 // val 0.0 -. 1.0 percentage
3057 custom_state(PART:"progress", "default", 0.0);
3058 set_state_val(PART:"progress", STATE_REL2, val, 1.0);
3059 set_state(PART:"progress", "custom", 0.0);
3060 }
3061 }
3062 }
3063 parts {
3064 part { name: "progress_area"; type: SPACER;
3065 mouse_events: 0;
3066 description { state: "default" 0.0;
3067 fixed: 1 1;
3068 rel2.to_x: "knob";
3069 rel2.relative: 0.0 1.0;
3070 min: 10 40;
3071 max: 99999 40;
3072 align: 0.0 1.0;
3073 }
3074 }
3075 part { name: "progress";
3076 mouse_events: 0;
3077 clip_to: "fade";
3078 description { state: "default" 0.0;
3079 fixed: 1 1;
3080 rel1.to: "progress_area";
3081 rel2.to: "progress_area";
3082 rel2.relative: 0.0 1.0;
3083 color: 51 153 255 255;
3084 image.normal: "media_busy_progress.png";
3085 image.border: 5 5 0 0;
3086 min: 10 40;
3087 align: 0.0 1.0;
3088 }
3089 }
3090 part { name: "fade"; type: RECT;
3091 mouse_events: 0;
3092 description { state: "default" 0.0;
3093 color: 255 255 255 0;
3094 visible: 0;
3095 }
3096 description { state: "visible" 0.0;
3097 inherit: "default" 0.0;
3098 visible: 1;
3099 color: 255 255 255 255;
3100 }
3101 }
3102 part { name: "knob";
3103 clip_to: "fade";
3104 mouse_events: 0;
3105 description { state: "default" 0.0;
3106 fixed: 1 1;
3107 image.normal: "media_busy_knob.png";
3108 min: 40 40;
3109 max: 40 40;
3110 align: 1.0 1.0;
3111 }
3112 }
3113 part { name: "knob_spinner";
3114 clip_to: "fade";
3115 mouse_events: 0;
3116 description { state: "default" 0.0;
3117 fixed: 1 1;
3118 color: 51 153 255 255;
3119 rel1.to: "knob";
3120 rel2.to: "knob";
3121 image.normal: "media_busy_spinner.png";
3122 map {
3123 on: 1;
3124 smooth: 1;
3125 rotation.center: "knob";
3126 }
3127 }
3128 description { state: "spin" 0.0;
3129 inherit: "default" 0.0;
3130 visible: 1;
3131 map.rotation.z: 360;
3132 }
3133 }
3134 }
3135 programs {
3136 program {
3137 signal: "busy"; source: "terminology";
3138 action: STATE_SET "visible" 0.0;
3139 transition: DECELERATE 0.5;
3140 target: "fade";
3141 }
3142 program { name: "spin1";
3143 signal: "busy"; source: "terminology";
3144 action: STATE_SET "spin" 0.0;
3145 transition: LINEAR 0.5;
3146 target: "knob_spinner";
3147 after: "spin2";
3148 }
3149 program { name: "spin2";
3150 action: STATE_SET "default" 0.0;
3151 target: "knob_spinner";
3152 after: "spin1";
3153 }
3154// program { name: "downloading";
3155// signal: "busy";
3156// source: "terminology";
3157// action: STATE_SET "default" 0.0;
3158// }
3159 program {
3160 signal: "done"; source: "terminology";
3161 action: STATE_SET "default" 0.0;
3162 transition: DECELERATE 1.5;
3163 target: "fade";
3164 }
3165 }
3166 }
3167//////////////////////////////////////////////////////////////////////////////
3168 //// the multimedia controls
3169 group { name: "terminology/mediactrl";
3170 images {
3171 image: "media_bg.png" COMP;
3172 image: "media_play.png" COMP;
3173 image: "media_stop.png" COMP;
3174 image: "media_pause.png" COMP;
3175 image: "media_line.png" COMP;
3176 image: "media_knob_vol.png" COMP;
3177 image: "media_knob_pos.png" COMP;
3178 }
3179 parts {
3180 part { name: "media_clip"; type: RECT;
3181 mouse_events: 0;
3182 description { state: "default" 0.0;
3183 rel1.to: "media_bg";
3184 rel2.to: "media_bg";
3185 }
3186 }
3187 part { name: "media_bg";
3188 clip_to: "media_clip";
3189 description { state: "default" 0.0;
3190 image.normal: "media_bg.png";
3191 image.border: 11 11 11 11;
3192 min: 24 24;
3193 max: 24 24;
3194 align: 1.0 0.0;
3195 }
3196 description { state: "expanded" 0.0;
3197 inherit: "default" 0.0;
3198 min: 216 24;
3199 max: 216 24;
3200 }
3201 }
3202 part { name: "play";
3203 mouse_events: 1;
3204 repeat_events: 1;
3205 clip_to: "media_clip";
3206 description { state: "default" 0.0;
3207 image.normal: "media_pause.png";
3208 max: 24 24;
3209 align: 1.0 0.0;
3210 }
3211 description { state: "paused" 0.0;
3212 inherit: "default" 0.0;
3213 image.normal: "media_play.png";
3214 }
3215 }
3216 part { name: "stop";
3217 mouse_events: 1;
3218 repeat_events: 1;
3219 clip_to: "media_clip";
3220 description { state: "default" 0.0;
3221 image.normal: "media_stop.png";
3222 max: 24 24;
3223 rel1.to: "play";
3224 rel2.to: "play";
3225 rel1.offset: -16 0;
3226 rel2.offset: -16 0;
3227 }
3228 }
3229 part { name: "posline";
3230 mouse_events: 0;
3231 repeat_events: 1;
3232 clip_to: "media_clip";
3233 description { state: "default" 0.0;
3234 image.normal: "media_line.png";
3235 image.border: 15 15 0 0;
3236 min: 90 14;
3237 max: 90 14;
3238 rel1.to: "stop";
3239 rel2.to: "stop";
3240 rel1.offset: -25 0;
3241 rel2.offset: -90 0;
3242 }
3243 }
3244 part { name: "terminology.posdrag";
3245 mouse_events: 1;
3246 repeat_events: 1;
3247 clip_to: "media_clip";
3248 dragable {
3249 confine: "posline";
3250 x: 1 1 0;
3251 y: 0 0 0;
3252 }
3253 description { state: "default" 0.0;
3254 image.normal: "media_knob_pos.png";
3255 min: 14 14;
3256 max: 14 14;
3257 }
3258 description { state: "muted" 0.0;
3259 visible: 0;
3260 }
3261 }
3262 part { name: "volline";
3263 mouse_events: 0;
3264 repeat_events: 1;
3265 clip_to: "media_clip";
3266 description { state: "default" 0.0;
3267 image.normal: "media_line.png";
3268 image.border: 15 15 0 0;
3269 min: 60 14;
3270 max: 60 14;
3271 rel1 {
3272 to: "posline";
3273 offset: -25 0;
3274 }
3275 rel2 {
3276 to: "posline";
3277 relative: 0.0 1.0;
3278 offset: -60 0;
3279 }
3280 }
3281 }
3282 part { name: "terminology.voldrag"; type: IMAGE;
3283 mouse_events: 1;
3284 repeat_events: 1;
3285 clip_to: "media_clip";
3286 dragable {
3287 confine: "volline";
3288 x: 1 1 0;
3289 y: 0 0 0;
3290 }
3291 description { state: "default" 0.0;
3292 image.normal: "media_knob_vol.png";
3293 min: 14 14;
3294 max: 14 14;
3295 }
3296 description { state: "muted" 0.0;
3297 visible: 0;
3298 }
3299 }
3300 }
3301 programs {
3302 program {
3303 signal: "mouse,in"; source: "media_bg";
3304 action: STATE_SET "expanded" 0.0;
3305 transition: SINUSOIDAL 0.4 CURRENT;
3306 target: "media_bg";
3307 }
3308 program {
3309 signal: "mouse,out"; source: "media_bg";
3310 action: STATE_SET "default" 0.0;
3311 transition: SINUSOIDAL 0.4 CURRENT;
3312 target: "media_bg";
3313 }
3314 program {
3315 signal: "mouse,up,*"; source: "play";
3316 filter: "play" "default";
3317 action: SIGNAL_EMIT "pause" "";
3318 }
3319 program {
3320 signal: "mouse,up,1"; source: "play";
3321 filter: "play" "paused";
3322 action: SIGNAL_EMIT "play" "";
3323 }
3324 program {
3325 signal: "mouse,up,1"; source: "stop";
3326 action: SIGNAL_EMIT "stop" "";
3327 }
3328 program {
3329 signal: "pause,set"; source: "terminology";
3330 action: STATE_SET "paused" 0.0;
3331 target: "play";
3332 }
3333 program {
3334 signal: "play,set"; source: "terminology";
3335 action: STATE_SET "default" 0.0;
3336 target: "play";
3337 }
3338 program {
3339 signal: "mute,set"; source: "terminology";
3340 action: STATE_SET "muted" 0.0;
3341 target: "terminology.voldrag";
3342 }
3343 program {
3344 signal: "mute,unset"; source: "terminology";
3345 action: STATE_SET "default" 0.0;
3346 target: "terminology.voldrag";
3347 }
3348 }
3349 }
3350
3351#define ICON(Grp, Img) \
3352 group { name: "elm/icon/"##Grp##"/default"; min: 10 10; max: 80 80; \
3353 images.image: Img COMP; \
3354 parts { part { name: "base"; description { state: "default" 0.0; \
3355 aspect: 1.0 1.0; aspect_preference: BOTH; image.normal: Img; \
3356 } } } }
3357 ICON("new", "icon_new.png");
3358 ICON("split-h", "icon_split_h.png");
3359 ICON("split-v", "icon_split_v.png");
3360 ICON("close", "icon_close.png");
3361 ICON("copy", "icon_copy.png");
3362 ICON("paste", "icon_paste.png");
3363 ICON("settings", "icon_settings.png");
3364 ICON("about", "icon_about.png");
3365#undef ICON
3366
3367//////////////////////////////////////////////////////////////////////////////
3368 //// the about box content image
3369 group { name: "terminology/about";
3370 images {
3371 image: "ab_base.png" COMP;
3372 image: "ab_shell.png" COMP;
3373 }
3374 styles {
3375 style { name: "aboutstyle";
3376 base: "font=Sans font_size=8 color=#3f1 style=glow glow2_color=#3f13 glow_color=#3f11 wrap=word";
3377 tag: "b" "+ color=#8f8 glow2_color=#3f15 glow_color=#3f12";
3378 }
3379 }
3380 parts {
3381 part { name: "base";
3382 mouse_events: 0;
3383 description { state: "default" 0.0;
3384 rel1 {
3385 relative: (39/198) (27/198);
3386 to: "shell";
3387 }
3388 rel2 {
3389 relative: (151/198) (115/198);
3390 to: "shell";
3391 }
3392 image.normal: "ab_base.png";
3393 }
3394 }
3395 part { name: "baseclip"; type: RECT;
3396 description { state: "default" 0.0;
3397 color: 255 255 255 255;
3398 rel1.to: "base";
3399 rel2.to: "base";
3400 }
3401 }
3402 part { name: "terminology.text"; type: TEXTBLOCK;
3403 clip_to: "baseclip";
3404 mouse_events: 1;
3405 description { state: "default" 0.0;
3406 fixed: 1 1;
3407 align: 0.5 0.0;
3408 max: 10000 10000;
3409 rel1 {
3410 to: "base";
3411 relative: 0.08 1.0;
3412 }
3413 rel2 {
3414 to: "base";
3415 relative: 0.97 1.0;
3416 }
3417 text {
3418 style: "aboutstyle";
3419 text: "Hello world.<br>This is <b>Terminology</b>, your friendly neighbourhood terminal.<br><br>This needs more text to test vertical scrolling to see if the animation works right.<br>I hope this will be enough now.";
3420 min: 0 1;
3421 }
3422 }
3423 description { state: "up" 0.0;
3424 inherit: "default" 0.0;
3425 align: 0.5 1.0;
3426 rel1.relative: 0.08 0.0;
3427 rel2.relative: 0.97 0.0;
3428 }
3429 }
3430 part { name: "shell";
3431 description { state: "default" 0.0;
3432 max: 198 198;
3433 aspect: 1.0 1.0;
3434 aspect_preference: BOTH;
3435 image.normal: "ab_shell.png";
3436 }
3437 }
3438 }
3439 programs {
3440 program {
3441 signal: "begin"; source: "terminology";
3442 action: ACTION_STOP;
3443 target: "show";
3444 target: "show2";
3445 after: "begin2";
3446 }
3447 program { name: "begin2";
3448 action: STATE_SET "default" 0.0;
3449 target: "terminology.text";
3450 after: "show";
3451 }
3452 program { name: "show";
3453 action: STATE_SET "up" 0.0;
3454 transition: LINEAR 60.0;
3455 target: "terminology.text";
3456 after: "show2";
3457 }
3458 program { name: "show2";
3459 action: STATE_SET "default" 0.0;
3460 target: "terminology.text";
3461 after: "show";
3462 }
3463 }
3464 }
3465
3466//////////////////////////////////////////////////////////////////////////////
3467 //// used in the font selection dialog to give a base for black text
3468 //// previews so they are always visible
3469 group { name: "terminology/fontpreview";
3470 images {
3471 image: "fn_shadow.png" COMP;
3472 }
3473 parts {
3474 part { name: "shadow";
3475 mouse_events: 0;
3476 description { state: "default" 0.0;
3477 rel1 {
3478 offset: -2 -1;
3479 to: "base";
3480 }
3481 rel2 {
3482 offset: 1 2;
3483 to: "base";
3484 }
3485 image {
3486 normal: "fn_shadow.png";
3487 border: 5 5 5 5;
3488 }
3489 fill.smooth: 0;
3490 }
3491 }
3492 part { name: "base"; type: RECT;
3493 mouse_events: 1;
3494 description { state: "default" 0.0;
3495 color: 255 255 255 255;
3496 rel1.offset: 2 2;
3497 rel2.offset: -3 -3;
3498 }
3499 }
3500 part { name: "clip"; type: RECT;
3501 description { state: "default" 0.0;
3502 rel1.to: "base";
3503 rel2.to: "base";
3504 color: 255 255 255 255;
3505 }
3506 }
3507 part { name: "terminology.text.preview"; type: SWALLOW;
3508 clip_to: "clip";
3509 description { state: "default" 0.0;
3510 rel1 {
3511 to: "base";
3512 offset: 1 1;
3513 }
3514 rel2 {
3515 to: "base";
3516 offset: -2 -2;
3517 }
3518 }
3519 }
3520 }
3521 }
3522}
diff --git a/data/themes/images/TRIAB-01.png b/data/themes/images/TRIAB-01.png
new file mode 100644
index 0000000..0b5ad6c
--- /dev/null
+++ b/data/themes/images/TRIAB-01.png
Binary files differ
diff --git a/data/themes/images/TRIAB-02.png b/data/themes/images/TRIAB-02.png
new file mode 100644
index 0000000..78d6e68
--- /dev/null
+++ b/data/themes/images/TRIAB-02.png
Binary files differ
diff --git a/data/themes/images/TRIAB-03.png b/data/themes/images/TRIAB-03.png
new file mode 100644
index 0000000..2fd39e9
--- /dev/null
+++ b/data/themes/images/TRIAB-03.png
Binary files differ
diff --git a/data/themes/images/TRIAB-04.png b/data/themes/images/TRIAB-04.png
new file mode 100644
index 0000000..e587614
--- /dev/null
+++ b/data/themes/images/TRIAB-04.png
Binary files differ
diff --git a/data/themes/images/TRIAB-05.png b/data/themes/images/TRIAB-05.png
new file mode 100644
index 0000000..34967a1
--- /dev/null
+++ b/data/themes/images/TRIAB-05.png
Binary files differ
diff --git a/data/themes/images/TRIAB-06.png b/data/themes/images/TRIAB-06.png
new file mode 100644
index 0000000..f6e91c5
--- /dev/null
+++ b/data/themes/images/TRIAB-06.png
Binary files differ
diff --git a/data/themes/images/TRIAB-07.png b/data/themes/images/TRIAB-07.png
new file mode 100644
index 0000000..918f3fa
--- /dev/null
+++ b/data/themes/images/TRIAB-07.png
Binary files differ
diff --git a/data/themes/images/TRIAB-08.png b/data/themes/images/TRIAB-08.png
new file mode 100644
index 0000000..22fab75
--- /dev/null
+++ b/data/themes/images/TRIAB-08.png
Binary files differ
diff --git a/data/themes/images/TRIAB-09.png b/data/themes/images/TRIAB-09.png
new file mode 100644
index 0000000..de6ca65
--- /dev/null
+++ b/data/themes/images/TRIAB-09.png
Binary files differ
diff --git a/data/themes/images/TRIAB-10.png b/data/themes/images/TRIAB-10.png
new file mode 100644
index 0000000..8f79950
--- /dev/null
+++ b/data/themes/images/TRIAB-10.png
Binary files differ
diff --git a/data/themes/images/TRIAB-11.png b/data/themes/images/TRIAB-11.png
new file mode 100644
index 0000000..f0fbaf3
--- /dev/null
+++ b/data/themes/images/TRIAB-11.png
Binary files differ
diff --git a/data/themes/images/TRIAB-12.png b/data/themes/images/TRIAB-12.png
new file mode 100644
index 0000000..9339e14
--- /dev/null
+++ b/data/themes/images/TRIAB-12.png
Binary files differ