1 group { name: "e/modules/connman/main";
2 images.image: "slot_horiz_top.png" COMP;
3 images.image: "slot_horiz_bottom.png" COMP;
4 images.image: "wifi_base.png" COMP;
5 images.image: "wifi_sig_1.png" COMP;
6 images.image: "wifi_sig_2.png" COMP;
7 images.image: "wifi_sig_3.png" COMP;
8 images.image: "eth.png" COMP;
9 images.image: "exlclam.png" COMP;
10 images.image: "hole_tiny.png" COMP;
11 images.image: "led_tiny_orange.png" COMP;
12 images.image: "led_tiny_green.png" COMP;
13 images.image: "bt_base.png" COMP;
14 images.image: "bt_sig_1.png" COMP;
15 images.image: "bt_sig_2.png" COMP;
16 images.image: "cell_base.png" COMP;
17 images.image: "cell_sig_1.png" COMP;
18 images.image: "cell_sig_2.png" COMP;
19 images.image: "cell_sig_3.png" COMP;
20 images.image: "cell_sig_4.png" COMP;
22 part { name: "slot_bottom"; mouse_events: 0;
23 description { state: "default" 0.0;
25 rel2.relative: 1.0 0.5;
28 image.normal: "slot_horiz_bottom.png";
32 ///////////////////////
33 part { name: "exclam_base"; mouse_events: 0;
34 clip_to: "clip_exclam";
35 description { state: "default" 0.0;
36 aspect: (71/144) (71/144); aspect_preference: BOTH;
38 rel2.relative: 1.0 0.5;
40 image.normal: "exlclam.png";
43 ///////////////////////
44 part { name: "eth_base"; mouse_events: 0;
46 description { state: "default" 0.0;
47 aspect: (60/144) (60/144); aspect_preference: BOTH;
49 rel2.relative: 1.0 0.5;
51 image.normal: "eth.png";
54 ///////////////////////
55 part { name: "wifi_base"; mouse_events: 0;
57 description { state: "default" 0.0;
58 aspect: (160/144) (160/144); aspect_preference: BOTH;
60 rel2.relative: 1.0 0.5;
62 image.normal: "wifi_base.png";
65 part { name: "wifi_1"; mouse_events: 0;
67 description { state: "default" 0.0;
70 image.normal: "wifi_sig_1.png";
73 description { state: "partly" 0.0;
74 inherit: "default" 0.0;
75 color: 255 255 255 128;
78 description { state: "visible" 0.0;
79 inherit: "default" 0.0;
83 part { name: "wifi_2"; mouse_events: 0;
85 description { state: "default" 0.0;
88 image.normal: "wifi_sig_2.png";
91 description { state: "partly" 0.0;
92 inherit: "default" 0.0;
93 color: 255 255 255 128;
96 description { state: "visible" 0.0;
97 inherit: "default" 0.0;
101 part { name: "wifi_3"; mouse_events: 0;
102 clip_to: "clip_wifi";
103 description { state: "default" 0.0;
104 rel1.to: "wifi_base";
105 rel2.to: "wifi_base";
106 image.normal: "wifi_sig_3.png";
109 description { state: "partly" 0.0;
110 inherit: "default" 0.0;
111 color: 255 255 255 128;
114 description { state: "visible" 0.0;
115 inherit: "default" 0.0;
119 ///////////////////////
120 part { name: "bt_base"; mouse_events: 0;
122 description { state: "default" 0.0;
123 aspect: (160/144) (160/144); aspect_preference: BOTH;
125 rel2.relative: 1.0 0.5;
127 image.normal: "bt_base.png";
130 part { name: "bt_1"; mouse_events: 0;
132 description { state: "default" 0.0;
135 image.normal: "bt_sig_1.png";
138 description { state: "partly" 0.0;
139 inherit: "default" 0.0;
140 color: 255 255 255 128;
143 description { state: "visible" 0.0;
144 inherit: "default" 0.0;
148 part { name: "bt_2"; mouse_events: 0;
150 description { state: "default" 0.0;
153 image.normal: "bt_sig_2.png";
156 description { state: "partly" 0.0;
157 inherit: "default" 0.0;
158 color: 255 255 255 128;
161 description { state: "visible" 0.0;
162 inherit: "default" 0.0;
166 ///////////////////////
167 part { name: "cell_base"; mouse_events: 0;
168 clip_to: "clip_cell";
169 description { state: "default" 0.0;
170 aspect: (160/144) (160/144); aspect_preference: BOTH;
172 rel2.relative: 1.0 0.5;
174 image.normal: "cell_base.png";
177 part { name: "cell_1"; mouse_events: 0;
178 clip_to: "clip_cell";
179 description { state: "default" 0.0;
180 rel1.to: "cell_base";
181 rel2.to: "cell_base";
182 image.normal: "cell_sig_1.png";
185 description { state: "partly" 0.0;
186 inherit: "default" 0.0;
187 color: 255 255 255 128;
190 description { state: "visible" 0.0;
191 inherit: "default" 0.0;
195 part { name: "cell_2"; mouse_events: 0;
196 clip_to: "clip_cell";
197 description { state: "default" 0.0;
198 rel1.to: "cell_base";
199 rel2.to: "cell_base";
200 image.normal: "cell_sig_2.png";
203 description { state: "partly" 0.0;
204 inherit: "default" 0.0;
205 color: 255 255 255 128;
208 description { state: "visible" 0.0;
209 inherit: "default" 0.0;
213 part { name: "cell_3"; mouse_events: 0;
214 clip_to: "clip_cell";
215 description { state: "default" 0.0;
216 rel1.to: "cell_base";
217 rel2.to: "cell_base";
218 image.normal: "cell_sig_3.png";
221 description { state: "partly" 0.0;
222 inherit: "default" 0.0;
223 color: 255 255 255 128;
226 description { state: "visible" 0.0;
227 inherit: "default" 0.0;
231 part { name: "cell_4"; mouse_events: 0;
232 clip_to: "clip_cell";
233 description { state: "default" 0.0;
234 rel1.to: "cell_base";
235 rel2.to: "cell_base";
236 image.normal: "cell_sig_4.png";
239 description { state: "partly" 0.0;
240 inherit: "default" 0.0;
241 color: 255 255 255 128;
244 description { state: "visible" 0.0;
245 inherit: "default" 0.0;
249 ///////////////////////
250 part { name: "slot"; mouse_events: 0;
251 description { state: "default" 0.0;
253 rel1.relative: (21/160) 1.0;
255 rel2.relative: (140/160) 1.0;
258 image.normal: "slot_horiz_top.png";
262 part { name: "hole"; mouse_events: 0;
263 description { state: "default" 0.0;
265 rel1.relative: 1.0 1.0;
270 image.normal: "hole_tiny.png";
274 part { name: "clip_exclam"; type: RECT;
275 description { state: "default" 0.0;
278 description { state: "wifi" 0.0;
281 description { state: "eth" 0.0;
284 description { state: "bt" 0.0;
287 description { state: "cell" 0.0;
291 part { name: "clip_wifi"; type: RECT;
292 description { state: "default" 0.0;
295 description { state: "wifi" 0.0;
298 description { state: "eth" 0.0;
301 description { state: "bt" 0.0;
304 description { state: "cell" 0.0;
308 part { name: "clip_eth"; type: RECT;
309 description { state: "default" 0.0;
312 description { state: "wifi" 0.0;
315 description { state: "eth" 0.0;
318 description { state: "bt" 0.0;
321 description { state: "cell" 0.0;
325 part { name: "clip_bt"; type: RECT;
326 description { state: "default" 0.0;
329 description { state: "wifi" 0.0;
332 description { state: "eth" 0.0;
335 description { state: "bt" 0.0;
338 description { state: "cell" 0.0;
342 part { name: "clip_cell"; type: RECT;
343 description { state: "default" 0.0;
346 description { state: "wifi" 0.0;
349 description { state: "eth" 0.0;
352 description { state: "bt" 0.0;
355 description { state: "cell" 0.0;
359 part { name: "led"; mouse_events: 0;
360 description { state: "default" 0.0;
365 image.normal: "led_tiny_orange.png";
369 description { state: "connected" 0.0;
370 inherit: "default" 0.0;
371 image.normal: "led_tiny_orange.png";
374 description { state: "online" 0.0;
375 inherit: "default" 0.0;
376 image.normal: "led_tiny_green.png";
380 part { name: "event"; type: RECT;
381 description { state: "default" 0.0;
387 #define SCRIPT_MESSAGE() \
389 public message(Msg_Type:type, id, ...) { \
390 if ((type == MSG_INT_SET) && (id == 1)) { \
391 new state = getarg(2), signl = getarg(3); \
393 set_state(PART:"wifi_1", "default", 0.0); \
394 set_state(PART:"wifi_2", "default", 0.0); \
395 set_state(PART:"wifi_3", "default", 0.0); \
397 else if (signl <= 28) { \
398 set_state(PART:"wifi_1", "partly", 0.0); \
399 set_state(PART:"wifi_2", "default", 0.0); \
400 set_state(PART:"wifi_3", "default", 0.0); \
402 else if (signl <= 42) { \
403 set_state(PART:"wifi_1", "visible", 0.0); \
404 set_state(PART:"wifi_2", "default", 0.0); \
405 set_state(PART:"wifi_3", "default", 0.0); \
407 else if (signl <= 57) { \
408 set_state(PART:"wifi_1", "visible", 0.0); \
409 set_state(PART:"wifi_2", "partly", 0.0); \
410 set_state(PART:"wifi_3", "default", 0.0); \
412 else if (signl <= 71) { \
413 set_state(PART:"wifi_1", "visible", 0.0); \
414 set_state(PART:"wifi_2", "visible", 0.0); \
415 set_state(PART:"wifi_3", "default", 0.0); \
417 else if (signl <= 85) { \
418 set_state(PART:"wifi_1", "visible", 0.0); \
419 set_state(PART:"wifi_2", "visible", 0.0); \
420 set_state(PART:"wifi_3", "partly", 0.0); \
423 set_state(PART:"wifi_1", "visible", 0.0); \
424 set_state(PART:"wifi_2", "visible", 0.0); \
425 set_state(PART:"wifi_3", "visible", 0.0); \
428 set_state(PART:"bt_1", "default", 0.0); \
429 set_state(PART:"bt_2", "default", 0.0); \
431 else if (signl <= 40) { \
432 set_state(PART:"bt_1", "partly", 0.0); \
433 set_state(PART:"bt_2", "default", 0.0); \
435 else if (signl <= 60) { \
436 set_state(PART:"bt_1", "visible", 0.0); \
437 set_state(PART:"bt_2", "default", 0.0); \
439 else if (signl <= 80) { \
440 set_state(PART:"bt_1", "visible", 0.0); \
441 set_state(PART:"bt_2", "partly", 0.0); \
444 set_state(PART:"bt_1", "visible", 0.0); \
445 set_state(PART:"bt_2", "visible", 0.0); \
448 set_state(PART:"cell_1", "default", 0.0); \
449 set_state(PART:"cell_2", "default", 0.0); \
450 set_state(PART:"cell_3", "default", 0.0); \
451 set_state(PART:"cell_4", "default", 0.0); \
453 else if (signl <= 22) { \
454 set_state(PART:"cell_1", "partly", 0.0); \
455 set_state(PART:"cell_2", "default", 0.0); \
456 set_state(PART:"cell_3", "default", 0.0); \
457 set_state(PART:"cell_4", "default", 0.0); \
459 else if (signl <= 33) { \
460 set_state(PART:"cell_1", "visible", 0.0); \
461 set_state(PART:"cell_2", "default", 0.0); \
462 set_state(PART:"cell_3", "default", 0.0); \
463 set_state(PART:"cell_4", "default", 0.0); \
465 else if (signl <= 44) { \
466 set_state(PART:"cell_1", "visible", 0.0); \
467 set_state(PART:"cell_2", "partly", 0.0); \
468 set_state(PART:"cell_3", "default", 0.0); \
469 set_state(PART:"cell_4", "default", 0.0); \
471 else if (signl <= 55) { \
472 set_state(PART:"cell_1", "visible", 0.0); \
473 set_state(PART:"cell_2", "visible", 0.0); \
474 set_state(PART:"cell_3", "default", 0.0); \
475 set_state(PART:"cell_4", "default", 0.0); \
477 else if (signl <= 66) { \
478 set_state(PART:"cell_1", "visible", 0.0); \
479 set_state(PART:"cell_2", "visible", 0.0); \
480 set_state(PART:"cell_3", "partly", 0.0); \
481 set_state(PART:"cell_4", "default", 0.0); \
483 else if (signl <= 77) { \
484 set_state(PART:"cell_1", "visible", 0.0); \
485 set_state(PART:"cell_2", "visible", 0.0); \
486 set_state(PART:"cell_3", "visible", 0.0); \
487 set_state(PART:"cell_4", "default", 0.0); \
489 else if (signl <= 88) { \
490 set_state(PART:"cell_1", "visible", 0.0); \
491 set_state(PART:"cell_2", "visible", 0.0); \
492 set_state(PART:"cell_3", "visible", 0.0); \
493 set_state(PART:"cell_4", "partly", 0.0); \
496 set_state(PART:"cell_1", "visible", 0.0); \
497 set_state(PART:"cell_2", "visible", 0.0); \
498 set_state(PART:"cell_3", "visible", 0.0); \
499 set_state(PART:"cell_4", "visible", 0.0); \
501 if ((state == 2)) { \
502 set_state(PART:"led", "default", 0.0); \
503 run_program(PROGRAM:"connecting"); \
505 else if ((state == 3)) { return; } \
506 else if ((state == 4)) { set_state(PART:"led", "connected", 0.0); } \
507 else if ((state == 5)) { set_state(PART:"led", "online", 0.0); } \
508 else { set_state(PART:"led", "default", 0.0); \
513 program { name: "connecting";
514 action: STATE_SET "connected" 0.0;
517 after: "connecting2";
519 program { name: "connecting2";
520 action: STATE_SET "default" 0.0;
526 // signal: "e,available"; source: "e";
529 // signal: "e,unavailable"; source: "e";
532 signal: "e,changed,connected,no"; source: "e";
533 action: STATE_SET "default" 0.0;
534 target: "clip_exclam";
541 signal: "e,changed,technology,wifi"; source: "e";
542 action: STATE_SET "wifi" 0.0;
543 target: "clip_exclam";
550 signal: "e,changed,technology,ethernet"; source: "e";
551 action: STATE_SET "eth" 0.0;
552 target: "clip_exclam";
559 signal: "e,changed,technology,bluetooth"; source: "e";
560 action: STATE_SET "bt" 0.0;
561 target: "clip_exclam";
568 signal: "e,changed,technology,cellular"; source: "e";
569 action: STATE_SET "cell" 0.0;
570 target: "clip_exclam";
577 signal: "e,changed,technology,other"; source: "e";
578 action: STATE_SET "default" 0.0;
579 target: "clip_exclam";
588 group { name: "e/modules/connman/icon/wifi";
589 inherit: "e/modules/connman/main";
593 signal: "load"; source: "";
594 action: STATE_SET "wifi" 0.0;
595 target: "clip_exclam";
604 group { name: "e/modules/connman/icon/ethernet";
605 inherit: "e/modules/connman/main";
609 signal: "load"; source: "";
610 action: STATE_SET "eth" 0.0;
611 target: "clip_exclam";
620 group { name: "e/modules/connman/icon/bluetooth";
621 inherit: "e/modules/connman/main";
625 signal: "load"; source: "";
626 action: STATE_SET "bt" 0.0;
627 target: "clip_exclam";
636 group { name: "e/modules/connman/icon/cellular";
637 inherit: "e/modules/connman/main";
641 signal: "load"; source: "";
642 action: STATE_SET "cell" 0.0;
643 target: "clip_exclam";
652 group { name: "e/modules/connman/end";
653 images.image: "glow_lock_locked.png" COMP;
654 images.image: "glow_lock_unlocked.png" COMP;
655 images.image: "glow_lock_double.png" COMP;
657 part { name: "base"; mouse_events: 0;
658 description { state: "default" 0.0;
659 image.normal: "glow_lock_locked.png";
661 aspect: 1.0 1.0; aspect_preference: BOTH;
664 description { state: "none" 0.0;
665 inherit: "default" 0.0;
666 image.normal: "glow_lock_unlocked.png";
669 description { state: "wep" 0.0;
670 inherit: "default" 0.0;
671 image.normal: "glow_lock_locked.png";
674 description { state: "psk" 0.0;
675 inherit: "default" 0.0;
676 image.normal: "glow_lock_double.png";
683 signal: "e,security,off"; source: "e";
684 action: STATE_SET "default" 0.0;
688 signal: "e,security,none"; source: "e";
689 action: STATE_SET "none" 0.0;
693 signal: "e,security,wep"; source: "e";
694 action: STATE_SET "wep" 0.0;
698 signal: "e,security,psk"; source: "e";
699 action: STATE_SET "psk" 0.0;