[Time picker button] created new style for time picker button.
[framework/uifw/efl-theme-tizen.git] / themes / widgets / button.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of SAMSUNG
7  * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8  * software is owned by Samsung and you shall not disclose such Confidential
9  * Information and shall use it only in accordance with the terms of the license
10  * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11  * representations or warranties about the suitability of the software, either
12  * express or implied, including but not limited to the implied warranties of
13  * merchantability, fitness for a particular purpose, or non-infringement.
14  * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15  * of or releated to this software.
16  *
17  */
18
19 #define BUTTON_STATE_ENABLED 0
20 #define BUTTON_STATE_DISABLED 1
21
22    sounds {
23       sample {
24          name: "touch_sound" AS_IS;
25          source: "S_Touch_30ms.wav";
26       }
27    }
28
29 ///////////////////////////////////////////////////////////////////////////////////////
30    group { name: "elm/button/base/style1";
31       alias: "elm/button/base/text_only/style1";
32       alias: "elm/button/base/center";
33       alias: "elm/button/base/icon_and_text/center";
34       alias: "elm/button/base/nocontents/search_button";
35       images {
36          image: "00_button_01_normal.png" COMP;
37          image: "00_button_01_normal_press.png" COMP;
38          image: "00_button_01_normal_dim.png" COMP;
39          image: "00_button_01_normal_Focus.png" COMP;
40       }
41       script {
42          public button_state = BUTTON_STATE_ENABLED;
43       }
44       parts {
45          part { name: "button_image";
46             scale: 1;
47             description { state: "default" 0.0;
48                image {
49                   normal: "00_button_01_normal.png";
50                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
51                   border_scale: 1;
52                }
53             }
54             description { state: "clicked" 0.0;
55                inherit: "default" 0.0;
56                image.normal: "00_button_01_normal_press.png";
57             }
58             description { state: "disabled" 0.0;
59                inherit: "default" 0.0;
60                image.normal: "00_button_01_normal_dim.png";
61             }
62             description { state: "focused" 0.0;
63                inherit: "default" 0.0;
64                image.normal: "00_button_01_normal_Focus.png";
65             }
66          }
67          part { name: "padding_left_top";
68             type: RECT;
69             scale: 1;
70             mouse_events: 0;
71             description { state: "default" 0.0;
72                align: 0.0 0.0;
73                rel2.relative: 0.0 0.0;
74                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
75                fixed: 1 1;
76                visible: 0;
77             }
78          }
79          part { name: "bg";
80             type: RECT;
81             scale: 1;
82             mouse_events: 0;
83             description { state: "default" 0.0;
84                min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
85                visible: 0;
86             }
87             description { state: "visible" 0.0;
88                inherit: "default" 0.0;
89                min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
90             }
91             description { state: "icononly" 0.0;
92                inherit: "default" 0.0;
93                min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
94             }
95          }
96          part { name: "padding_right_bottom";
97             type: RECT;
98             scale: 1;
99             mouse_events: 0;
100             description { state: "default" 0.0;
101                align: 1.0 1.0;
102                rel1.relative: 1.0 1.0;
103                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
104                fixed: 1 1;
105                visible: 0;
106             }
107          }
108          part { name: "icon_rect";
109             type: RECT;
110             scale: 1;
111             mouse_events: 0;
112             description { state: "default" 0.0;
113                visible: 0;
114                min: 0 0;
115                fixed: 1 0;
116                rel1 {
117                   relative: 1.0 1.0;
118                   to: "padding_left_top";
119                }
120                rel2 {
121                   relative: 1.0 0.0;
122                   to_x: "padding_left_top";
123                   to_y: "padding_right_bottom";
124                }
125                align: 0.0 0.5;
126             }
127             description { state: "visible" 0.0;
128                visible: 0;
129                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
130                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
131                fixed: 1 0;
132                rel1 {
133                   relative: 1.0 1.0;
134                   to: "padding_left_top";
135                }
136                rel2 {
137                   relative: 1.0 0.0;
138                   to_x: "padding_left_top";
139                   to_y: "padding_right_bottom";
140                }
141                align: 0.0 0.5;
142             }
143             description { state: "icononly" 0.0;
144                inherit: "default" 0.0;
145             }
146          }
147          part { name: "padding_after_icon";
148             type: RECT;
149             scale: 1;
150             mouse_events: 0;
151             description { state: "default" 0.0; //when only icon or no icon is there
152                align: 0.0 0.0;
153                rel1 {
154                   relative: 1.0 0.0;
155                   to: "icon_rect";
156                }
157                rel2.to: "icon_rect";
158                fixed: 1 0;
159                min: 0 0;
160                visible: 0;
161             }
162             description { state: "visible" 0.0;
163                visible: 0;
164                align: 0.0 0.0;
165                rel1 {
166                   relative: 1.0 0.0;
167                   to: "icon_rect";
168                }
169                rel2.to: "icon_rect";
170                fixed: 1 0;
171                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
172             }
173             description { state: "icononly" 0.0;
174                inherit: "default" 0.0;
175             }
176          }
177          part { name: "padding_before_text";
178             type: RECT;
179             scale: 1;
180             mouse_events: 0;
181             description { state: "default" 0.0; //when only icon or no icon is there
182                align: 1.0 0.5;
183                rel1 {
184                   relative: 0.0 1.0;
185                   to_x: "elm.text";
186                   to_y: "padding_left_top";
187                }
188                rel2 {
189                   relative: 0.0 0.0;
190                   to_x: "elm.text";
191                   to_y: "padding_right_bottom";
192                }
193                fixed: 1 0;
194                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
195                visible: 0;
196             }
197          }
198          part { name: "elm.swallow.content";
199             type: SWALLOW;
200             scale: 1;
201             clip_to: "clipper";
202             description { state: "default" 0.0;
203                visible: 0;
204                align: 0.0 0.5;
205                rel1 {
206                   relative: 1.0 1.0;
207                   to: "padding_left_top";
208                }
209                rel2 {
210                   relative: 1.0 0.0;
211                   to_x: "padding_left_top";
212                   to_y: "padding_right_bottom";
213                }
214                fixed: 1 0;
215             }
216             description { state: "visible" 0.0;
217                fixed: 1 0;
218                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
219                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
220                align: 1.0 0.5;
221                rel1 {
222                   relative: 0.0 1.0;
223                   to_x: "padding_before_text";
224                   to_y: "padding_left_top";
225                }
226                rel2 {
227                   relative: 0.0 0.0;
228                   to_x: "padding_before_text";
229                   to_y: "padding_right_bottom";
230                }
231             }
232             description { state: "icononly" 0.0;
233                min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
234                max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
235             }
236          }
237          part { name: "elm.text";
238             type: TEXT;
239             mouse_events: 0;
240             scale: 1;
241             clip_to: "clipper";
242             description { state: "default" 0.0;
243                visible: 0;
244                rel1 {
245                   relative: 1.0 1.0;
246                   to_x: "padding_after_icon";
247                   to_y: "padding_left_top";
248                }
249                rel2 {
250                   relative: 0.0 0.0;
251                   to: "padding_right_bottom";
252                }
253                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
254                text {
255                   font: "SLP:style=Medium";
256                   size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
257                   min: 0 0;
258                   max: 1 0;
259                   text_class: "slp_medium";
260                }
261             }
262             description { state: "visible" 0.0;
263                inherit: "default" 0.0;
264                visible: 1;
265             }
266             description { state: "clicked" 0.0;
267                inherit: "default" 0.0;
268                visible: 1;
269                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
270             }
271             description { state: "disabled" 0.0;
272                inherit: "default" 0.0;
273                color: 0 0 0 128;
274             }
275             description { state: "disabled_visible" 0.0;
276                inherit: "default" 0.0;
277                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
278                visible: 1;
279             }
280             description { state: "focused" 0.0;
281                inherit: "default" 0.0;
282                visible: 1;
283                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
284             }
285          }
286          part { name: "over2";
287             type: RECT;
288             repeat_events: 1;
289             ignore_flags: ON_HOLD;
290             description { state: "default" 0.0;
291                color: 0 0 0 0;
292             }
293          }
294          part { name: "over3";
295             type: RECT;
296             repeat_events: 1;
297             description { state: "default" 0.0;
298                color: 0 0 0 0;
299             }
300          }
301          part { name: "clipper";
302             type: RECT;
303             description { state: "default" 0.0;
304                color: 255 255 255 255;
305             }
306          }
307          part { name: "disabler";
308             type: RECT;
309             description { state: "default" 0.0;
310                color: 0 0 0 0;
311                visible: 0;
312             }
313             description { state: "disabled" 0.0;
314                inherit: "default" 0.0;
315                visible: 1;
316             }
317          }
318       }
319       programs {
320          program { name: "button_click";
321             signal: "mouse,down,1";
322             source: "over2";
323             action: SIGNAL_EMIT "elm,action,press" "";
324             after: "button_click_anim";
325          }
326          program { name: "button_click_anim";
327             action: STATE_SET "clicked" 0.0;
328             target: "button_image";
329             after: "text_clicked";
330          }
331          program { name: "text_clicked";
332             script {
333                new st[31];
334                new Float:vl;
335                get_state(PART:"elm.text", st, 30, vl);
336                if (!strcmp(st, "visible"))
337                  set_state(PART:"elm.text", "clicked", 0.0);
338             }
339          }
340          program { name: "button_unpress";
341             action: SIGNAL_EMIT "elm,action,unpress" "";
342          }
343          program { name: "button_mouseout_clicked";
344             signal: "mouse,up,1";
345             source: "over3";
346             script {
347                new st[31];
348                new Float:vl;
349                get_state(PART:"elm.swallow.content", st, 30, vl);
350                if (strcmp(st, "icononly"))
351                  {
352                     emit("elm,action,default,text,set", "");
353                     set_state(PART:"elm.text", "visible", 0.0);
354                  }
355                if (get_int(button_state) != BUTTON_STATE_DISABLED)
356                  set_state(PART:"button_image", "default", 0.0);
357             }
358             after: button_unpress;
359          }
360          program { name: "touch_snd";
361             signal: "mouse,clicked,1";
362             source: "over2";
363             action: PLAY_SAMPLE "touch_sound" 1.0;
364             after: button_unclick3;
365          }
366          program { name: "button_unclick3";
367             action: SIGNAL_EMIT "elm,action,click" "";
368          }
369          program { name: "text_show";
370             signal: "elm,state,text,visible";
371             source: "elm";
372             script {
373                new st[31];
374                new Float:vl;
375                get_state(PART:"elm.swallow.content", st, 30, vl);
376                if (!strcmp(st, "icononly"))
377                  {
378                     set_state(PART:"elm.swallow.content", "visible", 0.0);
379                     set_state(PART:"icon_rect", "visible", 0.0);
380                     set_state(PART:"padding_after_icon", "visible", 0.0);
381                     set_state(PART:"bg", "visible", 0.0);
382                  }
383                if (get_int(button_state) != BUTTON_STATE_DISABLED)
384                  set_state(PART:"elm.text", "visible", 0.0);
385                else
386                  set_state(PART:"elm.text", "disabled_visible", 0.0);
387             }
388          }
389          program { name: "text_hide";
390             signal: "elm,state,text,hidden";
391             source: "elm";
392             script {
393                new st[31];
394                new Float:vl;
395                get_state(PART:"elm.swallow.content", st, 30, vl);
396                if (!strcmp(st, "visible"))
397                  {
398                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
399                     set_state(PART:"icon_rect", "icononly", 0.0);
400                     set_state(PART:"padding_after_icon", "icononly", 0.0);
401                     set_state(PART:"bg", "icononly", 0.0);
402                  }
403                set_state(PART:"elm.text", "default", 0.0);
404             }
405          }
406          program { name: "icon_show";
407             signal: "elm,state,icon,visible";
408             source: "elm";
409             script {
410                new st[31];
411                new Float:vl;
412                get_state(PART:"elm.text", st, 30, vl);
413                if (!strcmp(st, "visible"))
414                  {
415                     set_state(PART:"elm.swallow.content", "visible", 0.0);
416                     set_state(PART:"icon_rect", "visible", 0.0);
417                     set_state(PART:"padding_after_icon", "visible", 0.0);
418                     set_state(PART:"bg", "visible", 0.0);
419                  }
420                else
421                  {
422                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
423                     set_state(PART:"icon_rect", "icononly", 0.0);
424                     set_state(PART:"padding_after_icon", "icononly", 0.0);
425                     set_state(PART:"bg", "icononly", 0.0);
426                  }
427             }
428          }
429          program { name: "icon_hide";
430             signal: "elm,state,icon,hidden";
431             source: "elm";
432             action: STATE_SET "default" 0.0;
433             target: "elm.swallow.content";
434             target: "padding_after_icon";
435             target: "icon_rect";
436             target: "bg";
437          }
438          program { name: "disable";
439             signal: "elm,state,disabled";
440             source: "elm";
441             action: STATE_SET "disabled" 0.0;
442             target: "button_image";
443             target: "disabler";
444             after: "disable_text";
445          }
446          program { name: "disable_text";
447             script {
448                new st[31];
449                new Float:vl;
450                get_state(PART:"elm.text", st, 30, vl);
451                if (!strcmp(st, "visible"))
452                  set_state(PART:"elm.text", "disabled_visible", 0.0);
453                else
454                  set_state(PART:"elm.text", "disabled", 0.0);
455                set_int(button_state, BUTTON_STATE_DISABLED);
456             }
457          }
458          program { name: "enable";
459             signal: "elm,state,enabled";
460             source: "elm";
461             action: STATE_SET "default" 0.0;
462             target: "button_image";
463             target: "disabler";
464             after: "enable_text";
465          }
466          program { name: "enable_text";
467             script {
468                new st[31];
469                new Float:vl;
470                get_state(PART:"elm.text", st, 30, vl);
471                if (!strcmp(st, "disabled_visible"))
472                  set_state(PART:"elm.text", "visible", 0.0);
473                else
474                  set_state(PART:"elm.text", "default", 0.0);
475                set_int(button_state, BUTTON_STATE_ENABLED);
476             }
477          }
478          program { name: "focused";
479             //signal: "elm,action,focus";
480             //source: "elm";
481             action: STATE_SET "focused" 0.0;
482             target: "button_image";
483             target: "elm.text";
484          }
485          program { name: "unfocused";
486             //signal: "elm,action,unfocus";
487             //source: "elm";
488             action: STATE_SET "default" 0.0;
489             target: "button_image";
490             after: "unfocus_text";
491          }
492          program { name: "unfocus_text";
493             action: STATE_SET "visible" 0.0;
494             target: "elm.text";
495          }
496       }
497    }
498
499 //////////////////////////////////////////////////////////////
500    group { name: "elm/button/base/style1/auto_expand";
501       images {
502          image: "00_button_01_normal.png" COMP;
503          image: "00_button_01_normal_press.png" COMP;
504          image: "00_button_01_normal_dim.png" COMP;
505          image: "00_button_01_normal_Focus.png" COMP;
506       }
507       script {
508          public button_state = BUTTON_STATE_ENABLED;
509       }
510       parts {
511          part { name: "button_image";
512             scale: 1;
513             description { state: "default" 0.0;
514                image {
515                   normal: "00_button_01_normal.png";
516                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
517                   border_scale: 1;
518                }
519             }
520             description { state: "clicked" 0.0;
521                inherit: "default" 0.0;
522                image.normal: "00_button_01_normal_press.png";
523             }
524             description { state: "disabled" 0.0;
525                inherit: "default" 0.0;
526                image.normal: "00_button_01_normal_dim.png";
527             }
528             description { state: "focused" 0.0;
529                inherit: "default" 0.0;
530                image.normal: "00_button_01_normal_Focus.png";
531             }
532          }
533          part { name: "padding_left_top";
534             type: RECT;
535             scale: 1;
536             mouse_events: 0;
537             description { state: "default" 0.0;
538                align: 0.0 0.0;
539                rel2.relative: 0.0 0.0;
540                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
541                fixed: 1 1;
542                visible: 0;
543             }
544          }
545          part { name: "bg";
546             type: RECT;
547             scale: 1;
548             mouse_events: 0;
549             description { state: "default" 0.0;
550                min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
551                visible: 0;
552             }
553             description { state: "visible" 0.0;
554                inherit: "default" 0.0;
555                min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
556             }
557             description { state: "icononly" 0.0;
558                inherit: "default" 0.0;
559                min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
560             }
561          }
562          part { name: "padding_right_bottom";
563             type: RECT;
564             scale: 1;
565             mouse_events: 0;
566             description { state: "default" 0.0;
567                align: 1.0 1.0;
568                rel1.relative: 1.0 1.0;
569                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
570                fixed: 1 1;
571                visible: 0;
572             }
573          }
574          part { name: "icon_rect";
575             type: RECT;
576             scale: 1;
577             mouse_events: 0;
578             description { state: "default" 0.0;
579                visible: 0;
580                min: 0 0;
581                fixed: 1 0;
582                rel1 {
583                   relative: 1.0 1.0;
584                   to: "padding_left_top";
585                }
586                rel2 {
587                   relative: 1.0 0.0;
588                   to_x: "padding_left_top";
589                   to_y: "padding_right_bottom";
590                }
591                align: 0.0 0.5;
592             }
593             description { state: "visible" 0.0;
594                visible: 0;
595                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
596                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
597                fixed: 1 0;
598                rel1 {
599                   relative: 1.0 1.0;
600                   to: "padding_left_top";
601                }
602                rel2 {
603                   relative: 1.0 0.0;
604                   to_x: "padding_left_top";
605                   to_y: "padding_right_bottom";
606                }
607                align: 0.0 0.5;
608             }
609             description { state: "icononly" 0.0;
610                inherit: "default" 0.0;
611             }
612          }
613          part { name: "padding_after_icon";
614             type: RECT;
615             scale: 1;
616             mouse_events: 0;
617             description { state: "default" 0.0; //when only icon or no icon is there
618                align: 0.0 0.0;
619                rel1 {
620                   relative: 1.0 0.0;
621                   to: "icon_rect";
622                }
623                rel2.to: "icon_rect";
624                fixed: 1 0;
625                min: 0 0;
626                visible: 0;
627             }
628             description { state: "visible" 0.0;
629                visible: 0;
630                align: 0.0 0.0;
631                rel1 {
632                   relative: 1.0 0.0;
633                   to: "icon_rect";
634                }
635                rel2.to: "icon_rect";
636                fixed: 1 0;
637                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
638             }
639             description { state: "icononly" 0.0;
640                inherit: "default" 0.0;
641             }
642          }
643          part { name: "padding_before_text";
644             type: RECT;
645             scale: 1;
646             mouse_events: 0;
647             description { state: "default" 0.0; //when only icon or no icon is there
648                align: 1.0 0.5;
649                rel1 {
650                   relative: 0.0 1.0;
651                   to_x: "elm.text";
652                   to_y: "padding_left_top";
653                }
654                rel2 {
655                   relative: 0.0 0.0;
656                   to_x: "elm.text";
657                   to_y: "padding_right_bottom";
658                }
659                fixed: 1 0;
660                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
661                visible: 0;
662             }
663          }
664          part { name: "elm.swallow.content";
665             type: SWALLOW;
666             scale: 1;
667             clip_to: "clipper";
668             description { state: "default" 0.0;
669                visible: 0;
670                align: 0.0 0.5;
671                rel1 {
672                   relative: 1.0 1.0;
673                   to: "padding_left_top";
674                }
675                rel2 {
676                   relative: 1.0 0.0;
677                   to_x: "padding_left_top";
678                   to_y: "padding_right_bottom";
679                }
680                fixed: 1 0;
681             }
682             description { state: "visible" 0.0;
683                fixed: 1 0;
684                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
685                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
686                align: 1.0 0.5;
687                rel1 {
688                   relative: 0.0 1.0;
689                   to_x: "padding_before_text";
690                   to_y: "padding_left_top";
691                }
692                rel2 {
693                   relative: 0.0 0.0;
694                   to_x: "padding_before_text";
695                   to_y: "padding_right_bottom";
696                }
697             }
698             description { state: "icononly" 0.0;
699                min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
700                max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
701             }
702          }
703          part { name: "elm.text";
704             type: TEXT;
705             mouse_events: 0;
706             scale: 1;
707             clip_to: "clipper";
708             description { state: "default" 0.0;
709                visible: 0;
710                rel1 {
711                   relative: 1.0 1.0;
712                   to_x: "padding_after_icon";
713                   to_y: "padding_left_top";
714                }
715                rel2 {
716                   relative: 0.0 0.0;
717                   to: "padding_right_bottom";
718                }
719                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
720                text {
721                   font: "SLP:style=Medium";
722                   size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
723                   min: 1 0;
724                   max: 1 0;
725                   text_class: "slp_medium";
726                }
727             }
728             description { state: "visible" 0.0;
729                inherit: "default" 0.0;
730                visible: 1;
731             }
732             description { state: "clicked" 0.0;
733                inherit: "default" 0.0;
734                visible: 1;
735                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
736             }
737             description { state: "disabled" 0.0;
738                inherit: "default" 0.0;
739                color: 0 0 0 128;
740             }
741             description { state: "disabled_visible" 0.0;
742                inherit: "default" 0.0;
743                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
744                visible: 1;
745             }
746             description { state: "focused" 0.0;
747                inherit: "default" 0.0;
748                visible: 1;
749                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
750             }
751          }
752          part { name: "over2";
753             type: RECT;
754             repeat_events: 1;
755             ignore_flags: ON_HOLD;
756             description { state: "default" 0.0;
757                color: 0 0 0 0;
758             }
759          }
760          part { name: "over3";
761             type: RECT;
762             repeat_events: 1;
763             description { state: "default" 0.0;
764                color: 0 0 0 0;
765             }
766          }
767          part { name: "clipper";
768             type: RECT;
769             description { state: "default" 0.0;
770                color: 255 255 255 255;
771             }
772          }
773          part { name: "disabler";
774             type: RECT;
775             description { state: "default" 0.0;
776                color: 0 0 0 0;
777                visible: 0;
778             }
779             description { state: "disabled" 0.0;
780                inherit: "default" 0.0;
781                visible: 1;
782             }
783          }
784       }
785       programs {
786          program { name: "button_click";
787             signal: "mouse,down,1";
788             source: "over2";
789             action: SIGNAL_EMIT "elm,action,press" "";
790             after: "button_click_anim";
791          }
792          program { name: "button_click_anim";
793             action: STATE_SET "clicked" 0.0;
794             target: "button_image";
795             after: "text_clicked";
796          }
797          program { name: "text_clicked";
798             script {
799                new st[31];
800                new Float:vl;
801                get_state(PART:"elm.text", st, 30, vl);
802                if (!strcmp(st, "visible"))
803                  set_state(PART:"elm.text", "clicked", 0.0);
804             }
805          }
806          program { name: "button_unpress";
807             action: SIGNAL_EMIT "elm,action,unpress" "";
808          }
809          program { name: "button_mouseout_clicked";
810             signal: "mouse,up,1";
811             source: "over3";
812             script {
813                new st[31];
814                new Float:vl;
815                get_state(PART:"elm.swallow.content", st, 30, vl);
816                if (strcmp(st, "icononly"))
817                  {
818                     emit("elm,action,default,text,set", "");
819                     set_state(PART:"elm.text", "visible", 0.0);
820                  }
821                if (get_int(button_state) != BUTTON_STATE_DISABLED)
822                  set_state(PART:"button_image", "default", 0.0);
823             }
824             after: button_unpress;
825          }
826          program { name: "touch_snd";
827             signal: "mouse,clicked,1";
828             source: "over2";
829             action: PLAY_SAMPLE "touch_sound" 1.0;
830             after: button_unclick3;
831          }
832          program { name: "button_unclick3";
833             action: SIGNAL_EMIT "elm,action,click" "";
834          }
835          program { name: "text_show";
836             signal: "elm,state,text,visible";
837             source: "elm";
838             script {
839                new st[31];
840                new Float:vl;
841                get_state(PART:"elm.swallow.content", st, 30, vl);
842                if (!strcmp(st, "icononly"))
843                  {
844                     set_state(PART:"elm.swallow.content", "visible", 0.0);
845                     set_state(PART:"icon_rect", "visible", 0.0);
846                     set_state(PART:"padding_after_icon", "visible", 0.0);
847                     set_state(PART:"bg", "visible", 0.0);
848                  }
849                if (get_int(button_state) != BUTTON_STATE_DISABLED)
850                  set_state(PART:"elm.text", "visible", 0.0);
851                else
852                  set_state(PART:"elm.text", "disabled_visible", 0.0);
853             }
854          }
855          program { name: "text_hide";
856             signal: "elm,state,text,hidden";
857             source: "elm";
858             script {
859                new st[31];
860                new Float:vl;
861                get_state(PART:"elm.swallow.content", st, 30, vl);
862                if (!strcmp(st, "visible"))
863                  {
864                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
865                     set_state(PART:"icon_rect", "icononly", 0.0);
866                     set_state(PART:"padding_after_icon", "icononly", 0.0);
867                     set_state(PART:"bg", "icononly", 0.0);
868                  }
869                set_state(PART:"elm.text", "default", 0.0);
870             }
871          }
872          program { name: "icon_show";
873             signal: "elm,state,icon,visible";
874             source: "elm";
875             script {
876                new st[31];
877                new Float:vl;
878                get_state(PART:"elm.text", st, 30, vl);
879                if (!strcmp(st, "visible"))
880                  {
881                     set_state(PART:"elm.swallow.content", "visible", 0.0);
882                     set_state(PART:"icon_rect", "visible", 0.0);
883                     set_state(PART:"padding_after_icon", "visible", 0.0);
884                     set_state(PART:"bg", "visible", 0.0);
885                  }
886                else
887                  {
888                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
889                     set_state(PART:"icon_rect", "icononly", 0.0);
890                     set_state(PART:"padding_after_icon", "icononly", 0.0);
891                     set_state(PART:"bg", "icononly", 0.0);
892                  }
893             }
894          }
895          program { name: "icon_hide";
896             signal: "elm,state,icon,hidden";
897             source: "elm";
898             action: STATE_SET "default" 0.0;
899             target: "elm.swallow.content";
900             target: "padding_after_icon";
901             target: "icon_rect";
902             target: "bg";
903          }
904          program { name: "disable";
905             signal: "elm,state,disabled";
906             source: "elm";
907             action: STATE_SET "disabled" 0.0;
908             target: "button_image";
909             target: "disabler";
910             after: "disable_text";
911          }
912          program { name: "disable_text";
913             script {
914                new st[31];
915                new Float:vl;
916                get_state(PART:"elm.text", st, 30, vl);
917                if (!strcmp(st, "visible"))
918                  set_state(PART:"elm.text", "disabled_visible", 0.0);
919                else
920                  set_state(PART:"elm.text", "disabled", 0.0);
921                set_int(button_state, BUTTON_STATE_DISABLED);
922             }
923          }
924          program { name: "enable";
925             signal: "elm,state,enabled";
926             source: "elm";
927             action: STATE_SET "default" 0.0;
928             target: "button_image";
929             target: "disabler";
930             after: "enable_text";
931          }
932          program { name: "enable_text";
933             script {
934                new st[31];
935                new Float:vl;
936                get_state(PART:"elm.text", st, 30, vl);
937                if (!strcmp(st, "disabled_visible"))
938                  set_state(PART:"elm.text", "visible", 0.0);
939                else
940                  set_state(PART:"elm.text", "default", 0.0);
941                set_int(button_state, BUTTON_STATE_ENABLED);
942             }
943          }
944          program { name: "focused";
945             //signal: "elm,action,focus";
946             //source: "elm";
947             action: STATE_SET "focused" 0.0;
948             target: "button_image";
949             target: "elm.text";
950          }
951          program { name: "unfocused";
952             //signal: "elm,action,unfocus";
953             //source: "elm";
954             action: STATE_SET "default" 0.0;
955             target: "button_image";
956             after: "unfocus_text";
957          }
958          program { name: "unfocus_text";
959             action: STATE_SET "visible" 0.0;
960             target: "elm.text";
961          }
962       }
963    }
964
965 //////////////////////////////////////////////////////////////////////////////////////
966    group { name: "elm/button/base/datetime_ampm/default";
967       inherit: "elm/button/base/style1/auto_expand";
968       script {
969          public button_state = BUTTON_STATE_ENABLED;
970       }
971       parts {
972          part { name: "bg";
973             type: RECT;
974             scale: 1;
975             mouse_events: 0;
976             description { state: "default" 0.0;
977                min: 0 0;
978                visible: 0;
979             }
980             description { state: "visible" 0.0;
981                inherit: "default" 0.0;
982                min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
983             }
984             description { state: "icononly" 0.0;
985                inherit: "default" 0.0;
986             }
987          }
988       }
989    }
990
991 //////////////////////////////////////////////////////////////////////////////////////
992    group { name: "elm/button/base/style1/multiline";
993       images {
994          image: "00_button_01_normal.png" COMP;
995          image: "00_button_01_normal_press.png" COMP;
996          image: "00_button_01_normal_dim.png" COMP;
997          image: "00_button_01_normal_Focus.png" COMP;
998       }
999       styles{
1000          style { name: "btn_style1_multiline";
1001             base: "font=SLP:style=Roman font_size="BUTTON_TEXT_STYLE1_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
1002             tag: "br" "\n";
1003             tag: "ps" "ps";
1004             tag: "tab" "\t";
1005          }
1006       }
1007       script {
1008          public button_state = BUTTON_STATE_ENABLED;
1009       }
1010       parts {
1011          part { name: "button_image";
1012             scale: 1;
1013             description { state: "default" 0.0;
1014                image {
1015                   normal: "00_button_01_normal.png";
1016                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
1017                   border_scale: 1;
1018                }
1019             }
1020             description { state: "clicked" 0.0;
1021                inherit: "default" 0.0;
1022                image.normal: "00_button_01_normal_press.png";
1023             }
1024             description { state: "disabled" 0.0;
1025                inherit: "default" 0.0;
1026                image.normal: "00_button_01_normal_dim.png";
1027             }
1028             description { state: "focused" 0.0;
1029                inherit: "default" 0.0;
1030                image.normal: "00_button_01_normal_Focus.png";
1031             }
1032          }
1033          part { name: "padding_left_top";
1034             type: RECT;
1035             scale: 1;
1036             mouse_events: 0;
1037             description { state: "default" 0.0;
1038                align: 0.0 0.0;
1039                rel2.relative: 0.0 0.0;
1040                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1041                fixed: 1 1;
1042                visible: 0;
1043             }
1044          }
1045          part { name: "bg";
1046             type: RECT;
1047             scale: 1;
1048             mouse_events: 0;
1049             description { state: "default" 0.0;
1050                min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
1051                visible: 0;
1052             }
1053             description { state: "visible" 0.0;
1054                inherit: "default" 0.0;
1055                min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
1056             }
1057             description { state: "icononly" 0.0;
1058                inherit: "default" 0.0;
1059                min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
1060             }
1061          }
1062          part { name: "padding_right_bottom";
1063             type: RECT;
1064             scale: 1;
1065             mouse_events: 0;
1066             description { state: "default" 0.0;
1067                align: 1.0 1.0;
1068                rel1.relative: 1.0 1.0;
1069                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1070                fixed: 1 1;
1071                visible: 0;
1072             }
1073          }
1074          part { name: "icon_rect";
1075             type: RECT;
1076             scale: 1;
1077             mouse_events: 0;
1078             description { state: "default" 0.0;
1079                visible: 0;
1080                min: 0 0;
1081                fixed: 1 0;
1082                rel1 {
1083                   relative: 1.0 1.0;
1084                   to: "padding_left_top";
1085                }
1086                rel2 {
1087                   relative: 1.0 0.0;
1088                   to_x: "padding_left_top";
1089                   to_y: "padding_right_bottom";
1090                }
1091                align: 0.0 0.5;
1092             }
1093             description { state: "visible" 0.0;
1094                visible: 0;
1095                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1096                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1097                fixed: 1 0;
1098                rel1 {
1099                   relative: 1.0 1.0;
1100                   to: "padding_left_top";
1101                }
1102                rel2 {
1103                   relative: 1.0 0.0;
1104                   to_x: "padding_left_top";
1105                   to_y: "padding_right_bottom";
1106                }
1107                align: 0.0 0.5;
1108             }
1109             description { state: "icononly" 0.0;
1110                inherit: "default" 0.0;
1111             }
1112          }
1113          part { name: "padding_after_icon";
1114             type: RECT;
1115             scale: 1;
1116             mouse_events: 0;
1117             description { state: "default" 0.0; //when only icon or no icon is there
1118                align: 0.0 0.0;
1119                rel1 {
1120                   relative: 1.0 0.0;
1121                   to: "icon_rect";
1122                }
1123                rel2.to: "icon_rect";
1124                fixed: 1 0;
1125                min: 5 0;
1126                visible: 0;
1127             }
1128             description { state: "visible" 0.0;
1129                visible: 0;
1130                align: 0.0 0.0;
1131                rel1 {
1132                   relative: 1.0 0.0;
1133                   to: "icon_rect";
1134                }
1135                rel2.to: "icon_rect";
1136                fixed: 1 0;
1137                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1138             }
1139             description { state: "icononly" 0.0;
1140                inherit: "default" 0.0;
1141             }
1142          }
1143          part { name: "padding_before_text";
1144             type: RECT;
1145             scale: 1;
1146             mouse_events: 0;
1147             description { state: "default" 0.0; //when only icon or no icon is there
1148                align: 1.0 0.5;
1149                rel1 {
1150                   relative: 0.0 1.0;
1151                   to_x: "elm.text";
1152                   to_y: "padding_left_top";
1153                }
1154                rel2 {
1155                   relative: 0.0 0.0;
1156                   to_x: "elm.text";
1157                   to_y: "padding_right_bottom";
1158                }
1159                fixed: 1 0;
1160                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1161                visible: 0;
1162             }
1163          }
1164          part { name: "elm.swallow.content";
1165             type: SWALLOW;
1166             scale: 1;
1167             clip_to: "clipper";
1168             description { state: "default" 0.0;
1169                visible: 0;
1170                align: 0.0 0.5;
1171                rel1 {
1172                   relative: 1.0 1.0;
1173                   to: "padding_left_top";
1174                }
1175                rel2 {
1176                   relative: 1.0 0.0;
1177                   to_x: "padding_left_top";
1178                   to_y: "padding_right_bottom";
1179                }
1180                fixed: 1 0;
1181             }
1182             description { state: "visible" 0.0;
1183                fixed: 1 0;
1184                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1185                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1186                align: 1.0 0.5;
1187                rel1 {
1188                   relative: 0.0 1.0;
1189                   to_x: "padding_before_text";
1190                   to_y: "padding_left_top";
1191                }
1192                rel2 {
1193                   relative: 0.0 0.0;
1194                   to_x: "padding_before_text";
1195                   to_y: "padding_right_bottom";
1196                }
1197             }
1198             description { state: "icononly" 0.0;
1199                min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1200                max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1201             }
1202          }
1203          part { name: "elm.text";
1204             type: TEXTBLOCK;
1205             mouse_events: 0;
1206             scale: 1;
1207             clip_to: "clipper";
1208             description { state: "default" 0.0;
1209                visible: 0;
1210                rel1 {
1211                   relative: 1.0 1.0;
1212                   to_x: "padding_after_icon";
1213                   to_y: "padding_left_top";
1214                }
1215                rel2 {
1216                   relative: 0.0 0.0;
1217                   to: "padding_right_bottom";
1218                }
1219                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1220                text {
1221                    style: "btn_style1_multiline";
1222                    min: 0 0;
1223                    max: 0 1;
1224                }
1225             }
1226             description { state: "visible" 0.0;
1227                inherit: "default" 0.0;
1228                visible: 1;
1229             }
1230             description { state: "clicked" 0.0;
1231                inherit: "default" 0.0;
1232                visible: 1;
1233                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1234             }
1235             description { state: "disabled" 0.0;
1236                inherit: "default" 0.0;
1237                color: 0 0 0 128;
1238             }
1239             description { state: "disabled_visible" 0.0;
1240                inherit: "default" 0.0;
1241                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1242                visible: 1;
1243             }
1244             description { state: "focused" 0.0;
1245                inherit: "default" 0.0;
1246                visible: 1;
1247                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1248             }
1249          }
1250          part { name: "over2";
1251             type: RECT;
1252             repeat_events: 1;
1253             ignore_flags: ON_HOLD;
1254             description { state: "default" 0.0;
1255                color: 0 0 0 0;
1256             }
1257          }
1258          part { name: "over3";
1259             type: RECT;
1260             repeat_events: 1;
1261             description { state: "default" 0.0;
1262                color: 0 0 0 0;
1263             }
1264          }
1265          part { name: "clipper";
1266             type: RECT;
1267             description { state: "default" 0.0;
1268                color: 255 255 255 255;
1269             }
1270          }
1271          part { name: "disabler";
1272             type: RECT;
1273             description { state: "default" 0.0;
1274                color: 0 0 0 0;
1275                visible: 0;
1276             }
1277             description { state: "disabled" 0.0;
1278                inherit: "default" 0.0;
1279                visible: 1;
1280             }
1281          }
1282       }
1283       programs {
1284          program { name: "button_click";
1285             signal: "mouse,down,1";
1286             source: "over2";
1287             action: SIGNAL_EMIT "elm,action,press" "";
1288             after: "button_click_anim";
1289          }
1290          program { name: "button_click_anim";
1291             action: STATE_SET "clicked" 0.0;
1292             target: "button_image";
1293             after: "text_clicked";
1294          }
1295          program { name: "text_clicked";
1296             script {
1297                new st[31];
1298                new Float:vl;
1299                get_state(PART:"elm.text", st, 30, vl);
1300                if (!strcmp(st, "visible"))
1301                  set_state(PART:"elm.text", "clicked", 0.0);
1302             }
1303          }
1304          program { name: "button_unpress";
1305             action: SIGNAL_EMIT "elm,action,unpress" "";
1306          }
1307          program { name: "button_mouseout_clicked";
1308             signal: "mouse,up,1";
1309             source: "over3";
1310             script {
1311                new st[31];
1312                new Float:vl;
1313                get_state(PART:"elm.swallow.content", st, 30, vl);
1314                if (strcmp(st, "icononly"))
1315                  {
1316                     emit("elm,action,default,text,set", "");
1317                     set_state(PART:"elm.text", "visible", 0.0);
1318                  }
1319                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1320                  set_state(PART:"button_image", "default", 0.0);
1321             }
1322             after: button_unpress;
1323          }
1324          program { name: "touch_snd";
1325             signal: "mouse,clicked,1";
1326             source: "over2";
1327             action: PLAY_SAMPLE "touch_sound" 1.0;
1328             after: button_unclick3;
1329          }
1330          program { name: "button_unclick3";
1331             action: SIGNAL_EMIT "elm,action,click" "";
1332          }
1333          program { name: "text_show";
1334             signal: "elm,state,text,visible";
1335             source: "elm";
1336             script {
1337                new st[31];
1338                new Float:vl;
1339                get_state(PART:"elm.swallow.content", st, 30, vl);
1340                if (!strcmp(st, "icononly"))
1341                  {
1342                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1343                     set_state(PART:"icon_rect", "visible", 0.0);
1344                     set_state(PART:"padding_after_icon", "visible", 0.0);
1345                     set_state(PART:"bg", "visible", 0.0);
1346                  }
1347                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1348                  set_state(PART:"elm.text", "visible", 0.0);
1349                else
1350                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1351             }
1352          }
1353          program { name: "text_hide";
1354             signal: "elm,state,text,hidden";
1355             source: "elm";
1356             script {
1357                new st[31];
1358                new Float:vl;
1359                get_state(PART:"elm.swallow.content", st, 30, vl);
1360                if (!strcmp(st, "visible"))
1361                  {
1362                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1363                     set_state(PART:"icon_rect", "icononly", 0.0);
1364                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1365                     set_state(PART:"bg", "icononly", 0.0);
1366                  }
1367                set_state(PART:"elm.text", "default", 0.0);
1368             }
1369          }
1370          program { name: "icon_show";
1371             signal: "elm,state,icon,visible";
1372             source: "elm";
1373             script {
1374                new st[31];
1375                new Float:vl;
1376                get_state(PART:"elm.text", st, 30, vl);
1377                if (!strcmp(st, "visible"))
1378                  {
1379                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1380                     set_state(PART:"icon_rect", "visible", 0.0);
1381                     set_state(PART:"padding_after_icon", "visible", 0.0);
1382                     set_state(PART:"bg", "visible", 0.0);
1383                  }
1384                else
1385                  {
1386                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1387                     set_state(PART:"icon_rect", "icononly", 0.0);
1388                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1389                     set_state(PART:"bg", "icononly", 0.0);
1390                  }
1391             }
1392          }
1393          program { name: "icon_hide";
1394             signal: "elm,state,icon,hidden";
1395             source: "elm";
1396             action: STATE_SET "default" 0.0;
1397             target: "elm.swallow.content";
1398             target: "padding_after_icon";
1399             target: "icon_rect";
1400             target: "bg";
1401          }
1402          program { name: "disable";
1403             signal: "elm,state,disabled";
1404             source: "elm";
1405             action: STATE_SET "disabled" 0.0;
1406             target: "button_image";
1407             target: "disabler";
1408             after: "disable_text";
1409          }
1410          program { name: "disable_text";
1411             script {
1412                new st[31];
1413                new Float:vl;
1414                get_state(PART:"elm.text", st, 30, vl);
1415                if (!strcmp(st, "visible"))
1416                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1417                else
1418                  set_state(PART:"elm.text", "disabled", 0.0);
1419                set_int(button_state, BUTTON_STATE_DISABLED);
1420             }
1421          }
1422          program { name: "enable";
1423             signal: "elm,state,enabled";
1424             source: "elm";
1425             action: STATE_SET "default" 0.0;
1426             target: "button_image";
1427             target: "disabler";
1428             after: "enable_text";
1429          }
1430          program { name: "enable_text";
1431             script {
1432                new st[31];
1433                new Float:vl;
1434                get_state(PART:"elm.text", st, 30, vl);
1435                if (!strcmp(st, "disabled_visible"))
1436                  set_state(PART:"elm.text", "visible", 0.0);
1437                else
1438                  set_state(PART:"elm.text", "default", 0.0);
1439                set_int(button_state, BUTTON_STATE_ENABLED);
1440             }
1441          }
1442          program { name: "focused";
1443             //signal: "elm,action,focus";
1444             //source: "elm";
1445             action: STATE_SET "focused" 0.0;
1446             target: "button_image";
1447             target: "elm.text";
1448          }
1449          program { name: "unfocused";
1450             //signal: "elm,action,unfocus";
1451             //source: "elm";
1452             action: STATE_SET "default" 0.0;
1453             target: "button_image";
1454             after: "unfocus_text";
1455          }
1456          program { name: "unfocus_text";
1457             action: STATE_SET "visible" 0.0;
1458             target: "elm.text";
1459          }
1460       }
1461    }
1462
1463 ///////////////////////////////////////////////////////////////////////////////////////
1464    group { name: "elm/button/base/style2";
1465       alias: "elm/button/base/text_only/style2";
1466       images {
1467          image: "00_button_04_normal.png" COMP;
1468          image: "00_button_04_press.png" COMP;
1469          image: "00_button_04_dim.png" COMP;
1470          image: "00_button_04_normal_focus.png" COMP;
1471       }
1472       script {
1473          public button_state = BUTTON_STATE_ENABLED;
1474       }
1475       parts {
1476          part { name: "button_image";
1477             scale: 1;
1478             description { state: "default" 0.0;
1479                image {
1480                   normal: "00_button_04_normal.png";
1481                   border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1482                   border_scale: 1;
1483                }
1484             }
1485             description { state: "clicked" 0.0;
1486                inherit: "default" 0.0;
1487                image.normal: "00_button_04_press.png";
1488             }
1489             description { state: "disabled" 0.0;
1490                inherit: "default" 0.0;
1491                image.normal: "00_button_04_dim.png";
1492             }
1493             description { state: "focused" 0.0;
1494                inherit: "default" 0.0;
1495                image.normal: "00_button_04_normal_focus.png";
1496             }
1497          }
1498          part { name: "padding_left_top";
1499             type: RECT;
1500             scale: 1;
1501             mouse_events: 0;
1502             description { state: "default" 0.0;
1503                align: 0.0 0.0;
1504                rel2.relative: 0.0 0.0;
1505                min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1506                fixed: 1 1;
1507                visible: 0;
1508             }
1509          }
1510          part { name: "bg";
1511             type: RECT;
1512             scale: 1;
1513             mouse_events: 0;
1514             description { state: "default" 0.0;
1515                min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1516                visible: 0;
1517             }
1518             description { state: "visible" 0.0;
1519                inherit: "default" 0.0;
1520                min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1521             }
1522             description { state: "icononly" 0.0;
1523                inherit: "default" 0.0;
1524                min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1525             }
1526          }
1527          part { name: "padding_right_bottom";
1528             type: RECT;
1529             scale: 1;
1530             mouse_events: 0;
1531             description { state: "default" 0.0;
1532                align: 1.0 1.0;
1533                rel1.relative: 1.0 1.0;
1534                min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1535                fixed: 1 1;
1536                visible: 0;
1537             }
1538          }
1539          part { name: "icon_rect";
1540             type: RECT;
1541             scale: 1;
1542             mouse_events: 0;
1543             description { state: "default" 0.0;
1544                visible: 0;
1545                min: 0 0;
1546                fixed: 1 0;
1547                rel1 {
1548                   relative: 1.0 1.0;
1549                   to: "padding_left_top";
1550                }
1551                rel2 {
1552                   relative: 1.0 0.0;
1553                   to_x: "padding_left_top";
1554                   to_y: "padding_right_bottom";
1555                }
1556                align: 0.0 0.5;
1557             }
1558             description { state: "visible" 0.0;
1559                visible: 0;
1560                min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1561                max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1562                fixed: 1 0;
1563                rel1 {
1564                   relative: 1.0 1.0;
1565                   to: "padding_left_top";
1566                }
1567                rel2 {
1568                   relative: 1.0 0.0;
1569                   to_x: "padding_left_top";
1570                   to_y: "padding_right_bottom";
1571                }
1572                align: 0.0 0.5;
1573             }
1574             description { state: "icononly" 0.0;
1575                inherit: "default" 0.0;
1576             }
1577          }
1578          part { name: "padding_after_icon";
1579             type: RECT;
1580             scale: 1;
1581             mouse_events: 0;
1582             description { state: "default" 0.0; //when only icon or no icon is there
1583                align: 0.0 0.0;
1584                rel1 {
1585                   relative: 1.0 0.0;
1586                   to: "icon_rect";
1587                }
1588                rel2.to: "icon_rect";
1589                fixed: 1 0;
1590                min: 0 0;
1591                visible: 0;
1592             }
1593             description { state: "visible" 0.0;
1594                visible: 0;
1595                align: 0.0 0.0;
1596                rel1 {
1597                   relative: 1.0 0.0;
1598                   to: "icon_rect";
1599                }
1600                rel2.to: "icon_rect";
1601                fixed: 1 0;
1602                min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1603             }
1604             description { state: "icononly" 0.0;
1605                inherit: "default" 0.0;
1606             }
1607          }
1608          part { name: "padding_before_text";
1609             type: RECT;
1610             scale: 1;
1611             mouse_events: 0;
1612             description { state: "default" 0.0; //when only icon or no icon is there
1613                align: 1.0 0.5;
1614                rel1 {
1615                   relative: 0.0 1.0;
1616                   to_x: "elm.text";
1617                   to_y: "padding_left_top";
1618                }
1619                rel2 {
1620                   relative: 0.0 0.0;
1621                   to_x: "elm.text";
1622                   to_y: "padding_right_bottom";
1623                }
1624                fixed: 1 0;
1625                min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1626                visible: 0;
1627             }
1628          }
1629          part { name: "elm.swallow.content";
1630             type: SWALLOW;
1631             scale: 1;
1632             clip_to: "clipper";
1633             description { state: "default" 0.0;
1634                visible: 0;
1635                align: 0.0 0.5;
1636                rel1 {
1637                   relative: 1.0 1.0;
1638                   to: "padding_left_top";
1639                }
1640                rel2 {
1641                   relative: 1.0 0.0;
1642                   to_x: "padding_left_top";
1643                   to_y: "padding_right_bottom";
1644                }
1645                fixed: 1 0;
1646             }
1647             description { state: "visible" 0.0;
1648                fixed: 1 0;
1649                min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1650                max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1651                align: 1.0 0.5;
1652                rel1 {
1653                   relative: 0.0 1.0;
1654                   to_x: "padding_before_text";
1655                   to_y: "padding_left_top";
1656                }
1657                rel2 {
1658                   relative: 0.0 0.0;
1659                   to_x: "padding_before_text";
1660                   to_y: "padding_right_bottom";
1661                }
1662             }
1663             description { state: "icononly" 0.0;
1664                min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1665                max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1666             }
1667          }
1668          part { name: "elm.text";
1669             type: TEXT;
1670             mouse_events: 0;
1671             scale: 1;
1672             clip_to: "clipper";
1673             description { state: "default" 0.0;
1674                visible: 0;
1675                rel1 {
1676                   relative: 1.0 1.0;
1677                   to_x: "padding_after_icon";
1678                   to_y: "padding_left_top";
1679                }
1680                rel2 {
1681                   relative: 0.0 0.0;
1682                   to: "padding_right_bottom";
1683                }
1684                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1685                text {
1686                   font: "SLP:style=Medium";
1687                   size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1688                   min: 0 0;
1689                   max: 1 0;
1690                   text_class: "slp_medium";
1691                }
1692             }
1693             description { state: "visible" 0.0;
1694                inherit: "default" 0.0;
1695                visible: 1;
1696             }
1697             description { state: "clicked" 0.0;
1698                inherit: "default" 0.0;
1699                visible: 1;
1700                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1701             }
1702             description { state: "disabled" 0.0;
1703                inherit: "default" 0.0;
1704                color: 0 0 0 128;
1705             }
1706             description { state: "disabled_visible" 0.0;
1707                inherit: "default" 0.0;
1708                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1709                visible: 1;
1710             }
1711             description { state: "focused" 0.0;
1712                inherit: "default" 0.0;
1713                visible: 1;
1714                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1715             }
1716          }
1717          part { name: "over2";
1718             type: RECT;
1719             repeat_events: 1;
1720             ignore_flags: ON_HOLD;
1721             description { state: "default" 0.0;
1722                color: 0 0 0 0;
1723             }
1724          }
1725          part { name: "over3";
1726             type: RECT;
1727             repeat_events: 1;
1728             description { state: "default" 0.0;
1729                color: 0 0 0 0;
1730             }
1731          }
1732          part { name: "clipper";
1733             type: RECT;
1734             description { state: "default" 0.0;
1735                color: 255 255 255 255;
1736             }
1737          }
1738          part { name: "disabler";
1739             type: RECT;
1740             description { state: "default" 0.0;
1741                color: 0 0 0 0;
1742                visible: 0;
1743             }
1744             description { state: "disabled" 0.0;
1745                inherit: "default" 0.0;
1746                visible: 1;
1747             }
1748          }
1749       }
1750       programs {
1751          program { name: "button_click";
1752             signal: "mouse,down,1";
1753             source: "over2";
1754             action: SIGNAL_EMIT "elm,action,press" "";
1755             after: "button_click_anim";
1756          }
1757          program { name: "button_click_anim";
1758             action: STATE_SET "clicked" 0.0;
1759             target: "button_image";
1760             after: "text_clicked";
1761          }
1762          program { name: "text_clicked";
1763             script {
1764                new st[31];
1765                new Float:vl;
1766                get_state(PART:"elm.text", st, 30, vl);
1767                if (!strcmp(st, "visible"))
1768                  set_state(PART:"elm.text", "clicked", 0.0);
1769             }
1770          }
1771          program { name: "button_unpress";
1772             action: SIGNAL_EMIT "elm,action,unpress" "";
1773          }
1774          program { name: "button_mouseout_clicked";
1775             signal: "mouse,up,1";
1776             source: "over3";
1777             script {
1778                new st[31];
1779                new Float:vl;
1780                get_state(PART:"elm.swallow.content", st, 30, vl);
1781                if (strcmp(st, "icononly"))
1782                  {
1783                     emit("elm,action,default,text,set", "");
1784                     set_state(PART:"elm.text", "visible", 0.0);
1785                  }
1786                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1787                  set_state(PART:"button_image", "default", 0.0);
1788             }
1789             after: button_unpress;
1790          }
1791          program { name: "touch_snd";
1792             signal: "mouse,clicked,1";
1793             source: "over2";
1794             action: PLAY_SAMPLE "touch_sound" 1.0;
1795             after: button_unclick3;
1796          }
1797          program { name: "button_unclick3";
1798             action: SIGNAL_EMIT "elm,action,click" "";
1799          }
1800          program { name: "text_show";
1801             signal: "elm,state,text,visible";
1802             source: "elm";
1803             script {
1804                new st[31];
1805                new Float:vl;
1806                get_state(PART:"elm.swallow.content", st, 30, vl);
1807                if (!strcmp(st, "icononly"))
1808                  {
1809                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1810                     set_state(PART:"icon_rect", "visible", 0.0);
1811                     set_state(PART:"padding_after_icon", "visible", 0.0);
1812                     set_state(PART:"bg", "visible", 0.0);
1813                  }
1814                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1815                  set_state(PART:"elm.text", "visible", 0.0);
1816                else
1817                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1818             }
1819          }
1820          program { name: "text_hide";
1821             signal: "elm,state,text,hidden";
1822             source: "elm";
1823             script {
1824                new st[31];
1825                new Float:vl;
1826                get_state(PART:"elm.swallow.content", st, 30, vl);
1827                if (!strcmp(st, "visible"))
1828                  {
1829                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1830                     set_state(PART:"icon_rect", "icononly", 0.0);
1831                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1832                     set_state(PART:"bg", "icononly", 0.0);
1833                  }
1834                set_state(PART:"elm.text", "default", 0.0);
1835             }
1836          }
1837          program { name: "icon_show";
1838             signal: "elm,state,icon,visible";
1839             source: "elm";
1840             script {
1841                new st[31];
1842                new Float:vl;
1843                get_state(PART:"elm.text", st, 30, vl);
1844                if (!strcmp(st, "visible"))
1845                  {
1846                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1847                     set_state(PART:"icon_rect", "visible", 0.0);
1848                     set_state(PART:"padding_after_icon", "visible", 0.0);
1849                     set_state(PART:"bg", "visible", 0.0);
1850                  }
1851                else
1852                  {
1853                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1854                     set_state(PART:"icon_rect", "icononly", 0.0);
1855                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1856                     set_state(PART:"bg", "icononly", 0.0);
1857                  }
1858             }
1859          }
1860          program { name: "icon_hide";
1861             signal: "elm,state,icon,hidden";
1862             source: "elm";
1863             action: STATE_SET "default" 0.0;
1864             target: "elm.swallow.content";
1865             target: "padding_after_icon";
1866             target: "icon_rect";
1867             target: "bg";
1868          }
1869          program { name: "disable";
1870             signal: "elm,state,disabled";
1871             source: "elm";
1872             action: STATE_SET "disabled" 0.0;
1873             target: "button_image";
1874             target: "disabler";
1875             after: "disable_text";
1876          }
1877          program { name: "disable_text";
1878             script {
1879                new st[31];
1880                new Float:vl;
1881                get_state(PART:"elm.text", st, 30, vl);
1882                if (!strcmp(st, "visible"))
1883                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1884                else
1885                  set_state(PART:"elm.text", "disabled", 0.0);
1886                set_int(button_state, BUTTON_STATE_DISABLED);
1887             }
1888          }
1889          program { name: "enable";
1890             signal: "elm,state,enabled";
1891             source: "elm";
1892             action: STATE_SET "default" 0.0;
1893             target: "button_image";
1894             target: "disabler";
1895             after: "enable_text";
1896          }
1897          program { name: "enable_text";
1898             script {
1899                new st[31];
1900                new Float:vl;
1901                get_state(PART:"elm.text", st, 30, vl);
1902                if (!strcmp(st, "disabled_visible"))
1903                  set_state(PART:"elm.text", "visible", 0.0);
1904                else
1905                  set_state(PART:"elm.text", "default", 0.0);
1906                set_int(button_state, BUTTON_STATE_ENABLED);
1907             }
1908          }
1909          program { name: "focused";
1910             //signal: "elm,action,focus";
1911             //source: "elm";
1912             action: STATE_SET "focused" 0.0;
1913             target: "button_image";
1914             target: "elm.text";
1915          }
1916          program { name: "unfocused";
1917             //signal: "elm,action,unfocus";
1918             //source: "elm";
1919             action: STATE_SET "default" 0.0;
1920             target: "button_image";
1921             after: "unfocus_text";
1922          }
1923          program { name: "unfocus_text";
1924             action: STATE_SET "visible" 0.0;
1925             target: "elm.text";
1926          }
1927       }
1928    }
1929
1930 ///////////////////////////////////////////////////////////////////////////////////////
1931    group { name: "elm/button/base/style2/multiline";
1932       images {
1933          image: "00_button_04_normal.png" COMP;
1934          image: "00_button_04_press.png" COMP;
1935          image: "00_button_04_dim.png" COMP;
1936          image: "00_button_04_normal_focus.png" COMP;
1937       }
1938       styles{
1939          style { name: "btn_style2_multiline";
1940             base: "font=SLP:style=Roman font_size="BUTTON_TEXT_STYLE2_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
1941             tag: "br" "\n";
1942             tag: "ps" "ps";
1943             tag: "tab" "\t";
1944          }
1945       }
1946       script {
1947          public button_state = BUTTON_STATE_ENABLED;
1948       }
1949       parts {
1950          part { name: "button_image";
1951             scale: 1;
1952             description { state: "default" 0.0;
1953                image {
1954                   normal: "00_button_04_normal.png";
1955                   border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1956                   border_scale: 1;
1957                }
1958             }
1959             description { state: "clicked" 0.0;
1960                inherit: "default" 0.0;
1961                image.normal: "00_button_04_press.png";
1962             }
1963             description { state: "disabled" 0.0;
1964                inherit: "default" 0.0;
1965                image.normal: "00_button_04_dim.png";
1966             }
1967             description { state: "focused" 0.0;
1968                inherit: "default" 0.0;
1969                image.normal: "00_button_04_normal_focus.png";
1970             }
1971          }
1972          part { name: "padding_left_top";
1973             type: RECT;
1974             scale: 1;
1975             mouse_events: 0;
1976             description { state: "default" 0.0;
1977                align: 0.0 0.0;
1978                rel2.relative: 0.0 0.0;
1979                min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1980                fixed: 1 1;
1981                visible: 0;
1982             }
1983          }
1984          part { name: "bg";
1985             type: RECT;
1986             scale: 1;
1987             mouse_events: 0;
1988             description { state: "default" 0.0;
1989                min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1990                visible: 0;
1991             }
1992             description { state: "visible" 0.0;
1993                inherit: "default" 0.0;
1994                min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1995             }
1996             description { state: "icononly" 0.0;
1997                inherit: "default" 0.0;
1998                min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1999             }
2000          }
2001          part { name: "padding_right_bottom";
2002             type: RECT;
2003             scale: 1;
2004             mouse_events: 0;
2005             description { state: "default" 0.0;
2006                align: 1.0 1.0;
2007                rel1.relative: 1.0 1.0;
2008                min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
2009                fixed: 1 1;
2010                visible: 0;
2011             }
2012          }
2013          part { name: "icon_rect";
2014             type: RECT;
2015             scale: 1;
2016             mouse_events: 0;
2017             description { state: "default" 0.0;
2018                visible: 0;
2019                min: 0 0;
2020                fixed: 1 0;
2021                rel1 {
2022                   relative: 1.0 1.0;
2023                   to: "padding_left_top";
2024                }
2025                rel2 {
2026                   relative: 1.0 0.0;
2027                   to_x: "padding_left_top";
2028                   to_y: "padding_right_bottom";
2029                }
2030                align: 0.0 0.5;
2031             }
2032             description { state: "visible" 0.0;
2033                visible: 0;
2034                min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
2035                max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
2036                fixed: 1 0;
2037                rel1 {
2038                   relative: 1.0 1.0;
2039                   to: "padding_left_top";
2040                }
2041                rel2 {
2042                   relative: 1.0 0.0;
2043                   to_x: "padding_left_top";
2044                   to_y: "padding_right_bottom";
2045                }
2046                align: 0.0 0.5;
2047             }
2048             description { state: "icononly" 0.0;
2049                inherit: "default" 0.0;
2050             }
2051          }
2052          part { name: "padding_after_icon";
2053             type: RECT;
2054             scale: 1;
2055             mouse_events: 0;
2056             description { state: "default" 0.0; //when only icon or no icon is there
2057                align: 0.0 0.0;
2058                rel1 {
2059                   relative: 1.0 0.0;
2060                   to: "icon_rect";
2061                }
2062                rel2.to: "icon_rect";
2063                fixed: 1 0;
2064                min: 0 0;
2065                visible: 0;
2066             }
2067             description { state: "visible" 0.0;
2068                visible: 0;
2069                align: 0.0 0.0;
2070                rel1 {
2071                   relative: 1.0 0.0;
2072                   to: "icon_rect";
2073                }
2074                rel2.to: "icon_rect";
2075                fixed: 1 0;
2076                min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
2077             }
2078             description { state: "icononly" 0.0;
2079                inherit: "default" 0.0;
2080             }
2081          }
2082          part { name: "padding_before_text";
2083             type: RECT;
2084             scale: 1;
2085             mouse_events: 0;
2086             description { state: "default" 0.0; //when only icon or no icon is there
2087                align: 1.0 0.5;
2088                rel1 {
2089                   relative: 0.0 1.0;
2090                   to_x: "elm.text";
2091                   to_y: "padding_left_top";
2092                }
2093                rel2 {
2094                   relative: 0.0 0.0;
2095                   to_x: "elm.text";
2096                   to_y: "padding_right_bottom";
2097                }
2098                fixed: 1 0;
2099                min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
2100                visible: 0;
2101             }
2102          }
2103          part { name: "elm.swallow.content";
2104             type: SWALLOW;
2105             scale: 1;
2106             clip_to: "clipper";
2107             description { state: "default" 0.0;
2108                visible: 0;
2109                align: 0.0 0.5;
2110                rel1 {
2111                   relative: 1.0 1.0;
2112                   to: "padding_left_top";
2113                }
2114                rel2 {
2115                   relative: 1.0 0.0;
2116                   to_x: "padding_left_top";
2117                   to_y: "padding_right_bottom";
2118                }
2119                fixed: 1 0;
2120             }
2121             description { state: "visible" 0.0;
2122                fixed: 1 0;
2123                min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
2124                max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
2125                align: 1.0 0.5;
2126                rel1 {
2127                   relative: 0.0 1.0;
2128                   to_x: "padding_before_text";
2129                   to_y: "padding_left_top";
2130                }
2131                rel2 {
2132                   relative: 0.0 0.0;
2133                   to_x: "padding_before_text";
2134                   to_y: "padding_right_bottom";
2135                }
2136             }
2137             description { state: "icononly" 0.0;
2138                min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
2139                max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
2140             }
2141          }
2142          part { name: "elm.text";
2143             type: TEXTBLOCK;
2144             mouse_events: 0;
2145             scale: 1;
2146             clip_to: "clipper";
2147             description { state: "default" 0.0;
2148                visible: 0;
2149                rel1 {
2150                   relative: 1.0 1.0;
2151                   to_x: "padding_after_icon";
2152                   to_y: "padding_left_top";
2153                }
2154                rel2 {
2155                   relative: 0.0 0.0;
2156                   to: "padding_right_bottom";
2157                }
2158                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
2159                text {
2160                   style: "btn_style2_multiline";
2161                   min: 0 0;
2162                   max: 1 0;
2163                }
2164             }
2165             description { state: "visible" 0.0;
2166                inherit: "default" 0.0;
2167                visible: 1;
2168             }
2169             description { state: "clicked" 0.0;
2170                inherit: "default" 0.0;
2171                visible: 1;
2172                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
2173             }
2174             description { state: "disabled" 0.0;
2175                inherit: "default" 0.0;
2176                color: 0 0 0 128;
2177             }
2178             description { state: "disabled_visible" 0.0;
2179                inherit: "default" 0.0;
2180                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
2181                visible: 1;
2182             }
2183             description { state: "focused" 0.0;
2184                inherit: "default" 0.0;
2185                visible: 1;
2186                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
2187             }
2188          }
2189          part { name: "over2";
2190             type: RECT;
2191             repeat_events: 1;
2192             ignore_flags: ON_HOLD;
2193             description { state: "default" 0.0;
2194                color: 0 0 0 0;
2195             }
2196          }
2197          part { name: "over3";
2198             type: RECT;
2199             repeat_events: 1;
2200             description { state: "default" 0.0;
2201                color: 0 0 0 0;
2202             }
2203          }
2204          part { name: "clipper";
2205             type: RECT;
2206             description { state: "default" 0.0;
2207                color: 255 255 255 255;
2208             }
2209          }
2210          part { name: "disabler";
2211             type: RECT;
2212             description { state: "default" 0.0;
2213                color: 0 0 0 0;
2214                visible: 0;
2215             }
2216             description { state: "disabled" 0.0;
2217                inherit: "default" 0.0;
2218                visible: 1;
2219             }
2220          }
2221       }
2222       programs {
2223          program { name: "button_click";
2224             signal: "mouse,down,1";
2225             source: "over2";
2226             action: SIGNAL_EMIT "elm,action,press" "";
2227             after: "button_click_anim";
2228          }
2229          program { name: "button_click_anim";
2230             action: STATE_SET "clicked" 0.0;
2231             target: "button_image";
2232             after: "text_clicked";
2233          }
2234          program { name: "text_clicked";
2235             script {
2236                new st[31];
2237                new Float:vl;
2238                get_state(PART:"elm.text", st, 30, vl);
2239                if (!strcmp(st, "visible"))
2240                  set_state(PART:"elm.text", "clicked", 0.0);
2241             }
2242          }
2243          program { name: "button_unpress";
2244             action: SIGNAL_EMIT "elm,action,unpress" "";
2245          }
2246          program { name: "button_mouseout_clicked";
2247             signal: "mouse,up,1";
2248             source: "over3";
2249             script {
2250                new st[31];
2251                new Float:vl;
2252                get_state(PART:"elm.swallow.content", st, 30, vl);
2253                if (strcmp(st, "icononly"))
2254                  {
2255                     emit("elm,action,default,text,set", "");
2256                     set_state(PART:"elm.text", "visible", 0.0);
2257                  }
2258                if (get_int(button_state) != BUTTON_STATE_DISABLED)
2259                  set_state(PART:"button_image", "default", 0.0);
2260             }
2261             after: button_unpress;
2262          }
2263          program { name: "touch_snd";
2264             signal: "mouse,clicked,1";
2265             source: "over2";
2266             action: PLAY_SAMPLE "touch_sound" 1.0;
2267             after: button_unclick3;
2268          }
2269          program { name: "button_unclick3";
2270             action: SIGNAL_EMIT "elm,action,click" "";
2271          }
2272          program { name: "text_show";
2273             signal: "elm,state,text,visible";
2274             source: "elm";
2275             script {
2276                new st[31];
2277                new Float:vl;
2278                get_state(PART:"elm.swallow.content", st, 30, vl);
2279                if (!strcmp(st, "icononly"))
2280                  {
2281                     set_state(PART:"elm.swallow.content", "visible", 0.0);
2282                     set_state(PART:"icon_rect", "visible", 0.0);
2283                     set_state(PART:"padding_after_icon", "visible", 0.0);
2284                     set_state(PART:"bg", "visible", 0.0);
2285                  }
2286                if (get_int(button_state) != BUTTON_STATE_DISABLED)
2287                  set_state(PART:"elm.text", "visible", 0.0);
2288                else
2289                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2290             }
2291          }
2292          program { name: "text_hide";
2293             signal: "elm,state,text,hidden";
2294             source: "elm";
2295             script {
2296                new st[31];
2297                new Float:vl;
2298                get_state(PART:"elm.swallow.content", st, 30, vl);
2299                if (!strcmp(st, "visible"))
2300                  {
2301                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
2302                     set_state(PART:"icon_rect", "icononly", 0.0);
2303                     set_state(PART:"padding_after_icon", "icononly", 0.0);
2304                     set_state(PART:"bg", "icononly", 0.0);
2305                  }
2306                set_state(PART:"elm.text", "default", 0.0);
2307             }
2308          }
2309          program { name: "icon_show";
2310             signal: "elm,state,icon,visible";
2311             source: "elm";
2312             script {
2313                new st[31];
2314                new Float:vl;
2315                get_state(PART:"elm.text", st, 30, vl);
2316                if (!strcmp(st, "visible"))
2317                  {
2318                     set_state(PART:"elm.swallow.content", "visible", 0.0);
2319                     set_state(PART:"icon_rect", "visible", 0.0);
2320                     set_state(PART:"padding_after_icon", "visible", 0.0);
2321                     set_state(PART:"bg", "visible", 0.0);
2322                  }
2323                else
2324                  {
2325                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
2326                     set_state(PART:"icon_rect", "icononly", 0.0);
2327                     set_state(PART:"padding_after_icon", "icononly", 0.0);
2328                     set_state(PART:"bg", "icononly", 0.0);
2329                  }
2330             }
2331          }
2332          program { name: "icon_hide";
2333             signal: "elm,state,icon,hidden";
2334             source: "elm";
2335             action: STATE_SET "default" 0.0;
2336             target: "elm.swallow.content";
2337             target: "padding_after_icon";
2338             target: "icon_rect";
2339             target: "bg";
2340          }
2341          program { name: "disable";
2342             signal: "elm,state,disabled";
2343             source: "elm";
2344             action: STATE_SET "disabled" 0.0;
2345             target: "button_image";
2346             target: "disabler";
2347             after: "disable_text";
2348          }
2349          program { name: "disable_text";
2350             script {
2351                new st[31];
2352                new Float:vl;
2353                get_state(PART:"elm.text", st, 30, vl);
2354                if (!strcmp(st, "visible"))
2355                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2356                else
2357                  set_state(PART:"elm.text", "disabled", 0.0);
2358                set_int(button_state, BUTTON_STATE_DISABLED);
2359             }
2360          }
2361          program { name: "enable";
2362             signal: "elm,state,enabled";
2363             source: "elm";
2364             action: STATE_SET "default" 0.0;
2365             target: "button_image";
2366             target: "disabler";
2367             after: "enable_text";
2368          }
2369          program { name: "enable_text";
2370             script {
2371                new st[31];
2372                new Float:vl;
2373                get_state(PART:"elm.text", st, 30, vl);
2374                if (!strcmp(st, "disabled_visible"))
2375                  set_state(PART:"elm.text", "visible", 0.0);
2376                else
2377                  set_state(PART:"elm.text", "default", 0.0);
2378                set_int(button_state, BUTTON_STATE_ENABLED);
2379             }
2380          }
2381          program { name: "focused";
2382             //signal: "elm,action,focus";
2383             //source: "elm";
2384             action: STATE_SET "focused" 0.0;
2385             target: "button_image";
2386             target: "elm.text";
2387          }
2388          program { name: "unfocused";
2389             //signal: "elm,action,unfocus";
2390             //source: "elm";
2391             action: STATE_SET "default" 0.0;
2392             target: "button_image";
2393             after: "unfocus_text";
2394          }
2395          program { name: "unfocus_text";
2396             action: STATE_SET "visible" 0.0;
2397             target: "elm.text";
2398          }
2399       }
2400    }
2401
2402 ///////////////////////////////////////////////////////////////////////////////////////
2403    group { name: "elm/button/base/sweep";
2404       alias: "elm/button/base/text_only/sweep";
2405       images {
2406          image: "00_button_sweep.png" COMP;
2407          image: "00_button_sweep_press.png" COMP;
2408          image: "00_button_sweep_dim.png" COMP;
2409          image: "00_button_sweep_focus.png" COMP;
2410       }
2411       script {
2412          public button_state = BUTTON_STATE_ENABLED;
2413       }
2414       parts {
2415          part { name: "button_image";
2416             scale: 1;
2417             description { state: "default" 0.0;
2418                min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2419                image {
2420                   normal: "00_button_sweep.png";
2421                   border: BUTTON_SWEEP_BG_BORDER_INC;
2422                   border_scale: 1;
2423                }
2424             }
2425             description { state: "clicked" 0.0;
2426                inherit: "default" 0.0;
2427                image.normal: "00_button_sweep_press.png";
2428             }
2429             description { state: "disabled" 0.0;
2430                inherit: "default" 0.0;
2431                image.normal: "00_button_sweep_dim.png";
2432             }
2433             description { state: "focused" 0.0;
2434                inherit: "default" 0.0;
2435                image.normal: "00_button_sweep_focus.png";
2436             }
2437          }
2438          part { name: "padding_left_top";
2439             type: RECT;
2440             scale: 1;
2441             mouse_events: 0;
2442             description { state: "default" 0.0;
2443                align: 0.0 0.0;
2444                rel2.relative: 0.0 0.0;
2445                min: BUTTON_SWEEP_PADDING_MIN_INC;
2446                fixed: 1 1;
2447                visible: 0;
2448             }
2449          }
2450          part { name: "padding_right_bottom";
2451             type: RECT;
2452             scale: 1;
2453             mouse_events: 0;
2454             description { state: "default" 0.0;
2455                align: 1.0 1.0;
2456                rel1.relative: 1.0 1.0;
2457                min: BUTTON_SWEEP_PADDING_MIN_INC;
2458                fixed: 1 1;
2459                visible: 0;
2460             }
2461          }
2462          part { name: "icon_rect";
2463             type: RECT;
2464             scale: 1;
2465             mouse_events: 0;
2466             description { state: "default" 0.0;
2467                min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2468                fixed: 1 0;
2469                rel1 {
2470                   relative: 0.0 1.0;
2471                   to_x: "elm.swallow.content";
2472                   to_y: "padding_left_top";
2473                }
2474                rel2 {
2475                   relative: 1.0 0.0;
2476                   to_x: "elm.swallow.content";
2477                   to_y: "padding_right_bottom";
2478                }
2479                align: 0.0 0.5;
2480                color: 0 0 0 0;
2481             }
2482          }
2483          part { name: "padding_icon_text";
2484             type: RECT;
2485             scale: 1;
2486             mouse_events: 0;
2487             description { state: "default" 0.0; //when only icon or no icon is there
2488                align: 0.0 0.0;
2489                rel1 {
2490                   relative: 1.0 0.0;
2491                   to: "icon_rect";
2492                }
2493                rel2.to: "icon_rect";
2494                fixed: 1 0;
2495                min: 0 0;
2496                color: 0 0 0 0;
2497             }
2498             description { state: "icononly" 0.0;
2499                inherit: "default" 0.0;
2500             }
2501             description { state: "visible" 0.0; //when icon is visible
2502                align: 0.0 0.0;
2503                rel1 {
2504                   relative: 1.0 0.0;
2505                   to: "icon_rect";
2506                }
2507                rel2.to: "icon_rect";
2508                fixed: 1 0;
2509                min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2510                color: 0 0 0 0;
2511             }
2512          }
2513          part { name: "elm.swallow.content";
2514             type: SWALLOW;
2515             scale: 1;
2516             clip_to: "clipper";
2517             description { state: "default" 0.0;
2518                visible: 0;
2519                align: 0.0 0.5;
2520                rel1 {
2521                   relative: 1.0 1.0;
2522                   to: "padding_left_top";
2523                }
2524                rel2 {
2525                   relative: 1.0 0.0;
2526                   to_x: "padding_left_top";
2527                   to_y: "padding_right_bottom";
2528                }
2529                fixed: 1 0;
2530             }
2531             description { state: "visible" 0.0;
2532                fixed: 1 0;
2533                align: 0.0 0.5;
2534                rel1 {
2535                   relative: 1.0 1.0;
2536                   to: "padding_left_top";
2537                }
2538                rel2 {
2539                   relative: 1.0 0.0;
2540                   to_x: "padding_left_top";
2541                   to_y: "padding_right_bottom";
2542                }
2543                aspect: 1.0 1.0;
2544                aspect_preference: VERTICAL;
2545             }
2546             description { state: "icononly" 0.0;
2547                min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2548                rel1 {
2549                   relative: 1.0 1.0;
2550                   to: "padding_left_top";
2551                }
2552                rel2 {
2553                   relative: 1.0 0.0;
2554                   to_x: "padding_left_top";
2555                   to_y: "padding_right_bottom";
2556                }
2557             }
2558          }
2559          part { name: "elm.text";
2560             type: TEXT;
2561             mouse_events: 0;
2562             scale: 1;
2563             clip_to: "clipper";
2564             description { state: "default" 0.0;
2565                visible: 0;
2566                rel1 {
2567                   relative: 1.0 1.0;
2568                   to_x: "padding_icon_text";
2569                   to_y: "padding_left_top";
2570                }
2571                rel2 {
2572                   relative: 0.0 0.0;
2573                   to: "padding_right_bottom";
2574                }
2575                color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2576                text {
2577                   font: "SLP:style=Medium";
2578                   size: BUTTON_SWEEP_FONT_SIZE_INC;
2579                   min: 0 0;
2580                   text_class: "slp_medium";
2581                }
2582             }
2583             description { state: "visible" 0.0;
2584                inherit: "default" 0.0;
2585                visible: 1;
2586                min: BUTTON_SWEEP_TEXT_MIN_INC;
2587             }
2588             description { state: "clicked" 0.0;
2589                inherit: "default" 0.0;
2590                visible: 1;
2591                min: 0 0;
2592                color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
2593             }
2594             description { state: "disabled" 0.0;
2595                inherit: "default" 0.0;
2596                color: 0 0 0 128;
2597             }
2598             description { state: "disabled_visible" 0.0;
2599                inherit: "default" 0.0;
2600                color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2601                visible: 1;
2602                min: BUTTON_SWEEP_TEXT_MIN_INC;
2603             }
2604             description { state: "focused" 0.0;
2605                inherit: "default" 0.0;
2606                visible: 1;
2607                min: 0 0;
2608                color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2609             }
2610          }
2611          part { name: "over2";
2612             type: RECT;
2613             repeat_events: 1;
2614             ignore_flags: ON_HOLD;
2615             description { state: "default" 0.0;
2616                color: 0 0 0 0;
2617             }
2618          }
2619          part { name: "over3";
2620             type: RECT;
2621             repeat_events: 1;
2622             description { state: "default" 0.0;
2623                color: 0 0 0 0;
2624             }
2625          }
2626          part { name: "clipper";
2627             type: RECT;
2628             description { state: "default" 0.0;
2629                color: 255 255 255 255;
2630             }
2631          }
2632          part { name: "disabler";
2633             type: RECT;
2634             description { state: "default" 0.0;
2635                color: 0 0 0 0;
2636                visible: 0;
2637             }
2638             description { state: "disabled" 0.0;
2639                inherit: "default" 0.0;
2640                visible: 1;
2641             }
2642          }
2643       }
2644       programs {
2645          program { name: "button_click";
2646             signal: "mouse,down,1";
2647             source: "over2";
2648             action: SIGNAL_EMIT "elm,action,press" "";
2649             after: "button_click_anim";
2650          }
2651          program { name: "button_click_anim";
2652             action: STATE_SET "clicked" 0.0;
2653             target: "button_image";
2654             after: "text_clicked";
2655          }
2656          program { name: "text_clicked";
2657             script {
2658                new st[31];
2659                new Float:vl;
2660                get_state(PART:"elm.text", st, 30, vl);
2661                if (!strcmp(st, "visible"))
2662                  set_state(PART:"elm.text", "clicked", 0.0);
2663             }
2664          }
2665          program { name: "button_unpress";
2666             action: SIGNAL_EMIT "elm,action,unpress" "";
2667          }
2668          program { name: "button_mouseout_clicked";
2669             signal: "mouse,up,1";
2670             source: "over3";
2671             script {
2672                new st[31];
2673                new Float:vl;
2674                get_state(PART:"elm.swallow.content", st, 30, vl);
2675                if (strcmp(st, "icononly"))
2676                  {
2677                     emit("elm,action,default,text,set", "");
2678                     set_state(PART:"elm.text", "visible", 0.0);
2679                  }
2680                if (get_int(button_state) != BUTTON_STATE_DISABLED)
2681                  set_state(PART:"button_image", "default", 0.0);
2682             }
2683             after: button_unpress;
2684          }
2685          program { name: "touch_snd";
2686             signal: "mouse,clicked,1";
2687             source: "over2";
2688             action: PLAY_SAMPLE "touch_sound" 1.0;
2689             after: button_unclick3;
2690          }
2691          program { name: "button_unclick3";
2692             action: SIGNAL_EMIT "elm,action,click" "";
2693          }
2694          program { name: "text_show";
2695             signal: "elm,state,text,visible";
2696             source: "elm";
2697             script {
2698                new st[31];
2699                new Float:vl;
2700                get_state(PART:"elm.swallow.content", st, 30, vl);
2701                if (!strcmp(st, "icononly"))
2702                  {
2703                     set_state(PART:"elm.swallow.content", "visible", 0.0);
2704                     set_state(PART:"padding_icon_text", "visible", 0.0);
2705                  }
2706                if (get_int(button_state) != BUTTON_STATE_DISABLED)
2707                  set_state(PART:"elm.text", "visible", 0.0);
2708                else
2709                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2710             }
2711          }
2712          program { name: "text_hide";
2713             signal: "elm,state,text,hidden";
2714             source: "elm";
2715             script {
2716                new st[31];
2717                new Float:vl;
2718                get_state(PART:"elm.swallow.content", st, 30, vl);
2719                if (!strcmp(st, "visible"))
2720                  {
2721                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
2722                     set_state(PART:"padding_icon_text", "icononly", 0.0);
2723                  }
2724                set_state(PART:"elm.text", "default", 0.0);
2725             }
2726          }
2727          program { name: "icon_show";
2728             signal: "elm,state,icon,visible";
2729             source: "elm";
2730             script {
2731                new st[31];
2732                new Float:vl;
2733                get_state(PART:"elm.text", st, 30, vl);
2734                if (!strcmp(st, "visible"))
2735                  {
2736                     set_state(PART:"elm.swallow.content", "visible", 0.0);
2737                     set_state(PART:"padding_icon_text", "visible", 0.0);
2738                  }
2739                else
2740                  {
2741                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
2742                     set_state(PART:"padding_icon_text", "icononly", 0.0);
2743                  }
2744             }
2745          }
2746          program { name: "icon_hide";
2747             signal: "elm,state,icon,hidden";
2748             source: "elm";
2749             action: STATE_SET "default" 0.0;
2750             target: "elm.swallow.content";
2751             target: "padding_icon_text";
2752          }
2753          program { name: "disable";
2754             signal: "elm,state,disabled";
2755             source: "elm";
2756             action: STATE_SET "disabled" 0.0;
2757             target: "button_image";
2758             target: "disabler";
2759             after: "disable_text";
2760          }
2761          program { name: "disable_text";
2762             script {
2763                new st[31];
2764                new Float:vl;
2765                get_state(PART:"elm.text", st, 30, vl);
2766                if (!strcmp(st, "visible"))
2767                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2768                else
2769                  set_state(PART:"elm.text", "disabled", 0.0);
2770                set_int(button_state, BUTTON_STATE_DISABLED);
2771             }
2772          }
2773          program { name: "enable";
2774             signal: "elm,state,enabled";
2775             source: "elm";
2776             action: STATE_SET "default" 0.0;
2777             target: "button_image";
2778             target: "disabler";
2779             after: "enable_text";
2780          }
2781          program { name: "enable_text";
2782             script {
2783                new st[31];
2784                new Float:vl;
2785                get_state(PART:"elm.text", st, 30, vl);
2786                if (!strcmp(st, "disabled_visible"))
2787                  set_state(PART:"elm.text", "visible", 0.0);
2788                else
2789                  set_state(PART:"elm.text", "default", 0.0);
2790                set_int(button_state, BUTTON_STATE_ENABLED);
2791             }
2792          }
2793          program { name: "focused";
2794             //signal: "elm,action,focus";
2795             //source: "elm";
2796             action: STATE_SET "focused" 0.0;
2797             target: "button_image";
2798             target: "elm.text";
2799          }
2800          program { name: "unfocused";
2801             //signal: "elm,action,unfocus";
2802             //source: "elm";
2803             action: STATE_SET "default" 0.0;
2804             target: "button_image";
2805             after: "unfocus_text";
2806          }
2807          program { name: "unfocus_text";
2808             action: STATE_SET "visible" 0.0;
2809             target: "elm.text";
2810          }
2811       }
2812    }
2813
2814 ///////////////////////////////////////////////////////////////////////////////////////
2815    group { name: "elm/button/base/sweep/multiline";
2816       images {
2817          image: "00_button_sweep.png" COMP;
2818          image: "00_button_sweep_press.png" COMP;
2819          image: "00_button_sweep_dim.png" COMP;
2820          image: "00_button_sweep_focus.png" COMP;
2821       }
2822       styles{
2823          style { name: "btn_sweep_multiline";
2824             base: "font=SLP:style=Roman font_size="BUTTON_SWEEP_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_roman";
2825             tag: "br" "\n";
2826             tag: "ps" "ps";
2827             tag: "tab" "\t";
2828          }
2829       }
2830       script {
2831          public button_state = BUTTON_STATE_ENABLED;
2832       }
2833       parts {
2834          part { name: "button_image";
2835             scale: 1;
2836             description { state: "default" 0.0;
2837                min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2838                image {
2839                   normal: "00_button_sweep.png";
2840                   border: BUTTON_SWEEP_BG_BORDER_INC;
2841                   border_scale: 1;
2842                }
2843             }
2844             description { state: "clicked" 0.0;
2845                inherit: "default" 0.0;
2846                image.normal: "00_button_sweep_press.png";
2847             }
2848             description { state: "disabled" 0.0;
2849                inherit: "default" 0.0;
2850                image.normal: "00_button_sweep_dim.png";
2851             }
2852             description { state: "focused" 0.0;
2853                inherit: "default" 0.0;
2854                image.normal: "00_button_sweep_focus.png";
2855             }
2856          }
2857          part { name: "padding_left_top";
2858             type: RECT;
2859             scale: 1;
2860             mouse_events: 0;
2861             description { state: "default" 0.0;
2862                align: 0.0 0.0;
2863                rel2.relative: 0.0 0.0;
2864                min: BUTTON_SWEEP_PADDING_MIN_INC;
2865                fixed: 1 1;
2866                visible: 0;
2867             }
2868          }
2869          part { name: "padding_right_bottom";
2870             type: RECT;
2871             scale: 1;
2872             mouse_events: 0;
2873             description { state: "default" 0.0;
2874                align: 1.0 1.0;
2875                rel1.relative: 1.0 1.0;
2876                min: BUTTON_SWEEP_PADDING_MIN_INC;
2877                fixed: 1 1;
2878                visible: 0;
2879             }
2880          }
2881          part { name: "icon_rect";
2882             type: RECT;
2883             scale: 1;
2884             mouse_events: 0;
2885             description { state: "default" 0.0;
2886                min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
2887                fixed: 1 0;
2888                rel1 {
2889                   relative: 0.0 1.0;
2890                   to_x: "elm.swallow.content";
2891                   to_y: "padding_left_top";
2892                }
2893                rel2 {
2894                   relative: 1.0 0.0;
2895                   to_x: "elm.swallow.content";
2896                   to_y: "padding_right_bottom";
2897                }
2898                align: 0.0 0.5;
2899                color: 0 0 0 0;
2900             }
2901          }
2902          part { name: "padding_icon_text";
2903             type: RECT;
2904             scale: 1;
2905             mouse_events: 0;
2906             description { state: "default" 0.0; //when only icon or no icon is there
2907                align: 0.0 0.0;
2908                rel1 {
2909                   relative: 1.0 0.0;
2910                   to: "icon_rect";
2911                }
2912                rel2.to: "icon_rect";
2913                fixed: 1 0;
2914                min: 0 0;
2915                color: 0 0 0 0;
2916             }
2917             description { state: "icononly" 0.0;
2918                inherit: "default" 0.0;
2919             }
2920             description { state: "visible" 0.0; //when icon is visible
2921                align: 0.0 0.0;
2922                rel1 {
2923                   relative: 1.0 0.0;
2924                   to: "icon_rect";
2925                }
2926                rel2.to: "icon_rect";
2927                fixed: 1 0;
2928                min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2929                color: 0 0 0 0;
2930             }
2931          }
2932          part { name: "elm.swallow.content";
2933             type: SWALLOW;
2934             scale: 1;
2935             clip_to: "clipper";
2936             description { state: "default" 0.0;
2937                visible: 0;
2938                align: 0.0 0.5;
2939                rel1 {
2940                   relative: 1.0 1.0;
2941                   to: "padding_left_top";
2942                }
2943                rel2 {
2944                   relative: 1.0 0.0;
2945                   to_x: "padding_left_top";
2946                   to_y: "padding_right_bottom";
2947                }
2948                fixed: 1 0;
2949             }
2950             description { state: "visible" 0.0;
2951                fixed: 1 0;
2952                align: 0.0 0.5;
2953                rel1 {
2954                   relative: 1.0 1.0;
2955                   to: "padding_left_top";
2956                }
2957                rel2 {
2958                   relative: 1.0 0.0;
2959                   to_x: "padding_left_top";
2960                   to_y: "padding_right_bottom";
2961                }
2962                aspect: 1.0 1.0;
2963                aspect_preference: VERTICAL;
2964             }
2965             description { state: "icononly" 0.0;
2966                min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
2967                rel1 {
2968                   relative: 1.0 1.0;
2969                   to: "padding_left_top";
2970                }
2971                rel2 {
2972                   relative: 1.0 0.0;
2973                   to_x: "padding_left_top";
2974                   to_y: "padding_right_bottom";
2975                }
2976             }
2977          }
2978          part { name: "elm.text";
2979             type: TEXTBLOCK;
2980             mouse_events: 0;
2981             scale: 1;
2982             clip_to: "clipper";
2983             description { state: "default" 0.0;
2984                visible: 0;
2985                rel1 {
2986                   relative: 1.0 1.0;
2987                   to_x: "padding_icon_text";
2988                   to_y: "padding_left_top";
2989                }
2990                rel2 {
2991                   relative: 0.0 0.0;
2992                   to: "padding_right_bottom";
2993                }
2994                color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
2995                text {
2996                   style: "btn_sweep_multiline";
2997                   min: 0 0;
2998                   max: 0 1;
2999                }
3000             }
3001             description { state: "visible" 0.0;
3002                inherit: "default" 0.0;
3003                visible: 1;
3004                min: BUTTON_SWEEP_TEXT_MIN_INC;
3005             }
3006             description { state: "clicked" 0.0;
3007                inherit: "default" 0.0;
3008                visible: 1;
3009                min: 0 0;
3010                color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3011             }
3012             description { state: "disabled" 0.0;
3013                inherit: "default" 0.0;
3014                color: 0 0 0 128;
3015             }
3016             description { state: "disabled_visible" 0.0;
3017                inherit: "default" 0.0;
3018                color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3019                visible: 1;
3020                min: BUTTON_SWEEP_TEXT_MIN_INC;
3021             }
3022             description { state: "focused" 0.0;
3023                inherit: "default" 0.0;
3024                visible: 1;
3025                min: 0 0;
3026                color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3027             }
3028          }
3029          part { name: "over2";
3030             type: RECT;
3031             repeat_events: 1;
3032             ignore_flags: ON_HOLD;
3033             description { state: "default" 0.0;
3034                color: 0 0 0 0;
3035             }
3036          }
3037          part { name: "over3";
3038             type: RECT;
3039             repeat_events: 1;
3040             description { state: "default" 0.0;
3041                color: 0 0 0 0;
3042             }
3043          }
3044          part { name: "clipper";
3045             type: RECT;
3046             description { state: "default" 0.0;
3047                color: 255 255 255 255;
3048             }
3049          }
3050          part { name: "disabler";
3051             type: RECT;
3052             description { state: "default" 0.0;
3053                color: 0 0 0 0;
3054                visible: 0;
3055             }
3056             description { state: "disabled" 0.0;
3057                inherit: "default" 0.0;
3058                visible: 1;
3059             }
3060          }
3061       }
3062       programs {
3063          program { name: "button_click";
3064             signal: "mouse,down,1";
3065             source: "over2";
3066             action: SIGNAL_EMIT "elm,action,press" "";
3067             after: "button_click_anim";
3068          }
3069          program { name: "button_click_anim";
3070             action: STATE_SET "clicked" 0.0;
3071             target: "button_image";
3072             after: "text_clicked";
3073          }
3074          program { name: "text_clicked";
3075             script {
3076                new st[31];
3077                new Float:vl;
3078                get_state(PART:"elm.text", st, 30, vl);
3079                if (!strcmp(st, "visible"))
3080                  set_state(PART:"elm.text", "clicked", 0.0);
3081             }
3082          }
3083          program { name: "button_unpress";
3084             action: SIGNAL_EMIT "elm,action,unpress" "";
3085          }
3086          program { name: "button_mouseout_clicked";
3087             signal: "mouse,up,1";
3088             source: "over3";
3089             script {
3090                new st[31];
3091                new Float:vl;
3092                get_state(PART:"elm.swallow.content", st, 30, vl);
3093                if (strcmp(st, "icononly"))
3094                  {
3095                     emit("elm,action,default,text,set", "");
3096                     set_state(PART:"elm.text", "visible", 0.0);
3097                  }
3098                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3099                  set_state(PART:"button_image", "default", 0.0);
3100             }
3101             after: button_unpress;
3102          }
3103          program { name: "touch_snd";
3104             signal: "mouse,clicked,1";
3105             source: "over2";
3106             action: PLAY_SAMPLE "touch_sound" 1.0;
3107             after: button_unclick3;
3108          }
3109          program { name: "button_unclick3";
3110             action: SIGNAL_EMIT "elm,action,click" "";
3111          }
3112          program { name: "text_show";
3113             signal: "elm,state,text,visible";
3114             source: "elm";
3115             script {
3116                new st[31];
3117                new Float:vl;
3118                get_state(PART:"elm.swallow.content", st, 30, vl);
3119                if (!strcmp(st, "icononly"))
3120                  {
3121                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3122                     set_state(PART:"padding_icon_text", "visible", 0.0);
3123                  }
3124                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3125                  set_state(PART:"elm.text", "visible", 0.0);
3126                else
3127                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3128             }
3129          }
3130          program { name: "text_hide";
3131             signal: "elm,state,text,hidden";
3132             source: "elm";
3133             script {
3134                new st[31];
3135                new Float:vl;
3136                get_state(PART:"elm.swallow.content", st, 30, vl);
3137                if (!strcmp(st, "visible"))
3138                  {
3139                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3140                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3141                  }
3142                set_state(PART:"elm.text", "default", 0.0);
3143             }
3144          }
3145          program { name: "icon_show";
3146             signal: "elm,state,icon,visible";
3147             source: "elm";
3148             script {
3149                new st[31];
3150                new Float:vl;
3151                get_state(PART:"elm.text", st, 30, vl);
3152                if (!strcmp(st, "visible"))
3153                  {
3154                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3155                     set_state(PART:"padding_icon_text", "visible", 0.0);
3156                  }
3157                else
3158                  {
3159                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3160                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3161                  }
3162             }
3163          }
3164          program { name: "icon_hide";
3165             signal: "elm,state,icon,hidden";
3166             source: "elm";
3167             action: STATE_SET "default" 0.0;
3168             target: "elm.swallow.content";
3169             target: "padding_icon_text";
3170          }
3171          program { name: "disable";
3172             signal: "elm,state,disabled";
3173             source: "elm";
3174             action: STATE_SET "disabled" 0.0;
3175             target: "button_image";
3176             target: "disabler";
3177             after: "disable_text";
3178          }
3179          program { name: "disable_text";
3180             script {
3181                new st[31];
3182                new Float:vl;
3183                get_state(PART:"elm.text", st, 30, vl);
3184                if (!strcmp(st, "visible"))
3185                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3186                else
3187                  set_state(PART:"elm.text", "disabled", 0.0);
3188                set_int(button_state, BUTTON_STATE_DISABLED);
3189             }
3190          }
3191          program { name: "enable";
3192             signal: "elm,state,enabled";
3193             source: "elm";
3194             action: STATE_SET "default" 0.0;
3195             target: "button_image";
3196             target: "disabler";
3197             after: "enable_text";
3198          }
3199          program { name: "enable_text";
3200             script {
3201                new st[31];
3202                new Float:vl;
3203                get_state(PART:"elm.text", st, 30, vl);
3204                if (!strcmp(st, "disabled_visible"))
3205                  set_state(PART:"elm.text", "visible", 0.0);
3206                else
3207                  set_state(PART:"elm.text", "default", 0.0);
3208                set_int(button_state, BUTTON_STATE_ENABLED);
3209             }
3210          }
3211          program { name: "focused";
3212             //signal: "elm,action,focus";
3213             //source: "elm";
3214             action: STATE_SET "focused" 0.0;
3215             target: "button_image";
3216             target: "elm.text";
3217          }
3218          program { name: "unfocused";
3219             //signal: "elm,action,unfocus";
3220             //source: "elm";
3221             action: STATE_SET "default" 0.0;
3222             target: "button_image";
3223             after: "unfocus_text";
3224          }
3225          program { name: "unfocus_text";
3226             action: STATE_SET "visible" 0.0;
3227             target: "elm.text";
3228          }
3229       }
3230    }
3231 ///////////////////////////////////////////////////////////////////////////////////////
3232 group { name: "elm/button/base/searchbar/default";
3233       images {
3234          image: "00_button_01_normal.png" COMP;
3235          image: "00_button_01_normal_press.png" COMP;
3236          image: "00_button_01_normal_dim.png" COMP;
3237          image: "00_button_01_normal_Focus.png" COMP;
3238       }
3239       script {
3240          public button_state = BUTTON_STATE_ENABLED;
3241       }
3242       parts {
3243          part { name: "button_image";
3244             scale: 1;
3245             description { state: "default" 0.0;
3246                min: BUTTON_SEARCHBAR_BG_NORMAL_MIN_INC;
3247                image {
3248                   normal: "00_button_01_normal.png";
3249                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3250                   border_scale: 1;
3251                }
3252             }
3253             description { state: "clicked" 0.0;
3254                inherit: "default" 0.0;
3255                image.normal: "00_button_01_normal_press.png";
3256             }
3257             description { state: "disabled" 0.0;
3258                inherit: "default" 0.0;
3259                image.normal: "00_button_01_normal_dim.png";
3260             }
3261             description { state: "focused" 0.0;
3262                inherit: "default" 0.0;
3263                image.normal: "00_button_01_normal_Focus.png";
3264             }
3265          }
3266          part { name: "padding_left_top";
3267             type: RECT;
3268             scale: 1;
3269             mouse_events: 0;
3270             description { state: "default" 0.0;
3271                align: 0.0 0.0;
3272                rel2.relative: 0.0 0.0;
3273                min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3274                fixed: 1 1;
3275                visible: 0;
3276             }
3277          }
3278          part { name: "padding_right_bottom";
3279             type: RECT;
3280             scale: 1;
3281             mouse_events: 0;
3282             description { state: "default" 0.0;
3283                align: 1.0 1.0;
3284                rel1.relative: 1.0 1.0;
3285                min: BUTTON_SEARCHBAR_PADDING_MIN_INC;
3286                fixed: 1 1;
3287                visible: 0;
3288             }
3289          }
3290          part { name: "icon_rect";
3291             type: RECT;
3292             scale: 1;
3293             mouse_events: 0;
3294             description { state: "default" 0.0;
3295                min: BUTTON_SEARCHBAR_ICON_RECT_MIN_INC;
3296                fixed: 1 0;
3297                rel1 {
3298                   relative: 0.0 1.0;
3299                   to_x: "elm.swallow.content";
3300                   to_y: "padding_left_top";
3301                }
3302                rel2 {
3303                   relative: 1.0 0.0;
3304                   to_x: "elm.swallow.content";
3305                   to_y: "padding_right_bottom";
3306                }
3307                align: 0.0 0.5;
3308                color: 0 0 0 0;
3309             }
3310          }
3311          part { name: "padding_icon_text";
3312             type: RECT;
3313             scale: 1;
3314             mouse_events: 0;
3315             description { state: "default" 0.0; //when only icon or no icon is there
3316                align: 0.0 0.0;
3317                rel1 {
3318                   relative: 1.0 0.0;
3319                   to: "icon_rect";
3320                }
3321                rel2.to: "icon_rect";
3322                fixed: 1 0;
3323                min: 0 0;
3324                color: 0 0 0 0;
3325             }
3326             description { state: "icononly" 0.0;
3327                inherit: "default" 0.0;
3328             }
3329             description { state: "visible" 0.0; //when icon is visible
3330                align: 0.0 0.0;
3331                rel1 {
3332                   relative: 1.0 0.0;
3333                   to: "icon_rect";
3334                }
3335                rel2.to: "icon_rect";
3336                fixed: 1 0;
3337                min: BUTTON_SEARCHBAR_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3338                color: 0 0 0 0;
3339             }
3340          }
3341          part { name: "elm.swallow.content";
3342             type: SWALLOW;
3343             scale: 1;
3344             clip_to: "clipper";
3345             description { state: "default" 0.0;
3346                visible: 0;
3347                align: 0.0 0.5;
3348                rel1 {
3349                   relative: 1.0 1.0;
3350                   to: "padding_left_top";
3351                }
3352                rel2 {
3353                   relative: 1.0 0.0;
3354                   to_x: "padding_left_top";
3355                   to_y: "padding_right_bottom";
3356                }
3357                fixed: 1 0;
3358             }
3359             description { state: "visible" 0.0;
3360                fixed: 1 0;
3361                align: 0.0 0.5;
3362                rel1 {
3363                   relative: 1.0 1.0;
3364                   to: "padding_left_top";
3365                }
3366                rel2 {
3367                   relative: 1.0 0.0;
3368                   to_x: "padding_left_top";
3369                   to_y: "padding_right_bottom";
3370                }
3371                aspect: 1.0 1.0;
3372                aspect_preference: VERTICAL;
3373             }
3374             description { state: "icononly" 0.0;
3375                min: BUTTON_SEARCHBAR_ICONONLY_ICON_MIN_INC;
3376                rel1 {
3377                   relative: 1.0 1.0;
3378                   to: "padding_left_top";
3379                }
3380                rel2 {
3381                   relative: 1.0 0.0;
3382                   to_x: "padding_left_top";
3383                   to_y: "padding_right_bottom";
3384                }
3385             }
3386          }
3387          part { name: "elm.text";
3388             type: TEXT;
3389             mouse_events: 0;
3390             scale: 1;
3391             clip_to: "clipper";
3392             description { state: "default" 0.0;
3393                visible: 0;
3394                rel1 {
3395                   relative: 1.0 1.0;
3396                   to_x: "padding_icon_text";
3397                   to_y: "padding_left_top";
3398                }
3399                rel2 {
3400                   relative: 0.0 0.0;
3401                   to: "padding_right_bottom";
3402                }
3403                color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3404                text {
3405                   font: "SLP:style=Medium";
3406                   size: BUTTON_SEARCHBAR_FONT_SIZE_INC;
3407                   min: 0 0;
3408                   text_class: "slp_medium";
3409                }
3410             }
3411             description { state: "visible" 0.0;
3412                inherit: "default" 0.0;
3413                visible: 1;
3414                min: BUTTON_SEARCHBAR_TEXT_MIN_INC;
3415             }
3416             description { state: "clicked" 0.0;
3417                inherit: "default" 0.0;
3418                visible: 1;
3419                min: 0 0;
3420                color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3421             }
3422             description { state: "disabled" 0.0;
3423                inherit: "default" 0.0;
3424                color: 0 0 0 128;
3425             }
3426             description { state: "disabled_visible" 0.0;
3427                inherit: "default" 0.0;
3428                color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3429                visible: 1;
3430                min: BUTTON_SWEEP_TEXT_MIN_INC;
3431             }
3432             description { state: "focused" 0.0;
3433                inherit: "default" 0.0;
3434                visible: 1;
3435                min: 0 0;
3436                color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3437             }
3438          }
3439          part { name: "over2";
3440             type: RECT;
3441             repeat_events: 1;
3442             ignore_flags: ON_HOLD;
3443             description { state: "default" 0.0;
3444                color: 0 0 0 0;
3445             }
3446          }
3447          part { name: "over3";
3448             type: RECT;
3449             repeat_events: 1;
3450             description { state: "default" 0.0;
3451                color: 0 0 0 0;
3452             }
3453          }
3454          part { name: "clipper";
3455             type: RECT;
3456             description { state: "default" 0.0;
3457                color: 255 255 255 255;
3458             }
3459          }
3460          part { name: "disabler";
3461             type: RECT;
3462             description { state: "default" 0.0;
3463                color: 0 0 0 0;
3464                visible: 0;
3465             }
3466             description { state: "disabled" 0.0;
3467                inherit: "default" 0.0;
3468                visible: 1;
3469             }
3470          }
3471       }
3472       programs {
3473          program { name: "button_click";
3474             signal: "mouse,down,1";
3475             source: "over2";
3476             action: SIGNAL_EMIT "elm,action,press" "";
3477             after: "button_click_anim";
3478          }
3479          program { name: "button_click_anim";
3480             action: STATE_SET "clicked" 0.0;
3481             target: "button_image";
3482             after: "text_clicked";
3483          }
3484          program { name: "text_clicked";
3485             script {
3486                new st[31];
3487                new Float:vl;
3488                get_state(PART:"elm.text", st, 30, vl);
3489                if (!strcmp(st, "visible"))
3490                  set_state(PART:"elm.text", "clicked", 0.0);
3491             }
3492          }
3493          program { name: "button_unpress";
3494             action: SIGNAL_EMIT "elm,action,unpress" "";
3495          }
3496          program { name: "button_mouseout_clicked";
3497             signal: "mouse,up,1";
3498             source: "over3";
3499             script {
3500                new st[31];
3501                new Float:vl;
3502                get_state(PART:"elm.swallow.content", st, 30, vl);
3503                if (strcmp(st, "icononly"))
3504                  {
3505                     emit("elm,action,default,text,set", "");
3506                     set_state(PART:"elm.text", "visible", 0.0);
3507                  }
3508                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3509                  set_state(PART:"button_image", "default", 0.0);
3510             }
3511             after: button_unpress;
3512          }
3513          program { name: "touch_snd";
3514             signal: "mouse,clicked,1";
3515             source: "over2";
3516             action: PLAY_SAMPLE "touch_sound" 1.0;
3517             after: button_unclick3;
3518          }
3519          program { name: "button_unclick3";
3520             action: SIGNAL_EMIT "elm,action,click" "";
3521          }
3522          program { name: "text_show";
3523             signal: "elm,state,text,visible";
3524             source: "elm";
3525             script {
3526                new st[31];
3527                new Float:vl;
3528                get_state(PART:"elm.swallow.content", st, 30, vl);
3529                if (!strcmp(st, "icononly"))
3530                  {
3531                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3532                     set_state(PART:"padding_icon_text", "visible", 0.0);
3533                  }
3534                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3535                  set_state(PART:"elm.text", "visible", 0.0);
3536                else
3537                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3538             }
3539          }
3540          program { name: "text_hide";
3541             signal: "elm,state,text,hidden";
3542             source: "elm";
3543             script {
3544                new st[31];
3545                new Float:vl;
3546                get_state(PART:"elm.swallow.content", st, 30, vl);
3547                if (!strcmp(st, "visible"))
3548                  {
3549                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3550                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3551                  }
3552                set_state(PART:"elm.text", "default", 0.0);
3553             }
3554          }
3555          program { name: "icon_show";
3556             signal: "elm,state,icon,visible";
3557             source: "elm";
3558             script {
3559                new st[31];
3560                new Float:vl;
3561                get_state(PART:"elm.text", st, 30, vl);
3562                if (!strcmp(st, "visible"))
3563                  {
3564                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3565                     set_state(PART:"padding_icon_text", "visible", 0.0);
3566                  }
3567                else
3568                  {
3569                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3570                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3571                  }
3572             }
3573          }
3574          program { name: "icon_hide";
3575             signal: "elm,state,icon,hidden";
3576             source: "elm";
3577             action: STATE_SET "default" 0.0;
3578             target: "elm.swallow.content";
3579             target: "padding_icon_text";
3580          }
3581          program { name: "disable";
3582             signal: "elm,state,disabled";
3583             source: "elm";
3584             action: STATE_SET "disabled" 0.0;
3585             target: "button_image";
3586             target: "disabler";
3587             after: "disable_text";
3588          }
3589          program { name: "disable_text";
3590             script {
3591                new st[31];
3592                new Float:vl;
3593                get_state(PART:"elm.text", st, 30, vl);
3594                if (!strcmp(st, "visible"))
3595                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3596                else
3597                  set_state(PART:"elm.text", "disabled", 0.0);
3598                set_int(button_state, BUTTON_STATE_DISABLED);
3599             }
3600          }
3601          program { name: "enable";
3602             signal: "elm,state,enabled";
3603             source: "elm";
3604             action: STATE_SET "default" 0.0;
3605             target: "button_image";
3606             target: "disabler";
3607             after: "enable_text";
3608          }
3609          program { name: "enable_text";
3610             script {
3611                new st[31];
3612                new Float:vl;
3613                get_state(PART:"elm.text", st, 30, vl);
3614                if (!strcmp(st, "disabled_visible"))
3615                  set_state(PART:"elm.text", "visible", 0.0);
3616                else
3617                  set_state(PART:"elm.text", "default", 0.0);
3618                set_int(button_state, BUTTON_STATE_ENABLED);
3619             }
3620          }
3621          program { name: "focused";
3622             //signal: "elm,action,focus";
3623             //source: "elm";
3624             action: STATE_SET "focused" 0.0;
3625             target: "button_image";
3626             target: "elm.text";
3627          }
3628          program { name: "unfocused";
3629             //signal: "elm,action,unfocus";
3630             //source: "elm";
3631             action: STATE_SET "default" 0.0;
3632             target: "button_image";
3633             after: "unfocus_text";
3634          }
3635          program { name: "unfocus_text";
3636             action: STATE_SET "visible" 0.0;
3637             target: "elm.text";
3638          }
3639       }
3640    }
3641
3642 ///////////////////////////////////////////////////////////////////////////////////////
3643    group { name: "elm/button/base/sweep/delete";
3644       images {
3645          image: "00_button_sweep_dim.png" COMP;
3646          image: "00_button_sweep_delete.png" COMP;
3647          image: "00_button_sweep_delete_press.png" COMP;
3648          image: "00_button_sweep_focus.png" COMP;
3649       }
3650       script {
3651          public button_state = BUTTON_STATE_ENABLED;
3652       }
3653       parts {
3654          part { name: "button_image";
3655             scale: 1;
3656             description { state: "default" 0.0;
3657                min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
3658                image {
3659                   normal: "00_button_sweep_delete.png";
3660                   border: BUTTON_SWEEP_BG_BORDER_INC;
3661                   border_scale: 1;
3662                }
3663             }
3664             description { state: "clicked" 0.0;
3665                inherit: "default" 0.0;
3666                image.normal: "00_button_sweep_delete_press.png";
3667             }
3668             description { state: "disabled" 0.0;
3669                inherit: "default" 0.0;
3670                image.normal: "00_button_sweep_dim.png";
3671             }
3672             description { state: "focused" 0.0;
3673                inherit: "default" 0.0;
3674                image.normal: "00_button_sweep_focus.png";
3675             }
3676          }
3677          part { name: "padding_left_top";
3678             type: RECT;
3679             scale: 1;
3680             mouse_events: 0;
3681             description { state: "default" 0.0;
3682                align: 0.0 0.0;
3683                rel2.relative: 0.0 0.0;
3684                min: BUTTON_SWEEP_PADDING_MIN_INC;
3685                fixed: 1 1;
3686                visible: 0;
3687             }
3688          }
3689          part { name: "padding_right_bottom";
3690             type: RECT;
3691             scale: 1;
3692             mouse_events: 0;
3693             description { state: "default" 0.0;
3694                align: 1.0 1.0;
3695                rel1.relative: 1.0 1.0;
3696                min: BUTTON_SWEEP_PADDING_MIN_INC;
3697                fixed: 1 1;
3698                visible: 0;
3699             }
3700          }
3701          part { name: "icon_rect";
3702             type: RECT;
3703             scale: 1;
3704             mouse_events: 0;
3705             description { state: "default" 0.0;
3706                min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
3707                fixed: 1 0;
3708                rel1 {
3709                   relative: 0.0 1.0;
3710                   to_x: "elm.swallow.content";
3711                   to_y: "padding_left_top";
3712                }
3713                rel2 {
3714                   relative: 1.0 0.0;
3715                   to_x: "elm.swallow.content";
3716                   to_y: "padding_right_bottom";
3717                }
3718                align: 0.0 0.5;
3719                color: 0 0 0 0;
3720             }
3721          }
3722          part { name: "padding_icon_text";
3723             type: RECT;
3724             scale: 1;
3725             mouse_events: 0;
3726             description { state: "default" 0.0; //when only icon or no icon is there
3727                align: 0.0 0.0;
3728                rel1 {
3729                   relative: 1.0 0.0;
3730                   to: "icon_rect";
3731                }
3732                rel2.to: "icon_rect";
3733                fixed: 1 0;
3734                min: 0 0;
3735                color: 0 0 0 0;
3736             }
3737             description { state: "icononly" 0.0;
3738                inherit: "default" 0.0;
3739             }
3740             description { state: "visible" 0.0; //when icon is visible
3741                align: 0.0 0.0;
3742                rel1 {
3743                   relative: 1.0 0.0;
3744                   to: "icon_rect";
3745                }
3746                rel2.to: "icon_rect";
3747                fixed: 1 0;
3748                min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3749                color: 0 0 0 0;
3750             }
3751          }
3752          part { name: "elm.swallow.content";
3753             type: SWALLOW;
3754             scale: 1;
3755             clip_to: "clipper";
3756             description { state: "default" 0.0;
3757                visible: 0;
3758                align: 0.0 0.5;
3759                rel1 {
3760                   relative: 1.0 1.0;
3761                   to: "padding_left_top";
3762                }
3763                rel2 {
3764                   relative: 1.0 0.0;
3765                   to_x: "padding_left_top";
3766                   to_y: "padding_right_bottom";
3767                }
3768                fixed: 1 0;
3769             }
3770             description { state: "visible" 0.0;
3771                fixed: 1 0;
3772                align: 0.0 0.5;
3773                rel1 {
3774                   relative: 1.0 1.0;
3775                   to: "padding_left_top";
3776                }
3777                rel2 {
3778                   relative: 1.0 0.0;
3779                   to_x: "padding_left_top";
3780                   to_y: "padding_right_bottom";
3781                }
3782                aspect: 1.0 1.0;
3783                aspect_preference: VERTICAL;
3784             }
3785             description { state: "icononly" 0.0;
3786                min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
3787                rel1 {
3788                   relative: 1.0 1.0;
3789                   to: "padding_left_top";
3790                }
3791                rel2 {
3792                   relative: 1.0 0.0;
3793                   to_x: "padding_left_top";
3794                   to_y: "padding_right_bottom";
3795                }
3796             }
3797          }
3798          part { name: "elm.text";
3799             type: TEXT;
3800             mouse_events: 0;
3801             scale: 1;
3802             clip_to: "clipper";
3803             description { state: "default" 0.0;
3804                rel1 {
3805                   relative: 1.0 1.0;
3806                   to_x: "padding_icon_text";
3807                   to_y: "padding_left_top";
3808                }
3809                rel2 {
3810                   relative: 0.0 0.0;
3811                   to: "padding_right_bottom";
3812                }
3813                color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
3814                text {
3815                   font: "SLP:style=Medium";
3816                   size: BUTTON_SWEEP_FONT_SIZE_INC;
3817                   min: 1 0;
3818                   text: "Delete";
3819                   max: 1 0;
3820                   text_class: "slp_medium";
3821                }
3822             }
3823             description { state: "visible" 0.0;
3824                inherit: "default" 0.0;
3825             }
3826             description { state: "clicked" 0.0;
3827                inherit: "default" 0.0;
3828                color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
3829             }
3830             description { state: "disabled" 0.0;
3831                inherit: "default" 0.0;
3832                color: 0 0 0 128;
3833             }
3834             description { state: "disabled_visible" 0.0;
3835                inherit: "default" 0.0;
3836                color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
3837             }
3838             description { state: "focused" 0.0;
3839                inherit: "default" 0.0;
3840                visible: 1;
3841                min: 0 0;
3842                color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3843             }
3844          }
3845          part { name: "over2";
3846             type: RECT;
3847             repeat_events: 1;
3848             ignore_flags: ON_HOLD;
3849             description { state: "default" 0.0;
3850                color: 0 0 0 0;
3851             }
3852          }
3853          part { name: "over3";
3854             type: RECT;
3855             repeat_events: 1;
3856             description { state: "default" 0.0;
3857                color: 0 0 0 0;
3858             }
3859          }
3860          part { name: "clipper";
3861             type: RECT;
3862             description { state: "default" 0.0;
3863                color: 255 255 255 255;
3864             }
3865          }
3866          part { name: "disabler";
3867             type: RECT;
3868             description { state: "default" 0.0;
3869                color: 0 0 0 0;
3870                visible: 0;
3871             }
3872             description { state: "disabled" 0.0;
3873                inherit: "default" 0.0;
3874                visible: 1;
3875             }
3876          }
3877       }
3878       programs {
3879          program { name: "button_click";
3880             signal: "mouse,down,1";
3881             source: "over2";
3882             action: SIGNAL_EMIT "elm,action,press" "";
3883             after: "button_click_anim";
3884          }
3885          program { name: "button_click_anim";
3886             action: STATE_SET "clicked" 0.0;
3887             target: "button_image";
3888             after: "text_clicked";
3889          }
3890          program { name: "text_clicked";
3891             script {
3892                new st[31];
3893                new Float:vl;
3894                get_state(PART:"elm.text", st, 30, vl);
3895                if (!strcmp(st, "visible"))
3896                  set_state(PART:"elm.text", "clicked", 0.0);
3897             }
3898          }
3899          program { name: "button_unpress";
3900             action: SIGNAL_EMIT "elm,action,unpress" "";
3901          }
3902          program { name: "button_mouseout_clicked";
3903             signal: "mouse,up,1";
3904             source: "over3";
3905             script {
3906                new st[31];
3907                new Float:vl;
3908                get_state(PART:"elm.swallow.content", st, 30, vl);
3909                if (strcmp(st, "icononly"))
3910                  {
3911                     emit("elm,action,default,text,set", "");
3912                     set_state(PART:"elm.text", "visible", 0.0);
3913                  }
3914                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3915                  set_state(PART:"button_image", "default", 0.0);
3916             }
3917             after: button_unpress;
3918          }
3919          program { name: "touch_snd";
3920             signal: "mouse,clicked,1";
3921             source: "over2";
3922             action: PLAY_SAMPLE "touch_sound" 1.0;
3923             after: button_unclick3;
3924          }
3925          program { name: "button_unclick3";
3926             action: SIGNAL_EMIT "elm,action,click" "";
3927          }
3928          program { name: "text_show";
3929             signal: "elm,state,text,visible";
3930             source: "elm";
3931             script {
3932                new st[31];
3933                new Float:vl;
3934                get_state(PART:"elm.swallow.content", st, 30, vl);
3935                if (!strcmp(st, "icononly"))
3936                  {
3937                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3938                     set_state(PART:"padding_icon_text", "visible", 0.0);
3939                  }
3940                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3941                  set_state(PART:"elm.text", "visible", 0.0);
3942                else
3943                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3944             }
3945          }
3946          program { name: "text_hide";
3947             signal: "elm,state,text,hidden";
3948             source: "elm";
3949             script {
3950                new st[31];
3951                new Float:vl;
3952                get_state(PART:"elm.swallow.content", st, 30, vl);
3953                if (!strcmp(st, "visible"))
3954                  {
3955                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3956                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3957                  }
3958                set_state(PART:"elm.text", "default", 0.0);
3959             }
3960          }
3961          program { name: "icon_show";
3962             signal: "elm,state,icon,visible";
3963             source: "elm";
3964             script {
3965                new st[31];
3966                new Float:vl;
3967                get_state(PART:"elm.text", st, 30, vl);
3968                if (!strcmp(st, "visible"))
3969                  {
3970                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3971                     set_state(PART:"padding_icon_text", "visible", 0.0);
3972                  }
3973                else
3974                  {
3975                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3976                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3977                  }
3978             }
3979          }
3980          program { name: "icon_hide";
3981             signal: "elm,state,icon,hidden";
3982             source: "elm";
3983             action: STATE_SET "default" 0.0;
3984             target: "elm.swallow.content";
3985             target: "padding_icon_text";
3986          }
3987          program { name: "disable";
3988             signal: "elm,state,disabled";
3989             source: "elm";
3990             action: STATE_SET "disabled" 0.0;
3991             target: "button_image";
3992             target: "disabler";
3993             after: "disable_text";
3994          }
3995          program { name: "disable_text";
3996             script {
3997                new st[31];
3998                new Float:vl;
3999                get_state(PART:"elm.text", st, 30, vl);
4000                if (!strcmp(st, "visible"))
4001                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4002                else
4003                  set_state(PART:"elm.text", "disabled", 0.0);
4004                set_int(button_state, BUTTON_STATE_DISABLED);
4005             }
4006          }
4007          program { name: "enable";
4008             signal: "elm,state,enabled";
4009             source: "elm";
4010             action: STATE_SET "default" 0.0;
4011             target: "button_image";
4012             target: "disabler";
4013             after: "enable_text";
4014          }
4015          program { name: "enable_text";
4016             script {
4017                new st[31];
4018                new Float:vl;
4019                get_state(PART:"elm.text", st, 30, vl);
4020                if (!strcmp(st, "disabled_visible"))
4021                  set_state(PART:"elm.text", "visible", 0.0);
4022                else
4023                  set_state(PART:"elm.text", "default", 0.0);
4024                set_int(button_state, BUTTON_STATE_ENABLED);
4025             }
4026          }
4027          program { name: "focused";
4028             //signal: "elm,action,focus";
4029             //source: "elm";
4030             action: STATE_SET "focused" 0.0;
4031             target: "button_image";
4032             target: "elm.text";
4033          }
4034          program { name: "unfocused";
4035             //signal: "elm,action,unfocus";
4036             //source: "elm";
4037             action: STATE_SET "default" 0.0;
4038             target: "button_image";
4039             after: "unfocus_text";
4040          }
4041          program { name: "unfocus_text";
4042             action: STATE_SET "visible" 0.0;
4043             target: "elm.text";
4044          }
4045       }
4046    }
4047
4048 ///////////////////////////////////////////////////////////////////////////////////////
4049    group { name: "elm/button/base/popup_button/default";
4050       alias: "elm/button/base/popup_button/menustyle";
4051       alias: "elm/button/base/popup_button/liststyle";
4052       alias: "elm/button/base/popup_button/volumebarstyle";
4053       alias: "elm/button/base/popup_button/customstyle";
4054       alias: "elm/button/base/popup_button/verticalbuttonstyle";
4055       images {
4056          image: "00_button_popup_normal.png" COMP;
4057          image: "00_button_popup_press.png" COMP;
4058          image: "00_button_popup_normal_focus.png" COMP;
4059          image: "00_button_popup_dim.png" COMP;
4060       }
4061       script {
4062          public button_state = BUTTON_STATE_ENABLED;
4063       }
4064       parts {
4065          part { name: "button_image";
4066             scale: 1;
4067             description { state: "default" 0.0;
4068                min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4069                image {
4070                   normal: "00_button_popup_normal.png";
4071                   border: BUTTON_POPUP_BG_BORDER_INC;
4072                   border_scale: 1;
4073                }
4074             }
4075             description { state: "clicked" 0.0;
4076                inherit: "default" 0.0;
4077                image.normal: "00_button_popup_press.png";
4078             }
4079             description { state: "disabled" 0.0;
4080                inherit: "default" 0.0;
4081                image.normal: "00_button_popup_dim.png";
4082             }
4083             description { state: "focused" 0.0;
4084                inherit: "default" 0.0;
4085                image.normal: "00_button_popup_normal_focus.png";
4086             }
4087          }
4088          part { name: "padding_left_top";
4089             type: RECT;
4090             scale: 1;
4091             mouse_events: 0;
4092             description { state: "default" 0.0;
4093                align: 0.0 0.0;
4094                rel2.relative: 0.0 0.0;
4095                min: BUTTON_POPUP_PADDING_MIN_INC;
4096                fixed: 1 1;
4097                visible: 0;
4098             }
4099          }
4100          part { name: "padding_right_bottom";
4101             type: RECT;
4102             scale: 1;
4103             description { state: "default" 0.0;
4104                align: 1.0 0.0;
4105                rel1.relative: 1.0 1.0;
4106                min: BUTTON_POPUP_PADDING_MIN_INC;
4107                fixed: 1 1;
4108                visible: 0;
4109             }
4110          }
4111          part { name: "padding_icon_text";
4112             type: RECT;
4113             scale: 1;
4114             description { state: "default" 0.0; //when only icon or no icon is there
4115                align: 0.0 0.0;
4116                rel1 {
4117                   relative: 1.0 0.0;
4118                   to: "elm.swallow.content";
4119                }
4120                rel2.to: "elm.swallow.content";
4121                fixed: 1 0;
4122                min: 0 0;
4123                visible: 0;
4124             }
4125             description { state: "icononly" 0.0;
4126                inherit: "default" 0.0;
4127             }
4128             description { state: "visible" 0.0; //when icon is visible
4129                inherit: "default" 0.0;
4130                min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4131             }
4132          }
4133          part { name: "elm.swallow.content";
4134             type: SWALLOW;
4135             scale: 1;
4136             clip_to: "clipper";
4137             description { state: "default" 0.0;
4138                visible: 0;
4139                align: 0.0 0.5;
4140                rel1 {
4141                   relative: 1.0 1.0;
4142                   to: "padding_left_top";
4143                }
4144                rel2 {
4145                   relative: 1.0 0.0;
4146                   to_x: "padding_left_top";
4147                   to_y: "padding_right_bottom";
4148                }
4149                fixed: 1 0;
4150             }
4151             description { state: "visible" 0.0;
4152                inherit: "default" 0.0;
4153                fixed: 1 0;
4154                visible: 1;
4155                aspect: 1.0 1.0;
4156                aspect_preference: VERTICAL;
4157             }
4158             description { state: "icononly" 0.0;
4159                min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4160                rel1 {
4161                   relative: 1.0 1.0;
4162                   to: "padding_left_top";
4163                }
4164                rel2 {
4165                   relative: 1.0 0.0;
4166                   to_x: "padding_left_top";
4167                   to_y: "padding_right_bottom";
4168                }
4169             }
4170          }
4171          part { name: "elm.text";
4172             type: TEXT;
4173             mouse_events: 0;
4174             scale: 1;
4175             clip_to: "clipper";
4176             description { state: "default" 0.0;
4177                visible: 0;
4178                rel1 {
4179                   relative: 1.0 1.0;
4180                   to_x: "padding_icon_text";
4181                   to_y: "padding_left_top";
4182                }
4183                rel2 {
4184                   relative: 0.0 0.0;
4185                   to: "padding_right_bottom";
4186                }
4187                color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4188                text {
4189                   font: "SLP:style=Medium";
4190                   size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
4191                   min: 0 0;
4192                   text_class: "slp_medium";
4193                }
4194             }
4195             description { state: "visible" 0.0;
4196                inherit: "default" 0.0;
4197                visible: 1;
4198                min: BUTTON_POPUP_TEXT_MIN_INC;
4199             }
4200             description { state: "clicked" 0.0;
4201                inherit: "default" 0.0;
4202                visible: 1;
4203                min: 0 0;
4204                color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4205             }
4206             description { state: "disabled" 0.0;
4207                inherit: "default" 0.0;
4208                color: 0 0 0 128;
4209             }
4210             description { state: "disabled_visible" 0.0;
4211                inherit: "default" 0.0;
4212                color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4213                visible: 1;
4214                min: BUTTON_POPUP_TEXT_MIN_INC;
4215             }
4216             description { state: "focused" 0.0;
4217                inherit: "default" 0.0;
4218                visible: 1;
4219                min: 0 0;
4220                color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4221             }
4222          }
4223          part { name: "over2";
4224             type: RECT;
4225             repeat_events: 1;
4226             ignore_flags: ON_HOLD;
4227             description { state: "default" 0.0;
4228                color: 0 0 0 0;
4229             }
4230          }
4231          part { name: "over3";
4232             type: RECT;
4233             repeat_events: 1;
4234             description { state: "default" 0.0;
4235                color: 0 0 0 0;
4236             }
4237          }
4238          part { name: "clipper";
4239             type: RECT;
4240             description { state: "default" 0.0;
4241                color: 255 255 255 255;
4242             }
4243          }
4244          part { name: "disabler";
4245             type: RECT;
4246             description { state: "default" 0.0;
4247                color: 0 0 0 0;
4248                visible: 0;
4249             }
4250             description { state: "disabled" 0.0;
4251                inherit: "default" 0.0;
4252                visible: 1;
4253             }
4254          }
4255       }
4256       programs {
4257          program { name: "button_click";
4258             signal: "mouse,down,1";
4259             source: "over2";
4260             action: SIGNAL_EMIT "elm,action,press" "";
4261             after: "button_click_anim";
4262          }
4263          program { name: "button_click_anim";
4264             action: STATE_SET "clicked" 0.0;
4265             target: "button_image";
4266             after: "text_clicked";
4267          }
4268          program { name: "text_clicked";
4269             script {
4270                new st[31];
4271                new Float:vl;
4272                get_state(PART:"elm.text", st, 30, vl);
4273                if (!strcmp(st, "visible"))
4274                  set_state(PART:"elm.text", "clicked", 0.0);
4275             }
4276          }
4277          program { name: "button_unpress";
4278             action: SIGNAL_EMIT "elm,action,unpress" "";
4279          }
4280          program { name: "button_mouseout_clicked";
4281             signal: "mouse,up,1";
4282             source: "over3";
4283             script {
4284                new st[31];
4285                new Float:vl;
4286                get_state(PART:"elm.swallow.content", st, 30, vl);
4287                if (strcmp(st, "icononly"))
4288                  {
4289                     emit("elm,action,default,text,set", "");
4290                     set_state(PART:"elm.text", "visible", 0.0);
4291                  }
4292                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4293                  set_state(PART:"button_image", "default", 0.0);
4294             }
4295             after: button_unpress;
4296          }
4297          program { name: "touch_snd";
4298             signal: "mouse,clicked,1";
4299             source: "over2";
4300             action: PLAY_SAMPLE "touch_sound" 1.0;
4301             after: button_unclick3;
4302          }
4303          program { name: "button_unclick3";
4304             action: SIGNAL_EMIT "elm,action,click" "";
4305          }
4306          program { name: "text_show";
4307             signal: "elm,state,text,visible";
4308             source: "elm";
4309             script {
4310                new st[31];
4311                new Float:vl;
4312                get_state(PART:"elm.swallow.content", st, 30, vl);
4313                if (!strcmp(st, "icononly"))
4314                  {
4315                     set_state(PART:"elm.swallow.content", "visible", 0.0);
4316                     set_state(PART:"padding_icon_text", "visible", 0.0);
4317                  }
4318                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4319                  set_state(PART:"elm.text", "visible", 0.0);
4320                else
4321                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4322             }
4323          }
4324          program { name: "text_hide";
4325             signal: "elm,state,text,hidden";
4326             source: "elm";
4327             script {
4328                new st[31];
4329                new Float:vl;
4330                get_state(PART:"elm.swallow.content", st, 30, vl);
4331                if (!strcmp(st, "visible"))
4332                  {
4333                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
4334                     set_state(PART:"padding_icon_text", "icononly", 0.0);
4335                  }
4336                set_state(PART:"elm.text", "default", 0.0);
4337             }
4338          }
4339          program { name: "icon_show";
4340             signal: "elm,state,icon,visible";
4341             source: "elm";
4342             script {
4343                new st[31];
4344                new Float:vl;
4345                get_state(PART:"elm.text", st, 30, vl);
4346                if (!strcmp(st, "visible"))
4347                  {
4348                     set_state(PART:"elm.swallow.content", "visible", 0.0);
4349                     set_state(PART:"padding_icon_text", "visible", 0.0);
4350                  }
4351                else
4352                  {
4353                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
4354                     set_state(PART:"padding_icon_text", "icononly", 0.0);
4355                  }
4356             }
4357          }
4358          program { name: "icon_hide";
4359             signal: "elm,state,icon,hidden";
4360             source: "elm";
4361             action: STATE_SET "default" 0.0;
4362             target: "elm.swallow.content";
4363             target: "padding_icon_text";
4364          }
4365          program { name: "disable";
4366             signal: "elm,state,disabled";
4367             source: "elm";
4368             action: STATE_SET "disabled" 0.0;
4369             target: "button_image";
4370             target: "disabler";
4371             after: "disable_text";
4372          }
4373          program { name: "disable_text";
4374             script {
4375                new st[31];
4376                new Float:vl;
4377                get_state(PART:"elm.text", st, 30, vl);
4378                if (!strcmp(st, "visible"))
4379                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4380                else
4381                  set_state(PART:"elm.text", "disabled", 0.0);
4382                set_int(button_state, BUTTON_STATE_DISABLED);
4383             }
4384          }
4385          program { name: "enable";
4386             signal: "elm,state,enabled";
4387             source: "elm";
4388             action: STATE_SET "default" 0.0;
4389             target: "button_image";
4390             target: "disabler";
4391             after: "enable_text";
4392          }
4393          program { name: "enable_text";
4394             script {
4395                new st[31];
4396                new Float:vl;
4397                get_state(PART:"elm.text", st, 30, vl);
4398                if (!strcmp(st, "disabled_visible"))
4399                  set_state(PART:"elm.text", "visible", 0.0);
4400                else
4401                  set_state(PART:"elm.text", "default", 0.0);
4402                set_int(button_state, BUTTON_STATE_ENABLED);
4403             }
4404          }
4405          program { name: "focused";
4406             //signal: "elm,action,focus";
4407             //source: "elm";
4408             action: STATE_SET "focused" 0.0;
4409             target: "button_image";
4410             target: "elm.text";
4411          }
4412          program { name: "unfocused";
4413             //signal: "elm,action,unfocus";
4414             //source: "elm";
4415             action: STATE_SET "default" 0.0;
4416             target: "button_image";
4417             after: "unfocus_text";
4418          }
4419          program { name: "unfocus_text";
4420             action: STATE_SET "visible" 0.0;
4421             target: "elm.text";
4422          }
4423       }
4424    }
4425 ///////////////////////////////////////////////////////////////////////////////////////
4426    group { name: "elm/button/base/popup_button/default/multiline";
4427       images {
4428          image: "00_button_popup_normal.png" COMP;
4429          image: "00_button_popup_press.png" COMP;
4430          image: "00_button_popup_normal_focus.png" COMP;
4431          image: "00_button_popup_dim.png" COMP;
4432       }
4433       styles{
4434          style { name: "btn_popup_multiline_style";
4435             base: "font=SLP:style=Roman font_size="BUTTON_POPUP_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_roman";
4436             tag: "br" "\n";
4437             tag: "ps" "ps";
4438             tag: "tab" "\t";
4439          }
4440       }
4441       script {
4442          public button_state = BUTTON_STATE_ENABLED;
4443       }
4444       parts {
4445          part { name: "button_image";
4446             scale: 1;
4447             description { state: "default" 0.0;
4448                min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
4449                image {
4450                   normal: "00_button_popup_normal.png";
4451                   border: BUTTON_POPUP_BG_BORDER_INC;
4452                   border_scale: 1;
4453                }
4454             }
4455             description { state: "clicked" 0.0;
4456                inherit: "default" 0.0;
4457                image.normal: "00_button_popup_press.png";
4458             }
4459             description { state: "disabled" 0.0;
4460                inherit: "default" 0.0;
4461                image.normal: "00_button_popup_dim.png";
4462             }
4463             description { state: "focused" 0.0;
4464                inherit: "default" 0.0;
4465                image.normal: "00_button_popup_normal_focus.png";
4466             }
4467          }
4468          part { name: "padding_left_top";
4469             type: RECT;
4470             scale: 1;
4471             mouse_events: 0;
4472             description { state: "default" 0.0;
4473                align: 0.0 0.0;
4474                rel2.relative: 0.0 0.0;
4475                min: BUTTON_POPUP_PADDING_MIN_INC;
4476                fixed: 1 1;
4477                visible: 0;
4478             }
4479          }
4480          part { name: "padding_right_bottom";
4481             type: RECT;
4482             scale: 1;
4483             description { state: "default" 0.0;
4484                align: 1.0 0.0;
4485                rel1.relative: 1.0 1.0;
4486                min: BUTTON_POPUP_PADDING_MIN_INC;
4487                fixed: 1 1;
4488                visible: 0;
4489             }
4490          }
4491          part { name: "padding_icon_text";
4492             type: RECT;
4493             scale: 1;
4494             description { state: "default" 0.0; //when only icon or no icon is there
4495                align: 0.0 0.0;
4496                rel1 {
4497                   relative: 1.0 0.0;
4498                   to: "elm.swallow.content";
4499                }
4500                rel2.to: "elm.swallow.content";
4501                fixed: 1 0;
4502                min: 0 0;
4503                visible: 0;
4504             }
4505             description { state: "icononly" 0.0;
4506                inherit: "default" 0.0;
4507             }
4508             description { state: "visible" 0.0; //when icon is visible
4509                inherit: "default" 0.0;
4510                min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
4511             }
4512          }
4513          part { name: "elm.swallow.content";
4514             type: SWALLOW;
4515             scale: 1;
4516             clip_to: "clipper";
4517             description { state: "default" 0.0;
4518                visible: 0;
4519                align: 0.0 0.5;
4520                rel1 {
4521                   relative: 1.0 1.0;
4522                   to: "padding_left_top";
4523                }
4524                rel2 {
4525                   relative: 1.0 0.0;
4526                   to_x: "padding_left_top";
4527                   to_y: "padding_right_bottom";
4528                }
4529                fixed: 1 0;
4530             }
4531             description { state: "visible" 0.0;
4532                inherit: "default" 0.0;
4533                fixed: 1 0;
4534                visible: 1;
4535                aspect: 1.0 1.0;
4536                aspect_preference: VERTICAL;
4537             }
4538             description { state: "icononly" 0.0;
4539                min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
4540                rel1 {
4541                   relative: 1.0 1.0;
4542                   to: "padding_left_top";
4543                }
4544                rel2 {
4545                   relative: 1.0 0.0;
4546                   to_x: "padding_left_top";
4547                   to_y: "padding_right_bottom";
4548                }
4549             }
4550          }
4551          part { name: "elm.text";
4552             type: TEXTBLOCK;
4553             mouse_events: 0;
4554             scale: 1;
4555             clip_to: "clipper";
4556             description { state: "default" 0.0;
4557                visible: 0;
4558                rel1 {
4559                   relative: 1.0 1.0;
4560                   to_x: "padding_icon_text";
4561                   to_y: "padding_left_top";
4562                }
4563                rel2 {
4564                   relative: 0.0 0.0;
4565                   to: "padding_right_bottom";
4566                }
4567                color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
4568                text {
4569                   style: "btn_popup_multiline_style";
4570                   min: 0 0;
4571                   max: 0 1;
4572                }
4573             }
4574             description { state: "visible" 0.0;
4575                inherit: "default" 0.0;
4576                visible: 1;
4577                min: BUTTON_POPUP_TEXT_MIN_INC;
4578             }
4579             description { state: "clicked" 0.0;
4580                inherit: "default" 0.0;
4581                visible: 1;
4582                min: 0 0;
4583                color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
4584             }
4585             description { state: "disabled" 0.0;
4586                inherit: "default" 0.0;
4587                color: 0 0 0 128;
4588             }
4589             description { state: "disabled_visible" 0.0;
4590                inherit: "default" 0.0;
4591                color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
4592                visible: 1;
4593                min: BUTTON_POPUP_TEXT_MIN_INC;
4594             }
4595             description { state: "focused" 0.0;
4596                inherit: "default" 0.0;
4597                visible: 1;
4598                min: 0 0;
4599                color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
4600             }
4601          }
4602          part { name: "over2";
4603             type: RECT;
4604             repeat_events: 1;
4605             ignore_flags: ON_HOLD;
4606             description { state: "default" 0.0;
4607                color: 0 0 0 0;
4608             }
4609          }
4610          part { name: "over3";
4611             type: RECT;
4612             repeat_events: 1;
4613             description { state: "default" 0.0;
4614                color: 0 0 0 0;
4615             }
4616          }
4617          part { name: "clipper";
4618             type: RECT;
4619             description { state: "default" 0.0;
4620                color: 255 255 255 255;
4621             }
4622          }
4623          part { name: "disabler";
4624             type: RECT;
4625             description { state: "default" 0.0;
4626                color: 0 0 0 0;
4627                visible: 0;
4628             }
4629             description { state: "disabled" 0.0;
4630                inherit: "default" 0.0;
4631                visible: 1;
4632             }
4633          }
4634       }
4635       programs {
4636          program { name: "button_click";
4637             signal: "mouse,down,1";
4638             source: "over2";
4639             action: SIGNAL_EMIT "elm,action,press" "";
4640             after: "button_click_anim";
4641          }
4642          program { name: "button_click_anim";
4643             action: STATE_SET "clicked" 0.0;
4644             target: "button_image";
4645             after: "text_clicked";
4646          }
4647          program { name: "text_clicked";
4648             script {
4649                new st[31];
4650                new Float:vl;
4651                get_state(PART:"elm.text", st, 30, vl);
4652                if (!strcmp(st, "visible"))
4653                  set_state(PART:"elm.text", "clicked", 0.0);
4654             }
4655          }
4656          program { name: "button_unpress";
4657             action: SIGNAL_EMIT "elm,action,unpress" "";
4658          }
4659          program { name: "button_mouseout_clicked";
4660             signal: "mouse,up,1";
4661             source: "over3";
4662             script {
4663                new st[31];
4664                new Float:vl;
4665                get_state(PART:"elm.swallow.content", st, 30, vl);
4666                if (strcmp(st, "icononly"))
4667                  {
4668                     emit("elm,action,default,text,set", "");
4669                     set_state(PART:"elm.text", "visible", 0.0);
4670                  }
4671                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4672                  set_state(PART:"button_image", "default", 0.0);
4673             }
4674             after: button_unpress;
4675          }
4676          program { name: "touch_snd";
4677             signal: "mouse,clicked,1";
4678             source: "over2";
4679             action: PLAY_SAMPLE "touch_sound" 1.0;
4680             after: button_unclick3;
4681          }
4682          program { name: "button_unclick3";
4683             action: SIGNAL_EMIT "elm,action,click" "";
4684          }
4685          program { name: "text_show";
4686             signal: "elm,state,text,visible";
4687             source: "elm";
4688             script {
4689                new st[31];
4690                new Float:vl;
4691                get_state(PART:"elm.swallow.content", st, 30, vl);
4692                if (!strcmp(st, "icononly"))
4693                  {
4694                     set_state(PART:"elm.swallow.content", "visible", 0.0);
4695                     set_state(PART:"padding_icon_text", "visible", 0.0);
4696                  }
4697                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4698                  set_state(PART:"elm.text", "visible", 0.0);
4699                else
4700                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4701             }
4702          }
4703          program { name: "text_hide";
4704             signal: "elm,state,text,hidden";
4705             source: "elm";
4706             script {
4707                new st[31];
4708                new Float:vl;
4709                get_state(PART:"elm.swallow.content", st, 30, vl);
4710                if (!strcmp(st, "visible"))
4711                  {
4712                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
4713                     set_state(PART:"padding_icon_text", "icononly", 0.0);
4714                  }
4715                set_state(PART:"elm.text", "default", 0.0);
4716             }
4717          }
4718          program { name: "icon_show";
4719             signal: "elm,state,icon,visible";
4720             source: "elm";
4721             script {
4722                new st[31];
4723                new Float:vl;
4724                get_state(PART:"elm.text", st, 30, vl);
4725                if (!strcmp(st, "visible"))
4726                  {
4727                     set_state(PART:"elm.swallow.content", "visible", 0.0);
4728                     set_state(PART:"padding_icon_text", "visible", 0.0);
4729                  }
4730                else
4731                  {
4732                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
4733                     set_state(PART:"padding_icon_text", "icononly", 0.0);
4734                  }
4735             }
4736          }
4737          program { name: "icon_hide";
4738             signal: "elm,state,icon,hidden";
4739             source: "elm";
4740             action: STATE_SET "default" 0.0;
4741             target: "elm.swallow.content";
4742             target: "padding_icon_text";
4743          }
4744          program { name: "disable";
4745             signal: "elm,state,disabled";
4746             source: "elm";
4747             action: STATE_SET "disabled" 0.0;
4748             target: "button_image";
4749             target: "disabler";
4750             after: "disable_text";
4751          }
4752          program { name: "disable_text";
4753             script {
4754                new st[31];
4755                new Float:vl;
4756                get_state(PART:"elm.text", st, 30, vl);
4757                if (!strcmp(st, "visible"))
4758                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4759                else
4760                  set_state(PART:"elm.text", "disabled", 0.0);
4761                set_int(button_state, BUTTON_STATE_DISABLED);
4762             }
4763          }
4764          program { name: "enable";
4765             signal: "elm,state,enabled";
4766             source: "elm";
4767             action: STATE_SET "default" 0.0;
4768             target: "button_image";
4769             target: "disabler";
4770             after: "enable_text";
4771          }
4772          program { name: "enable_text";
4773             script {
4774                new st[31];
4775                new Float:vl;
4776                get_state(PART:"elm.text", st, 30, vl);
4777                if (!strcmp(st, "disabled_visible"))
4778                  set_state(PART:"elm.text", "visible", 0.0);
4779                else
4780                  set_state(PART:"elm.text", "default", 0.0);
4781                set_int(button_state, BUTTON_STATE_ENABLED);
4782             }
4783          }
4784          program { name: "focused";
4785             //signal: "elm,action,focus";
4786             //source: "elm";
4787             action: STATE_SET "focused" 0.0;
4788             target: "button_image";
4789             target: "elm.text";
4790          }
4791          program { name: "unfocused";
4792             //signal: "elm,action,unfocus";
4793             //source: "elm";
4794             action: STATE_SET "default" 0.0;
4795             target: "button_image";
4796             after: "unfocus_text";
4797          }
4798          program { name: "unfocus_text";
4799             action: STATE_SET "visible" 0.0;
4800             target: "elm.text";
4801          }
4802       }
4803    }
4804
4805 ///////////////////////////////////////////////////////////////////////////////////////
4806 #define BUTTON_CIRCLE_STYLES(style_name, circle_normal, circle_press, image_normal, image_press, min_width, min_height) \
4807    group { name: "elm/button/base/"style_name; \
4808       images { \
4809          image: circle_normal COMP; \
4810          image: circle_press COMP; \
4811          image: image_normal COMP; \
4812          image: image_press COMP; \
4813       } \
4814       parts { \
4815          part { name: "button_image"; \
4816             scale: 1; \
4817             description { state: "default" 0.0; \
4818                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4819                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
4820                image.normal: circle_normal; \
4821                color: 255 255 255 255; \
4822             } \
4823             description { \
4824                state: "clicked" 0.0; \
4825                inherit: "default" 0.0; \
4826                image.normal: circle_press; \
4827             } \
4828             description { \
4829                state: "disabled" 0.0; \
4830                inherit: "default" 0.0; \
4831                color: 255 255 255 128; \
4832             } \
4833          } \
4834          part { name: "button_center_part"; \
4835             scale: 1; \
4836             description { state: "default" 0.0; \
4837                min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4838                max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
4839                image.normal: image_normal; \
4840                color: 255 255 255 255; \
4841             } \
4842             description { \
4843                state: "clicked" 0.0; \
4844                inherit: "default" 0.0; \
4845                image.normal: image_press; \
4846             } \
4847             description { \
4848                state: "disabled" 0.0; \
4849                inherit: "default" 0.0; \
4850                color: 255 255 255 128; \
4851             } \
4852          } \
4853          part { name: "over1"; \
4854             type: RECT; \
4855             ignore_flags: ON_HOLD; \
4856             description { state: "default" 0.0; \
4857                color: 0 0 0 0; \
4858                min: min_width min_height; \
4859             } \
4860          } \
4861          part { name: "over2"; \
4862             repeat_events: 1; \
4863             description { state: "default" 0.0; \
4864                color: 0 0 0 0; \
4865             } \
4866          } \
4867          part { name: "disabler"; \
4868             type: RECT; \
4869             description { state: "default" 0.0; \
4870                color: 0 0 0 0; \
4871                visible: 0; \
4872             } \
4873             description { state: "disabled" 0.0; \
4874                inherit: "default" 0.0; \
4875                visible: 1; \
4876             } \
4877          } \
4878       } \
4879       programs { \
4880          program { name: "button_click"; \
4881             signal: "mouse,down,1"; \
4882             source: "over1"; \
4883             action: SIGNAL_EMIT "elm,action,press" ""; \
4884             after: "button_click_anim"; \
4885          } \
4886          program { name: "button_click_anim"; \
4887             action: STATE_SET "clicked" 0.0; \
4888             target: "button_image"; \
4889             target: "button_center_part"; \
4890          } \
4891          program { name: "button_unclick"; \
4892             signal: "mouse,up,1"; \
4893             source: "over2"; \
4894             action: SIGNAL_EMIT "elm,action,unpress" ""; \
4895             after: "button_unclick_anim"; \
4896          } \
4897          program { name: "button_unclick_anim"; \
4898             action: STATE_SET "default" 0.0; \
4899             target: "button_image"; \
4900             target: "button_center_part"; \
4901          } \
4902          program { name: "touch_snd"; \
4903             signal: "mouse,clicked,1"; \
4904             source: "over1"; \
4905             action: PLAY_SAMPLE "touch_sound" 1.0; \
4906             after: button_unclick3; \
4907          } \
4908          program { name: "button_unclick3"; \
4909             action: SIGNAL_EMIT "elm,action,click" ""; \
4910          } \
4911          program { name: "disable"; \
4912             signal: "elm,state,disabled"; \
4913             source: "elm"; \
4914             action: STATE_SET "disabled" 0.0; \
4915             target: "disabler"; \
4916             target: "button_image"; \
4917             target: "button_center_part"; \
4918          } \
4919          program { name: "enable"; \
4920             signal: "elm,state,enabled"; \
4921             source: "elm"; \
4922             action: STATE_SET "default" 0.0; \
4923             target: "disabler"; \
4924             target: "button_image"; \
4925             target: "button_center_part"; \
4926          } \
4927       } \
4928    }
4929
4930 ///////////////////////////////////////////////////////////////////////////////////////
4931    BUTTON_CIRCLE_STYLES("reveal", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_reveal.png", "00_button_reveal_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4932
4933 ///////////////////////////////////////////////////////////////////////////////////////
4934    BUTTON_CIRCLE_STYLES("reveal/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_reveal.png", "00_button_reveal_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4935
4936 ///////////////////////////////////////////////////////////////////////////////////////
4937    BUTTON_CIRCLE_STYLES("expand/closed", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4938
4939 ///////////////////////////////////////////////////////////////////////////////////////
4940    BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4941
4942 ///////////////////////////////////////////////////////////////////////////////////////
4943    BUTTON_CIRCLE_STYLES("expand/opened", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4944
4945 ///////////////////////////////////////////////////////////////////////////////////////
4946    BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4947
4948 ///////////////////////////////////////////////////////////////////////////////////////
4949    BUTTON_CIRCLE_STYLES("info", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4950
4951 ///////////////////////////////////////////////////////////////////////////////////////
4952    BUTTON_CIRCLE_STYLES("info/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4953
4954 ///////////////////////////////////////////////////////////////////////////////////////
4955    BUTTON_CIRCLE_STYLES("rename", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4956
4957 ///////////////////////////////////////////////////////////////////////////////////////
4958    BUTTON_CIRCLE_STYLES("rename/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4959
4960 ///////////////////////////////////////////////////////////////////////////////////////
4961    BUTTON_CIRCLE_STYLES("call", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4962
4963 ///////////////////////////////////////////////////////////////////////////////////////
4964    BUTTON_CIRCLE_STYLES("call/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4965
4966 ///////////////////////////////////////////////////////////////////////////////////////
4967    BUTTON_CIRCLE_STYLES("warning", "00_btn_circle_bg_normal_01.png", "00_btn_circle_bg_press_01.png", "00_button_warning.png", "00_button_warning_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4968
4969 ///////////////////////////////////////////////////////////////////////////////////////
4970    BUTTON_CIRCLE_STYLES("warning/extended", "00_btn_circle_bg_normal_01.png", "00_btn_circle_bg_press_01.png", "00_button_warning.png", "00_button_warning_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4971
4972 ///////////////////////////////////////////////////////////////////////////////////////
4973    BUTTON_CIRCLE_STYLES("plus", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4974
4975 ///////////////////////////////////////////////////////////////////////////////////////
4976    BUTTON_CIRCLE_STYLES("plus/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_plus.png", "00_button_plus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4977
4978 ///////////////////////////////////////////////////////////////////////////////////////
4979    BUTTON_CIRCLE_STYLES("minus", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_minus.png", "00_button_minus_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4980
4981 ///////////////////////////////////////////////////////////////////////////////////////
4982    BUTTON_CIRCLE_STYLES("minus/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_minus.png", "00_button_minus_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4983
4984 ///////////////////////////////////////////////////////////////////////////////////////
4985    BUTTON_CIRCLE_STYLES("cancel", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_cancel.png", "00_button_cancel_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4986
4987 ///////////////////////////////////////////////////////////////////////////////////////
4988    BUTTON_CIRCLE_STYLES("cancel/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_cancel.png", "00_button_cancel_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4989
4990 ///////////////////////////////////////////////////////////////////////////////////////
4991    BUTTON_CIRCLE_STYLES("send", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_send.png", "00_button_send_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
4992
4993 ///////////////////////////////////////////////////////////////////////////////////////
4994    BUTTON_CIRCLE_STYLES("send/extended", "00_btn_circle_bg_normal.png", "00_btn_circle_bg_press.png", "00_button_send.png", "00_button_send_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
4995 ///////////////////////////////////////////////////////////////////////////////////////
4996
4997    group { name: "elm/button/base/circle/empty";
4998       images {
4999          image: "00_btn_circle_bg_normal.png" COMP;
5000          image: "00_btn_circle_bg_press.png" COMP;
5001       }
5002       parts {
5003          part { name: "button_image";
5004             scale: 1;
5005             description { state: "default" 0.0;
5006                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
5007                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
5008                fixed: 1 1;
5009                image.normal: "00_btn_circle_bg_normal.png";
5010                color: 255 255 255 255;
5011             }
5012             description { state: "clicked" 0.0;
5013                inherit: "default" 0.0;
5014                image.normal: "00_btn_circle_bg_press.png";
5015             }
5016             description { state: "disabled" 0.0;
5017                inherit: "default" 0.0;
5018                color: 255 255 255 128;
5019             }
5020          }
5021          part { name: "elm.swallow.content";
5022             type: SWALLOW;
5023             scale: 1;
5024             description { state: "default" 0.0;
5025                min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5026                max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
5027                fixed: 1 1;
5028                color: 255 255 255 255;
5029             }
5030             description {
5031                state: "disabled" 0.0;
5032                inherit: "default" 0.0;
5033                color: 255 255 255 128;
5034             }
5035          }
5036          part { name: "over1";
5037             type: RECT;
5038             ignore_flags: ON_HOLD;
5039             description { state: "default" 0.0;
5040                color: 0 0 0 0;
5041             }
5042          }
5043          part { name: "over2";
5044             repeat_events: 1;
5045             description { state: "default" 0.0;
5046                color: 0 0 0 0;
5047             }
5048          }
5049          part { name: "disabler";
5050             type: RECT;
5051             description { state: "default" 0.0;
5052                color: 0 0 0 0;
5053                visible: 0;
5054             }
5055             description { state: "disabled" 0.0;
5056                inherit: "default" 0.0;
5057                visible: 1;
5058             }
5059          }
5060       }
5061       programs {
5062          program { name: "button_click";
5063             signal: "mouse,down,1";
5064             source: "over1";
5065             action: SIGNAL_EMIT "elm,action,press" "";
5066             after: "button_click_anim";
5067          }
5068          program { name: "button_click_anim";
5069             action: STATE_SET "clicked" 0.0;
5070             target: "button_image";
5071          }
5072          program { name: "touch_snd";
5073             signal: "mouse,clicked,1";
5074             source: "over1";
5075             action: PLAY_SAMPLE "touch_sound" 1.0;
5076             after: button_unclick2;
5077          }
5078          program { name: "button_unclick2";
5079             action: SIGNAL_EMIT "elm,action,click" "";
5080          }
5081          program { name: "button_unclick";
5082             signal: "mouse,up,1";
5083             source: "over2";
5084             action: SIGNAL_EMIT "elm,action,unpress" "";
5085             after: "button_unclick_anim";
5086          }
5087          program { name: "button_unclick_anim";
5088             action: STATE_SET "default" 0.0;
5089             target: "button_image";
5090          }
5091          program { name: "disable";
5092             signal: "elm,state,disabled";
5093             source: "elm";
5094             action: STATE_SET "disabled" 0.0;
5095             target: "disabler";
5096             target: "button_image";
5097          }
5098          program { name: "enable";
5099             signal: "elm,state,enabled";
5100             source: "elm";
5101             action: STATE_SET "default" 0.0;
5102             target: "disabler";
5103             target: "button_image";
5104          }
5105          program { name: "icon_show";
5106             signal: "elm,state,icon,visible";
5107             source: "elm";
5108             action: STATE_SET "visible" 0.0;
5109             target: "elm.swallow.content";
5110          }
5111          program { name: "icon_hide";
5112             signal: "elm,state,icon,hidden";
5113             source: "elm";
5114             action: STATE_SET "default" 0.0;
5115             target: "elm.swallow.content";
5116          }
5117       }
5118    }
5119
5120 ///////////////////////////////////////////////////////////////////////////////////////
5121 #define BUTTON_EDIT_STYLES(style_name, edit_normal, edit_press, image_normal, image_press, min_width, min_height) \
5122    group { name: "elm/button/base/contacts/"style_name; \
5123    alias: "elm/button/base/"style_name; \
5124       images { \
5125          image: image_normal COMP; \
5126          image: image_press COMP; \
5127          image: edit_normal COMP; \
5128          image: edit_press COMP; \
5129          image: "00_button_edit_dim.png" COMP; \
5130          image: "00_button_edit_focus.png" COMP; \
5131       } \
5132       parts { \
5133          part { name: "button_image"; \
5134             scale: 1; \
5135             description { state: "default" 0.0; \
5136                min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5137                max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
5138                image { \
5139                   normal: edit_normal; \
5140                   border: BUTTON_EDIT_STYLE_BORDER_INC; \
5141                   border_scale: 1; \
5142                } \
5143             } \
5144             description { \
5145                state: "clicked" 0.0; \
5146                inherit: "default" 0.0; \
5147                image.normal: edit_press; \
5148             } \
5149             description { \
5150                state: "disabled" 0.0; \
5151                inherit: "default" 0.0; \
5152                image.normal: "00_button_edit_dim.png"; \
5153             } \
5154             description { \
5155                state: "focused" 0.0; \
5156                inherit: "default" 0.0; \
5157                image.normal: "00_button_edit_focus.png"; \
5158             } \
5159          } \
5160          part { name: "button_center_part"; \
5161             mouse_events: 0; \
5162             scale: 1; \
5163             description { state: "default" 0.0; \
5164                min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5165                max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
5166                image { \
5167                   normal: image_normal; \
5168                   border: BUTTON_EDIT_STYLE_BORDER_INC; \
5169                   border_scale: 1; \
5170                } \
5171             } \
5172             description { \
5173                state: "clicked" 0.0; \
5174                inherit: "default" 0.0; \
5175                image.normal: image_press; \
5176             } \
5177          } \
5178          part { name: "over1"; \
5179             type: RECT; \
5180             repeat_events: 1; \
5181             ignore_flags: ON_HOLD; \
5182             description { state: "default" 0.0; \
5183                color: 0 0 0 0; \
5184                min: min_width min_height; \
5185             } \
5186          } \
5187          part { name: "over2"; \
5188             repeat_events: 1; \
5189             description { state: "default" 0.0; \
5190                color: 0 0 0 0; \
5191             } \
5192          } \
5193          part { name: "disabler"; \
5194             type: RECT; \
5195             description { state: "default" 0.0; \
5196                color: 0 0 0 0; \
5197                visible: 0; \
5198             } \
5199             description { state: "disabled" 0.0; \
5200                inherit: "default" 0.0; \
5201                visible: 1; \
5202             } \
5203          } \
5204       } \
5205       programs { \
5206          program { name: "button_click"; \
5207             signal: "mouse,down,1"; \
5208             source: "over1"; \
5209             action: SIGNAL_EMIT "elm,action,press" ""; \
5210             after: "button_click_anim"; \
5211          } \
5212          program { name: "button_click_anim"; \
5213             action: STATE_SET "clicked" 0.0; \
5214             target: "button_image"; \
5215             target: "button_center_part"; \
5216          } \
5217          program { name: "button_unclick"; \
5218             signal: "mouse,up,1"; \
5219             source: "over2"; \
5220             action: SIGNAL_EMIT "elm,action,unpress" ""; \
5221             after: "button_unclick_anim"; \
5222          } \
5223          program { name: "button_unclick_anim"; \
5224             action: STATE_SET "default" 0.0; \
5225             target: "button_image"; \
5226             target: "button_center_part"; \
5227          } \
5228          program { name: "touch_snd"; \
5229             signal: "mouse,clicked,1"; \
5230             source: "over1"; \
5231             action: PLAY_SAMPLE "touch_sound" 1.0; \
5232             after: button_unclick3; \
5233          } \
5234          program { name: "button_unclick3"; \
5235             action: SIGNAL_EMIT "elm,action,click" ""; \
5236          } \
5237          program { name: "disable"; \
5238             signal: "elm,state,disabled"; \
5239             source: "elm"; \
5240             action: STATE_SET "disabled" 0.0; \
5241             target: "disabler"; \
5242             target: "button_image"; \
5243          } \
5244          program { name: "enable"; \
5245             signal: "elm,state,enabled"; \
5246             source: "elm"; \
5247             action: STATE_SET "default" 0.0; \
5248             target: "disabler"; \
5249             target: "button_image"; \
5250          } \
5251       } \
5252    }
5253 ///////////////////////////////////////////////////////////////////////////////////////
5254    BUTTON_EDIT_STYLES("icon_plus", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5255
5256 ///////////////////////////////////////////////////////////////////////////////////////
5257    BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_plus.png", "00_button_icon_plus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5258
5259 ///////////////////////////////////////////////////////////////////////////////////////
5260    BUTTON_EDIT_STYLES("icon_minus", "00_button_edit_Delete.png", "00_button_edit_Delete_press.png", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5261
5262 ///////////////////////////////////////////////////////////////////////////////////////
5263    BUTTON_EDIT_STYLES("icon_minus/extended", "00_button_edit_Delete.png", "00_button_edit_Delete_press.png", "00_button_icon_minus.png", "00_button_icon_minus_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5264
5265 ///////////////////////////////////////////////////////////////////////////////////////
5266    BUTTON_EDIT_STYLES("icon_expand", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5267
5268 ///////////////////////////////////////////////////////////////////////////////////////
5269    BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand.png", "00_button_icon_expand_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
5270
5271 ///////////////////////////////////////////////////////////////////////////////////////
5272    BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand_closed.png", "00_button_icon_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5273
5274 ///////////////////////////////////////////////////////////////////////////////////////
5275    BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_edit.png", "00_button_edit_press.png", "00_button_icon_expand_opened.png", "00_button_icon_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
5276
5277 ///////////////////////////////////////////////////////////////////////////////////////
5278    group { name: "elm/button/base/contacts/delete";
5279       images {
5280          image: "00_button_edit_Delete.png" COMP;
5281          image: "00_button_edit_Delete_press.png" COMP;
5282          image: "00_button_edit_dim.png" COMP;
5283          image: "00_button_edit_focus.png" COMP;
5284       }
5285       script {
5286          public button_state = BUTTON_STATE_ENABLED;
5287       }
5288       parts {
5289          part { name: "button_image";
5290             scale: 1;
5291             description { state: "default" 0.0;
5292                min: BUTTON_CONTACT_DELETE_BG_NORMAL_MIN_INC;
5293                image {
5294                   normal: "00_button_edit_Delete.png";
5295                   border: BUTTON_CONTACT_DELETE_BG_BORDER_INC;
5296                   border_scale: 1;
5297                }
5298             }
5299             description { state: "clicked" 0.0;
5300                inherit: "default" 0.0;
5301                image.normal: "00_button_edit_Delete_press.png";
5302             }
5303             description { state: "disabled" 0.0;
5304                inherit: "default" 0.0;
5305                image.normal: "00_button_edit_dim.png";
5306             }
5307             description { state: "focused" 0.0;
5308                inherit: "default" 0.0;
5309                image.normal: "00_button_edit_focus.png";
5310             }
5311          }
5312          part { name: "padding_left_top";
5313             type: RECT;
5314             scale: 1;
5315             mouse_events: 0;
5316             description { state: "default" 0.0;
5317                align: 0.0 0.0;
5318                rel2.relative: 0.0 0.0;
5319                min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
5320                fixed: 1 1;
5321                visible: 0;
5322             }
5323          }
5324          part { name: "padding_right_bottom";
5325             type: RECT;
5326             scale: 1;
5327             mouse_events: 0;
5328             description { state: "default" 0.0;
5329                align: 1.0 1.0;
5330                rel1.relative: 1.0 1.0;
5331                min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
5332                fixed: 1 1;
5333                visible: 0;
5334             }
5335          }
5336          part { name: "padding_icon_text";
5337             type: RECT;
5338             scale: 1;
5339             mouse_events: 0;
5340             description { state: "default" 0.0; //when only icon or no icon is there
5341                align: 0.0 0.0;
5342                rel1 {
5343                   relative: 1.0 0.0;
5344                   to: "elm.swallow.content";
5345                }
5346                rel2.to: "elm.swallow.content";
5347                fixed: 1 0;
5348                min: 0 0;
5349                visible: 0;
5350             }
5351             description { state: "icononly" 0.0;
5352                inherit: "default" 0.0;
5353             }
5354             description { state: "visible" 0.0; //when icon is visible
5355                inherit: "default" 0.0;
5356                min: BUTTON_CONTACT_DELETE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
5357             }
5358          }
5359          part { name: "elm.swallow.content";
5360             type: SWALLOW;
5361             scale: 1;
5362             clip_to: "clipper";
5363             description { state: "default" 0.0;
5364                visible: 0;
5365                align: 0.0 0.5;
5366                rel1 {
5367                   relative: 1.0 1.0;
5368                   to: "padding_left_top";
5369                }
5370                rel2 {
5371                   relative: 1.0 0.0;
5372                   to_x: "padding_left_top";
5373                   to_y: "padding_right_bottom";
5374                }
5375                fixed: 1 0;
5376             }
5377             description { state: "visible" 0.0;
5378                fixed: 1 0;
5379                align: 0.0 0.5;
5380                rel1 {
5381                   relative: 1.0 1.0;
5382                   to: "padding_left_top";
5383                }
5384                rel2 {
5385                   relative: 1.0 0.0;
5386                   to_x: "padding_left_top";
5387                   to_y: "padding_right_bottom";
5388                }
5389                aspect: 1.0 1.0;
5390                aspect_preference: VERTICAL;
5391             }
5392             description { state: "icononly" 0.0;
5393                min: BUTTON_CONTACT_DELETE_ICON_ICONONLY_MIN_INC;
5394                rel1 {
5395                   relative: 1.0 1.0;
5396                   to: "padding_left_top";
5397                }
5398                rel2 {
5399                   relative: 0.0 0.0;
5400                   to: "padding_right_bottom";
5401                }
5402                aspect: 1.0 1.0;
5403                aspect_preference: VERTICAL;
5404             }
5405          }
5406          part { name: "elm.text";
5407             type: TEXT;
5408             mouse_events: 0;
5409             scale: 1;
5410             clip_to: "clipper";
5411             description { state: "default" 0.0;
5412                rel1 {
5413                   relative: 1.0 1.0;
5414                   to_x: "padding_icon_text";
5415                   to_y: "padding_left_top";
5416                }
5417                rel2 {
5418                   relative: 0.0 0.0;
5419                   to: "padding_right_bottom";
5420                }
5421                color: BUTTON_TEXT_CONTACTS_DELETE_NORMAL_COLOR_INC;
5422                text {
5423                   font: "SLP:style=Medium";
5424                   size: BUTTON_CONTACT_DELETE_FONT_SIZE_INC;
5425                   min: 1 0;
5426                   text: "Delete";
5427                   max: 1 0;
5428                   text_class: "slp_medium";
5429                }
5430             }
5431             description { state: "visible" 0.0;
5432                inherit: "default" 0.0;
5433             }
5434             description { state: "clicked" 0.0;
5435                inherit: "default" 0.0;
5436                color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5437             }
5438             description { state: "disabled" 0.0;
5439                inherit: "default" 0.0;
5440                color: 0 0 0 128;
5441             }
5442             description { state: "disabled_visible" 0.0;
5443                inherit: "default" 0.0;
5444                color: BUTTON_TEXT_CONTACTS_DELETE_DISABLED_COLOR_INC;
5445             }
5446             description { state: "focused" 0.0;
5447                inherit: "default" 0.0;
5448                min: 0 0;
5449                color: BUTTON_TEXT_CONTACTS_DELETE_PRESSED_COLOR_INC;
5450             }
5451          }
5452          part { name: "over2";
5453             type: RECT;
5454             repeat_events: 1;
5455             ignore_flags: ON_HOLD;
5456             description { state: "default" 0.0;
5457                color: 0 0 0 0;
5458             }
5459          }
5460          part { name: "over3";
5461             type: RECT;
5462             repeat_events: 1;
5463             description { state: "default" 0.0;
5464                color: 0 0 0 0;
5465             }
5466          }
5467          part { name: "clipper";
5468             type: RECT;
5469             description { state: "default" 0.0;
5470                color: 255 255 255 255;
5471             }
5472          }
5473          part { name: "disabler";
5474             type: RECT;
5475             description { state: "default" 0.0;
5476                color: 0 0 0 0;
5477                visible: 0;
5478             }
5479             description { state: "disabled" 0.0;
5480                inherit: "default" 0.0;
5481                visible: 1;
5482             }
5483          }
5484       }
5485       programs {
5486          program { name: "button_click";
5487             signal: "mouse,down,1";
5488             source: "over2";
5489             action: SIGNAL_EMIT "elm,action,press" "";
5490             after: "button_click_anim";
5491          }
5492          program { name: "button_click_anim";
5493             action: STATE_SET "clicked" 0.0;
5494             target: "button_image";
5495             after: "text_clicked";
5496          }
5497          program { name: "text_clicked";
5498             script {
5499                new st[31];
5500                new Float:vl;
5501                get_state(PART:"elm.text", st, 30, vl);
5502                if (!strcmp(st, "visible"))
5503                  set_state(PART:"elm.text", "clicked", 0.0);
5504             }
5505          }
5506          program { name: "button_unpress";
5507             action: SIGNAL_EMIT "elm,action,unpress" "";
5508          }
5509          program { name: "button_mouseout_clicked";
5510             signal: "mouse,up,1";
5511             source: "over3";
5512             script {
5513                new st[31];
5514                new Float:vl;
5515                get_state(PART:"elm.swallow.content", st, 30, vl);
5516                if (strcmp(st, "icononly"))
5517                  {
5518                     emit("elm,action,default,text,set", "");
5519                     set_state(PART:"elm.text", "visible", 0.0);
5520                  }
5521                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5522                  set_state(PART:"button_image", "default", 0.0);
5523             }
5524             after: button_unpress;
5525          }
5526          program { name: "touch_snd";
5527             signal: "mouse,clicked,1";
5528             source: "over2";
5529             action: PLAY_SAMPLE "touch_sound" 1.0;
5530             after: button_unclick3;
5531          }
5532          program { name: "button_unclick3";
5533             action: SIGNAL_EMIT "elm,action,click" "";
5534          }
5535          program { name: "text_show";
5536             signal: "elm,state,text,visible";
5537             source: "elm";
5538             script {
5539                new st[31];
5540                new Float:vl;
5541                get_state(PART:"elm.swallow.content", st, 30, vl);
5542                if (!strcmp(st, "icononly"))
5543                  {
5544                     set_state(PART:"elm.swallow.content", "visible", 0.0);
5545                     set_state(PART:"padding_icon_text", "visible", 0.0);
5546                  }
5547                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5548                  set_state(PART:"elm.text", "visible", 0.0);
5549                else
5550                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5551             }
5552          }
5553          program { name: "text_hide";
5554             signal: "elm,state,text,hidden";
5555             source: "elm";
5556             script {
5557                new st[31];
5558                new Float:vl;
5559                get_state(PART:"elm.swallow.content", st, 30, vl);
5560                if (!strcmp(st, "visible"))
5561                  {
5562                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
5563                     set_state(PART:"padding_icon_text", "icononly", 0.0);
5564                  }
5565                set_state(PART:"elm.text", "default", 0.0);
5566             }
5567          }
5568          program { name: "icon_show";
5569             signal: "elm,state,icon,visible";
5570             source: "elm";
5571             script {
5572                new st[31];
5573                new Float:vl;
5574                get_state(PART:"elm.text", st, 30, vl);
5575                if (!strcmp(st, "visible"))
5576                  {
5577                     set_state(PART:"elm.swallow.content", "visible", 0.0);
5578                     set_state(PART:"padding_icon_text", "visible", 0.0);
5579                  }
5580                else
5581                  {
5582                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
5583                     set_state(PART:"padding_icon_text", "icononly", 0.0);
5584                  }
5585             }
5586          }
5587          program { name: "icon_hide";
5588             signal: "elm,state,icon,hidden";
5589             source: "elm";
5590             action: STATE_SET "default" 0.0;
5591             target: "elm.swallow.content";
5592             target: "padding_icon_text";
5593          }
5594          program { name: "disable";
5595             signal: "elm,state,disabled";
5596             source: "elm";
5597             action: STATE_SET "disabled" 0.0;
5598             target: "button_image";
5599             target: "disabler";
5600             after: "disable_text";
5601          }
5602          program { name: "disable_text";
5603             script {
5604                new st[31];
5605                new Float:vl;
5606                get_state(PART:"elm.text", st, 30, vl);
5607                if (!strcmp(st, "visible"))
5608                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5609                else
5610                  set_state(PART:"elm.text", "disabled", 0.0);
5611                set_int(button_state, BUTTON_STATE_DISABLED);
5612             }
5613          }
5614          program { name: "enable";
5615             signal: "elm,state,enabled";
5616             source: "elm";
5617             action: STATE_SET "default" 0.0;
5618             target: "button_image";
5619             target: "disabler";
5620             after: "enable_text";
5621          }
5622          program { name: "enable_text";
5623             script {
5624                new st[31];
5625                new Float:vl;
5626                get_state(PART:"elm.text", st, 30, vl);
5627                if (!strcmp(st, "disabled_visible"))
5628                  set_state(PART:"elm.text", "visible", 0.0);
5629                else
5630                  set_state(PART:"elm.text", "default", 0.0);
5631                set_int(button_state, BUTTON_STATE_ENABLED);
5632             }
5633          }
5634          program { name: "focused";
5635             //signal: "elm,action,focus";
5636             //source: "elm";
5637             action: STATE_SET "focused" 0.0;
5638             target: "button_image";
5639             target: "elm.text";
5640          }
5641          program { name: "unfocused";
5642             //signal: "elm,action,unfocus";
5643             //source: "elm";
5644             action: STATE_SET "default" 0.0;
5645             target: "button_image";
5646             after: "unfocus_text";
5647          }
5648          program { name: "unfocus_text";
5649             action: STATE_SET "visible" 0.0;
5650             target: "elm.text";
5651          }
5652       }
5653    }
5654
5655 ///////////////////////////////////////////////////////////////////////////////////////
5656    group { name: "elm/button/base/multiline";
5657       alias: "elm/button/base/text_only/multiline";
5658       images {
5659          image: "00_button_04_normal.png" COMP;
5660          image: "00_button_04_press.png" COMP;
5661          image: "00_button_04_dim.png" COMP;
5662          image: "00_button_04_normal_focus.png" COMP;
5663       }
5664       script {
5665          public button_state = BUTTON_STATE_ENABLED;
5666       }
5667       styles{
5668          style { name: "btn_multiline_style";
5669             base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=mixed text_class=slp_medium";
5670             tag: "br" "\n";
5671             tag: "ps" "ps";
5672             tag: "tab" "\t";
5673          }
5674       }
5675       parts {
5676          part { name: "button_image";
5677             scale: 1;
5678             description { state: "default" 0.0;
5679                min: 10 46;
5680                image {
5681                   normal: "00_button_04_normal.png";
5682                   border: 4 4 3 3;
5683                   border_scale: 1;
5684                }
5685             }
5686             description { state: "clicked" 0.0;
5687                inherit: "default" 0.0;
5688                image.normal: "00_button_04_press.png";
5689             }
5690             description { state: "disabled" 0.0;
5691                inherit: "default" 0.0;
5692                image.normal: "00_button_04_dim.png";
5693             }
5694             description { state: "focused" 0.0;
5695                inherit: "default" 0.0;
5696                image.normal: "00_button_04_normal_focus.png";
5697             }
5698          }
5699          part { name: "padding_left_top";
5700             type: RECT;
5701             scale: 1;
5702             mouse_events: 0;
5703             description { state: "default" 0.0;
5704                align: 0.0 0.0;
5705                rel2.relative: 0.0 0.0;
5706                min: 2 2;
5707                fixed: 1 1;
5708                visible: 0;
5709             }
5710          }
5711          part { name: "padding_right_bottom";
5712             type: RECT;
5713             scale: 1;
5714             mouse_events: 0;
5715             description { state: "default" 0.0;
5716                align: 1.0 1.0;
5717                rel1.relative: 1.0 1.0;
5718                min: 2 2;
5719                fixed: 1 1;
5720                visible: 0;
5721             }
5722          }
5723          part { name: "icon_rect";
5724             type: RECT;
5725             scale: 1;
5726             mouse_events: 0;
5727             description { state: "default" 0.0;
5728                visible: 1;
5729                min: 0 40;
5730                fixed: 1 0;
5731                rel1 {
5732                   relative: 0.0 1.0;
5733                   to_x: "elm.swallow.content";
5734                   to_y: "padding_left_top";
5735                }
5736                rel2 {
5737                   relative: 1.0 0.0;
5738                   to_x: "elm.swallow.content";
5739                   to_y: "padding_right_bottom";
5740                }
5741                align: 0.0 0.5;
5742                color: 0 0 0 0;
5743             }
5744          }
5745          part { name: "padding_icon_text";
5746             type: RECT;
5747             scale: 1;
5748             mouse_events: 0;
5749             description { state: "default" 0.0; //when only icon or no icon is there
5750                align: 0.0 0.0;
5751                rel1 {
5752                   relative: 1.0 0.0;
5753                   to: "icon_rect";
5754                }
5755                rel2.to: "icon_rect";
5756                fixed: 1 0;
5757                min: 0 0;
5758                color: 0 0 0 0;
5759             }
5760             description { state: "icononly" 0.0;
5761                inherit: "default" 0.0;
5762             }
5763             description { state: "visible" 0.0; //when icon is visible
5764                align: 0.0 0.0;
5765                rel1 {
5766                   relative: 1.0 0.0;
5767                   to: "icon_rect";
5768                }
5769                rel2.to: "icon_rect";
5770                fixed: 1 0;
5771                min: 5 0;
5772                color: 0 0 0 0;
5773             }
5774          }
5775          part { name: "elm.swallow.content";
5776             type: SWALLOW;
5777             scale: 1;
5778             clip_to: "clipper";
5779             description { state: "default" 0.0;
5780                visible: 0;
5781                align: 0.0 0.5;
5782                rel1 {
5783                   relative: 1.0 1.0;
5784                   to: "padding_left_top";
5785                }
5786                rel2 {
5787                   relative: 1.0 0.0;
5788                   to_x: "padding_left_top";
5789                   to_y: "padding_right_bottom";
5790                }
5791                fixed: 1 0;
5792             }
5793             description { state: "visible" 0.0;
5794                fixed: 1 0;
5795                align: 0.0 0.5;
5796                rel1 {
5797                   relative: 1.0 1.0;
5798                   to: "padding_left_top";
5799                }
5800                rel2 {
5801                   relative: 1.0 0.0;
5802                   to_x: "padding_left_top";
5803                   to_y: "padding_right_bottom";
5804                }
5805                aspect: 1.0 1.0;
5806                aspect_preference: VERTICAL;
5807             }
5808             description { state: "icononly" 0.0;
5809                min: 40 40;
5810                rel1 {
5811                   relative: 1.0 1.0;
5812                   to: "padding_left_top";
5813                }
5814                rel2 {
5815                   relative: 0.0 0.0;
5816                   to: "padding_right_bottom";
5817                }
5818                aspect: 1.0 1.0;
5819                aspect_preference: VERTICAL;
5820             }
5821          }
5822          part { name: "elm.text";
5823             type: TEXTBLOCK;
5824             mouse_events: 0;
5825             scale: 1;
5826             clip_to: "clipper";
5827             description { state: "default" 0.0;
5828                visible: 0;
5829                rel1 {
5830                   relative: 1.0 1.0;
5831                   to_x: "padding_icon_text";
5832                   to_y: "padding_left_top";
5833                }
5834                rel2 {
5835                   relative: 0.0 0.0;
5836                   to: "padding_right_bottom";
5837                }
5838                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
5839                text {
5840                   style: "btn_multiline_style";
5841                   min: 0 0;
5842                   max: 0 1;
5843                }
5844             }
5845             description { state: "visible" 0.0;
5846                inherit: "default" 0.0;
5847                visible: 1;
5848                min: 80 0;
5849             }
5850             description { state: "clicked" 0.0;
5851                inherit: "default" 0.0;
5852                visible: 1;
5853                min: 0 0;
5854                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
5855             }
5856             description { state: "disabled" 0.0;
5857                inherit: "default" 0.0;
5858                color: 0 0 0 128;
5859             }
5860             description { state: "disabled_visible" 0.0;
5861                inherit: "default" 0.0;
5862                color: BUTTON_TEXT_STYLE1_TEXT_DISABLED_COLOR_INC;
5863                visible: 1;
5864                min: 80 0;
5865             }
5866             description { state: "focused" 0.0;
5867                inherit: "default" 0.0;
5868                visible: 1;
5869                min: 0 0;
5870                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
5871             }
5872          }
5873          part { name: "over2";
5874             type: RECT;
5875             repeat_events: 1;
5876             ignore_flags: ON_HOLD;
5877             description { state: "default" 0.0;
5878                color: 0 0 0 0;
5879             }
5880          }
5881          part { name: "over3";
5882             type: RECT;
5883             repeat_events: 1;
5884             description { state: "default" 0.0;
5885                color: 0 0 0 0;
5886             }
5887          }
5888          part { name: "clipper";
5889             type: RECT;
5890             description { state: "default" 0.0;
5891                color: 255 255 255 255;
5892             }
5893          }
5894          part { name: "disabler";
5895             type: RECT;
5896             description { state: "default" 0.0;
5897                color: 0 0 0 0;
5898                visible: 0;
5899             }
5900             description { state: "disabled" 0.0;
5901                inherit: "default" 0.0;
5902                visible: 1;
5903             }
5904          }
5905       }
5906       programs {
5907          program { name: "button_click";
5908             signal: "mouse,down,1";
5909             source: "over2";
5910             action: SIGNAL_EMIT "elm,action,press" "";
5911             after: "button_click_anim";
5912          }
5913          program { name: "button_click_anim";
5914             action: STATE_SET "clicked" 0.0;
5915             target: "button_image";
5916             after: "text_clicked";
5917          }
5918          program { name: "text_clicked";
5919             script {
5920                new st[31];
5921                new Float:vl;
5922                get_state(PART:"elm.text", st, 30, vl);
5923                if (!strcmp(st, "visible"))
5924                  set_state(PART:"elm.text", "clicked", 0.0);
5925             }
5926          }
5927          program { name: "button_unpress";
5928             action: SIGNAL_EMIT "elm,action,unpress" "";
5929          }
5930          program { name: "button_mouseout_clicked";
5931             signal: "mouse,up,1";
5932             source: "over3";
5933             script {
5934                new st[31];
5935                new Float:vl;
5936                get_state(PART:"elm.swallow.content", st, 30, vl);
5937                if (strcmp(st, "icononly"))
5938                  {
5939                     emit("elm,action,default,text,set", "");
5940                     set_state(PART:"elm.text", "visible", 0.0);
5941                  }
5942                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5943                  set_state(PART:"button_image", "default", 0.0);
5944             }
5945             after: button_unpress;
5946          }
5947          program { name: "touch_snd";
5948             signal: "mouse,clicked,1";
5949             source: "over2";
5950             action: PLAY_SAMPLE "touch_sound" 1.0;
5951             after: button_unclick3;
5952          }
5953          program { name: "button_unclick3";
5954             action: SIGNAL_EMIT "elm,action,click" "";
5955          }
5956          program { name: "text_show";
5957             signal: "elm,state,text,visible";
5958             source: "elm";
5959             script {
5960                new st[31];
5961                new Float:vl;
5962                get_state(PART:"elm.swallow.content", st, 30, vl);
5963                if (!strcmp(st, "icononly"))
5964                  {
5965                     set_state(PART:"elm.swallow.content", "visible", 0.0);
5966                     set_state(PART:"padding_icon_text", "visible", 0.0);
5967                  }
5968                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5969                  set_state(PART:"elm.text", "visible", 0.0);
5970                else
5971                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5972             }
5973          }
5974          program { name: "text_hide";
5975             signal: "elm,state,text,hidden";
5976             source: "elm";
5977             script {
5978                new st[31];
5979                new Float:vl;
5980                get_state(PART:"elm.swallow.content", st, 30, vl);
5981                if (!strcmp(st, "visible"))
5982                  {
5983                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
5984                     set_state(PART:"padding_icon_text", "icononly", 0.0);
5985                  }
5986                set_state(PART:"elm.text", "default", 0.0);
5987             }
5988          }
5989          program { name: "icon_show";
5990             signal: "elm,state,icon,visible";
5991             source: "elm";
5992             script {
5993                new st[31];
5994                new Float:vl;
5995                get_state(PART:"elm.text", st, 30, vl);
5996                if (!strcmp(st, "visible"))
5997                  {
5998                     set_state(PART:"elm.swallow.content", "visible", 0.0);
5999                     set_state(PART:"padding_icon_text", "visible", 0.0);
6000                  }
6001                else
6002                  {
6003                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6004                     set_state(PART:"padding_icon_text", "icononly", 0.0);
6005                  }
6006             }
6007          }
6008          program { name: "icon_hide";
6009             signal: "elm,state,icon,hidden";
6010             source: "elm";
6011             action: STATE_SET "default" 0.0;
6012             target: "elm.swallow.content";
6013             target: "padding_icon_text";
6014          }
6015          program { name: "disable";
6016             signal: "elm,state,disabled";
6017             source: "elm";
6018             action: STATE_SET "disabled" 0.0;
6019             target: "button_image";
6020             target: "disabler";
6021             after: "disable_text";
6022          }
6023          program { name: "disable_text";
6024             script {
6025                new st[31];
6026                new Float:vl;
6027                get_state(PART:"elm.text", st, 30, vl);
6028                if (!strcmp(st, "visible"))
6029                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6030                else
6031                  set_state(PART:"elm.text", "disabled", 0.0);
6032                set_int(button_state, BUTTON_STATE_DISABLED);
6033             }
6034          }
6035          program { name: "enable";
6036             signal: "elm,state,enabled";
6037             source: "elm";
6038             action: STATE_SET "default" 0.0;
6039             target: "button_image";
6040             target: "disabler";
6041             after: "enable_text";
6042          }
6043          program { name: "enable_text";
6044             script {
6045                new st[31];
6046                new Float:vl;
6047                get_state(PART:"elm.text", st, 30, vl);
6048                if (!strcmp(st, "disabled_visible"))
6049                  set_state(PART:"elm.text", "visible", 0.0);
6050                else
6051                  set_state(PART:"elm.text", "default", 0.0);
6052                set_int(button_state, BUTTON_STATE_ENABLED);
6053             }
6054          }
6055          program { name: "focused";
6056             //signal: "elm,action,focus";
6057             //source: "elm";
6058             action: STATE_SET "focused" 0.0;
6059             target: "button_image";
6060             target: "elm.text";
6061          }
6062          program { name: "unfocused";
6063             //signal: "elm,action,unfocus";
6064             //source: "elm";
6065             action: STATE_SET "default" 0.0;
6066             target: "button_image";
6067             after: "unfocus_text";
6068          }
6069          program { name: "unfocus_text";
6070             action: STATE_SET "visible" 0.0;
6071             target: "elm.text";
6072          }
6073       }
6074    }
6075
6076 ///////////////////////////////////////////////////////////////////////////////////////
6077    group { name: "elm/button/base/default";
6078       images {
6079          image: "00_button_01_normal.png" COMP;
6080          image: "00_button_01_normal_press.png" COMP;
6081          image: "00_button_01_normal_dim.png" COMP;
6082          image: "00_button_01_normal_Focus.png" COMP;
6083       }
6084       script {
6085          public button_state = BUTTON_STATE_ENABLED;
6086       }
6087       parts {
6088          part { name: "button_image";
6089             scale: 1;
6090             description { state: "default" 0.0;
6091                min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
6092                image {
6093                   normal: "00_button_01_normal.png";
6094                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
6095                   border_scale: 1;
6096                }
6097             }
6098             description { state: "clicked" 0.0;
6099                inherit: "default" 0.0;
6100                image.normal: "00_button_01_normal_press.png";
6101             }
6102             description { state: "disabled" 0.0;
6103                inherit: "default" 0.0;
6104                image.normal: "00_button_01_normal_dim.png";
6105             }
6106             description { state: "focused" 0.0;
6107                inherit: "default" 0.0;
6108                image.normal: "00_button_01_normal_Focus.png";
6109             }
6110          }
6111          part { name: "padding_left_top";
6112             type: RECT;
6113             scale: 1;
6114             mouse_events: 0;
6115             description { state: "default" 0.0;
6116                align: 0.0 0.0;
6117                rel2.relative: 0.0 0.0;
6118                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6119                fixed: 1 1;
6120                visible: 0;
6121             }
6122          }
6123          part { name: "padding_right_bottom";
6124             type: RECT;
6125             scale: 1;
6126             mouse_events: 0;
6127             description { state: "default" 0.0;
6128                align: 1.0 1.0;
6129                rel1.relative: 1.0 1.0;
6130                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
6131                fixed: 1 1;
6132                visible: 0;
6133             }
6134          }
6135          part { name: "padding_icon_text";
6136             type: RECT;
6137             scale: 1;
6138             mouse_events: 0;
6139             description { state: "default" 0.0; //when only icon or no icon is there
6140                align: 0.0 0.0;
6141                visible: 0;
6142                rel1 {
6143                   relative: 1.0 0.0;
6144                   to: "elm.swallow.content";
6145                }
6146                rel2.to: "elm.swallow.content";
6147                fixed: 1 0;
6148                min: 0 0;
6149             }
6150             description { state: "icononly" 0.0;
6151                inherit: "default" 0.0;
6152             }
6153             description { state: "visible" 0.0; //when icon is visible
6154                inherit: "default" 0.0;
6155                min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6156             }
6157          }
6158          part { name: "elm.swallow.content";
6159             type: SWALLOW;
6160             scale: 1;
6161             clip_to: "clipper";
6162             description { state: "default" 0.0;
6163                visible: 0;
6164                align: 0.0 0.5;
6165                rel1 {
6166                   relative: 1.0 1.0;
6167                   to: "padding_left_top";
6168                }
6169                rel2 {
6170                   relative: 1.0 0.0;
6171                   to_x: "padding_left_top";
6172                   to_y: "padding_right_bottom";
6173                }
6174                fixed: 1 0;
6175             }
6176             description { state: "visible" 0.0;
6177                fixed: 1 0;
6178                align: 0.0 0.5;
6179                rel1 {
6180                   relative: 1.0 1.0;
6181                   to: "padding_left_top";
6182                }
6183                rel2 {
6184                   relative: 1.0 0.0;
6185                   to_x: "padding_left_top";
6186                   to_y: "padding_right_bottom";
6187                }
6188                aspect: 1.0 1.0;
6189                aspect_preference: VERTICAL;
6190             }
6191             description { state: "icononly" 0.0;
6192                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
6193                rel1 {
6194                   relative: 1.0 0.0;
6195                   to_x: "padding_left_top";
6196                }
6197                rel2 {
6198                   relative: 0.0 1.0;
6199                   to_x: "padding_right_bottom";
6200                }
6201                aspect: 1.0 1.0;
6202                aspect_preference: VERTICAL;
6203             }
6204          }
6205          part { name: "elm.text";
6206             type: TEXT;
6207             mouse_events: 0;
6208             scale: 1;
6209             clip_to: "clipper";
6210             description { state: "default" 0.0;
6211                visible: 0;
6212                align: 0.0 0.5;
6213                rel1 {
6214                   relative: 1.0 1.0;
6215                   to_x: "padding_icon_text";
6216                   to_y: "padding_left_top";
6217                }
6218                rel2 {
6219                   relative: 0.0 0.0;
6220                   to: "padding_right_bottom";
6221                }
6222                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
6223                text {
6224                   font: "SLP:style=Medium";
6225                   size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
6226                   min: 0 0;
6227                   text_class: "slp_medium";
6228                }
6229             }
6230             description { state: "visible" 0.0;
6231                inherit: "default" 0.0;
6232                visible: 1;
6233                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6234             }
6235             description { state: "clicked" 0.0;
6236                inherit: "default" 0.0;
6237                visible: 1;
6238                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6239                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
6240             }
6241             description { state: "disabled" 0.0;
6242                inherit: "default" 0.0;
6243             }
6244             description { state: "disabled_visible" 0.0;
6245                inherit: "default" 0.0;
6246                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
6247                visible: 1;
6248                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
6249             }
6250             description { state: "focused" 0.0;
6251                inherit: "default" 0.0;
6252                visible: 1;
6253                min: 0 0;
6254                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
6255             }
6256          }
6257          part { name: "over2";
6258             type: RECT;
6259             repeat_events: 1;
6260             ignore_flags: ON_HOLD;
6261             description { state: "default" 0.0;
6262                color: 0 0 0 0;
6263             }
6264          }
6265          part { name: "over3";
6266             type: RECT;
6267             repeat_events: 1;
6268             description { state: "default" 0.0;
6269                color: 0 0 0 0;
6270             }
6271          }
6272          part { name: "clipper";
6273             type: RECT;
6274             description { state: "default" 0.0;
6275                color: 255 255 255 255;
6276             }
6277          }
6278          part { name: "disabler";
6279             type: RECT;
6280             description { state: "default" 0.0;
6281                color: 0 0 0 0;
6282                visible: 0;
6283             }
6284             description { state: "disabled" 0.0;
6285                inherit: "default" 0.0;
6286                visible: 1;
6287             }
6288          }
6289       }
6290       programs {
6291          program { name: "button_click";
6292             signal: "mouse,down,1";
6293             source: "over2";
6294             action: SIGNAL_EMIT "elm,action,press" "";
6295             after: "button_click_anim";
6296          }
6297          program { name: "button_click_anim";
6298             action: STATE_SET "clicked" 0.0;
6299             target: "button_image";
6300             after: "text_clicked";
6301          }
6302          program { name: "text_clicked";
6303             script {
6304                new st[31];
6305                new Float:vl;
6306                get_state(PART:"elm.text", st, 30, vl);
6307                if (!strcmp(st, "visible"))
6308                  set_state(PART:"elm.text", "clicked", 0.0);
6309             }
6310          }
6311          program { name: "button_unpress";
6312             action: SIGNAL_EMIT "elm,action,unpress" "";
6313          }
6314          program { name: "button_mouseout_clicked";
6315             signal: "mouse,up,1";
6316             source: "over3";
6317             script {
6318                new st[31];
6319                new Float:vl;
6320                get_state(PART:"elm.swallow.content", st, 30, vl);
6321                if (strcmp(st, "icononly"))
6322                  {
6323                     emit("elm,action,default,text,set", "");
6324                     set_state(PART:"elm.text", "visible", 0.0);
6325                  }
6326                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6327                  set_state(PART:"button_image", "default", 0.0);
6328             }
6329             after: button_unpress;
6330          }
6331          program { name: "touch_snd";
6332             signal: "mouse,clicked,1";
6333             source: "over2";
6334             action: PLAY_SAMPLE "touch_sound" 1.0;
6335             after: button_unclick3;
6336          }
6337          program { name: "button_unclick3";
6338             action: SIGNAL_EMIT "elm,action,click" "";
6339          }
6340          program { name: "text_show";
6341             signal: "elm,state,text,visible";
6342             source: "elm";
6343             script {
6344                new st[31];
6345                new Float:vl;
6346                get_state(PART:"elm.swallow.content", st, 30, vl);
6347                if (!strcmp(st, "icononly"))
6348                  {
6349                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6350                     set_state(PART:"padding_icon_text", "visible", 0.0);
6351                  }
6352                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6353                  set_state(PART:"elm.text", "visible", 0.0);
6354                else
6355                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6356             }
6357          }
6358          program { name: "text_hide";
6359             signal: "elm,state,text,hidden";
6360             source: "elm";
6361             script {
6362                new st[31];
6363                new Float:vl;
6364                get_state(PART:"elm.swallow.content", st, 30, vl);
6365                if (!strcmp(st, "visible"))
6366                  {
6367                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6368                     set_state(PART:"padding_icon_text", "icononly", 0.0);
6369                  }
6370                set_state(PART:"elm.text", "default", 0.0);
6371             }
6372          }
6373          program { name: "icon_show";
6374             signal: "elm,state,icon,visible";
6375             source: "elm";
6376             script {
6377                new st[31];
6378                new Float:vl;
6379                get_state(PART:"elm.text", st, 30, vl);
6380                if (!strcmp(st, "visible"))
6381                  {
6382                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6383                     set_state(PART:"padding_icon_text", "visible", 0.0);
6384                  }
6385                else
6386                  {
6387                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6388                     set_state(PART:"padding_icon_text", "icononly", 0.0);
6389                  }
6390             }
6391          }
6392          program { name: "icon_hide";
6393             signal: "elm,state,icon,hidden";
6394             source: "elm";
6395             action: STATE_SET "default" 0.0;
6396             target: "elm.swallow.content";
6397             target: "padding_icon_text";
6398          }
6399          program { name: "disable";
6400             signal: "elm,state,disabled";
6401             source: "elm";
6402             action: STATE_SET "disabled" 0.0;
6403             target: "button_image";
6404             target: "disabler";
6405             after: "disable_text";
6406          }
6407          program { name: "disable_text";
6408             script {
6409                new st[31];
6410                new Float:vl;
6411                get_state(PART:"elm.text", st, 30, vl);
6412                if (!strcmp(st, "visible"))
6413                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6414                else
6415                  set_state(PART:"elm.text", "disabled", 0.0);
6416                set_int(button_state, BUTTON_STATE_DISABLED);
6417             }
6418          }
6419          program { name: "enable";
6420             signal: "elm,state,enabled";
6421             source: "elm";
6422             action: STATE_SET "default" 0.0;
6423             target: "button_image";
6424             target: "disabler";
6425             after: "enable_text";
6426          }
6427          program { name: "enable_text";
6428             script {
6429                new st[31];
6430                new Float:vl;
6431                get_state(PART:"elm.text", st, 30, vl);
6432                if (!strcmp(st, "disabled_visible"))
6433                  set_state(PART:"elm.text", "visible", 0.0);
6434                else
6435                  set_state(PART:"elm.text", "default", 0.0);
6436                set_int(button_state, BUTTON_STATE_ENABLED);
6437             }
6438          }
6439          program { name: "focused";
6440             //signal: "elm,action,focus";
6441             //source: "elm";
6442             action: STATE_SET "focused" 0.0;
6443             target: "button_image";
6444             target: "elm.text";
6445          }
6446          program { name: "unfocused";
6447             //signal: "elm,action,unfocus";
6448             //source: "elm";
6449             action: STATE_SET "default" 0.0;
6450             target: "button_image";
6451             after: "unfocus_text";
6452          }
6453          program { name: "unfocus_text";
6454             action: STATE_SET "visible" 0.0;
6455             target: "elm.text";
6456          }
6457       }
6458    }
6459
6460 ///////////////////////////////////////////////////////////////////////////////////////
6461 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press,image_disable) \
6462    group { name: "elm/button/base/"style_name; \
6463       images { \
6464          image: image_normal COMP; \
6465          image: image_press COMP; \
6466          image: image_disable COMP; \
6467          image: "00_button_01_normal.png" COMP; \
6468          image: "00_button_01_normal_press.png" COMP; \
6469          image: "00_button_01_normal_dim.png" COMP; \
6470          image: "00_button_01_normal_Focus.png" COMP; \
6471       } \
6472       parts { \
6473          part { name: "button_image"; \
6474             scale: 1; \
6475             description { state: "default" 0.0; \
6476                min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6477                max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
6478                image { \
6479                   normal: "00_button_01_normal.png"; \
6480                   border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
6481                   border_scale: 1; \
6482                } \
6483             } \
6484             description { \
6485                state: "clicked" 0.0; \
6486                inherit: "default" 0.0; \
6487                image.normal: "00_button_01_normal_press.png"; \
6488             } \
6489             description { \
6490                state: "disabled" 0.0; \
6491                inherit: "default" 0.0; \
6492                image.normal: "00_button_01_normal_dim.png"; \
6493             } \
6494             description { \
6495                state: "focused" 0.0; \
6496                inherit: "default" 0.0; \
6497                image.normal: "00_button_01_normal_Focus.png"; \
6498             } \
6499          } \
6500          part { name: "button_center_part"; \
6501             scale: 1; \
6502             description { state: "default" 0.0; \
6503                min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6504                max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
6505                image.normal: image_normal; \
6506             } \
6507             description { \
6508                state: "clicked" 0.0; \
6509                inherit: "default" 0.0; \
6510                image.normal: image_press; \
6511             } \
6512             description { \
6513                state: "disabled" 0.0; \
6514                inherit: "default" 0.0; \
6515                image.normal: image_disable; \
6516             } \
6517          } \
6518          part { name: "over1"; \
6519             type: RECT; \
6520             ignore_flags: ON_HOLD; \
6521             description { state: "default" 0.0; \
6522                color: 0 0 0 0; \
6523             } \
6524          } \
6525          part { name: "over2"; \
6526             repeat_events: 1; \
6527             description { state: "default" 0.0; \
6528                color: 0 0 0 0; \
6529             } \
6530          } \
6531          part { name: "disabler"; \
6532             type: RECT; \
6533             description { state: "default" 0.0; \
6534                color: 0 0 0 0; \
6535                visible: 0; \
6536             } \
6537             description { state: "disabled" 0.0; \
6538                inherit: "default" 0.0; \
6539                visible: 1; \
6540             } \
6541          } \
6542       } \
6543       programs { \
6544          program { name: "button_click"; \
6545             signal: "mouse,down,1"; \
6546             source: "over1"; \
6547             action: SIGNAL_EMIT "elm,action,press" ""; \
6548             after: "button_click_anim"; \
6549          } \
6550          program { name: "button_click_anim"; \
6551             action: STATE_SET "clicked" 0.0; \
6552             target: "button_image"; \
6553             target: "button_center_part"; \
6554          } \
6555          program { name: "button_unclick"; \
6556             signal: "mouse,up,1"; \
6557             source: "over2"; \
6558             action: SIGNAL_EMIT "elm,action,unpress" ""; \
6559             after: "button_unclick_anim"; \
6560          } \
6561          program { name: "button_unclick_anim"; \
6562             action: STATE_SET "default" 0.0; \
6563             target: "button_image"; \
6564             target: "button_center_part"; \
6565          } \
6566          program { name: "touch_snd"; \
6567             signal: "mouse,clicked,1"; \
6568             source: "over1"; \
6569             action: PLAY_SAMPLE "touch_sound" 1.0; \
6570             after: button_unclick3; \
6571          } \
6572          program { name: "button_unclick3"; \
6573             action: SIGNAL_EMIT "elm,action,click" ""; \
6574          } \
6575          program { name: "disable"; \
6576             signal: "elm,state,disabled"; \
6577             source: "elm"; \
6578             action: STATE_SET "disabled" 0.0; \
6579             target: "disabler"; \
6580             target: "button_image"; \
6581             target: "button_center_part"; \
6582          } \
6583          program { name: "enable"; \
6584             signal: "elm,state,enabled"; \
6585             source: "elm"; \
6586             action: STATE_SET "default" 0.0; \
6587             target: "disabler"; \
6588             target: "button_image"; \
6589             target: "button_center_part"; \
6590          } \
6591       } \
6592    }
6593 ///////////////////////////////////////////////////////////////////////////////////////
6594    BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_color_picker_btn_left.png", "00_color_picker_btn_left_press.png", "00_color_picker_btn_left_dim.png")
6595 ///////////////////////////////////////////////////////////////////////////////////////
6596    BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_color_picker_btn_right.png", "00_color_picker_btn_right_press.png", "00_color_picker_btn_right_dim.png")
6597 ///////////////////////////////////////////////////////////////////////////////////////
6598    group { name: "elm/button/base/hidden";
6599       images {
6600          image: "00_button_sweep.png" COMP;
6601          image: "00_button_sweep_press.png" COMP;
6602          image: "00_button_sweep_focus.png" COMP;
6603          image: "00_button_sweep_dim.png" COMP;
6604       }
6605       script {
6606          public button_state = BUTTON_STATE_ENABLED;
6607       }
6608       parts {
6609          part { name: "button_image";
6610             scale: 1;
6611             description { state: "default" 0.0;
6612                min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
6613                image {
6614                   normal: "00_button_sweep.png";
6615                   border: BUTTON_HIDDEN_BG_BORDER_INC;
6616                   border_scale: 1;
6617                }
6618             }
6619             description { state: "clicked" 0.0;
6620                inherit: "default" 0.0;
6621                image.normal: "00_button_sweep_press.png";
6622             }
6623             description { state: "disabled" 0.0;
6624                inherit: "default" 0.0;
6625                image.normal: "00_button_sweep_dim.png";
6626             }
6627             description { state: "focused" 0.0;
6628                inherit: "default" 0.0;
6629                image.normal: "00_button_sweep_focus.png";
6630             }
6631          }
6632          part { name: "padding_left_top";
6633             type: RECT;
6634             scale: 1;
6635             mouse_events: 0;
6636             description { state: "default" 0.0;
6637                align: 0.0 0.0;
6638                rel2.relative: 0.0 0.0;
6639                min: BUTTON_HIDDEN_PADDING_MIN_INC;
6640                fixed: 1 1;
6641                visible: 0;
6642             }
6643          }
6644          part { name: "padding_right_bottom";
6645             type: RECT;
6646             scale: 1;
6647             mouse_events: 0;
6648             description { state: "default" 0.0;
6649                align: 1.0 1.0;
6650                rel1.relative: 1.0 1.0;
6651                min: BUTTON_HIDDEN_PADDING_MIN_INC;
6652                fixed: 1 1;
6653                visible: 0;
6654             }
6655          }
6656          part { name: "icon_rect";
6657             type: RECT;
6658             scale: 1;
6659             mouse_events: 0;
6660             description { state: "default" 0.0;
6661                min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
6662                fixed: 1 0;
6663                rel1 {
6664                   relative: 0.0 1.0;
6665                   to_x: "elm.swallow.content";
6666                   to_y: "padding_left_top";
6667                }
6668                rel2 {
6669                   relative: 1.0 0.0;
6670                   to_x: "elm.swallow.content";
6671                   to_y: "padding_right_bottom";
6672                }
6673                align: 0.0 0.5;
6674                color: 0 0 0 0;
6675             }
6676          }
6677          part { name: "padding_icon_text";
6678             type: RECT;
6679             scale: 1;
6680             mouse_events: 0;
6681             description { state: "default" 0.0; //when only icon or no icon is there
6682                align: 0.0 0.0;
6683                rel1 {
6684                   relative: 1.0 0.0;
6685                   to: "icon_rect";
6686                }
6687                rel2.to: "icon_rect";
6688                fixed: 1 0;
6689                min: 0 0;
6690                color: 0 0 0 0;
6691             }
6692             description { state: "icononly" 0.0;
6693                inherit: "default" 0.0;
6694             }
6695             description { state: "visible" 0.0; //when icon is visible
6696                align: 0.0 0.0;
6697                rel1 {
6698                   relative: 1.0 0.0;
6699                   to: "icon_rect";
6700                }
6701                rel2.to: "icon_rect";
6702                fixed: 1 0;
6703                min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
6704                color: 0 0 0 0;
6705             }
6706          }
6707          part { name: "elm.swallow.content";
6708             type: SWALLOW;
6709             scale: 1;
6710             clip_to: "clipper";
6711             description { state: "default" 0.0;
6712                visible: 0;
6713                align: 0.0 0.5;
6714                rel1 {
6715                   relative: 1.0 1.0;
6716                   to: "padding_left_top";
6717                }
6718                rel2 {
6719                   relative: 1.0 0.0;
6720                   to_x: "padding_left_top";
6721                   to_y: "padding_right_bottom";
6722                }
6723                fixed: 1 0;
6724             }
6725             description { state: "visible" 0.0;
6726                fixed: 1 0;
6727                align: 0.0 0.5;
6728                rel1 {
6729                   relative: 1.0 1.0;
6730                   to: "padding_left_top";
6731                }
6732                rel2 {
6733                   relative: 1.0 0.0;
6734                   to_x: "padding_left_top";
6735                   to_y: "padding_right_bottom";
6736                }
6737                aspect: 1.0 1.0;
6738                aspect_preference: VERTICAL;
6739             }
6740             description { state: "icononly" 0.0;
6741                min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
6742                rel1 {
6743                   relative: 1.0 1.0;
6744                   to: "padding_left_top";
6745                }
6746                rel2 {
6747                   relative: 1.0 0.0;
6748                   to_x: "padding_left_top";
6749                   to_y: "padding_right_bottom";
6750                }
6751                aspect: 1.0 1.0;
6752                aspect_preference: VERTICAL;
6753             }
6754          }
6755          part { name: "elm.text";
6756             type: TEXT;
6757             mouse_events: 0;
6758             scale: 1;
6759             clip_to: "clipper";
6760             description { state: "default" 0.0;
6761                visible: 0;
6762                rel1 {
6763                   relative: 1.0 1.0;
6764                   to_x: "padding_icon_text";
6765                   to_y: "padding_left_top";
6766                }
6767                rel2 {
6768                   relative: 0.0 0.0;
6769                   to: "padding_right_bottom";
6770                }
6771                color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
6772                text {
6773                   font: "SLP:style=Medium";
6774                   size: BUTTON_HIDDEN_FONT_SIZE_INC;
6775                   min: 0 0;
6776                   text_class: "slp_medium";
6777                }
6778             }
6779             description { state: "visible" 0.0;
6780                inherit: "default" 0.0;
6781                visible: 1;
6782                min: BUTTON_HIDDEN_TEXT_MIN_INC;
6783             }
6784             description { state: "clicked" 0.0;
6785                inherit: "default" 0.0;
6786                visible: 1;
6787                min: 0 0;
6788                color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
6789             }
6790             description { state: "disabled" 0.0;
6791                inherit: "default" 0.0;
6792                color: 0 0 0 128;
6793             }
6794             description { state: "disabled_visible" 0.0;
6795                inherit: "default" 0.0;
6796                color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
6797                visible: 1;
6798                min: BUTTON_HIDDEN_TEXT_MIN_INC;
6799             }
6800             description { state: "focused" 0.0;
6801                inherit: "default" 0.0;
6802                visible: 1;
6803                min: 0 0;
6804                color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
6805             }
6806          }
6807          part { name: "over2";
6808             type: RECT;
6809             repeat_events: 1;
6810             ignore_flags: ON_HOLD;
6811             description { state: "default" 0.0;
6812                color: 0 0 0 0;
6813             }
6814          }
6815          part { name: "over3";
6816             type: RECT;
6817             repeat_events: 1;
6818             description { state: "default" 0.0;
6819                color: 0 0 0 0;
6820             }
6821          }
6822          part { name: "clipper";
6823             type: RECT;
6824             description { state: "default" 0.0;
6825                color: 255 255 255 255;
6826             }
6827          }
6828          part { name: "disabler";
6829             type: RECT;
6830             description { state: "default" 0.0;
6831                color: 0 0 0 0;
6832                visible: 0;
6833             }
6834             description { state: "disabled" 0.0;
6835                inherit: "default" 0.0;
6836                visible: 1;
6837             }
6838          }
6839       }
6840       programs {
6841          program { name: "button_click";
6842             signal: "mouse,down,1";
6843             source: "over2";
6844             action: SIGNAL_EMIT "elm,action,press" "";
6845             after: "button_click_anim";
6846          }
6847          program { name: "button_click_anim";
6848             action: STATE_SET "clicked" 0.0;
6849             target: "button_image";
6850             after: "text_clicked";
6851          }
6852          program { name: "text_clicked";
6853             script {
6854                new st[31];
6855                new Float:vl;
6856                get_state(PART:"elm.text", st, 30, vl);
6857                if (!strcmp(st, "visible"))
6858                  set_state(PART:"elm.text", "clicked", 0.0);
6859             }
6860          }
6861          program { name: "button_unpress";
6862             action: SIGNAL_EMIT "elm,action,unpress" "";
6863          }
6864          program { name: "button_mouseout_clicked";
6865             signal: "mouse,up,1";
6866             source: "over3";
6867             script {
6868                new st[31];
6869                new Float:vl;
6870                get_state(PART:"elm.swallow.content", st, 30, vl);
6871                if (strcmp(st, "icononly"))
6872                  {
6873                     emit("elm,action,default,text,set", "");
6874                     set_state(PART:"elm.text", "visible", 0.0);
6875                  }
6876                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6877                  set_state(PART:"button_image", "default", 0.0);
6878             }
6879             after: button_unpress;
6880          }
6881          program { name: "touch_snd";
6882             signal: "mouse,clicked,1";
6883             source: "over2";
6884             action: PLAY_SAMPLE "touch_sound" 1.0;
6885             after: button_unclick3;
6886          }
6887          program { name: "button_unclick3";
6888             action: SIGNAL_EMIT "elm,action,click" "";
6889          }
6890          program { name: "text_show";
6891             signal: "elm,state,text,visible";
6892             source: "elm";
6893             script {
6894                new st[31];
6895                new Float:vl;
6896                get_state(PART:"elm.swallow.content", st, 30, vl);
6897                if (!strcmp(st, "icononly"))
6898                  {
6899                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6900                     set_state(PART:"padding_icon_text", "visible", 0.0);
6901                  }
6902                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6903                  set_state(PART:"elm.text", "visible", 0.0);
6904                else
6905                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6906             }
6907          }
6908          program { name: "text_hide";
6909             signal: "elm,state,text,hidden";
6910             source: "elm";
6911             script {
6912                new st[31];
6913                new Float:vl;
6914                get_state(PART:"elm.swallow.content", st, 30, vl);
6915                if (!strcmp(st, "visible"))
6916                  {
6917                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6918                     set_state(PART:"padding_icon_text", "icononly", 0.0);
6919                  }
6920                set_state(PART:"elm.text", "default", 0.0);
6921             }
6922          }
6923          program { name: "icon_show";
6924             signal: "elm,state,icon,visible";
6925             source: "elm";
6926             script {
6927                new st[31];
6928                new Float:vl;
6929                get_state(PART:"elm.text", st, 30, vl);
6930                if (!strcmp(st, "visible"))
6931                  {
6932                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6933                     set_state(PART:"padding_icon_text", "visible", 0.0);
6934                  }
6935                else
6936                  {
6937                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6938                     set_state(PART:"padding_icon_text", "icononly", 0.0);
6939                  }
6940             }
6941          }
6942          program { name: "icon_hide";
6943             signal: "elm,state,icon,hidden";
6944             source: "elm";
6945             action: STATE_SET "default" 0.0;
6946             target: "elm.swallow.content";
6947             target: "padding_icon_text";
6948          }
6949          program { name: "disable";
6950             signal: "elm,state,disabled";
6951             source: "elm";
6952             action: STATE_SET "disabled" 0.0;
6953             target: "button_image";
6954             target: "disabler";
6955             after: "disable_text";
6956          }
6957          program { name: "disable_text";
6958             script {
6959                new st[31];
6960                new Float:vl;
6961                get_state(PART:"elm.text", st, 30, vl);
6962                if (!strcmp(st, "visible"))
6963                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6964                else
6965                  set_state(PART:"elm.text", "disabled", 0.0);
6966                set_int(button_state, BUTTON_STATE_DISABLED);
6967             }
6968          }
6969          program { name: "enable";
6970             signal: "elm,state,enabled";
6971             source: "elm";
6972             action: STATE_SET "default" 0.0;
6973             target: "button_image";
6974             target: "disabler";
6975             after: "enable_text";
6976          }
6977          program { name: "enable_text";
6978             script {
6979                new st[31];
6980                new Float:vl;
6981                get_state(PART:"elm.text", st, 30, vl);
6982                if (!strcmp(st, "disabled_visible"))
6983                  set_state(PART:"elm.text", "visible", 0.0);
6984                else
6985                  set_state(PART:"elm.text", "default", 0.0);
6986                set_int(button_state, BUTTON_STATE_ENABLED);
6987             }
6988          }
6989          program { name: "focused";
6990             //signal: "elm,action,focus";
6991             //source: "elm";
6992             action: STATE_SET "focused" 0.0;
6993             target: "button_image";
6994             target: "elm.text";
6995          }
6996          program { name: "unfocused";
6997             //signal: "elm,action,unfocus";
6998             //source: "elm";
6999             action: STATE_SET "default" 0.0;
7000             target: "button_image";
7001             after: "unfocus_text";
7002          }
7003          program { name: "unfocus_text";
7004             action: STATE_SET "visible" 0.0;
7005             target: "elm.text";
7006          }
7007       }
7008    }
7009
7010 ///////////////////////////////////////////////////////////////////////////////////////
7011    group { name: "elm/button/base/picker/bar/default";
7012       images {
7013          image: "00_picker_btn_normal.png" COMP;
7014          image: "00_picker_btn_press.png" COMP;
7015          image: "00_picker_btn_normal_focus.png" COMP;
7016       }
7017       script {
7018          public button_state = BUTTON_STATE_ENABLED;
7019       }
7020       parts {
7021          part { name: "button_image";
7022             scale: 1;
7023             description { state: "default" 0.0;
7024                min: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_MIN_INC;
7025                image {
7026                   normal: "00_picker_btn_normal.png";
7027                   border: BUTTON_PICKER_BAR_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
7028                   border_scale: 1;
7029                }
7030             }
7031             description { state: "clicked" 0.0;
7032                inherit: "default" 0.0;
7033                image.normal: "00_picker_btn_press.png";
7034             }
7035             description { state: "disabled" 0.0;
7036                inherit: "default" 0.0;
7037             }
7038             description { state: "focused" 0.0;
7039                inherit: "default" 0.0;
7040                image.normal: "00_picker_btn_normal_focus.png";
7041             }
7042          }
7043          part { name: "padding_left_top";
7044             type: RECT;
7045             scale: 1;
7046             mouse_events: 0;
7047             description { state: "default" 0.0;
7048                align: 0.0 0.0;
7049                rel2.relative: 0.0 0.0;
7050                min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7051                fixed: 1 1;
7052                visible: 0;
7053             }
7054          }
7055          part { name: "padding_right_bottom";
7056             type: RECT;
7057             scale: 1;
7058             mouse_events: 0;
7059             description { state: "default" 0.0;
7060                align: 1.0 1.0;
7061                rel1.relative: 1.0 1.0;
7062                min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
7063                fixed: 1 1;
7064                visible: 0;
7065             }
7066          }
7067          part { name: "icon_rect";
7068             type: RECT;
7069             scale: 1;
7070             mouse_events: 0;
7071             description { state: "default" 0.0;
7072                min: BUTTON_PICKER_BAR_DEFAULT_ICON_RECT_DEFAULT_MIN_INC;
7073                fixed: 1 0;
7074                rel1 {
7075                   relative: 0.0 1.0;
7076                   to_x: "elm.swallow.content";
7077                   to_y: "padding_left_top";
7078                }
7079                rel2 {
7080                   relative: 1.0 0.0;
7081                   to_x: "elm.swallow.content";
7082                   to_y: "padding_right_bottom";
7083                }
7084                align: 0.0 0.5;
7085                color: 0 0 0 0;
7086             }
7087          }
7088          part { name: "padding_icon_text";
7089             type: RECT;
7090             scale: 1;
7091             mouse_events: 0;
7092             description { state: "default" 0.0; //when only icon or no icon is there
7093                align: 0.0 0.0;
7094                rel1 {
7095                   relative: 1.0 0.0;
7096                   to: "icon_rect";
7097                }
7098                rel2.to: "icon_rect";
7099                fixed: 1 0;
7100                min: 0 0;
7101                color: 0 0 0 0;
7102             }
7103             description { state: "icononly" 0.0;
7104                inherit: "default" 0.0;
7105             }
7106             description { state: "visible" 0.0; //when icon is visible
7107                align: 0.0 0.0;
7108                rel1 {
7109                   relative: 1.0 0.0;
7110                   to: "icon_rect";
7111                }
7112                rel2.to: "icon_rect";
7113                fixed: 1 0;
7114                min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7115                color: 0 0 0 0;
7116             }
7117          }
7118          part { name: "elm.swallow.content";
7119             type: SWALLOW;
7120             scale: 1;
7121             clip_to: "clipper";
7122             description { state: "default" 0.0;
7123                visible: 0;
7124                align: 0.0 0.5;
7125                rel1 {
7126                   relative: 1.0 1.0;
7127                   to: "padding_left_top";
7128                }
7129                rel2 {
7130                   relative: 1.0 0.0;
7131                   to_x: "padding_left_top";
7132                   to_y: "padding_right_bottom";
7133                }
7134                fixed: 1 0;
7135             }
7136             description { state: "visible" 0.0;
7137                fixed: 1 0;
7138                align: 0.0 0.5;
7139                rel1 {
7140                   relative: 1.0 1.0;
7141                   to: "padding_left_top";
7142                }
7143                rel2 {
7144                   relative: 1.0 0.0;
7145                   to_x: "padding_left_top";
7146                   to_y: "padding_right_bottom";
7147                }
7148                aspect: 1.0 1.0;
7149                aspect_preference: VERTICAL;
7150             }
7151             description { state: "icononly" 0.0;
7152                min: BUTTON_PICKER_BAR_DEFAULT_CONTENT_ICONONLY_MIN_INC;
7153                rel1 {
7154                   relative: 1.0 1.0;
7155                   to: "padding_left_top";
7156                }
7157                rel2 {
7158                   relative: 1.0 0.0;
7159                   to_x: "padding_left_top";
7160                   to_y: "padding_right_bottom";
7161                }
7162                aspect: 1.0 1.0;
7163                aspect_preference: VERTICAL;
7164             }
7165          }
7166          part { name: "elm.text";
7167             type: TEXT;
7168             mouse_events: 0;
7169             scale: 1;
7170             clip_to: "clipper";
7171             description { state: "default" 0.0;
7172                visible: 0;
7173                rel1 {
7174                   relative: 1.0 1.0;
7175                   to_x: "padding_icon_text";
7176                   to_y: "padding_left_top";
7177                }
7178                rel2 {
7179                   relative: 0.0 0.0;
7180                   to: "padding_right_bottom";
7181                }
7182                color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7183                text {
7184                   font: "SLP:style=Medium";
7185                   size: BUTTON_PICKER_BAR_DEFAULT_TEXT_FONT_SIZE_INC;
7186                   min: 1 0;
7187                   max: 0 0;
7188                   text_class: "slp_medium";
7189                }
7190             }
7191             description { state: "visible" 0.0;
7192                inherit: "default" 0.0;
7193                visible: 1;
7194                min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7195             }
7196             description { state: "clicked" 0.0;
7197                inherit: "default" 0.0;
7198                visible: 1;
7199                min: 0 0;
7200                color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7201             }
7202             description { state: "disabled" 0.0;
7203                inherit: "default" 0.0;
7204                color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7205             }
7206             description { state: "disabled_visible" 0.0;
7207                inherit: "default" 0.0;
7208                color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7209                visible: 1;
7210                min: BUTTON_PICKER_BAR_DEFAULT_TEXT_VISIBLE_MIN_INC;
7211             }
7212             description { state: "focused" 0.0;
7213                inherit: "default" 0.0;
7214                visible: 1;
7215                min: 0 0;
7216                color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7217             }
7218          }
7219          part { name: "over2";
7220             type: RECT;
7221             repeat_events: 1;
7222             ignore_flags: ON_HOLD;
7223             description { state: "default" 0.0;
7224                color: 0 0 0 0;
7225             }
7226          }
7227          part { name: "over3";
7228             type: RECT;
7229             repeat_events: 1;
7230             description { state: "default" 0.0;
7231                color: 0 0 0 0;
7232             }
7233          }
7234          part { name: "clipper";
7235             type: RECT;
7236             description { state: "default" 0.0;
7237                color: 255 255 255 255;
7238             }
7239          }
7240          part { name: "disabler";
7241             type: RECT;
7242             description { state: "default" 0.0;
7243                color: 0 0 0 0;
7244                visible: 0;
7245             }
7246             description { state: "disabled" 0.0;
7247                inherit: "default" 0.0;
7248                visible: 1;
7249             }
7250          }
7251       }
7252       programs {
7253          program { name: "button_click";
7254             signal: "mouse,down,1";
7255             source: "over2";
7256             action: SIGNAL_EMIT "elm,action,press" "";
7257             after: "button_click_anim";
7258          }
7259          program { name: "button_click_anim";
7260             action: STATE_SET "clicked" 0.0;
7261             target: "button_image";
7262             after: "text_clicked";
7263          }
7264          program { name: "text_clicked";
7265             script {
7266                new st[31];
7267                new Float:vl;
7268                get_state(PART:"elm.text", st, 30, vl);
7269                if (!strcmp(st, "visible"))
7270                  set_state(PART:"elm.text", "clicked", 0.0);
7271             }
7272          }
7273          program { name: "button_unpress";
7274             action: SIGNAL_EMIT "elm,action,unpress" "";
7275          }
7276          program { name: "button_mouseout_clicked";
7277             signal: "mouse,up,1";
7278             source: "over3";
7279             script {
7280                new st[31];
7281                new Float:vl;
7282                get_state(PART:"elm.swallow.content", st, 30, vl);
7283                if (strcmp(st, "icononly"))
7284                  {
7285                     emit("elm,action,default,text,set", "");
7286                     set_state(PART:"elm.text", "visible", 0.0);
7287                  }
7288                if (get_int(button_state) != BUTTON_STATE_DISABLED)
7289                  set_state(PART:"button_image", "default", 0.0);
7290             }
7291             after: button_unpress;
7292          }
7293          program { name: "touch_snd";
7294             signal: "mouse,clicked,1";
7295             source: "over2";
7296             action: PLAY_SAMPLE "touch_sound" 1.0;
7297             after: button_unclick3;
7298          }
7299          program { name: "button_unclick3";
7300             action: SIGNAL_EMIT "elm,action,click" "";
7301          }
7302          program { name: "text_show";
7303             signal: "elm,state,text,visible";
7304             source: "elm";
7305             script {
7306                new st[31];
7307                new Float:vl;
7308                get_state(PART:"elm.swallow.content", st, 30, vl);
7309                if (!strcmp(st, "icononly"))
7310                  {
7311                     set_state(PART:"elm.swallow.content", "visible", 0.0);
7312                     set_state(PART:"padding_icon_text", "visible", 0.0);
7313                  }
7314                if (get_int(button_state) != BUTTON_STATE_DISABLED)
7315                  set_state(PART:"elm.text", "visible", 0.0);
7316                else
7317                  set_state(PART:"elm.text", "disabled_visible", 0.0);
7318             }
7319          }
7320          program { name: "text_hide";
7321             signal: "elm,state,text,hidden";
7322             source: "elm";
7323             script {
7324                new st[31];
7325                new Float:vl;
7326                get_state(PART:"elm.swallow.content", st, 30, vl);
7327                if (!strcmp(st, "visible"))
7328                  {
7329                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
7330                     set_state(PART:"padding_icon_text", "icononly", 0.0);
7331                  }
7332                set_state(PART:"elm.text", "default", 0.0);
7333             }
7334          }
7335          program { name: "icon_show";
7336             signal: "elm,state,icon,visible";
7337             source: "elm";
7338             script {
7339                new st[31];
7340                new Float:vl;
7341                get_state(PART:"elm.text", st, 30, vl);
7342                if (!strcmp(st, "visible"))
7343                  {
7344                     set_state(PART:"elm.swallow.content", "visible", 0.0);
7345                     set_state(PART:"padding_icon_text", "visible", 0.0);
7346                  }
7347                else
7348                  {
7349                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
7350                     set_state(PART:"padding_icon_text", "icononly", 0.0);
7351                  }
7352             }
7353          }
7354          program { name: "icon_hide";
7355             signal: "elm,state,icon,hidden";
7356             source: "elm";
7357             action: STATE_SET "default" 0.0;
7358             target: "elm.swallow.content";
7359             target: "padding_icon_text";
7360          }
7361          program { name: "disable";
7362             signal: "elm,state,disabled";
7363             source: "elm";
7364             action: STATE_SET "disabled" 0.0;
7365             target: "button_image";
7366             target: "disabler";
7367             after: "disable_text";
7368          }
7369          program { name: "disable_text";
7370             script {
7371                new st[31];
7372                new Float:vl;
7373                get_state(PART:"elm.text", st, 30, vl);
7374                if (!strcmp(st, "visible"))
7375                  set_state(PART:"elm.text", "disabled_visible", 0.0);
7376                else
7377                  set_state(PART:"elm.text", "disabled", 0.0);
7378                set_int(button_state, BUTTON_STATE_DISABLED);
7379             }
7380          }
7381          program { name: "enable";
7382             signal: "elm,state,enabled";
7383             source: "elm";
7384             action: STATE_SET "default" 0.0;
7385             target: "button_image";
7386             target: "disabler";
7387             after: "enable_text";
7388          }
7389          program { name: "enable_text";
7390             script {
7391                new st[31];
7392                new Float:vl;
7393                get_state(PART:"elm.text", st, 30, vl);
7394                if (!strcmp(st, "disabled_visible"))
7395                  set_state(PART:"elm.text", "visible", 0.0);
7396                else
7397                  set_state(PART:"elm.text", "default", 0.0);
7398                set_int(button_state, BUTTON_STATE_ENABLED);
7399             }
7400          }
7401          program { name: "focused";
7402             //signal: "elm,action,focus";
7403             //source: "elm";
7404             action: STATE_SET "focused" 0.0;
7405             target: "button_image";
7406             target: "elm.text";
7407          }
7408          program { name: "unfocused";
7409             //signal: "elm,action,unfocus";
7410             //source: "elm";
7411             action: STATE_SET "default" 0.0;
7412             target: "button_image";
7413             after: "unfocus_text";
7414          }
7415          program { name: "unfocus_text";
7416             action: STATE_SET "visible" 0.0;
7417             target: "elm.text";
7418          }
7419       }
7420    }
7421
7422 ///////////////////////////////////////////////////////////////////////////////////////
7423    group { name: "elm/button/base/picker/prev/text/default";
7424       alias: "elm/button/base/picker/next/text/default";
7425       images {
7426          image: "00_picker_btn_normal.png" COMP;
7427          image: "00_picker_btn_press.png" COMP;
7428          image: "00_picker_btn_normal_focus.png" COMP;
7429       }
7430       script {
7431          public button_state = BUTTON_STATE_ENABLED;
7432       }
7433       parts {
7434          part { name: "button_image";
7435             scale: 1;
7436             description { state: "default" 0.0;
7437                min: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_MIN_INC;
7438                image {
7439                   normal: "00_picker_btn_normal.png";
7440                   border: BUTTON_PICKER_PREV_TEXT_DEFAULT_BG_DEFAULT_BORDER_INC;
7441                   border_scale: 1;
7442                }
7443             }
7444             description { state: "clicked" 0.0;
7445                inherit: "default" 0.0;
7446                image.normal: "00_picker_btn_press.png";
7447             }
7448             description { state: "disabled" 0.0;
7449                inherit: "default" 0.0;
7450                color: 0 0 0 128;
7451             }
7452             description { state: "focused" 0.0;
7453                inherit: "default" 0.0;
7454                image.normal: "00_picker_btn_normal_focus.png";
7455             }
7456          }
7457          part { name: "padding_left_top";
7458             type: RECT;
7459             scale: 1;
7460             mouse_events: 0;
7461             description { state: "default" 0.0;
7462                align: 0.0 0.0;
7463                rel2.relative: 0.0 0.0;
7464                min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7465                fixed: 1 1;
7466                visible: 0;
7467             }
7468          }
7469          part { name: "padding_right_bottom";
7470             type: RECT;
7471             scale: 1;
7472             mouse_events: 0;
7473             description { state: "default" 0.0;
7474                align: 1.0 1.0;
7475                rel1.relative: 1.0 1.0;
7476                min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
7477                fixed: 1 1;
7478                visible: 0;
7479             }
7480          }
7481          part { name: "icon_rect";
7482             type: RECT;
7483             scale: 1;
7484             mouse_events: 0;
7485             description { state: "default" 0.0;
7486                min: BUTTON_PICKER_PREV_TEXT_DEFAULT_ICON_RECT_MIN_INC;
7487                fixed: 1 0;
7488                rel1 {
7489                   relative: 0.0 1.0;
7490                   to_x: "elm.swallow.content";
7491                   to_y: "padding_left_top";
7492                }
7493                rel2 {
7494                   relative: 1.0 0.0;
7495                   to_x: "elm.swallow.content";
7496                   to_y: "padding_right_bottom";
7497                }
7498                align: 0.0 0.5;
7499                color: 0 0 0 0;
7500             }
7501          }
7502          part { name: "padding_icon_text";
7503             type: RECT;
7504             scale: 1;
7505             mouse_events: 0;
7506             description { state: "default" 0.0; //when only icon or no icon is there
7507                align: 0.0 0.0;
7508                rel1 {
7509                   relative: 1.0 0.0;
7510                   to: "icon_rect";
7511                }
7512                rel2.to: "icon_rect";
7513                fixed: 1 0;
7514                min: 0 0;
7515                color: 0 0 0 0;
7516             }
7517             description { state: "icononly" 0.0;
7518                inherit: "default" 0.0;
7519             }
7520             description { state: "visible" 0.0; //when icon is visible
7521                align: 0.0 0.0;
7522                rel1 {
7523                   relative: 1.0 0.0;
7524                   to: "icon_rect";
7525                }
7526                rel2.to: "icon_rect";
7527                fixed: 1 0;
7528                min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
7529                color: 0 0 0 0;
7530             }
7531          }
7532          part { name: "elm.swallow.content";
7533             type: SWALLOW;
7534             scale: 1;
7535             clip_to: "clipper";
7536             description { state: "default" 0.0;
7537                visible: 0;
7538                align: 0.0 0.5;
7539                rel1 {
7540                   relative: 1.0 1.0;
7541                   to: "padding_left_top";
7542                }
7543                rel2 {
7544                   relative: 1.0 0.0;
7545                   to_x: "padding_left_top";
7546                   to_y: "padding_right_bottom";
7547                }
7548                fixed: 1 0;
7549             }
7550             description { state: "visible" 0.0;
7551                fixed: 1 0;
7552                align: 0.0 0.5;
7553                rel1 {
7554                   relative: 1.0 1.0;
7555                   to: "padding_left_top";
7556                }
7557                rel2 {
7558                   relative: 1.0 0.0;
7559                   to_x: "padding_left_top";
7560                   to_y: "padding_right_bottom";
7561                }
7562                aspect: 1.0 1.0;
7563                aspect_preference: VERTICAL;
7564             }
7565             description { state: "icononly" 0.0;
7566                min: BUTTON_PICKER_PREV_TEXT_DEFAULT_CONTENT_ICON_ONLY_MIN_INC;
7567                rel1 {
7568                   relative: 1.0 1.0;
7569                   to: "padding_left_top";
7570                }
7571                rel2 {
7572                   relative: 1.0 0.0;
7573                   to_x: "padding_left_top";
7574                   to_y: "padding_right_bottom";
7575                }
7576                aspect: 1.0 1.0;
7577                aspect_preference: VERTICAL;
7578             }
7579          }
7580          part { name: "elm.text";
7581             type: TEXT;
7582             mouse_events: 0;
7583             scale: 1;
7584             clip_to: "clipper";
7585             description { state: "default" 0.0;
7586                visible: 0;
7587                rel1 {
7588                   relative: 1.0 1.0;
7589                   to_x: "padding_icon_text";
7590                   to_y: "padding_left_top";
7591                }
7592                rel2 {
7593                   relative: 0.0 0.0;
7594                   to: "padding_right_bottom";
7595                }
7596                color: BUTTON_PICKER_TEXT_DEFAULT_COLOR_INC;
7597                text {
7598                   font: "SLP:style=Medium";
7599                   size: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_FONT_SIZE_INC;
7600                   min: 1 0;
7601                   max: 1 0;
7602                   text_class: "slp_medium";
7603                }
7604             }
7605             description { state: "visible" 0.0;
7606                inherit: "default" 0.0;
7607                visible: 1;
7608                min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7609             }
7610             description { state: "clicked" 0.0;
7611                inherit: "default" 0.0;
7612                visible: 1;
7613                min: 0 0;
7614                color: BUTTON_PICKER_TEXT_CLICKED_COLOR_INC;
7615             }
7616             description { state: "disabled" 0.0;
7617                inherit: "default" 0.0;
7618                color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7619             }
7620             description { state: "disabled_visible" 0.0;
7621                inherit: "default" 0.0;
7622                color: BUTTON_PICKER_TEXT_DISABLED_COLOR_INC;
7623                visible: 1;
7624                min: BUTTON_PICKER_PREV_TEXT_DEFAULT_TEXT_VISIBLE_MIN_INC;
7625             }
7626             description { state: "focused" 0.0;
7627                inherit: "default" 0.0;
7628                visible: 1;
7629                min: 0 0;
7630                color: BUTTON_PICKER_TEXT_FOCUSED_COLOR_INC;
7631             }
7632          }
7633          part { name: "over2";
7634             type: RECT;
7635             repeat_events: 1;
7636             ignore_flags: ON_HOLD;
7637             description { state: "default" 0.0;
7638                color: 0 0 0 0;
7639             }
7640          }
7641          part { name: "over3";
7642             type: RECT;
7643             repeat_events: 1;
7644             description { state: "default" 0.0;
7645                color: 0 0 0 0;
7646             }
7647          }
7648          part { name: "clipper";
7649             type: RECT;
7650             description { state: "default" 0.0;
7651                color: 255 255 255 255;
7652             }
7653          }
7654          part { name: "disabler";
7655             type: RECT;
7656             description { state: "default" 0.0;
7657                color: 0 0 0 0;
7658                visible: 0;
7659             }
7660             description { state: "disabled" 0.0;
7661                inherit: "default" 0.0;
7662                visible: 1;
7663             }
7664          }
7665       }
7666       programs {
7667          program { name: "button_click";
7668             signal: "mouse,down,1";
7669             source: "over2";
7670             action: SIGNAL_EMIT "elm,action,press" "";
7671             after: "button_click_anim";
7672          }
7673          program { name: "button_click_anim";
7674             action: STATE_SET "clicked" 0.0;
7675             target: "button_image";
7676             after: "text_clicked";
7677          }
7678          program { name: "text_clicked";
7679             script {
7680                new st[31];
7681                new Float:vl;
7682                get_state(PART:"elm.text", st, 30, vl);
7683                if (!strcmp(st, "visible"))
7684                  set_state(PART:"elm.text", "clicked", 0.0);
7685             }
7686          }
7687          program { name: "button_unpress";
7688             action: SIGNAL_EMIT "elm,action,unpress" "";
7689          }
7690          program { name: "button_mouseout_clicked";
7691             signal: "mouse,up,1";
7692             source: "over3";
7693             script {
7694                new st[31];
7695                new Float:vl;
7696                get_state(PART:"elm.swallow.content", st, 30, vl);
7697                if (strcmp(st, "icononly"))
7698                  {
7699                     emit("elm,action,default,text,set", "");
7700                     set_state(PART:"elm.text", "visible", 0.0);
7701                  }
7702                if (get_int(button_state) != BUTTON_STATE_DISABLED)
7703                  set_state(PART:"button_image", "default", 0.0);
7704             }
7705             after: button_unpress;
7706          }
7707          program { name: "touch_snd";
7708             signal: "mouse,clicked,1";
7709             source: "over2";
7710             action: PLAY_SAMPLE "touch_sound" 1.0;
7711             after: button_unclick3;
7712          }
7713          program { name: "button_unclick3";
7714             action: SIGNAL_EMIT "elm,action,click" "";
7715          }
7716          program { name: "text_show";
7717             signal: "elm,state,text,visible";
7718             source: "elm";
7719             script {
7720                new st[31];
7721                new Float:vl;
7722                get_state(PART:"elm.swallow.content", st, 30, vl);
7723                if (!strcmp(st, "icononly"))
7724                  {
7725                     set_state(PART:"elm.swallow.content", "visible", 0.0);
7726                     set_state(PART:"padding_icon_text", "visible", 0.0);
7727                  }
7728                if (get_int(button_state) != BUTTON_STATE_DISABLED)
7729                  set_state(PART:"elm.text", "visible", 0.0);
7730                else
7731                  set_state(PART:"elm.text", "disabled_visible", 0.0);
7732             }
7733          }
7734          program { name: "text_hide";
7735             signal: "elm,state,text,hidden";
7736             source: "elm";
7737             script {
7738                new st[31];
7739                new Float:vl;
7740                get_state(PART:"elm.swallow.content", st, 30, vl);
7741                if (!strcmp(st, "visible"))
7742                  {
7743                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
7744                     set_state(PART:"padding_icon_text", "icononly", 0.0);
7745                  }
7746                set_state(PART:"elm.text", "default", 0.0);
7747             }
7748          }
7749          program { name: "icon_show";
7750             signal: "elm,state,icon,visible";
7751             source: "elm";
7752             script {
7753                new st[31];
7754                new Float:vl;
7755                get_state(PART:"elm.text", st, 30, vl);
7756                if (!strcmp(st, "visible"))
7757                  {
7758                     set_state(PART:"elm.swallow.content", "visible", 0.0);
7759                     set_state(PART:"padding_icon_text", "visible", 0.0);
7760                  }
7761                else
7762                  {
7763                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
7764                     set_state(PART:"padding_icon_text", "icononly", 0.0);
7765                  }
7766             }
7767          }
7768          program { name: "icon_hide";
7769             signal: "elm,state,icon,hidden";
7770             source: "elm";
7771             action: STATE_SET "default" 0.0;
7772             target: "elm.swallow.content";
7773             target: "padding_icon_text";
7774          }
7775          program { name: "disable";
7776             signal: "elm,state,disabled";
7777             source: "elm";
7778             action: STATE_SET "disabled" 0.0;
7779             target: "button_image";
7780             target: "disabler";
7781             after: "disable_text";
7782          }
7783          program { name: "disable_text";
7784             script {
7785                new st[31];
7786                new Float:vl;
7787                get_state(PART:"elm.text", st, 30, vl);
7788                if (!strcmp(st, "visible"))
7789                  set_state(PART:"elm.text", "disabled_visible", 0.0);
7790                else
7791                  set_state(PART:"elm.text", "disabled", 0.0);
7792                set_int(button_state, BUTTON_STATE_DISABLED);
7793             }
7794          }
7795          program { name: "enable";
7796             signal: "elm,state,enabled";
7797             source: "elm";
7798             action: STATE_SET "default" 0.0;
7799             target: "button_image";
7800             target: "disabler";
7801             after: "enable_text";
7802          }
7803          program { name: "enable_text";
7804             script {
7805                new st[31];
7806                new Float:vl;
7807                get_state(PART:"elm.text", st, 30, vl);
7808                if (!strcmp(st, "disabled_visible"))
7809                  set_state(PART:"elm.text", "visible", 0.0);
7810                else
7811                  set_state(PART:"elm.text", "default", 0.0);
7812                set_int(button_state, BUTTON_STATE_ENABLED);
7813             }
7814          }
7815          program { name: "focused";
7816             //signal: "elm,action,focus";
7817             //source: "elm";
7818             action: STATE_SET "focused" 0.0;
7819             target: "button_image";
7820             target: "elm.text";
7821          }
7822          program { name: "unfocused";
7823             //signal: "elm,action,unfocus";
7824             //source: "elm";
7825             action: STATE_SET "default" 0.0;
7826             target: "button_image";
7827             after: "unfocus_text";
7828          }
7829          program { name: "unfocus_text";
7830             action: STATE_SET "visible" 0.0;
7831             target: "elm.text";
7832          }
7833       }
7834    }
7835
7836 ///////////////////////////////////////////////////////////////////////////////////////
7837 #define BUTTON_CONTACT_STYLES(style_name, image_normal, image_press) \
7838    group { name: "elm/button/base/contact/"style_name; \
7839       images { \
7840          image: "00_contacts_circle_bg.png" COMP; \
7841          image: image_normal COMP; \
7842          image: image_press COMP; \
7843       } \
7844       parts { \
7845          part { name: "button_image"; \
7846             scale: 1; \
7847             description { state: "default" 0.0; \
7848                min: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7849                max: BUTTON_CONTACT_STYLE_BG_MIN_MAX_INC; \
7850                image.normal: "00_contacts_circle_bg.png"; \
7851                color: 255 255 255 255; \
7852             } \
7853             description { \
7854                state: "clicked" 0.0; \
7855                inherit: "default" 0.0; \
7856                image.normal: "00_contacts_circle_bg.png"; \
7857             } \
7858             description { \
7859                state: "disabled" 0.0; \
7860                inherit: "default" 0.0; \
7861                color: 255 255 255 128; \
7862             } \
7863          } \
7864          part { name: "button_center_part"; \
7865             scale: 1; \
7866             description { state: "default" 0.0; \
7867                min: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7868                max: BUTTON_CONTACT_STYLE_IMAGE_MIN_MAX_INC; \
7869                image.normal: image_normal; \
7870                color: 255 255 255 255; \
7871             } \
7872             description { \
7873                state: "clicked" 0.0; \
7874                inherit: "default" 0.0; \
7875                image.normal: image_press; \
7876             } \
7877             description { \
7878                state: "disabled" 0.0; \
7879                inherit: "default" 0.0; \
7880                color: 255 255 255 128; \
7881             } \
7882          } \
7883          part { name: "over1"; \
7884             type: RECT; \
7885             ignore_flags: ON_HOLD; \
7886             description { state: "default" 0.0; \
7887                color: 0 0 0 0; \
7888             } \
7889          } \
7890          part { name: "over2"; \
7891             repeat_events: 1; \
7892             description { state: "default" 0.0; \
7893                color: 0 0 0 0; \
7894             } \
7895          } \
7896          part { name: "disabler"; \
7897             type: RECT; \
7898             description { state: "default" 0.0; \
7899                color: 0 0 0 0; \
7900                visible: 0; \
7901             } \
7902             description { state: "disabled" 0.0; \
7903                inherit: "default" 0.0; \
7904                visible: 1; \
7905             } \
7906          } \
7907       } \
7908       programs { \
7909          program { name: "button_click"; \
7910             signal: "mouse,down,1"; \
7911             source: "over1"; \
7912             action: SIGNAL_EMIT "elm,action,press" ""; \
7913             after: "button_click_anim"; \
7914          } \
7915          program { name: "button_click_anim"; \
7916             action: STATE_SET "clicked" 0.0; \
7917             target: "button_image"; \
7918             target: "button_center_part"; \
7919          } \
7920          program { name: "button_unclick"; \
7921             signal: "mouse,up,1"; \
7922             source: "over2"; \
7923             action: SIGNAL_EMIT "elm,action,unpress" ""; \
7924             after: "button_unclick_anim"; \
7925          } \
7926          program { name: "button_unclick_anim"; \
7927             action: STATE_SET "default" 0.0; \
7928             target: "button_image"; \
7929             target: "button_center_part"; \
7930          } \
7931          program { name: "touch_snd"; \
7932             signal: "mouse,clicked,1"; \
7933             source: "over1"; \
7934             action: PLAY_SAMPLE "touch_sound" 1.0; \
7935             after: button_unclick3; \
7936          } \
7937          program { name: "button_unclick3"; \
7938             action: SIGNAL_EMIT "elm,action,click" ""; \
7939          } \
7940          program { name: "disable"; \
7941             signal: "elm,state,disabled"; \
7942             source: "elm"; \
7943             action: STATE_SET "disabled" 0.0; \
7944             target: "disabler"; \
7945             target: "button_image"; \
7946             target: "button_center_part"; \
7947          } \
7948          program { name: "enable"; \
7949             signal: "elm,state,enabled"; \
7950             source: "elm"; \
7951             action: STATE_SET "default" 0.0; \
7952             target: "disabler"; \
7953             target: "button_image"; \
7954             target: "button_center_part"; \
7955          } \
7956       } \
7957    }
7958
7959 ///////////////////////////////////////////////////////////////////////////////////////
7960    BUTTON_CONTACT_STYLES("expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png")
7961
7962    BUTTON_CONTACT_STYLES("expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png")
7963
7964    BUTTON_CONTACT_STYLES("plus", "00_button_plus.png", "00_button_plus_press.png")
7965
7966 ///////////////////////////////////////////////////////////////////////////////////////
7967    group { name: "elm/button/base/contact";
7968       alias: "elm/button/base/text_only/contact";
7969       images {
7970          image: "00_contacts_button_bg.png" COMP;
7971          image: "00_contacts_button_bg_press.png" COMP;
7972       }
7973       script {
7974          public button_state = BUTTON_STATE_ENABLED;
7975       }
7976       parts {
7977          part { name: "button_image";
7978             scale: 1;
7979             description { state: "default" 0.0;
7980                rel1 {
7981                   to_x: "padding.left";
7982                   to_y: "elm.text";
7983                }
7984                rel2 {
7985                   to_x: "padding.right";
7986                   to_y: "elm.text";
7987                }
7988                min: BUTTON_CONTACT_BG_MIN_INC;
7989                image {
7990                   normal: "00_contacts_button_bg.png";
7991                   border: BUTTON_CONTACT_BG_BORDER_INC;
7992                   border_scale: 1;
7993                }
7994             }
7995             description { state: "clicked" 0.0;
7996                inherit: "default" 0.0;
7997                image.normal: "00_contacts_button_bg_press.png";
7998             }
7999             description { state: "disabled" 0.0;
8000                inherit: "default" 0.0;
8001                color: 0 0 0 128;
8002             }
8003             description { state: "focused" 0.0;
8004                inherit: "default" 0.0;
8005             }
8006          }
8007          part { name: "padding.left";
8008             type: RECT;
8009             scale: 1;
8010             description { state: "default" 0.0;
8011                visible: 0;
8012                min: BUTTON_CONTACT_PADDING_MIN_INC;
8013                fixed: 1 0;
8014                color: 0 0 0 0;
8015                rel2 {
8016                   relative: 0.0 1.0;
8017                   to_x: "elm.text";
8018                }
8019                align: 1.0 0.0;
8020             }
8021          }
8022          part { name: "padding.right";
8023             type: RECT;
8024             scale: 1;
8025             description { state: "default" 0.0;
8026                visible: 0;
8027                min: BUTTON_CONTACT_PADDING_MIN_INC;
8028                fixed: 1 0;
8029                color: 0 0 0 0;
8030                rel1 {
8031                   relative: 1.0 0.0;
8032                   to_x: "elm.text";
8033                }
8034                align: 0.0 0.0;
8035             }
8036          }
8037          part {   name: "elm.text";
8038             type: TEXT;
8039             mouse_events: 0;
8040             scale: 1;
8041             description { state: "default" 0.0;
8042                visible: 0;
8043                fixed: 1 1;
8044                color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
8045                text {
8046                   font: "SLP:style=Medium";
8047                   size: BUTTON_CONTACT_FONT_SIZE_INC;
8048                   min: 1 1;
8049                   text_class: "slp_medium";
8050                }
8051             }
8052             description { state: "visible" 0.0;
8053                inherit: "default" 0.0;
8054                visible: 1;
8055                min: 1 1;
8056             }
8057             description { state: "clicked" 0.0;
8058                inherit: "default" 0.0;
8059                visible: 1;
8060                min: 1 1;
8061                color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
8062             }
8063             description { state: "disabled" 0.0;
8064                inherit: "default" 0.0;
8065                color: 0 0 0 128;
8066             }
8067             description { state: "disabled_visible" 0.0;
8068                inherit: "default" 0.0;
8069                color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
8070                visible: 1;
8071                min: 1 1;
8072             }
8073             description { state: "focused" 0.0;
8074                inherit: "default" 0.0;
8075                visible: 1;
8076                min: 1 1;
8077                color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
8078             }
8079          }
8080          part { name: "over1";
8081             mouse_events: 0;
8082             description { state: "default" 0.0;
8083                rel2.relative: 1.0 0.5;
8084             }
8085          }
8086          part { name: "over2";
8087             repeat_events: 1;
8088             ignore_flags: ON_HOLD;
8089             description { state: "default" 0.0;
8090                rel1.to: "button_image";
8091                rel2.to: "button_image";
8092             }
8093          }
8094          part { name: "over3";
8095             repeat_events: 1;
8096             description { state: "default" 0.0;
8097                rel1.to: "button_image";
8098                rel2.to: "button_image";
8099                color: 0 0 0 0;
8100             }
8101          }
8102          part { name: "disabler";
8103             type: RECT;
8104             description { state: "default" 0.0;
8105                rel1.to: "button_image";
8106                rel2.to: "button_image";
8107                color: 0 0 0 0;
8108                visible: 0;
8109             }
8110             description { state: "disabled" 0.0;
8111                inherit: "default" 0.0;
8112                visible: 1;
8113             }
8114          }
8115       }
8116       programs {
8117          program { name: "button_click";
8118             signal: "mouse,down,1";
8119             source: "over2";
8120             action: SIGNAL_EMIT "elm,action,press" "";
8121             after: "button_click_anim";
8122          }
8123          program { name: "button_click_anim";
8124             action: STATE_SET "clicked" 0.0;
8125             target: "button_image";
8126             target: "elm.text";
8127          }
8128          program { name: "button_unpress";
8129             action: SIGNAL_EMIT "elm,action,unpress" "";
8130          }
8131          program { name: "button_mouseout_clicked";
8132             signal: "mouse,up,1";
8133             source: "over3";
8134             script {
8135                new st[31];
8136                new Float:vl;
8137                get_state(PART:"elm.text", st, 30, vl);
8138                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
8139                  {
8140                     emit("elm,action,default,text,set", "");
8141                     set_state(PART:"elm.text", "visible", 0.0);
8142                  }
8143                if (get_int(button_state) != BUTTON_STATE_DISABLED)
8144                  set_state(PART:"button_image", "default", 0.0);
8145             }
8146             after: button_unpress;
8147          }
8148          program { name: "touch_snd";
8149             signal: "mouse,clicked,1";
8150             source: "over2";
8151             action: PLAY_SAMPLE "touch_sound" 1.0;
8152             after: button_unclick3;
8153          }
8154          program { name: "button_unclick3";
8155             action: SIGNAL_EMIT "elm,action,click" "";
8156          }
8157          program { name: "text_show";
8158             signal: "elm,state,text,visible";
8159             source: "elm";
8160             script {
8161                if (get_int(button_state) != BUTTON_STATE_DISABLED)
8162                  set_state(PART:"elm.text", "visible", 0.0);
8163                else
8164                  set_state(PART:"elm.text", "disabled_visible", 0.0);
8165             }
8166          }
8167          program { name: "text_hide";
8168             signal: "elm,state,text,hidden";
8169             source: "elm";
8170             action: STATE_SET "default" 0.0;
8171             target: "elm.text";
8172          }
8173          program { name: "disable";
8174             signal: "elm,state,disabled";
8175             source: "elm";
8176             action: STATE_SET "disabled" 0.0;
8177             target: "button_image";
8178             target: "disabler";
8179             after: "disable_text";
8180          }
8181          program { name: "disable_text";
8182             script {
8183                new st[31];
8184                new Float:vl;
8185                get_state(PART:"elm.text", st, 30, vl);
8186                if (!strcmp(st, "visible"))
8187                  set_state(PART:"elm.text", "disabled_visible", 0.0);
8188                else
8189                  set_state(PART:"elm.text", "disabled", 0.0);
8190                set_int(button_state, BUTTON_STATE_DISABLED);
8191             }
8192          }
8193          program { name: "enable";
8194             signal: "elm,state,enabled";
8195             source: "elm";
8196             action: STATE_SET "default" 0.0;
8197             target: "button_image";
8198             target: "disabler";
8199             after: "enable_text";
8200          }
8201          program { name: "enable_text";
8202             script {
8203                new st[31];
8204                new Float:vl;
8205                get_state(PART:"elm.text", st, 30, vl);
8206                if (!strcmp(st, "disabled_visible"))
8207                  set_state(PART:"elm.text", "visible", 0.0);
8208                else
8209                  set_state(PART:"elm.text", "default", 0.0);
8210                set_int(button_state, BUTTON_STATE_ENABLED);
8211             }
8212          }
8213          program { name: "focused";
8214             //signal: "elm,action,focus";
8215             //source: "elm";
8216             action: STATE_SET "focused" 0.0;
8217             target: "button_image";
8218             target: "elm.text";
8219          }
8220          program { name: "unfocused";
8221             //signal: "elm,action,unfocus";
8222             //source: "elm";
8223             action: STATE_SET "default" 0.0;
8224             target: "button_image";
8225             action: STATE_SET "visible" 0.0;
8226             target: "elm.text";
8227          }
8228       }
8229    }
8230
8231 ///////////////////////////////////////////////////////////////////////////////////////
8232    group { name: "elm/button/base/naviframe/back_btn/default";
8233       alias: "elm/button/base/naviframe/prev_btn/default";
8234       alias: "elm/button/base/naviframe/end_btn/default";
8235       images {
8236          image: "00_winset_toolbar_press.png" COMP;
8237         image: "00_winset_Back.png" COMP;
8238       }
8239       script {
8240          public button_state = BUTTON_STATE_ENABLED;
8241       }
8242       parts {
8243          part { name: "button_image";
8244             scale: 1;
8245             description { state: "default" 0.0;
8246                min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8247                max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8248                color: 0 0 0 0;
8249             }
8250             description { state: "clicked" 0.0;
8251                min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8252                max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8253                image {
8254                   normal: "00_winset_toolbar_press.png";
8255                   border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
8256                }
8257             }
8258             description { state: "disabled" 0.0;
8259                inherit: "default" 0.0;
8260                color: 127 127 127 127;
8261             }
8262             description { state: "focused" 0.0;
8263                min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8264                max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
8265                image {
8266                   normal: "00_winset_toolbar_press.png";
8267                   border: BUTTON_NAVIFRAME_BACK_BUTTON_BG_BORDER_INC;
8268                }
8269             }
8270          }
8271          part { name: "back_button";
8272             scale: 1;
8273             mouse_events: 0;
8274             description { state: "default" 0.0;
8275                min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8276                max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
8277                rel1.to: "button_image";
8278                rel2.to: "button_image";
8279                image.normal: "00_winset_Back.png";
8280             }
8281             description { state: "clicked" 0.0;
8282                inherit: "default" 0.0;
8283             }
8284             description { state: "disabled" 0.0;
8285                inherit: "default" 0.0;
8286                color: 127 127 127 127;
8287             }
8288          }
8289          part { name: "over2";
8290             type: RECT;
8291             repeat_events: 1;
8292             ignore_flags: ON_HOLD;
8293             description { state: "default" 0.0;
8294                color: 0 0 0 0;
8295             }
8296          }
8297          part { name: "over3";
8298             type: RECT;
8299             repeat_events: 1;
8300             description { state: "default" 0.0;
8301                color: 0 0 0 0;
8302             }
8303          }
8304          part { name: "disabler";
8305             type: RECT;
8306             description { state: "default" 0.0;
8307                color: 0 0 0 0;
8308                visible: 0;
8309             }
8310             description { state: "disabled" 0.0;
8311                inherit: "default" 0.0;
8312                visible: 1;
8313             }
8314          }
8315       }
8316       programs {
8317          program { name: "button_click";
8318             signal: "mouse,down,1";
8319             source: "over2";
8320             action: SIGNAL_EMIT "elm,action,press" "";
8321             after: "button_click_anim";
8322          }
8323          program { name: "button_click_anim";
8324             action: STATE_SET "clicked" 0.0;
8325             target: "button_image";
8326          }
8327          program { name: "button_unpress";
8328             action: SIGNAL_EMIT "elm,action,unpress" "";
8329          }
8330          program { name: "button_mouseout_clicked";
8331             signal: "mouse,up,1";
8332             source: "over3";
8333             script {
8334                if (get_int(button_state) != BUTTON_STATE_DISABLED)
8335                  set_state(PART:"button_image", "default", 0.0);
8336             }
8337             after: button_unpress;
8338          }
8339          program { name: "touch_snd";
8340             signal: "mouse,clicked,1";
8341             source: "over2";
8342             action: PLAY_SAMPLE "touch_sound" 1.0;
8343             after: button_unclick3;
8344          }
8345          program { name: "button_unclick3";
8346             action: SIGNAL_EMIT "elm,action,click" "";
8347          }
8348          program { name: "disable";
8349             signal: "elm,state,disabled";
8350             source: "elm";
8351             action: STATE_SET "disabled" 0.0;
8352             target: "button_image";
8353             target: "disabler";
8354             target: "back_button";
8355             after: "disable_button";
8356          }
8357          program { name: "disable_button";
8358             script {
8359                set_int(button_state, BUTTON_STATE_DISABLED);
8360             }
8361          }
8362          program { name: "enable";
8363             signal: "elm,state,enabled";
8364             source: "elm";
8365             action: STATE_SET "default" 0.0;
8366             target: "button_image";
8367             target: "disabler";
8368             target: "back_button";
8369             after: "enable_button";
8370          }
8371          program { name: "enable_button";
8372             script {
8373                set_int(button_state, BUTTON_STATE_ENABLED);
8374             }
8375          }
8376          program { name: "focused";
8377             //signal: "elm,action,focus";
8378             //source: "elm";
8379             action: STATE_SET "focused" 0.0;
8380             target: "button_image";
8381          }
8382          program { name: "unfocused";
8383             //signal: "elm,action,unfocus";
8384             //source: "elm";
8385             action: STATE_SET "default" 0.0;
8386             target: "button_image";
8387          }
8388       }
8389    }
8390
8391 ///////////////////////////////////////////////////////////////////////////////////////
8392    group { name: "elm/button/base/picker/prev/icon/default";
8393       images {
8394          image: "00_picker_btn_normal.png" COMP;
8395          image: "00_picker_btn_press.png" COMP;
8396          image: "00_picker_btn_normal_focus.png" COMP;
8397          image: "00_picker_arrow_left.png" COMP;
8398          image: "00_picker_arrow_left_press.png" COMP;
8399       }
8400       script {
8401          public button_state = BUTTON_STATE_ENABLED;
8402       }
8403       parts {
8404          part { name: "button_image";
8405             scale: 1;
8406             description { state: "default" 0.0;
8407                min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8408                max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8409                image {
8410                   normal: "00_picker_btn_normal.png";
8411                   border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8412                   border_scale: 1;
8413                }
8414             }
8415             description { state: "clicked" 0.0;
8416                inherit: "default" 0.0;
8417                image.normal: "00_picker_btn_press.png";
8418             }
8419             description { state: "disabled" 0.0;
8420                inherit: "default" 0.0;
8421             }
8422             description { state: "focused" 0.0;
8423                inherit: "default" 0.0;
8424                image.normal: "00_picker_btn_normal_focus.png";
8425             }
8426          }
8427          part { name: "padding_left_top";
8428             type: RECT;
8429             scale: 1;
8430             mouse_events: 0;
8431             description { state: "default" 0.0;
8432                align: 0.0 0.0;
8433                rel2.relative: 0.0 0.0;
8434                min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8435                fixed: 1 1;
8436                visible: 0;
8437             }
8438          }
8439          part { name: "padding_right_bottom";
8440             type: RECT;
8441             scale: 1;
8442             mouse_events: 0;
8443             description { state: "default" 0.0;
8444                align: 1.0 1.0;
8445                rel1.relative: 1.0 1.0;
8446                min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8447                fixed: 1 1;
8448                visible: 0;
8449             }
8450          }
8451          part { name: "left_arrow";
8452             scale: 1;
8453             mouse_events: 0;
8454             description { state: "default" 0.0;
8455                min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8456                max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8457                rel1 {
8458                   relative: 1.0 1.0;
8459                   to: "padding_left_top";
8460                }
8461                rel2 {
8462                   relative: 0.0 0.0;
8463                   to: "padding_right_bottom";
8464                }
8465                image.normal: "00_picker_arrow_left.png";
8466             }
8467             description { state: "clicked" 0.0;
8468                inherit: "default" 0.0;
8469                image.normal: "00_picker_arrow_left_press.png";
8470             }
8471          }
8472          part { name: "over2";
8473             type: RECT;
8474             repeat_events: 1;
8475             ignore_flags: ON_HOLD;
8476             description { state: "default" 0.0;
8477                color: 0 0 0 0;
8478             }
8479          }
8480          part { name: "over3";
8481             type: RECT;
8482             repeat_events: 1;
8483             description { state: "default" 0.0;
8484                color: 0 0 0 0;
8485             }
8486          }
8487          part { name: "disabler";
8488             type: RECT;
8489             description { state: "default" 0.0;
8490                color: 0 0 0 0;
8491                visible: 0;
8492             }
8493             description { state: "disabled" 0.0;
8494                inherit: "default" 0.0;
8495                visible: 1;
8496             }
8497          }
8498       }
8499       programs {
8500          program { name: "button_click";
8501             signal: "mouse,down,1";
8502             source: "over2";
8503             action: SIGNAL_EMIT "elm,action,press" "";
8504             after: "button_click_anim";
8505          }
8506          program { name: "button_click_anim";
8507             action: STATE_SET "clicked" 0.0;
8508             target: "button_image";
8509          }
8510          program { name: "button_unpress";
8511             action: SIGNAL_EMIT "elm,action,unpress" "";
8512          }
8513          program { name: "button_mouseout_clicked";
8514             signal: "mouse,up,1";
8515             source: "over3";
8516             script {
8517                if (get_int(button_state) != BUTTON_STATE_DISABLED)
8518                  set_state(PART:"button_image", "default", 0.0);
8519             }
8520             after: button_unpress;
8521          }
8522          program { name: "touch_snd";
8523             signal: "mouse,clicked,1";
8524             source: "over2";
8525             action: PLAY_SAMPLE "touch_sound" 1.0;
8526             after: button_unclick3;
8527          }
8528          program { name: "button_unclick3";
8529             action: SIGNAL_EMIT "elm,action,click" "";
8530          }
8531          program { name: "disable";
8532             signal: "elm,state,disabled";
8533             source: "elm";
8534             action: STATE_SET "disabled" 0.0;
8535             target: "button_image";
8536             target: "disabler";
8537             after: "disable_button";
8538          }
8539          program { name: "disable_button";
8540             script {
8541                set_int(button_state, BUTTON_STATE_DISABLED);
8542             }
8543          }
8544          program { name: "enable";
8545             signal: "elm,state,enabled";
8546             source: "elm";
8547             action: STATE_SET "default" 0.0;
8548             target: "button_image";
8549             target: "disabler";
8550             after: "enable_button";
8551          }
8552          program { name: "enable_button";
8553             script {
8554                set_int(button_state, BUTTON_STATE_ENABLED);
8555             }
8556          }
8557          program { name: "focused";
8558             //signal: "elm,action,focus";
8559             //source: "elm";
8560             action: STATE_SET "focused" 0.0;
8561             target: "button_image";
8562          }
8563          program { name: "unfocused";
8564             //signal: "elm,action,unfocus";
8565             //source: "elm";
8566             action: STATE_SET "default" 0.0;
8567             target: "button_image";
8568          }
8569       }
8570    }
8571
8572 ///////////////////////////////////////////////////////////////////////////////////////
8573    group { name: "elm/button/base/picker/next/icon/default";
8574       images {
8575          image: "00_picker_btn_normal.png" COMP;
8576          image: "00_picker_btn_press.png" COMP;
8577          image: "00_picker_btn_normal_focus.png" COMP;
8578          image: "00_picker_arrow_right.png" COMP;
8579          image: "00_picker_arrow_right_press.png" COMP;
8580       }
8581       script {
8582          public button_state = BUTTON_STATE_ENABLED;
8583       }
8584       parts {
8585          part { name: "button_image";
8586             scale: 1;
8587             description { state: "default" 0.0;
8588                min: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8589                max: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_MIN_MAX_INC;
8590                image {
8591                   normal: "00_picker_btn_normal.png";
8592                   border: BUTTON_PICKER_PREV_ICON_DEFAULT_BG_DEFAULT_BORDER_INC;
8593                   border_scale: 1;
8594                }
8595             }
8596             description { state: "clicked" 0.0;
8597                inherit: "default" 0.0;
8598                image.normal: "00_picker_btn_press.png";
8599             }
8600             description { state: "disabled" 0.0;
8601                inherit: "default" 0.0;
8602             }
8603             description { state: "focused" 0.0;
8604                inherit: "default" 0.0;
8605                image.normal: "00_picker_btn_normal_focus.png";
8606             }
8607          }
8608          part { name: "padding_left_top";
8609             type: RECT;
8610             scale: 1;
8611             mouse_events: 0;
8612             description { state: "default" 0.0;
8613                align: 0.0 0.0;
8614                rel2.relative: 0.0 0.0;
8615                min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8616                fixed: 1 1;
8617                visible: 0;
8618             }
8619          }
8620          part { name: "padding_right_bottom";
8621             type: RECT;
8622             scale: 1;
8623             mouse_events: 0;
8624             description { state: "default" 0.0;
8625                align: 1.0 1.0;
8626                rel1.relative: 1.0 1.0;
8627                min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
8628                fixed: 1 1;
8629                visible: 0;
8630             }
8631          }
8632          part { name: "right_arrow";
8633             scale: 1;
8634             mouse_events: 0;
8635             description { state: "default" 0.0;
8636                min: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8637                max: BUTTON_PICKER_PREV_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
8638                rel1 {
8639                   relative: 1.0 1.0;
8640                   to: "padding_left_top";
8641                }
8642                rel2 {
8643                   relative: 0.0 0.0;
8644                   to: "padding_right_bottom";
8645                }
8646                image.normal: "00_picker_arrow_right.png";
8647             }
8648             description { state: "clicked" 0.0;
8649                inherit: "default" 0.0;
8650                image.normal: "00_picker_arrow_right_press.png";
8651             }
8652          }
8653          part { name: "over2";
8654             type: RECT;
8655             repeat_events: 1;
8656             ignore_flags: ON_HOLD;
8657             description { state: "default" 0.0;
8658                color: 0 0 0 0;
8659             }
8660          }
8661          part { name: "over3";
8662             type: RECT;
8663             repeat_events: 1;
8664             description { state: "default" 0.0;
8665                color: 0 0 0 0;
8666             }
8667          }
8668          part { name: "disabler";
8669             type: RECT;
8670             description { state: "default" 0.0;
8671                color: 0 0 0 0;
8672                visible: 0;
8673             }
8674             description { state: "disabled" 0.0;
8675                inherit: "default" 0.0;
8676                visible: 1;
8677             }
8678          }
8679       }
8680       programs {
8681          program { name: "button_click";
8682             signal: "mouse,down,1";
8683             source: "over2";
8684             action: SIGNAL_EMIT "elm,action,press" "";
8685             after: "button_click_anim";
8686          }
8687          program { name: "button_click_anim";
8688             action: STATE_SET "clicked" 0.0;
8689             target: "button_image";
8690          }
8691          program { name: "button_unpress";
8692             action: SIGNAL_EMIT "elm,action,unpress" "";
8693          }
8694          program { name: "button_mouseout_clicked";
8695             signal: "mouse,up,1";
8696             source: "over3";
8697             script {
8698                if (get_int(button_state) != BUTTON_STATE_DISABLED)
8699                  set_state(PART:"button_image", "default", 0.0);
8700             }
8701             after: button_unpress;
8702          }
8703          program { name: "touch_snd";
8704             signal: "mouse,clicked,1";
8705             source: "over2";
8706             action: PLAY_SAMPLE "touch_sound" 1.0;
8707             after: button_unclick3;
8708          }
8709          program { name: "button_unclick3";
8710             action: SIGNAL_EMIT "elm,action,click" "";
8711          }
8712          program { name: "disable";
8713             signal: "elm,state,disabled";
8714             source: "elm";
8715             action: STATE_SET "disabled" 0.0;
8716             target: "button_image";
8717             target: "disabler";
8718             after: "disable_button";
8719          }
8720          program { name: "disable_button";
8721             script {
8722                set_int(button_state, BUTTON_STATE_DISABLED);
8723             }
8724          }
8725          program { name: "enable";
8726             signal: "elm,state,enabled";
8727             source: "elm";
8728             action: STATE_SET "default" 0.0;
8729             target: "button_image";
8730             target: "disabler";
8731             after: "enable_button";
8732          }
8733          program { name: "enable_button";
8734             script {
8735                set_int(button_state, BUTTON_STATE_ENABLED);
8736             }
8737          }
8738          program { name: "focused";
8739             //signal: "elm,action,focus";
8740             //source: "elm";
8741             action: STATE_SET "focused" 0.0;
8742             target: "button_image";
8743          }
8744          program { name: "unfocused";
8745             //signal: "elm,action,unfocus";
8746             //source: "elm";
8747             action: STATE_SET "default" 0.0;
8748             target: "button_image";
8749          }
8750       }
8751    }
8752
8753 ///////////////////////////////////////////////////////////////////////////////////////
8754    group { name: "elm/button/base/naviframe_control/default";
8755       alias: "elm/button/base/naviframe_control/center";
8756       script {
8757          public button_state = BUTTON_STATE_ENABLED;
8758       }
8759       images {
8760          image: "00_Option_header_bt.png" COMP;
8761          image: "00_Option_header_bt_dim.png" COMP;
8762          image: "00_Option_header_bt_press.png" COMP;
8763          image: "00_Option_header_bt_focus.png" COMP;
8764       }
8765       parts {
8766          part { name: "button_image";
8767             scale: 1;
8768             description { state: "default" 0.0;
8769                min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
8770                color: 0 0 0 0;
8771                rel1.offset: 0 0;
8772                rel2.offset: -1 -1;
8773                image {
8774                   normal: "00_Option_header_bt.png";
8775                   border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
8776                }
8777                color: 255 255 255 255;
8778             }
8779             description { state: "disabled" 0.0;
8780                inherit: "default" 0.0;
8781                image.normal: "00_Option_header_bt_dim.png";
8782             }
8783             description { state: "clicked" 0.0;
8784                inherit: "default" 0.0;
8785                image.normal: "00_Option_header_bt_press.png";
8786             }
8787             description { state: "focused" 0.0;
8788                inherit: "default" 0.0;
8789                image.normal: "00_Option_header_bt_focus.png";
8790             }
8791          }
8792          part { name: "padding_left_top";
8793             type: RECT;
8794             scale: 1;
8795             mouse_events: 0;
8796             description { state: "default" 0.0;
8797                align: 0.0 0.0;
8798                rel2.relative: 0.0 0.0;
8799                min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8800                fixed: 1 1;
8801                visible: 0;
8802             }
8803          }
8804          part { name: "padding_right_bottom";
8805             type: RECT;
8806             scale: 1;
8807             mouse_events: 0;
8808             description { state: "default" 0.0;
8809                align: 1.0 1.0;
8810                rel1.relative: 1.0 1.0;
8811                min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
8812                fixed: 1 1;
8813                visible: 0;
8814             }
8815          }
8816          part { name: "icon_rect";
8817             type: RECT;
8818             scale: 1;
8819             mouse_events: 0;
8820             description { state: "default" 0.0;
8821                min: 0 0;
8822                fixed: 1 0;
8823                rel1 {
8824                   relative: 1.0 1.0;
8825                   to: "padding_left_top";
8826                }
8827                rel2 {
8828                   relative: 1.0 0.0;
8829                   to_x: "padding_left_top";
8830                   to_y: "padding_right_bottom";
8831                }
8832                align: 0.0 0.5;
8833                color: 0 0 0 0;
8834             }
8835             description { state: "visible" 0.0;
8836                min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
8837                fixed: 1 0;
8838                rel1 {
8839                   relative: 1.0 1.0;
8840                   to: "padding_left_top";
8841                }
8842                rel2 {
8843                   relative: 1.0 0.0;
8844                   to_x: "padding_left_top";
8845                   to_y: "padding_right_bottom";
8846                }
8847                align: 0.0 0.5;
8848                color: 0 0 0 0;
8849             }
8850             description { state: "icononly" 0.0;
8851                inherit: "default" 0.0;
8852             }
8853          }
8854          part { name: "padding_after_icon";
8855             type: RECT;
8856             scale: 1;
8857             mouse_events: 0;
8858             description { state: "default" 0.0; //when only icon or no icon is there
8859                align: 0.0 0.0;
8860                rel1 {
8861                   relative: 1.0 0.0;
8862                   to: "icon_rect";
8863                }
8864                rel2.to: "icon_rect";
8865                fixed: 1 0;
8866                min: 0 0;
8867                color: 0 0 0 0;
8868             }
8869             description { state: "visible" 0.0;
8870                align: 0.0 0.0;
8871                rel1 {
8872                   relative: 1.0 0.0;
8873                   to: "icon_rect";
8874                }
8875                rel2.to: "icon_rect";
8876                fixed: 1 0;
8877                min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
8878                color: 0 0 0 0;
8879             }
8880             description { state: "icononly" 0.0;
8881                inherit: "default" 0.0;
8882             }
8883          }
8884          part { name: "padding_before_text";
8885             type: RECT;
8886             scale: 1;
8887             mouse_events: 0;
8888             description { state: "default" 0.0; //when only icon or no icon is there
8889                align: 1.0 0.5;
8890                rel1 {
8891                   relative: 0.0 1.0;
8892                   to_x: "elm.text";
8893                   to_y: "padding_left_top";
8894                }
8895                rel2 {
8896                   relative: 0.0 0.0;
8897                   to_x: "elm.text";
8898                   to_y: "padding_right_bottom";
8899                }
8900                fixed: 1 0;
8901                min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
8902                color: 0 0 0 0;
8903             }
8904          }
8905          part { name: "elm.swallow.content";
8906             type: SWALLOW;
8907             scale: 1;
8908             clip_to: "clipper";
8909             description { state: "default" 0.0;
8910                visible: 0;
8911                align: 0.0 0.5;
8912                rel1 {
8913                   relative: 1.0 1.0;
8914                   to: "padding_left_top";
8915                }
8916                rel2 {
8917                   relative: 1.0 0.0;
8918                   to_x: "padding_left_top";
8919                   to_y: "padding_right_bottom";
8920                }
8921                fixed: 1 0;
8922             }
8923             description { state: "visible" 0.0;
8924                fixed: 1 0;
8925                min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8926                max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
8927                align: 1.0 0.5;
8928                rel1 {
8929                   relative: 0.0 1.0;
8930                   to_x: "padding_before_text";
8931                   to_y: "padding_left_top";
8932                }
8933                rel2 {
8934                   relative: 0.0 0.0;
8935                   to_x: "padding_before_text";
8936                   to_y: "padding_right_bottom";
8937                }
8938                aspect: 1.0 1.0;
8939                aspect_preference: VERTICAL;
8940             }
8941             description { state: "icononly" 0.0;
8942                min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8943                max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
8944                rel1 {
8945                   relative: 1.0 1.0;
8946                   to: "padding_left_top";
8947                }
8948                rel2 {
8949                   relative: 0.0 0.0;
8950                   to: "padding_right_bottom";
8951                }
8952                aspect: 1.0 1.0;
8953                aspect_preference: VERTICAL;
8954             }
8955          }
8956          part { name: "elm.text";
8957             type: TEXT;
8958             mouse_events: 0;
8959             scale: 1;
8960             clip_to: "clipper";
8961             description { state: "default" 0.0;
8962                visible: 0;
8963                rel1 {
8964                   relative: 1.0 1.0;
8965                   to_x: "padding_after_icon";
8966                   to_y: "padding_left_top";
8967                }
8968                rel2 {
8969                   relative: 0.0 0.0;
8970                   to: "padding_right_bottom";
8971                }
8972                color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
8973                text {
8974                   font: "SLP:style=Medium";
8975                   size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
8976                   min: 0 0;
8977                   max: 1 0;
8978                   text_class: "slp_medium";
8979                }
8980             }
8981             description { state: "visible" 0.0;
8982                inherit: "default" 0.0;
8983                visible: 1;
8984             }
8985             description { state: "clicked" 0.0;
8986                inherit: "default" 0.0;
8987                visible: 1;
8988                min: 0 0;
8989             }
8990             description { state: "focused" 0.0;
8991                inherit: "default" 0.0;
8992                visible: 1;
8993                min: 0 0;
8994                color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
8995             }
8996          }
8997          part { name: "over2";
8998             type: RECT;
8999             repeat_events: 1;
9000             ignore_flags: ON_HOLD;
9001             description { state: "default" 0.0;
9002                color: 0 0 0 0;
9003             }
9004          }
9005          part { name: "over3";
9006             type: RECT;
9007             repeat_events: 1;
9008             description { state: "default" 0.0;
9009                color: 0 0 0 0;
9010             }
9011          }
9012          part { name: "clipper";
9013             type: RECT;
9014             description { state: "default" 0.0;
9015                color: 255 255 255 255;
9016             }
9017             description { state: "disabled" 0.0;
9018                color: 255 255 255 127;
9019             }
9020          }
9021          part { name: "disabler";
9022             type: RECT;
9023             description { state: "default" 0.0;
9024                color: 0 0 0 0;
9025                visible: 0;
9026             }
9027             description { state: "disabled" 0.0;
9028                inherit: "default" 0.0;
9029                visible: 1;
9030             }
9031          }
9032       }
9033       programs {
9034          program { name: "button_click";
9035             signal: "mouse,down,1";
9036             source: "over2";
9037             action: SIGNAL_EMIT "elm,action,press" "";
9038             after: "button_click_anim";
9039          }
9040          program { name: "button_click_anim";
9041             action: STATE_SET "clicked" 0.0;
9042             target: "button_image";
9043             after: "text_clicked";
9044          }
9045          program { name: "text_clicked";
9046             script {
9047                new st[31];
9048                new Float:vl;
9049                get_state(PART:"elm.text", st, 30, vl);
9050                if (!strcmp(st, "visible"))
9051                  set_state(PART:"elm.text", "clicked", 0.0);
9052             }
9053          }
9054          program { name: "button_unpress";
9055             action: SIGNAL_EMIT "elm,action,unpress" "";
9056          }
9057          program { name: "button_mouseout_clicked";
9058             signal: "mouse,up,1";
9059             source: "over3";
9060             script {
9061                new st[31];
9062                new Float:vl;
9063                get_state(PART:"elm.swallow.content", st, 30, vl);
9064                if (strcmp(st, "icononly"))
9065                  {
9066                     emit("elm,action,default,text,set", "");
9067                     set_state(PART:"elm.text", "visible", 0.0);
9068                  }
9069                if (get_int(button_state) != BUTTON_STATE_DISABLED)
9070                  set_state(PART:"button_image", "default", 0.0);
9071             }
9072             after: button_unpress;
9073          }
9074          program { name: "touch_snd";
9075             signal: "mouse,clicked,1";
9076             source: "over2";
9077             action: PLAY_SAMPLE "touch_sound" 1.0;
9078             after: button_unclick3;
9079          }
9080          program { name: "button_unclick3";
9081             action: SIGNAL_EMIT "elm,action,click" "";
9082          }
9083          program { name: "text_show";
9084             signal: "elm,state,text,visible";
9085             source: "elm";
9086             script {
9087                new st[31];
9088                new Float:vl;
9089                get_state(PART:"elm.swallow.content", st, 30, vl);
9090                if (!strcmp(st, "icononly"))
9091                  {
9092                     set_state(PART:"elm.swallow.content", "visible", 0.0);
9093                     set_state(PART:"icon_rect", "visible", 0.0);
9094                     set_state(PART:"padding_after_icon", "visible", 0.0);
9095                  }
9096                set_state(PART:"elm.text", "visible", 0.0);
9097             }
9098          }
9099          program { name: "text_hide";
9100             signal: "elm,state,text,hidden";
9101             source: "elm";
9102             script {
9103                new st[31];
9104                new Float:vl;
9105                get_state(PART:"elm.swallow.content", st, 30, vl);
9106                if (!strcmp(st, "visible"))
9107                  {
9108                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
9109                     set_state(PART:"icon_rect", "icononly", 0.0);
9110                     set_state(PART:"padding_after_icon", "icononly", 0.0);
9111                  }
9112                set_state(PART:"elm.text", "default", 0.0);
9113             }
9114          }
9115          program { name: "icon_show";
9116             signal: "elm,state,icon,visible";
9117             source: "elm";
9118             script {
9119                new st[31];
9120                new Float:vl;
9121                get_state(PART:"elm.text", st, 30, vl);
9122                if (!strcmp(st, "visible"))
9123                  {
9124                     set_state(PART:"elm.swallow.content", "visible", 0.0);
9125                     set_state(PART:"icon_rect", "visible", 0.0);
9126                     set_state(PART:"padding_after_icon", "visible", 0.0);
9127                  }
9128                else
9129                  {
9130                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
9131                     set_state(PART:"icon_rect", "icononly", 0.0);
9132                     set_state(PART:"padding_after_icon", "icononly", 0.0);
9133                  }
9134             }
9135          }
9136          program { name: "icon_hide";
9137             signal: "elm,state,icon,hidden";
9138             source: "elm";
9139             action: STATE_SET "default" 0.0;
9140             target: "elm.swallow.content";
9141             target: "icon_rect";
9142             target: "padding_after_icon";
9143          }
9144          program { name: "disable";
9145             signal: "elm,state,disabled";
9146             source: "elm";
9147             action: STATE_SET "disabled" 0.0;
9148             target: "button_image";
9149             target: "clipper";
9150             target: "disabler";
9151             after: "disable_text";
9152          }
9153          program { name: "disable_text";
9154             script {
9155                new st[31];
9156                new Float:vl;
9157                set_int(button_state, BUTTON_STATE_DISABLED);
9158                get_state(PART:"elm.text", st, 30, vl);
9159                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9160                  set_state(PART:"elm.text", "visible", 0.0);
9161             }
9162          }
9163          program { name: "enable";
9164             signal: "elm,state,enabled";
9165             source: "elm";
9166             action: STATE_SET "default" 0.0;
9167             target: "button_image";
9168             target: "clipper";
9169             target: "disabler";
9170             after: "enable_text";
9171          }
9172          program { name: "enable_text";
9173             script {
9174                new st[31];
9175                new Float:vl;
9176                set_int(button_state, BUTTON_STATE_ENABLED);
9177                get_state(PART:"elm.text", st, 30, vl);
9178                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9179                  set_state(PART:"elm.text", "visible", 0.0);
9180             }
9181          }
9182          program { name: "focused";
9183             //signal: "elm,action,focus";
9184             //source: "elm";
9185             action: STATE_SET "focused" 0.0;
9186             target: "button_image";
9187             target: "elm.text";
9188          }
9189          program { name: "unfocused";
9190             //signal: "elm,action,unfocus";
9191             //source: "elm";
9192             action: STATE_SET "default" 0.0;
9193             target: "button_image";
9194             after: "unfocus_text";
9195          }
9196          program { name: "unfocus_text";
9197             action: STATE_SET "visible" 0.0;
9198             target: "elm.text";
9199          }
9200       }
9201    }
9202
9203 ///////////////////////////////////////////////////////////////////////////////////////
9204    group { name: "elm/button/base/naviframe_control/multiline";
9205       script {
9206          public button_state = BUTTON_STATE_ENABLED;
9207       }
9208       images {
9209          image: "00_Option_header_bt.png" COMP;
9210          image: "00_Option_header_bt_dim.png" COMP;
9211          image: "00_Option_header_bt_press.png" COMP;
9212          image: "00_Option_header_bt_focus.png" COMP;
9213       }
9214       styles{
9215          style { name: "btn_multiline_naviframe_controlbar_style";
9216             base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed text_class=slp_medium";
9217             tag: "br" "\n";
9218             tag: "ps" "ps";
9219             tag: "tab" "\t";
9220          }
9221       }
9222       parts {
9223          part { name: "button_image";
9224             scale: 1;
9225             description { state: "default" 0.0;
9226                min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
9227                rel1.offset: 0 0;
9228                rel2.offset: -1 -1;
9229                image {
9230                   normal: "00_Option_header_bt.png";
9231                   border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
9232                }
9233                color: 255 255 255 255;
9234             }
9235             description { state: "disabled" 0.0;
9236                inherit: "default" 0.0;
9237                image.normal: "00_Option_header_bt_dim.png";
9238             }
9239             description { state: "clicked" 0.0;
9240                inherit: "default" 0.0;
9241                image.normal: "00_Option_header_bt_press.png";
9242             }
9243             description { state: "focused" 0.0;
9244                inherit: "default" 0.0;
9245                image.normal: "00_Option_header_bt_focus.png";
9246             }
9247          }
9248          part { name: "padding_left_top";
9249             type: RECT;
9250             scale: 1;
9251             mouse_events: 0;
9252             description { state: "default" 0.0;
9253                align: 0.0 0.0;
9254                rel2.relative: 0.0 0.0;
9255                min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9256                fixed: 1 1;
9257                visible: 0;
9258             }
9259          }
9260          part { name: "padding_right_bottom";
9261             type: RECT;
9262             scale: 1;
9263             mouse_events: 0;
9264             description { state: "default" 0.0;
9265                align: 1.0 1.0;
9266                rel1.relative: 1.0 1.0;
9267                min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
9268                fixed: 1 1;
9269                visible: 0;
9270             }
9271          }
9272          part { name: "icon_rect";
9273             type: RECT;
9274             scale: 1;
9275             mouse_events: 0;
9276             description { state: "default" 0.0;
9277                visible: 0;
9278                min: 0 0;
9279                fixed: 1 0;
9280                rel1 {
9281                   relative: 0.0 1.0;
9282                   to_x: "elm.swallow.content";
9283                   to_y: "padding_left_top";
9284                }
9285                rel2 {
9286                   relative: 1.0 0.0;
9287                   to_x: "elm.swallow.content";
9288                   to_y: "padding_right_bottom";
9289                }
9290                align: 0.0 0.5;
9291             }
9292          }
9293          part { name: "padding_icon_text";
9294             type: RECT;
9295             scale: 1;
9296             mouse_events: 0;
9297             description { state: "default" 0.0; //when only icon or no icon is there
9298                visible: 0;
9299                align: 0.0 0.0;
9300                rel1 {
9301                   relative: 1.0 0.0;
9302                   to: "icon_rect";
9303                }
9304                rel2 {
9305                   relative: 1.0 1.0;
9306                   to: "icon_rect";
9307                }
9308                fixed: 1 0;
9309                min: 0 0;
9310             }
9311             description { state: "visible" 0.0;
9312                inherit: "default" 0.0;
9313                min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
9314                rel1 {
9315                   relative: 1.0 0.0;
9316                   to: "icon_rect";
9317                }
9318                rel2 {
9319                   relative: 1.0 1.0;
9320                   to: "icon_rect";
9321                }
9322            }
9323             description { state: "icononly" 0.0;
9324                inherit: "default" 0.0;
9325             }
9326          }
9327          part { name: "elm.swallow.content";
9328             type: SWALLOW;
9329             scale: 1;
9330             clip_to: "clipper";
9331             description { state: "default" 0.0;
9332                visible: 0;
9333                align: 0.0 0.5;
9334                rel1 {
9335                   relative: 1.0 1.0;
9336                   to: "padding_left_top";
9337                }
9338                rel2 {
9339                   relative: 1.0 0.0;
9340                   to_x: "padding_left_top";
9341                   to_y: "padding_right_bottom";
9342                }
9343                fixed: 1 0;
9344             }
9345             description { state: "visible" 0.0;
9346                fixed: 1 0;
9347                min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9348                max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
9349                align: 0.0 0.5;
9350                rel1 {
9351                   relative: 1.0 1.0;
9352                   to: "padding_left_top";
9353                }
9354                rel2 {
9355                   relative: 0.0 0.0;
9356                   to_x: "padding_left_top";
9357                   to_y: "padding_right_bottom";
9358                }
9359             }
9360             description { state: "icononly" 0.0;
9361                min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9362                max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
9363                rel1 {
9364                   relative: 1.0 1.0;
9365                   to: "padding_left_top";
9366                }
9367                rel2 {
9368                   relative: 0.0 0.0;
9369                   to: "padding_right_bottom";
9370                }
9371             }
9372          }
9373          part { name: "elm.text";
9374             type: TEXTBLOCK;
9375             mouse_events: 0;
9376             scale: 1;
9377             clip_to: "clipper";
9378             description { state: "default" 0.0;
9379                visible: 0;
9380                rel1 {
9381                   relative: 1.0 1.0;
9382                   to_x: "padding_icon_text";
9383                   to_y: "padding_left_top";
9384                }
9385                rel2 {
9386                    relative: 0.0 0.0;
9387                    to: "padding_right_bottom";
9388                }
9389                color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
9390                text {
9391                   style: "btn_multiline_naviframe_controlbar_style";
9392                   min: 0 0;
9393                   max: 0 1;
9394                }
9395             }
9396             description { state: "visible" 0.0;
9397                inherit: "default" 0.0;
9398                visible: 1;
9399                min: 80 0;
9400             }
9401             description { state: "clicked" 0.0;
9402                inherit: "default" 0.0;
9403                visible: 1;
9404                min: 0 0;
9405             }
9406             description { state: "focused" 0.0;
9407                inherit: "default" 0.0;
9408                visible: 1;
9409                min: 0 0;
9410                color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
9411             }
9412          }
9413          part { name: "over2";
9414             type: RECT;
9415             repeat_events: 1;
9416             ignore_flags: ON_HOLD;
9417             description { state: "default" 0.0;
9418                color: 0 0 0 0;
9419             }
9420          }
9421          part { name: "over3";
9422             type: RECT;
9423             repeat_events: 1;
9424             description { state: "default" 0.0;
9425                color: 0 0 0 0;
9426             }
9427          }
9428          part { name: "clipper";
9429             type: RECT;
9430             description { state: "default" 0.0;
9431                color: 255 255 255 255;
9432             }
9433             description { state: "disabled" 0.0;
9434                color: 255 255 255 127;
9435             }
9436          }
9437          part { name: "disabler";
9438             type: RECT;
9439             description { state: "default" 0.0;
9440                color: 0 0 0 0;
9441                visible: 0;
9442             }
9443             description { state: "disabled" 0.0;
9444                inherit: "default" 0.0;
9445                visible: 1;
9446             }
9447          }
9448       }
9449       programs {
9450          program { name: "button_click";
9451             signal: "mouse,down,1";
9452             source: "over2";
9453             action: SIGNAL_EMIT "elm,action,press" "";
9454             after: "button_click_anim";
9455          }
9456          program { name: "button_click_anim";
9457             action: STATE_SET "clicked" 0.0;
9458             target: "button_image";
9459             after: "text_clicked";
9460          }
9461          program { name: "text_clicked";
9462             script {
9463                new st[31];
9464                new Float:vl;
9465                get_state(PART:"elm.text", st, 30, vl);
9466                if (!strcmp(st, "visible"))
9467                  set_state(PART:"elm.text", "clicked", 0.0);
9468             }
9469          }
9470          program { name: "button_unpress";
9471             action: SIGNAL_EMIT "elm,action,unpress" "";
9472          }
9473          program { name: "button_mouseout_clicked";
9474             signal: "mouse,up,1";
9475             source: "over3";
9476             script {
9477                new st[31];
9478                new Float:vl;
9479                get_state(PART:"elm.swallow.content", st, 30, vl);
9480                if (strcmp(st, "icononly"))
9481                  {
9482                     emit("elm,action,default,text,set", "");
9483                     set_state(PART:"elm.text", "visible", 0.0);
9484                  }
9485                if (get_int(button_state) != BUTTON_STATE_DISABLED)
9486                  set_state(PART:"button_image", "default", 0.0);
9487             }
9488             after: button_unpress;
9489          }
9490          program { name: "touch_snd";
9491             signal: "mouse,clicked,1";
9492             source: "over2";
9493             action: PLAY_SAMPLE "touch_sound" 1.0;
9494             after: button_unclick3;
9495          }
9496          program { name: "button_unclick3";
9497             action: SIGNAL_EMIT "elm,action,click" "";
9498          }
9499          program { name: "text_show";
9500             signal: "elm,state,text,visible";
9501             source: "elm";
9502             script {
9503                new st[31];
9504                new Float:vl;
9505                get_state(PART:"elm.swallow.content", st, 30, vl);
9506                if (!strcmp(st, "icononly"))
9507                  {
9508                     set_state(PART:"elm.swallow.content", "visible", 0.0);
9509                     set_state(PART:"padding_icon_text", "visible", 0.0);
9510                  }
9511                set_state(PART:"elm.text", "visible", 0.0);
9512             }
9513          }
9514          program { name: "text_hide";
9515             signal: "elm,state,text,hidden";
9516             source: "elm";
9517             script {
9518                new st[31];
9519                new Float:vl;
9520                get_state(PART:"elm.swallow.content", st, 30, vl);
9521                if (!strcmp(st, "visible"))
9522                  {
9523                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
9524                     set_state(PART:"padding_icon_text", "icononly", 0.0);
9525                  }
9526                set_state(PART:"elm.text", "default", 0.0);
9527             }
9528          }
9529          program { name: "icon_show";
9530             signal: "elm,state,icon,visible";
9531             source: "elm";
9532             script {
9533                new st[31];
9534                new Float:vl;
9535                get_state(PART:"elm.text", st, 30, vl);
9536                if (!strcmp(st, "visible"))
9537                  {
9538                     set_state(PART:"elm.swallow.content", "visible", 0.0);
9539                     set_state(PART:"padding_icon_text", "visible", 0.0);
9540                  }
9541                else
9542                  {
9543                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
9544                     set_state(PART:"padding_icon_text", "icononly", 0.0);
9545                  }
9546             }
9547          }
9548          program { name: "icon_hide";
9549             signal: "elm,state,icon,hidden";
9550             source: "elm";
9551             action: STATE_SET "default" 0.0;
9552             target: "elm.swallow.content";
9553             target: "padding_icon_text";
9554          }
9555          program { name: "disable";
9556             signal: "elm,state,disabled";
9557             source: "elm";
9558             action: STATE_SET "disabled" 0.0;
9559             target: "button_image";
9560             target: "clipper";
9561             target: "disabler";
9562             after: "disable_text";
9563          }
9564          program { name: "disable_text";
9565             script {
9566                new st[31];
9567                new Float:vl;
9568                set_int(button_state, BUTTON_STATE_DISABLED);
9569                get_state(PART:"elm.text", st, 30, vl);
9570                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9571                  set_state(PART:"elm.text", "visible", 0.0);
9572             }
9573          }
9574          program { name: "enable";
9575             signal: "elm,state,enabled";
9576             source: "elm";
9577             action: STATE_SET "default" 0.0;
9578             target: "button_image";
9579             target: "clipper";
9580             target: "disabler";
9581             after: "enable_text";
9582          }
9583          program { name: "enable_text";
9584             script {
9585                new st[31];
9586                new Float:vl;
9587                set_int(button_state, BUTTON_STATE_ENABLED);
9588                get_state(PART:"elm.text", st, 30, vl);
9589                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
9590                  set_state(PART:"elm.text", "visible", 0.0);
9591             }
9592          }
9593          program { name: "focused";
9594             //signal: "elm,action,focus";
9595             //source: "elm";
9596             action: STATE_SET "focused" 0.0;
9597             target: "button_image";
9598             target: "elm.text";
9599          }
9600          program { name: "unfocused";
9601             //signal: "elm,action,unfocus";
9602             //source: "elm";
9603             action: STATE_SET "default" 0.0;
9604             target: "button_image";
9605             after: "unfocus_text";
9606          }
9607          program { name: "unfocus_text";
9608             action: STATE_SET "visible" 0.0;
9609             target: "elm.text";
9610          }
9611       }
9612    }
9613
9614 /////////////////////////////////////////////////////////////
9615    group { name: "elm/button/base/naviframe/title1/default";
9616       images {
9617          image: "00_winset_Back_btn_normal.png" COMP;
9618          image: "00_winset_Back_btn_press.png" COMP;
9619          image: "00_winset_Back_btn_normal_focus.png" COMP;
9620       }
9621       script {
9622          public button_state = BUTTON_STATE_ENABLED;
9623       }
9624       parts {
9625          part { name: "button_image";
9626             scale: 1;
9627             description { state: "default" 0.0;
9628                min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9629                image {
9630                   normal: "00_winset_Back_btn_normal.png";
9631                   border: BUTTON_NAVIFRAME_TITLE1_BG_BORDER_INC;
9632                   border_scale: 1;
9633                }
9634             }
9635             description { state: "clicked" 0.0;
9636                inherit: "default" 0.0;
9637                image.normal: "00_winset_Back_btn_press.png";
9638             }
9639             description { state: "disabled" 0.0;
9640                inherit: "default" 0.0;
9641                color: 127 127 127 127;
9642             }
9643             description { state: "focused" 0.0;
9644                inherit: "default" 0.0;
9645                image.normal: "00_winset_Back_btn_normal_focus.png";
9646             }
9647          }
9648          part { name: "padding_left_top";
9649             type: RECT;
9650             scale: 1;
9651             mouse_events: 0;
9652             description { state: "default" 0.0;
9653                align: 0.0 0.0;
9654                rel2.relative: 0.0 0.0;
9655                min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9656                fixed: 1 1;
9657                visible: 0;
9658             }
9659          }
9660          part { name: "bg";
9661             type: RECT;
9662             scale: 1;
9663             mouse_events: 0;
9664             description { state: "default" 0.0;
9665                min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9666                visible: 0;
9667             }
9668             description { state: "visible" 0.0;
9669                inherit: "default" 0.0;
9670                min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9671             }
9672             description { state: "icononly" 0.0;
9673                inherit: "default" 0.0;
9674                min: BUTTON_NAVIFRAME_TITLE1_BG_MIN_INC;
9675             }
9676          }
9677          part { name: "padding_right_bottom";
9678             type: RECT;
9679             scale: 1;
9680             mouse_events: 0;
9681             description { state: "default" 0.0;
9682                align: 1.0 1.0;
9683                rel1.relative: 1.0 1.0;
9684                min: BUTTON_NAVIFRAME_TITLE1_PADDING_MIN_INC;
9685                fixed: 1 1;
9686                visible: 0;
9687             }
9688          }
9689          part { name: "icon_rect";
9690             type: RECT;
9691             scale: 1;
9692             mouse_events: 0;
9693             description { state: "default" 0.0;
9694                visible: 0;
9695                min: 0 0;
9696                fixed: 1 0;
9697                rel1 {
9698                   relative: 1.0 1.0;
9699                   to: "padding_left_top";
9700                }
9701                rel2 {
9702                   relative: 1.0 0.0;
9703                   to_x: "padding_left_top";
9704                   to_y: "padding_right_bottom";
9705                }
9706                align: 0.0 0.5;
9707             }
9708             description { state: "visible" 0.0;
9709                visible: 0;
9710                min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9711                max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
9712                fixed: 1 0;
9713                rel1 {
9714                   relative: 1.0 1.0;
9715                   to: "padding_left_top";
9716                }
9717                rel2 {
9718                   relative: 1.0 0.0;
9719                   to_x: "padding_left_top";
9720                   to_y: "padding_right_bottom";
9721                }
9722                align: 0.0 0.5;
9723             }
9724             description { state: "icononly" 0.0;
9725                inherit: "default" 0.0;
9726             }
9727          }
9728          part { name: "padding_after_icon";
9729             type: RECT;
9730             scale: 1;
9731             mouse_events: 0;
9732             description { state: "default" 0.0; //when only icon or no icon is there
9733                align: 0.0 0.0;
9734                rel1 {
9735                   relative: 1.0 0.0;
9736                   to: "icon_rect";
9737                }
9738                rel2.to: "icon_rect";
9739                fixed: 1 0;
9740                min: 0 0;
9741                visible: 0;
9742             }
9743             description { state: "visible" 0.0;
9744                visible: 0;
9745                align: 0.0 0.0;
9746                rel1 {
9747                   relative: 1.0 0.0;
9748                   to: "icon_rect";
9749                }
9750                rel2.to: "icon_rect";
9751                fixed: 1 0;
9752                min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9753             }
9754             description { state: "icononly" 0.0;
9755                inherit: "default" 0.0;
9756             }
9757          }
9758          part { name: "padding_before_text";
9759             type: RECT;
9760             scale: 1;
9761             mouse_events: 0;
9762             description { state: "default" 0.0; //when only icon or no icon is there
9763                align: 1.0 0.5;
9764                rel1 {
9765                   relative: 0.0 1.0;
9766                   to_x: "elm.text";
9767                   to_y: "padding_left_top";
9768                }
9769                rel2 {
9770                   relative: 0.0 0.0;
9771                   to_x: "elm.text";
9772                   to_y: "padding_right_bottom";
9773                }
9774                fixed: 1 0;
9775                min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
9776                visible: 0;
9777             }
9778          }
9779          part { name: "elm.swallow.content";
9780             type: SWALLOW;
9781             scale: 1;
9782             clip_to: "clipper";
9783             description { state: "default" 0.0;
9784                visible: 0;
9785                align: 0.0 0.5;
9786                rel1 {
9787                   relative: 1.0 1.0;
9788                   to: "padding_left_top";
9789                }
9790                rel2 {
9791                   relative: 1.0 0.0;
9792                   to_x: "padding_left_top";
9793                   to_y: "padding_right_bottom";
9794                }
9795                fixed: 1 0;
9796             }
9797             description { state: "visible" 0.0;
9798                fixed: 1 0;
9799                min: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9800                max: BUTTON_NAVIFRAME_TITLE1_VISIBLE_ICON_MIN_MAX_INC;
9801                align: 1.0 0.5;
9802                rel1 {
9803                   relative: 0.0 1.0;
9804                   to_x: "padding_before_text";
9805                   to_y: "padding_left_top";
9806                }
9807                rel2 {
9808                   relative: 0.0 0.0;
9809                   to_x: "padding_before_text";
9810                   to_y: "padding_right_bottom";
9811                }
9812             }
9813             description { state: "icononly" 0.0;
9814                min: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9815                max: BUTTON_NAVIFRAME_TITLE1_ICONONLY_ICON_MIN_MAX_INC;
9816             }
9817          }
9818          part { name: "elm.text";
9819             type: TEXT;
9820             mouse_events: 0;
9821             scale: 1;
9822             clip_to: "clipper";
9823             description { state: "default" 0.0;
9824                visible: 0;
9825                rel1 {
9826                   relative: 1.0 1.0;
9827                   to_x: "padding_after_icon";
9828                   to_y: "padding_left_top";
9829                }
9830                rel2 {
9831                   relative: 0.0 0.0;
9832                   to: "padding_right_bottom";
9833                }
9834                color: BUTTON_NAVIFRAME_TITLE1_NORMAL_COLOR_INC;
9835                text {
9836                   font: "SLP:style=Medium";
9837                   size: BUTTON_NAVIFRAME_TITLE1_FONT_SIZE_INC;
9838                   min: 1 0;
9839                   max: 1 0;
9840                   text_class: "slp_medium";
9841                }
9842             }
9843             description { state: "visible" 0.0;
9844                inherit: "default" 0.0;
9845                visible: 1;
9846             }
9847             description { state: "clicked" 0.0;
9848                inherit: "default" 0.0;
9849                visible: 1;
9850                color: BUTTON_NAVIFRAME_TITLE1_PRESSED_COLOR_INC;
9851             }
9852             description { state: "disabled" 0.0;
9853                inherit: "default" 0.0;
9854                color: 0 0 0 128;
9855             }
9856             description { state: "disabled_visible" 0.0;
9857                inherit: "default" 0.0;
9858                color: BUTTON_NAVIFRAME_TITLE1_DISABLED_COLOR_INC;
9859                visible: 1;
9860             }
9861             description { state: "focused" 0.0;
9862                inherit: "default" 0.0;
9863                visible: 1;
9864                color: BUTTON_NAVIFRAME_TITLE1_FOCUSED_COLOR_INC;
9865             }
9866          }
9867          part { name: "over2";
9868             type: RECT;
9869             repeat_events: 1;
9870             ignore_flags: ON_HOLD;
9871             description { state: "default" 0.0;
9872                color: 0 0 0 0;
9873             }
9874          }
9875          part { name: "over3";
9876             type: RECT;
9877             repeat_events: 1;
9878             description { state: "default" 0.0;
9879                color: 0 0 0 0;
9880             }
9881          }
9882          part { name: "clipper";
9883             type: RECT;
9884             description { state: "default" 0.0;
9885                color: 255 255 255 255;
9886             }
9887          }
9888          part { name: "disabler";
9889             type: RECT;
9890             description { state: "default" 0.0;
9891                color: 0 0 0 0;
9892                visible: 0;
9893             }
9894             description { state: "disabled" 0.0;
9895                inherit: "default" 0.0;
9896                visible: 1;
9897             }
9898          }
9899       }
9900       programs {
9901          program { name: "button_click";
9902             signal: "mouse,down,1";
9903             source: "over2";
9904             action: SIGNAL_EMIT "elm,action,press" "";
9905             after: "button_click_anim";
9906          }
9907          program { name: "button_click_anim";
9908             action: STATE_SET "clicked" 0.0;
9909             target: "button_image";
9910             after: "text_clicked";
9911          }
9912          program { name: "text_clicked";
9913             script {
9914                new st[31];
9915                new Float:vl;
9916                get_state(PART:"elm.text", st, 30, vl);
9917                if (!strcmp(st, "visible"))
9918                  set_state(PART:"elm.text", "clicked", 0.0);
9919             }
9920          }
9921          program { name: "button_unpress";
9922             action: SIGNAL_EMIT "elm,action,unpress" "";
9923          }
9924          program { name: "button_mouseout_clicked";
9925             signal: "mouse,up,1";
9926             source: "over3";
9927             script {
9928                new st[31];
9929                new Float:vl;
9930                get_state(PART:"elm.swallow.content", st, 30, vl);
9931                if (strcmp(st, "icononly"))
9932                  {
9933                     emit("elm,action,default,text,set", "");
9934                     set_state(PART:"elm.text", "visible", 0.0);
9935                  }
9936                if (get_int(button_state) != BUTTON_STATE_DISABLED)
9937                  set_state(PART:"button_image", "default", 0.0);
9938             }
9939             after: button_unpress;
9940          }
9941          program { name: "touch_snd";
9942             signal: "mouse,clicked,1";
9943             source: "over2";
9944             action: PLAY_SAMPLE "touch_sound" 1.0;
9945             after: button_unclick3;
9946          }
9947          program { name: "button_unclick3";
9948             action: SIGNAL_EMIT "elm,action,click" "";
9949          }
9950          program { name: "text_show";
9951             signal: "elm,state,text,visible";
9952             source: "elm";
9953             script {
9954                new st[31];
9955                new Float:vl;
9956                get_state(PART:"elm.swallow.content", st, 30, vl);
9957                if (!strcmp(st, "icononly"))
9958                  {
9959                     set_state(PART:"elm.swallow.content", "visible", 0.0);
9960                     set_state(PART:"icon_rect", "visible", 0.0);
9961                     set_state(PART:"padding_after_icon", "visible", 0.0);
9962                     set_state(PART:"bg", "visible", 0.0);
9963                  }
9964                if (get_int(button_state) != BUTTON_STATE_DISABLED)
9965                  set_state(PART:"elm.text", "visible", 0.0);
9966                else
9967                  set_state(PART:"elm.text", "disabled_visible", 0.0);
9968             }
9969          }
9970          program { name: "text_hide";
9971             signal: "elm,state,text,hidden";
9972             source: "elm";
9973             script {
9974                new st[31];
9975                new Float:vl;
9976                get_state(PART:"elm.swallow.content", st, 30, vl);
9977                if (!strcmp(st, "visible"))
9978                  {
9979                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
9980                     set_state(PART:"icon_rect", "icononly", 0.0);
9981                     set_state(PART:"padding_after_icon", "icononly", 0.0);
9982                     set_state(PART:"bg", "icononly", 0.0);
9983                  }
9984                set_state(PART:"elm.text", "default", 0.0);
9985             }
9986          }
9987          program { name: "icon_show";
9988             signal: "elm,state,icon,visible";
9989             source: "elm";
9990             script {
9991                new st[31];
9992                new Float:vl;
9993                get_state(PART:"elm.text", st, 30, vl);
9994                if (!strcmp(st, "visible"))
9995                  {
9996                     set_state(PART:"elm.swallow.content", "visible", 0.0);
9997                     set_state(PART:"icon_rect", "visible", 0.0);
9998                     set_state(PART:"padding_after_icon", "visible", 0.0);
9999                     set_state(PART:"bg", "visible", 0.0);
10000                  }
10001                else
10002                  {
10003                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
10004                     set_state(PART:"icon_rect", "icononly", 0.0);
10005                     set_state(PART:"padding_after_icon", "icononly", 0.0);
10006                     set_state(PART:"bg", "icononly", 0.0);
10007                  }
10008             }
10009          }
10010          program { name: "icon_hide";
10011             signal: "elm,state,icon,hidden";
10012             source: "elm";
10013             action: STATE_SET "default" 0.0;
10014             target: "elm.swallow.content";
10015             target: "padding_after_icon";
10016             target: "icon_rect";
10017             target: "bg";
10018          }
10019          program { name: "disable";
10020             signal: "elm,state,disabled";
10021             source: "elm";
10022             action: STATE_SET "disabled" 0.0;
10023             target: "button_image";
10024             target: "disabler";
10025             after: "disable_text";
10026          }
10027          program { name: "disable_text";
10028             script {
10029                new st[31];
10030                new Float:vl;
10031                get_state(PART:"elm.text", st, 30, vl);
10032                if (!strcmp(st, "visible"))
10033                  set_state(PART:"elm.text", "disabled_visible", 0.0);
10034                else
10035                  set_state(PART:"elm.text", "disabled", 0.0);
10036                set_int(button_state, BUTTON_STATE_DISABLED);
10037             }
10038          }
10039          program { name: "enable";
10040             signal: "elm,state,enabled";
10041             source: "elm";
10042             action: STATE_SET "default" 0.0;
10043             target: "button_image";
10044             target: "disabler";
10045             after: "enable_text";
10046          }
10047          program { name: "enable_text";
10048             script {
10049                new st[31];
10050                new Float:vl;
10051                get_state(PART:"elm.text", st, 30, vl);
10052                if (!strcmp(st, "disabled_visible"))
10053                  set_state(PART:"elm.text", "visible", 0.0);
10054                else
10055                  set_state(PART:"elm.text", "default", 0.0);
10056                set_int(button_state, BUTTON_STATE_ENABLED);
10057             }
10058          }
10059          program { name: "focused";
10060             //signal: "elm,action,focus";
10061             //source: "elm";
10062             action: STATE_SET "focused" 0.0;
10063             target: "button_image";
10064             target: "elm.text";
10065          }
10066          program { name: "unfocused";
10067             //signal: "elm,action,unfocus";
10068             //source: "elm";
10069             action: STATE_SET "default" 0.0;
10070             target: "button_image";
10071             after: "unfocus_text";
10072          }
10073          program { name: "unfocus_text";
10074             action: STATE_SET "visible" 0.0;
10075             target: "elm.text";
10076          }
10077       }
10078    }
10079
10080 //////////////////////////////////////////////////////////////
10081    group { name: "elm/button/base/naviframe/title/default";
10082       script {
10083          public button_state = BUTTON_STATE_ENABLED;
10084       }
10085       images {
10086          image: "00_title_btn_bg_press.png" COMP;
10087       }
10088       styles{
10089          style { name: "btn_naviframe_style";
10090             base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipise=1.0 text_class=slp_medium";
10091             tag: "br" "\n";
10092             tag: "ps" "ps";
10093             tag: "tab" "\t";
10094          }
10095       }
10096       parts {
10097          part { name: "button_image";
10098             scale: 1;
10099             description { state: "default" 0.0;
10100                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
10101                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
10102                color: 0 0 0 0;
10103             }
10104             description { state: "clicked" 0.0;
10105                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
10106                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_MIN_INC;
10107                image {
10108                   normal: "00_title_btn_bg_press.png";
10109                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
10110                   border_scale: 1;
10111                }
10112             }
10113             description { state: "disabled" 0.0;
10114                inherit: "default" 0.0;
10115             }
10116             description { state: "focused" 0.0;
10117                inherit: "default" 0.0;
10118             }
10119          }
10120          part { name: "padding_left_top";
10121             type: RECT;
10122             scale: 1;
10123             mouse_events: 0;
10124             description { state: "default" 0.0;
10125                align: 0.0 0.0;
10126                rel2.relative: 0.0 0.0;
10127                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
10128                fixed: 1 1;
10129                visible: 0;
10130             }
10131          }
10132          part { name: "padding_right_bottom";
10133             type: RECT;
10134             scale: 1;
10135             mouse_events: 0;
10136             description { state: "default" 0.0;
10137                align: 1.0 1.0;
10138                rel1.relative: 1.0 1.0;
10139                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
10140                fixed: 1 1;
10141                visible: 0;
10142             }
10143          }
10144          part { name: "icon_rect";
10145             type: RECT;
10146             scale: 1;
10147             mouse_events: 0;
10148             description { state: "default" 0.0;
10149                visible: 0;
10150                min: 0 0;
10151                fixed: 1 0;
10152                rel1 {
10153                   relative: 1.0 1.0;
10154                   to: "padding_left_top";
10155                }
10156                rel2 {
10157                   relative: 1.0 0.0;
10158                   to_x: "padding_left_top";
10159                   to_y: "padding_right_bottom";
10160                }
10161                align: 0.0 0.5;
10162             }
10163             description { state: "visible" 0.0;
10164                visible: 0;
10165                min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10166                max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10167                fixed: 1 0;
10168                rel1 {
10169                   relative: 1.0 1.0;
10170                   to: "padding_left_top";
10171                }
10172                rel2 {
10173                   relative: 1.0 0.0;
10174                   to_x: "padding_left_top";
10175                   to_y: "padding_right_bottom";
10176                }
10177                align: 0.0 0.5;
10178             }
10179             description { state: "icononly" 0.0;
10180                inherit: "default" 0.0;
10181             }
10182          }
10183          part { name: "padding_after_icon";
10184             type: RECT;
10185             scale: 1;
10186             mouse_events: 0;
10187             description { state: "default" 0.0; //when only icon or no icon is there
10188                align: 0.0 0.0;
10189                rel1 {
10190                   relative: 1.0 0.0;
10191                   to: "icon_rect";
10192                }
10193                rel2.to: "icon_rect";
10194                fixed: 1 0;
10195                min: 0 0;
10196                visible: 0;
10197             }
10198             description { state: "visible" 0.0;
10199                visible: 0;
10200                align: 0.0 0.0;
10201                rel1 {
10202                   relative: 1.0 0.0;
10203                   to: "icon_rect";
10204                }
10205                rel2.to: "icon_rect";
10206                fixed: 1 0;
10207                min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10208             }
10209             description { state: "icononly" 0.0;
10210                inherit: "default" 0.0;
10211             }
10212          }
10213          part { name: "padding_before_text";
10214             type: RECT;
10215             scale: 1;
10216             mouse_events: 0;
10217             description { state: "default" 0.0; //when only icon or no icon is there
10218                align: 1.0 0.5;
10219                rel1 {
10220                   relative: 0.0 1.0;
10221                   to_x: "elm.text";
10222                   to_y: "padding_left_top";
10223                }
10224                rel2 {
10225                   relative: 0.0 0.0;
10226                   to_x: "elm.text";
10227                   to_y: "padding_right_bottom";
10228                }
10229                fixed: 1 0;
10230                min: BUTTON_NAVIFRAME_TITLE_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10231                visible: 0;
10232             }
10233          }
10234          part { name: "elm.swallow.content";
10235             type: SWALLOW;
10236             scale: 1;
10237             clip_to: "clipper";
10238             description { state: "default" 0.0;
10239                visible: 0;
10240                align: 0.0 0.5;
10241                rel1 {
10242                   relative: 1.0 1.0;
10243                   to: "padding_left_top";
10244                }
10245                rel2 {
10246                   relative: 1.0 0.0;
10247                   to_x: "padding_left_top";
10248                   to_y: "padding_right_bottom";
10249                }
10250                fixed: 1 0;
10251             }
10252             description { state: "visible" 0.0;
10253                fixed: 1 0;
10254                min: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10255                max: BUTTON_NAVIFRAME_TITLE_VISIBLE_ICON_RECT_MIN_MAX_INC;
10256                align: 1.0 0.5;
10257                rel1 {
10258                   relative: 0.0 1.0;
10259                   to_x: "padding_before_text";
10260                   to_y: "padding_left_top";
10261                }
10262                rel2 {
10263                   relative: 0.0 0.0;
10264                   to_x: "padding_before_text";
10265                   to_y: "padding_right_bottom";
10266                }
10267             }
10268             description { state: "icononly" 0.0;
10269                min: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
10270                max: BUTTON_NAVIFRAME_TITLE_ICONONLY_ICON_MIN_MAX_INC;
10271             }
10272          }
10273          part { name: "elm.text";
10274             type: TEXTBLOCK;
10275             mouse_events: 0;
10276             scale: 1;
10277             clip_to: "clipper";
10278             description { state: "default" 0.0;
10279                visible: 0;
10280                rel1 {
10281                   relative: 1.0 1.0;
10282                   to_x: "padding_after_icon";
10283                   to_y: "padding_left_top";
10284                }
10285                rel2 {
10286                   relative: 0.0 0.0;
10287                   to: "padding_right_bottom";
10288                }
10289                color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
10290                text {
10291                    style: "btn_naviframe_style";
10292                    min: 0 0;
10293                    max: 0 1;
10294                }
10295             }
10296             description { state: "visible" 0.0;
10297                inherit: "default" 0.0;
10298                visible: 1;
10299             }
10300             description { state: "clicked" 0.0;
10301                inherit: "default" 0.0;
10302                visible: 1;
10303                color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
10304             }
10305             description { state: "disabled" 0.0;
10306                inherit: "default" 0.0;
10307                color: 0 0 0 128;
10308             }
10309             description { state: "disabled_visible" 0.0;
10310                inherit: "default" 0.0;
10311                color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
10312                visible: 1;
10313             }
10314             description { state: "focused" 0.0;
10315                inherit: "default" 0.0;
10316                visible: 1;
10317                color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
10318             }
10319          }
10320          part { name: "over2";
10321             type: RECT;
10322             repeat_events: 1;
10323             ignore_flags: ON_HOLD;
10324             description { state: "default" 0.0;
10325                color: 0 0 0 0;
10326             }
10327          }
10328          part { name: "over3";
10329             type: RECT;
10330             repeat_events: 1;
10331             description { state: "default" 0.0;
10332                color: 0 0 0 0;
10333             }
10334          }
10335          part { name: "clipper";
10336             type: RECT;
10337             description { state: "default" 0.0;
10338                color: 255 255 255 255;
10339             }
10340          }
10341          part { name: "disabler";
10342             type: RECT;
10343             description { state: "default" 0.0;
10344                color: 0 0 0 0;
10345                visible: 0;
10346             }
10347             description { state: "disabled" 0.0;
10348                inherit: "default" 0.0;
10349                color: 127 127 127 127;
10350                visible: 1;
10351             }
10352          }
10353       }
10354       programs {
10355          program { name: "button_click";
10356             signal: "mouse,down,1";
10357             source: "over2";
10358             action: SIGNAL_EMIT "elm,action,press" "";
10359             after: "button_click_anim";
10360          }
10361          program { name: "button_click_anim";
10362             action: STATE_SET "clicked" 0.0;
10363             target: "button_image";
10364             after: "text_clicked";
10365          }
10366          program { name: "text_clicked";
10367             script {
10368                new st[31];
10369                new Float:vl;
10370                get_state(PART:"elm.text", st, 30, vl);
10371                if (!strcmp(st, "visible"))
10372                  set_state(PART:"elm.text", "clicked", 0.0);
10373             }
10374          }
10375          program { name: "button_unpress";
10376             action: SIGNAL_EMIT "elm,action,unpress" "";
10377          }
10378          program { name: "button_mouseout_clicked";
10379             signal: "mouse,up,1";
10380             source: "over3";
10381             script {
10382                new st[31];
10383                new Float:vl;
10384                get_state(PART:"elm.swallow.content", st, 30, vl);
10385                if (strcmp(st, "icononly"))
10386                  {
10387                     emit("elm,action,default,text,set", "");
10388                     set_state(PART:"elm.text", "visible", 0.0);
10389                  }
10390                if (get_int(button_state) != BUTTON_STATE_DISABLED)
10391                  set_state(PART:"button_image", "default", 0.0);
10392             }
10393             after: button_unpress;
10394          }
10395          program { name: "touch_snd";
10396             signal: "mouse,clicked,1";
10397             source: "over2";
10398             action: PLAY_SAMPLE "touch_sound" 1.0;
10399             after: button_unclick3;
10400          }
10401          program { name: "button_unclick3";
10402             action: SIGNAL_EMIT "elm,action,click" "";
10403          }
10404          program { name: "text_show";
10405             signal: "elm,state,text,visible";
10406             source: "elm";
10407             script {
10408                new st[31];
10409                new Float:vl;
10410                get_state(PART:"elm.swallow.content", st, 30, vl);
10411                if (!strcmp(st, "icononly"))
10412                  {
10413                     set_state(PART:"elm.swallow.content", "visible", 0.0);
10414                     set_state(PART:"icon_rect", "visible", 0.0);
10415                     set_state(PART:"padding_after_icon", "visible", 0.0);
10416                  }
10417                if (get_int(button_state) != BUTTON_STATE_DISABLED)
10418                  set_state(PART:"elm.text", "visible", 0.0);
10419                else
10420                  set_state(PART:"elm.text", "disabled_visible", 0.0);
10421             }
10422          }
10423          program { name: "text_hide";
10424             signal: "elm,state,text,hidden";
10425             source: "elm";
10426             script {
10427                new st[31];
10428                new Float:vl;
10429                get_state(PART:"elm.swallow.content", st, 30, vl);
10430                if (!strcmp(st, "visible"))
10431                  {
10432                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
10433                     set_state(PART:"icon_rect", "icononly", 0.0);
10434                     set_state(PART:"padding_after_icon", "icononly", 0.0);
10435                  }
10436                set_state(PART:"elm.text", "default", 0.0);
10437             }
10438          }
10439          program { name: "icon_show";
10440             signal: "elm,state,icon,visible";
10441             source: "elm";
10442             script {
10443                new st[31];
10444                new Float:vl;
10445                get_state(PART:"elm.text", st, 30, vl);
10446                if (!strcmp(st, "visible"))
10447                  {
10448                     set_state(PART:"elm.swallow.content", "visible", 0.0);
10449                     set_state(PART:"icon_rect", "visible", 0.0);
10450                     set_state(PART:"padding_after_icon", "visible", 0.0);
10451                  }
10452                else
10453                  {
10454                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
10455                     set_state(PART:"icon_rect", "icononly", 0.0);
10456                     set_state(PART:"padding_after_icon", "icononly", 0.0);
10457                  }
10458             }
10459          }
10460          program { name: "icon_hide";
10461             signal: "elm,state,icon,hidden";
10462             source: "elm";
10463             action: STATE_SET "default" 0.0;
10464             target: "elm.swallow.content";
10465             target: "padding_after_icon";
10466             target: "icon_rect";
10467          }
10468          program { name: "disable";
10469             signal: "elm,state,disabled";
10470             source: "elm";
10471             action: STATE_SET "disabled" 0.0;
10472             target: "button_image";
10473             target: "disabler";
10474             after: "disable_text";
10475          }
10476          program { name: "disable_text";
10477             script {
10478                new st[31];
10479                new Float:vl;
10480                get_state(PART:"elm.text", st, 30, vl);
10481                if (!strcmp(st, "visible"))
10482                  set_state(PART:"elm.text", "disabled_visible", 0.0);
10483                else
10484                  set_state(PART:"elm.text", "disabled", 0.0);
10485                set_int(button_state, BUTTON_STATE_DISABLED);
10486             }
10487          }
10488          program { name: "enable";
10489             signal: "elm,state,enabled";
10490             source: "elm";
10491             action: STATE_SET "default" 0.0;
10492             target: "button_image";
10493             target: "disabler";
10494             after: "enable_text";
10495          }
10496          program { name: "enable_text";
10497             script {
10498                new st[31];
10499                new Float:vl;
10500                get_state(PART:"elm.text", st, 30, vl);
10501                if (!strcmp(st, "disabled_visible"))
10502                  set_state(PART:"elm.text", "visible", 0.0);
10503                else
10504                  set_state(PART:"elm.text", "default", 0.0);
10505                set_int(button_state, BUTTON_STATE_ENABLED);
10506             }
10507          }
10508          program { name: "focused";
10509             //signal: "elm,action,focus";
10510             //source: "elm";
10511             action: STATE_SET "focused" 0.0;
10512             target: "button_image";
10513             target: "elm.text";
10514          }
10515          program { name: "unfocused";
10516             //signal: "elm,action,unfocus";
10517             //source: "elm";
10518             action: STATE_SET "default" 0.0;
10519             target: "button_image";
10520             after: "unfocus_text";
10521          }
10522          program { name: "unfocus_text";
10523             action: STATE_SET "visible" 0.0;
10524             target: "elm.text";
10525          }
10526       }
10527    }
10528
10529 ///////////////////////////////////////////////////////////////////////////////////////
10530 #define BUTTON_NAVIFRAME_TITLE_ICON_STYLES(style_name, image_normal, image_press, min_width, min_height) \
10531    group { name: "elm/button/base/naviframe/title/icon/"style_name; \
10532       images { \
10533          image: image_normal COMP; \
10534          image: image_press COMP; \
10535          image: "00_title_btn_bg_press.png" COMP; \
10536       } \
10537       parts { \
10538          part { name: "button_image"; \
10539             scale: 1; \
10540             description { state: "default" 0.0; \
10541                min: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10542                max: BUTTON_NAVIFRAME_TITLE_ICON_BG_NORMAL_MIN_INC; \
10543                color: 0 0 0 0; \
10544             } \
10545             description { \
10546                state: "clicked" 0.0; \
10547                min: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10548                max: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_MIN_INC; \
10549                image { \
10550                   normal: "00_title_btn_bg_press.png"; \
10551                   border: BUTTON_NAVIFRAME_TITLE_ICON_BG_PRESSED_BORDER_INC; \
10552                   border_scale: 1; \
10553                } \
10554             } \
10555             description { \
10556                state: "disabled" 0.0; \
10557                inherit: "default" 0.0; \
10558             } \
10559             description { state: "focused" 0.0; \
10560                inherit: "default" 0.0;\
10561             } \
10562          } \
10563          part { name: "icon_part"; \
10564             scale: 1; \
10565             description { state: "default" 0.0; \
10566                min: min_width min_height; \
10567                max: min_width min_height; \
10568                rel1.to: "button_image"; \
10569                rel2.to: "button_image"; \
10570                image.normal: image_normal; \
10571             } \
10572             description { \
10573                state: "clicked" 0.0; \
10574                inherit: "default" 0.0; \
10575                image.normal: image_press; \
10576             } \
10577             description { \
10578                state: "disabled" 0.0; \
10579                inherit: "default" 0.0; \
10580                color: 127 127 127 127; \
10581             } \
10582          } \
10583          part { name: "over1"; \
10584             type: RECT; \
10585             ignore_flags: ON_HOLD; \
10586             description { state: "default" 0.0; \
10587                color: 0 0 0 0; \
10588             } \
10589          } \
10590          part { name: "over2"; \
10591             repeat_events: 1; \
10592             description { state: "default" 0.0; \
10593                color: 0 0 0 0; \
10594             } \
10595          } \
10596          part { name: "disabler"; \
10597             type: RECT; \
10598             description { state: "default" 0.0; \
10599                color: 0 0 0 0; \
10600                visible: 0; \
10601             } \
10602             description { state: "disabled" 0.0; \
10603                inherit: "default" 0.0; \
10604                visible: 1; \
10605             } \
10606          } \
10607       } \
10608       programs { \
10609          program { name: "button_click"; \
10610             signal: "mouse,down,1"; \
10611             source: "over1"; \
10612             action: SIGNAL_EMIT "elm,action,press" ""; \
10613             after: "button_click_anim"; \
10614          } \
10615          program { name: "button_click_anim"; \
10616             action: STATE_SET "clicked" 0.0; \
10617             target: "button_image"; \
10618             target: "icon_part"; \
10619          } \
10620          program { name: "button_unclick"; \
10621             signal: "mouse,up,1"; \
10622             source: "over2"; \
10623             action: SIGNAL_EMIT "elm,action,unpress" ""; \
10624             after: "button_unclick_anim"; \
10625          } \
10626          program { name: "button_unclick_anim"; \
10627             action: STATE_SET "default" 0.0; \
10628             target: "button_image"; \
10629             target: "icon_part"; \
10630          } \
10631          program { name: "touch_snd"; \
10632             signal: "mouse,clicked,1"; \
10633             source: "over1"; \
10634             action: PLAY_SAMPLE "touch_sound" 1.0; \
10635             after: button_unclick3; \
10636          } \
10637          program { name: "button_unclick3"; \
10638             action: SIGNAL_EMIT "elm,action,click" ""; \
10639          } \
10640          program { name: "disable"; \
10641             signal: "elm,state,disabled"; \
10642             source: "elm"; \
10643             action: STATE_SET "disabled" 0.0; \
10644             target: "disabler"; \
10645             target: "button_image"; \
10646             target: "icon_part"; \
10647          } \
10648          program { name: "enable"; \
10649             signal: "elm,state,enabled"; \
10650             source: "elm"; \
10651             action: STATE_SET "default" 0.0; \
10652             target: "disabler"; \
10653             target: "button_image"; \
10654             target: "icon_part"; \
10655          } \
10656       } \
10657    }
10658 ///////////////////////////////////////////////////////////////////////////////////////
10659    BUTTON_NAVIFRAME_TITLE_ICON_STYLES("cancel", "00_button_cancel.png", "00_button_cancel_pressed.png", BUTTON_NAVIFRAME_TITLE_ICON_CANCEL_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_CANCEL_MIN_HEIGHT_INC)
10660
10661    BUTTON_NAVIFRAME_TITLE_ICON_STYLES("plus", "00_button_plus.png", "00_button_plus_pressed.png", BUTTON_NAVIFRAME_TITLE_ICON_PLUS_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_PLUS_MIN_HEIGHT_INC)
10662
10663    BUTTON_NAVIFRAME_TITLE_ICON_STYLES("more", "00_winset_more.png", "00_winset_more_press.png", BUTTON_NAVIFRAME_TITLE_ICON_MORE_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_MORE_MIN_HEIGHT_INC)
10664
10665    BUTTON_NAVIFRAME_TITLE_ICON_STYLES("search", "00_title_icon_search.png", "00_title_icon_search_press.png", BUTTON_NAVIFRAME_TITLE_ICON_SEARCH_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_SEARCH_MIN_HEIGHT_INC)
10666
10667    BUTTON_NAVIFRAME_TITLE_ICON_STYLES("previous", "00_winset_Back.png", "00_winset_Back.png", BUTTON_NAVIFRAME_TITLE_ICON_PREV_MIN_WIDTH_INC, BUTTON_NAVIFRAME_TITLE_ICON_PREV_MIN_HEIGHT_INC)
10668
10669 /////////////////////////////////////////////////////////////////////////////////////////
10670    group { name: "elm/button/base/naviframe/more/default";
10671       images {
10672          image: "00_winset_more.png" COMP;
10673          image: "00_winset_more_press.png" COMP;
10674          image: "00_title_btn_bg_press.png" COMP;
10675       }
10676       parts {
10677          part { name: "button_image";
10678             scale: 1;
10679             description { state: "default" 0.0;
10680                min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10681                max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
10682                color: 0 0 0 0;
10683             }
10684             description { state: "clicked" 0.0;
10685                min: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10686                max: BUTTON_NAVIFRAME_MORE_BG_PRESSED_MIN_MAX_INC;
10687                image {
10688                   normal: "00_title_btn_bg_press.png";
10689                   border: BUTTON_NAVIFRAME_MORE_BG_PRESSED_BORDER_INC;
10690                   border_scale: 1;
10691                }
10692             }
10693             description { state: "disabled" 0.0;
10694                inherit: "default" 0.0;
10695             }
10696             description { state: "focused" 0.0;
10697                inherit: "default" 0.0;
10698             }
10699          }
10700          part { name: "more_image";
10701             scale: 1;
10702             mouse_events: 0;
10703             description { state: "default" 0.0;
10704                min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10705                max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
10706                rel1.to: "button_image";
10707                rel2.to: "button_image";
10708                image.normal: "00_winset_more.png";
10709             }
10710             description { state: "clicked" 0.0;
10711                inherit: "default" 0.0;
10712                image.normal: "00_winset_more_press.png";
10713             }
10714             description { state: "disabled" 0.0;
10715                inherit: "default" 0.0;
10716                color: 255 255 255 127;
10717             }
10718          }
10719          part { name: "over2";
10720             type: RECT;
10721             repeat_events: 1;
10722             ignore_flags: ON_HOLD;
10723             description { state: "default" 0.0;
10724                color: 0 0 0 0;
10725             }
10726          }
10727          part { name: "over3";
10728             type: RECT;
10729             repeat_events: 1;
10730             description { state: "default" 0.0;
10731                color: 0 0 0 0;
10732             }
10733          }
10734          part { name: "disabler";
10735             type: RECT;
10736             description { state: "default" 0.0;
10737                color: 0 0 0 0;
10738                visible: 0;
10739             }
10740             description { state: "disabled" 0.0;
10741                inherit: "default" 0.0;
10742                visible: 1;
10743             }
10744          }
10745       }
10746       programs {
10747          program { name: "button_click";
10748             signal: "mouse,down,1";
10749             source: "over2";
10750             action: SIGNAL_EMIT "elm,action,press" "";
10751             after: "button_click_anim";
10752          }
10753          program { name: "button_click_anim";
10754             action: STATE_SET "clicked" 0.0;
10755             target: "button_image";
10756             target: "more_image";
10757          }
10758          program { name: "button_unclick";
10759             signal: "mouse,up,1";
10760             source: "over3";
10761             action: SIGNAL_EMIT "elm,action,unpress" "";
10762             after: "button_unclick_anim";
10763          }
10764          program { name: "button_unclick_anim";
10765             action: STATE_SET "default" 0.0;
10766             target: "button_image";
10767             target: "more_image";
10768          }
10769          program { name: "touch_snd";
10770             signal: "mouse,clicked,1";
10771             source: "over2";
10772             action: PLAY_SAMPLE "touch_sound" 1.0;
10773             after: button_unclick3;
10774          }
10775          program { name: "button_unclick3";
10776             action: SIGNAL_EMIT "elm,action,click" "";
10777          }
10778          program { name: "disable";
10779             signal: "elm,state,disabled";
10780             source: "elm";
10781             action: STATE_SET "disabled" 0.0;
10782             target: "disabler";
10783             target: "button_image";
10784             target: "more_image";
10785          }
10786          program { name: "enable";
10787             signal: "elm,state,enabled";
10788             source: "elm";
10789             action: STATE_SET "default" 0.0;
10790             target: "disabler";
10791             target: "button_image";
10792             target: "more_image";
10793          }
10794       }
10795    }
10796
10797 ///////////////////////////////////////////////////////////////////////////////////////
10798    group { name: "elm/button/base/tickernoti";
10799       images {
10800          image: "00_button_06_normal.png" COMP;
10801          image: "00_button_06_press.png" COMP;
10802          image: "00_button_06_dim.png" COMP;
10803          image: "00_button_06_normal_focus.png" COMP;
10804       }
10805       script {
10806          public button_state = BUTTON_STATE_ENABLED;
10807       }
10808       parts {
10809          part { name: "button_image";
10810             scale: 1;
10811             description { state: "default" 0.0;
10812                image {
10813                   normal: "00_button_06_normal.png";
10814                   border: BUTTON_TICKERNOTI_BG_BORDER_INC;
10815                   border_scale: 1;
10816                }
10817             }
10818             description { state: "clicked" 0.0;
10819                inherit: "default" 0.0;
10820                image.normal: "00_button_06_press.png";
10821             }
10822             description { state: "disabled" 0.0;
10823                inherit: "default" 0.0;
10824                image.normal: "00_button_06_dim.png";
10825             }
10826             description { state: "focused" 0.0;
10827                inherit: "default" 0.0;
10828                image.normal: "00_button_06_normal_focus.png";
10829             }
10830          }
10831          part { name: "padding_left_top";
10832             type: RECT;
10833             scale: 1;
10834             mouse_events: 0;
10835             description { state: "default" 0.0;
10836                align: 0.0 0.0;
10837                rel2.relative: 0.0 0.0;
10838                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10839                fixed: 1 1;
10840                visible: 0;
10841             }
10842          }
10843          part { name: "bg";
10844             type: RECT;
10845             scale: 1;
10846             mouse_events: 0;
10847             description { state: "default" 0.0;
10848                min: BUTTON_TICKERNOTI_BG_MIN_INC;
10849                visible: 0;
10850             }
10851             description { state: "visible" 0.0;
10852                inherit: "default" 0.0;
10853                min: BUTTON_TICKERNOTI_VISIBLE_BG_MIN_INC;
10854             }
10855             description { state: "icononly" 0.0;
10856                inherit: "default" 0.0;
10857                min: BUTTON_TICKERNOTI_ICONONLY_BG_MIN_INC;
10858             }
10859          }
10860          part { name: "padding_right_bottom";
10861             type: RECT;
10862             scale: 1;
10863             mouse_events: 0;
10864             description { state: "default" 0.0;
10865                align: 1.0 1.0;
10866                rel1.relative: 1.0 1.0;
10867                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
10868                fixed: 1 1;
10869                visible: 0;
10870             }
10871          }
10872          part { name: "icon_rect";
10873             type: RECT;
10874             scale: 1;
10875             mouse_events: 0;
10876             description { state: "default" 0.0;
10877                visible: 0;
10878                min: 0 0;
10879                fixed: 1 0;
10880                rel1 {
10881                   relative: 1.0 1.0;
10882                   to: "padding_left_top";
10883                }
10884                rel2 {
10885                   relative: 1.0 0.0;
10886                   to_x: "padding_left_top";
10887                   to_y: "padding_right_bottom";
10888                }
10889                align: 0.0 0.5;
10890             }
10891             description { state: "visible" 0.0;
10892                visible: 0;
10893                min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10894                max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
10895                fixed: 1 0;
10896                rel1 {
10897                   relative: 1.0 1.0;
10898                   to: "padding_left_top";
10899                }
10900                rel2 {
10901                   relative: 1.0 0.0;
10902                   to_x: "padding_left_top";
10903                   to_y: "padding_right_bottom";
10904                }
10905                align: 0.0 0.5;
10906             }
10907             description { state: "icononly" 0.0;
10908                inherit: "default" 0.0;
10909             }
10910          }
10911          part { name: "padding_after_icon";
10912             type: RECT;
10913             scale: 1;
10914             mouse_events: 0;
10915             description { state: "default" 0.0; //when only icon or no icon is there
10916                align: 0.0 0.0;
10917                rel1 {
10918                   relative: 1.0 0.0;
10919                   to: "icon_rect";
10920                }
10921                rel2.to: "icon_rect";
10922                fixed: 1 0;
10923                min: 0 0;
10924                visible: 0;
10925             }
10926             description { state: "visible" 0.0;
10927                visible: 0;
10928                align: 0.0 0.0;
10929                rel1 {
10930                   relative: 1.0 0.0;
10931                   to: "icon_rect";
10932                }
10933                rel2.to: "icon_rect";
10934                fixed: 1 0;
10935                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10936             }
10937             description { state: "icononly" 0.0;
10938                inherit: "default" 0.0;
10939             }
10940          }
10941          part { name: "padding_before_text";
10942             type: RECT;
10943             scale: 1;
10944             mouse_events: 0;
10945             description { state: "default" 0.0; //when only icon or no icon is there
10946                align: 1.0 0.5;
10947                rel1 {
10948                   relative: 0.0 1.0;
10949                   to_x: "elm.text";
10950                   to_y: "padding_left_top";
10951                }
10952                rel2 {
10953                   relative: 0.0 0.0;
10954                   to_x: "elm.text";
10955                   to_y: "padding_right_bottom";
10956                }
10957                fixed: 1 0;
10958                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
10959                visible: 0;
10960             }
10961          }
10962          part { name: "elm.swallow.content";
10963             type: SWALLOW;
10964             scale: 1;
10965             clip_to: "clipper";
10966             description { state: "default" 0.0;
10967                visible: 0;
10968                align: 0.0 0.5;
10969                rel1 {
10970                   relative: 1.0 1.0;
10971                   to: "padding_left_top";
10972                }
10973                rel2 {
10974                   relative: 1.0 0.0;
10975                   to_x: "padding_left_top";
10976                   to_y: "padding_right_bottom";
10977                }
10978                fixed: 1 0;
10979             }
10980             description { state: "visible" 0.0;
10981                fixed: 1 0;
10982                min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10983                max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
10984                align: 1.0 0.5;
10985                rel1 {
10986                   relative: 0.0 1.0;
10987                   to_x: "padding_before_text";
10988                   to_y: "padding_left_top";
10989                }
10990                rel2 {
10991                   relative: 0.0 0.0;
10992                   to_x: "padding_before_text";
10993                   to_y: "padding_right_bottom";
10994                }
10995             }
10996             description { state: "icononly" 0.0;
10997                min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10998                max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
10999             }
11000          }
11001          part { name: "elm.text";
11002             type: TEXT;
11003             mouse_events: 0;
11004             scale: 1;
11005             clip_to: "clipper";
11006             description { state: "default" 0.0;
11007                visible: 0;
11008                rel1 {
11009                   relative: 1.0 1.0;
11010                   to_x: "padding_after_icon";
11011                   to_y: "padding_left_top";
11012                }
11013                rel2 {
11014                   relative: 0.0 0.0;
11015                   to: "padding_right_bottom";
11016                }
11017                color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
11018                text {
11019                   font: "SLP:style=Medium";
11020                   size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
11021                   min: 1 0;
11022                   max: 1 0;
11023                   text_class: "slp_medium";
11024                }
11025             }
11026             description { state: "visible" 0.0;
11027                inherit: "default" 0.0;
11028                visible: 1;
11029             }
11030             description { state: "clicked" 0.0;
11031                inherit: "default" 0.0;
11032                visible: 1;
11033                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
11034             }
11035             description { state: "disabled" 0.0;
11036                inherit: "default" 0.0;
11037                color: 0 0 0 128;
11038             }
11039             description { state: "disabled_visible" 0.0;
11040                inherit: "default" 0.0;
11041                color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
11042                visible: 1;
11043             }
11044             description { state: "focused" 0.0;
11045                inherit: "default" 0.0;
11046                visible: 1;
11047                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
11048             }
11049          }
11050          part { name: "over2";
11051             type: RECT;
11052             repeat_events: 1;
11053             ignore_flags: ON_HOLD;
11054             description { state: "default" 0.0;
11055                color: 0 0 0 0;
11056             }
11057          }
11058          part { name: "over3";
11059             type: RECT;
11060             repeat_events: 1;
11061             description { state: "default" 0.0;
11062                color: 0 0 0 0;
11063             }
11064          }
11065          part { name: "clipper";
11066             type: RECT;
11067             description { state: "default" 0.0;
11068                color: 255 255 255 255;
11069             }
11070          }
11071          part { name: "disabler";
11072             type: RECT;
11073             description { state: "default" 0.0;
11074                color: 0 0 0 0;
11075                visible: 0;
11076             }
11077             description { state: "disabled" 0.0;
11078                inherit: "default" 0.0;
11079                visible: 1;
11080             }
11081          }
11082       }
11083       programs {
11084          program { name: "button_click";
11085             signal: "mouse,down,1";
11086             source: "over2";
11087             action: SIGNAL_EMIT "elm,action,press" "";
11088             after: "button_click_anim";
11089          }
11090          program { name: "button_click_anim";
11091             action: STATE_SET "clicked" 0.0;
11092             target: "button_image";
11093             after: "text_clicked";
11094          }
11095          program { name: "text_clicked";
11096             script {
11097                new st[31];
11098                new Float:vl;
11099                get_state(PART:"elm.text", st, 30, vl);
11100                if (!strcmp(st, "visible"))
11101                  set_state(PART:"elm.text", "clicked", 0.0);
11102             }
11103          }
11104          program { name: "button_unpress";
11105             action: SIGNAL_EMIT "elm,action,unpress" "";
11106          }
11107          program { name: "button_mouseout_clicked";
11108             signal: "mouse,up,1";
11109             source: "over3";
11110             script {
11111                new st[31];
11112                new Float:vl;
11113                get_state(PART:"elm.swallow.content", st, 30, vl);
11114                if (strcmp(st, "icononly"))
11115                  {
11116                     emit("elm,action,default,text,set", "");
11117                     set_state(PART:"elm.text", "visible", 0.0);
11118                  }
11119                if (get_int(button_state) != BUTTON_STATE_DISABLED)
11120                  set_state(PART:"button_image", "default", 0.0);
11121             }
11122             after: button_unpress;
11123          }
11124          program { name: "touch_snd";
11125             signal: "mouse,clicked,1";
11126             source: "over2";
11127             action: PLAY_SAMPLE "touch_sound" 1.0;
11128             after: button_unclick3;
11129          }
11130          program { name: "button_unclick3";
11131             action: SIGNAL_EMIT "elm,action,click" "";
11132          }
11133          program { name: "text_show";
11134             signal: "elm,state,text,visible";
11135             source: "elm";
11136             script {
11137                new st[31];
11138                new Float:vl;
11139                get_state(PART:"elm.swallow.content", st, 30, vl);
11140                if (!strcmp(st, "icononly"))
11141                  {
11142                     set_state(PART:"elm.swallow.content", "visible", 0.0);
11143                     set_state(PART:"icon_rect", "visible", 0.0);
11144                     set_state(PART:"padding_after_icon", "visible", 0.0);
11145                     set_state(PART:"bg", "visible", 0.0);
11146                  }
11147                if (get_int(button_state) != BUTTON_STATE_DISABLED)
11148                  set_state(PART:"elm.text", "visible", 0.0);
11149                else
11150                  set_state(PART:"elm.text", "disabled_visible", 0.0);
11151             }
11152          }
11153          program { name: "text_hide";
11154             signal: "elm,state,text,hidden";
11155             source: "elm";
11156             script {
11157                new st[31];
11158                new Float:vl;
11159                get_state(PART:"elm.swallow.content", st, 30, vl);
11160                if (!strcmp(st, "visible"))
11161                  {
11162                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
11163                     set_state(PART:"icon_rect", "icononly", 0.0);
11164                     set_state(PART:"padding_after_icon", "icononly", 0.0);
11165                     set_state(PART:"bg", "icononly", 0.0);
11166                  }
11167                set_state(PART:"elm.text", "default", 0.0);
11168             }
11169          }
11170          program { name: "icon_show";
11171             signal: "elm,state,icon,visible";
11172             source: "elm";
11173             script {
11174                new st[31];
11175                new Float:vl;
11176                get_state(PART:"elm.text", st, 30, vl);
11177                if (!strcmp(st, "visible"))
11178                  {
11179                     set_state(PART:"elm.swallow.content", "visible", 0.0);
11180                     set_state(PART:"icon_rect", "visible", 0.0);
11181                     set_state(PART:"padding_after_icon", "visible", 0.0);
11182                     set_state(PART:"bg", "visible", 0.0);
11183                  }
11184                else
11185                  {
11186                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
11187                     set_state(PART:"icon_rect", "icononly", 0.0);
11188                     set_state(PART:"padding_after_icon", "icononly", 0.0);
11189                     set_state(PART:"bg", "icononly", 0.0);
11190                  }
11191             }
11192          }
11193          program { name: "icon_hide";
11194             signal: "elm,state,icon,hidden";
11195             source: "elm";
11196             action: STATE_SET "default" 0.0;
11197             target: "elm.swallow.content";
11198             target: "padding_after_icon";
11199             target: "icon_rect";
11200             target: "bg";
11201          }
11202          program { name: "disable";
11203             signal: "elm,state,disabled";
11204             source: "elm";
11205             action: STATE_SET "disabled" 0.0;
11206             target: "button_image";
11207             target: "disabler";
11208             after: "disable_text";
11209          }
11210          program { name: "disable_text";
11211             script {
11212                new st[31];
11213                new Float:vl;
11214                get_state(PART:"elm.text", st, 30, vl);
11215                if (!strcmp(st, "visible"))
11216                  set_state(PART:"elm.text", "disabled_visible", 0.0);
11217                else
11218                  set_state(PART:"elm.text", "disabled", 0.0);
11219                set_int(button_state, BUTTON_STATE_DISABLED);
11220             }
11221          }
11222          program { name: "enable";
11223             signal: "elm,state,enabled";
11224             source: "elm";
11225             action: STATE_SET "default" 0.0;
11226             target: "button_image";
11227             target: "disabler";
11228             after: "enable_text";
11229          }
11230          program { name: "enable_text";
11231             script {
11232                new st[31];
11233                new Float:vl;
11234                get_state(PART:"elm.text", st, 30, vl);
11235                if (!strcmp(st, "disabled_visible"))
11236                  set_state(PART:"elm.text", "visible", 0.0);
11237                else
11238                  set_state(PART:"elm.text", "default", 0.0);
11239                set_int(button_state, BUTTON_STATE_ENABLED);
11240             }
11241          }
11242          program { name: "focused";
11243             //signal: "elm,action,focus";
11244             //source: "elm";
11245             action: STATE_SET "focused" 0.0;
11246             target: "button_image";
11247             target: "elm.text";
11248          }
11249          program { name: "unfocused";
11250             //signal: "elm,action,unfocus";
11251             //source: "elm";
11252             action: STATE_SET "default" 0.0;
11253             target: "button_image";
11254             after: "unfocus_text";
11255          }
11256          program { name: "unfocus_text";
11257             action: STATE_SET "visible" 0.0;
11258             target: "elm.text";
11259          }
11260       }
11261    }
11262
11263 ///////////////////////////////////////////////////////////////////////////////////////
11264    group { name: "elm/button/base/expandable_number";
11265       alias: "elm/button/base/text_only/expandable_number";
11266       images {
11267          image: "00_button_05_normal.png" COMP;
11268          image: "00_button_05_press.png" COMP;
11269          image: "00_button_05_dim.png" COMP;
11270          image: "00_button_05_normal_focus.png" COMP;
11271          image: "00_arrow_expand.png" COMP;
11272          image: "00_arrow_expand_press.png" COMP;
11273          image: "00_arrow_expand_dim.png" COMP;
11274       }
11275       script {
11276          public button_state = BUTTON_STATE_ENABLED;
11277       }
11278       parts {
11279          part { name: "button_image";
11280             scale: 1;
11281             description { state: "default" 0.0;
11282                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
11283                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
11284                image {
11285                   normal: "00_button_05_normal.png";
11286                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
11287                   border_scale: 1;
11288                }
11289             }
11290             description { state: "clicked" 0.0;
11291                inherit: "default" 0.0;
11292                image.normal: "00_button_05_press.png";
11293             }
11294             description { state: "disabled" 0.0;
11295                inherit: "default" 0.0;
11296                image.normal: "00_button_05_dim.png";
11297             }
11298             description { state: "focused" 0.0;
11299                inherit: "default" 0.0;
11300                image.normal: "00_button_05_normal_focus.png";
11301             }
11302          }
11303          part { name: "padding_left_top";
11304             type: RECT;
11305             scale: 1;
11306             mouse_events: 0;
11307             description { state: "default" 0.0;
11308                align: 0.0 0.0;
11309                rel2.relative: 0.0 0.0;
11310                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
11311                fixed: 1 1;
11312                visible: 0;
11313             }
11314          }
11315          part { name: "padding_right_bottom";
11316             type: RECT;
11317             scale: 1;
11318             mouse_events: 0;
11319             description { state: "default" 0.0;
11320                align: 1.0 1.0;
11321                rel1.relative: 1.0 1.0;
11322                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
11323                fixed: 1 1;
11324                visible: 0;
11325             }
11326          }
11327          part { name: "icon_rect";
11328             type: RECT;
11329             scale: 1;
11330             mouse_events: 0;
11331             description { state: "default" 0.0;
11332                visible: 0;
11333                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11334                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11335                fixed: 1 0;
11336                rel1 {
11337                   relative: 0.0 1.0;
11338                   to_x: "padding_right_bottom";
11339                   to_y: "padding_left_top";
11340                }
11341                rel2 {
11342                   relative: 0.0 0.0;
11343                   to: "padding_right_bottom";
11344                }
11345                align: 1.0 0.5;
11346                color: 0 0 0 0;
11347             }
11348          }
11349          part { name: "arrow_expand";
11350             scale: 1;
11351             mouse_events: 0;
11352             description { state: "default" 0.0;
11353                align: 0.0 0.5;
11354                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11355                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
11356                fixed: 0 0;
11357                rel1.to: "icon_rect";
11358                rel2.to: "icon_rect";
11359                image.normal:"00_arrow_expand.png";
11360             }
11361             description { state: "clicked" 0.0;
11362                inherit: "default" 0.0;
11363                image.normal:"00_arrow_expand_press.png";
11364             }
11365             description { state: "disabled" 0.0;
11366                inherit: "default" 0.0;
11367                image.normal:"00_arrow_expand_dim.png";
11368             }
11369          }
11370          part { name: "elm.text";
11371             type: TEXT;
11372             mouse_events: 0;
11373             scale: 1;
11374             description { state: "default" 0.0;
11375                min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
11376                max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
11377                fixed:1 0;
11378                rel1 {
11379                   relative: 1.0 1.0;
11380                   to: "padding_left_top";
11381                }
11382                rel2 {
11383                   relative: 1.0 1.0;
11384                   to_x:"padding_left_top";
11385                   to_y:"padding_right_bottom";
11386                }
11387                align: 0.0 0.5;
11388                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
11389                text {
11390                   font: "SLP:style=Medium";
11391                   size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
11392                   min: 0 0;
11393                   fit: 1 1;
11394                   size_range: 14 20;
11395                   text_class: "slp_medium";
11396                }
11397             }
11398             description { state: "visible" 0.0;
11399                inherit: "default" 0.0;
11400             }
11401             description { state: "clicked" 0.0;
11402                inherit: "default" 0.0;
11403                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
11404             }
11405             description { state: "disabled" 0.0;
11406                inherit: "default" 0.0;
11407                color: 0 0 0 128;
11408             }
11409             description { state: "disabled_visible" 0.0;
11410                inherit: "default" 0.0;
11411                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
11412             }
11413             description { state: "focused" 0.0;
11414                inherit: "default" 0.0;
11415                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
11416             }
11417          }
11418          part { name: "over2";
11419             type: RECT;
11420             repeat_events: 1;
11421             ignore_flags: ON_HOLD;
11422             description { state: "default" 0.0;
11423                color: 0 0 0 0;
11424             }
11425          }
11426          part { name: "over3";
11427             type: RECT;
11428             repeat_events: 1;
11429             description { state: "default" 0.0;
11430                color: 0 0 0 0;
11431             }
11432          }
11433          part { name: "disabler";
11434             type: RECT;
11435             description { state: "default" 0.0;
11436                color: 0 0 0 0;
11437                visible: 0;
11438             }
11439             description { state: "disabled" 0.0;
11440                inherit: "default" 0.0;
11441                visible: 1;
11442             }
11443          }
11444       }
11445       programs {
11446          program { name: "button_click";
11447             signal: "mouse,down,1";
11448             source: "over2";
11449             action: SIGNAL_EMIT "elm,action,press" "";
11450             after: "button_click_anim";
11451          }
11452          program { name: "button_click_anim";
11453             action: STATE_SET "clicked" 0.0;
11454             target: "button_image";
11455             target: "arrow_expand";
11456             after: "text_clicked";
11457          }
11458          program { name: "text_clicked";
11459             script {
11460                new st[31];
11461                new Float:vl;
11462                get_state(PART:"elm.text", st, 30, vl);
11463                if (!strcmp(st, "visible"))
11464                  set_state(PART:"elm.text", "clicked", 0.0);
11465             }
11466          }
11467          program { name: "button_unpress";
11468             action: SIGNAL_EMIT "elm,action,unpress" "";
11469          }
11470          program { name: "button_mouseout_clicked";
11471             signal: "mouse,up,1";
11472             source: "over3";
11473             script {
11474                if (get_int(button_state) != BUTTON_STATE_DISABLED)
11475                  {
11476                     set_state(PART:"button_image", "default", 0.0);
11477                     set_state(PART:"elm.text", "visible", 0.0);
11478                     set_state(PART:"arrow_expand", "default", 0.0);
11479                  }
11480             }
11481             after: button_unpress;
11482          }
11483          program { name: "touch_snd";
11484             signal: "mouse,clicked,1";
11485             source: "over2";
11486             action: PLAY_SAMPLE "touch_sound" 1.0;
11487             after: button_unclick3;
11488          }
11489          program { name: "button_unclick3";
11490             action: SIGNAL_EMIT "elm,action,click" "";
11491          }
11492          program { name: "text_show";
11493             signal: "elm,state,text,visible";
11494             source: "elm";
11495             script {
11496                if (get_int(button_state) != BUTTON_STATE_DISABLED)
11497                  set_state(PART:"elm.text", "visible", 0.0);
11498                else
11499                  set_state(PART:"elm.text", "disabled_visible", 0.0);
11500             }
11501          }
11502          program { name: "text_hide";
11503             signal: "elm,state,text,hidden";
11504             source: "elm";
11505             script {
11506                set_state(PART:"elm.text", "default", 0.0);
11507             }
11508          }
11509          program { name: "disable";
11510             signal: "elm,state,disabled";
11511             source: "elm";
11512             action: STATE_SET "disabled" 0.0;
11513             target: "button_image";
11514             target: "disabler";
11515             after: "disable_text";
11516          }
11517          program { name: "disable_text";
11518             script {
11519                new st[31];
11520                new Float:vl;
11521                get_state(PART:"elm.text", st, 30, vl);
11522                if (!strcmp(st, "visible"))
11523                  set_state(PART:"elm.text", "disabled_visible", 0.0);
11524                else
11525                  set_state(PART:"elm.text", "disabled", 0.0);
11526                set_int(button_state, BUTTON_STATE_DISABLED);
11527             }
11528          }
11529          program { name: "enable";
11530             signal: "elm,state,enabled";
11531             source: "elm";
11532             action: STATE_SET "default" 0.0;
11533             target: "button_image";
11534             target: "disabler";
11535             after: "enable_text";
11536          }
11537          program { name: "enable_text";
11538             script {
11539                new st[31];
11540                new Float:vl;
11541                get_state(PART:"elm.text", st, 30, vl);
11542                if (!strcmp(st, "disabled_visible"))
11543                  set_state(PART:"elm.text", "visible", 0.0);
11544                else
11545                  set_state(PART:"elm.text", "default", 0.0);
11546                set_int(button_state, BUTTON_STATE_ENABLED);
11547             }
11548          }
11549          program { name: "focused";
11550             //signal: "elm,action,focus";
11551             //source: "elm";
11552             action: STATE_SET "focused" 0.0;
11553             target: "button_image";
11554             target: "elm.text";
11555          }
11556          program { name: "unfocused";
11557             //signal: "elm,action,unfocus";
11558             //source: "elm";
11559             action: STATE_SET "default" 0.0;
11560             target: "button_image";
11561             after: "unfocus_text";
11562          }
11563          program { name: "unfocus_text";
11564             action: STATE_SET "visible" 0.0;
11565             target: "elm.text";
11566          }
11567       }
11568    }
11569
11570 #undef BUTTON_STATE_ENABLED
11571 #undef BUTTON_STATE_DISABLED