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