Modify the screen UI for stt mode and refactoring code
[platform/core/uifw/inputdelegator.git] / res / wearable / edje / w-input-stt.edc
1 #include "w-input-stt-button.edc"
2
3 #define VOICE_CANDIDATE_AREA_HEIGHT 56
4 #define BUTTON_TEXT_SIZE_INC 80
5
6 collections
7 {
8         base_scale: 1.3;
9
10         plugins {
11            plugin {
12                   name: "touch_sound";
13                   source: "feedback";
14                   param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP";
15                   /* 2014.06.11 updated from libsvi(feedback)
16                    Above plugin will run below external function:
17                    int feedback_play_type(feedback_type_e type, feedback_pattern_e pattern);
18
19                    param1: feedback_type_e
20                    FEEDBACK_TYPE_NONE = 0,
21                    FEEDBACK_TYPE_SOUND = 1,
22                    FEEDBACK_TYPE_VIBRATION,
23                    FEEDBACK_TYPE_LED,
24                    FEEDBACK_TYPE_END
25
26                    * param2 enumeration:
27                    FEEDBACK_PATTERN_TAP = 0,
28                    FEEDBACK_PATTERN_SIP,
29                    FEEDBACK_PATTERN_SIP_BACKSPACE,
30                    FEEDBACK_PATTERN_SIP_FUNCTION,
31                    FEEDBACK_PATTERN_SIP_FJKEY,
32                    ...
33
34                    * Fore information, please refer the libsvi libraries.
35                    * git: slp-info.sec.samsung.net:29418/magnolia/framework/system/libsvi
36                    * web: http://slp-info.sec.samsung.net/gerrit/plugins/gitiles/magnolia/framework/system/libsvi
37                    */
38            }
39         }
40
41         images {
42                 // MIC
43                 image, "./bg/B13_mic_bg.png" COMP;
44                 image, "./icon/B13_mic.png" COMP;
45                 image, "./icon/B13_mic_Que.png" COMP;
46                 image, "./icon/B13_mic_Que_01.png" COMP;
47                 image, "./icon/B13_mic_procecessing_bg.png" COMP;
48
49                 image, "./input_ic_voice_mic.png" COMP;
50                 image, "./w_sip_mask_bg.png" COMP;
51                 image, "./tw_bottom_btn_bg.png" COMP;
52
53                 image, "./w_mode_ic_bg.png" COMP;
54                 image, "./wi_drawing_bg.png" COMP;
55
56                 image, "./b_stt_text_fade_out.png" COMP;
57                 image, "./b_stt_icon_btn.png" COMP;
58                 image, "./b_stt_confirm_icon.png" COMP;
59                 image, "./b_stt_send_icon.png" COMP;
60                 image, "./wi_stt_icon_error.png" COMP;
61         }
62
63         color_classes 
64         {
65            color_class 
66            {
67               name: "AO013";
68               color: 68 71 77 100;
69            }
70            color_class 
71            {
72               name: "AO014";
73               color: 0 0 0 100;
74            }
75            color_class 
76            {
77               name: "AO014P";
78               color: 0 0 0 100;
79            }
80            color_class 
81            {
82               name: "AO014D";
83               color: 0 0 0 35;
84            }
85            color_class 
86            {
87               name: "AO015L1";
88               color: 0 0 0 100;
89            }
90            color_class 
91            {
92               name: "AO015L1P";
93               color: 0 0 0 50;
94            }
95            color_class 
96            {
97               name: "AO015L1D";
98               color: 0 0 0 40;
99            }
100            color_class 
101            {
102               name: "AO0151";
103               color: 0 0 0 100;
104            }
105            color_class 
106            {
107               name: "AO0151P";
108               color: 0 0 0 50;
109            }
110            color_class 
111            {
112               name: "AO0151D";
113               color: 0 0 0 20;
114            }
115            color_class 
116            {
117               name: "AO0152";
118               color: 0 0 0 100;
119            }
120            color_class 
121            {
122               name: "AO015L2";
123               color: 0 0 0 100;
124            }
125            color_class 
126            {
127               name: "AO015L2P";
128               color: 0 0 0 50;
129            }
130            color_class 
131            {
132               name: "AO015L2D";
133               color: 0 0 0 40;
134            }
135            color_class 
136            {
137               name: "AO015L3";
138               color: 0 0 0 100;
139            }
140            color_class 
141            {
142               name: "AO01151";
143               color: 0 0 0 100;
144            }
145            color_class 
146            {
147               name: "AO01153L1";
148               color: 0 0 255 255;
149            }
150            color_class 
151            {
152               name: "AO01153L1P";
153               color: 61 61 61 100;
154            }
155            color_class 
156            {
157               name: "AO01153L1D";
158               color: 163 163 163 100;
159            }
160            color_class 
161            {
162               name: "AO01154L1";
163               color: 97 12 117 255;
164            }
165            color_class 
166            {
167               name: "AO01154L1P";
168               color: 41 41 41 100;
169            }
170            color_class 
171            {
172               name: "AO01154L1D";
173               color: 110 110 110 100;
174            }
175            color_class 
176            {
177               name: "AO01155L1";
178               color: 255 0 0 255;
179            }
180            color_class 
181            {
182               name: "AO01155L1P";
183               color: 33 33 33 100;
184            }
185            color_class 
186            {
187               name: "AO01155L1D";
188               color: 122 122 122 100;
189            }
190            color_class 
191            {
192               name: "AO01153L2";
193               color: 18 18 18 30;
194            }
195            color_class 
196            {
197               name: "AO01153L3";
198               color: 0 0 0 100;
199            }
200            color_class 
201            {
202               name: "AO01153L3P";
203               color: 0 0 0 100;
204            }
205            color_class 
206            {
207               name: "AO01153L3D";
208               color: 0 0 0 40;
209            }
210            color_class 
211            {
212               name: "AO0116";
213               color: 0 0 0 100;
214            }
215            color_class 
216            {
217               name: "AO0116P";
218               color: 0 0 0 50;
219            }
220            color_class 
221            {
222               name: "AO0116D";
223               color: 0 0 0 30;
224            }
225            color_class 
226            {
227               name: "AO01161";
228               color: 64 64 64 100;
229            }
230            color_class 
231            {
232               name: "AO01161P";
233               color: 38 38 38 100;
234            }
235            color_class 
236            {
237               name: "AO01161D";
238               color: 26 26 26 100;
239            }
240            color_class 
241            {
242               name: "AO0117";
243               color: 0 0 0 100;
244            }
245            color_class 
246            {
247               name: "AO0118";
248               color: 0 0 0 100;
249            }
250            color_class 
251            {
252               name: "AO0119";
253               color: 0 0 0 100;
254            }
255            color_class 
256            {
257               name: "AO0119P";
258               color: 0 0 0 100;
259            }
260            color_class 
261            {
262               name: "AO0119D";
263               color: 0 0 0 5;
264            }
265            color_class 
266            {
267               name: "AO031";
268               color: 0 0 0 100;
269            }
270            color_class 
271            {
272               name: "AO031P";
273               color: 0 0 0 40;
274            }
275            color_class 
276            {
277               name: "AO031L1";
278               color: 0 0 0 41;
279            }
280            color_class 
281            {
282               name: "AO031L1P";
283               color: 0 0 0 70;
284            }
285            color_class 
286            {
287               name: "AO0331";
288               color: 0 0 0 50;
289            }
290            color_class 
291            {
292               name: "AO0332";
293               color: 0 0 0 100;
294            }
295            color_class 
296            {
297               name: "AO034";
298               color: 102 102 102 100;
299            }
300            color_class 
301            {
302               name: "AO034P";
303               color: 0 0 0 100;
304            }
305            color_class 
306            {
307               name: "AO034D";
308               color: 0 0 0 30;
309            }
310            color_class 
311            {
312               name: "AO035";
313               color: 5 5 5 100;
314            }
315            color_class 
316            {
317               name: "AO0351";
318               color: 0 0 0 15;
319            }
320            color_class 
321            {
322               name: "AO036";
323               color: 0 0 0 100;
324            }
325            color_class 
326            {
327               name: "AO0361";
328               color: 0 0 0 50;
329            }
330            color_class 
331            {
332               name: "AO037";
333               color: 10 10 10 100;
334            }
335            color_class 
336            {
337               name: "AO037P";
338               color: 0 0 0 100;
339            }
340            color_class 
341            {
342               name: "AO037S";
343               color: 0 0 0 100;
344            }
345            color_class 
346            {
347               name: "AO038";
348               color: 0 0 0 100;
349            }
350            color_class 
351            {
352               name: "AO038P";
353               color: 0 0 0 50;
354            }
355            color_class 
356            {
357               name: "AO038D";
358               color: 0 0 0 40;
359            }
360            color_class 
361            {
362               name: "AT0113";
363               color: 0 0 0 100;
364            }
365            color_class 
366            {
367               name: "AT0113P";
368               color: 0 0 0 100;
369            }
370            color_class 
371            {
372               name: "AT0113D";
373               color: 0 0 0 70;
374            }
375            color_class 
376            {
377               name: "AT0113S";
378               color: 0 0 0 100;
379            }
380            color_class 
381            {
382               name: "AT0114";
383 #             color: 0 0 0 100;
384               color: 128 128 128 100;
385            }
386            color_class 
387            {
388               name: "AT0114D";
389               color: 0 0 0 5;
390            }
391            color_class 
392            {
393               name: "AT02111";
394               color: 0 0 0 100;
395            }
396            color_class 
397            {
398               name: "AT02112";
399               color: 0 0 0 100;
400            }
401            color_class 
402            {
403               name: "AT02113";
404               color: 10 10 10 100;
405            }
406            color_class 
407            {
408               name: "AT021";
409               color: 0 0 0 100;
410            }
411            color_class 
412            {
413               name: "AT022";
414               color: 0 0 0 100;
415            }
416            color_class 
417            {
418               name: "AT023";
419               color: 0 0 0 100;
420            }
421            color_class 
422            {
423               name: "AT023P";
424               color: 0 0 0 50;
425            }
426            color_class 
427            {
428               name: "AT023D";
429               color: 0 0 0 40;
430            }
431            color_class
432            {
433               name: "AO0391";
434               color: 0 151 207 100;
435            }
436            color_class
437            {
438               name: "AO0391P";
439               color: 0 0 0 50;
440            }
441            color_class
442            {
443               name: "AO0391D";
444               color: 0 0 0 40;
445            }
446         }
447
448         styles
449         {
450                 style { name, "textblock_style";
451                         base, "font=Tizen:style=Regular font_size=36 align=center color=#FFFFFF  text_class=text_class wrap=word ellipsis=1.0";
452                         tag,  "br" "\n";
453                         tag,  "ps" "ps";
454                         tag,  "hilight" "+ font=Tizen:style=Bold";
455                         tag,  "b" "+ font=Tizen:style=Bold";
456                         tag,  "tab" "\t";
457                 }
458                 style { name, "textblock_style_bottom";
459                         base, "font=Tizen:style=Regular font_size=36 align=center color=#FFFFFF  text_class=text_class wrap=word ellipsis=1.0";
460                         tag,  "br" "\n";
461                         tag,  "ps" "ps";
462                         tag,  "hilight" "+ font=Tizen:style=Bold";
463                         tag,  "b" "+ font=Tizen:style=Bold";
464                         tag,  "tab" "\t";
465                 }
466                 style { name: "button_general_text_normal";
467                         base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF ellipsis=0.0 wrap=mixed";
468                 }
469                 style { name: "button_general_text_dim";
470                         base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF ellipsis=0.0 wrap=mixed";
471                 }
472                 style { name: "button_general_text_press";
473                         base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#888888 ellipsis=0.0 wrap=mixed";
474                 }
475                 style { name: "button_send_text_normal";
476                         base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF color_class=AT0117 ellipsis=0.0 wrap=mixed";
477                 }
478                 style { name: "button_cue_text_normal";
479                         base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_SIZE_INC" align=center color=#FFFFFF color_class=AT032 ellipsis=0.0 wrap=mixed";
480                 }
481                 style { name: "button_bottom_text_normal";
482                         base: "font=Tizen:style=Regular font_size=26 align=center color=#FFFFFF color_class=AT0118";
483                 }
484         }
485
486         group
487         {
488                 name, "mic_control";
489                 parts
490                 {
491                         part
492                         {
493                                 name, "bg";
494                                 type, RECT;
495                                 scale, 1;
496                                 description
497                                 {
498                                         state, "default" 0.0;
499                                         rel1
500                                         {
501                                                 relative, 0.0 0.0;
502                                         }
503                                         rel2
504                                         {
505                                                 relative, 1.0 1.0;
506                                         }
507                                         visible: 1;
508                                         color_class, "AO0118";
509                                 }
510                         }
511                         part
512                         {
513                                 name, "access_bg";
514                                 type, SWALLOW;
515                                 scale, 1;
516                                 description
517                                 {
518                                         state, "default" 0.0;
519                                         visible, 1;
520                                         min, 360 360;
521                                         max, 360 360;
522                                         rel1.to, "bg";
523                                         rel2.to, "bg";
524                                 }
525                         }
526                         part
527                         {
528                                 name, "top_block";
529                                 type, SPACER;
530                                 scale, 1;
531                                 description
532                                 {
533                                         state, "default" 0.0;
534                                         min, 360 (360-103);
535                                         align, 0.5 0;
536                                         rel1
537                                         {
538                                                 relative, 0.0 0.0;
539                                                 to, "bg";
540                                         }
541                                         rel2
542                                         {
543                                                 relative, 1.0 0.0;
544                                                 to, "bg";
545                                         }
546                                 }
547                                 description
548                                 {
549                                         state, "hide" 0.0;
550                                         min, 360 360;
551                                         align, 0.5 0;
552                                         rel1
553                                         {
554                                                 relative, 0.0 0.0;
555                                                 to, "bg";
556                                         }
557                                         rel2
558                                         {
559                                                 relative, 1.0 0.0;
560                                                 to, "bg";
561                                         }
562                                 }
563
564                         }
565
566                         part
567                         {
568                                 name, "text_area";
569                                 type, SWALLOW;
570                                 description
571                                 {
572                                         state, "default" 0.0;
573                                         align, 0.5 1;
574                                         min, 282 360;
575                                         max, 282 360;
576
577                                         rel1
578                                         {
579                                                 relative, 39/360 1;
580                                                 to, "bg";
581                                         }
582                                         rel2
583                                         {
584                                                 relative, 321/360 1;
585                                                 to, "bg";
586                                         }
587                                 }
588                         }
589                         part
590                         {
591                                 name, "left_panel_area";
592                                 type, SWALLOW;
593                                 description
594                                 {
595                                         state, "default" 0.0;
596                                         align, 0.5 0.5;
597                                         rel1
598                                         {
599                                                 relative, 0.0 0.0;
600                                                 to, "bg";
601                                         }
602                                         rel2
603                                         {
604                                                 relative, 1.0 1.0;
605                                                 to, "bg";
606                                         }
607                                 }
608                         }
609
610
611                         part
612                         {
613                                 name, "background";
614                                 type, IMAGE;
615                                 scale, 1;
616                                 description
617                                 {
618                                         state, "default" 0.0;
619                                         min, 360 78;
620                                         max, 360 78;
621                                         rel1
622                                         {
623                                                 relative, 0 (360-78)/360;
624                                                 to, "bg";
625                                         }
626                                         rel2
627                                         {
628                                                 relative, 1 1;
629                                                 to, "bg";
630                                         }
631                                         image.normal, "./tw_bottom_btn_bg.png";
632                                         color: 128 128 128 128;
633                                 }
634                                 description
635                                 {
636                                         state, "hide" 0.0;
637                                         min, 360 78;
638                                         max, 360 78;
639                                         rel1
640                                         {
641                                                 relative, 0 1;
642                                                 to, "bg";
643                                         }
644                                         rel2
645                                         {
646                                                 relative, 1 (360+78)/360;
647                                                 to, "bg";
648                                         }
649                                         image.normal, "./tw_bottom_btn_bg.png";
650                                         color: 128 128 128 128;
651                                 }
652
653                                 description
654                                 {
655                                         state, "pressed" 0.0;
656                                         inherit, "default" 0.0;
657                                         color: 128 128 128 128;
658                                 }
659                                 description
660                                 {
661                                         state, "dim" 0.0;
662                                         inherit, "default" 0.0;
663                                         color: 128 128 128 128;
664                                 }
665                         }
666
667                         part
668                         {
669                                 name, "EFFECT_BG_AREA";
670                                 type, SPACER;
671                                 description
672                                 {
673                                         state, "default" 0.0;
674                                         min, 0 64;
675                                         max, 360 64;
676                                         align, 0.5 1;
677                                         rel1
678                                         {
679                                                 relative, 0 1;
680                                                 to, "bg";
681                                                 offset, 0 -1;
682                                         }
683                                         rel2
684                                         {
685                                                 relative, 1 1;
686                                                 to, "bg";
687                                                 offset, 0 -1;
688                                         }
689                                 }
690
691                                 description
692                                 {
693                                         state, "hide" 0.0;
694                                         min, 0 64;
695                                         max, 360 64;
696                                         align, 0.5 1;
697                                         rel1
698                                         {
699                                                 relative, 0 (360+64)/360;
700                                                 to, "bg";
701                                                 offset, 0 +13;
702                                         }
703                                         rel2
704                                         {
705                                                 relative, 1 (360+64)/360;
706                                                 to, "bg";
707                                                 offset, 0 +13;
708                                         }
709
710                                 }
711
712                         }
713                         part
714                         {
715                                 name, "EFFECT_BG";
716                                 type, SWALLOW;
717                                 description
718                                 {
719                                         state, "default" 0.0;
720                                         visible, 0;
721                                         rel1
722                                         {
723                                                 relative, 0 0;
724                                                 to, "EFFECT_BG_AREA";
725                                         }
726                                         rel2
727                                         {
728                                                 relative, 1 1;
729                                                 to, "EFFECT_BG_AREA";
730                                         }
731                                 }
732                                 description
733                                 {
734                                         state, "default" 0.1;
735                                         inherit, "default" 0.0;
736                                         visible, 1;
737                                 }
738                         }
739
740                         //Part for mic button
741                         part
742                         {
743                                 name, "BOTTOM_BUTTON";
744                                 type, SWALLOW;
745                                 scale, 1;
746                                 description
747                                 {
748                                         state, "default" 0.0;
749                                         visible, 1;
750                                         min, 290 78;
751                                         max, 290 78;
752                                         rel1
753                                         {
754                                                 relative, 35/360 0.0;
755                                                 to, "background";
756                                         }
757                                         rel2
758                                         {
759                                                 relative, 325/360 1.0;
760                                                 to, "background";
761                                         }
762                                 }
763                         }
764                         part
765                         {
766                                 name, "PROGRESS_BAR";
767                                 type, SWALLOW;
768                                 scale, 1;
769                                 description
770                                 {
771                                         state, "default" 0.0;
772                                         min, 50 50;
773                                         max, 50 50;
774                                         visible, 0;
775                                         rel1
776                                         {
777                                                 relative, 155/360 27/100;
778                                                 to, "background";
779                                         }
780                                         rel2
781                                         {
782                                                 relative, 205/360 77/100;
783                                                 to, "background";
784                                         }
785                                 }
786                                 description
787                                 {
788                                         state, "message" 0.0;
789                                         inherit, "default" 0.0;
790                                 }
791                                 description
792                                 {
793                                         state, "processing" 0.0;
794                                         inherit, "default" 0.0;
795                                         visible, 1;
796                                 }
797                                 }
798
799                         part
800                         {
801                                 name, "cue_text_block";
802                                 type, SPACER;
803                                 description
804                                 {
805                                         state, "default" 0.0;
806                                         align, 0.5 0;
807                                         rel1
808                                         {
809                                                 relative, 30/360 158/360;
810                                                 to, "bg";
811                                         }
812                                         rel2
813                                         {
814                                                 relative, (360-30)/360 (158+43)/360;
815                                                 to, "bg";
816                                         }
817                                 }
818                         }
819
820                         part
821                         {
822                                 name, "elm.text.cue";
823                                 type, TEXTBLOCK;
824                                 mouse_events, 0;
825                                 scale, 1;
826                                 description
827                                 {
828                                         state, "default" 0.0;
829                                         visible, 0;
830                                         rel1.to, "cue_text_block";
831                                         rel2.to, "cue_text_block";
832                                         text
833                                         {
834                                                 fit: 1 1;
835                                                 style, "button_cue_text_normal";
836                                         }
837                                 }
838                                 description
839                                 {
840                                         state, "show" 0.0;
841                                         visible, 1;
842                                         align, 0.5 0.6;
843                                         rel1.to, "cue_text_block";
844                                         rel2.to, "cue_text_block";
845                                         text
846                                         {
847                                                 fit: 1 1;
848                                                 style, "button_cue_text_normal";
849                                         }
850                                 }
851                         }
852
853                         part
854                         {
855                                 name, "guide_text_block_left_padding";
856                                 type, SPACER;
857                                 description
858                                 {
859                                         state, "default" 0.0;
860                                         min, (80+28+8) 0;
861                                         max, (80+28+8) -1;
862                                         fixed, 1 0;
863                                         align, 0.0 0.0;
864                                         rel1
865                                         {
866                                                 relative, 0 (360-70)/360;
867                                                 to, "bg";
868                                         }
869                                         rel2
870                                         {
871                                                 relative, 0 (360-33)/360;
872                                                 to, "bg";
873                                 }
874                         }
875
876                         }
877                         part
878                         {
879                                 name, "guide_text_block_right_padding";
880                                 type, SPACER;
881                                 description
882                                 {
883                                         state, "default" 0.0;
884                                         min, 80 0;
885                                         max, 80 -1;
886                                         fixed, 1 0;
887                                         align, 1.0 0.0;
888                                         rel1
889                                         {
890                                                 relative, 1 (360-70)/360;
891                                                 to, "bg";
892                                         }
893                                         rel2
894                                         {
895                                                 relative, 1 (360-33)/360;
896                                                 to, "bg";
897                                         }
898                                 }
899
900                         }
901
902                         part
903                         {
904                                 name, "guide_text_block";
905                                 type, SPACER;
906                                 description
907                                 {
908                                         state, "default" 0.0;
909                                         align, 0.5 0;
910                                         rel1
911                                         {
912                                                 relative, 1.0 0.0;
913                                                 to, "guide_text_block_left_padding";
914                                         }
915                                         rel2
916                                         {
917                                                 relative, 0.0 1.0;
918                                                 to, "guide_text_block_right_padding";
919                                         }
920                                 }
921
922                         }
923                         part
924                         {
925                                 name, "elm.text";
926                                 type, TEXTBLOCK;
927                                 mouse_events, 0;
928                                 scale, 1;
929                                 description
930                                 {
931                                         state, "default" 0.0;
932                                         min, 0 37;
933                                         max, -1 37;
934                                         fixed, 0 1;
935                                         align, 0.5 0.5;
936                                         text {
937                                                 min, 0 1;
938                                                 max, 1 1;
939                                                 ellipsis, -1.0;
940                                                 fade_ellipsis, 1.0;
941                                                 style, "button_bottom_text_normal";
942                                         }
943                                         visible, 0;
944                                         rel1
945                                         {
946                                                 relative, 0.0 0.0;
947                                                 to, "guide_text_block";
948                                         }
949                                         rel2
950                                         {
951                                                 relative, 1.0 1.0;
952                                                 to, "guide_text_block";
953                                         }
954                                 }
955                                 description
956                                 {
957                                         state, "show" 0.0;
958                                         inherit, "default";
959                                         visible, 1;
960                                 }
961                                 }
962                         part
963                         {
964                                 name, "guide_text_block_icon_padding";
965                                 type, SPACER;
966                                 description
967                                 {
968                                         state, "default" 0.0;
969                                         min, 8 0;
970                                         max, 8 -1;
971                                         fixed, 1 0;
972                                         align, 1.0 0.0;
973                                         rel1
974                                         {
975                                                 relative, 0 0;
976                                                 to, "elm.text";
977                                         }
978                                         rel2
979                                         {
980                                                 relative, 0 1;
981                                                 to, "elm.text";
982                                 }
983                         }
984
985                         }
986                         part
987                         {
988                                 name, "error_icon";
989                                 type, IMAGE;
990                                 description
991                                 {
992                                         state, "default" 0.0;
993                                         min, 28 37;
994                                         max, 28 37;
995                                         align, 1.0 0.5;
996                                         rel1
997                                         {
998                                                 relative, 0.0 0.0;
999                                                 to, "guide_text_block_icon_padding";
1000                                         }
1001                                         rel2
1002                                         {
1003                                                 relative, 0.0 1.0;
1004                                                 to, "guide_text_block_icon_padding";
1005                                         }
1006                                         image.normal, "./wi_stt_icon_error.png";
1007                                         color_class, "AO015";
1008                                         visible, 0;
1009                                 }
1010                                 description
1011                                 {
1012                                         state, "show" 0.0;
1013                                         inherit, "default";
1014                                         visible, 1;
1015                                 }
1016                         }
1017                         part
1018                         {
1019                                 name, "send_text_block";
1020                                 type, SPACER;
1021                                 description
1022                                 {
1023                                         state, "default" 0.0;
1024                                         align, 0.5 0;
1025                                         rel1
1026                                         {
1027                                                 relative, 105/360 5/78;
1028                                                 to, "background";
1029                                         }
1030                                         rel2
1031                                         {
1032                                                 relative, (360-105)/360 (78-38)/78;
1033                                                 to, "background";
1034                                         }
1035                                 }
1036                                 description
1037                                 {
1038                                         state, "expand" 0.0;
1039                                         align, 0.5 0;
1040                                         rel1
1041                                         {
1042                                                 relative, 84/360 18/78;
1043                                                 to, "background";
1044                                         }
1045                                         rel2
1046                                         {
1047                                                 relative, (360-82)/360 (78-23)/78;
1048                                                 to, "background";
1049                                 }
1050                         }
1051
1052                         }
1053                         part
1054                         {
1055                                 name, "elm.text.send";
1056                                 type, TEXTBLOCK;
1057                                 mouse_events, 0;
1058                                 scale, 1;
1059                                 description
1060                                 {
1061                                         state, "default" 0.0;
1062                                         visible, 1;
1063                                         align, 0.5 0.5;
1064                                         rel1.to, "send_text_block";
1065                                         rel2.to, "send_text_block";
1066                                         text
1067                                         {
1068                                                 fit: 1 1;
1069                                                 style, "button_send_text_normal";
1070                                         }
1071                                 }
1072                         }
1073
1074                 }
1075
1076                 programs
1077                 {
1078                         program
1079                         {
1080                                 name,   "initial_view";
1081                                 signal, "mouse,clicked,1";
1082                                 source, "background";
1083                                 in,     0 0.3;
1084                                 after,  "emit_signal1";
1085                         }
1086
1087                         program
1088                         {
1089                                 name,   "emit_signal1";
1090                                 action, SIGNAL_EMIT "idle,state,pulse,visible" "";
1091                         }
1092
1093                         program
1094                         {
1095                                 name,   "cue_text_show";
1096                                 signal, "idle,state,cue_text,visible";
1097                                 source, "elm";
1098                                 action, STATE_SET "show" 0.0;
1099                                 target, "elm.text.cue";
1100                                 after: "cue_text_hide";
1101                         }
1102
1103                         program
1104                         {
1105                                 name,   "cue_text_hide";
1106                                 signal, "idle,state,cue_text,hidden";
1107                                 source, "elm";
1108                                 in, 2.0 0.0;
1109                                 action, STATE_SET "default" 0.0;
1110                                 target, "elm.text.cue";
1111                         }
1112
1113                         program
1114                         {
1115                                 name,   "text_show";
1116                                 signal, "idle,state,text,visible";
1117                                 source, "elm";
1118                                 action, STATE_SET "show" 0.0;
1119                                 target, "elm.text";
1120                                 target, "error_icon";
1121                                 after: "text_hide_delayed";
1122                         }
1123
1124                         program
1125                         {
1126                                 name,   "text_hide";
1127                                 signal, "idle,state,text,hidden";
1128                                 source, "elm";
1129                                 action, STATE_SET "default" 0.0;
1130                                 target, "elm.text";
1131                                 target, "error_icon";
1132                         }
1133
1134                         program
1135                         {
1136                                 name,   "text_hide_delayed";
1137                                 signal, "idle,state,text,hidden,delayed";
1138                                 source, "elm";
1139                                 in, 2.0 0.0;
1140                                 action, STATE_SET "default" 0.0;
1141                                 target, "elm.text";
1142                                 target, "error_icon";
1143                         }
1144
1145                         program
1146                         {
1147                                 name,   "contract_send_text";
1148                                 signal, "idle,state,send,text,contract";
1149                                 source, "elm";
1150                                 action, STATE_SET "default" 0.0;
1151                                 target, "send_text_block";
1152
1153                         }
1154                         program
1155                         {
1156                                 name,   "expand_send_text";
1157                                 signal, "idle,state,send,text,expand";
1158                                 source, "elm";
1159                                 action, STATE_SET "expand" 0.0;
1160                                 target, "send_text_block";
1161
1162                         }
1163                         program
1164                         {
1165                                 name,   "show_effect_part";
1166                                 signal, "elm,state,eq,show";
1167                                 source, "eq";
1168                                 action, STATE_SET "default" 0.1;
1169                                 target, "EFFECT_BG";
1170                         }
1171
1172                         program
1173                         {
1174                                 name,   "hide_effect_part";
1175                                 signal, "elm,state,eq,hide";
1176                                 source, "eq";
1177                                 action, STATE_SET "default" 0.0;
1178                                 target, "EFFECT_BG";
1179                         }
1180
1181                         // Button
1182                         program
1183                         {
1184                                 name,   "bottom_button_show";
1185                                 signal, "idle,state,show,bottom_button";
1186                                 source, "elm";
1187                                 action, STATE_SET "default" 0.0;
1188                                 target, "background";
1189                                 transition, DECELERATE 0.2;
1190                         }
1191                         program
1192                         {
1193                                 name,   "bottom_button_show_delayed";
1194                                 signal, "idle,state,show,bottom_button,delayed";
1195                                 source, "elm";
1196                                 in, 2.0 0.0;
1197                                 action, STATE_SET "default" 0.0;
1198                                 target, "background";
1199                                 transition, DECELERATE 0.2;
1200                         }
1201
1202                         program
1203                         {
1204                                 name,   "bottom_button_hide";
1205                                 signal, "idle,state,hide,bottom_button";
1206                                 source, "elm";
1207                                 action, STATE_SET "hide" 0.0;
1208                                 target, "background";
1209                                 transition, DECELERATE 0.2;
1210                         }
1211                         // EFFECT Area
1212                         program
1213                         {
1214                                 name,   "bottom_effect_show";
1215                                 signal, "idle,state,show,effect";
1216                                 source, "elm";
1217                                 action, STATE_SET "default" 0.0;
1218                                 target, "EFFECT_BG_AREA";
1219                                 transition, DECELERATE 0.2;
1220                         }
1221                         program
1222                         {
1223                                 name,   "bottom_effect_hide";
1224                                 signal, "idle,state,hide,effect";
1225                                 source, "elm";
1226                                 action, STATE_SET "hide" 0.0;
1227                                 target, "EFFECT_BG_AREA";
1228                                 transition, DECELERATE 0.2;
1229                         }
1230                 }
1231         }
1232
1233         group
1234         {
1235                 name: "option_more_index";
1236                 parts
1237                 {
1238                         part
1239                         {
1240                                 name: "bg";
1241                                 type: SPACER;
1242                                 scale: 1;
1243                                 description
1244                                 {
1245                                         state: "default" 0.0;
1246                                         min: 360 360;
1247                                         max: -1 360;
1248                                 }
1249                         }
1250                         part
1251                         {
1252                                 name: "scroller";
1253                                 type: SWALLOW;
1254                                 scale: 1;
1255                                 description
1256                                 {
1257                                         state: "default" 0.0;
1258                                         rel1.to: "bg";
1259                                         rel2.to: "bg";
1260                                 }
1261                         }
1262                         part
1263                         {
1264                                 name: "controller";
1265                                 type: SWALLOW;
1266                                 scale: 1;
1267                                 description
1268                                 {
1269                                         state: "default" 0.0;
1270                                         align: 0.5 0.0;
1271                                         min: 360 40;
1272                                         max: 360 40;
1273                                         fixed: 0 1;
1274                                         rel1.to: "bg";
1275                                         rel1.relative: 0.0 0.0;
1276                                         rel2.to: "bg";
1277                                         rel2.relative: 1.0 0.0;
1278                                 }
1279                         }
1280                 }
1281         }
1282
1283         group
1284         {
1285                 name, "language_list";
1286                 parts
1287                 {
1288                         part
1289                         {
1290                                 name, "bg";
1291                                 type, RECT;
1292                                 scale, 1;
1293                                 description
1294                                 {
1295                                         state, "default" 0.0;
1296                                         min, 358 0;
1297                                         max, 358 223;
1298                                         rel1
1299                                         {
1300                                                 relative, 0.0 0.0;
1301                                         }
1302                                         rel2
1303                                         {
1304                                                 relative, 1.0 1.0;
1305                                         }
1306                                         color, 8 8 8 255;
1307                                 }
1308                         }
1309                         part
1310                         {
1311                                 name, "list";
1312                                 type, SWALLOW;
1313                                 scale, 1;
1314                                 repeat_events, 0;
1315                                 description
1316                                 {
1317                                         state, "default" 0.0;
1318                                         rel1
1319                                         {
1320                                                 relative, 0.0 0.0;
1321                                                 to, "bg";
1322                                         }
1323                                         rel2
1324                                         {
1325                                                 relative, 1.0 1.0;
1326                                                 to, "bg";
1327                                         }
1328                                 }
1329                         }
1330                 }
1331         }
1332
1333         group{
1334                 name: "layout_textblock";
1335
1336                 script {
1337                          public timer_cb(val) {
1338                                 run_program(PROGRAM:"do_scroll");
1339                          }
1340
1341                   }
1342                 parts {
1343                         part
1344                         {
1345                                 name, "bg";
1346                                 type, SPACER;
1347                                 scale, 1;
1348                                 description
1349                                 {
1350                                         state, "default" 0.0;
1351                                         min, 282 39;
1352                                         rel1
1353                                         {
1354                                                 relative, 0.0 0.0;
1355                                         }
1356                                         rel2
1357                                         {
1358                                                 relative, 1.0 1.0;
1359                                         }
1360                                 }
1361                         }
1362                    part { name: "elm.swallow.content";
1363                           scale: 1;
1364                           type: SWALLOW;
1365                           description { state: "default" 0.0;
1366                                  min: 282 39;
1367                                  align: 0.5 1;
1368                                  rel1
1369                                  {
1370                                          relative, 0.0 1.0;
1371                                  }
1372                                  rel2
1373                                  {
1374                                          relative, 1.0 1.0;
1375                                  }
1376                           }
1377                    }
1378                 }
1379                 programs {
1380                         program
1381                         {
1382                                 name, "scroll";
1383                                 signal, "scrolling";
1384                                 source, "entry";
1385                                 script {
1386                                         timer(3/10, "timer_cb", 0);
1387                                 }
1388                         }
1389                         program
1390                         {
1391                                 name, "do_scroll";
1392                                 action, SIGNAL_EMIT "do_scroll" "entry";
1393                         }
1394                 }
1395         }
1396
1397         group{ name: "entry_focused_layout";
1398                 parts {
1399                         part
1400                         {
1401                                 name, "bg";
1402                                 type, RECT;
1403                                 scale, 1;
1404                                 description
1405                                 {
1406                                         state, "default" 0.0;
1407                                         rel1
1408                                         {
1409                                                 relative, 0.0 0.0;
1410                                         }
1411                                         rel2
1412                                         {
1413                                                 relative, 1.0 1.0;
1414                                         }
1415                                         visible: 1;
1416                                         color: 0 0 0 255;
1417                                 }
1418                         }
1419                         part { name: "padding_top";
1420                                 type: SPACER;
1421                                 scale: 1;
1422                                 description {
1423                                         state: "default" 0.0;
1424                                         align: 0.0 0.0;
1425                                         rel1.relative: 0.0 0.0;
1426                                         rel2.relative: 1.0 0.0;
1427                                         min: 0 24;
1428                                         fixed: 1 1;
1429                                 }
1430                         }
1431                         part { name: "padding_left";
1432                                 type: SPACER;
1433                                 scale: 1;
1434                                 description {
1435                                         state: "default" 0.0;
1436                                         align: 0.0 0.0;
1437                                         rel1.relative: 0.0 0.0;
1438                                         rel2.relative: 0.0 1.0;
1439                                         min: 73 0;
1440                                         fixed: 1 1;
1441                                 }
1442                         }
1443                         part { name: "padding_right";
1444                                 type: SPACER;
1445                                 scale: 1;
1446                                 description {
1447                                         state: "default" 0.0;
1448                                         align: 1.0 0.0;
1449                                         rel1.relative: 1.0 0.0;
1450                                         rel2.relative: 1.0 1.0;
1451                                         min: 73 0;
1452                                         fixed: 1 1;
1453                                 }
1454                         }
1455                         part {
1456                                 name: "contents";
1457                                 type: SWALLOW;
1458                                 scale: 1;
1459                                 description {
1460                                         state: "default" 0.0;
1461                                         rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1462                                         rel2 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top";}
1463                                         min:0 42;
1464                                         max: -1 42;
1465                                         align: 0.5 0;
1466                                 }
1467                         }
1468                 }
1469         }
1470
1471
1472
1473 #define BUTTON_PADDING_SIZE_INC                            20 0
1474 #define BUTTON_HEIGHT_INC                                  122
1475 #define BUTTON_ICON_SIZE_INC                               60 60
1476         group { name: "elm/button/base/default";
1477                 script {
1478                         public mouse_down = 0;
1479                         public multi_down = 0;
1480                 }
1481                 parts {
1482                         part { name: "bg";
1483                                 type: RECT;
1484                                 scale: 1;
1485                                 description { state: "default" 0.0;
1486                                 min: 0 BUTTON_HEIGHT_INC;
1487                                 color_class: "W011";
1488                         }
1489                         description { state: "pressed" 0.0;
1490                                 inherit: "default" 0.0;
1491                                 color_class: "W011P";
1492                         }
1493                         description { state: "disabled" 0.0;
1494                                 inherit: "default" 0.0;
1495                                 color_class: "W011D";
1496                         }
1497                 }
1498                 part { name: "padding_left_top";
1499                         type: SPACER;
1500                         scale: 1;
1501                         description { state: "default" 0.0;
1502                                 align: 0.0 0.0;
1503                                 rel2.relative: 0.0 0.0;
1504                                 min: BUTTON_PADDING_SIZE_INC;
1505                                 fixed: 1 1;
1506                         }
1507                 }
1508                 part { name: "padding_right_bottom";
1509                         type: SPACER;
1510                         scale: 1;
1511                         description { state: "default" 0.0;
1512                                 align: 1.0 1.0;
1513                                 rel1.relative: 1.0 1.0;
1514                                 min: BUTTON_PADDING_SIZE_INC;
1515                                 fixed: 1 1;
1516                         }
1517                 }
1518                 part { name: "icon_rect";
1519                         type: SPACER;
1520                         scale: 1;
1521                         description { state: "default" 0.0;
1522                                 align: 0.0 0.5;
1523                                 rel1 {
1524                                         relative: 1.0 1.0;
1525                                         to: "padding_left_top";
1526                                 }
1527                                 rel2 {
1528                                         relative: 1.0 0.0;
1529                                         to_x: "padding_left_top";
1530                                         to_y: "padding_right_bottom";
1531                                 }
1532                                 min: 0 0;
1533                                 fixed: 1 1;
1534                         }
1535                         description { state: "visible" 0.0;
1536                                 inherit: "default" 0.0;
1537                                 min: BUTTON_ICON_SIZE_INC;
1538                                 max: BUTTON_ICON_SIZE_INC;
1539                                 fixed: 1 1;
1540                         }
1541                  }
1542                  part { name: "elm.swallow.content";
1543                         type: SWALLOW;
1544                         clip_to: "elm.swallow.content.clip";
1545                         scale: 1;
1546                         description { state: "default" 0.0;
1547                                 visible: 0;
1548                                 align: 0.0 0.5;
1549                                 rel1 {
1550                                         relative: 1.0 1.0;
1551                                         to: "padding_left_top";
1552                                 }
1553                                 rel2 {
1554                                         relative: 1.0 0.0;
1555                                         to_x: "padding_left_top";
1556                                         to_y: "padding_right_bottom";
1557                                 }
1558                                 fixed: 1 0;
1559                         }
1560                         description { state: "visible" 0.0;
1561                                 fixed: 1 1;
1562                                 min: BUTTON_ICON_SIZE_INC;
1563                                 max: BUTTON_ICON_SIZE_INC;
1564                                 align: 1.0 0.5;
1565                                 rel1 {
1566                                         relative: 0.0 1.0;
1567                                         to_x: "elm.text";
1568                                         to_y: "padding_left_top";
1569                                 }
1570                                 rel2 {
1571                                         relative: 0.0 0.0;
1572                                         to_x: "elm.text";
1573                                         to_y: "padding_right_bottom";
1574                                 }
1575                         }
1576                         description { state: "icononly" 0.0;
1577                                 min: BUTTON_ICON_SIZE_INC;
1578                                 max: BUTTON_ICON_SIZE_INC;
1579                         }
1580                 }
1581                 part { name: "elm.text";
1582                         type: TEXTBLOCK;
1583                         mouse_events: 0;
1584                         scale: 1;
1585                         description { state: "default" 0.0;
1586                                 fixed: 1 1;
1587                                 rel1 {
1588                                         relative: 1.0 1.0;
1589                                         to_x: "icon_rect";
1590                                         to_y: "padding_left_top";
1591                                 }
1592                                 rel2 {
1593                                         relative: 0.0 0.0;
1594                                         to: "padding_right_bottom";
1595                                 }
1596                                 text {
1597                                         max: 1 0;
1598                                         style: "button_general_text_normal";
1599                                 }
1600                         }
1601                         description { state: "disabled" 0.0;
1602                                 inherit: "default" 0.0;
1603                                 text.style: "button_general_text_dim";
1604                         }
1605                         description { state: "pressed" 0.0;
1606                                 inherit: "default" 0.0;
1607                                 text.style: "button_general_text_press";
1608                         }
1609                 }
1610                 part { name: "elm.swallow.content.clip";
1611                         type: RECT;
1612                         scale: 1;
1613                         description { state: "default" 0.0;
1614                                 color_class: "F022L1i";
1615                         }
1616                         description { state: "disabled" 0.0;
1617                                 inherit: "default" 0.0;
1618                                 color_class: "F022L1iD";
1619                         }
1620                 }
1621                 part { name: "event";
1622                         type: RECT;
1623                         scale: 1;
1624                         description { state: "default" 0.0;
1625                                 color: 0 0 0 0;
1626                                 rel1.to: "bg";
1627                                 rel2.to: "bg";
1628                         }
1629                 }
1630         }
1631         programs {
1632                 program { name: "pressed";
1633                         signal: "mouse,down,1*";
1634                         source: "event";
1635                         script {
1636                                 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
1637                                 {
1638                                         set_int(mouse_down, 1);
1639                                         run_program(PROGRAM:"button_press1");
1640                                 }
1641                         }
1642                 }
1643                 program { name: "button_press1";
1644                         script {
1645                                 new st[31];
1646                                 new Float:vl;
1647                                 get_state(PART:"bg", st, 30, vl);
1648                                 if (strcmp(st, "disabled")) {
1649                                         set_state(PART:"bg", "pressed", 0.0);
1650                                         //set_state(PART:"bg_image", "pressed", 0.0);
1651                                         set_state(PART:"elm.swallow.content.clip", "pressed", 0.0);
1652                                         emit("elm,action,press", "");
1653                                 }
1654                         }
1655                 }
1656                 program { name: "unpressed";
1657                         signal: "mouse,up,1";
1658                         source: "event";
1659                         script {
1660                                 if (get_int(mouse_down) == 1) {
1661                                         set_int(mouse_down, 0);
1662                                         run_program(PROGRAM:"button_unpress1");
1663                                 }
1664                         }
1665                 }
1666                 program { name: "button_unpress1";
1667                         script {
1668                                 new st[31];
1669                                 new Float:vl;
1670                                 get_state(PART:"bg", st, 30, vl);
1671                                 if (strcmp(st, "disabled")) {
1672                                         set_state(PART:"bg", "default", 0.0);
1673                                         //set_state(PART:"bg_image", "default", 0.0);
1674                                         set_state(PART:"elm.swallow.content.clip", "default", 0.0);
1675                                         emit("elm,action,unpress", "");
1676                                 }
1677                         }
1678                 }
1679                 program { name: "touch_snd";
1680                         signal: "mouse,clicked,1";
1681                         source: "event";
1682                         script {
1683                                 new st[31];
1684                                 new Float:vl;
1685                                 if (get_int(multi_down) == 0) {
1686                                         get_state(PART:"bg", st, 30, vl);
1687                                         if (strcmp(st, "disabled")) {
1688                                                 //run_program(PROGRAM:"play_sample");
1689                                                 emit("elm,action,click", "");
1690                                         }
1691                                 }
1692                         }
1693                 }
1694                 program {
1695                         name: "play_sample";
1696                         action: RUN_PLUGIN "touch_sound";
1697                 }
1698                 program { name: "text_show";
1699                         signal: "elm,state,text,visible";
1700                         source: "elm";
1701                         script {
1702                                 new st[31];
1703                                 new Float:vl;
1704                                 get_state(PART:"elm.swallow.content", st, 30, vl);
1705                                 if (!strcmp(st, "icononly"))
1706                                 {
1707                                         set_state(PART:"elm.swallow.content", "visible", 0.0);
1708                                         set_state(PART:"icon_rect", "visible", 0.0);
1709                                 }
1710                                 get_state(PART:"bg", st, 30, vl);
1711                                 if (strcmp(st, "disabled"))
1712                                         set_state(PART:"elm.text", "default", 0.0);
1713                                 else
1714                                         set_state(PART:"elm.text", "disabled", 0.0);
1715                         }
1716                 }
1717                 program { name: "text_hide";
1718                         signal: "elm,state,text,hidden";
1719                         source: "elm";
1720                         script {
1721                                 new st[31];
1722                                 new Float:vl;
1723                                 get_state(PART:"elm.swallow.content", st, 30, vl);
1724                                 if (!strcmp(st, "visible"))
1725                                 {
1726                                         set_state(PART:"elm.swallow.content", "icononly", 0.0);
1727                                         set_state(PART:"icon_rect", "default", 0.0);
1728                                 }
1729                                 set_state(PART:"elm.text", "default", 0.0);
1730                         }
1731                 }
1732                 program { name: "icon_show";
1733                         signal: "elm,state,icon,visible";
1734                         source: "elm";
1735                         action: STATE_SET "visible" 0.0;
1736                         target: "elm.swallow.content";
1737                         target: "icon_rect";
1738                 }
1739                 program { name: "icon_hide";
1740                         signal: "elm,state,icon,hidden";
1741                         source: "elm";
1742                         action: STATE_SET "visible" 0.0;
1743                         target: "elm.swallow.content";
1744                         target: "icon_rect";
1745                 }
1746                 program { name: "disable";
1747                         signal: "elm,state,disabled";
1748                         source: "elm";
1749                         action: STATE_SET "disabled" 0.0;
1750                         target: "bg";
1751                         target: "elm.swallow.content.clip";
1752                         target: "elm.text";
1753                 }
1754                 program { name: "enable";
1755                         signal: "elm,state,enabled";
1756                         source: "elm";
1757                         action: STATE_SET "default" 0.0;
1758                         target: "bg";
1759                         target: "elm.swallow.content.clip";
1760                         target: "elm.text";
1761                 }
1762                 program { name: "multi_down";
1763                         signal: "elm,action,multi,down";
1764                         source: "elm";
1765                         script {
1766                                 set_int(multi_down, 1);
1767                         }
1768                 }
1769                 program { name: "multi_up";
1770                         signal: "elm,action,multi,up";
1771                         source: "elm";
1772                         script {
1773                                 set_int(multi_down, 0);
1774                         }
1775                 }
1776         }
1777 }
1778
1779         group { name: "elm/button/base/ime_transparent";
1780                 inherit: "elm/button/base/default";
1781                 parts {
1782                         part { name: "bg";
1783                                 type: RECT;
1784                                 scale: 1;
1785                                 description { state: "default" 0.0;
1786                                         min: 0 112;
1787                                         visible: 0;
1788                                 }
1789                                 description { state: "pressed" 0.0;
1790                                         inherit: "default" 0.0;
1791                                 }
1792                                 description { state: "disabled" 0.0;
1793                                         inherit: "default" 0.0;
1794                                 }
1795                         }
1796                 }
1797         }
1798
1799         group { name: "elm/button/base/ime_button";
1800                 alias: "elm/button/base/ime_button_stt";
1801                 inherit: "elm/button/base/default";
1802                 parts {
1803                         part { name: "bg";
1804                                 type: IMAGE;
1805                                 scale: 1;
1806                                 description { state: "default" 0.0;
1807                                         min: 0 0;
1808                                         color_class: "AO01153L1";
1809                                         visible: 1;
1810                                         image.normal: "./w_mode_ic_bg.png";
1811                                 }
1812                                 description { state: "pressed" 0.0;
1813                                         inherit: "default" 0.0;
1814                                         color_class: "AO01153L1P";
1815                                 }
1816                                 description { state: "disabled" 0.0;
1817                                         inherit: "default" 0.0;
1818                                         color_class: "W011D";
1819                                 }
1820                         }
1821                         part { name: "elm.swallow.content";
1822                                 type: SWALLOW;
1823                                 scale: 1;
1824                                 clip_to: "elm.swallow.content.clip";
1825                                 description { state: "default" 0.0;
1826                                         visible: 1;
1827                                         align: 0.5 0.5;
1828                                         rel1 { relative: 0.0 0.0; to: "bg";}
1829                                         rel2 { relative: 1.0 1.0; to: "bg";}
1830                                         fixed: 1 1;
1831                                 }
1832                                 description { state: "visible" 0.0;
1833                                         inherit: "default" 0.0;
1834                                         visible: 1;
1835                                 }
1836                                 description { state: "icononly" 0.0;
1837                                         inherit: "default" 0.0;
1838                                         visible: 1;
1839                                 }
1840                         }
1841
1842                 }
1843                 programs {
1844                         program { name: "pressed";
1845                                 signal: "mouse,down,1*";
1846                                 source: "event";
1847                                 script {
1848                                         if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
1849                                         {
1850                                                 set_int(mouse_down, 1);
1851                                                 run_program(PROGRAM:"button_press1");
1852                                         }
1853                                 }
1854                         }
1855                         program { name: "button_press1";
1856                                 script {
1857                                         new st[31];
1858                                         new Float:vl;
1859                                         get_state(PART:"bg", st, 30, vl);
1860                                         if (strcmp(st, "disabled")) {
1861                                                 set_state(PART:"bg", "pressed", 0.0);
1862                                                 set_state(PART:"elm.swallow.content.clip", "pressed", 0.0);
1863                                                 emit("elm,action,press", "");
1864                                         }
1865                                 }
1866                         }
1867                         program { name: "unpressed";
1868                                 signal: "mouse,up,1";
1869                                 source: "event";
1870                                 script {
1871                                         if (get_int(mouse_down) == 1) {
1872                                                 set_int(mouse_down, 0);
1873                                                 run_program(PROGRAM:"button_unpress1");
1874                                         }
1875                                 }
1876                         }
1877                         program { name: "button_unpress1";
1878                                 script {
1879                                         new st[31];
1880                                         new Float:vl;
1881                                         get_state(PART:"bg", st, 30, vl);
1882                                         if (strcmp(st, "disabled")) {
1883                                                 set_state(PART:"bg", "default", 0.0);
1884                                                 set_state(PART:"elm.swallow.content.clip", "default", 0.0);
1885                                                 emit("elm,action,unpress", "");
1886                                         }
1887                                 }
1888                         }
1889                 }
1890         }
1891
1892         group { name: "elm/button/base/ime_button_emoticon";
1893                 inherit: "elm/button/base/ime_button";
1894                 parts {
1895                         part { name: "bg";
1896                                 type: IMAGE;
1897                                 scale: 1;
1898                                 description { state: "default" 0.0;
1899                                         min: 0 0;
1900                                         color_class: "AO01154L1";
1901                                         visible: 1;
1902                                         image.normal: "./w_mode_ic_bg.png";
1903                         }
1904                                 description { state: "pressed" 0.0;
1905                                         inherit: "default" 0.0;
1906                                         color_class: "AO01154L1P";
1907                                 }
1908                                 description { state: "disabled" 0.0;
1909                                         inherit: "default" 0.0;
1910                                         color_class: "W011D";
1911                                         }
1912                                 }
1913                         }
1914                 }
1915
1916         group { name: "elm/button/base/ime_button_keyboard";
1917                 inherit: "elm/button/base/ime_button";
1918                 parts {
1919                         part { name: "bg";
1920                                 type: IMAGE;
1921                                 scale: 1;
1922                                 description { state: "default" 0.0;
1923                                         min: 0 0;
1924                                         color_class: "AO01155L1";
1925                                         visible: 1;
1926                                         image.normal: "./w_mode_ic_bg.png";
1927                                 }
1928                                 description { state: "pressed" 0.0;
1929                                         inherit: "default" 0.0;
1930                                         color_class: "AO01155L1P";
1931                                 }
1932                                 description { state: "disabled" 0.0;
1933                                         inherit: "default" 0.0;
1934                                         color_class: "W011D";
1935                                 }
1936                         }
1937                 }
1938         }
1939
1940         group { name: "elm/button/base/ime_button_template";
1941                 inherit: "elm/button/base/ime_button";
1942                 parts {
1943                         part { name: "bg";
1944                                 type: IMAGE;
1945                                 scale: 1;
1946                                 description { state: "default" 0.0;
1947                                         min: 76 76;
1948                                         max: 76 76;
1949                                         color_class: "AO01161";
1950                                         visible: 1;
1951                                         image.normal: "./w_mode_ic_bg.png";
1952                                 }
1953                                 description { state: "pressed" 0.0;
1954                                         inherit: "default" 0.0;
1955                                         color_class: "AO01161P";
1956                                 }
1957                                 description { state: "disabled" 0.0;
1958                                         inherit: "default" 0.0;
1959                                         color_class: "AO01161D";
1960                                 }
1961                         }
1962                         part { name: "elm.swallow.content.clip";
1963                                 type: RECT;
1964                                 scale: 1;
1965                                 description { state: "default" 0.0;
1966                                         color_class: "AO01153L3";
1967                                 }
1968                                 description { state: "pressed" 0.0;
1969                                         inherit: "default" 0.0;
1970                                         color_class: "AO01153L3P";
1971                                 }
1972                                 description { state: "disabled" 0.0;
1973                                         inherit: "default" 0.0;
1974                                         color_class: "AO01153L3D";
1975                                 }
1976                         }
1977                 }
1978         }
1979
1980         group { name: "elm/button/base/ime_button_drawing";
1981           inherit: "elm/button/base/ime_button";
1982           parts {
1983                   part { name: "bg";
1984                          type: IMAGE;
1985                          scale: 1;
1986                          description { state: "default" 0.0;
1987                                 min: 76 76;
1988                                 max: 76 76;
1989                                 color_class: "AO0391";
1990                                 visible: 1;
1991                                 image.normal: "./wi_drawing_bg.png";
1992                          }
1993                          description { state: "pressed" 0.0;
1994                                 inherit: "default" 0.0;
1995                                 color_class: "AO0391P";
1996                          }
1997                          description { state: "disabled" 0.0;
1998                                 inherit: "default" 0.0;
1999                                 color_class: "AO0391D";
2000                                 }
2001                         }
2002                 }
2003         }
2004
2005         group { name: "elm/button/base/touch_area";
2006                 inherit: "elm/button/base/default";
2007                 parts {
2008                         part { name: "bg";
2009                                 type: RECT;
2010                                 scale: 1;
2011                                 description { state: "default" 0.0;
2012                                         min: 0 0;
2013                                         color: 0 0 0 0;
2014                                         visible: 1;
2015                                 }
2016                                 description { state: "pressed" 0.0;
2017                                         inherit: "default" 0.0;
2018                                 }
2019                                 description { state: "disabled" 0.0;
2020                                         inherit: "default" 0.0;
2021                                 }
2022                         }
2023                 }
2024                 programs {
2025                         program { name: "touch_snd";
2026                                 signal: "mouse,clicked,1";
2027                                 source: "event";
2028                                 script {
2029                                         new st[31];
2030                                         new Float:vl;
2031                                         if (get_int(multi_down) == 0) {
2032                                                 get_state(PART:"bg", st, 30, vl);
2033                                                 if (strcmp(st, "disabled")) {
2034                                                         run_program(PROGRAM:"play_sample");
2035                                                         emit("elm,action,click", "");
2036                                                 }
2037                                         }
2038                                 }
2039                         }
2040                 }
2041         }
2042
2043         group { name: "elm/button/base/emoticon";
2044
2045                 script {
2046                         public mouse_down = 0;
2047                         public multi_down = 0;
2048                 }
2049                 parts {
2050                         part { name: "bg";
2051                                 type: SPACER;
2052                                 scale: 1;
2053                                 description { state: "default" 0.0;
2054                                         min: 0 0;
2055                                 }
2056                                 description { state: "pressed" 0.0;
2057                                         inherit: "default" 0.0;
2058                                 }
2059                                 description { state: "disabled" 0.0;
2060                                         inherit: "default" 0.0;
2061                                 }
2062                         }
2063                         part { name: "padding_left_top";
2064                                 type: SPACER;
2065                                 scale: 1;
2066                                 description { state: "default" 0.0;
2067                                         align: 0.0 0.0;
2068                                         rel2.relative: 0.0 0.0;
2069                                         min: 0 0;
2070                                         fixed: 1 1;
2071                                         //visible: 1;
2072                                         //color: 255 0 0 100;
2073                                 }
2074                         }
2075                         part { name: "padding_right_bottom";
2076                                 type: SPACER;
2077                                 scale: 1;
2078                                 description { state: "default" 0.0;
2079                                         align: 1.0 1.0;
2080                                         rel1.relative: 1.0 1.0;
2081                                         min: 0 0;
2082                                         fixed: 1 1;
2083                                         //visible: 1;
2084                                         //color: 0 255 0 100;
2085                                 }
2086                         }
2087                         part { name: "elm.text";
2088                                 type: TEXTBLOCK;
2089                                 mouse_events: 0;
2090                                 scale: 1;
2091                                 description { state: "default" 0.0;
2092                                         fixed: 1 1;
2093                                         rel1 {
2094                                                 relative: 1.0 1.0;
2095                                                 to: "padding_left_top";
2096                                         }
2097                                         rel2 {
2098                                                 relative: 0.0 0.0;
2099                                                 to: "padding_right_bottom";
2100                                         }
2101                                         text {
2102                                                 max: 1 0;
2103                                                 style: "button_general_text_normal";
2104                                         }
2105                                 }
2106                                 description { state: "disabled" 0.0;
2107                                         inherit: "default" 0.0;
2108                                         text.style: "button_general_text_dim";
2109                                 }
2110                                 description { state: "pressed" 0.0;
2111                                         inherit: "default" 0.0;
2112                                         text.style: "button_general_text_press";
2113                                 }
2114                         }
2115                         part { name: "event";
2116                                 type: RECT;
2117                                 scale: 1;
2118                                 description { state: "default" 0.0;
2119                                         color: 0 0 0 0;
2120                                         rel1.to: "bg";
2121                                         rel2.to: "bg";
2122                                 }
2123                         }
2124                 }
2125                 programs {
2126                         program { name: "pressed";
2127                                 signal: "mouse,down,1*";
2128                                 source: "event";
2129                                 script {
2130                                         if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
2131                                         {
2132                                                 set_int(mouse_down, 1);
2133                                                 run_program(PROGRAM:"button_press1");
2134                                         }
2135                                 }
2136                         }
2137                         program { name: "button_press1";
2138                                 script {
2139                                         new st[31];
2140                                         new Float:vl;
2141                                         get_state(PART:"bg", st, 30, vl);
2142                                         if (strcmp(st, "disabled")) {
2143                                                 set_state(PART:"bg", "pressed", 0.0);
2144                                                 set_state(PART:"elm.text", "pressed", 0.0);
2145                                                 emit("elm,action,press", "");
2146                                         }
2147                                 }
2148                         }
2149                         program { name: "unpressed";
2150                                 signal: "mouse,up,1";
2151                                 source: "event";
2152                                 script {
2153                                         if (get_int(mouse_down) == 1) {
2154                                                 set_int(mouse_down, 0);
2155                                                 run_program(PROGRAM:"button_unpress1");
2156                                         }
2157                                 }
2158                         }
2159                         program { name: "button_unpress1";
2160                                 script {
2161                                         new st[31];
2162                                         new Float:vl;
2163                                         get_state(PART:"bg", st, 30, vl);
2164                                         if (strcmp(st, "disabled")) {
2165                                                 set_state(PART:"bg", "default", 0.0);
2166                                                 set_state(PART:"elm.text", "default", 0.0);
2167                                                 emit("elm,action,unpress", "");
2168                                         }
2169                                 }
2170                         }
2171                         program { name: "touch_snd";
2172                                 signal: "mouse,clicked,1";
2173                                 source: "event";
2174                                 script {
2175                                         new st[31];
2176                                         new Float:vl;
2177                                         if (get_int(multi_down) == 0) {
2178                                                 get_state(PART:"bg", st, 30, vl);
2179                                                 if (strcmp(st, "disabled")) {
2180                                                         run_program(PROGRAM:"play_sample");
2181                                                         emit("elm,action,click", "");
2182                                                 }
2183                                         }
2184                                 }
2185                         }
2186                         program {
2187                                 name: "play_sample";
2188                                 action: RUN_PLUGIN "touch_sound";
2189                         }
2190                         program { name: "disable";
2191                                 signal: "elm,state,disabled";
2192                                 source: "elm";
2193                                 action: STATE_SET "disabled" 0.0;
2194                                 target: "bg";
2195                                 target: "elm.text";
2196                         }
2197                         program { name: "enable";
2198                                 signal: "elm,state,enabled";
2199                                 source: "elm";
2200                                 action: STATE_SET "default" 0.0;
2201                                 target: "bg";
2202                                 target: "elm.text";
2203                         }
2204                         program { name: "multi_down";
2205                                 signal: "elm,action,multi,down";
2206                                 source: "elm";
2207                                 script {
2208                                         set_int(multi_down, 1);
2209                                 }
2210                         }
2211                         program { name: "multi_up";
2212                                 signal: "elm,action,multi,up";
2213                                 source: "elm";
2214                                 script {
2215                                         set_int(multi_down, 0);
2216                                 }
2217                         }
2218                 }
2219         }
2220
2221 #define NAVIFRAME_VIEW_TRANS_TIME 0.4 //time for push and pop
2222 #define NAVIFRAME_TITLE_TRANS_TIME 0.5 //Title transition time
2223 #define NAVIFRAME_TITLE_EXPAND_TRANS_TIME 0.5 //Title Expansion transition time
2224 #define NAVIFRAME_TEXT_FADE_OUT_CALC_TIME 0.2 //Text fade out calculation time
2225 #define ACTIONBAR_PADDING_SIZE_INC 64
2226 #define ACTIONBAR_HEIGHT_INC 115
2227 #define ACTIONBAR_TEXT_SIZE_INC 39
2228 #define ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC 51
2229 #define ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC 25
2230 #define ACTIONBAR_TEX_SLIDING_SPEED 0.006
2231 #define ACTIONBAR_TEX_SLIDING_START_WAITING_TIME 0.8
2232 #define HIDDEN_BUTTON_HEIGHT_INC 88
2233
2234 #define STYLE_TAG_MATCH \
2235         tag: "match" "+ color=#ffffff color_class=T0212";
2236
2237 styles {
2238         style { name: "action_bar_title";
2239                 base: "font=Tizen:style=Regular font_size="ACTIONBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T012 text_class=T012";
2240                 STYLE_TAG_MATCH
2241         }
2242 }
2243
2244 group { name: "elm_naviframe_item_basic_customized";
2245         data.item: "tizen_zoom" 1;
2246         script {
2247                 public g_mirrored = 0; //Mirrored on/off status
2248                 public g_text_fade_out_calc_timer = 0; //Text fade out calculation timer
2249
2250                 public g_duration_1st;
2251                 public g_duration_2nd;
2252                 public g_timer_id;
2253                 public g_anim_id;
2254                 public g_sliding_start;
2255
2256                 public title_text_fade_out() {
2257                         new x, y, w, h, w2;
2258
2259                         if (get_int(g_text_fade_out_calc_timer)) {
2260                                 cancel_timer(g_text_fade_out_calc_timer);
2261                                 set_int(g_text_fade_out_calc_timer, 0);
2262                         }
2263
2264                         get_geometry(PART:"elm.text.title", x, y, w, h);
2265                         get_geometry(PART:"title_text_bg", x, y, w2, h);
2266                 }
2267
2268                 public init() {
2269                         slide_stop();
2270                         set_float(g_duration_1st, 0);
2271                         set_float(g_duration_2nd, 0);
2272                         set_int(g_timer_id, 0);
2273                         set_int(g_anim_id, 0);
2274                         set_int(g_sliding_start, 0);
2275                 }
2276                 public slide_first_anim(val, Float:pos) {
2277                         set_tween_state(PART:"elm.text.title", pos, "slide", 0.0, "slide_1", 0.0);
2278                         if (pos >= 1.0) {
2279                                 cancel_anim(get_int(g_anim_id));
2280                                 set_int(g_anim_id, anim(get_float(g_duration_2nd), "slide_second_anim", 1));
2281                         }
2282                 }
2283                 public slide_second_anim(val, Float:pos) {
2284                         set_tween_state(PART:"elm.text.title", pos, "slide_2", 0.0, "slide", 0.0);
2285                         if (pos >= 1.0)
2286                                 slide_stop();
2287                         }
2288                 public slide_first() {
2289                         check_size();
2290                         if (get_int(g_sliding_start)) {
2291                                 set_state(PART:"elm.text.title", "slide", 0.0);
2292                                 get_duration();
2293                                 set_int(g_anim_id, anim(get_float(g_duration_1st), "slide_first_anim", 1));
2294                         }
2295                 }
2296                 public slide_start() {
2297                         set_int(g_timer_id, timer(ACTIONBAR_TEX_SLIDING_START_WAITING_TIME, "slide_first", 1));
2298                 }
2299                 public slide_stop() {
2300                         cancel_anim(get_int(g_anim_id));
2301                         set_state(PART:"elm.text.title", "default", 0.0);
2302                         set_int(g_sliding_start, 0);
2303                 }
2304                 public check_size() {
2305                         new x, y, w, w1, h;
2306                         get_geometry(PART:"elm.text.title", x, y, w, h);
2307                         get_geometry(PART:"title_text_clip", x, y, w1, h);
2308                         if (w >= w1) {
2309                                 set_int(g_sliding_start, 1);
2310                         }
2311                         else {
2312                                 set_int(g_sliding_start, 0);
2313                         }
2314                 }
2315                 public get_duration() {
2316                         new x, y, w, w1, h;
2317                         get_geometry(PART:"elm.text.title", x, y, w, h);
2318                         get_geometry(PART:"title_text_clip", x, y, w1, h);
2319                         set_float(g_duration_1st, w * ACTIONBAR_TEX_SLIDING_SPEED);
2320                         set_float(g_duration_2nd, w1 * ACTIONBAR_TEX_SLIDING_SPEED);
2321                 }
2322         }
2323         parts {
2324                 part { name: "clipper";
2325                         type: RECT;
2326                         description { state: "default" 0.0;
2327                         visible: 1;
2328                         }
2329                         description { state: "hide" 0.0;
2330                                 visible: 0;
2331                         }
2332                 }
2333                 part { name: "base";
2334                         type: RECT;
2335                         mouse_events: 0;
2336                         scale: 1;
2337                         clip_to: "clipper";
2338                         description { state: "default" 0.0;
2339                                 color: 128 128 128 128;
2340                         }
2341                 }
2342                 part { name: "title_expand";
2343                         type: RECT;
2344                         scale: 1;
2345                         repeat_events: 0;
2346                         clip_to: "clipper";
2347                         description { state: "default" 0.0;
2348                                 min: 0 HIDDEN_BUTTON_HEIGHT_INC;
2349                                 max: -1 HIDDEN_BUTTON_HEIGHT_INC;
2350                                 fixed: 1 1;
2351                                 align: 0.5 1.0;
2352                                 visible: 0;
2353                                 color: 255 255 255 0;
2354                                 rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "title_bg"; }
2355                                 rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "title_bg"; }
2356                         }
2357                         description { state: "show" 0.0;
2358                                 inherit: "default" 0.0;
2359                                 align: 0.5 0.0;
2360                                 visible: 1;
2361                         }
2362                 }
2363                 part { name: "title_clip";
2364                         type: RECT;
2365                         clip_to: "clipper";
2366                         description { state: "default" 0.0;
2367                                 visible: 1;
2368                                 rel1.to: "title_bg";
2369                                 rel2.to: "title_bg";
2370                         }
2371                         description { state: "hide" 0.0;
2372                                 inherit: "default" 0.0;
2373                                 visible: 0;
2374                         }
2375                 }
2376                 part { name: "title_bg";
2377                         type: RECT;
2378                         scale: 1;
2379                         clip_to: "title_clip";
2380                         description { state: "default" 0.0;
2381                                 min: 0 ACTIONBAR_HEIGHT_INC;
2382                                 max: -1 ACTIONBAR_HEIGHT_INC;
2383                                 fixed: 0 1;
2384                                 align: 0.5 0.0;
2385                                 rel1 { relative: 0.0 0.0; to: "base"; }
2386                                 rel2 { relative: 1.0 0.0; to: "base"; }
2387                                 color: 255 255 255 0;
2388                         }
2389                         description { state: "hide_trans" 0.0;
2390                                 inherit: "default" 0.0;
2391                                 align: 0.5 1.0;
2392                         }
2393                         description { state: "hide" 0.0;
2394                                 inherit: "default" 0.0;
2395                                 min: 0 0;
2396                                 max: -1 0;
2397                         }
2398                 }
2399                 part { name: "title_text_bg";
2400                         type: SPACER;
2401                         scale: 1;
2402                         description { state: "default" 0.0;
2403                                 rel1 { relative: 1.0 1.0; to_x: "left_padding"; to_y: "top_padding"; }
2404                                 rel2 { relative: 0.0 0.0; to: "right_padding"; to_y: "bottom_padding"; }
2405                                 fixed: 0 1;
2406                         }
2407                 }
2408                 part { name: "title_text_clip";
2409                         type: RECT;
2410                         scale: 1;
2411                         clip_to: "title_clip";
2412                         description { state: "default" 0.0;
2413                                 rel1.to: "title_text_bg";
2414                                 rel2.to: "title_text_bg";
2415                         }
2416                 }
2417                 part { name: "elm.text.title";
2418                         type: TEXTBLOCK;
2419                         scale: 1;
2420                         clip_to: "title_text_clip";
2421                         description { state: "default" 0.0;
2422                                 text {
2423                                         min: 0 1;
2424                                         max: 1 1;
2425                                         ellipsis: -1.0;
2426 //                                      fade_ellipsis: 1.0;
2427                                         style: "action_bar_title";
2428                                 }
2429                                 fixed: 1 1;
2430                                 align: 0.5 0.5;
2431                                 rel1.to: "title_text_bg"; rel2.to: "title_text_bg";
2432                         }
2433                         description { state: "slide" 0.0;
2434                                 inherit: "default" 0.0;
2435                                 align: 0.0 0.5;
2436                                 rel1 {
2437                                         relative: 1.0 1.0;
2438                                         to_x: "left_padding";
2439                                         to_y: "top_padding";
2440                                 }
2441                                 rel2 {
2442                                         relative: 1.0 0.0;
2443                                         to_x: "left_padding";
2444                                         to_y: "bottom_padding";
2445                                 }
2446                                 text.min: 1 1;
2447                         }
2448                         description { state: "slide_1" 0.0;
2449                                 inherit: "default" 0.0;
2450                                 align: 1.0 0.5;
2451                                 rel1 {
2452                                         relative: 1.0 1.0;
2453                                         to_x: "left_padding";
2454                                         to_y: "top_padding";
2455                                 }
2456                                 rel2 {
2457                                         relative: 1.0 0.0;
2458                                         to_x: "left_padding";
2459                                         to_y: "bottom_padding";
2460                                 }
2461                                 text.min: 1 1;
2462                         }
2463                         description { state: "slide_2" 0.0;
2464                                 inherit: "default" 0.0;
2465                                 align: 0.0 0.5;
2466                                 rel1 {
2467                                         relative: 0.0 1.0;
2468                                         to_x: "right_padding";
2469                                         to_y: "top_padding";
2470                                 }
2471                                 rel2 {
2472                                         relative: 0.0 0.0;
2473                                         to_x: "right_padding";
2474                                         to_y: "bottom_padding";
2475                                 }
2476                                 text.min: 1 1;
2477                         }
2478                 }
2479                 part { name: "left_padding";
2480                         type: SPACER;
2481                         scale: 1;
2482                         description { state: "default" 0.0;
2483                                 min: ACTIONBAR_PADDING_SIZE_INC 0;
2484                                 max: ACTIONBAR_PADDING_SIZE_INC -1;
2485                                 fixed: 1 0;
2486                                 align: 0.0 0.5;
2487                                 rel1 { relative: 0.0 0.0; to: "title_bg"; }
2488                                 rel2 { relative: 0.0 1.0; to: "title_bg"; }
2489                         }
2490                 }
2491                 part { name: "right_padding";
2492                         type: SPACER;
2493                         scale: 1;
2494                         description { state: "default" 0.0;
2495                                 min: ACTIONBAR_PADDING_SIZE_INC 0;
2496                                 max: ACTIONBAR_PADDING_SIZE_INC -1;
2497                                 fixed: 1 0;
2498                                 align: 1.0 0.5;
2499                                 rel1 { relative: 1.0 0.0; to: "title_bg"; }
2500                                 rel2 { relative: 1.0 1.0; to: "title_bg"; }
2501                         }
2502                 }
2503                 part { name: "click_event_area";
2504                         type: RECT;
2505                         ignore_flags: ON_HOLD;
2506                         description { state: "default" 0.0;
2507                                 rel1 { to: "title_bg"; }
2508                                 rel2 { to: "title_bg"; }
2509                                 color: 0 0 0 0;
2510                         }
2511                 }
2512                 part { name: "access.title";
2513                         type: RECT;
2514                         repeat_events: 1;
2515                         description { state: "default" 0.0;
2516                                 rel1.to: "title_bg";
2517                                 rel2.to: "title_bg";
2518                                 color: 0 0 0 0;
2519                         }
2520                 }
2521                 part { name: "top_padding";
2522                         type: SPACER;
2523                         scale: 1;
2524                         description { state: "default" 0.0;
2525                                 fixed: 0 1;
2526                                 align: 0.5 0.0;
2527                                 min: 0 ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC;
2528                                 max: -1 ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC;
2529                                 rel1 {relative: 0.0 0.0; to: "title_bg"; }
2530                                 rel2 {relative: 1.0 0.0; to: "title_bg"; }
2531                         }
2532                 }
2533                 part { name: "bottom_padding";
2534                         type: SPACER;
2535                         scale: 1;
2536                         description { state: "default" 0.0;
2537                                 fixed: 0 1;
2538                                 align: 0.5 1.0;
2539                                 min: 0 ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC;
2540                                 max: -1 ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC;
2541                                 rel1 {relative: 0.0 1.0; to: "title_bg"; }
2542                                 rel2 {relative: 1.0 1.0; to: "title_bg"; }
2543                         }
2544                 }
2545                 part { name: "left_padding_content";
2546                         type: RECT;
2547                         scale: 1;
2548                         description { state: "default" 0.0;
2549                                 min: 33 0;
2550                                 max: 33 -1;
2551                                 fixed: 1 0;
2552                                 align: 0.0 0.5;
2553                                 rel1 { relative: 0.0 0.0; to: "base"; }
2554                                 rel2 { relative: 0.0 1.0; to: "base"; }
2555                                 visible: 0;
2556                                 color: 255 0 0 100;
2557                         }
2558                 }
2559                 part { name: "right_padding_content";
2560                         type: RECT;
2561                         scale: 1;
2562                         description { state: "default" 0.0;
2563                                 min: 33 0;
2564                                 max: 33 -1;
2565                                 fixed: 1 0;
2566                                 align: 1.0 0.5;
2567                                 rel1 { relative: 1.0 0.0; to: "base"; }
2568                                 rel2 { relative: 1.0 1.0; to: "base"; }
2569                                 visible: 0;
2570                                 color: 0 255 0 100;
2571                         }
2572                 }
2573                 part { name: "elm.swallow.content";
2574                         type: SWALLOW;
2575                         scale: 1;
2576                         repeat_events: 0;
2577                         clip_to: "clipper";
2578                         description { state: "default" 0.0;
2579                                 rel1 { relative: 1.0 1.0; to_x: "left_padding_content"; to_y: "title_expand"; }
2580                                 rel2 { relative: 0.0 0.0; to_x: "right_padding_content"; to_y: "button_padding"; }
2581                         }
2582                 }
2583                 part { name: "elm.swallow.circle_bg";
2584                         type: SWALLOW;
2585                         mouse_events: 0;
2586                         scale: 1;
2587                         clip_to: "clipper";
2588                         description { state: "default" 0.0; }
2589                 }
2590                 part { name: "elm.swallow.circle";
2591                         type: SWALLOW;
2592                         mouse_events: 0;
2593                         scale: 1;
2594                         clip_to: "clipper";
2595                         description { state: "default" 0.0; }
2596                 }
2597                 part { name: "button_padding";
2598                         type: SPACER;
2599                         scale: 1;
2600                         description { state: "default" 0.0;
2601                                 fixed: 0 1;
2602                                 align: 0.5 1.0;
2603                                 min: 0 100;
2604                                 max: -1 100;
2605                                 rel1 {relative: 0.0 1.0; to: "base"; }
2606                                 rel2 {relative: 1.0 1.0; to: "base"; }
2607                         }
2608                 }
2609         }
2610         programs {
2611                 program { name: "visible";
2612                         signal: "elm,state,visible";
2613                         source: "elm";
2614                         script {
2615                                 set_state(PART:"base", "default", 0.0);
2616                                 set_state(PART:"clipper", "default", 0.0);
2617                                 init();
2618                                 slide_start();
2619                                 run_program(PROGRAM:"title_text_fade_out");
2620                         }
2621                 }
2622                 program { name: "invisible";
2623                         signal: "elm,state,invisible";
2624                         source: "elm";
2625                         script {
2626                                 set_state(PART:"clipper", "hide", 0.0);
2627                         }
2628                 }
2629                 program { name: "title_hide";
2630                         signal: "elm,state,title,hide";
2631                         source: "elm";
2632                         script {
2633                                 set_state(PART:"title_bg", "hide", 0.0);
2634                                 set_state(PART:"title_clip", "hide", 0.0);
2635                         }
2636                 }
2637                 program { name: "title_hide_trans";
2638                         signal: "elm,action,title,hide";
2639                         source: "elm";
2640                         script {
2641                                 new st[32];
2642                                 new Float:vl;
2643                                 get_state(PART:"title_bg", st, 32, vl);
2644                                 if (!strcmp(st, "default")) {
2645                                         run_program(PROGRAM:"title_hide_trans2");
2646                                 }
2647                         }
2648                 }
2649                 program { name: "title_hide_trans2";
2650                         action: STATE_SET "hide_trans" 0.0;
2651                         target: "title_bg";
2652                         transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
2653                         after: "title_hide_trans3";
2654                 }
2655                 program { name: "title_hide_trans3";
2656                         script {
2657                                 run_program(PROGRAM:"title_hide");
2658                         }
2659                         after: "title_trans_finished";
2660                 }
2661                 program { name: "title_trans_finished";
2662                         action: SIGNAL_EMIT "elm,action,title,transition,finished" "";
2663                 }
2664                 program { name: "title_show";
2665                         signal: "elm,state,title,show";
2666                         source: "elm";
2667                         script {
2668                                 set_state(PART:"title_bg", "default", 0.0);
2669                                 set_state(PART:"title_clip", "default", 0.0);
2670                                 run_program(PROGRAM:"title_text_fade_out");
2671                         }
2672                 }
2673                 program { name: "title_show_trans";
2674                         signal: "elm,action,title,show";
2675                         source: "elm";
2676                         script {
2677                                 new st[32];
2678                                 new Float:vl;
2679                                 get_state(PART:"title_bg", st, 32, vl);
2680                                 if (!strcmp(st, "hide")) {
2681                                         set_state(PART:"title_bg", "hide_trans", 0.0);
2682                                         set_state(PART:"title_clip", "default", 0.0);
2683                                         run_program(PROGRAM:"title_show_trans2");
2684                                 }
2685                         }
2686                 }
2687                 program { name: "title_show_trans2";
2688                         action: STATE_SET "default" 0.0;
2689                         target: "title_bg";
2690                         transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
2691                         after: "title_trans_finished";
2692                 }
2693                 program { name: "title_label_show";
2694                         signal: "elm,state,title_label,show";
2695                         source: "elm";
2696                         script {
2697                                 run_program(PROGRAM:"title_text_fade_out");
2698                         }
2699                 }
2700                 program { name: "title_label_hide";
2701                         signal: "elm,state,title_label,hide";
2702                         source: "elm";
2703                 }
2704                 program { name: "title_expand_show";
2705                         signal: "elm,state,title_expand,show";
2706                         source: "";
2707                         script {
2708                                 set_state(PART:"title_expand", "show", 0.0);
2709                         }
2710                 }
2711                 program { name: "title_expand_hide";
2712                         signal: "elm,state,title_expand,hide";
2713                         source: "";
2714                         script {
2715                                 set_state(PART:"title_expand", "default", 0.0);
2716                         }
2717                 }
2718                 program { name: "hidden_btn_show_trans";
2719                         signal: "elm,action,title_expand,show";
2720                         source: "";
2721                         action: STATE_SET "show" 0.0;
2722                         target: "title_expand";
2723                         transition: SIN_FAC NAVIFRAME_TITLE_EXPAND_TRANS_TIME 1.7;
2724                 }
2725                 program { name: "title_expand_hide_trans";
2726                         signal: "elm,action,title_expand,hide";
2727                         source: "";
2728                         action: STATE_SET "default" 0.0;
2729                         target: "title_expand";
2730                         transition: SIN_FAC NAVIFRAME_TITLE_EXPAND_TRANS_TIME 1.7;
2731                 }
2732                 program { name: "title_clicked";
2733                         signal: "mouse,clicked,1";
2734                         source: "click_event_area";
2735                         action: SIGNAL_EMIT "elm,action,title,clicked" "";
2736                 }
2737                 program {
2738                         name: "mirrored_on";
2739                         signal: "edje,state,rtl";
2740                         source: "edje";
2741                         script {
2742                                 set_int(g_mirrored, 1);
2743                                 run_program(PROGRAM:"title_text_fade_out");
2744                         }
2745                 }
2746                 program {
2747                         name: "mirrored_off";
2748                         signal: "edje,state,ltr";
2749                         source: "edje";
2750                         script {
2751                                 set_int(g_mirrored, 0);
2752                                 run_program(PROGRAM:"title_text_fade_out");
2753                         }
2754                 }
2755                 program {
2756                         name: "title_text_fade_out";
2757                         script {
2758                                 if (get_int(g_text_fade_out_calc_timer)) {
2759                                         cancel_timer(g_text_fade_out_calc_timer);
2760                                         set_int(g_text_fade_out_calc_timer, 0);
2761                                 }
2762                                 set_int(g_text_fade_out_calc_timer, timer(NAVIFRAME_TEXT_FADE_OUT_CALC_TIME, "title_text_fade_out", 0));
2763                         }
2764                 }
2765         }
2766 }
2767
2768 //////////////////////////////////////////////////////////////////////////////////
2769 // Customizing panel for send button.
2770 //////////////////////////////////////////////////////////////////////////////////
2771
2772 // ***************************** Panel*****************************************/
2773 #define PANEL_LEFT_PADDING_SIZE_INC                        8
2774 #define PANEL_RIGHT_PADDING_SIZE_INC                       6
2775 #define PANEL_LEFT_IMAGE_SIZE_INC                          29 36
2776 #define PANEL_RIGHT_IMAGE_SIZE_INC                         16 36
2777 #define PANEL_RIGHT_CUE_SIZE_INC                           32 158
2778 #define PANEL_RIGHT_CUE_IMAGE_SIZE_INC                     158 158
2779 #define PANEL_RIGHT_EVENT_AREA_SIZE_INC                    50 140
2780 #define PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC            100 140
2781 #define PANEL_RIGHT_CUE_EFFECT_SIZE_INC                    200 200
2782 #define PANEL_LAYOUT_SIZE_INC                              360 360
2783
2784 images {
2785         image, "./b_more_option.png" COMP;
2786         image, "./b_more_option_ef.png" COMP;
2787         image, "./b_more_option_bg.png" COMP;
2788         image, "./b_ic_press_full_circle_bg.png" COMP;
2789 }
2790
2791 group { name: "elm/panel/right/default";
2792    script {
2793       public mouse_down = 0;
2794       public mouse_click = 0;
2795       public multi_down = 0;
2796       public click_cnt = 0;
2797       public event_down = 0;
2798       public cue_hide = 0;
2799       public timer0(val) {
2800         if(val == 1)
2801            run_program(PROGRAM:"change_opacity");
2802         else if(val == 2)
2803            run_program(PROGRAM:"change_opacity2");
2804       }
2805    }
2806    parts {
2807       part { name: "bg";
2808          type: RECT;
2809          repeat_events: 1;
2810          description { state: "default" 0.0;
2811             min: PANEL_LAYOUT_SIZE_INC;
2812             max: PANEL_LAYOUT_SIZE_INC;
2813             //color_class: "transparent";
2814             color: 0 0 0 0;
2815          }
2816       }
2817       part { name: "cue.padding";
2818          type: SPACER;
2819          description { state: "default" 0.0;
2820             rel1.to: "bg";
2821             rel1.relative: 1.0 0.0;
2822             rel2.to: "bg";
2823             rel2.relative: 1.0 1.0;
2824             align: 1.0 0.5;
2825             min: PANEL_RIGHT_PADDING_SIZE_INC 0;
2826             max: PANEL_RIGHT_PADDING_SIZE_INC -1;
2827             fixed: 1 0;
2828          }
2829       }
2830       part { name: "cue";
2831          description { state: "default" 0.0;
2832             min: PANEL_RIGHT_IMAGE_SIZE_INC;
2833             max: PANEL_RIGHT_IMAGE_SIZE_INC;
2834             fixed: 1 0;
2835             image.normal: "./b_more_option.png";
2836             color: 128 128 128 128;
2837             rel1.to: "cue.padding";
2838             rel1.relative: 0.0 0.0;
2839             rel2.to: "cue.padding";
2840             rel2.relative: 0.0 1.0;
2841             align: 1.0 0.5;
2842          }
2843          description { state: "hidden" 0.0;
2844             inherit: "default" 0.0;
2845             visible: 0;
2846          }
2847          description { state: "disabled" 0.0;
2848             inherit: "default" 0.0;
2849             color: 128 128 128 128;
2850          }
2851       }
2852       part { name: "cue_ef";
2853          description { state: "default" 0.0;
2854             min: PANEL_RIGHT_IMAGE_SIZE_INC;
2855             max: PANEL_RIGHT_IMAGE_SIZE_INC;
2856             fixed: 1 1;
2857             image.normal: "./b_more_option_ef.png";
2858             color: 128 128 128 128;
2859             rel1.to: "cue";
2860             rel2.to: "cue";
2861          }
2862          description { state: "hidden" 0.0;
2863             inherit: "default" 0.0;
2864             visible: 0;
2865          }
2866       }
2867       part { name: "effect_bg";
2868          scale: 1;
2869          clip_to: "effect_bg_clip";
2870          repeat_events: 1;
2871          description { state: "default" 0.0;
2872             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2873             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2874             rel1.to: "bg";
2875             rel1.relative: 1.0 0.0;
2876             rel2.to: "bg";
2877             rel2.relative: 1.0 1.0;
2878             align: 0.5 0.5;
2879             fixed: 1 0;
2880             image.normal: "./b_ic_press_full_circle_bg.png";
2881             color: 128 128 128 128;
2882             map.on: 1;
2883          }
2884          description { state: "pressed" 0.0;
2885             inherit: "default" 0.0;
2886             color: 128 128 128 128;
2887             map {
2888                zoom.x: 0.8;
2889                zoom.y: 0.8;
2890             }
2891          }
2892          description { state: "disabled" 0.0;
2893             inherit: "default" 0.0;
2894          }
2895          description { state: "start_persp" 0.0;
2896             inherit: "default" 0.0;
2897             color: 128 128 128 128;
2898             map {
2899                zoom.x: 1.0;
2900                zoom.y: 1.0;
2901             }
2902          }
2903       }
2904       part { name: "effect_bg_clip";
2905          scale: 1;
2906          type: RECT;
2907          repeat_events: 1;
2908          description { state: "default" 0.0;
2909             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2910             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2911             rel1.to: "bg";
2912             rel1.relative: 1.0 0.0;
2913             rel2.to: "bg";
2914             rel2.relative: 1.0 1.0;
2915             align: 0.5 0.5;
2916             fixed: 1 0;
2917             color: 255 255 255 0;
2918          }
2919          description { state: "pressed" 0.0;
2920             inherit: "default" 0.0;
2921             color: 255 255 255 255;
2922          }
2923          description { state: "disabled" 0.0;
2924             inherit: "default" 0.0;
2925          }
2926       }
2927       part { name: "effect_bg2";
2928          scale: 1;
2929          clip_to: "effect_bg_clip2";
2930          repeat_events: 1;
2931          description { state: "default" 0.0;
2932             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2933             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2934             rel1.to: "bg";
2935             rel1.relative: 1.0 0.0;
2936             rel2.to: "bg";
2937             rel2.relative: 1.0 1.0;
2938             align: 0.5 0.5;
2939             fixed: 1 0;
2940             image.normal: "./b_ic_press_full_circle_bg.png";
2941             //color_class: "transparent";
2942             color: 0 0 0 0;
2943             map.on: 1;
2944          }
2945          description { state: "pressed" 0.0;
2946             inherit: "default" 0.0;
2947             color: 128 128 128 128;
2948             map {
2949                zoom.x: 0.8;
2950                zoom.y: 0.8;
2951             }
2952          }
2953          description { state: "disabled" 0.0;
2954             inherit: "default" 0.0;
2955          }
2956          description { state: "start_persp" 0.0;
2957             inherit: "default" 0.0;
2958             color: 128 128 128 128;
2959             map {
2960                zoom.x: 1.0;
2961                zoom.y: 1.0;
2962             }
2963          }
2964       }
2965       part { name: "effect_bg_clip2";
2966          scale: 1;
2967          type: RECT;
2968          repeat_events: 1;
2969          description { state: "default" 0.0;
2970             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2971             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2972             rel1.to: "bg";
2973             rel1.relative: 1.0 0.0;
2974             rel2.to: "bg";
2975             rel2.relative: 1.0 1.0;
2976             align: 0.5 0.5;
2977             fixed: 1 0;
2978             color: 255 255 255 0;
2979          }
2980          description { state: "pressed" 0.0;
2981             inherit: "default" 0.0;
2982             color: 255 255 255 255;
2983          }
2984          description { state: "disabled" 0.0;
2985             inherit: "default" 0.0;
2986          }
2987       }
2988       part { name: "cue.event";
2989          type: RECT;
2990          repeat_events: 0;
2991          description { state: "default" 0.0;
2992             min: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
2993             max: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
2994             fixed: 1 0;
2995             //color_class: "transparent";
2996             color: 0 0 0 0;
2997             rel1.to: "bg";
2998             rel1.relative: 1.0 0.0;
2999             rel2.to: "bg";
3000             rel2.relative: 1.0 1.0;
3001             align: 1.0 0.5;
3002          }
3003          description { state: "hidden" 0.0;
3004             inherit: "default" 0.0;
3005             visible: 0;
3006          }
3007       }
3008       part { name: "cue.release.event";
3009          type: RECT;
3010          repeat_events: 1;
3011          description { state: "default" 0.0;
3012             min: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
3013             max: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
3014             fixed: 1 0;
3015             //color_class: "transparent";
3016             color: 0 0 0 0;
3017             rel1.to: "bg";
3018             rel1.relative: 1.0 0.0;
3019             rel2.to: "bg";
3020             rel2.relative: 1.0 1.0;
3021             align: 1.0 0.5;
3022          }
3023          description { state: "hidden" 0.0;
3024             inherit: "default" 0.0;
3025             visible: 0;
3026          }
3027       }
3028       part { name: "base";
3029          repeat_events: 0;
3030          description { state: "default" 0.0;
3031             rel1.to: "bg";
3032             rel1.offset: -1 -1;
3033             rel2.to: "bg";
3034             rel2.offset: 0 0;
3035             visible: 0;
3036             fixed: 1 1;
3037             image.normal: "./b_more_option_bg.png";
3038             color: 128 128 128 128;
3039             map {
3040                on: 1;
3041                zoom {
3042                   x: 1.35;
3043                   y: 1.35;
3044                }
3045                color[0]: 0 0 0 0;
3046                color[1]: 0 0 0 0;
3047                color[2]: 0 0 0 0;
3048                color[3]: 0 0 0 0;
3049             }
3050          }
3051          description { state: "show" 0.0;
3052             inherit: "default" 0.0;
3053             visible: 1;
3054             map {
3055                zoom {
3056                   x: 1.0;
3057                   y: 1.0;
3058                }
3059                color[0]: 255 255 255 255;
3060                color[1]: 255 255 255 255;
3061                color[2]: 255 255 255 255;
3062                color[3]: 255 255 255 255;
3063             }
3064          }
3065       }
3066       part { name: "elm.swallow.content";
3067          type: SWALLOW;
3068          description { state: "default" 0.0;
3069             rel1.to: "bg";
3070             rel2.to: "bg";
3071             visible: 0;
3072             fixed: 1 1;
3073             map {
3074                on: 1;
3075                zoom {
3076                   x: 1.35;
3077                   y: 1.35;
3078                }
3079                color[0]: 0 0 0 0;
3080                color[1]: 0 0 0 0;
3081                color[2]: 0 0 0 0;
3082                color[3]: 0 0 0 0;
3083             }
3084          }
3085          description { state: "show" 0.0;
3086             inherit: "default" 0.0;
3087             visible: 1;
3088             map {
3089                zoom {
3090                   x: 1.0;
3091                   y: 1.0;
3092                }
3093                color[0]: 255 255 255 255;
3094                color[1]: 255 255 255 255;
3095                color[2]: 255 255 255 255;
3096                color[3]: 255 255 255 255;
3097             }
3098          }
3099       }
3100    }
3101    programs {
3102       program { name: "pressed";
3103          signal: "mouse,down,1*";
3104          source: "cue.event";
3105          script {
3106             if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
3107             {
3108                set_int(mouse_down, 1);
3109                set_int(event_down, 1);
3110                run_program(PROGRAM:"button_press1");
3111             }
3112          }
3113       }
3114       program { name: "button_press1";
3115          script {
3116             new st[31];
3117             new Float:vl;
3118             get_state(PART:"effect_bg", st, 30, vl);
3119             if (strcmp(st, "disabled")) {
3120                emit("elm,action,press", "");
3121                run_program(PROGRAM:"haptic");
3122                if(get_int(click_cnt) == 0) {
3123                   set_state(PART:"effect_bg", "pressed", 0.0);
3124                   set_state(PART:"effect_bg_clip", "pressed", 0.0);
3125                   run_program(PROGRAM:"start_persp");
3126                   timer(0.3, "timer0", 1);
3127                }
3128                else if(get_int(click_cnt) == 1) {
3129                   set_state(PART:"effect_bg2", "pressed", 0.0);
3130                   set_state(PART:"effect_bg_clip2", "pressed", 0.0);
3131                   run_program(PROGRAM:"start_persp2");
3132                   timer(0.3, "timer0", 2);
3133                }
3134             }
3135          }
3136       }
3137       program { name: "unpressed";
3138          signal: "mouse,up,1";
3139          source: "cue.event";
3140          script {
3141             if (get_int(mouse_down) == 1) {
3142                set_int(mouse_down, 0);
3143                run_program(PROGRAM:"button_unpress1");
3144             }
3145          }
3146       }
3147       program { name: "button_unpress1";
3148          script {
3149             new st[31];
3150             new Float:vl;
3151             get_state(PART:"effect_bg", st, 30, vl);
3152             if (strcmp(st, "disabled")) {
3153             if(get_int(click_cnt) == 0)
3154                set_int(click_cnt, 1);
3155             else
3156                set_int(click_cnt, 0);
3157             }
3158          }
3159       }
3160       program { name: "release.event_clicked";
3161          signal: "mouse,clicked,*";
3162          source: "cue.release.event";
3163          script {
3164             if (get_int(event_down) == 1) {
3165                set_int(event_down, 0);
3166                emit("cue,clicked", "elm");
3167                run_program(PROGRAM:"panel_toggle");
3168                run_program(PROGRAM:"play_sample");
3169             }
3170          }
3171       }
3172       program {
3173          name: "play_sample";
3174          action: RUN_PLUGIN "touch_sound";
3175       }
3176       program { name: "panel_toggle";
3177          action: SIGNAL_EMIT "elm,action,panel,toggle" "elm";
3178       }
3179       program {
3180          name: "haptic";
3181          action: RUN_PLUGIN "haptic_tap";
3182       }
3183       program { name: "disable";
3184          signal: "elm,state,disabled";
3185          source: "elm";
3186          script {
3187             if (get_int(cue_hide) == 0)
3188                set_state(PART:"cue", "disabled", 0.0);
3189             set_state(PART:"effect_bg", "disabled", 0.0);
3190             set_state(PART:"cue.event", "hidden", 0.0);
3191             set_state(PART:"cue.release.event", "hidden", 0.0);
3192          }
3193       }
3194       program { name: "enable";
3195          signal: "elm,state,enabled";
3196          source: "elm";
3197          script {
3198             if (get_int(cue_hide) == 1) {
3199                set_state(PART:"cue", "hidden", 0.0);
3200                set_state(PART:"cue.event", "hidden", 0.0);
3201                set_state(PART:"cue.release.event", "hidden", 0.0);
3202             }
3203             else {
3204                set_state(PART:"cue", "default", 0.0);
3205                set_state(PART:"cue.event", "default", 0.0);
3206                set_state(PART:"cue.release.event", "default", 0.0);
3207             }
3208             set_state(PART:"effect_bg", "default", 0.0);
3209          }
3210       }
3211       program { name: "multi_down";
3212          signal: "elm,action,multi,down";
3213          source: "elm";
3214          script {
3215             set_int(multi_down, 1);
3216          }
3217       }
3218       program { name: "multi_up";
3219          signal: "elm,action,multi,up";
3220          source: "elm";
3221          script {
3222             set_int(multi_down, 0);
3223          }
3224       }
3225       program { name: "start_persp";
3226          action: STATE_SET "start_persp" 0.0;
3227          transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3228          target: "effect_bg";
3229       }
3230       program { name: "change_opacity";
3231          action: STATE_SET "default" 0.0;
3232          transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3233          target: "effect_bg_clip";
3234       }
3235       program { name: "start_persp2";
3236          action: STATE_SET "start_persp" 0.0;
3237          transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3238          target: "effect_bg2";
3239       }
3240       program { name: "change_opacity2";
3241          action: STATE_SET "default" 0.0;
3242          transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3243          target: "effect_bg_clip2";
3244       }
3245       program {
3246          signal: "elm,action,show";
3247          source: "elm";
3248          action: STATE_SET "show" 0.0;
3249          transition: CUBIC_BEZIER 0.25 0.25 0.46 0.45 1.0;
3250          target: "elm.swallow.content";
3251          target: "base";
3252          after: "active,finished";
3253       }
3254       program {
3255          signal: "elm,action,hide";
3256          source: "elm";
3257          action: STATE_SET "default" 0.0;
3258          transition: CUBIC_BEZIER 0.25 0.25 0.46 0.45 1.0;
3259          target: "elm.swallow.content";
3260          target: "base";
3261          after: "inactive,finished";
3262       }
3263       program { name: "active,finished";
3264          action: SIGNAL_EMIT "elm,state,active,finished" "elm";
3265       }
3266       program { name: "inactive,finished";
3267          action: SIGNAL_EMIT "elm,state,inactive,finished" "elm";
3268       }
3269       program { name: "cue,hide";
3270          signal: "cue,hide";
3271          source: "elm";
3272          script {
3273             set_int(cue_hide, 1);
3274             set_state(PART:"cue", "hidden", 0.0);
3275             set_state(PART:"cue_ef", "hidden", 0.0);
3276             set_state(PART:"cue.event", "hidden", 0.0);
3277             set_state(PART:"cue.release.event", "hidden", 0.0);
3278          }
3279       }
3280       program { name: "cue,show";
3281          signal: "cue,show";
3282          source: "elm";
3283          script {
3284             set_int(cue_hide, 0);
3285             set_state(PART:"cue", "default", 0.0);
3286             set_state(PART:"cue_ef", "default", 0.0);
3287             set_state(PART:"cue.event", "default", 0.0);
3288             set_state(PART:"cue.release.event", "default", 0.0);
3289          }
3290       }
3291    }
3292 }
3293
3294 group { name: "elm/panel/left/default";
3295    inherit: "elm/panel/right/default";
3296    parts {
3297       part { name: "cue.padding";
3298          type: SPACER;
3299          description { state: "default" 0.0;
3300             rel1.to: "bg";
3301             rel1.relative: 0.0 0.0;
3302             rel2.to: "bg";
3303             rel2.relative: 0.0 1.0;
3304             align: 0.0 0.5;
3305             min: PANEL_RIGHT_PADDING_SIZE_INC 0;
3306             max: PANEL_RIGHT_PADDING_SIZE_INC -1;
3307             fixed: 1 0;
3308          }
3309       }
3310       part { name: "cue";
3311          description { state: "default" 0.0;
3312             min: PANEL_RIGHT_IMAGE_SIZE_INC;
3313             max: PANEL_RIGHT_IMAGE_SIZE_INC;
3314             fixed: 1 0;
3315             image.normal: "./b_more_option.png";
3316             color: 128 128 128 128;
3317             rel1.to: "cue.padding";
3318             rel1.relative: 1.0 0.0;
3319             rel2.to: "cue.padding";
3320             rel2.relative: 1.0 1.0;
3321             align: 0.0 0.5;
3322          }
3323          description { state: "hidden" 0.0;
3324             inherit: "default" 0.0;
3325             visible: 0;
3326          }
3327          description { state: "disabled" 0.0;
3328             inherit: "default" 0.0;
3329             color: 128 128 128 128;
3330          }
3331       }
3332       part { name: "cue_ef";
3333          description { state: "default" 0.0;
3334             min: PANEL_RIGHT_IMAGE_SIZE_INC;
3335             max: PANEL_RIGHT_IMAGE_SIZE_INC;
3336             fixed: 1 1;
3337             image.normal: "./b_more_option_ef.png";
3338             color: 128 128 128 128;
3339             rel1.to: "cue";
3340             rel2.to: "cue";
3341          }
3342          description { state: "hidden" 0.0;
3343             inherit: "default" 0.0;
3344             visible: 0;
3345          }
3346       }
3347       part { name: "effect_bg";
3348          scale: 1;
3349          clip_to: "effect_bg_clip";
3350          repeat_events: 1;
3351          description { state: "default" 0.0;
3352             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3353             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3354             rel1.to: "bg";
3355             rel1.relative: 0.0 0.0;
3356             rel2.to: "bg";
3357             rel2.relative: 0.0 1.0;
3358             align: 0.5 0.5;
3359             fixed: 1 0;
3360             image.normal: "./b_ic_press_full_circle_bg.png";
3361             color: 128 128 128 128;
3362             map.on: 1;
3363          }
3364          description { state: "pressed" 0.0;
3365             inherit: "default" 0.0;
3366             color: 128 128 128 128;
3367             map {
3368                zoom.x: 0.8;
3369                zoom.y: 0.8;
3370             }
3371          }
3372          description { state: "disabled" 0.0;
3373             inherit: "default" 0.0;
3374          }
3375          description { state: "start_persp" 0.0;
3376             inherit: "default" 0.0;
3377             color: 128 128 128 128;
3378             map {
3379                zoom.x: 1.0;
3380                zoom.y: 1.0;
3381             }
3382          }
3383       }
3384       part { name: "effect_bg_clip";
3385          scale: 1;
3386          type: RECT;
3387          repeat_events: 1;
3388          description { state: "default" 0.0;
3389             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3390             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3391             rel1.to: "bg";
3392             rel1.relative: 0.0 0.0;
3393             rel2.to: "bg";
3394             rel2.relative: 0.0 1.0;
3395             align: 0.5 0.5;
3396             fixed: 1 0;
3397             color: 255 255 255 0;
3398          }
3399          description { state: "pressed" 0.0;
3400             inherit: "default" 0.0;
3401             color: 255 255 255 255;
3402          }
3403          description { state: "disabled" 0.0;
3404             inherit: "default" 0.0;
3405          }
3406       }
3407       part { name: "effect_bg2";
3408          scale: 1;
3409          clip_to: "effect_bg_clip2";
3410          repeat_events: 1;
3411          description { state: "default" 0.0;
3412             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3413             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3414             rel1.to: "bg";
3415             rel1.relative: 0.0 0.0;
3416             rel2.to: "bg";
3417             rel2.relative: 0.0 1.0;
3418             align: 0.5 0.5;
3419             fixed: 1 0;
3420             image.normal: "./b_ic_press_full_circle_bg.png";
3421             //color_class: "transparent";
3422             color: 0 0 0 0;
3423             map.on: 1;
3424          }
3425          description { state: "pressed" 0.0;
3426             inherit: "default" 0.0;
3427             color: 128 128 128 128;
3428             map {
3429                zoom.x: 0.8;
3430                zoom.y: 0.8;
3431             }
3432          }
3433          description { state: "disabled" 0.0;
3434             inherit: "default" 0.0;
3435          }
3436          description { state: "start_persp" 0.0;
3437             inherit: "default" 0.0;
3438             color: 128 128 128 128;
3439             map {
3440                zoom.x: 1.0;
3441                zoom.y: 1.0;
3442             }
3443          }
3444       }
3445       part { name: "effect_bg_clip2";
3446          scale: 1;
3447          type: RECT;
3448          repeat_events: 1;
3449          description { state: "default" 0.0;
3450             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3451             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3452             rel1.to: "bg";
3453             rel1.relative: 0.0 0.0;
3454             rel2.to: "bg";
3455             rel2.relative: 0.0 1.0;
3456             align: 0.5 0.5;
3457             fixed: 1 0;
3458             color: 255 255 255 0;
3459          }
3460          description { state: "pressed" 0.0;
3461             inherit: "default" 0.0;
3462             color: 255 255 255 255;
3463          }
3464          description { state: "disabled" 0.0;
3465             inherit: "default" 0.0;
3466          }
3467       }
3468       part { name: "cue.event";
3469          type: RECT;
3470          description { state: "default" 0.0;
3471             min: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
3472             max: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
3473             fixed: 1 0;
3474             //color_class: "transparent";
3475             color: 0 0 0 0;
3476             rel1.to: "bg";
3477             rel1.relative: 0.0 0.0;
3478             rel2.to: "bg";
3479             rel2.relative: 0.0 1.0;
3480             align: 0.0 0.5;
3481          }
3482          description { state: "hidden" 0.0;
3483             inherit: "default" 0.0;
3484             visible: 0;
3485          }
3486       }
3487       part { name: "cue.release.event";
3488          type: RECT;
3489          repeat_events: 1;
3490          description { state: "default" 0.0;
3491             min: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
3492             max: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
3493             fixed: 1 0;
3494             //color_class: "transparent";
3495             color: 0 0 0 0;
3496             rel1.to: "bg";
3497             rel1.relative: 0.0 0.0;
3498             rel2.to: "bg";
3499             rel2.relative: 0.0 1.0;
3500             align: 0.0 0.5;
3501          }
3502          description { state: "hidden" 0.0;
3503             inherit: "default" 0.0;
3504             visible: 0;
3505          }
3506       }
3507    }
3508 }
3509
3510 group { name: "elm/panel/left/sending";
3511         inherit: "elm/panel/left/default";
3512         parts {
3513                 part { name: "cue.padding";
3514                    type: SPACER;
3515                    description { state: "default" 0.0;
3516                           rel1.to: "bg";
3517                           rel1.relative: 0.0 0.0;
3518                           rel2.to: "bg";
3519                           rel2.relative: 0.0 1.0;
3520                           align: 0.0 0.5;
3521                           min: 1 0;//PANEL_RIGHT_PADDING_SIZE_INC 0;
3522                           max: 1 -1;//PANEL_RIGHT_PADDING_SIZE_INC -1;
3523                           fixed: 1 0;
3524                    }
3525                 }
3526                 part { name: "cue";
3527                    description { state: "default" 0.0;
3528                           min: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3529                           max: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3530                           fixed: 1 0;
3531                           image.normal: "./b_stt_send_icon.png";
3532                           color: 128 128 128 128;
3533                           rel1.to: "cue.padding";
3534                           rel1.relative: 1.0 0.0;
3535                           rel2.to: "cue.padding";
3536                           rel2.relative: 1.0 1.0;
3537                           align: 0.0 0.5;
3538                    }
3539                    description { state: "hidden" 0.0;
3540                           inherit: "default" 0.0;
3541                           visible: 0;
3542                    }
3543                    description { state: "disabled" 0.0;
3544                           inherit: "default" 0.0;
3545                           color_class: "AO015L2D";//"B052L1D";
3546                    }
3547                 }
3548                 part { name: "cue_ef";
3549                    description { state: "default" 0.0;
3550                           min: PANEL_RIGHT_IMAGE_SIZE_INC;
3551                           max: PANEL_RIGHT_IMAGE_SIZE_INC;
3552                           fixed: 1 1;
3553                           visible: 0;
3554                           image.normal: "./b_more_option_ef.png";
3555                           color: 128 128 128 128;
3556                           rel1.to: "cue";
3557                           rel2.to: "cue";
3558                    }
3559                    description { state: "hidden" 0.0;
3560                           inherit: "default" 0.0;
3561                           visible: 0;
3562                    }
3563                 }
3564         }
3565 }
3566
3567 group { name: "elm/panel/left/confirm";
3568         inherit: "elm/panel/left/sending";
3569         parts {
3570                 part { name: "cue";
3571                    description { state: "default" 0.0;
3572                           min: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3573                           max: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3574                           fixed: 1 0;
3575                           image.normal: "./b_stt_confirm_icon.png";
3576                           color: 128 128 128 128;
3577                           rel1.to: "cue.padding";
3578                           rel1.relative: 1.0 0.0;
3579                           rel2.to: "cue.padding";
3580                           rel2.relative: 1.0 1.0;
3581                           align: 0.0 0.5;
3582                    }
3583                    description { state: "hidden" 0.0;
3584                           inherit: "default" 0.0;
3585                           visible: 0;
3586                    }
3587                    description { state: "disabled" 0.0;
3588                           inherit: "default" 0.0;
3589                           color_class: "AO015L2D";//"B052L1D";
3590                    }
3591                 }
3592         }
3593 }
3594
3595 }