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