082731ddb3fdaa7fb85f22446631649a795242e1
[platform/core/uifw/inputdelegator.git] / res / 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                         program
932                         {
933                                 name,   "show_effect_part";
934                                 signal, "elm,state,eq,show";
935                                 source, "eq";
936                                 action, STATE_SET "default" 0.1;
937                                 target, "EFFECT_BG";
938                         }
939
940                         program
941                         {
942                                 name,   "hide_effect_part";
943                                 signal, "elm,state,eq,hide";
944                                 source, "eq";
945                                 action, STATE_SET "default" 0.0;
946                                 target, "EFFECT_BG";
947                         }
948
949                         program
950                         {
951                                 name,   "guide_text_up";
952                                 signal, "idle,state,guide_text,up";
953                                 source, "elm";
954                                 action, STATE_SET "default" 0.0;
955                                 target, "guide_text_block";
956                         }
957                         program
958                         {
959                                 name,   "guide_text_bottom";
960                                 signal, "idle,state,guide_text,bottom";
961                                 source, "elm";
962                                 action, STATE_SET "bottom" 0.0;
963                                 target, "guide_text_block";
964                         }
965
966
967                 }
968         }
969
970         group
971         {
972                 name: "option_more_index";
973                 parts
974                 {
975                         part
976                         {
977                                 name: "bg";
978                                 type: SPACER;
979                                 scale: 1;
980                                 description
981                                 {
982                                         state: "default" 0.0;
983                                         min: 360 360;
984                                         max: -1 360;
985                                 }
986                         }
987                         part
988                         {
989                                 name: "scroller";
990                                 type: SWALLOW;
991                                 scale: 1;
992                                 description
993                                 {
994                                         state: "default" 0.0;
995                                         rel1.to: "bg";
996                                         rel2.to: "bg";
997                                 }
998                         }
999                         part
1000                         {
1001                                 name: "controller";
1002                                 type: SWALLOW;
1003                                 scale: 1;
1004                                 description
1005                                 {
1006                                         state: "default" 0.0;
1007                                         align: 0.5 0.0;
1008                                         min: 360 40;
1009                                         max: 360 40;
1010                                         fixed: 0 1;
1011                                         rel1.to: "bg";
1012                                         rel1.relative: 0.0 0.0;
1013                                         rel2.to: "bg";
1014                                         rel2.relative: 1.0 0.0;
1015                                 }
1016                         }
1017                 }
1018         }
1019
1020         group
1021         {
1022                 name, "language_list";
1023                 parts
1024                 {
1025                         part
1026                         {
1027                                 name, "bg";
1028                                 type, RECT;
1029                                 scale, 1;
1030                                 description
1031                                 {
1032                                         state, "default" 0.0;
1033                                         min, 358 0;
1034                                         max, 358 223;
1035                                         rel1
1036                                         {
1037                                                 relative, 0.0 0.0;
1038                                         }
1039                                         rel2
1040                                         {
1041                                                 relative, 1.0 1.0;
1042                                         }
1043                                         color, 8 8 8 255;
1044                                 }
1045                         }
1046                         part
1047                         {
1048                                 name, "list";
1049                                 type, SWALLOW;
1050                                 scale, 1;
1051                                 repeat_events, 0;
1052                                 description
1053                                 {
1054                                         state, "default" 0.0;
1055                                         rel1
1056                                         {
1057                                                 relative, 0.0 0.0;
1058                                                 to, "bg";
1059                                         }
1060                                         rel2
1061                                         {
1062                                                 relative, 1.0 1.0;
1063                                                 to, "bg";
1064                                         }
1065                                 }
1066                         }
1067                 }
1068         }
1069
1070         group{
1071                 name: "layout_textblock";
1072
1073                 script {
1074                          public timer_cb(val) {
1075                                 run_program(PROGRAM:"do_scroll");
1076                          }
1077
1078                   }
1079                 parts {
1080                         part
1081                         {
1082                                 name, "bg";
1083                                 type, SPACER;
1084                                 scale, 1;
1085                                 description
1086                                 {
1087                                         state, "default" 0.0;
1088                                         min, 282 39;
1089                                         rel1
1090                                         {
1091                                                 relative, 0.0 0.0;
1092                                         }
1093                                         rel2
1094                                         {
1095                                                 relative, 1.0 1.0;
1096                                         }
1097                                 }
1098                         }
1099                    part { name: "elm.swallow.content";
1100                           scale: 1;
1101                           type: SWALLOW;
1102                           description { state: "default" 0.0;
1103                                  min: 282 39;
1104                                  color, 120 120 120 120;
1105                           }
1106                    }
1107                 }
1108                 programs {
1109                         program
1110                         {
1111                                 name, "scroll";
1112                                 signal, "scrolling";
1113                                 source, "entry";
1114                                 script {
1115                                         timer(3/10, "timer_cb", 0);
1116                                 }
1117                         }
1118                         program
1119                         {
1120                                 name, "do_scroll";
1121                                 action, SIGNAL_EMIT "do_scroll" "entry";
1122                         }
1123                 }
1124         }
1125
1126         group{ name: "entry_focused_layout";
1127                 parts {
1128                         part
1129                         {
1130                                 name, "bg";
1131                                 type, RECT;
1132                                 scale, 1;
1133                                 description
1134                                 {
1135                                         state, "default" 0.0;
1136                                         rel1
1137                                         {
1138                                                 relative, 0.0 0.0;
1139                                         }
1140                                         rel2
1141                                         {
1142                                                 relative, 1.0 1.0;
1143                                         }
1144                                         visible: 1;
1145                                         color, 120 120 120 120;
1146                                 }
1147                         }
1148                         part { name: "padding_top";
1149                                 type: SPACER;
1150                                 scale: 1;
1151                                 description {
1152                                         state: "default" 0.0;
1153                                         align: 0.0 0.0;
1154                                         rel1.relative: 0.0 0.0;
1155                                         rel2.relative: 1.0 0.0;
1156                                         min: 0 20;
1157                                         fixed: 1 1;
1158                                 }
1159                         }
1160                         part { name: "padding_left";
1161                                 type: SPACER;
1162                                 scale: 1;
1163                                 description {
1164                                         state: "default" 0.0;
1165                                         align: 0.0 0.0;
1166                                         rel1.relative: 0.0 0.0;
1167                                         rel2.relative: 0.0 1.0;
1168                                         min: 73 0;
1169                                         fixed: 1 1;
1170                                 }
1171                         }
1172                         part { name: "padding_right";
1173                                 type: SPACER;
1174                                 scale: 1;
1175                                 description {
1176                                         state: "default" 0.0;
1177                                         align: 1.0 0.0;
1178                                         rel1.relative: 1.0 0.0;
1179                                         rel2.relative: 1.0 1.0;
1180                                         min: 73 0;
1181                                         fixed: 1 1;
1182                                 }
1183                         }
1184                         part {
1185                                 name: "contents";
1186                                 type: SWALLOW;
1187                                 scale: 1;
1188                                 description {
1189                                         state: "default" 0.0;
1190                                         rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1191                                         rel2 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top";}
1192                                         min:0 42;
1193                                         max: -1 42;
1194                                         align: 0.5 0;
1195                                 }
1196                         }
1197                 }
1198         }
1199
1200
1201
1202 #define PROGRESSBAR_ACTIVITY_SMALL_SIZE_INC 50
1203         group
1204         {
1205                 name: "elm/progressbar/horizontal/voice_input/process/small";
1206                 images {
1207                         image: "style/tw_loading_small_00.png" COMP;
1208                         image: "style/tw_loading_small_01.png" COMP;
1209                         image: "style/tw_loading_small_02.png" COMP;
1210                         image: "style/tw_loading_small_03.png" COMP;
1211                         image: "style/tw_loading_small_04.png" COMP;
1212                         image: "style/tw_loading_small_05.png" COMP;
1213                         image: "style/tw_loading_small_06.png" COMP;
1214                         image: "style/tw_loading_small_07.png" COMP;
1215                         image: "style/tw_loading_small_08.png" COMP;
1216                         image: "style/tw_loading_small_09.png" COMP;
1217                         image: "style/tw_loading_small_10.png" COMP;
1218                         image: "style/tw_loading_small_11.png" COMP;
1219                         image: "style/tw_loading_small_12.png" COMP;
1220                         image: "style/tw_loading_small_13.png" COMP;
1221                         image: "style/tw_loading_small_14.png" COMP;
1222                         image: "style/tw_loading_small_15.png" COMP;
1223                         image: "style/tw_loading_small_16.png" COMP;
1224                         image: "style/tw_loading_small_17.png" COMP;
1225                         image: "style/tw_loading_small_18.png" COMP;
1226                         image: "style/tw_loading_small_19.png" COMP;
1227                         image: "style/tw_loading_small_20.png" COMP;
1228                         image: "style/tw_loading_small_21.png" COMP;
1229                         image: "style/tw_loading_small_22.png" COMP;
1230                         image: "style/tw_loading_small_23.png" COMP;
1231                         image: "style/tw_loading_small_24.png" COMP;
1232                         image: "style/tw_loading_small_25.png" COMP;
1233                         image: "style/tw_loading_small_26.png" COMP;
1234                         image: "style/tw_loading_small_27.png" COMP;
1235                         image: "style/tw_loading_small_28.png" COMP;
1236                         image: "style/tw_loading_small_29.png" COMP;
1237                         image: "style/tw_loading_small_30.png" COMP;
1238                         image: "style/tw_loading_small_31.png" COMP;
1239                         image: "style/tw_loading_small_32.png" COMP;
1240                         image: "style/tw_loading_small_33.png" COMP;
1241                         image: "style/tw_loading_small_34.png" COMP;
1242                         image: "style/tw_loading_small_35.png" COMP;
1243                         image: "style/tw_loading_small_36.png" COMP;
1244                         image: "style/tw_loading_small_37.png" COMP;
1245                         image: "style/tw_loading_small_38.png" COMP;
1246                         image: "style/tw_loading_small_39.png" COMP;
1247                         image: "style/tw_loading_small_40.png" COMP;
1248                         image: "style/tw_loading_small_41.png" COMP;
1249                         image: "style/tw_loading_small_42.png" COMP;
1250                         image: "style/tw_loading_small_43.png" COMP;
1251                         image: "style/tw_loading_small_44.png" COMP;
1252                         image: "style/tw_loading_small_45.png" COMP;
1253                         image: "style/tw_loading_small_46.png" COMP;
1254                         image: "style/tw_loading_small_47.png" COMP;
1255                         image: "style/tw_loading_small_48.png" COMP;
1256                         image: "style/tw_loading_small_49.png" COMP;
1257                         image: "style/tw_loading_small_50.png" COMP;
1258                         image: "style/tw_loading_small_51.png" COMP;
1259                         image: "style/tw_loading_small_52.png" COMP;
1260                         image: "style/tw_loading_small_53.png" COMP;
1261                         image: "style/tw_loading_small_54.png" COMP;
1262                         image: "style/tw_loading_small_55.png" COMP;
1263                         image: "style/tw_loading_small_56.png" COMP;
1264                         image: "style/tw_loading_small_57.png" COMP;
1265                         image: "style/tw_loading_small_58.png" COMP;
1266                         image: "style/tw_loading_small_59.png" COMP;
1267                         image: "style/tw_loading_small_60.png" COMP;
1268                         image: "style/tw_loading_small_61.png" COMP;
1269                         image: "style/tw_loading_small_62.png" COMP;
1270                         image: "style/tw_loading_small_63.png" COMP;
1271                         image: "style/tw_loading_small_64.png" COMP;
1272                 }
1273                 parts {
1274                         part {
1275                                 name: "access";
1276                                 type: RECT;
1277                                 description
1278                                 {
1279                                         state: "default" 0.0;
1280                                         fixed: 1 1;
1281                                         color: 0 0 0 0;
1282                                 }
1283                         }
1284                         part {
1285                                 name: "elm.background.progressbar";
1286                                 mouse_events: 0;
1287                                 scale: 1;
1288                                 type: RECT;
1289                                 description {
1290                                         state: "default" 0.0;
1291                                 }
1292                         }
1293                         part {
1294                                 name: "bar";
1295                                 mouse_events: 0;
1296                                 scale: 1;
1297                                 clip_to: "elm.background.progressbar";
1298                                 description {
1299                                         state: "default" 0.0;
1300                                         min: PROGRESSBAR_ACTIVITY_SMALL_SIZE_INC PROGRESSBAR_ACTIVITY_SMALL_SIZE_INC;
1301                                         max: PROGRESSBAR_ACTIVITY_SMALL_SIZE_INC PROGRESSBAR_ACTIVITY_SMALL_SIZE_INC;
1302                                         fixed, 1 1;
1303                                         aspect: 1.0 1.0;
1304                                         aspect_preference: BOTH;
1305                                         image.normal: "style/tw_loading_small_00.png";
1306                                         image.tween: "style/tw_loading_small_01.png";
1307                                         image.tween: "style/tw_loading_small_02.png";
1308                                         image.tween: "style/tw_loading_small_03.png";
1309                                         image.tween: "style/tw_loading_small_04.png";
1310                                         image.tween: "style/tw_loading_small_05.png";
1311                                         image.tween: "style/tw_loading_small_06.png";
1312                                         image.tween: "style/tw_loading_small_07.png";
1313                                         image.tween: "style/tw_loading_small_08.png";
1314                                         image.tween: "style/tw_loading_small_09.png";
1315                                         image.tween: "style/tw_loading_small_10.png";
1316                                         image.tween: "style/tw_loading_small_11.png";
1317                                         image.tween: "style/tw_loading_small_12.png";
1318                                         image.tween: "style/tw_loading_small_13.png";
1319                                         image.tween: "style/tw_loading_small_14.png";
1320                                         image.tween: "style/tw_loading_small_15.png";
1321                                         image.tween: "style/tw_loading_small_16.png";
1322                                         image.tween: "style/tw_loading_small_17.png";
1323                                         image.tween: "style/tw_loading_small_18.png";
1324                                         image.tween: "style/tw_loading_small_19.png";
1325                                         image.tween: "style/tw_loading_small_20.png";
1326                                         image.tween: "style/tw_loading_small_21.png";
1327                                         image.tween: "style/tw_loading_small_22.png";
1328                                         image.tween: "style/tw_loading_small_23.png";
1329                                         image.tween: "style/tw_loading_small_24.png";
1330                                         image.tween: "style/tw_loading_small_25.png";
1331                                         image.tween: "style/tw_loading_small_26.png";
1332                                         image.tween: "style/tw_loading_small_27.png";
1333                                         image.tween: "style/tw_loading_small_28.png";
1334                                         image.tween: "style/tw_loading_small_29.png";
1335                                         image.tween: "style/tw_loading_small_30.png";
1336                                         image.tween: "style/tw_loading_small_31.png";
1337                                         image.tween: "style/tw_loading_small_32.png";
1338                                         image.tween: "style/tw_loading_small_33.png";
1339                                         image.tween: "style/tw_loading_small_34.png";
1340                                         image.tween: "style/tw_loading_small_35.png";
1341                                         image.tween: "style/tw_loading_small_36.png";
1342                                         image.tween: "style/tw_loading_small_37.png";
1343                                         image.tween: "style/tw_loading_small_38.png";
1344                                         image.tween: "style/tw_loading_small_39.png";
1345                                         image.tween: "style/tw_loading_small_40.png";
1346                                         image.tween: "style/tw_loading_small_41.png";
1347                                         image.tween: "style/tw_loading_small_42.png";
1348                                         image.tween: "style/tw_loading_small_43.png";
1349                                         image.tween: "style/tw_loading_small_44.png";
1350                                         image.tween: "style/tw_loading_small_45.png";
1351                                         image.tween: "style/tw_loading_small_46.png";
1352                                         image.tween: "style/tw_loading_small_47.png";
1353                                         image.tween: "style/tw_loading_small_48.png";
1354                                         image.tween: "style/tw_loading_small_48.png";
1355                                         image.tween: "style/tw_loading_small_49.png";
1356                                         image.tween: "style/tw_loading_small_50.png";
1357                                         image.tween: "style/tw_loading_small_51.png";
1358                                         image.tween: "style/tw_loading_small_52.png";
1359                                         image.tween: "style/tw_loading_small_53.png";
1360                                         image.tween: "style/tw_loading_small_54.png";
1361                                         image.tween: "style/tw_loading_small_55.png";
1362                                         image.tween: "style/tw_loading_small_56.png";
1363                                         image.tween: "style/tw_loading_small_57.png";
1364                                         image.tween: "style/tw_loading_small_58.png";
1365                                         image.tween: "style/tw_loading_small_59.png";
1366                                         image.tween: "style/tw_loading_small_60.png";
1367                                         image.tween: "style/tw_loading_small_61.png";
1368                                         image.tween: "style/tw_loading_small_62.png";
1369                                         image.tween: "style/tw_loading_small_63.png";
1370                                         image.tween: "style/tw_loading_small_64.png";
1371                                         color: 128 128 128 128;
1372                                 }
1373                         }
1374                 }
1375                 programs {
1376                         program {
1377                                 name: "start_pulse";
1378                                 signal: "elm,state,pulse,start";
1379                                 source: "elm";
1380                                 action: STATE_SET "default" 0.0;
1381                                 target: "bar";
1382                                 transition: LINEAR 1.8;
1383                                 after: "start_pulse";
1384                         }
1385                         program {
1386                                 name: "stop_pulse";
1387                                 signal: "elm,state,pulse,stop";
1388                                 source: "elm";
1389                                 action: ACTION_STOP;
1390                                 target: "start_pulse";
1391                                 after: "init_pulse";
1392                         }
1393                         program { name: "init_pulse";
1394                                 action: STATE_SET "default" 0.0;
1395                                 target: "bar";
1396                         }
1397                 }
1398         }
1399
1400
1401 #define BUTTON_PADDING_SIZE_INC                            20 0
1402 #define BUTTON_HEIGHT_INC                                  122
1403 #define BUTTON_ICON_SIZE_INC                               60 60
1404         group { name: "elm/button/base/default";
1405                 script {
1406                         public mouse_down = 0;
1407                         public multi_down = 0;
1408                 }
1409                 parts {
1410                         part { name: "bg";
1411                                 type: RECT;
1412                                 scale: 1;
1413                                 description { state: "default" 0.0;
1414                                 min: 0 BUTTON_HEIGHT_INC;
1415                                 color_class: "W011";
1416                         }
1417                         description { state: "pressed" 0.0;
1418                                 inherit: "default" 0.0;
1419                                 color_class: "W011P";
1420                         }
1421                         description { state: "disabled" 0.0;
1422                                 inherit: "default" 0.0;
1423                                 color_class: "W011D";
1424                         }
1425                 }
1426                 part { name: "padding_left_top";
1427                         type: SPACER;
1428                         scale: 1;
1429                         description { state: "default" 0.0;
1430                                 align: 0.0 0.0;
1431                                 rel2.relative: 0.0 0.0;
1432                                 min: BUTTON_PADDING_SIZE_INC;
1433                                 fixed: 1 1;
1434                         }
1435                 }
1436                 part { name: "padding_right_bottom";
1437                         type: SPACER;
1438                         scale: 1;
1439                         description { state: "default" 0.0;
1440                                 align: 1.0 1.0;
1441                                 rel1.relative: 1.0 1.0;
1442                                 min: BUTTON_PADDING_SIZE_INC;
1443                                 fixed: 1 1;
1444                         }
1445                 }
1446                 part { name: "icon_rect";
1447                         type: SPACER;
1448                         scale: 1;
1449                         description { state: "default" 0.0;
1450                                 align: 0.0 0.5;
1451                                 rel1 {
1452                                         relative: 1.0 1.0;
1453                                         to: "padding_left_top";
1454                                 }
1455                                 rel2 {
1456                                         relative: 1.0 0.0;
1457                                         to_x: "padding_left_top";
1458                                         to_y: "padding_right_bottom";
1459                                 }
1460                                 min: 0 0;
1461                                 fixed: 1 1;
1462                         }
1463                         description { state: "visible" 0.0;
1464                                 inherit: "default" 0.0;
1465                                 min: BUTTON_ICON_SIZE_INC;
1466                                 max: BUTTON_ICON_SIZE_INC;
1467                                 fixed: 1 1;
1468                         }
1469                  }
1470                  part { name: "elm.swallow.content";
1471                         type: SWALLOW;
1472                         clip_to: "elm.swallow.content.clip";
1473                         scale: 1;
1474                         description { state: "default" 0.0;
1475                                 visible: 0;
1476                                 align: 0.0 0.5;
1477                                 rel1 {
1478                                         relative: 1.0 1.0;
1479                                         to: "padding_left_top";
1480                                 }
1481                                 rel2 {
1482                                         relative: 1.0 0.0;
1483                                         to_x: "padding_left_top";
1484                                         to_y: "padding_right_bottom";
1485                                 }
1486                                 fixed: 1 0;
1487                         }
1488                         description { state: "visible" 0.0;
1489                                 fixed: 1 1;
1490                                 min: BUTTON_ICON_SIZE_INC;
1491                                 max: BUTTON_ICON_SIZE_INC;
1492                                 align: 1.0 0.5;
1493                                 rel1 {
1494                                         relative: 0.0 1.0;
1495                                         to_x: "elm.text";
1496                                         to_y: "padding_left_top";
1497                                 }
1498                                 rel2 {
1499                                         relative: 0.0 0.0;
1500                                         to_x: "elm.text";
1501                                         to_y: "padding_right_bottom";
1502                                 }
1503                         }
1504                         description { state: "icononly" 0.0;
1505                                 min: BUTTON_ICON_SIZE_INC;
1506                                 max: BUTTON_ICON_SIZE_INC;
1507                         }
1508                 }
1509                 part { name: "elm.text";
1510                         type: TEXTBLOCK;
1511                         mouse_events: 0;
1512                         scale: 1;
1513                         description { state: "default" 0.0;
1514                                 fixed: 1 1;
1515                                 rel1 {
1516                                         relative: 1.0 1.0;
1517                                         to_x: "icon_rect";
1518                                         to_y: "padding_left_top";
1519                                 }
1520                                 rel2 {
1521                                         relative: 0.0 0.0;
1522                                         to: "padding_right_bottom";
1523                                 }
1524                                 text {
1525                                         max: 1 0;
1526                                         style: "button_general_text_normal";
1527                                 }
1528                         }
1529                         description { state: "disabled" 0.0;
1530                                 inherit: "default" 0.0;
1531                                 text.style: "button_general_text_dim";
1532                         }
1533                         description { state: "pressed" 0.0;
1534                                 inherit: "default" 0.0;
1535                                 text.style: "button_general_text_press";
1536                         }
1537                 }
1538                 part { name: "elm.swallow.content.clip";
1539                         type: RECT;
1540                         scale: 1;
1541                         description { state: "default" 0.0;
1542                                 color_class: "F022L1i";
1543                         }
1544                         description { state: "disabled" 0.0;
1545                                 inherit: "default" 0.0;
1546                                 color_class: "F022L1iD";
1547                         }
1548                 }
1549                 part { name: "event";
1550                         type: RECT;
1551                         scale: 1;
1552                         description { state: "default" 0.0;
1553                                 color: 0 0 0 0;
1554                                 rel1.to: "bg";
1555                                 rel2.to: "bg";
1556                         }
1557                 }
1558         }
1559         programs {
1560                 program { name: "pressed";
1561                         signal: "mouse,down,1*";
1562                         source: "event";
1563                         script {
1564                                 if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
1565                                 {
1566                                         set_int(mouse_down, 1);
1567                                         run_program(PROGRAM:"button_press1");
1568                                 }
1569                         }
1570                 }
1571                 program { name: "button_press1";
1572                         script {
1573                                 new st[31];
1574                                 new Float:vl;
1575                                 get_state(PART:"bg", st, 30, vl);
1576                                 if (strcmp(st, "disabled")) {
1577                                         set_state(PART:"bg", "pressed", 0.0);
1578                                         set_state(PART:"elm.text", "pressed", 0.0);
1579                                         emit("elm,action,press", "");
1580                                 }
1581                         }
1582                 }
1583                 program { name: "unpressed";
1584                         signal: "mouse,up,1";
1585                         source: "event";
1586                         script {
1587                                 if (get_int(mouse_down) == 1) {
1588                                         set_int(mouse_down, 0);
1589                                         run_program(PROGRAM:"button_unpress1");
1590                                 }
1591                         }
1592                 }
1593                 program { name: "button_unpress1";
1594                         script {
1595                                 new st[31];
1596                                 new Float:vl;
1597                                 get_state(PART:"bg", st, 30, vl);
1598                                 if (strcmp(st, "disabled")) {
1599                                         set_state(PART:"bg", "default", 0.0);
1600                                         set_state(PART:"elm.text", "default", 0.0);
1601                                         emit("elm,action,unpress", "");
1602                                 }
1603                         }
1604                 }
1605                 program { name: "touch_snd";
1606                         signal: "mouse,clicked,1";
1607                         source: "event";
1608                         script {
1609                                 new st[31];
1610                                 new Float:vl;
1611                                 if (get_int(multi_down) == 0) {
1612                                         get_state(PART:"bg", st, 30, vl);
1613                                         if (strcmp(st, "disabled")) {
1614                                                 //run_program(PROGRAM:"play_sample");
1615                                                 emit("elm,action,click", "");
1616                                         }
1617                                 }
1618                         }
1619                 }
1620                 program {
1621                         name: "play_sample";
1622                         action: RUN_PLUGIN "touch_sound";
1623                 }
1624                 program { name: "text_show";
1625                         signal: "elm,state,text,visible";
1626                         source: "elm";
1627                         script {
1628                                 new st[31];
1629                                 new Float:vl;
1630                                 get_state(PART:"elm.swallow.content", st, 30, vl);
1631                                 if (!strcmp(st, "icononly"))
1632                                 {
1633                                         set_state(PART:"elm.swallow.content", "visible", 0.0);
1634                                         set_state(PART:"icon_rect", "visible", 0.0);
1635                                 }
1636                                 get_state(PART:"bg", st, 30, vl);
1637                                 if (strcmp(st, "disabled"))
1638                                         set_state(PART:"elm.text", "default", 0.0);
1639                                 else
1640                                         set_state(PART:"elm.text", "disabled", 0.0);
1641                         }
1642                 }
1643                 program { name: "text_hide";
1644                         signal: "elm,state,text,hidden";
1645                         source: "elm";
1646                         script {
1647                                 new st[31];
1648                                 new Float:vl;
1649                                 get_state(PART:"elm.swallow.content", st, 30, vl);
1650                                 if (!strcmp(st, "visible"))
1651                                 {
1652                                         set_state(PART:"elm.swallow.content", "icononly", 0.0);
1653                                         set_state(PART:"icon_rect", "default", 0.0);
1654                                 }
1655                                 set_state(PART:"elm.text", "default", 0.0);
1656                         }
1657                 }
1658                 program { name: "icon_show";
1659                         signal: "elm,state,icon,visible";
1660                         source: "elm";
1661                         action: STATE_SET "visible" 0.0;
1662                         target: "elm.swallow.content";
1663                         target: "icon_rect";
1664                 }
1665                 program { name: "icon_hide";
1666                         signal: "elm,state,icon,hidden";
1667                         source: "elm";
1668                         action: STATE_SET "default" 0.0;
1669                         target: "elm.swallow.content";
1670                         target: "icon_rect";
1671                 }
1672                 program { name: "disable";
1673                         signal: "elm,state,disabled";
1674                         source: "elm";
1675                         action: STATE_SET "disabled" 0.0;
1676                         target: "bg";
1677                         target: "elm.swallow.content.clip";
1678                         target: "elm.text";
1679                 }
1680                 program { name: "enable";
1681                         signal: "elm,state,enabled";
1682                         source: "elm";
1683                         action: STATE_SET "default" 0.0;
1684                         target: "bg";
1685                         target: "elm.swallow.content.clip";
1686                         target: "elm.text";
1687                 }
1688                 program { name: "multi_down";
1689                         signal: "elm,action,multi,down";
1690                         source: "elm";
1691                         script {
1692                                 set_int(multi_down, 1);
1693                         }
1694                 }
1695                 program { name: "multi_up";
1696                         signal: "elm,action,multi,up";
1697                         source: "elm";
1698                         script {
1699                                 set_int(multi_down, 0);
1700                         }
1701                 }
1702         }
1703 }
1704
1705         group { name: "elm/button/base/ime_transparent";
1706                 inherit: "elm/button/base/default";
1707                 parts {
1708                         part { name: "bg";
1709                                 type: RECT;
1710                                 scale: 1;
1711                                 description { state: "default" 0.0;
1712                                         min: 0 112;
1713                                         visible: 0;
1714                                 }
1715                                 description { state: "pressed" 0.0;
1716                                         inherit: "default" 0.0;
1717                                 }
1718                                 description { state: "disabled" 0.0;
1719                                         inherit: "default" 0.0;
1720                                 }
1721                         }
1722                 }
1723         }
1724
1725         group { name: "elm/button/base/ime_button";
1726                 alias: "elm/button/base/ime_button_stt";
1727                 inherit: "elm/button/base/default";
1728                 parts {
1729                         part { name: "bg";
1730                                 type: IMAGE;
1731                                 scale: 1;
1732                                 description { state: "default" 0.0;
1733                                         min: 0 0;
1734                                         color_class: "AO01153L1";
1735                                         visible: 1;
1736                                         image.normal: "./w_mode_ic_bg.png";
1737                                 }
1738                                 description { state: "pressed" 0.0;
1739                                         inherit: "default" 0.0;
1740                                         color_class: "AO01153L1P";
1741                                 }
1742                                 description { state: "disabled" 0.0;
1743                                         inherit: "default" 0.0;
1744                                         color_class: "W011D";
1745                                 }
1746                         }
1747                         part { name: "elm.swallow.content";
1748                                 type: SWALLOW;
1749                                 scale: 1;
1750                                 clip_to: "elm.swallow.content.clip";
1751                                 description { state: "default" 0.0;
1752                                         visible: 1;
1753                                         align: 0.5 0.5;
1754                                         rel1 { relative: 0.0 0.0; to: "bg";}
1755                                         rel2 { relative: 1.0 1.0; to: "bg";}
1756                                         fixed: 1 1;
1757                                 }
1758                                 description { state: "visible" 0.0;
1759                                         inherit: "default" 0.0;
1760                                         visible: 1;
1761                                 }
1762                                 description { state: "icononly" 0.0;
1763                                         inherit: "default" 0.0;
1764                                         visible: 1;
1765                                 }
1766                         }
1767
1768                 }
1769                 programs {
1770                         program { name: "pressed";
1771                                 signal: "mouse,down,1*";
1772                                 source: "event";
1773                                 script {
1774                                         if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
1775                                         {
1776                                                 set_int(mouse_down, 1);
1777                                                 run_program(PROGRAM:"button_press1");
1778                                         }
1779                                 }
1780                         }
1781                         program { name: "button_press1";
1782                                 script {
1783                                         new st[31];
1784                                         new Float:vl;
1785                                         get_state(PART:"bg", st, 30, vl);
1786                                         if (strcmp(st, "disabled")) {
1787                                                 set_state(PART:"bg", "pressed", 0.0);
1788                                                 set_state(PART:"elm.swallow.content.clip", "pressed", 0.0);
1789                                                 emit("elm,action,press", "");
1790                                         }
1791                                 }
1792                         }
1793                         program { name: "unpressed";
1794                                 signal: "mouse,up,1";
1795                                 source: "event";
1796                                 script {
1797                                         if (get_int(mouse_down) == 1) {
1798                                                 set_int(mouse_down, 0);
1799                                                 run_program(PROGRAM:"button_unpress1");
1800                                         }
1801                                 }
1802                         }
1803                         program { name: "button_unpress1";
1804                                 script {
1805                                         new st[31];
1806                                         new Float:vl;
1807                                         get_state(PART:"bg", st, 30, vl);
1808                                         if (strcmp(st, "disabled")) {
1809                                                 set_state(PART:"bg", "default", 0.0);
1810                                                 set_state(PART:"elm.swallow.content.clip", "default", 0.0);
1811                                                 emit("elm,action,unpress", "");
1812                                         }
1813                                 }
1814                         }
1815                 }
1816         }
1817
1818         group { name: "elm/button/base/ime_button_emoticon";
1819                 inherit: "elm/button/base/ime_button";
1820                 parts {
1821                         part { name: "bg";
1822                                 type: IMAGE;
1823                                 scale: 1;
1824                                 description { state: "default" 0.0;
1825                                         min: 0 0;
1826                                         color_class: "AO01154L1";
1827                                         visible: 1;
1828                                         image.normal: "./w_mode_ic_bg.png";
1829                         }
1830                                 description { state: "pressed" 0.0;
1831                                         inherit: "default" 0.0;
1832                                         color_class: "AO01154L1P";
1833                                 }
1834                                 description { state: "disabled" 0.0;
1835                                         inherit: "default" 0.0;
1836                                         color_class: "W011D";
1837                                         }
1838                                 }
1839                         }
1840                 }
1841
1842         group { name: "elm/button/base/ime_button_keyboard";
1843                 inherit: "elm/button/base/ime_button";
1844                 parts {
1845                         part { name: "bg";
1846                                 type: IMAGE;
1847                                 scale: 1;
1848                                 description { state: "default" 0.0;
1849                                         min: 0 0;
1850                                         color_class: "AO01155L1";
1851                                         visible: 1;
1852                                         image.normal: "./w_mode_ic_bg.png";
1853                                 }
1854                                 description { state: "pressed" 0.0;
1855                                         inherit: "default" 0.0;
1856                                         color_class: "AO01155L1P";
1857                                 }
1858                                 description { state: "disabled" 0.0;
1859                                         inherit: "default" 0.0;
1860                                         color_class: "W011D";
1861                                 }
1862                         }
1863                 }
1864         }
1865
1866         group { name: "elm/button/base/ime_button_template";
1867                 inherit: "elm/button/base/ime_button";
1868                 parts {
1869                         part { name: "bg";
1870                                 type: IMAGE;
1871                                 scale: 1;
1872                                 description { state: "default" 0.0;
1873                                         min: 76 76;
1874                                         max: 76 76;
1875                                         color_class: "AO01161";
1876                                         visible: 1;
1877                                         image.normal: "./w_mode_ic_bg.png";
1878                                 }
1879                                 description { state: "pressed" 0.0;
1880                                         inherit: "default" 0.0;
1881                                         color_class: "AO01161P";
1882                                 }
1883                                 description { state: "disabled" 0.0;
1884                                         inherit: "default" 0.0;
1885                                         color_class: "AO01161D";
1886                                 }
1887                         }
1888                         part { name: "elm.swallow.content.clip";
1889                                 type: RECT;
1890                                 scale: 1;
1891                                 description { state: "default" 0.0;
1892                                         color_class: "AO01153L3";
1893                                 }
1894                                 description { state: "pressed" 0.0;
1895                                         inherit: "default" 0.0;
1896                                         color_class: "AO01153L3P";
1897                                 }
1898                                 description { state: "disabled" 0.0;
1899                                         inherit: "default" 0.0;
1900                                         color_class: "AO01153L3D";
1901                                 }
1902                         }
1903                 }
1904         }
1905
1906         group { name: "elm/button/base/ime_button_stt_confirm";
1907                 inherit: "elm/button/base/ime_button";
1908                 parts {
1909                         part { name: "bg";
1910                                 type: IMAGE;
1911                                 scale: 1;
1912                                 description { state: "default" 0.0;
1913                                         min: 0 0;
1914                                         color_class: "AO015L2";
1915                                         visible: 0;
1916                                         image.normal: "./b_stt_icon_btn.png";
1917                                 }
1918                                 description { state: "pressed" 0.0;
1919                                         inherit: "default" 0.0;
1920                                         color_class: "AO015L2P";
1921                                 }
1922                                 description { state: "disabled" 0.0;
1923                                         inherit: "default" 0.0;
1924                                         color_class: "AO015L2D";
1925                                 }
1926                         }
1927                         part { name: "elm.swallow.content.clip";
1928                                 type: RECT;
1929                                 scale: 1;
1930                                 description { state: "default" 0.0;
1931                                         color_class: "AO015L2";
1932                                 }
1933                                 description { state: "pressed" 0.0;
1934                                         inherit: "default" 0.0;
1935                                         color_class: "AO015L2P";
1936                                 }
1937                                 description { state: "disabled" 0.0;
1938                                         inherit: "default" 0.0;
1939                                         color_class: "AO015L2D";
1940                                 }
1941                         }
1942                 }
1943         }
1944
1945         group { name: "elm/button/base/touch_area";
1946                 inherit: "elm/button/base/default";
1947                 parts {
1948                         part { name: "bg";
1949                                 type: RECT;
1950                                 scale: 1;
1951                                 description { state: "default" 0.0;
1952                                         min: 0 0;
1953                                         color: 0 0 0 0;
1954                                         visible: 1;
1955                                 }
1956                                 description { state: "pressed" 0.0;
1957                                         inherit: "default" 0.0;
1958                                 }
1959                                 description { state: "disabled" 0.0;
1960                                         inherit: "default" 0.0;
1961                                 }
1962                         }
1963                 }
1964                 programs {
1965                         program { name: "touch_snd";
1966                                 signal: "mouse,clicked,1";
1967                                 source: "event";
1968                                 script {
1969                                         new st[31];
1970                                         new Float:vl;
1971                                         if (get_int(multi_down) == 0) {
1972                                                 get_state(PART:"bg", st, 30, vl);
1973                                                 if (strcmp(st, "disabled")) {
1974                                                         run_program(PROGRAM:"play_sample");
1975                                                         emit("elm,action,click", "");
1976                                                 }
1977                                         }
1978                                 }
1979                         }
1980                 }
1981         }
1982
1983         group { name: "elm/button/base/emoticon";
1984
1985                 script {
1986                         public mouse_down = 0;
1987                         public multi_down = 0;
1988                 }
1989                 parts {
1990                         part { name: "bg";
1991                                 type: SPACER;
1992                                 scale: 1;
1993                                 description { state: "default" 0.0;
1994                                         min: 0 0;
1995                                 }
1996                                 description { state: "pressed" 0.0;
1997                                         inherit: "default" 0.0;
1998                                 }
1999                                 description { state: "disabled" 0.0;
2000                                         inherit: "default" 0.0;
2001                                 }
2002                         }
2003                         part { name: "padding_left_top";
2004                                 type: SPACER;
2005                                 scale: 1;
2006                                 description { state: "default" 0.0;
2007                                         align: 0.0 0.0;
2008                                         rel2.relative: 0.0 0.0;
2009                                         min: 0 0;
2010                                         fixed: 1 1;
2011                                         //visible: 1;
2012                                         //color: 255 0 0 100;
2013                                 }
2014                         }
2015                         part { name: "padding_right_bottom";
2016                                 type: SPACER;
2017                                 scale: 1;
2018                                 description { state: "default" 0.0;
2019                                         align: 1.0 1.0;
2020                                         rel1.relative: 1.0 1.0;
2021                                         min: 0 0;
2022                                         fixed: 1 1;
2023                                         //visible: 1;
2024                                         //color: 0 255 0 100;
2025                                 }
2026                         }
2027                         part { name: "elm.text";
2028                                 type: TEXTBLOCK;
2029                                 mouse_events: 0;
2030                                 scale: 1;
2031                                 description { state: "default" 0.0;
2032                                         fixed: 1 1;
2033                                         rel1 {
2034                                                 relative: 1.0 1.0;
2035                                                 to: "padding_left_top";
2036                                         }
2037                                         rel2 {
2038                                                 relative: 0.0 0.0;
2039                                                 to: "padding_right_bottom";
2040                                         }
2041                                         text {
2042                                                 min: 1 0;
2043                                                 style: "button_general_text_normal";
2044                                         }
2045                                 }
2046                                 description { state: "disabled" 0.0;
2047                                         inherit: "default" 0.0;
2048                                         text.style: "button_general_text_dim";
2049                                 }
2050                                 description { state: "pressed" 0.0;
2051                                         inherit: "default" 0.0;
2052                                         text.style: "button_general_text_press";
2053                                 }
2054                         }
2055                         part { name: "event";
2056                                 type: RECT;
2057                                 scale: 1;
2058                                 description { state: "default" 0.0;
2059                                         color: 0 0 0 0;
2060                                         rel1.to: "bg";
2061                                         rel2.to: "bg";
2062                                 }
2063                         }
2064                 }
2065                 programs {
2066                         program { name: "pressed";
2067                                 signal: "mouse,down,1*";
2068                                 source: "event";
2069                                 script {
2070                                         if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
2071                                         {
2072                                                 set_int(mouse_down, 1);
2073                                                 run_program(PROGRAM:"button_press1");
2074                                         }
2075                                 }
2076                         }
2077                         program { name: "button_press1";
2078                                 script {
2079                                         new st[31];
2080                                         new Float:vl;
2081                                         get_state(PART:"bg", st, 30, vl);
2082                                         if (strcmp(st, "disabled")) {
2083                                                 set_state(PART:"bg", "pressed", 0.0);
2084                                                 set_state(PART:"elm.text", "pressed", 0.0);
2085                                                 emit("elm,action,press", "");
2086                                         }
2087                                 }
2088                         }
2089                         program { name: "unpressed";
2090                                 signal: "mouse,up,1";
2091                                 source: "event";
2092                                 script {
2093                                         if (get_int(mouse_down) == 1) {
2094                                                 set_int(mouse_down, 0);
2095                                                 run_program(PROGRAM:"button_unpress1");
2096                                         }
2097                                 }
2098                         }
2099                         program { name: "button_unpress1";
2100                                 script {
2101                                         new st[31];
2102                                         new Float:vl;
2103                                         get_state(PART:"bg", st, 30, vl);
2104                                         if (strcmp(st, "disabled")) {
2105                                                 set_state(PART:"bg", "default", 0.0);
2106                                                 set_state(PART:"elm.text", "default", 0.0);
2107                                                 emit("elm,action,unpress", "");
2108                                         }
2109                                 }
2110                         }
2111                         program { name: "touch_snd";
2112                                 signal: "mouse,clicked,1";
2113                                 source: "event";
2114                                 script {
2115                                         new st[31];
2116                                         new Float:vl;
2117                                         if (get_int(multi_down) == 0) {
2118                                                 get_state(PART:"bg", st, 30, vl);
2119                                                 if (strcmp(st, "disabled")) {
2120                                                         run_program(PROGRAM:"play_sample");
2121                                                         emit("elm,action,click", "");
2122                                                 }
2123                                         }
2124                                 }
2125                         }
2126                         program {
2127                                 name: "play_sample";
2128                                 action: RUN_PLUGIN "touch_sound";
2129                         }
2130                         program { name: "disable";
2131                                 signal: "elm,state,disabled";
2132                                 source: "elm";
2133                                 action: STATE_SET "disabled" 0.0;
2134                                 target: "bg";
2135                                 target: "elm.text";
2136                         }
2137                         program { name: "enable";
2138                                 signal: "elm,state,enabled";
2139                                 source: "elm";
2140                                 action: STATE_SET "default" 0.0;
2141                                 target: "bg";
2142                                 target: "elm.text";
2143                         }
2144                         program { name: "multi_down";
2145                                 signal: "elm,action,multi,down";
2146                                 source: "elm";
2147                                 script {
2148                                         set_int(multi_down, 1);
2149                                 }
2150                         }
2151                         program { name: "multi_up";
2152                                 signal: "elm,action,multi,up";
2153                                 source: "elm";
2154                                 script {
2155                                         set_int(multi_down, 0);
2156                                 }
2157                         }
2158                 }
2159         }
2160
2161 #define NAVIFRAME_VIEW_TRANS_TIME 0.4 //time for push and pop
2162 #define NAVIFRAME_TITLE_TRANS_TIME 0.5 //Title transition time
2163 #define NAVIFRAME_TITLE_EXPAND_TRANS_TIME 0.5 //Title Expansion transition time
2164 #define NAVIFRAME_TEXT_FADE_OUT_CALC_TIME 0.2 //Text fade out calculation time
2165 #define ACTIONBAR_PADDING_SIZE_INC 64
2166 #define ACTIONBAR_HEIGHT_INC 115
2167 #define ACTIONBAR_TEXT_SIZE_INC 39
2168 #define ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC 51
2169 #define ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC 25
2170 #define ACTIONBAR_TEX_SLIDING_SPEED 0.006
2171 #define ACTIONBAR_TEX_SLIDING_START_WAITING_TIME 0.8
2172 #define HIDDEN_BUTTON_HEIGHT_INC 88
2173
2174 #define STYLE_TAG_MATCH \
2175         tag: "match" "+ color=#ffffff color_class=T0212";
2176
2177 styles {
2178         style { name: "action_bar_title";
2179                 base: "font=Tizen:style=Regular font_size="ACTIONBAR_TEXT_SIZE_INC" color=#FFFFFF color_class=T012 text_class=T012";
2180                 STYLE_TAG_MATCH
2181         }
2182 }
2183
2184 group { name: "elm_naviframe_item_basic_customized";
2185         data.item: "tizen_zoom" 1;
2186         script {
2187                 public g_mirrored = 0; //Mirrored on/off status
2188                 public g_text_fade_out_calc_timer = 0; //Text fade out calculation timer
2189
2190                 public g_duration_1st;
2191                 public g_duration_2nd;
2192                 public g_timer_id;
2193                 public g_anim_id;
2194                 public g_sliding_start;
2195
2196                 public title_text_fade_out() {
2197                         new x, y, w, h, w2;
2198
2199                         if (get_int(g_text_fade_out_calc_timer)) {
2200                                 cancel_timer(g_text_fade_out_calc_timer);
2201                                 set_int(g_text_fade_out_calc_timer, 0);
2202                         }
2203
2204                         get_geometry(PART:"elm.text.title", x, y, w, h);
2205                         get_geometry(PART:"title_text_bg", x, y, w2, h);
2206                 }
2207
2208                 public init() {
2209                         slide_stop();
2210                         set_float(g_duration_1st, 0);
2211                         set_float(g_duration_2nd, 0);
2212                         set_int(g_timer_id, 0);
2213                         set_int(g_anim_id, 0);
2214                         set_int(g_sliding_start, 0);
2215                 }
2216                 public slide_first_anim(val, Float:pos) {
2217                         set_tween_state(PART:"elm.text.title", pos, "slide", 0.0, "slide_1", 0.0);
2218                         if (pos >= 1.0) {
2219                                 cancel_anim(get_int(g_anim_id));
2220                                 set_int(g_anim_id, anim(get_float(g_duration_2nd), "slide_second_anim", 1));
2221                         }
2222                 }
2223                 public slide_second_anim(val, Float:pos) {
2224                         set_tween_state(PART:"elm.text.title", pos, "slide_2", 0.0, "slide", 0.0);
2225                         if (pos >= 1.0)
2226                                 slide_stop();
2227                         }
2228                 public slide_first() {
2229                         check_size();
2230                         if (get_int(g_sliding_start)) {
2231                                 set_state(PART:"elm.text.title", "slide", 0.0);
2232                                 get_duration();
2233                                 set_int(g_anim_id, anim(get_float(g_duration_1st), "slide_first_anim", 1));
2234                         }
2235                 }
2236                 public slide_start() {
2237                         set_int(g_timer_id, timer(ACTIONBAR_TEX_SLIDING_START_WAITING_TIME, "slide_first", 1));
2238                 }
2239                 public slide_stop() {
2240                         cancel_anim(get_int(g_anim_id));
2241                         set_state(PART:"elm.text.title", "default", 0.0);
2242                         set_int(g_sliding_start, 0);
2243                 }
2244                 public check_size() {
2245                         new x, y, w, w1, h;
2246                         get_geometry(PART:"elm.text.title", x, y, w, h);
2247                         get_geometry(PART:"title_text_clip", x, y, w1, h);
2248                         if (w >= w1) {
2249                                 set_int(g_sliding_start, 1);
2250                         }
2251                         else {
2252                                 set_int(g_sliding_start, 0);
2253                         }
2254                 }
2255                 public get_duration() {
2256                         new x, y, w, w1, h;
2257                         get_geometry(PART:"elm.text.title", x, y, w, h);
2258                         get_geometry(PART:"title_text_clip", x, y, w1, h);
2259                         set_float(g_duration_1st, w * ACTIONBAR_TEX_SLIDING_SPEED);
2260                         set_float(g_duration_2nd, w1 * ACTIONBAR_TEX_SLIDING_SPEED);
2261                 }
2262         }
2263         parts {
2264                 part { name: "clipper";
2265                         type: RECT;
2266                         description { state: "default" 0.0;
2267                         visible: 1;
2268                         }
2269                         description { state: "hide" 0.0;
2270                                 visible: 0;
2271                         }
2272                 }
2273                 part { name: "base";
2274                         type: RECT;
2275                         mouse_events: 0;
2276                         scale: 1;
2277                         clip_to: "clipper";
2278                         description { state: "default" 0.0;
2279                                 color: 128 128 128 128;
2280                         }
2281                 }
2282                 part { name: "title_expand";
2283                         type: RECT;
2284                         scale: 1;
2285                         repeat_events: 0;
2286                         clip_to: "clipper";
2287                         description { state: "default" 0.0;
2288                                 min: 0 HIDDEN_BUTTON_HEIGHT_INC;
2289                                 max: -1 HIDDEN_BUTTON_HEIGHT_INC;
2290                                 fixed: 1 1;
2291                                 align: 0.5 1.0;
2292                                 visible: 0;
2293                                 color: 255 255 255 0;
2294                                 rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "title_bg"; }
2295                                 rel2 { relative: 1.0 1.0; to_x: "base"; to_y: "title_bg"; }
2296                         }
2297                         description { state: "show" 0.0;
2298                                 inherit: "default" 0.0;
2299                                 align: 0.5 0.0;
2300                                 visible: 1;
2301                         }
2302                 }
2303                 part { name: "title_clip";
2304                         type: RECT;
2305                         clip_to: "clipper";
2306                         description { state: "default" 0.0;
2307                                 visible: 1;
2308                                 rel1.to: "title_bg";
2309                                 rel2.to: "title_bg";
2310                         }
2311                         description { state: "hide" 0.0;
2312                                 inherit: "default" 0.0;
2313                                 visible: 0;
2314                         }
2315                 }
2316                 part { name: "title_bg";
2317                         type: RECT;
2318                         scale: 1;
2319                         clip_to: "title_clip";
2320                         description { state: "default" 0.0;
2321                                 min: 0 ACTIONBAR_HEIGHT_INC;
2322                                 max: -1 ACTIONBAR_HEIGHT_INC;
2323                                 fixed: 0 1;
2324                                 align: 0.5 0.0;
2325                                 rel1 { relative: 0.0 0.0; to: "base"; }
2326                                 rel2 { relative: 1.0 0.0; to: "base"; }
2327                                 color: 255 255 255 0;
2328                         }
2329                         description { state: "hide_trans" 0.0;
2330                                 inherit: "default" 0.0;
2331                                 align: 0.5 1.0;
2332                         }
2333                         description { state: "hide" 0.0;
2334                                 inherit: "default" 0.0;
2335                                 min: 0 0;
2336                                 max: -1 0;
2337                         }
2338                 }
2339                 part { name: "title_text_bg";
2340                         type: SPACER;
2341                         scale: 1;
2342                         description { state: "default" 0.0;
2343                                 rel1 { relative: 1.0 1.0; to_x: "left_padding"; to_y: "top_padding"; }
2344                                 rel2 { relative: 0.0 0.0; to: "right_padding"; to_y: "bottom_padding"; }
2345                                 fixed: 0 1;
2346                         }
2347                 }
2348                 part { name: "title_text_clip";
2349                         type: RECT;
2350                         scale: 1;
2351                         clip_to: "title_clip";
2352                         description { state: "default" 0.0;
2353                                 rel1.to: "title_text_bg";
2354                                 rel2.to: "title_text_bg";
2355                         }
2356                 }
2357                 part { name: "elm.text.title";
2358                         type: TEXTBLOCK;
2359                         scale: 1;
2360                         clip_to: "title_text_clip";
2361                         description { state: "default" 0.0;
2362                                 text {
2363                                         min: 0 1;
2364                                         max: 1 1;
2365                                         ellipsis: -1.0;
2366 //                                      fade_ellipsis: 1.0;
2367                                         style: "action_bar_title";
2368                                 }
2369                                 fixed: 1 1;
2370                                 align: 0.5 0.5;
2371                                 rel1.to: "title_text_bg"; rel2.to: "title_text_bg";
2372                         }
2373                         description { state: "slide" 0.0;
2374                                 inherit: "default" 0.0;
2375                                 align: 0.0 0.5;
2376                                 rel1 {
2377                                         relative: 1.0 1.0;
2378                                         to_x: "left_padding";
2379                                         to_y: "top_padding";
2380                                 }
2381                                 rel2 {
2382                                         relative: 1.0 0.0;
2383                                         to_x: "left_padding";
2384                                         to_y: "bottom_padding";
2385                                 }
2386                                 text.min: 1 1;
2387                         }
2388                         description { state: "slide_1" 0.0;
2389                                 inherit: "default" 0.0;
2390                                 align: 1.0 0.5;
2391                                 rel1 {
2392                                         relative: 1.0 1.0;
2393                                         to_x: "left_padding";
2394                                         to_y: "top_padding";
2395                                 }
2396                                 rel2 {
2397                                         relative: 1.0 0.0;
2398                                         to_x: "left_padding";
2399                                         to_y: "bottom_padding";
2400                                 }
2401                                 text.min: 1 1;
2402                         }
2403                         description { state: "slide_2" 0.0;
2404                                 inherit: "default" 0.0;
2405                                 align: 0.0 0.5;
2406                                 rel1 {
2407                                         relative: 0.0 1.0;
2408                                         to_x: "right_padding";
2409                                         to_y: "top_padding";
2410                                 }
2411                                 rel2 {
2412                                         relative: 0.0 0.0;
2413                                         to_x: "right_padding";
2414                                         to_y: "bottom_padding";
2415                                 }
2416                                 text.min: 1 1;
2417                         }
2418                 }
2419                 part { name: "left_padding";
2420                         type: SPACER;
2421                         scale: 1;
2422                         description { state: "default" 0.0;
2423                                 min: ACTIONBAR_PADDING_SIZE_INC 0;
2424                                 max: ACTIONBAR_PADDING_SIZE_INC -1;
2425                                 fixed: 1 0;
2426                                 align: 0.0 0.5;
2427                                 rel1 { relative: 0.0 0.0; to: "title_bg"; }
2428                                 rel2 { relative: 0.0 1.0; to: "title_bg"; }
2429                         }
2430                 }
2431                 part { name: "right_padding";
2432                         type: SPACER;
2433                         scale: 1;
2434                         description { state: "default" 0.0;
2435                                 min: ACTIONBAR_PADDING_SIZE_INC 0;
2436                                 max: ACTIONBAR_PADDING_SIZE_INC -1;
2437                                 fixed: 1 0;
2438                                 align: 1.0 0.5;
2439                                 rel1 { relative: 1.0 0.0; to: "title_bg"; }
2440                                 rel2 { relative: 1.0 1.0; to: "title_bg"; }
2441                         }
2442                 }
2443                 part { name: "click_event_area";
2444                         type: RECT;
2445                         ignore_flags: ON_HOLD;
2446                         description { state: "default" 0.0;
2447                                 rel1 { to: "title_bg"; }
2448                                 rel2 { to: "title_bg"; }
2449                                 color: 0 0 0 0;
2450                         }
2451                 }
2452                 part { name: "access.title";
2453                         type: RECT;
2454                         repeat_events: 1;
2455                         description { state: "default" 0.0;
2456                                 rel1.to: "title_bg";
2457                                 rel2.to: "title_bg";
2458                                 color: 0 0 0 0;
2459                         }
2460                 }
2461                 part { name: "top_padding";
2462                         type: SPACER;
2463                         scale: 1;
2464                         description { state: "default" 0.0;
2465                                 fixed: 0 1;
2466                                 align: 0.5 0.0;
2467                                 min: 0 ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC;
2468                                 max: -1 ACTIONBAR_TEXT_TOP_PADDING_SIZE_INC;
2469                                 rel1 {relative: 0.0 0.0; to: "title_bg"; }
2470                                 rel2 {relative: 1.0 0.0; to: "title_bg"; }
2471                         }
2472                 }
2473                 part { name: "bottom_padding";
2474                         type: SPACER;
2475                         scale: 1;
2476                         description { state: "default" 0.0;
2477                                 fixed: 0 1;
2478                                 align: 0.5 1.0;
2479                                 min: 0 ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC;
2480                                 max: -1 ACTIONBAR_TEXT_BOTTOM_PADDING_SIZE_INC;
2481                                 rel1 {relative: 0.0 1.0; to: "title_bg"; }
2482                                 rel2 {relative: 1.0 1.0; to: "title_bg"; }
2483                         }
2484                 }
2485                 part { name: "elm.swallow.content";
2486                         type: SWALLOW;
2487                         scale: 1;
2488                         repeat_events: 0;
2489                         clip_to: "clipper";
2490                         description { state: "default" 0.0;
2491                                 rel1 { relative: 0.0 1.0; to_x: "base"; to_y: "title_expand"; }
2492                                 rel2 { relative: 1.0 0.0; to_x: "base"; to_y: "button_padding"; }
2493                         }
2494                 }
2495                 part { name: "elm.swallow.circle_bg";
2496                         type: SWALLOW;
2497                         mouse_events: 0;
2498                         scale: 1;
2499                         clip_to: "clipper";
2500                         description { state: "default" 0.0; }
2501                 }
2502                 part { name: "elm.swallow.circle";
2503                         type: SWALLOW;
2504                         mouse_events: 0;
2505                         scale: 1;
2506                         clip_to: "clipper";
2507                         description { state: "default" 0.0; }
2508                 }
2509                 part { name: "button_padding";
2510                         type: SPACER;
2511                         scale: 1;
2512                         description { state: "default" 0.0;
2513                                 fixed: 0 1;
2514                                 align: 0.5 1.0;
2515                                 min: 0 100;
2516                                 max: -1 100;
2517                                 rel1 {relative: 0.0 1.0; to: "base"; }
2518                                 rel2 {relative: 1.0 1.0; to: "base"; }
2519                         }
2520                 }
2521         }
2522         programs {
2523                 program { name: "visible";
2524                         signal: "elm,state,visible";
2525                         source: "elm";
2526                         script {
2527                                 set_state(PART:"base", "default", 0.0);
2528                                 set_state(PART:"clipper", "default", 0.0);
2529                                 init();
2530                                 slide_start();
2531                                 run_program(PROGRAM:"title_text_fade_out");
2532                         }
2533                 }
2534                 program { name: "invisible";
2535                         signal: "elm,state,invisible";
2536                         source: "elm";
2537                         script {
2538                                 set_state(PART:"clipper", "hide", 0.0);
2539                         }
2540                 }
2541                 program { name: "title_hide";
2542                         signal: "elm,state,title,hide";
2543                         source: "elm";
2544                         script {
2545                                 set_state(PART:"title_bg", "hide", 0.0);
2546                                 set_state(PART:"title_clip", "hide", 0.0);
2547                         }
2548                 }
2549                 program { name: "title_hide_trans";
2550                         signal: "elm,action,title,hide";
2551                         source: "elm";
2552                         script {
2553                                 new st[32];
2554                                 new Float:vl;
2555                                 get_state(PART:"title_bg", st, 32, vl);
2556                                 if (!strcmp(st, "default")) {
2557                                         run_program(PROGRAM:"title_hide_trans2");
2558                                 }
2559                         }
2560                 }
2561                 program { name: "title_hide_trans2";
2562                         action: STATE_SET "hide_trans" 0.0;
2563                         target: "title_bg";
2564                         transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
2565                         after: "title_hide_trans3";
2566                 }
2567                 program { name: "title_hide_trans3";
2568                         script {
2569                                 run_program(PROGRAM:"title_hide");
2570                         }
2571                         after: "title_trans_finished";
2572                 }
2573                 program { name: "title_trans_finished";
2574                         action: SIGNAL_EMIT "elm,action,title,transition,finished" "";
2575                 }
2576                 program { name: "title_show";
2577                         signal: "elm,state,title,show";
2578                         source: "elm";
2579                         script {
2580                                 set_state(PART:"title_bg", "default", 0.0);
2581                                 set_state(PART:"title_clip", "default", 0.0);
2582                                 run_program(PROGRAM:"title_text_fade_out");
2583                         }
2584                 }
2585                 program { name: "title_show_trans";
2586                         signal: "elm,action,title,show";
2587                         source: "elm";
2588                         script {
2589                                 new st[32];
2590                                 new Float:vl;
2591                                 get_state(PART:"title_bg", st, 32, vl);
2592                                 if (!strcmp(st, "hide")) {
2593                                         set_state(PART:"title_bg", "hide_trans", 0.0);
2594                                         set_state(PART:"title_clip", "default", 0.0);
2595                                         run_program(PROGRAM:"title_show_trans2");
2596                                 }
2597                         }
2598                 }
2599                 program { name: "title_show_trans2";
2600                         action: STATE_SET "default" 0.0;
2601                         target: "title_bg";
2602                         transition: SIN_FAC NAVIFRAME_TITLE_TRANS_TIME 1.7;
2603                         after: "title_trans_finished";
2604                 }
2605                 program { name: "title_label_show";
2606                         signal: "elm,state,title_label,show";
2607                         source: "elm";
2608                         script {
2609                                 run_program(PROGRAM:"title_text_fade_out");
2610                         }
2611                 }
2612                 program { name: "title_label_hide";
2613                         signal: "elm,state,title_label,hide";
2614                         source: "elm";
2615                 }
2616                 program { name: "title_expand_show";
2617                         signal: "elm,state,title_expand,show";
2618                         source: "";
2619                         script {
2620                                 set_state(PART:"title_expand", "show", 0.0);
2621                         }
2622                 }
2623                 program { name: "title_expand_hide";
2624                         signal: "elm,state,title_expand,hide";
2625                         source: "";
2626                         script {
2627                                 set_state(PART:"title_expand", "default", 0.0);
2628                         }
2629                 }
2630                 program { name: "hidden_btn_show_trans";
2631                         signal: "elm,action,title_expand,show";
2632                         source: "";
2633                         action: STATE_SET "show" 0.0;
2634                         target: "title_expand";
2635                         transition: SIN_FAC NAVIFRAME_TITLE_EXPAND_TRANS_TIME 1.7;
2636                 }
2637                 program { name: "title_expand_hide_trans";
2638                         signal: "elm,action,title_expand,hide";
2639                         source: "";
2640                         action: STATE_SET "default" 0.0;
2641                         target: "title_expand";
2642                         transition: SIN_FAC NAVIFRAME_TITLE_EXPAND_TRANS_TIME 1.7;
2643                 }
2644                 program { name: "title_clicked";
2645                         signal: "mouse,clicked,1";
2646                         source: "click_event_area";
2647                         action: SIGNAL_EMIT "elm,action,title,clicked" "";
2648                 }
2649                 program {
2650                         name: "mirrored_on";
2651                         signal: "edje,state,rtl";
2652                         source: "edje";
2653                         script {
2654                                 set_int(g_mirrored, 1);
2655                                 run_program(PROGRAM:"title_text_fade_out");
2656                         }
2657                 }
2658                 program {
2659                         name: "mirrored_off";
2660                         signal: "edje,state,ltr";
2661                         source: "edje";
2662                         script {
2663                                 set_int(g_mirrored, 0);
2664                                 run_program(PROGRAM:"title_text_fade_out");
2665                         }
2666                 }
2667                 program {
2668                         name: "title_text_fade_out";
2669                         script {
2670                                 if (get_int(g_text_fade_out_calc_timer)) {
2671                                         cancel_timer(g_text_fade_out_calc_timer);
2672                                         set_int(g_text_fade_out_calc_timer, 0);
2673                                 }
2674                                 set_int(g_text_fade_out_calc_timer, timer(NAVIFRAME_TEXT_FADE_OUT_CALC_TIME, "title_text_fade_out", 0));
2675                         }
2676                 }
2677         }
2678 }
2679
2680 //////////////////////////////////////////////////////////////////////////////////
2681 // Customizing panel for send button.
2682 //////////////////////////////////////////////////////////////////////////////////
2683
2684 // ***************************** Panel*****************************************/
2685 #define PANEL_LEFT_PADDING_SIZE_INC                        8
2686 #define PANEL_RIGHT_PADDING_SIZE_INC                       6
2687 #define PANEL_LEFT_IMAGE_SIZE_INC                          29 36
2688 #define PANEL_RIGHT_IMAGE_SIZE_INC                         16 36
2689 #define PANEL_RIGHT_CUE_SIZE_INC                           32 158
2690 #define PANEL_RIGHT_CUE_IMAGE_SIZE_INC                     158 158
2691 #define PANEL_RIGHT_EVENT_AREA_SIZE_INC                    50 140
2692 #define PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC            100 140
2693 #define PANEL_RIGHT_CUE_EFFECT_SIZE_INC                    200 200
2694 #define PANEL_LAYOUT_SIZE_INC                              360 360
2695
2696 images {
2697         image, "./b_more_option.png" COMP;
2698         image, "./b_more_option_ef.png" COMP;
2699         image, "./b_more_option_bg.png" COMP;
2700         image, "./b_ic_press_full_circle_bg.png" COMP;
2701 }
2702
2703 group { name: "elm/panel/right1/default";
2704    script {
2705       public mouse_down = 0;
2706       public mouse_click = 0;
2707       public multi_down = 0;
2708       public click_cnt = 0;
2709       public event_down = 0;
2710       public cue_hide = 0;
2711       public timer0(val) {
2712         if(val == 1)
2713            run_program(PROGRAM:"change_opacity");
2714         else if(val == 2)
2715            run_program(PROGRAM:"change_opacity2");
2716       }
2717    }
2718    parts {
2719       part { name: "bg";
2720          type: RECT;
2721          repeat_events: 1;
2722          description { state: "default" 0.0;
2723             min: PANEL_LAYOUT_SIZE_INC;
2724             max: PANEL_LAYOUT_SIZE_INC;
2725             //color_class: "transparent";
2726             color: 0 0 0 0;
2727          }
2728       }
2729       part { name: "cue.padding";
2730          type: SPACER;
2731          description { state: "default" 0.0;
2732             rel1.to: "bg";
2733             rel1.relative: 1.0 0.0;
2734             rel2.to: "bg";
2735             rel2.relative: 1.0 1.0;
2736             align: 1.0 0.5;
2737             min: PANEL_RIGHT_PADDING_SIZE_INC 0;
2738             max: PANEL_RIGHT_PADDING_SIZE_INC -1;
2739             fixed: 1 0;
2740          }
2741       }
2742       part { name: "cue";
2743          description { state: "default" 0.0;
2744             min: PANEL_RIGHT_IMAGE_SIZE_INC;
2745             max: PANEL_RIGHT_IMAGE_SIZE_INC;
2746             fixed: 1 0;
2747             image.normal: "./b_more_option.png";
2748             color: 128 128 128 128;
2749             rel1.to: "cue.padding";
2750             rel1.relative: 0.0 0.0;
2751             rel2.to: "cue.padding";
2752             rel2.relative: 0.0 1.0;
2753             align: 1.0 0.5;
2754          }
2755          description { state: "hidden" 0.0;
2756             inherit: "default" 0.0;
2757             visible: 0;
2758          }
2759          description { state: "disabled" 0.0;
2760             inherit: "default" 0.0;
2761             color: 128 128 128 128;
2762          }
2763       }
2764       part { name: "cue_ef";
2765          description { state: "default" 0.0;
2766             min: PANEL_RIGHT_IMAGE_SIZE_INC;
2767             max: PANEL_RIGHT_IMAGE_SIZE_INC;
2768             fixed: 1 1;
2769             image.normal: "./b_more_option_ef.png";
2770             color: 128 128 128 128;
2771             rel1.to: "cue";
2772             rel2.to: "cue";
2773          }
2774          description { state: "hidden" 0.0;
2775             inherit: "default" 0.0;
2776             visible: 0;
2777          }
2778       }
2779       part { name: "effect_bg";
2780          scale: 1;
2781          clip_to: "effect_bg_clip";
2782          repeat_events: 1;
2783          description { state: "default" 0.0;
2784             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2785             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2786             rel1.to: "bg";
2787             rel1.relative: 1.0 0.0;
2788             rel2.to: "bg";
2789             rel2.relative: 1.0 1.0;
2790             align: 0.5 0.5;
2791             fixed: 1 0;
2792             image.normal: "./b_ic_press_full_circle_bg.png";
2793             color: 128 128 128 128;
2794             map.on: 1;
2795          }
2796          description { state: "pressed" 0.0;
2797             inherit: "default" 0.0;
2798             color: 128 128 128 128;
2799             map {
2800                zoom.x: 0.8;
2801                zoom.y: 0.8;
2802             }
2803          }
2804          description { state: "disabled" 0.0;
2805             inherit: "default" 0.0;
2806          }
2807          description { state: "start_persp" 0.0;
2808             inherit: "default" 0.0;
2809             color: 128 128 128 128;
2810             map {
2811                zoom.x: 1.0;
2812                zoom.y: 1.0;
2813             }
2814          }
2815       }
2816       part { name: "effect_bg_clip";
2817          scale: 1;
2818          type: RECT;
2819          repeat_events: 1;
2820          description { state: "default" 0.0;
2821             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2822             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2823             rel1.to: "bg";
2824             rel1.relative: 1.0 0.0;
2825             rel2.to: "bg";
2826             rel2.relative: 1.0 1.0;
2827             align: 0.5 0.5;
2828             fixed: 1 0;
2829             color: 255 255 255 0;
2830          }
2831          description { state: "pressed" 0.0;
2832             inherit: "default" 0.0;
2833             color: 255 255 255 255;
2834          }
2835          description { state: "disabled" 0.0;
2836             inherit: "default" 0.0;
2837          }
2838       }
2839       part { name: "effect_bg2";
2840          scale: 1;
2841          clip_to: "effect_bg_clip2";
2842          repeat_events: 1;
2843          description { state: "default" 0.0;
2844             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2845             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2846             rel1.to: "bg";
2847             rel1.relative: 1.0 0.0;
2848             rel2.to: "bg";
2849             rel2.relative: 1.0 1.0;
2850             align: 0.5 0.5;
2851             fixed: 1 0;
2852             image.normal: "./b_ic_press_full_circle_bg.png";
2853             //color_class: "transparent";
2854             color: 0 0 0 0;
2855             map.on: 1;
2856          }
2857          description { state: "pressed" 0.0;
2858             inherit: "default" 0.0;
2859             color: 128 128 128 128;
2860             map {
2861                zoom.x: 0.8;
2862                zoom.y: 0.8;
2863             }
2864          }
2865          description { state: "disabled" 0.0;
2866             inherit: "default" 0.0;
2867          }
2868          description { state: "start_persp" 0.0;
2869             inherit: "default" 0.0;
2870             color: 128 128 128 128;
2871             map {
2872                zoom.x: 1.0;
2873                zoom.y: 1.0;
2874             }
2875          }
2876       }
2877       part { name: "effect_bg_clip2";
2878          scale: 1;
2879          type: RECT;
2880          repeat_events: 1;
2881          description { state: "default" 0.0;
2882             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2883             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
2884             rel1.to: "bg";
2885             rel1.relative: 1.0 0.0;
2886             rel2.to: "bg";
2887             rel2.relative: 1.0 1.0;
2888             align: 0.5 0.5;
2889             fixed: 1 0;
2890             color: 255 255 255 0;
2891          }
2892          description { state: "pressed" 0.0;
2893             inherit: "default" 0.0;
2894             color: 255 255 255 255;
2895          }
2896          description { state: "disabled" 0.0;
2897             inherit: "default" 0.0;
2898          }
2899       }
2900       part { name: "cue.event";
2901          type: RECT;
2902          repeat_events: 0;
2903          description { state: "default" 0.0;
2904             min: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
2905             max: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
2906             fixed: 1 0;
2907             //color_class: "transparent";
2908             color: 0 0 0 0;
2909             rel1.to: "bg";
2910             rel1.relative: 1.0 0.0;
2911             rel2.to: "bg";
2912             rel2.relative: 1.0 1.0;
2913             align: 1.0 0.5;
2914          }
2915          description { state: "hidden" 0.0;
2916             inherit: "default" 0.0;
2917             visible: 0;
2918          }
2919       }
2920       part { name: "cue.release.event";
2921          type: RECT;
2922          repeat_events: 1;
2923          description { state: "default" 0.0;
2924             min: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
2925             max: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
2926             fixed: 1 0;
2927             //color_class: "transparent";
2928             color: 0 0 0 0;
2929             rel1.to: "bg";
2930             rel1.relative: 1.0 0.0;
2931             rel2.to: "bg";
2932             rel2.relative: 1.0 1.0;
2933             align: 1.0 0.5;
2934          }
2935          description { state: "hidden" 0.0;
2936             inherit: "default" 0.0;
2937             visible: 0;
2938          }
2939       }
2940       part { name: "base";
2941          repeat_events: 0;
2942          description { state: "default" 0.0;
2943             rel1.to: "bg";
2944             rel1.offset: -1 -1;
2945             rel2.to: "bg";
2946             rel2.offset: 0 0;
2947             visible: 0;
2948             fixed: 1 1;
2949             image.normal: "./b_more_option_bg.png";
2950             color: 128 128 128 128;
2951             map {
2952                on: 1;
2953                zoom {
2954                   x: 1.35;
2955                   y: 1.35;
2956                }
2957                color[0]: 0 0 0 0;
2958                color[1]: 0 0 0 0;
2959                color[2]: 0 0 0 0;
2960                color[3]: 0 0 0 0;
2961             }
2962          }
2963          description { state: "show" 0.0;
2964             inherit: "default" 0.0;
2965             visible: 1;
2966             map {
2967                zoom {
2968                   x: 1.0;
2969                   y: 1.0;
2970                }
2971                color[0]: 255 255 255 255;
2972                color[1]: 255 255 255 255;
2973                color[2]: 255 255 255 255;
2974                color[3]: 255 255 255 255;
2975             }
2976          }
2977       }
2978       part { name: "elm.swallow.content";
2979          type: SWALLOW;
2980          description { state: "default" 0.0;
2981             rel1.to: "bg";
2982             rel2.to: "bg";
2983             visible: 0;
2984             fixed: 1 1;
2985             map {
2986                on: 1;
2987                zoom {
2988                   x: 1.35;
2989                   y: 1.35;
2990                }
2991                color[0]: 0 0 0 0;
2992                color[1]: 0 0 0 0;
2993                color[2]: 0 0 0 0;
2994                color[3]: 0 0 0 0;
2995             }
2996          }
2997          description { state: "show" 0.0;
2998             inherit: "default" 0.0;
2999             visible: 1;
3000             map {
3001                zoom {
3002                   x: 1.0;
3003                   y: 1.0;
3004                }
3005                color[0]: 255 255 255 255;
3006                color[1]: 255 255 255 255;
3007                color[2]: 255 255 255 255;
3008                color[3]: 255 255 255 255;
3009             }
3010          }
3011       }
3012    }
3013    programs {
3014       program { name: "pressed";
3015          signal: "mouse,down,1*";
3016          source: "cue.event";
3017          script {
3018             if ((get_int(multi_down) == 0) && (get_int(mouse_down) == 0))
3019             {
3020                set_int(mouse_down, 1);
3021                set_int(event_down, 1);
3022                run_program(PROGRAM:"button_press1");
3023             }
3024          }
3025       }
3026       program { name: "button_press1";
3027          script {
3028             new st[31];
3029             new Float:vl;
3030             get_state(PART:"effect_bg", st, 30, vl);
3031             if (strcmp(st, "disabled")) {
3032                emit("elm,action,press", "");
3033                run_program(PROGRAM:"haptic");
3034                if(get_int(click_cnt) == 0) {
3035                   set_state(PART:"effect_bg", "pressed", 0.0);
3036                   set_state(PART:"effect_bg_clip", "pressed", 0.0);
3037                   run_program(PROGRAM:"start_persp");
3038                   timer(0.3, "timer0", 1);
3039                }
3040                else if(get_int(click_cnt) == 1) {
3041                   set_state(PART:"effect_bg2", "pressed", 0.0);
3042                   set_state(PART:"effect_bg_clip2", "pressed", 0.0);
3043                   run_program(PROGRAM:"start_persp2");
3044                   timer(0.3, "timer0", 2);
3045                }
3046             }
3047          }
3048       }
3049       program { name: "unpressed";
3050          signal: "mouse,up,1";
3051          source: "cue.event";
3052          script {
3053             if (get_int(mouse_down) == 1) {
3054                set_int(mouse_down, 0);
3055                run_program(PROGRAM:"button_unpress1");
3056             }
3057          }
3058       }
3059       program { name: "button_unpress1";
3060          script {
3061             new st[31];
3062             new Float:vl;
3063             get_state(PART:"effect_bg", st, 30, vl);
3064             if (strcmp(st, "disabled")) {
3065             if(get_int(click_cnt) == 0)
3066                set_int(click_cnt, 1);
3067             else
3068                set_int(click_cnt, 0);
3069             }
3070          }
3071       }
3072       program { name: "release.event_clicked";
3073          signal: "mouse,clicked,*";
3074          source: "cue.release.event";
3075          script {
3076             if (get_int(event_down) == 1) {
3077                set_int(event_down, 0);
3078                emit("cue,clicked", "elm");
3079                run_program(PROGRAM:"panel_toggle");
3080                run_program(PROGRAM:"play_sample");
3081             }
3082          }
3083       }
3084       program {
3085          name: "play_sample";
3086          action: RUN_PLUGIN "touch_sound";
3087       }
3088       program { name: "panel_toggle";
3089          action: SIGNAL_EMIT "elm,action,panel,toggle" "elm";
3090       }
3091       program {
3092          name: "haptic";
3093          action: RUN_PLUGIN "haptic_tap";
3094       }
3095       program { name: "disable";
3096          signal: "elm,state,disabled";
3097          source: "elm";
3098          script {
3099             if (get_int(cue_hide) == 0)
3100                set_state(PART:"cue", "disabled", 0.0);
3101             set_state(PART:"effect_bg", "disabled", 0.0);
3102             set_state(PART:"cue.event", "hidden", 0.0);
3103             set_state(PART:"cue.release.event", "hidden", 0.0);
3104          }
3105       }
3106       program { name: "enable";
3107          signal: "elm,state,enabled";
3108          source: "elm";
3109          script {
3110             if (get_int(cue_hide) == 1) {
3111                set_state(PART:"cue", "hidden", 0.0);
3112                set_state(PART:"cue.event", "hidden", 0.0);
3113                set_state(PART:"cue.release.event", "hidden", 0.0);
3114             }
3115             else {
3116                set_state(PART:"cue", "default", 0.0);
3117                set_state(PART:"cue.event", "default", 0.0);
3118                set_state(PART:"cue.release.event", "default", 0.0);
3119             }
3120             set_state(PART:"effect_bg", "default", 0.0);
3121          }
3122       }
3123       program { name: "multi_down";
3124          signal: "elm,action,multi,down";
3125          source: "elm";
3126          script {
3127             set_int(multi_down, 1);
3128          }
3129       }
3130       program { name: "multi_up";
3131          signal: "elm,action,multi,up";
3132          source: "elm";
3133          script {
3134             set_int(multi_down, 0);
3135          }
3136       }
3137       program { name: "start_persp";
3138          action: STATE_SET "start_persp" 0.0;
3139          transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3140          target: "effect_bg";
3141       }
3142       program { name: "change_opacity";
3143          action: STATE_SET "default" 0.0;
3144          transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3145          target: "effect_bg_clip";
3146       }
3147       program { name: "start_persp2";
3148          action: STATE_SET "start_persp" 0.0;
3149          transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3150          target: "effect_bg2";
3151       }
3152       program { name: "change_opacity2";
3153          action: STATE_SET "default" 0.0;
3154          transition: CUBIC_BEZIER 0.5 0.45 0.03 0.41 1.0;
3155          target: "effect_bg_clip2";
3156       }
3157       program {
3158          signal: "elm,action,show";
3159          source: "elm";
3160          action: STATE_SET "show" 0.0;
3161          transition: CUBIC_BEZIER 0.25 0.25 0.46 0.45 1.0;
3162          target: "elm.swallow.content";
3163          target: "base";
3164          after: "active,finished";
3165       }
3166       program {
3167          signal: "elm,action,hide";
3168          source: "elm";
3169          action: STATE_SET "default" 0.0;
3170          transition: CUBIC_BEZIER 0.25 0.25 0.46 0.45 1.0;
3171          target: "elm.swallow.content";
3172          target: "base";
3173          after: "inactive,finished";
3174       }
3175       program { name: "active,finished";
3176          action: SIGNAL_EMIT "elm,state,active,finished" "elm";
3177       }
3178       program { name: "inactive,finished";
3179          action: SIGNAL_EMIT "elm,state,inactive,finished" "elm";
3180       }
3181       program { name: "cue,hide";
3182          signal: "cue,hide";
3183          source: "elm";
3184          script {
3185             set_int(cue_hide, 1);
3186             set_state(PART:"cue", "hidden", 0.0);
3187             set_state(PART:"cue_ef", "hidden", 0.0);
3188             set_state(PART:"cue.event", "hidden", 0.0);
3189             set_state(PART:"cue.release.event", "hidden", 0.0);
3190          }
3191       }
3192       program { name: "cue,show";
3193          signal: "cue,show";
3194          source: "elm";
3195          script {
3196             set_int(cue_hide, 0);
3197             set_state(PART:"cue", "default", 0.0);
3198             set_state(PART:"cue_ef", "default", 0.0);
3199             set_state(PART:"cue.event", "default", 0.0);
3200             set_state(PART:"cue.release.event", "default", 0.0);
3201          }
3202       }
3203    }
3204 }
3205
3206 group { name: "elm/panel/left1/default";
3207    inherit: "elm/panel/right1/default";
3208    parts {
3209       part { name: "cue.padding";
3210          type: SPACER;
3211          description { state: "default" 0.0;
3212             rel1.to: "bg";
3213             rel1.relative: 0.0 0.0;
3214             rel2.to: "bg";
3215             rel2.relative: 0.0 1.0;
3216             align: 0.0 0.5;
3217             min: PANEL_RIGHT_PADDING_SIZE_INC 0;
3218             max: PANEL_RIGHT_PADDING_SIZE_INC -1;
3219             fixed: 1 0;
3220          }
3221       }
3222       part { name: "cue";
3223          description { state: "default" 0.0;
3224             min: PANEL_RIGHT_IMAGE_SIZE_INC;
3225             max: PANEL_RIGHT_IMAGE_SIZE_INC;
3226             fixed: 1 0;
3227             image.normal: "./b_more_option.png";
3228             color: 128 128 128 128;
3229             rel1.to: "cue.padding";
3230             rel1.relative: 1.0 0.0;
3231             rel2.to: "cue.padding";
3232             rel2.relative: 1.0 1.0;
3233             align: 0.0 0.5;
3234          }
3235          description { state: "hidden" 0.0;
3236             inherit: "default" 0.0;
3237             visible: 0;
3238          }
3239          description { state: "disabled" 0.0;
3240             inherit: "default" 0.0;
3241             color: 128 128 128 128;
3242          }
3243       }
3244       part { name: "cue_ef";
3245          description { state: "default" 0.0;
3246             min: PANEL_RIGHT_IMAGE_SIZE_INC;
3247             max: PANEL_RIGHT_IMAGE_SIZE_INC;
3248             fixed: 1 1;
3249             image.normal: "./b_more_option_ef.png";
3250             color: 128 128 128 128;
3251             rel1.to: "cue";
3252             rel2.to: "cue";
3253          }
3254          description { state: "hidden" 0.0;
3255             inherit: "default" 0.0;
3256             visible: 0;
3257          }
3258       }
3259       part { name: "effect_bg";
3260          scale: 1;
3261          clip_to: "effect_bg_clip";
3262          repeat_events: 1;
3263          description { state: "default" 0.0;
3264             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3265             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3266             rel1.to: "bg";
3267             rel1.relative: 0.0 0.0;
3268             rel2.to: "bg";
3269             rel2.relative: 0.0 1.0;
3270             align: 0.5 0.5;
3271             fixed: 1 0;
3272             image.normal: "./b_ic_press_full_circle_bg.png";
3273             color: 128 128 128 128;
3274             map.on: 1;
3275          }
3276          description { state: "pressed" 0.0;
3277             inherit: "default" 0.0;
3278             color: 128 128 128 128;
3279             map {
3280                zoom.x: 0.8;
3281                zoom.y: 0.8;
3282             }
3283          }
3284          description { state: "disabled" 0.0;
3285             inherit: "default" 0.0;
3286          }
3287          description { state: "start_persp" 0.0;
3288             inherit: "default" 0.0;
3289             color: 128 128 128 128;
3290             map {
3291                zoom.x: 1.0;
3292                zoom.y: 1.0;
3293             }
3294          }
3295       }
3296       part { name: "effect_bg_clip";
3297          scale: 1;
3298          type: RECT;
3299          repeat_events: 1;
3300          description { state: "default" 0.0;
3301             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3302             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3303             rel1.to: "bg";
3304             rel1.relative: 0.0 0.0;
3305             rel2.to: "bg";
3306             rel2.relative: 0.0 1.0;
3307             align: 0.5 0.5;
3308             fixed: 1 0;
3309             color: 255 255 255 0;
3310          }
3311          description { state: "pressed" 0.0;
3312             inherit: "default" 0.0;
3313             color: 255 255 255 255;
3314          }
3315          description { state: "disabled" 0.0;
3316             inherit: "default" 0.0;
3317          }
3318       }
3319       part { name: "effect_bg2";
3320          scale: 1;
3321          clip_to: "effect_bg_clip2";
3322          repeat_events: 1;
3323          description { state: "default" 0.0;
3324             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3325             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3326             rel1.to: "bg";
3327             rel1.relative: 0.0 0.0;
3328             rel2.to: "bg";
3329             rel2.relative: 0.0 1.0;
3330             align: 0.5 0.5;
3331             fixed: 1 0;
3332             image.normal: "./b_ic_press_full_circle_bg.png";
3333             //color_class: "transparent";
3334             color: 0 0 0 0;
3335             map.on: 1;
3336          }
3337          description { state: "pressed" 0.0;
3338             inherit: "default" 0.0;
3339             color: 128 128 128 128;
3340             map {
3341                zoom.x: 0.8;
3342                zoom.y: 0.8;
3343             }
3344          }
3345          description { state: "disabled" 0.0;
3346             inherit: "default" 0.0;
3347          }
3348          description { state: "start_persp" 0.0;
3349             inherit: "default" 0.0;
3350             color: 128 128 128 128;
3351             map {
3352                zoom.x: 1.0;
3353                zoom.y: 1.0;
3354             }
3355          }
3356       }
3357       part { name: "effect_bg_clip2";
3358          scale: 1;
3359          type: RECT;
3360          repeat_events: 1;
3361          description { state: "default" 0.0;
3362             min: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3363             max: PANEL_RIGHT_CUE_EFFECT_SIZE_INC;
3364             rel1.to: "bg";
3365             rel1.relative: 0.0 0.0;
3366             rel2.to: "bg";
3367             rel2.relative: 0.0 1.0;
3368             align: 0.5 0.5;
3369             fixed: 1 0;
3370             color: 255 255 255 0;
3371          }
3372          description { state: "pressed" 0.0;
3373             inherit: "default" 0.0;
3374             color: 255 255 255 255;
3375          }
3376          description { state: "disabled" 0.0;
3377             inherit: "default" 0.0;
3378          }
3379       }
3380       part { name: "cue.event";
3381          type: RECT;
3382          description { state: "default" 0.0;
3383             min: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
3384             max: PANEL_RIGHT_EVENT_AREA_SIZE_INC;
3385             fixed: 1 0;
3386             //color_class: "transparent";
3387             color: 0 0 0 0;
3388             rel1.to: "bg";
3389             rel1.relative: 0.0 0.0;
3390             rel2.to: "bg";
3391             rel2.relative: 0.0 1.0;
3392             align: 0.0 0.5;
3393          }
3394          description { state: "hidden" 0.0;
3395             inherit: "default" 0.0;
3396             visible: 0;
3397          }
3398       }
3399       part { name: "cue.release.event";
3400          type: RECT;
3401          repeat_events: 1;
3402          description { state: "default" 0.0;
3403             min: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
3404             max: PANEL_RIGHT_RELEASE_EVENT_AREA_SIZE_INC;
3405             fixed: 1 0;
3406             //color_class: "transparent";
3407             color: 0 0 0 0;
3408             rel1.to: "bg";
3409             rel1.relative: 0.0 0.0;
3410             rel2.to: "bg";
3411             rel2.relative: 0.0 1.0;
3412             align: 0.0 0.5;
3413          }
3414          description { state: "hidden" 0.0;
3415             inherit: "default" 0.0;
3416             visible: 0;
3417          }
3418       }
3419    }
3420 }
3421
3422 group { name: "elm/panel/left_sending/default";
3423         inherit: "elm/panel/left1/default";
3424         parts {
3425                 part { name: "cue.padding";
3426                    type: SPACER;
3427                    description { state: "default" 0.0;
3428                           rel1.to: "bg";
3429                           rel1.relative: 0.0 0.0;
3430                           rel2.to: "bg";
3431                           rel2.relative: 0.0 1.0;
3432                           align: 0.0 0.5;
3433                           min: 1 0;//PANEL_RIGHT_PADDING_SIZE_INC 0;
3434                           max: 1 -1;//PANEL_RIGHT_PADDING_SIZE_INC -1;
3435                           fixed: 1 0;
3436                    }
3437                 }
3438                 part { name: "cue";
3439                    description { state: "default" 0.0;
3440                           min: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3441                           max: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3442                           fixed: 1 0;
3443                           image.normal: "./b_stt_send_icon.png";
3444                           color: 128 128 128 128;
3445                           rel1.to: "cue.padding";
3446                           rel1.relative: 1.0 0.0;
3447                           rel2.to: "cue.padding";
3448                           rel2.relative: 1.0 1.0;
3449                           align: 0.0 0.5;
3450                    }
3451                    description { state: "hidden" 0.0;
3452                           inherit: "default" 0.0;
3453                           visible: 0;
3454                    }
3455                    description { state: "disabled" 0.0;
3456                           inherit: "default" 0.0;
3457                           color_class: "AO015L2D";//"B052L1D";
3458                    }
3459                 }
3460                 part { name: "cue_ef";
3461                    description { state: "default" 0.0;
3462                           min: PANEL_RIGHT_IMAGE_SIZE_INC;
3463                           max: PANEL_RIGHT_IMAGE_SIZE_INC;
3464                           fixed: 1 1;
3465                           visible: 0;
3466                           image.normal: "./b_more_option_ef.png";
3467                           color: 128 128 128 128;
3468                           rel1.to: "cue";
3469                           rel2.to: "cue";
3470                    }
3471                    description { state: "hidden" 0.0;
3472                           inherit: "default" 0.0;
3473                           visible: 0;
3474                    }
3475                 }
3476         }
3477 }
3478
3479 group { name: "elm/panel/left_confirm/default";
3480         inherit: "elm/panel/left_sending/default";
3481         parts {
3482                 part { name: "cue";
3483                    description { state: "default" 0.0;
3484                           min: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3485                           max: 39 200;//PANEL_RIGHT_IMAGE_SIZE_INC;
3486                           fixed: 1 0;
3487                           image.normal: "./b_stt_confirm_icon.png";
3488                           color: 128 128 128 128;
3489                           rel1.to: "cue.padding";
3490                           rel1.relative: 1.0 0.0;
3491                           rel2.to: "cue.padding";
3492                           rel2.relative: 1.0 1.0;
3493                           align: 0.0 0.5;
3494                    }
3495                    description { state: "hidden" 0.0;
3496                           inherit: "default" 0.0;
3497                           visible: 0;
3498                    }
3499                    description { state: "disabled" 0.0;
3500                           inherit: "default" 0.0;
3501                           color_class: "AO015L2D";//"B052L1D";
3502                    }
3503                 }
3504         }
3505 }
3506
3507 }