2 name: "elm/layout/dialer/call";
5 * Represents the dialer ongoing voice call(s) screen.
9 * TEXT: elm.text.status
10 * TEXT: elm.text.elapsed
11 * TEXT: elm.text.waiting
15 * Emit (source is "call"):
16 * pressed,<ID>: key <ID> was pressed
17 * released,<ID>: key <ID> was released
18 * clicked,<ID>: key <ID> was clicked (press and release in the key)
19 * Listen (source is "call"):
20 * show,answer: show "answer" action
21 * hide,answer: hide "answer" action
22 * show,waiting: show call waiting popup (decline, hold+answer...)
23 * hide,waiting: hide call waiting popup
24 * show,held: show call held entry
25 * hide,held: hide call held entry
26 * show,elapsed: have elapsed (elm.text.elapsed) and should be visible
27 * hide,elapsed: don't have elapsed and it should be hidden
28 * state,<STATE>: state changed to <STATE>
29 * disable,<ID>: disable action <ID>
30 * enable,<ID>: enable action <ID>
31 * toggle,on,<ID>: mark toggle action <ID> as selected
32 * toggle,off,<ID>: mark toggle action <ID> as unselected
35 * 1 - FLOAT: speaker volume 0.0-1.0
36 * 2 - FLOAT: microphone volume 0.0-1.0
37 * 3 - FLOAT: elapsed time in seconds (> 0.0)
39 * Where <ID> is: numbers 0 to 9, star, hash, mute, keypad, speaker,
40 * merge, swap, contacts, answer, hangup, waiting-hangup, hold-answer,
43 * Where <STATE> is: disconnected, active, held, dialing, alerting,
50 image: "bg_call.jpg" COMP;
51 image: "bt_mute_pressed.png" COMP;
52 image: "bt_mute_released.png" COMP;
53 image: "bt_keypad_pressed.png" COMP;
54 image: "bt_keypad_released.png" COMP;
55 image: "bt_speaker_pressed.png" COMP;
56 image: "bt_speaker_released.png" COMP;
57 image: "bt_merge_pressed.png" COMP;
58 image: "bt_merge_released.png" COMP;
59 image: "bt_swap_pressed.png" COMP;
60 image: "bt_swap_released.png" COMP;
61 image: "bt_contacts_pressed.png" COMP;
62 image: "bt_contacts_released.png" COMP;
72 color: 255 255 255 255;
76 normal: "bg_call.jpg";
84 name: "elm.text.name";
88 api: "name" "remote party call name";
91 color: 255 255 255 255;
92 color_class: "action";
100 text: "Gustavo Barbieri";
112 name: "elm.text.status";
116 api: "status" "call status";
118 state: "default" 0.0;
119 color: 255 255 255 255;
120 color_class: "light";
144 name: "elm.text.elapsed";
148 api: "elapsed" "call elapsed time (formatted)";
150 state: "default" 0.0;
151 color: 255 255 255 255;
152 color_class: "light";
156 to: "elm.text.status";
161 to: "elm.text.status";
175 #define SEPARATOR(id, clip, rely, offy, relto) \
177 name: "separator.dark."##id; \
182 state: "default" 0.0; \
183 color: 255 255 255 255; \
184 color_class: "dark"; \
186 relative: 0.0 rely; \
191 relative: 1.0 rely; \
192 offset: -1 (offy + 4); \
198 name: "separator.bg."##id; \
203 state: "default" 0.0; \
204 color: 255 255 255 255; \
207 relative: 0.0 rely; \
208 offset: 0 (offy + 4); \
212 relative: 1.0 rely; \
213 offset: -1 (offy + 8); \
220 name: "clipper.held";
222 clip_to: "clipper.keypad-hidden";
224 state: "default" 0.0;
225 color: 255 255 255 0;
226 color_class: "disabled";
230 state: "visible" 0.0;
231 inherit: "default" 0.0;
232 color: 255 255 255 255;
237 name: "elm.text.held";
241 api: "held" "held party call name";
242 clip_to: "clipper.held";
244 state: "default" 0.0;
245 color: 255 255 255 255;
246 color_class: "action";
249 to_y: "elm.text.status";
250 to_x: "elm.text.name";
255 to_y: "elm.text.status";
256 to_x: "elm.text.name";
261 text: "Someone on hold";
276 clip_to: "clipper.held";
278 state: "default" 0.0;
279 color: 255 255 255 255;
280 color_class: "light";
303 SEPARATOR("held1", "clipper.held", 0.0, -8, "elm.text.held");
309 action: STATE_SET "visible" 0.0;
310 transition: DECELERATE 0.3;
311 target: "clipper.held";
312 api: "held_show" "make held entry visible";
317 action: STATE_SET "default" 0.0;
318 transition: ACCELERATE 0.3;
319 target: "clipper.held";
320 api: "held_hide" "make held entry hidden";
325 SEPARATOR("actions", "clipper.actions", 0.0, -8, "bg.actions");
331 clip_to: "clipper.keypad-hidden";
333 state: "default" 0.0;
336 max: 720 99999; /* keep it tight centered */
351 name: "clipper.actions";
354 clip_to: "clipper.keypad-hidden";
356 state: "default" 0.0;
357 color: 255 255 255 0;
361 state: "visible" 0.0;
362 inherit: "default" 0.0;
363 color: 255 255 255 255;
369 name: "show,actions";
370 action: STATE_SET "visible" 0.0;
371 transition: DECELERATE 0.3;
372 target: "clipper.actions";
375 name: "hide,actions";
376 action: STATE_SET "default" 0.0;
377 transition: ACCELERATE 0.3;
378 target: "clipper.actions";
382 signal: "state,disconnected";
384 after: "hide,actions";
387 signal: "state,active";
389 after: "show,actions";
392 signal: "state,held";
394 after: "show,actions";
397 signal: "state,dialing";
399 after: "hide,actions";
402 signal: "state,alerting";
404 after: "hide,actions";
407 signal: "state,incoming";
409 after: "hide,actions";
413 #define ACTION_BUTTON(id, img, r1, r2) \
415 name: "clipper."##id; \
417 clip_to: "clipper.actions"; \
419 state: "default" 0.0; \
420 color: 255 255 255 255; \
421 rel1.to: "button."##id; \
422 rel2.to: "button."##id; \
425 state: "disabled" 0.0; \
426 inherit: "default" 0.0; \
427 color_class: "disabled"; \
430 state: "hidden" 0.0; \
431 inherit: "default" 0.0; \
432 color: 255 255 255 0; \
437 name: "button."##id; \
440 clip_to: "clipper."##id; \
442 state: "default" 0.0; \
443 color: 255 255 255 255; \
444 color_class: "action"; \
457 image.normal: "bt_"##img"_released.png"; \
460 state: "pressed" 0.0; \
461 inherit: "default" 0.0; \
462 color: 255 255 255 0; \
467 name: "button.over."##id; \
469 clip_to: "clipper."##id; \
472 state: "default" 0.0; \
473 color: 255 255 255 0; \
475 color_class: "action"; \
476 rel1.to: "button."##id; \
477 rel2.to: "button."##id; \
478 image.normal: "bt_"##img"_pressed.png"; \
481 state: "pressed" 0.0; \
482 inherit: "default" 0.0; \
483 color: 255 255 255 255; \
488 name: "blocker."##id; \
491 clip_to: "clipper."##id; \
493 state: "default" 0.0; \
496 rel1.to: "button."##id; \
497 rel2.to: "button."##id; \
500 state: "disabled" 0.0; \
501 inherit: "default" 0.0; \
507 signal: "mouse,up,1"; \
508 source: "button."##id; \
509 action: SIGNAL_EMIT "released,"##id "call"; \
510 after: "show_up_"##id; \
511 api: id"_released" id" was released"; \
514 name: "show_up_"##id; \
515 action: STATE_SET "default" 0.0; \
516 transition: DECELERATE 0.1; \
517 target: "button."##id; \
518 target: "button.over."##id; \
521 signal: "mouse,down,1"; \
522 source: "button."##id; \
523 after: "show_down_"##id; \
524 action: SIGNAL_EMIT "pressed,"##id "call"; \
525 api: id"_pressed" id" was pressed"; \
528 name: "show_down_"##id; \
529 action: STATE_SET "pressed" 0.0; \
530 transition: ACCELERATE 0.1; \
531 target: "button."##id; \
532 target: "button.over."##id; \
535 signal: "mouse,clicked,1"; \
536 source: "button."##id; \
537 action: SIGNAL_EMIT "clicked,"##id "call"; \
538 api: id"_clicked" id" was clicked"; \
541 signal: "disable,"##id; \
543 action: STATE_SET "disabled" 0.0; \
544 target: "blocker."##id; \
545 target: "clipper."##id; \
546 api: id"_disable" "disable "##id; \
549 signal: "enable,"##id; \
551 action: STATE_SET "default" 0.0; \
552 target: "blocker."##id; \
553 target: "clipper."##id; \
554 api: id"_enable" "enable "##id; \
558 #define ACTION_TOGGLE(id, img, r1, r2) \
560 name: "clipper."##id; \
562 clip_to: "clipper.actions"; \
564 state: "default" 0.0; \
565 color: 255 255 255 255; \
566 rel1.to: "button."##id; \
567 rel2.to: "button."##id; \
570 state: "disabled" 0.0; \
571 inherit: "default" 0.0; \
572 color_class: "disabled"; \
575 state: "hidden" 0.0; \
576 inherit: "default" 0.0; \
577 color: 255 255 255 0; \
582 name: "button."##id; \
585 clip_to: "clipper.toggle."##id; \
587 state: "default" 0.0; \
588 color: 255 255 255 255; \
589 color_class: "action"; \
602 image.normal: "bt_"##img"_released.png"; \
605 state: "pressed" 0.0; \
606 inherit: "default" 0.0; \
607 color: 255 255 255 0; \
612 name: "button.over."##id; \
614 clip_to: "clipper."##id; \
616 state: "default" 0.0; \
617 color: 255 255 255 0; \
619 color_class: "action"; \
620 rel1.to: "button."##id; \
621 rel2.to: "button."##id; \
622 image.normal: "bt_"##img"_pressed.png"; \
625 state: "pressed" 0.0; \
626 inherit: "default" 0.0; \
627 color: 255 255 255 255; \
632 name: "clipper.toggle."##id; \
634 clip_to: "clipper."##id; \
637 state: "default" 0.0; \
638 color: 255 255 255 255; \
643 inherit: "default" 0.0; \
644 color: 255 255 255 0; \
649 name: "button.toggle."##id; \
651 clip_to: "clipper."##id; \
654 state: "default" 0.0; \
655 color: 255 255 255 0; \
657 color_class: "action"; \
658 rel1.to: "button."##id; \
659 rel2.to: "button."##id; \
660 image.normal: "bt_"##img"_pressed.png"; \
664 inherit: "default" 0.0; \
665 color: 255 255 255 255; \
670 name: "blocker."##id; \
673 clip_to: "clipper."##id; \
675 state: "default" 0.0; \
678 rel1.to: "button."##id; \
679 rel2.to: "button."##id; \
682 state: "disabled" 0.0; \
683 inherit: "default" 0.0; \
689 signal: "mouse,up,1"; \
690 source: "button."##id; \
691 action: SIGNAL_EMIT "released,"##id "call"; \
692 api: id"_released" id" was released"; \
693 after: "show_up_"##id; \
696 name: "show_up_"##id; \
697 action: STATE_SET "default" 0.0; \
698 transition: DECELERATE 0.1; \
699 target: "button."##id; \
700 target: "button.over."##id; \
703 signal: "mouse,down,1"; \
704 source: "button."##id; \
705 after: "show_down_"##id; \
706 action: SIGNAL_EMIT "pressed,"##id "call"; \
707 api: id"_pressed" id" was pressed"; \
710 name: "show_down_"##id; \
711 action: STATE_SET "pressed" 0.0; \
712 transition: ACCELERATE 0.1; \
713 target: "button."##id; \
714 target: "button.over."##id; \
717 signal: "mouse,clicked,1"; \
718 source: "button."##id; \
719 action: SIGNAL_EMIT "clicked,"##id "call"; \
720 api: id"_clicked" id" was clicked"; \
723 signal: "mouse,clicked,1"; \
724 source: "button.toggle."##id; \
725 action: SIGNAL_EMIT "clicked,"##id "call"; \
726 api: id"_clicked" id" was clicked"; \
729 signal: "disable,"##id; \
731 action: STATE_SET "disabled" 0.0; \
732 target: "blocker."##id; \
733 target: "clipper."##id; \
734 api: id"_disable" "disable "##id; \
737 signal: "enable,"##id; \
739 action: STATE_SET "default" 0.0; \
740 target: "blocker."##id; \
741 target: "clipper."##id; \
742 api: id"_enable" "enable "##id; \
745 signal: "toggle,on,"##id; \
747 action: STATE_SET "on" 0.0; \
748 target: "clipper.toggle."##id; \
749 target: "button.toggle."##id; \
750 api: id"_toggle_on" "toggle on "##id; \
753 signal: "toggle,off,"##id; \
755 action: STATE_SET "default" 0.0; \
756 target: "clipper.toggle."##id; \
757 target: "button.toggle."##id; \
758 api: id"_toggle_off" "toggle off "##id; \
762 ACTION_TOGGLE("mute", "mute", 0.000000000 0.0, 0.333333333 0.5);
763 ACTION_BUTTON("keypad", "keypad", 0.333333333 0.0, 0.666666666 0.5);
764 ACTION_TOGGLE("speaker", "speaker", 0.666666666 0.0, 1.000000000 0.5);
766 ACTION_BUTTON("merge", "merge", 0.000000000 0.5, 0.333333333 1.0);
767 ACTION_BUTTON("swap", "swap", 0.333333333 0.5, 0.666666666 1.0);
768 ACTION_BUTTON("contacts", "contacts",0.666666666 0.5, 1.000000000 1.0);
772 SEPARATOR("answer", "clipper.answer", 0.0, -8, "button.answer");
773 SEPARATOR("hangup", "", 0.0, -8, "button.hangup");
776 name: "clipper.keypad-hidden";
778 clip_to: "clipper.waiting-hidden";
780 state: "default" 0.0;
781 color: 255 255 255 255;
785 state: "alternate" 0.0;
786 inherit: "default" 0.0;
787 color: 255 255 255 0;
792 name: "clipper.keypad-visible";
794 clip_to: "clipper.waiting-hidden";
796 state: "default" 0.0;
797 color: 255 255 255 0;
801 state: "alternate" 0.0;
802 inherit: "default" 0.0;
803 color: 255 255 255 255;
810 SEPARATOR("hide-keypad", "clipper.keypad-visible", 0.0, -8, "button.hide-keypad");
811 SEPARATOR("keypad", "clipper.keypad-visible", 0.0, -8, "bg.keypad");
817 clip_to: "clipper.keypad-visible";
819 state: "default" 0.0;
822 max: 720 680; /* keep it tight centered */
825 offset: 0 -688; /* separator */
826 to_y: "button.hide-keypad";
830 offset: 0 -9; /* separator */
831 to_y: "button.hide-keypad";
835 #define BUTTON(id, label, sub, ccls, r1, r2) \
837 name: "button."##id; \
840 clip_to: "clipper.keypad-visible"; \
842 state: "default" 0.0; \
843 color: 255 255 255 0; \
844 color_class: "action"; \
856 state: "pressed" 0.0; \
857 inherit: "default" 0.0; \
858 color: 255 255 255 255; \
862 name: "label."##id; \
865 clip_to: "clipper.keypad-visible"; \
867 state: "default" 0.0; \
868 color: 255 255 255 255; \
870 rel1.to: "button."##id; \
883 state: "pressed" 0.0; \
884 inherit: "default" 0.0; \
885 color: 16 16 16 255; \
892 clip_to: "clipper.keypad-visible"; \
894 state: "default" 0.0; \
895 color: 255 255 255 255; \
896 color_class: "light"; \
902 rel2.to: "button."##id; \
905 font: "Verdana:style=Bold"; \
911 state: "pressed" 0.0; \
912 inherit: "default" 0.0; \
913 color: 16 16 16 255; \
918 signal: "mouse,up,1"; \
919 source: "button."##id; \
920 action: SIGNAL_EMIT "released,"##id "call"; \
921 after: "show_up_"##id; \
922 api: id"_released" id" was released"; \
925 name: "show_up_"##id; \
926 action: STATE_SET "default" 0.0; \
927 transition: DECELERATE 0.1; \
928 target: "button."##id; \
929 target: "label."##id; \
930 target: "sub."##id; \
933 signal: "mouse,down,1"; \
934 source: "button."##id; \
935 after: "show_down_"##id; \
936 action: SIGNAL_EMIT "pressed,"##id "call"; \
937 api: id"_pressed" id" was pressed"; \
940 name: "show_down_"##id; \
941 action: STATE_SET "pressed" 0.0; \
942 transition: ACCELERATE 0.3; \
943 target: "button."##id; \
944 target: "label."##id; \
945 target: "sub."##id; \
948 signal: "mouse,clicked,1"; \
949 source: "button."##id; \
950 action: SIGNAL_EMIT "clicked,"##id "call"; \
951 api: id"_clicked" id" was clicked"; \
955 BUTTON("1", "1", "", "action", 0.000 0.0, 0.333 0.25);
956 BUTTON("2", "2", "ABC", "action", 0.333 0.0, 0.666 0.25);
957 BUTTON("3", "3", "DEF", "action", 0.666 0.0, 1.000 0.25);
959 BUTTON("4", "4", "GHI", "action", 0.000 0.25, 0.333 0.50);
960 BUTTON("5", "5", "JKL", "action", 0.333 0.25, 0.666 0.50);
961 BUTTON("6", "6", "MNO", "action", 0.666 0.25, 1.000 0.50);
963 BUTTON("7", "7", "PQRS", "action", 0.000 0.50, 0.333 0.75);
964 BUTTON("8", "8", "TUV", "action", 0.333 0.50, 0.666 0.75);
965 BUTTON("9", "9", "WXYZ", "action", 0.666 0.50, 1.000 0.75);
967 BUTTON("star", "*", "", "light", 0.000 0.75, 0.333 1.00);
968 BUTTON("0", "0", "+", "action", 0.333 0.75, 0.666 1.00);
969 BUTTON("hash", "#", "", "light", 0.666 0.75, 1.000 1.00);
973 name: "area.hide-keypad";
976 clip_to: "clipper.keypad-visible";
978 state: "default" 0.0;
982 to_y: "button.hangup";
987 to_y: "button.hangup";
993 state: "alternate" 0.0;
994 inherit: "default" 0.0;
997 to_y: "button.hangup";
999 offset: 0 -8; /* separator */
1002 to_y: "button.hangup";
1004 offset: -1 -9; /* separator */
1009 name: "button.hide-keypad";
1012 clip_to: "clipper.keypad-visible";
1014 state: "default" 0.0;
1015 color: 255 255 255 0;
1016 color_class: "action";
1017 rel1.to_y: "area.hide-keypad";
1018 rel2.to_y: "area.hide-keypad";
1021 state: "pressed" 0.0;
1022 inherit: "default" 0.0;
1023 color: 255 255 255 255;
1027 name: "label.hide-keypad";
1030 clip_to: "clipper.keypad-visible";
1032 state: "default" 0.0;
1033 color: 255 255 255 255;
1034 color_class: "action";
1035 rel1.to: "button.hide-keypad";
1036 rel2.to: "button.hide-keypad";
1038 text: "Hide Keypad";
1045 state: "pressed" 0.0;
1046 inherit: "default" 0.0;
1052 signal: "mouse,up,1";
1053 source: "button.hide-keypad";
1054 action: STATE_SET "default" 0.0;
1055 transition: DECELERATE 0.1;
1056 target: "button.hide-keypad";
1057 target: "label.hide-keypad";
1060 signal: "mouse,down,1";
1061 source: "button.hide-keypad";
1062 action: STATE_SET "pressed" 0.0;
1063 transition: ACCELERATE 0.3;
1064 target: "button.hide-keypad";
1065 target: "label.hide-keypad";
1069 name: "hide-keypad-phase1";
1070 signal: "mouse,clicked,1";
1071 source: "button.hide-keypad";
1072 action: STATE_SET "default" 0.0;
1073 transition: ACCELERATE 0.3;
1074 target: "clipper.keypad-visible";
1075 target: "area.hide-keypad";
1076 after: "hide-keypad-phase2";
1079 name: "hide-keypad-phase2";
1080 action: STATE_SET "default" 0.0;
1081 transition: ACCELERATE 0.3;
1082 target: "clipper.keypad-hidden";
1086 name: "show-keypad-phase1";
1087 signal: "mouse,clicked,1";
1088 source: "button.keypad";
1089 action: STATE_SET "alternate" 0.0;
1090 transition: ACCELERATE 0.3;
1091 target: "clipper.keypad-hidden";
1092 after: "show-keypad-phase2";
1095 name: "show-keypad-phase2";
1096 action: STATE_SET "alternate" 0.0;
1097 transition: ACCELERATE 0.3;
1098 target: "area.hide-keypad";
1099 target: "clipper.keypad-visible";
1108 clip_to: "clipper.keypad-hidden";
1110 state: "default" 0.0;
1112 rel1.to: "area.answer";
1113 rel2.to: "button.hangup";
1118 name: "clipper.answer";
1121 clip_to: "clipper.keypad-hidden";
1123 state: "default" 0.0;
1124 color: 255 255 255 0;
1128 state: "visible" 0.0;
1129 inherit: "default" 0.0;
1130 color: 255 255 255 255;
1135 name: "area.answer";
1138 clip_to: "clipper.answer";
1140 state: "default" 0.0;
1143 rel1.to_y: "button.hangup";
1144 rel2.to_y: "button.hangup";
1147 state: "visible" 0.0;
1148 inherit: "default" 0.0;
1151 to_y: "button.hangup";
1153 offset: 0 -8; /* separator */
1156 to_y: "button.hangup";
1158 offset: -1 -9; /* separator */
1163 name: "button.answer";
1166 clip_to: "clipper.answer";
1168 state: "default" 0.0;
1169 color: 255 255 255 0;
1170 color_class: "action";
1171 rel1.to_y: "area.answer";
1172 rel2.to_y: "area.answer";
1175 state: "pressed" 0.0;
1176 inherit: "default" 0.0;
1177 color: 255 255 255 255;
1181 name: "label.answer";
1184 clip_to: "clipper.answer";
1186 state: "default" 0.0;
1187 color: 255 255 255 255;
1188 color_class: "action";
1189 rel1.to: "button.answer";
1190 rel2.to: "button.answer";
1199 state: "pressed" 0.0;
1200 inherit: "default" 0.0;
1206 signal: "mouse,up,1";
1207 source: "button.answer";
1208 action: SIGNAL_EMIT "released,answer" "call";
1209 after: "show_up_answer";
1210 api: "answer_released" "answer was released";
1213 name: "show_up_answer";
1214 action: STATE_SET "default" 0.0;
1215 transition: DECELERATE 0.1;
1216 target: "button.answer";
1217 target: "label.answer";
1220 signal: "mouse,down,1";
1221 source: "button.answer";
1222 after: "show_down_answer";
1223 action: SIGNAL_EMIT "pressed,answer" "call";
1224 api: "answer_pressed" "answer was pressed";
1227 name: "show_down_answer";
1228 action: STATE_SET "pressed" 0.0;
1229 transition: ACCELERATE 0.3;
1230 target: "button.answer";
1231 target: "label.answer";
1234 signal: "mouse,clicked,1";
1235 source: "button.answer";
1236 action: SIGNAL_EMIT "clicked,answer" "call";
1237 api: "answer_clicked" "answer was clicked";
1241 signal: "show,answer";
1243 action: STATE_SET "visible" 0.0;
1244 target: "area.answer";
1245 target: "clipper.answer";
1246 api: "answer_show" "make answer button visible";
1249 signal: "hide,answer";
1251 action: STATE_SET "default" 0.0;
1252 target: "area.answer";
1253 target: "clipper.answer";
1254 api: "answer_hide" "make answer button hidden";
1259 name: "button.hangup";
1262 clip_to: "clipper.waiting-hidden";
1264 state: "default" 0.0;
1265 color: 255 255 255 255;
1277 state: "pressed" 0.0;
1278 inherit: "default" 0.0;
1279 color_class: "caution";
1283 name: "label.hangup";
1286 clip_to: "clipper.waiting-hidden";
1288 state: "default" 0.0;
1289 color: 255 255 255 255;
1290 color_class: "caution";
1291 rel1.to: "button.hangup";
1292 rel2.to: "button.hangup";
1301 state: "pressed" 0.0;
1302 inherit: "default" 0.0;
1308 signal: "mouse,up,1";
1309 source: "button.hangup";
1310 action: SIGNAL_EMIT "released,hangup" "call";
1311 api: "hangup_released" "hangup was released";
1312 after: "show_up_hangup";
1315 name: "show_up_hangup";
1316 action: STATE_SET "default" 0.0;
1317 transition: DECELERATE 0.1;
1318 target: "button.hangup";
1319 target: "label.hangup";
1322 signal: "mouse,down,1";
1323 source: "button.hangup";
1324 after: "show_down_hangup";
1325 action: SIGNAL_EMIT "pressed,hangup" "call";
1326 api: "hangup_pressed" "hangup was pressed";
1329 name: "show_down_hangup";
1330 action: STATE_SET "pressed" 0.0;
1331 transition: ACCELERATE 0.3;
1332 target: "button.hangup";
1333 target: "label.hangup";
1336 signal: "mouse,clicked,1";
1337 source: "button.hangup";
1338 action: SIGNAL_EMIT "clicked,hangup" "call";
1339 api: "hangup_clicked" "hangup was clicked";
1345 name: "clipper.waiting-hidden";
1348 state: "default" 0.0;
1349 color: 255 255 255 255;
1353 state: "alternate" 0.0;
1354 inherit: "default" 0.0;
1355 color: 255 255 255 0;
1360 name: "clipper.waiting-visible";
1363 state: "default" 0.0;
1364 color: 255 255 255 0;
1368 state: "alternate" 0.0;
1369 inherit: "default" 0.0;
1370 color: 255 255 255 255;
1375 name: "area.waiting";
1378 clip_to: "clipper.waiting-visible";
1380 state: "default" 0.0;
1381 color: 255 255 255 255;
1398 state: "alternate" 0.0;
1399 inherit: "default" 0.0;
1412 #define BUTTON(id, label, colcls, y1, y2) \
1413 SEPARATOR(id, "clipper.waiting-visible", 0.0, -8, "button."##id); \
1415 name: "button."##id; \
1418 clip_to: "clipper.waiting-visible"; \
1420 state: "default" 0.0; \
1421 color: 255 255 255 0; \
1422 color_class: colcls; \
1424 to: "area.waiting"; \
1425 relative: 0.0 0.0; \
1429 to: "area.waiting"; \
1430 relative: 1.0 0.0; \
1435 state: "pressed" 0.0; \
1436 inherit: "default" 0.0; \
1437 color: 255 255 255 255; \
1441 name: "label."##id; \
1444 clip_to: "clipper.waiting-visible"; \
1446 state: "default" 0.0; \
1447 color: 255 255 255 255; \
1448 color_class: colcls; \
1450 to: "button."##id; \
1454 to: "button."##id; \
1465 state: "pressed" 0.0; \
1466 inherit: "default" 0.0; \
1467 color_class: "bg"; \
1472 signal: "mouse,up,1"; \
1473 source: "button."##id; \
1474 action: SIGNAL_EMIT "released,"##id "call"; \
1475 api: id"_released" id" was released"; \
1476 after: "show_up_"##id; \
1479 name: "show_up_"##id; \
1480 action: STATE_SET "default" 0.0; \
1481 transition: DECELERATE 0.1; \
1482 target: "button."##id; \
1483 target: "label."##id; \
1486 signal: "mouse,down,1"; \
1487 source: "button."##id; \
1488 after: "show_down_"##id; \
1489 action: SIGNAL_EMIT "pressed,"##id "call"; \
1490 api: id"_pressed" id" was pressed"; \
1493 name: "show_down_"##id; \
1494 action: STATE_SET "pressed" 0.0; \
1495 transition: ACCELERATE 0.3; \
1496 target: "button."##id; \
1497 target: "label."##id; \
1500 signal: "mouse,clicked,1"; \
1501 source: "button."##id; \
1502 action: SIGNAL_EMIT "clicked,"##id "call"; \
1503 api: id"_clicked" id" was clicked"; \
1507 BUTTON("waiting-hangup", "Decline", "action", 186, 355);
1508 BUTTON("hold-answer", "Hold + Answer", "action", 364, 533);
1509 BUTTON("hangup-answer", "Hangup + Answer", "caution", 542, 711);
1512 SEPARATOR("waiting", "clipper.waiting-visible", 0.0, 0, "area.waiting");
1514 name: "elm.text.waiting";
1518 clip_to: "clipper.waiting-visible";
1519 api: "waiting" "waiting call name";
1521 state: "default" 0.0;
1522 color: 255 255 255 255;
1523 color_class: "disabled";
1547 name: "hide-waiting-phase1";
1548 signal: "hide,waiting";
1550 action: STATE_SET "default" 0.0;
1551 transition: ACCELERATE 0.3;
1552 target: "clipper.waiting-visible";
1553 target: "area.waiting";
1554 after: "hide-waiting-phase2";
1555 api: "waiting_hide" "make waiting popup hidden";
1558 name: "hide-waiting-phase2";
1559 action: STATE_SET "default" 0.0;
1560 transition: ACCELERATE 0.3;
1561 target: "clipper.waiting-hidden";
1565 name: "show-waiting-phase1";
1566 signal: "show,waiting";
1568 action: STATE_SET "alternate" 0.0;
1569 transition: ACCELERATE 0.3;
1570 target: "clipper.waiting-hidden";
1571 after: "show-waiting-phase2";
1572 api: "waiting_show" "make waiting popup visible";
1575 name: "show-waiting-phase2";
1576 action: STATE_SET "alternate" 0.0;
1577 transition: ACCELERATE 0.3;
1578 target: "area.waiting";
1579 target: "clipper.waiting-visible";