summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Houston <stephen@localhost.localdomain>2018-02-27 11:48:10 -0600
committerStephen Houston <stephen@localhost.localdomain>2018-02-27 11:48:10 -0600
commit14b02ca5431f4b932970d2dc59f9cbafbeed9b37 (patch)
tree84e7072d6036471599f57401915e3d8db8c1d2a0
parent32aef1a37f8a19bd7a7b5b48dbcd4aa20dfbda12 (diff)
Remove unused file.
-rw-r--r--theme/wireless.edc_backup958
1 files changed, 0 insertions, 958 deletions
diff --git a/theme/wireless.edc_backup b/theme/wireless.edc_backup
deleted file mode 100644
index 1d6f376..0000000
--- a/theme/wireless.edc_backup
+++ /dev/null
@@ -1,958 +0,0 @@
1collections {
2
3group { name: "wireless/ethernet"; nomouse;
4 images.image: "slot_horiz_top.png" COMP;
5 images.image: "slot_horiz_bottom.png" COMP;
6 images.image: "eth.png" COMP;
7 images.image: "exlclam.png" COMP;
8 images.image: "hole_tiny.png" COMP;
9 images.image: "led_tiny_orange.png" COMP;
10 images.image: "led_tiny_green.png" COMP;
11 images.image: "lock_locked.png" COMP;
12 images.image: "lock_insecure.png" COMP;
13
14 script {
15 public message(Msg_Type:type, id, ...) {
16 if ((type == MSG_INT_SET) && (id == 1)) {
17 new state = getarg(2);
18 if ((state == 1)) {
19 set_state(PART:"led", "default", 0.0);
20 run_program(PROGRAM:"connecting");
21 return;
22 }
23 else if ((state == 2)) { set_state(PART:"led", "connected", 0.0); }
24 else if ((state == 3)) { set_state(PART:"led", "online", 0.0); }
25 else { set_state(PART:"led", "default", 0.0); }
26 }
27 }
28 }
29 parts {
30 part { name: "slot_bottom";
31 description { state: "default" 0.0;
32 rel1.to: "slot";
33 rel2.relative: 1.0 0.5;
34 rel2.to: "slot";
35 min: 0 3;
36 image.normal: "slot_horiz_bottom.png";
37 fixed: 0 1;
38 }
39 }
40///////////////////////
41 part { name: "exclam_base";
42 clip_to: "clip_exclam";
43 description { state: "default" 0.0;
44 aspect: (71/144) (71/144); aspect_preference: BOTH;
45 align: 0.5 1.0;
46 rel2.relative: 1.0 0.5;
47 rel2.to_y: "slot";
48 image.normal: "exlclam.png";
49 }
50 }
51///////////////////////
52 part { name: "eth_base";
53 clip_to: "clip_eth";
54 description { state: "default" 0.0;
55 aspect: (60/144) (60/144); aspect_preference: BOTH;
56 align: 0.5 1.0;
57 rel2.relative: 1.0 0.5;
58 rel2.to_y: "slot";
59 image.normal: "eth.png";
60 }
61 }
62 part { name: "slot";
63 description { state: "default" 0.0;
64 rel1.offset: 0 -1;
65 rel1.relative: (21/160) 1.0;
66 rel2.offset: -1 -1;
67 rel2.relative: (140/160) 1.0;
68 align: 0.5 1.0;
69 min: 0 6;
70 image.normal: "slot_horiz_top.png";
71 fixed: 0 1;
72 }
73 }
74 part { name: "hole";
75 description { state: "default" 0.0;
76 rel1.offset: -4 -4;
77 rel1.relative: 1.0 1.0;
78 rel2.offset: -4 -4;
79 align: 1.0 1.0;
80 min: 4 4;
81 max: 4 4;
82 image.normal: "hole_tiny.png";
83 fixed: 1 1;
84 }
85 }
86 part { name: "clip_exclam"; type: RECT;
87 description { state: "default" 0.0;
88 visible: 1;
89 }
90 description { state: "eth" 0.0;
91 visible: 0;
92 }
93 }
94 part { name: "clip_eth"; type: RECT;
95 description { state: "default" 0.0;
96 visible: 0;
97 }
98 description { state: "eth" 0.0;
99 visible: 1;
100 }
101 }
102 part { name: "led";
103 description { state: "default" 0.0;
104 rel1.to: "hole";
105 rel2.to: "hole";
106 min: 10 10;
107 max: 10 10;
108 image.normal: "led_tiny_orange.png";
109 fixed: 1 1;
110 visible: 0;
111 }
112 description { state: "connected" 0.0;
113 inherit: "default" 0.0;
114 image.normal: "led_tiny_orange.png";
115 visible: 1;
116 }
117 description { state: "online" 0.0;
118 inherit: "default" 0.0;
119 image.normal: "led_tiny_green.png";
120 visible: 1;
121 }
122 }
123 part { name: "event"; type: RECT; mouse;
124 description { state: "default" 0.0;
125 color: 0 0 0 0;
126 }
127 }
128 }
129
130 programs {
131 program { name: "connecting";
132 action: STATE_SET "connected" 0.0;
133 target: "led";
134 in: 0.3 0.0;
135 after: "connecting2";
136 }
137 program { name: "connecting2";
138 action: STATE_SET "default" 0.0;
139 target: "led";
140 in: 0.3 0.0;
141 after: "connecting";
142 }
143 target_group: "clips" "clip_exclam" "clip_eth";
144 program {
145 signal: "wireless,state,error"; source: "wireless";
146 action: STATE_SET "default" 0.0;
147 groups: "clips";
148 }
149 program {
150 signal: "wireless,state,default"; source: "wireless";
151 action: STATE_SET "eth" 0.0;
152 groups: "clips";
153 }
154 }
155}
156
157group { name: "wireless/wifi"; nomouse;
158 images.image: "slot_horiz_top.png" COMP;
159 images.image: "slot_horiz_bottom.png" COMP;
160 images.image: "wifi_shadow.png" COMP;
161 images.image: "wifi_base.png" COMP;
162 images.image: "wifi_sig_1.png" COMP;
163 images.image: "wifi_sig_2.png" COMP;
164 images.image: "wifi_sig_3.png" COMP;
165 images.image: "exlclam.png" COMP;
166 images.image: "hole_tiny.png" COMP;
167 images.image: "led_tiny_orange.png" COMP;
168 images.image: "led_tiny_green.png" COMP;
169 images.image: "lock_locked.png" COMP;
170 images.image: "lock_insecure.png" COMP;
171
172 script {
173 public message(Msg_Type:type, id, ...) {
174 if ((type == MSG_INT_SET) && (id == 1)) {
175 new state = getarg(2), signl = getarg(3);
176 if (state <= 1) {
177 set_state(PART:"wifi_1", "default", 0.0);
178 set_state(PART:"wifi_2", "default", 0.0);
179 set_state(PART:"wifi_3", "default", 0.0);
180 set_state(PART:"led", "default", 0.0);
181 }
182 if (state == 1) {
183 run_program(PROGRAM:"connecting");
184 run_program(PROGRAM:"connecting_wifi");
185 return;
186 }
187 stop_programs_on(PART:"led");
188 if (signl <= 14) {
189 set_state(PART:"wifi_1", "default", 0.0);
190 set_state(PART:"wifi_2", "default", 0.0);
191 set_state(PART:"wifi_3", "default", 0.0);
192 }
193 else if (signl <= 28) {
194 set_state(PART:"wifi_1", "partly", 0.0);
195 set_state(PART:"wifi_2", "default", 0.0);
196 set_state(PART:"wifi_3", "default", 0.0);
197 }
198 else if (signl <= 42) {
199 set_state(PART:"wifi_1", "visible", 0.0);
200 set_state(PART:"wifi_2", "default", 0.0);
201 set_state(PART:"wifi_3", "default", 0.0);
202 }
203 else if (signl <= 57) {
204 set_state(PART:"wifi_1", "visible", 0.0);
205 set_state(PART:"wifi_2", "partly", 0.0);
206 set_state(PART:"wifi_3", "default", 0.0);
207 }
208 else if (signl <= 71) {
209 set_state(PART:"wifi_1", "visible", 0.0);
210 set_state(PART:"wifi_2", "visible", 0.0);
211 set_state(PART:"wifi_3", "default", 0.0);
212 }
213 else if (signl <= 85) {
214 set_state(PART:"wifi_1", "visible", 0.0);
215 set_state(PART:"wifi_2", "visible", 0.0);
216 set_state(PART:"wifi_3", "partly", 0.0);
217 }
218 else {
219 set_state(PART:"wifi_1", "visible", 0.0);
220 set_state(PART:"wifi_2", "visible", 0.0);
221 set_state(PART:"wifi_3", "visible", 0.0);
222 }
223 if ((state == 2)) { set_state(PART:"led", "connected", 0.0); }
224 else if ((state == 3)) { set_state(PART:"led", "online", 0.0); }
225 else { set_state(PART:"led", "default", 0.0); }
226 }
227 }
228 }
229 parts {
230 part { name: "slot_bottom";
231 description { state: "default" 0.0;
232 rel1.to: "slot";
233 rel2.relative: 1.0 0.5;
234 rel2.to: "slot";
235 min: 0 3;
236 image.normal: "slot_horiz_bottom.png";
237 fixed: 0 1;
238 }
239 }
240///////////////////////
241 part { name: "exclam_base";
242 clip_to: "clip_exclam";
243 description { state: "default" 0.0;
244 aspect: (71/144) (71/144); aspect_preference: BOTH;
245 align: 0.5 1.0;
246 rel2.relative: 1.0 0.5;
247 rel2.to_y: "slot";
248 image.normal: "exlclam.png";
249 }
250 }
251///////////////////////
252 part { name: "wifi_shadow";
253 clip_to: "clip_wifi";
254 description { state: "default" 0.0;
255 aspect: (160/144) (160/144); aspect_preference: BOTH;
256 align: 0.5 1.0;
257 rel2.relative: 1.0 0.5;
258 rel2.to_y: "slot";
259 image.normal: "wifi_shadow.png";
260 }
261 }
262 part { name: "wifi_base";
263 clip_to: "clip_wifi";
264 description { state: "default" 0.0;
265 aspect: (160/144) (160/144); aspect_preference: BOTH;
266 align: 0.5 1.0;
267 rel2.relative: 1.0 0.5;
268 rel2.to_y: "slot";
269 image.normal: "wifi_base.png";
270 }
271 }
272 part { name: "wifi_1";
273 clip_to: "clip_wifi";
274 description { state: "default" 0.0;
275 rel1.to: "wifi_base";
276 rel2.to: "wifi_base";
277 image.normal: "wifi_sig_1.png";
278 visible: 0;
279 }
280 description { state: "partly" 0.0;
281 inherit: "default" 0.0;
282 color: 255 255 255 128;
283 visible: 1;
284 }
285 description { state: "visible" 0.0;
286 inherit: "default" 0.0;
287 visible: 1;
288 }
289 }
290 part { name: "wifi_2";
291 clip_to: "clip_wifi";
292 description { state: "default" 0.0;
293 rel1.to: "wifi_base";
294 rel2.to: "wifi_base";
295 image.normal: "wifi_sig_2.png";
296 visible: 0;
297 }
298 description { state: "partly" 0.0;
299 inherit: "default" 0.0;
300 color: 255 255 255 128;
301 visible: 1;
302 }
303 description { state: "visible" 0.0;
304 inherit: "default" 0.0;
305 visible: 1;
306 }
307 }
308 part { name: "wifi_3";
309 clip_to: "clip_wifi";
310 description { state: "default" 0.0;
311 rel1.to: "wifi_base";
312 rel2.to: "wifi_base";
313 image.normal: "wifi_sig_3.png";
314 visible: 0;
315 }
316 description { state: "partly" 0.0;
317 inherit: "default" 0.0;
318 color: 255 255 255 128;
319 visible: 1;
320 }
321 description { state: "visible" 0.0;
322 inherit: "default" 0.0;
323 visible: 1;
324 }
325 }
326 part { name: "lock";
327 clip_to: "clip_wifi";
328 description { state: "default" 0.0; hid;
329 aspect: (160/144) (160/144); aspect_preference: BOTH;
330 align: 0.5 1.0;
331 rel2.relative: 1.0 0.5;
332 rel2.to_y: "slot";
333 image.normal: "lock_locked.png";
334 link.base: "wireless,state,unsecured" "wireless";
335 }
336 desc { "insecure"; inherit; vis;
337 image.normal: "lock_insecure.png";
338 link.base: "wireless,state,insecure" "wireless";
339 }
340 desc { "secure"; inherit; vis;
341 link.base: "wireless,state,secure" "wireless";
342 }
343 }
344//////////////////////////
345 part { name: "slot";
346 description { state: "default" 0.0;
347 rel1.offset: 0 -1;
348 rel1.relative: (21/160) 1.0;
349 rel2.offset: -1 -1;
350 rel2.relative: (140/160) 1.0;
351 align: 0.5 1.0;
352 min: 0 6;
353 image.normal: "slot_horiz_top.png";
354 fixed: 0 1;
355 }
356 }
357 part { name: "hole";
358 description { state: "default" 0.0;
359 rel1.offset: -4 -4;
360 rel1.relative: 1.0 1.0;
361 rel2.offset: -4 -4;
362 align: 1.0 1.0;
363 min: 4 4;
364 max: 4 4;
365 image.normal: "hole_tiny.png";
366 fixed: 1 1;
367 }
368 }
369 part { name: "clip_exclam"; type: RECT;
370 description { state: "default" 0.0;
371 visible: 1;
372 }
373 description { state: "wifi" 0.0;
374 visible: 0;
375 }
376 }
377 part { name: "clip_wifi"; type: RECT;
378 description { state: "default" 0.0;
379 visible: 0;
380 }
381 description { state: "wifi" 0.0;
382 visible: 1;
383 }
384 }
385 part { name: "led";
386 description { state: "default" 0.0;
387 rel1.to: "hole";
388 rel2.to: "hole";
389 min: 10 10;
390 max: 10 10;
391 image.normal: "led_tiny_orange.png";
392 fixed: 1 1;
393 visible: 0;
394 }
395 description { state: "connected" 0.0;
396 inherit: "default" 0.0;
397 image.normal: "led_tiny_orange.png";
398 visible: 1;
399 }
400 description { state: "online" 0.0;
401 inherit: "default" 0.0;
402 image.normal: "led_tiny_green.png";
403 visible: 1;
404 }
405 }
406 part { name: "event"; type: RECT; mouse;
407 description { state: "default" 0.0;
408 color: 0 0 0 0;
409 }
410 }
411 }
412 programs {
413 program { "connecting_wifi";
414 action: STATE_SET "default";
415 targets: "wifi_1" "wifi_2" "wifi_3";
416 sequence {
417 action: STATE_SET "partly";
418 target: "wifi_1";
419 transition: LINEAR 0.085;
420 action: STATE_SET "visible";
421 target: "wifi_1";
422 transition: LINEAR 0.085;
423 action: STATE_SET "partly";
424 target: "wifi_2";
425 transition: LINEAR 0.085;
426 action: STATE_SET "visible";
427 target: "wifi_2";
428 transition: LINEAR 0.085;
429 action: STATE_SET "partly";
430 target: "wifi_3";
431 transition: LINEAR 0.085;
432 action: STATE_SET "visible";
433 target: "wifi_3";
434 transition: LINEAR 0.085;
435 after: "connecting_wifi";
436 }
437 }
438 program { "connecting";
439 action: STATE_SET "connected";
440 target: "led";
441 in: 0.3 0.0;
442 sequence {
443 action: STATE_SET "default";
444 target: "led";
445 in: 0.3 0.0;
446 after: "connecting";
447 }
448 }
449 target_group: "clips" "clip_exclam" "clip_wifi";
450 program {
451 signal: "wireless,state,error"; source: "wireless";
452 action: STATE_SET "default" 0.0;
453 groups: "clips";
454 }
455 program {
456 signal: "wireless,state,default"; source: "wireless";
457 action: STATE_SET "wifi" 0.0;
458 groups: "clips";
459 }
460 }
461}
462
463group { name: "wireless/bluetooth"; nomouse;
464 images.image: "slot_horiz_top.png" COMP;
465 images.image: "slot_horiz_bottom.png" COMP;
466 images.image: "exlclam.png" COMP;
467 images.image: "hole_tiny.png" COMP;
468 images.image: "led_tiny_orange.png" COMP;
469 images.image: "led_tiny_green.png" COMP;
470 images.image: "bt_base.png" COMP;
471 images.image: "bt_sig_1.png" COMP;
472 images.image: "bt_sig_2.png" COMP;
473 script {
474 public message(Msg_Type:type, id, ...) {
475 if ((type == MSG_INT_SET) && (id == 1)) {
476 new state = getarg(2), signl = getarg(3);
477 if (signl <= 20) {
478 set_state(PART:"bt_1", "default", 0.0);
479 set_state(PART:"bt_2", "default", 0.0);
480 }
481 else if (signl <= 40) {
482 set_state(PART:"bt_1", "partly", 0.0);
483 set_state(PART:"bt_2", "default", 0.0);
484 }
485 else if (signl <= 60) {
486 set_state(PART:"bt_1", "visible", 0.0);
487 set_state(PART:"bt_2", "default", 0.0);
488 }
489 else if (signl <= 80) {
490 set_state(PART:"bt_1", "visible", 0.0);
491 set_state(PART:"bt_2", "partly", 0.0);
492 }
493 else {
494 set_state(PART:"bt_1", "visible", 0.0);
495 set_state(PART:"bt_2", "visible", 0.0);
496 }
497 if ((state == 2)) {
498 set_state(PART:"led", "default", 0.0);
499 run_program(PROGRAM:"connecting");
500 return;
501 }
502 else if ((state == 3)) { return; }
503 else if ((state == 4)) { set_state(PART:"led", "connected", 0.0); }
504 else if ((state == 5)) { set_state(PART:"led", "online", 0.0); }
505 else { set_state(PART:"led", "default", 0.0); }
506 }
507 }
508 }
509 parts {
510 part { name: "slot_bottom";
511 description { state: "default" 0.0;
512 rel1.to: "slot";
513 rel2.relative: 1.0 0.5;
514 rel2.to: "slot";
515 min: 0 3;
516 image.normal: "slot_horiz_bottom.png";
517 fixed: 0 1;
518 }
519 }
520///////////////////////
521 part { name: "exclam_base";
522 clip_to: "clip_exclam";
523 description { state: "default" 0.0;
524 aspect: (71/144) (71/144); aspect_preference: BOTH;
525 align: 0.5 1.0;
526 rel2.relative: 1.0 0.5;
527 rel2.to_y: "slot";
528 image.normal: "exlclam.png";
529 }
530 }
531///////////////////////
532 part { name: "bt_base";
533 clip_to: "clip_bt";
534 description { state: "default" 0.0;
535 aspect: (160/144) (160/144); aspect_preference: BOTH;
536 align: 0.5 1.0;
537 rel2.relative: 1.0 0.5;
538 rel2.to_y: "slot";
539 image.normal: "bt_base.png";
540 }
541 }
542 part { name: "bt_1";
543 clip_to: "clip_bt";
544 description { state: "default" 0.0;
545 rel1.to: "bt_base";
546 rel2.to: "bt_base";
547 image.normal: "bt_sig_1.png";
548 visible: 0;
549 }
550 description { state: "partly" 0.0;
551 inherit: "default" 0.0;
552 color: 255 255 255 128;
553 visible: 1;
554 }
555 description { state: "visible" 0.0;
556 inherit: "default" 0.0;
557 visible: 1;
558 }
559 }
560 part { name: "bt_2";
561 clip_to: "clip_bt";
562 description { state: "default" 0.0;
563 rel1.to: "bt_base";
564 rel2.to: "bt_base";
565 image.normal: "bt_sig_2.png";
566 visible: 0;
567 }
568 description { state: "partly" 0.0;
569 inherit: "default" 0.0;
570 color: 255 255 255 128;
571 visible: 1;
572 }
573 description { state: "visible" 0.0;
574 inherit: "default" 0.0;
575 visible: 1;
576 }
577 }
578///////////////////////
579 part { name: "slot";
580 description { state: "default" 0.0;
581 rel1.offset: 0 -1;
582 rel1.relative: (21/160) 1.0;
583 rel2.offset: -1 -1;
584 rel2.relative: (140/160) 1.0;
585 align: 0.5 1.0;
586 min: 0 6;
587 image.normal: "slot_horiz_top.png";
588 fixed: 0 1;
589 }
590 }
591 part { name: "hole";
592 description { state: "default" 0.0;
593 rel1.offset: -4 -4;
594 rel1.relative: 1.0 1.0;
595 rel2.offset: -4 -4;
596 align: 1.0 1.0;
597 min: 4 4;
598 max: 4 4;
599 image.normal: "hole_tiny.png";
600 fixed: 1 1;
601 }
602 }
603 part { name: "clip_exclam"; type: RECT;
604 description { state: "default" 0.0;
605 visible: 1;
606 }
607 description { state: "bt" 0.0;
608 visible: 0;
609 }
610 }
611 part { name: "clip_bt"; type: RECT;
612 description { state: "default" 0.0;
613 visible: 0;
614 }
615 description { state: "bt" 0.0;
616 visible: 1;
617 }
618 }
619 part { name: "led";
620 description { state: "default" 0.0;
621 rel1.to: "hole";
622 rel2.to: "hole";
623 min: 10 10;
624 max: 10 10;
625 image.normal: "led_tiny_orange.png";
626 fixed: 1 1;
627 visible: 0;
628 }
629 description { state: "connected" 0.0;
630 inherit: "default" 0.0;
631 image.normal: "led_tiny_orange.png";
632 visible: 1;
633 }
634 description { state: "online" 0.0;
635 inherit: "default" 0.0;
636 image.normal: "led_tiny_green.png";
637 visible: 1;
638 }
639 }
640 part { name: "event"; type: RECT; mouse;
641 description { state: "default" 0.0;
642 color: 0 0 0 0;
643 }
644 }
645 }
646 programs {
647 program { name: "connecting";
648 action: STATE_SET "connected" 0.0;
649 target: "led";
650 in: 0.3 0.0;
651 after: "connecting2";
652 }
653 program { name: "connecting2";
654 action: STATE_SET "default" 0.0;
655 target: "led";
656 in: 0.3 0.0;
657 after: "connecting";
658 }
659 program {
660 signal: "wireless,state,error"; source: "wireless";
661 action: STATE_SET "default" 0.0;
662 target: "clip_exclam";
663 target: "clip_bt";
664 }
665 program {
666 signal: "wireless,state,default"; source: "wireless";
667 action: STATE_SET "bt" 0.0;
668 target: "clip_exclam";
669 target: "clip_bt";
670 }
671 }
672}
673
674group { name: "wireless/cellular";
675 images.image: "slot_horiz_top.png" COMP;
676 images.image: "slot_horiz_bottom.png" COMP;
677 images.image: "exlclam.png" COMP;
678 images.image: "hole_tiny.png" COMP;
679 images.image: "led_tiny_orange.png" COMP;
680 images.image: "led_tiny_green.png" COMP;
681 images.image: "cell_base.png" COMP;
682 images.image: "cell_sig_1.png" COMP;
683 images.image: "cell_sig_2.png" COMP;
684 images.image: "cell_sig_3.png" COMP;
685 images.image: "cell_sig_4.png" COMP;
686
687 script {
688 public message(Msg_Type:type, id, ...) {
689 if ((type == MSG_INT_SET) && (id == 1)) {
690 new state = getarg(2), signl = getarg(3);
691 if (signl <= 11) {
692 set_state(PART:"cell_1", "default", 0.0);
693 set_state(PART:"cell_2", "default", 0.0);
694 set_state(PART:"cell_3", "default", 0.0);
695 set_state(PART:"cell_4", "default", 0.0);
696 }
697 else if (signl <= 22) {
698 set_state(PART:"cell_1", "partly", 0.0);
699 set_state(PART:"cell_2", "default", 0.0);
700 set_state(PART:"cell_3", "default", 0.0);
701 set_state(PART:"cell_4", "default", 0.0);
702 }
703 else if (signl <= 33) {
704 set_state(PART:"cell_1", "visible", 0.0);
705 set_state(PART:"cell_2", "default", 0.0);
706 set_state(PART:"cell_3", "default", 0.0);
707 set_state(PART:"cell_4", "default", 0.0);
708 }
709 else if (signl <= 44) {
710 set_state(PART:"cell_1", "visible", 0.0);
711 set_state(PART:"cell_2", "partly", 0.0);
712 set_state(PART:"cell_3", "default", 0.0);
713 set_state(PART:"cell_4", "default", 0.0);
714 }
715 else if (signl <= 55) {
716 set_state(PART:"cell_1", "visible", 0.0);
717 set_state(PART:"cell_2", "visible", 0.0);
718 set_state(PART:"cell_3", "default", 0.0);
719 set_state(PART:"cell_4", "default", 0.0);
720 }
721 else if (signl <= 66) {
722 set_state(PART:"cell_1", "visible", 0.0);
723 set_state(PART:"cell_2", "visible", 0.0);
724 set_state(PART:"cell_3", "partly", 0.0);
725 set_state(PART:"cell_4", "default", 0.0);
726 }
727 else if (signl <= 77) {
728 set_state(PART:"cell_1", "visible", 0.0);
729 set_state(PART:"cell_2", "visible", 0.0);
730 set_state(PART:"cell_3", "visible", 0.0);
731 set_state(PART:"cell_4", "default", 0.0);
732 }
733 else if (signl <= 88) {
734 set_state(PART:"cell_1", "visible", 0.0);
735 set_state(PART:"cell_2", "visible", 0.0);
736 set_state(PART:"cell_3", "visible", 0.0);
737 set_state(PART:"cell_4", "partly", 0.0);
738 }
739 else {
740 set_state(PART:"cell_1", "visible", 0.0);
741 set_state(PART:"cell_2", "visible", 0.0);
742 set_state(PART:"cell_3", "visible", 0.0);
743 set_state(PART:"cell_4", "visible", 0.0);
744 }
745 if ((state == 1)) {
746 set_state(PART:"led", "default", 0.0);
747 run_program(PROGRAM:"connecting");
748 return;
749 }
750 else if ((state == 2)) { set_state(PART:"led", "connected", 0.0); }
751 else if ((state == 3)) { set_state(PART:"led", "online", 0.0); }
752 else { set_state(PART:"led", "default", 0.0); }
753 }
754 }
755 }
756 parts {
757 part { name: "slot_bottom"; mouse_events: 0;
758 description { state: "default" 0.0;
759 rel1.to: "slot";
760 rel2.relative: 1.0 0.5;
761 rel2.to: "slot";
762 min: 0 3;
763 image.normal: "slot_horiz_bottom.png";
764 fixed: 0 1;
765 }
766 }
767///////////////////////
768 part { name: "exclam_base"; mouse_events: 0;
769 clip_to: "clip_exclam";
770 description { state: "default" 0.0;
771 aspect: (71/144) (71/144); aspect_preference: BOTH;
772 align: 0.5 1.0;
773 rel2.relative: 1.0 0.5;
774 rel2.to_y: "slot";
775 image.normal: "exlclam.png";
776 }
777 }
778///////////////////////
779 part { name: "cell_base"; mouse_events: 0;
780 clip_to: "clip_cell";
781 description { state: "default" 0.0;
782 aspect: (160/144) (160/144); aspect_preference: BOTH;
783 align: 0.5 1.0;
784 rel2.relative: 1.0 0.5;
785 rel2.to_y: "slot";
786 image.normal: "cell_base.png";
787 }
788 }
789 part { name: "cell_1"; mouse_events: 0;
790 clip_to: "clip_cell";
791 description { state: "default" 0.0;
792 rel1.to: "cell_base";
793 rel2.to: "cell_base";
794 image.normal: "cell_sig_1.png";
795 visible: 0;
796 }
797 description { state: "partly" 0.0;
798 inherit: "default" 0.0;
799 color: 255 255 255 128;
800 visible: 1;
801 }
802 description { state: "visible" 0.0;
803 inherit: "default" 0.0;
804 visible: 1;
805 }
806 }
807 part { name: "cell_2"; mouse_events: 0;
808 clip_to: "clip_cell";
809 description { state: "default" 0.0;
810 rel1.to: "cell_base";
811 rel2.to: "cell_base";
812 image.normal: "cell_sig_2.png";
813 visible: 0;
814 }
815 description { state: "partly" 0.0;
816 inherit: "default" 0.0;
817 color: 255 255 255 128;
818 visible: 1;
819 }
820 description { state: "visible" 0.0;
821 inherit: "default" 0.0;
822 visible: 1;
823 }
824 }
825 part { name: "cell_3"; mouse_events: 0;
826 clip_to: "clip_cell";
827 description { state: "default" 0.0;
828 rel1.to: "cell_base";
829 rel2.to: "cell_base";
830 image.normal: "cell_sig_3.png";
831 visible: 0;
832 }
833 description { state: "partly" 0.0;
834 inherit: "default" 0.0;
835 color: 255 255 255 128;
836 visible: 1;
837 }
838 description { state: "visible" 0.0;
839 inherit: "default" 0.0;
840 visible: 1;
841 }
842 }
843 part { name: "cell_4"; mouse_events: 0;
844 clip_to: "clip_cell";
845 description { state: "default" 0.0;
846 rel1.to: "cell_base";
847 rel2.to: "cell_base";
848 image.normal: "cell_sig_4.png";
849 visible: 0;
850 }
851 description { state: "partly" 0.0;
852 inherit: "default" 0.0;
853 color: 255 255 255 128;
854 visible: 1;
855 }
856 description { state: "visible" 0.0;
857 inherit: "default" 0.0;
858 visible: 1;
859 }
860 }
861///////////////////////
862 part { name: "slot"; mouse_events: 0;
863 description { state: "default" 0.0;
864 rel1.offset: 0 -1;
865 rel1.relative: (21/160) 1.0;
866 rel2.offset: -1 -1;
867 rel2.relative: (140/160) 1.0;
868 align: 0.5 1.0;
869 min: 0 6;
870 image.normal: "slot_horiz_top.png";
871 fixed: 0 1;
872 }
873 }
874 part { name: "hole"; mouse_events: 0;
875 description { state: "default" 0.0;
876 rel1.offset: -4 -4;
877 rel1.relative: 1.0 1.0;
878 rel2.offset: -4 -4;
879 align: 1.0 1.0;
880 min: 4 4;
881 max: 4 4;
882 image.normal: "hole_tiny.png";
883 fixed: 1 1;
884 }
885 }
886 part { name: "clip_exclam"; type: RECT;
887 description { state: "default" 0.0;
888 visible: 1;
889 }
890 description { state: "cell" 0.0;
891 visible: 0;
892 }
893 }
894 part { name: "clip_cell"; type: RECT;
895 description { state: "default" 0.0;
896 visible: 0;
897 }
898 description { state: "cell" 0.0;
899 visible: 1;
900 }
901 }
902 part { name: "led"; mouse_events: 0;
903 description { state: "default" 0.0;
904 rel1.to: "hole";
905 rel2.to: "hole";
906 min: 10 10;
907 max: 10 10;
908 image.normal: "led_tiny_orange.png";
909 fixed: 1 1;
910 visible: 0;
911 }
912 description { state: "connected" 0.0;
913 inherit: "default" 0.0;
914 image.normal: "led_tiny_orange.png";
915 visible: 1;
916 }
917 description { state: "online" 0.0;
918 inherit: "default" 0.0;
919 image.normal: "led_tiny_green.png";
920 visible: 1;
921 }
922 }
923 part { name: "event"; type: RECT;
924 description { state: "default" 0.0;
925 color: 0 0 0 0;
926 }
927 }
928 }
929
930 programs {
931 program { name: "connecting";
932 action: STATE_SET "connected" 0.0;
933 target: "led";
934 in: 0.3 0.0;
935 after: "connecting2";
936 }
937 program { name: "connecting2";
938 action: STATE_SET "default" 0.0;
939 target: "led";
940 in: 0.3 0.0;
941 after: "connecting";
942 }
943 program {
944 signal: "wireless,state,error"; source: "wireless";
945 action: STATE_SET "default" 0.0;
946 target: "clip_exclam";
947 target: "clip_cell";
948 }
949 program {
950 signal: "wireless,state,default"; source: "wireless";
951 action: STATE_SET "cell" 0.0;
952 target: "clip_exclam";
953 target: "clip_cell";
954 }
955 }
956}
957
958}