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