Merge "[Progressbar] issue image getting invisible for list progressbar. fixed."
[profile/ivi/efl-theme-tizen.git] / themes / groups / button.edc
1 /*
2  *  nBeat-theme
3  *
4  * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd.
5  *
6  * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>,
7  *       Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>,
8  *    Hyunsil Park <hyunsil.park@samsung.com>, Sohyun Kim <anna1014.kim@samsung.com>, Seunggyun Kim <sgyun.kim@samsung.com>
9  *
10  * This library is free software; you can redistribute it and/or modify it under
11  * the terms of the GNU Lesser General Public License as published by the
12  * Free Software Foundation; either version 2.1 of the License, or (at your option)
13  * any later version.
14  *
15  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18  * License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this library; if not, write to the Free Software Foundation, Inc., 51
22  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25 ///////////////////////////////////////////////////////////////////////////////////////
26    group { name: "elm/button/base/text_only/style1";
27       images {
28          image: "00_button_01_normal.png" COMP;
29          image: "00_button_01_normal_press.png" COMP;
30          image: "00_button_01_normal_dim.png" COMP;
31       }
32       script {
33          public button_state = 0; //0:enabled, 1: disabled
34       }
35       parts {
36          part { name: "button_image";
37             mouse_events: 1;
38             scale: 1;
39             description { state: "default" 0.0;
40                min: 10 46;
41                image {
42                   normal: "00_button_01_normal.png";
43                   border: 4 4 3 3;
44                   border_scale: 1;
45                }
46             }
47             description { state: "clicked" 0.0;
48                inherit: "default" 0.0;
49                image.normal: "00_button_01_normal_press.png";
50             }
51             description { state: "disabled" 0.0;
52                inherit:  "default" 0.0;
53                image.normal: "00_button_01_normal_dim.png";
54             }
55             description { state: "focused" 0.0;
56                inherit: "default" 0.0;
57                image.normal: "00_button_01_normal_press.png";
58             }
59          }
60          part {
61             name: "padding_left";
62             type: RECT;
63             scale: 1;
64             mouse_events: 0;
65             description { state: "default" 0.0;
66                align: 0.0 0.0;
67                rel1.relative: 0.0 0.0;
68                rel2.relative: 0.0 1.0;
69                min: 5 5;
70                fixed: 1 0;
71                color: 0 0 0 0;
72             }
73          }
74          part {
75             name: "padding_right";
76             type: RECT;
77             scale: 1;
78             mouse_events: 0;
79             description { state: "default" 0.0;
80                align: 1.0 0.0;
81                rel1.relative: 1.0 0.0;
82                rel2.relative: 1.0 1.0;
83                min: 5 5;
84                fixed: 1 0;
85                color: 0 0 0 0;
86             }
87          }
88          part {
89             name: "padding_top";
90             type: RECT;
91             scale: 1;
92             mouse_events: 0;
93             description { state: "default" 0.0;
94                align: 0.0 0.0;
95                rel1.relative: 0.0 0.0;
96                rel2.relative: 1.0 0.0;
97                min: 5 5;
98                fixed: 0 1;
99                color: 0 0 0 0;
100             }
101          }
102          part {
103             name: "padding_bottom";
104             type: RECT;
105             scale: 1;
106             mouse_events: 0;
107             description { state: "default" 0.0;
108                align: 1.0 1.0;
109                rel1.relative: 0.0 1.0;
110                rel2.relative: 1.0 1.0;
111                min: 5 5;
112                fixed: 0 1;
113                color: 0 0 0 0;
114             }
115          }
116          part {
117             name: "icon_rect";
118             type: RECT;
119             scale: 1;
120             mouse_events: 0;
121             description { state: "default" 0.0;
122                visible: 1;
123                min: 0 0;
124                fixed: 1 0;
125                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
126                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
127                align: 0.0 0.5;
128                color: 0 0 0 0;
129             }
130             description { state: "visible" 0.0;
131                visible: 1;
132                min: 24 24;
133                max: 24 24;
134                fixed: 1 0;
135                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
136                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
137                aspect: 1.0 1.0;
138                aspect_preference: VERTICAL;
139                align: 0.0 0.5;
140                color: 0 0 0 0;
141             }
142             description { state: "icononly" 0.0;
143                inherit: "default" 0.0;
144             }
145          }
146          part {
147             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 { relative: 1.0 0.0; to: "icon_rect"; }
154                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
155                fixed: 1 0;
156                min: 0 0;
157                color: 0 255 0 100;
158             }
159             description { state: "visible" 0.0;
160                visible: 1;
161                align: 0.0 0.0;
162                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
163                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
164                fixed: 1 0;
165                min: 8 0;
166                color: 0 0 0 0;
167             }
168             description { state: "icononly" 0.0;
169                inherit: "default" 0.0;
170             }
171          }
172          part {
173             name: "padding_before_text";
174             type: RECT;
175             scale: 1;
176             mouse_events: 0;
177             description { state: "default" 0.0; //when only icon or no icon is there
178                align: 1.0 0.5;
179                rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
180                rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
181                fixed: 1 0;
182                min: 8 0;
183                color: 0 0 0 0;
184             }
185          }
186          part { name: "elm.swallow.content";
187             type: SWALLOW;
188             scale: 1;
189             description { state: "default" 0.0;
190                visible: 0;
191                align: 0.0 0.5;
192                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
193                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
194                fixed: 1 0;
195             }
196             description { state: "visible" 0.0;
197                fixed: 1 0;
198                visible: 1;
199                min: 24 24;
200                max: 24 24;
201                align: 1.0 0.5;
202                rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
203                rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
204                aspect: 1.0 1.0;
205                aspect_preference: VERTICAL;
206             }
207             description { state: "icononly" 0.0;;
208                visible: 1;
209                min: 30 30;
210                max: 30 30;
211                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
212                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
213                align: 0.5 0.5;
214                aspect: 1.0 1.0;
215                aspect_preference: VERTICAL;
216             }
217          }
218          part { name: "elm.text";
219             type: TEXT;
220             //effect: SHADOW;
221             mouse_events:  0;
222             scale: 1;
223             description { state: "default" 0.0;
224                visible: 0;
225                rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
226                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
227                align: 0.5 0.5;
228                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
229                color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
230                text {
231                   font: "SLP:style=Medium";
232                   size: 20;
233                   min:  0 0;
234                   align: 0.5 0.5;
235                   max: 1 0;
236                }
237             }
238             description { state: "visible" 0.0;
239                inherit: "default" 0.0;
240                visible: 1;
241                min: 90 36;
242             }
243             description { state: "clicked" 0.0;
244                inherit: "default" 0.0;
245                visible: 1;
246                min: 0 0;
247                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
248                color2: BUTTON_TEXT_STYLE1_PRESSED_SHAWDOW_COLOR_INC;
249             }
250             description { state: "disabled" 0.0;
251                inherit: "default" 0.0;
252                color: 0 0 0 128;
253                color3: 0 0 0 0;
254             }
255             description { state: "disabled_visible" 0.0;
256                inherit: "default" 0.0;
257                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
258                color2: BUTTON_TEXT_STYLE1_DISABLED_SHAWDOW_COLOR_INC;
259                color3: 0 0 0 0;
260                visible: 1;
261             }
262             description { state: "focused" 0.0;
263                inherit: "default" 0.0;
264                visible: 1;
265                min: 0 0;
266                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
267                color2: BUTTON_TEXT_STYLE1_FOCUSED_SHAWDOW_COLOR_INC;
268             }
269          }
270          part { name: "over2";
271             type: RECT;
272             mouse_events: 1;
273             repeat_events: 1;
274             ignore_flags: ON_HOLD;
275             description { state: "default" 0.0;
276                color: 0 0 0 0;
277             }
278             description { state: "disabled" 0.0;
279                inherit:  "default" 0.0;
280                visible: 0;
281             }
282          }
283          part { name: "over3";
284             type: RECT;
285             mouse_events: 1;
286             repeat_events: 1;
287             description { state: "default" 0.0;
288                color: 0 0 0 0;
289             }
290             description { state: "clicked" 0.0;
291                inherit:  "default" 0.0;
292                visible: 1;
293             }
294          }
295          part { name: "disabler";
296             type: RECT;
297             description { state: "default" 0.0;
298                color: 0 0 0 0;
299                visible: 0;
300             }
301             description { state: "disabled" 0.0;
302                inherit: "default" 0.0;
303                visible: 1;
304             }
305          }
306       }
307       programs {
308          program { name: "button_click";
309             signal: "mouse,down,1";
310             source: "over2";
311             action: SIGNAL_EMIT "elm,action,press" "";
312             after: "button_click_anim";
313          }
314          program { name: "button_click_anim";
315             action: STATE_SET "clicked" 0.0;
316             target: "button_image";
317             after: "text_clicked";
318          }
319          program { name: "text_clicked";
320             script {
321                new st[31];
322                new Float:vl;
323                get_state(PART:"elm.text", st, 30, vl);
324                if (!strcmp(st, "visible"))
325                   set_state(PART:"elm.text", "clicked", 0.0);
326             }
327          }
328          program { name: "button_unpress";
329             action: SIGNAL_EMIT "elm,action,unpress" "";
330          }
331          program { name: "button_mouseout_clicked";
332             signal: "mouse,up,1";
333             source: "over3";
334             script {
335                new st[31];
336                new Float:vl;
337                get_state(PART:"elm.swallow.content", st, 30, vl);
338                if (strcmp(st, "icononly"))
339                {
340                   emit("elm,action,default,text,set", "");
341                   set_state(PART:"elm.text", "visible", 0.0);
342                }
343                if(get_int(button_state) !=1)
344                   set_state(PART:"button_image", "default", 0.0);
345             }
346             after: button_unpress;
347          }
348          program { name: "button_click2";
349             signal: "mouse,down,1";
350             source: "over3";
351             action: STATE_SET "clicked" 0.0;
352             target: "over3";
353          }
354          program { name: "button_unclick2";
355             signal: "mouse,clicked,1";
356             source: "over3";
357             action: STATE_SET "default" 0.0;
358             target: "over3";
359          }
360          program { name: "button_unclick3";
361             signal: "mouse,clicked,1";
362             source: "over2";
363             action: SIGNAL_EMIT "elm,action,click" "";
364          }
365          program { name: "text_show";
366             signal: "elm,state,text,visible";
367             source: "elm";
368             script {
369                new st[31];
370                new Float:vl;
371                get_state(PART:"elm.swallow.content", st, 30, vl);
372                if (!strcmp(st, "icononly"))
373                {
374                   set_state(PART:"elm.swallow.content", "visible", 0.0);
375                   set_state(PART:"icon_rect", "visible", 0.0);
376                   set_state(PART:"padding_after_icon", "visible", 0.0);
377                }
378                set_state(PART:"elm.text", "visible", 0.0);
379             }
380          }
381          program { name: "text_hide";
382             signal: "elm,state,text,hidden";
383             source: "elm";
384             script {
385                new st[31];
386                new Float:vl;
387                get_state(PART:"elm.swallow.content", st, 30, vl);
388                if (!strcmp(st, "visible"))
389                {
390                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
391                   set_state(PART:"icon_rect", "icononly", 0.0);
392                   set_state(PART:"padding_after_icon", "icononly", 0.0);
393                }
394                set_state(PART:"elm.text", "default", 0.0);
395             }
396          }
397          program { name: "icon_show";
398             signal: "elm,state,icon,visible";
399             source: "elm";
400             script {
401                new st[31];
402                new Float:vl;
403                get_state(PART:"elm.text", st, 30, vl);
404                if (!strcmp(st, "visible"))
405                {
406                   set_state(PART:"elm.swallow.content", "visible", 0.0);
407                   set_state(PART:"icon_rect", "visible", 0.0);
408                   set_state(PART:"padding_after_icon", "visible", 0.0);
409                }
410                else
411                {
412                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
413                   set_state(PART:"icon_rect", "icononly", 0.0);
414                   set_state(PART:"padding_after_icon", "icononly", 0.0);
415                }
416             }
417          }
418          program { name: "icon_hide";
419             signal: "elm,state,icon,hidden";
420             source: "elm";
421             action:  STATE_SET "default" 0.0;
422             target: "elm.swallow.content";
423          }
424          program { name: "disable";
425             signal: "elm,state,disabled";
426             source: "elm";
427             action: STATE_SET "disabled" 0.0;
428             target: "button_image";
429             target: "over2";
430             target: "disabler";
431             after: "disable_text";
432          }
433          program { name: "disable_text";
434             script {
435                new st[31];
436                new Float:vl;
437                get_state(PART:"elm.text", st, 30, vl);
438                if (!strcmp(st, "visible"))
439                   set_state(PART:"elm.text", "disabled_visible", 0.0);
440                else
441                   set_state(PART:"elm.text", "disabled", 0.0);
442                set_int(button_state, 1);
443             }
444          }
445          program { name: "enable";
446             signal: "elm,state,enabled";
447             source: "elm";
448             action: STATE_SET "default" 0.0;
449             target: "button_image";
450             target: "over2";
451             target: "disabler";
452             after: "enable_text";
453          }
454          program { name: "enable_text";
455             script {
456                new st[31];
457                new Float:vl;
458                get_state(PART:"elm.text", st, 30, vl);
459                if (!strcmp(st, "disabled_visible"))
460                   set_state(PART:"elm.text", "visible", 0.0);
461                else
462                   set_state(PART:"elm.text", "default", 0.0);
463                set_int(button_state, 0);
464             }
465          }
466          program { name: "focused";
467             //signal: "elm,action,focus";
468             //source: "elm";
469             action: STATE_SET "focused" 0.0;
470             target: "button_image";
471             target: "elm.text";
472          }
473          program { name: "unfocused";
474             //signal: "elm,action,unfocus";
475             //source: "elm";
476             action: STATE_SET "default" 0.0;
477             target: "button_image";
478             after: "unfocus_text";
479          }
480          program { name: "unfocus_text";
481             action: STATE_SET "visible" 0.0;
482             target: "elm.text";
483          }
484       }
485    }
486
487 ///////////////////////////////////////////////////////////////////////////////////////
488    group { name: "elm/button/base/text_only/style2";
489       images {
490          image: "00_button_04_normal.png" COMP;
491          image: "00_button_04_press.png" COMP;
492          image: "00_button_04_dim.png" COMP;
493       }
494       script {
495          public button_state = 0; //0:enabled, 1: disabled
496       }
497       parts {
498          part { name: "button_image";
499             mouse_events: 1;
500             scale: 1;
501             description { state: "default" 0.0;
502                min: 10 46;
503                image {
504                   normal: "00_button_04_normal.png";
505                   border: 4 4 3 3;
506                   border_scale: 1;
507                }
508             }
509             description { state: "clicked" 0.0;
510                inherit: "default" 0.0;
511                image.normal: "00_button_04_press.png";
512             }
513             description { state: "disabled" 0.0;
514                inherit:  "default" 0.0;
515                image.normal: "00_button_04_dim.png";
516             }
517             description { state: "focused" 0.0;
518                inherit: "default" 0.0;
519                image.normal: "00_button_04_press.png";
520             }
521          }
522          part {
523             name: "padding_left";
524             type: RECT;
525             scale: 1;
526             mouse_events: 0;
527             description { state: "default" 0.0;
528                align: 0.0 0.0;
529                rel1.relative: 0.0 0.0;
530                rel2.relative: 0.0 1.0;
531                min: 5 5;
532                fixed: 1 0;
533                color: 0 0 0 0;
534             }
535          }
536          part {
537             name: "padding_right";
538             type: RECT;
539             scale: 1;
540             mouse_events: 0;
541             description { state: "default" 0.0;
542                align: 1.0 0.0;
543                rel1.relative: 1.0 0.0;
544                rel2.relative: 1.0 1.0;
545                min: 5 5;
546                fixed: 1 0;
547                color: 0 0 0 0;
548             }
549          }
550          part {
551             name: "padding_top";
552             type: RECT;
553             scale: 1;
554             mouse_events: 0;
555             description { state: "default" 0.0;
556                align: 0.0 0.0;
557                rel1.relative: 0.0 0.0;
558                rel2.relative: 1.0 0.0;
559                min: 5 5;
560                fixed: 0 1;
561                color: 0 0 0 0;
562             }
563          }
564          part {
565             name: "padding_bottom";
566             type: RECT;
567             scale: 1;
568             mouse_events: 0;
569             description { state: "default" 0.0;
570                align: 1.0 1.0;
571                rel1.relative: 0.0 1.0;
572                rel2.relative: 1.0 1.0;
573                min: 5 5;
574                fixed: 0 1;
575                color: 0 0 0 0;
576             }
577          }
578          part {
579             name: "icon_rect";
580             type: RECT;
581             scale: 1;
582             mouse_events: 0;
583             description { state: "default" 0.0;
584                visible: 1;
585                min: 0 0;
586                fixed: 1 0;
587                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
588                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
589                align: 0.0 0.5;
590                color: 0 0 0 0;
591             }
592             description { state: "visible" 0.0;
593                visible: 1;
594                min: 24 24;
595                max: 24 24;
596                fixed: 1 0;
597                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
598                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
599                aspect: 1.0 1.0;
600                aspect_preference: VERTICAL;
601                align: 0.0 0.5;
602                color: 0 0 0 0;
603             }
604             description { state: "icononly" 0.0;
605                inherit: "default" 0.0;
606             }
607          }
608          part {
609             name: "padding_after_icon";
610             type: RECT;
611             scale: 1;
612             mouse_events: 0;
613             description { state: "default" 0.0; //when only icon or no icon is there
614                align: 0.0 0.0;
615                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
616                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
617                fixed: 1 0;
618                min: 0 0;
619                color: 0 255 0 100;
620             }
621             description { state: "visible" 0.0;
622                visible: 1;
623                align: 0.0 0.0;
624                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
625                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
626                fixed: 1 0;
627                min: 8 0;
628                color: 0 0 0 0;
629             }
630             description { state: "icononly" 0.0;
631                inherit: "default" 0.0;
632             }
633          }
634          part {
635             name: "padding_before_text";
636             type: RECT;
637             scale: 1;
638             mouse_events: 0;
639             description { state: "default" 0.0; //when only icon or no icon is there
640                align: 1.0 0.5;
641                rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
642                rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
643                fixed: 1 0;
644                min: 8 0;
645                color: 0 0 0 0;
646             }
647          }
648          part { name: "elm.swallow.content";
649             type: SWALLOW;
650             scale: 1;
651             description { state: "default" 0.0;
652                visible: 0;
653                align: 0.0 0.5;
654                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
655                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
656                fixed: 1 0;
657             }
658             description { state: "visible" 0.0;
659                fixed: 1 0;
660                visible: 1;
661                min: 24 24;
662                max: 24 24;
663                align: 1.0 0.5;
664                rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
665                rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
666                aspect: 1.0 1.0;
667                aspect_preference: VERTICAL;
668             }
669             description { state: "icononly" 0.0;;
670                visible: 1;
671                min: 30 30;
672                max: 30 30;
673                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
674                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
675                align: 0.5 0.5;
676                aspect: 1.0 1.0;
677                aspect_preference: VERTICAL;
678             }
679          }
680          part { name: "elm.text";
681             type: TEXT;
682             //effect: SHADOW;
683             mouse_events:  0;
684             scale: 1;
685             description { state: "default" 0.0;
686                visible: 0;
687                rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
688                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
689                align: 0.5 0.5;
690                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
691                color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
692                text {
693                   font: "SLP:style=Medium";
694                   size: 20;
695                   min:  0 0;
696                   align: 0.5 0.5;
697                   max: 1 0;
698                }
699             }
700             description { state: "visible" 0.0;
701                inherit: "default" 0.0;
702                visible: 1;
703                min: 90 36;
704             }
705             description { state: "clicked" 0.0;
706                inherit: "default" 0.0;
707                visible: 1;
708                min: 0 0;
709                color: BUTTON_TEXT_STYLE2_PRESSED_COLOR_INC;
710                color2: BUTTON_TEXT_STYLE2_PRESSED_SHAWDOW_COLOR_INC;
711             }
712             description { state: "disabled" 0.0;
713                inherit: "default" 0.0;
714                color: 0 0 0 128;
715                color3: 0 0 0 0;
716             }
717             description { state: "disabled_visible" 0.0;
718                inherit: "default" 0.0;
719                color: BUTTON_TEXT_STYLE2_DISABLED_COLOR_INC;
720                color2: BUTTON_TEXT_STYLE2_DISABLED_SHAWDOW_COLOR_INC;
721                color3: 0 0 0 0;
722                visible: 1;
723             }
724             description { state: "focused" 0.0;
725                inherit: "default" 0.0;
726                visible: 1;
727                min: 0 0;
728                color: BUTTON_TEXT_STYLE2_FOCUSED_COLOR_INC;
729                color2: BUTTON_TEXT_STYLE2_FOCUSED_SHAWDOW_COLOR_INC;
730             }
731          }
732          part { name: "over2";
733             type: RECT;
734             mouse_events: 1;
735             repeat_events: 1;
736             ignore_flags: ON_HOLD;
737             description { state: "default" 0.0;
738                color: 0 0 0 0;
739             }
740             description { state: "disabled" 0.0;
741                inherit:  "default" 0.0;
742                visible: 0;
743             }
744          }
745          part { name: "over3";
746             type: RECT;
747             mouse_events: 1;
748             repeat_events: 1;
749             description { state: "default" 0.0;
750                color: 0 0 0 0;
751             }
752             description { state: "clicked" 0.0;
753                inherit:  "default" 0.0;
754                visible: 1;
755             }
756          }
757          part { name: "disabler";
758             type: RECT;
759             description { state: "default" 0.0;
760                color: 0 0 0 0;
761                visible: 0;
762             }
763             description { state: "disabled" 0.0;
764                inherit: "default" 0.0;
765                visible: 1;
766             }
767          }
768       }
769       programs {
770          program { name: "button_click";
771             signal: "mouse,down,1";
772             source: "over2";
773             action: SIGNAL_EMIT "elm,action,press" "";
774             after: "button_click_anim";
775          }
776          program { name: "button_click_anim";
777             action: STATE_SET "clicked" 0.0;
778             target: "button_image";
779             after: "text_clicked";
780          }
781          program { name: "text_clicked";
782             script {
783                new st[31];
784                new Float:vl;
785                get_state(PART:"elm.text", st, 30, vl);
786                if (!strcmp(st, "visible"))
787                   set_state(PART:"elm.text", "clicked", 0.0);
788             }
789          }
790          program { name: "button_unpress";
791             action: SIGNAL_EMIT "elm,action,unpress" "";
792          }
793          program { name: "button_mouseout_clicked";
794             signal: "mouse,up,1";
795             source: "over3";
796             script {
797                new st[31];
798                new Float:vl;
799                get_state(PART:"elm.swallow.content", st, 30, vl);
800                if (strcmp(st, "icononly"))
801                {
802                   emit("elm,action,default,text,set", "");
803                   set_state(PART:"elm.text", "visible", 0.0);
804                }
805                if(get_int(button_state) !=1)
806                   set_state(PART:"button_image", "default", 0.0);
807             }
808             after: button_unpress;
809          }
810          program { name: "button_click2";
811             signal: "mouse,down,1";
812             source: "over3";
813             action: STATE_SET "clicked" 0.0;
814             target: "over3";
815          }
816          program { name: "button_unclick2";
817             signal: "mouse,clicked,1";
818             source: "over3";
819             action: STATE_SET "default" 0.0;
820             target: "over3";
821          }
822          program { name: "button_unclick3";
823             signal: "mouse,clicked,1";
824             source: "over2";
825             action: SIGNAL_EMIT "elm,action,click" "";
826          }
827          program { name: "text_show";
828             signal: "elm,state,text,visible";
829             source: "elm";
830             script {
831                new st[31];
832                new Float:vl;
833                get_state(PART:"elm.swallow.content", st, 30, vl);
834                if (!strcmp(st, "icononly"))
835                {
836                   set_state(PART:"elm.swallow.content", "visible", 0.0);
837                   set_state(PART:"icon_rect", "visible", 0.0);
838                   set_state(PART:"padding_after_icon", "visible", 0.0);
839                }
840                set_state(PART:"elm.text", "visible", 0.0);
841             }
842          }
843          program { name: "text_hide";
844             signal: "elm,state,text,hidden";
845             source: "elm";
846             script {
847                new st[31];
848                new Float:vl;
849                get_state(PART:"elm.swallow.content", st, 30, vl);
850                if (!strcmp(st, "visible"))
851                {
852                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
853                   set_state(PART:"icon_rect", "icononly", 0.0);
854                   set_state(PART:"padding_after_icon", "icononly", 0.0);
855                }
856                set_state(PART:"elm.text", "default", 0.0);
857             }
858          }
859          program { name: "icon_show";
860             signal: "elm,state,icon,visible";
861             source: "elm";
862             script {
863                new st[31];
864                new Float:vl;
865                get_state(PART:"elm.text", st, 30, vl);
866                if (!strcmp(st, "visible"))
867                {
868                   set_state(PART:"elm.swallow.content", "visible", 0.0);
869                   set_state(PART:"icon_rect", "visible", 0.0);
870                   set_state(PART:"padding_after_icon", "visible", 0.0);
871                }
872                else
873                {
874                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
875                   set_state(PART:"icon_rect", "icononly", 0.0);
876                   set_state(PART:"padding_after_icon", "icononly", 0.0);
877                }
878             }
879          }
880          program { name: "icon_hide";
881             signal: "elm,state,icon,hidden";
882             source: "elm";
883             action:  STATE_SET "default" 0.0;
884             target: "elm.swallow.content";
885          }
886          program { name: "disable";
887             signal: "elm,state,disabled";
888             source: "elm";
889             action: STATE_SET "disabled" 0.0;
890             target: "button_image";
891             target: "over2";
892             target: "disabler";
893             after: "disable_text";
894          }
895          program { name: "disable_text";
896             script {
897                new st[31];
898                new Float:vl;
899                get_state(PART:"elm.text", st, 30, vl);
900                if (!strcmp(st, "visible"))
901                   set_state(PART:"elm.text", "disabled_visible", 0.0);
902                else
903                   set_state(PART:"elm.text", "disabled", 0.0);
904                set_int(button_state, 1);
905             }
906          }
907          program { name: "enable";
908             signal: "elm,state,enabled";
909             source: "elm";
910             action: STATE_SET "default" 0.0;
911             target: "button_image";
912             target: "over2";
913             target: "disabler";
914             after: "enable_text";
915          }
916          program { name: "enable_text";
917             script {
918                new st[31];
919                new Float:vl;
920                get_state(PART:"elm.text", st, 30, vl);
921                if (!strcmp(st, "disabled_visible"))
922                   set_state(PART:"elm.text", "visible", 0.0);
923                else
924                   set_state(PART:"elm.text", "default", 0.0);
925                set_int(button_state, 0);
926             }
927          }
928          program { name: "focused";
929             //signal: "elm,action,focus";
930             //source: "elm";
931             action: STATE_SET "focused" 0.0;
932             target: "button_image";
933             target: "elm.text";
934          }
935          program { name: "unfocused";
936             //signal: "elm,action,unfocus";
937             //source: "elm";
938             action: STATE_SET "default" 0.0;
939             target: "button_image";
940             after: "unfocus_text";
941          }
942          program { name: "unfocus_text";
943             action: STATE_SET "visible" 0.0;
944             target: "elm.text";
945          }
946       }
947    }
948
949 ///////////////////////////////////////////////////////////////////////////////////////
950    group { name: "elm/button/base/text_only/style3";
951       images {
952          image: "00_button_04_normal.png" COMP;
953          image: "00_button_04_press.png" COMP;
954          image: "00_button_04_focus.png" COMP;
955          image: "00_button_04_dim.png" COMP;
956       }
957       script {
958          public button_state = 0; //0:enabled, 1: disabled
959       }
960       parts {
961          part { name: "button_image";
962             mouse_events: 1;
963             scale: 1;
964             description { state: "default" 0.0;
965                min: 28 75;
966                image {
967                   normal: "00_button_04_normal.png";
968                   border: 4 4 3 3;
969                   border_scale: 1;
970                }
971             }
972             description { state: "clicked" 0.0;
973                inherit: "default" 0.0;
974                image.normal: "00_button_04_press.png";
975             }
976             description { state: "disabled" 0.0;
977                inherit:  "default" 0.0;
978                image.normal: "00_button_04_dim.png";
979             }
980             description { state: "focused" 0.0;
981                inherit: "default" 0.0;
982                image.normal: "00_button_04_focus.png";
983             }
984          }
985          part {
986             name: "padding_left";
987             type: RECT;
988             scale: 1;
989             mouse_events: 0;
990             description { state: "default" 0.0;
991                align: 0.0 0.0;
992                rel1.relative: 0.0 0.0;
993                rel2.relative: 0.0 1.0;
994                min: 5 5;
995                fixed: 1 0;
996                color: 0 0 0 0;
997             }
998          }
999          part {
1000             name: "padding_right";
1001             type: RECT;
1002             scale: 1;
1003             mouse_events: 0;
1004             description { state: "default" 0.0;
1005                align: 1.0 0.0;
1006                rel1.relative: 1.0 0.0;
1007                rel2.relative: 1.0 1.0;
1008                min: 5 5;
1009                fixed: 1 0;
1010                color: 0 0 0 0;
1011             }
1012          }
1013          part {
1014             name: "padding_top";
1015             type: RECT;
1016             scale: 1;
1017             mouse_events: 0;
1018             description { state: "default" 0.0;
1019                align: 0.0 0.0;
1020                rel1.relative: 0.0 0.0;
1021                rel2.relative: 1.0 0.0;
1022                min: 5 5;
1023                fixed: 0 1;
1024                color: 0 0 0 0;
1025             }
1026          }
1027          part {
1028             name: "padding_bottom";
1029             type: RECT;
1030             scale: 1;
1031             mouse_events: 0;
1032             description { state: "default" 0.0;
1033                align: 1.0 1.0;
1034                rel1.relative: 0.0 1.0;
1035                rel2.relative: 1.0 1.0;
1036                min: 5 5;
1037                fixed: 0 1;
1038                color: 0 0 0 0;
1039             }
1040          }
1041          part {
1042             name: "icon_rect";
1043             type: RECT;
1044             scale: 1;
1045             mouse_events: 0;
1046             description { state: "default" 0.0;
1047                visible: 1;
1048                min: 0 65;
1049                fixed: 1 0;
1050                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
1051                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
1052                align: 0.0 0.5;
1053                color: 0 0 0 0;
1054             }
1055          }
1056          part {
1057             name: "padding_icon_text";
1058             type: RECT;
1059             scale: 1;
1060             mouse_events: 0;
1061             description { state: "default" 0.0; //when only icon or no icon is there
1062                align: 0.0 0.0;
1063                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1064                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1065                fixed: 1 0;
1066                min: 0 0;
1067                color: 0 0 0 0;
1068             }
1069             description { state: "icononly" 0.0;
1070                inherit: "default" 0.0;
1071             }
1072             description { state: "visible" 0.0; //when icon is visible
1073                align: 0.0 0.0;
1074                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1075                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1076                fixed: 1 0;
1077                min: 5 0;
1078                color: 0 0 0 0;
1079             }
1080          }
1081          part { name: "elm.swallow.content";
1082             type: SWALLOW;
1083             scale: 1;
1084             description { state: "default" 0.0;
1085                visible: 0;
1086                align: 0.0 0.5;
1087                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1088                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1089                fixed: 1 0;
1090             }
1091             description { state: "visible" 0.0;
1092                fixed: 1 0;
1093                visible: 1;
1094                align: 0.0 0.5;
1095                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1096                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1097                aspect: 1.0 1.0;
1098                aspect_preference: VERTICAL;
1099             }
1100             description { state: "icononly" 0.0;;
1101                visible: 1;
1102                min: 65 65;
1103                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1104                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1105                align: 0.5 0.5;
1106                aspect: 1.0 1.0;
1107                aspect_preference: VERTICAL;
1108             }
1109          }
1110          part { name: "elm.text";
1111             type: TEXT;
1112             //effect: SHADOW;
1113             mouse_events:  0;
1114             scale: 1;
1115             description { state: "default" 0.0;
1116                visible: 0;
1117                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1118                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
1119                align: 0.5 0.5;
1120                color: BUTTON_TEXT_STYLE3_NORMAL_COLOR_INC;
1121                color2: BUTTON_TEXT_STYLE3_NORMAL_SHAWDOW_COLOR_INC;
1122                text {
1123                   font: "SLP:style=Medium";
1124                   size: 30;
1125                   min:  0 0;
1126                   align: 0.5 0.5;
1127                   max: 1 0;
1128                }
1129             }
1130             description { state: "visible" 0.0;
1131                inherit: "default" 0.0;
1132                visible: 1;
1133                min: 90 65;
1134             }
1135             description { state: "clicked" 0.0;
1136                inherit: "default" 0.0;
1137                visible: 1;
1138                min: 0 0;
1139                color: BUTTON_TEXT_STYLE3_PRESSED_COLOR_INC;
1140                color2: BUTTON_TEXT_STYLE3_PRESSED_SHAWDOW_COLOR_INC;
1141             }
1142             description { state: "disabled" 0.0;
1143                inherit: "default" 0.0;
1144                color: 0 0 0 128;
1145                color3: 0 0 0 0;
1146             }
1147             description { state: "disabled_visible" 0.0;
1148                inherit: "default" 0.0;
1149                color: BUTTON_TEXT_STYLE3_DISABLED_COLOR_INC;
1150                color2: BUTTON_TEXT_STYLE3_DISABLED_SHAWDOW_COLOR_INC;
1151                color3: 0 0 0 0;
1152                visible: 1;
1153             }
1154             description { state: "focused" 0.0;
1155                inherit: "default" 0.0;
1156                visible: 1;
1157                min: 0 0;
1158                color: BUTTON_TEXT_STYLE3_FOCUSED_COLOR_INC;
1159                color2: BUTTON_TEXT_STYLE3_FOCUSED_SHAWDOW_COLOR_INC;
1160             }
1161          }
1162          part { name: "over2";
1163             type: RECT;
1164             mouse_events: 1;
1165             repeat_events: 1;
1166             ignore_flags: ON_HOLD;
1167             description { state: "default" 0.0;
1168                color: 0 0 0 0;
1169             }
1170             description { state: "disabled" 0.0;
1171                inherit:  "default" 0.0;
1172                visible: 0;
1173             }
1174          }
1175          part { name: "over3";
1176             type: RECT;
1177             mouse_events: 1;
1178             repeat_events: 1;
1179             description { state: "default" 0.0;
1180                color: 0 0 0 0;
1181             }
1182             description { state: "clicked" 0.0;
1183                inherit:  "default" 0.0;
1184                visible: 1;
1185             }
1186          }
1187          part { name: "disabler";
1188             type: RECT;
1189             description { state: "default" 0.0;
1190                color: 0 0 0 0;
1191                visible: 0;
1192             }
1193             description { state: "disabled" 0.0;
1194                inherit: "default" 0.0;
1195                visible: 1;
1196             }
1197          }
1198       }
1199       programs {
1200          program { name: "button_click";
1201             signal: "mouse,down,1";
1202             source: "over2";
1203             action: SIGNAL_EMIT "elm,action,press" "";
1204             after: "button_click_anim";
1205          }
1206          program { name: "button_click_anim";
1207             action: STATE_SET "clicked" 0.0;
1208             target: "button_image";
1209             after: "text_clicked";
1210          }
1211          program { name: "text_clicked";
1212             script {
1213                new st[31];
1214                new Float:vl;
1215                get_state(PART:"elm.text", st, 30, vl);
1216                if (!strcmp(st, "visible"))
1217                   set_state(PART:"elm.text", "clicked", 0.0);
1218             }
1219          }
1220          program { name: "button_unpress";
1221             action: SIGNAL_EMIT "elm,action,unpress" "";
1222          }
1223          program { name: "button_mouseout_clicked";
1224             signal: "mouse,up,1";
1225             source: "over3";
1226             script {
1227                new st[31];
1228                new Float:vl;
1229                get_state(PART:"elm.swallow.content", st, 30, vl);
1230                if (strcmp(st, "icononly"))
1231                {
1232                   emit("elm,action,default,text,set", "");
1233                   set_state(PART:"elm.text", "visible", 0.0);
1234                }
1235                if(get_int(button_state) !=1)
1236                   set_state(PART:"button_image", "default", 0.0);
1237             }
1238             after: button_unpress;
1239          }
1240          program { name: "button_click2";
1241             signal: "mouse,down,1";
1242             source: "over3";
1243             action: STATE_SET "clicked" 0.0;
1244             target: "over3";
1245          }
1246          program { name: "button_unclick2";
1247             signal: "mouse,clicked,1";
1248             source: "over3";
1249             action: STATE_SET "default" 0.0;
1250             target: "over3";
1251          }
1252          program { name: "button_unclick3";
1253             signal: "mouse,clicked,1";
1254             source: "over2";
1255             action: SIGNAL_EMIT "elm,action,click" "";
1256          }
1257          program { name: "text_show";
1258             signal: "elm,state,text,visible";
1259             source: "elm";
1260             script {
1261                new st[31];
1262                new Float:vl;
1263                get_state(PART:"elm.swallow.content", st, 30, vl);
1264                if (!strcmp(st, "icononly"))
1265                {
1266                   set_state(PART:"elm.swallow.content", "visible", 0.0);
1267                   set_state(PART:"padding_icon_text", "visible", 0.0);
1268                }
1269                set_state(PART:"elm.text", "visible", 0.0);
1270             }
1271          }
1272          program { name: "text_hide";
1273             signal: "elm,state,text,hidden";
1274             source: "elm";
1275             script {
1276                new st[31];
1277                new Float:vl;
1278                get_state(PART:"elm.swallow.content", st, 30, vl);
1279                if (!strcmp(st, "visible"))
1280                {
1281                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
1282                   set_state(PART:"padding_icon_text", "icononly", 0.0);
1283                }
1284                set_state(PART:"elm.text", "default", 0.0);
1285             }
1286          }
1287          program { name: "icon_show";
1288             signal: "elm,state,icon,visible";
1289             source: "elm";
1290             script {
1291                new st[31];
1292                new Float:vl;
1293                get_state(PART:"elm.text", st, 30, vl);
1294                if (!strcmp(st, "visible"))
1295                {
1296                   set_state(PART:"elm.swallow.content", "visible", 0.0);
1297                   set_state(PART:"padding_icon_text", "visible", 0.0);
1298                }
1299                else
1300                {
1301                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
1302                   set_state(PART:"padding_icon_text", "icononly", 0.0);
1303                }
1304             }
1305          }
1306          program { name: "icon_hide";
1307             signal: "elm,state,icon,hidden";
1308             source: "elm";
1309             action:  STATE_SET "default" 0.0;
1310             target: "elm.swallow.content";
1311          }
1312          program { name: "disable";
1313             signal: "elm,state,disabled";
1314             source: "elm";
1315             action: STATE_SET "disabled" 0.0;
1316             target: "button_image";
1317             target: "over2";
1318             target: "disabler";
1319             after: "disable_text";
1320          }
1321          program { name: "disable_text";
1322             script {
1323                new st[31];
1324                new Float:vl;
1325                get_state(PART:"elm.text", st, 30, vl);
1326                if (!strcmp(st, "visible"))
1327                   set_state(PART:"elm.text", "disabled_visible", 0.0);
1328                else
1329                   set_state(PART:"elm.text", "disabled", 0.0);
1330                set_int(button_state, 1);
1331             }
1332          }
1333          program { name: "enable";
1334             signal: "elm,state,enabled";
1335             source: "elm";
1336             action: STATE_SET "default" 0.0;
1337             target: "button_image";
1338             target: "over2";
1339             target: "disabler";
1340             after: "enable_text";
1341          }
1342          program { name: "enable_text";
1343             script {
1344                new st[31];
1345                new Float:vl;
1346                get_state(PART:"elm.text", st, 30, vl);
1347                if (!strcmp(st, "disabled_visible"))
1348                   set_state(PART:"elm.text", "visible", 0.0);
1349                else
1350                   set_state(PART:"elm.text", "default", 0.0);
1351                set_int(button_state, 0);
1352             }
1353          }
1354          program { name: "focused";
1355             //signal: "elm,action,focus";
1356             //source: "elm";
1357             action: STATE_SET "focused" 0.0;
1358             target: "button_image";
1359             target: "elm.text";
1360          }
1361          program { name: "unfocused";
1362             //signal: "elm,action,unfocus";
1363             //source: "elm";
1364             action: STATE_SET "default" 0.0;
1365             target: "button_image";
1366             after: "unfocus_text";
1367          }
1368          program { name: "unfocus_text";
1369             action: STATE_SET "visible" 0.0;
1370             target: "elm.text";
1371          }
1372       }
1373    }
1374
1375 ///////////////////////////////////////////////////////////////////////////////////////
1376    group { name: "elm/button/base/text_only/sweep";
1377       images {
1378          image: "00_button_sweep.png" COMP;
1379          image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
1380          image: "00_button_sweep_dim.png" COMP;
1381       }
1382       script {
1383          public button_state = 0; //0:enabled, 1: disabled
1384       }
1385       parts {
1386          part { name: "button_image";
1387             mouse_events: 1;
1388             scale: 1;
1389             description { state: "default" 0.0;
1390                min: 10 38;
1391                image {
1392                   normal: "00_button_sweep.png";
1393                   border: 4 4 3 3;
1394                   border_scale: 1;
1395                }
1396             }
1397             description { state: "clicked" 0.0;
1398                inherit: "default" 0.0;
1399                image.normal: "00_button_sweep_press.png";
1400             }
1401             description { state: "disabled" 0.0;
1402                inherit:  "default" 0.0;
1403                image.normal: "00_button_sweep_dim.png";
1404             }
1405             description { state: "focused" 0.0;
1406                inherit: "default" 0.0;
1407                image.normal: "00_button_sweep_press.png";
1408             }
1409          }
1410          part {
1411             name: "padding_left";
1412             type: RECT;
1413             scale: 1;
1414             mouse_events: 0;
1415             description { state: "default" 0.0;
1416                align: 0.0 0.0;
1417                rel1.relative: 0.0 0.0;
1418                rel2.relative: 0.0 1.0;
1419                min: 5 5;
1420                fixed: 1 0;
1421                color: 0 0 0 0;
1422             }
1423          }
1424          part {
1425             name: "padding_right";
1426             type: RECT;
1427             scale: 1;
1428             mouse_events: 0;
1429             description { state: "default" 0.0;
1430                align: 1.0 0.0;
1431                rel1.relative: 1.0 0.0;
1432                rel2.relative: 1.0 1.0;
1433                min: 5 5;
1434                fixed: 1 0;
1435                color: 0 0 0 0;
1436             }
1437          }
1438          part {
1439             name: "padding_top";
1440             type: RECT;
1441             scale: 1;
1442             mouse_events: 0;
1443             description { state: "default" 0.0;
1444                align: 0.0 0.0;
1445                rel1.relative: 0.0 0.0;
1446                rel2.relative: 1.0 0.0;
1447                min: 5 5;
1448                fixed: 0 1;
1449                color: 0 0 0 0;
1450             }
1451          }
1452          part {
1453             name: "padding_bottom";
1454             type: RECT;
1455             scale: 1;
1456             mouse_events: 0;
1457             description { state: "default" 0.0;
1458                align: 1.0 1.0;
1459                rel1.relative: 0.0 1.0;
1460                rel2.relative: 1.0 1.0;
1461                min: 5 5;
1462                fixed: 0 1;
1463                color: 0 0 0 0;
1464             }
1465          }
1466          part {
1467             name: "icon_rect";
1468             type: RECT;
1469             scale: 1;
1470             mouse_events: 0;
1471             description { state: "default" 0.0;
1472                visible: 1;
1473                min: 0 28;
1474                fixed: 1 0;
1475                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
1476                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
1477                align: 0.0 0.5;
1478                color: 0 0 0 0;
1479             }
1480          }
1481          part {
1482             name: "padding_icon_text";
1483             type: RECT;
1484             scale: 1;
1485             mouse_events: 0;
1486             description { state: "default" 0.0; //when only icon or no icon is there
1487                align: 0.0 0.0;
1488                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1489                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1490                fixed: 1 0;
1491                min: 0 0;
1492                color: 0 0 0 0;
1493             }
1494             description { state: "icononly" 0.0;
1495                inherit: "default" 0.0;
1496             }
1497             description { state: "visible" 0.0; //when icon is visible
1498                align: 0.0 0.0;
1499                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1500                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1501                fixed: 1 0;
1502                min: 5 0;
1503                color: 0 0 0 0;
1504             }
1505          }
1506          part { name: "elm.swallow.content";
1507             type: SWALLOW;
1508             scale: 1;
1509             description { state: "default" 0.0;
1510                visible: 0;
1511                align: 0.0 0.5;
1512                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1513                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1514                fixed: 1 0;
1515             }
1516             description { state: "visible" 0.0;
1517                fixed: 1 0;
1518                visible: 1;
1519                align: 0.0 0.5;
1520                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1521                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1522                aspect: 1.0 1.0;
1523                aspect_preference: VERTICAL;
1524             }
1525             description { state: "icononly" 0.0;;
1526                visible: 1;
1527                min: 28 28;
1528                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1529                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1530                align: 0.5 0.5;
1531                aspect: 1.0 1.0;
1532                aspect_preference: VERTICAL;
1533             }
1534          }
1535          part { name: "elm.text";
1536             type: TEXT;
1537             //effect: SHADOW;
1538             mouse_events:  0;
1539             scale: 1;
1540             description { state: "default" 0.0;
1541                visible: 0;
1542                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1543                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
1544                align: 0.5 0.5;
1545                color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1546                color2: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
1547                text {
1548                   font: "SLP:style=Medium";
1549                   size: 20;
1550                   min:  0 0;
1551                   align: 0.5 0.5;
1552                   max: 1 0;
1553                }
1554             }
1555             description { state: "visible" 0.0;
1556                inherit: "default" 0.0;
1557                visible: 1;
1558                min: 90 28;
1559             }
1560             description { state: "clicked" 0.0;
1561                inherit: "default" 0.0;
1562                visible: 1;
1563                min: 0 0;
1564                color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1565                color2: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
1566             }
1567             description { state: "disabled" 0.0;
1568                inherit: "default" 0.0;
1569                color: 0 0 0 128;
1570                color3: 0 0 0 0;
1571             }
1572             description { state: "disabled_visible" 0.0;
1573                inherit: "default" 0.0;
1574                color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1575                color2: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
1576                color3: 0 0 0 0;
1577                visible: 1;
1578             }
1579             description { state: "focused" 0.0;
1580                inherit: "default" 0.0;
1581                visible: 1;
1582                min: 0 0;
1583                color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1584                color2: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
1585             }
1586          }
1587          part { name: "over2";
1588             type: RECT;
1589             mouse_events: 1;
1590             repeat_events: 1;
1591             ignore_flags: ON_HOLD;
1592             description { state: "default" 0.0;
1593                color: 0 0 0 0;
1594             }
1595             description { state: "disabled" 0.0;
1596                inherit:  "default" 0.0;
1597                visible: 0;
1598             }
1599          }
1600          part { name: "over3";
1601             type: RECT;
1602             mouse_events: 1;
1603             repeat_events: 1;
1604             description { state: "default" 0.0;
1605                color: 0 0 0 0;
1606             }
1607             description { state: "clicked" 0.0;
1608                inherit:  "default" 0.0;
1609                visible: 1;
1610             }
1611          }
1612          part { name: "disabler";
1613             type: RECT;
1614             description { state: "default" 0.0;
1615                color: 0 0 0 0;
1616                visible: 0;
1617             }
1618             description { state: "disabled" 0.0;
1619                inherit: "default" 0.0;
1620                visible: 1;
1621             }
1622          }
1623       }
1624       programs {
1625          program { name: "button_click";
1626             signal: "mouse,down,1";
1627             source: "over2";
1628             action: SIGNAL_EMIT "elm,action,press" "";
1629             after: "button_click_anim";
1630          }
1631          program { name: "button_click_anim";
1632             action: STATE_SET "clicked" 0.0;
1633             target: "button_image";
1634             after: "text_clicked";
1635          }
1636          program { name: "text_clicked";
1637             script {
1638                new st[31];
1639                new Float:vl;
1640                get_state(PART:"elm.text", st, 30, vl);
1641                if (!strcmp(st, "visible"))
1642                   set_state(PART:"elm.text", "clicked", 0.0);
1643             }
1644          }
1645          program { name: "button_unpress";
1646             action: SIGNAL_EMIT "elm,action,unpress" "";
1647          }
1648          program { name: "button_mouseout_clicked";
1649             signal: "mouse,up,1";
1650             source: "over3";
1651             script {
1652                new st[31];
1653                new Float:vl;
1654                get_state(PART:"elm.swallow.content", st, 30, vl);
1655                if (strcmp(st, "icononly"))
1656                {
1657                   emit("elm,action,default,text,set", "");
1658                   set_state(PART:"elm.text", "visible", 0.0);
1659                }
1660                if(get_int(button_state) !=1)
1661                   set_state(PART:"button_image", "default", 0.0);
1662             }
1663             after: button_unpress;
1664          }
1665          program { name: "button_click2";
1666             signal: "mouse,down,1";
1667             source: "over3";
1668             action: STATE_SET "clicked" 0.0;
1669             target: "over3";
1670          }
1671          program { name: "button_unclick2";
1672             signal: "mouse,clicked,1";
1673             source: "over3";
1674             action: STATE_SET "default" 0.0;
1675             target: "over3";
1676          }
1677          program { name: "button_unclick3";
1678             signal: "mouse,clicked,1";
1679             source: "over2";
1680             action: SIGNAL_EMIT "elm,action,click" "";
1681          }
1682          program { name: "text_show";
1683             signal: "elm,state,text,visible";
1684             source: "elm";
1685             script {
1686                new st[31];
1687                new Float:vl;
1688                get_state(PART:"elm.swallow.content", st, 30, vl);
1689                if (!strcmp(st, "icononly"))
1690                {
1691                   set_state(PART:"elm.swallow.content", "visible", 0.0);
1692                   set_state(PART:"padding_icon_text", "visible", 0.0);
1693                }
1694                set_state(PART:"elm.text", "visible", 0.0);
1695             }
1696          }
1697          program { name: "text_hide";
1698             signal: "elm,state,text,hidden";
1699             source: "elm";
1700             script {
1701                new st[31];
1702                new Float:vl;
1703                get_state(PART:"elm.swallow.content", st, 30, vl);
1704                if (!strcmp(st, "visible"))
1705                {
1706                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
1707                   set_state(PART:"padding_icon_text", "icononly", 0.0);
1708                }
1709                set_state(PART:"elm.text", "default", 0.0);
1710             }
1711          }
1712          program { name: "icon_show";
1713             signal: "elm,state,icon,visible";
1714             source: "elm";
1715             script {
1716                new st[31];
1717                new Float:vl;
1718                get_state(PART:"elm.text", st, 30, vl);
1719                if (!strcmp(st, "visible"))
1720                {
1721                   set_state(PART:"elm.swallow.content", "visible", 0.0);
1722                   set_state(PART:"padding_icon_text", "visible", 0.0);
1723                }
1724                else
1725                {
1726                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
1727                   set_state(PART:"padding_icon_text", "icononly", 0.0);
1728                }
1729             }
1730          }
1731          program { name: "icon_hide";
1732             signal: "elm,state,icon,hidden";
1733             source: "elm";
1734             action:  STATE_SET "default" 0.0;
1735             target: "elm.swallow.content";
1736          }
1737          program { name: "disable";
1738             signal: "elm,state,disabled";
1739             source: "elm";
1740             action: STATE_SET "disabled" 0.0;
1741             target: "button_image";
1742             target: "over2";
1743             target: "disabler";
1744             after: "disable_text";
1745          }
1746          program { name: "disable_text";
1747             script {
1748                new st[31];
1749                new Float:vl;
1750                get_state(PART:"elm.text", st, 30, vl);
1751                if (!strcmp(st, "visible"))
1752                   set_state(PART:"elm.text", "disabled_visible", 0.0);
1753                else
1754                   set_state(PART:"elm.text", "disabled", 0.0);
1755                set_int(button_state, 1);
1756             }
1757          }
1758          program { name: "enable";
1759             signal: "elm,state,enabled";
1760             source: "elm";
1761             action: STATE_SET "default" 0.0;
1762             target: "button_image";
1763             target: "over2";
1764             target: "disabler";
1765             after: "enable_text";
1766          }
1767          program { name: "enable_text";
1768             script {
1769                new st[31];
1770                new Float:vl;
1771                get_state(PART:"elm.text", st, 30, vl);
1772                if (!strcmp(st, "disabled_visible"))
1773                   set_state(PART:"elm.text", "visible", 0.0);
1774                else
1775                   set_state(PART:"elm.text", "default", 0.0);
1776                set_int(button_state, 0);
1777             }
1778          }
1779          program { name: "focused";
1780             //signal: "elm,action,focus";
1781             //source: "elm";
1782             action: STATE_SET "focused" 0.0;
1783             target: "button_image";
1784             target: "elm.text";
1785          }
1786          program { name: "unfocused";
1787             //signal: "elm,action,unfocus";
1788             //source: "elm";
1789             action: STATE_SET "default" 0.0;
1790             target: "button_image";
1791             after: "unfocus_text";
1792          }
1793          program { name: "unfocus_text";
1794             action: STATE_SET "visible" 0.0;
1795             target: "elm.text";
1796          }
1797       }
1798    }
1799
1800 ///////////////////////////////////////////////////////////////////////////////////////
1801 //Button style added for 2 line sweep in the list
1802    group { name: "elm/button/base/text_only/sweep_46";
1803       images {
1804          image: "00_button_sweep_46.png" COMP;
1805          image: "00_button_sweep_46_press.png" COMP;
1806          image: "00_button_sweep_46_focus.png" COMP;
1807          image: "00_button_sweep_46_dim.png" COMP;
1808       }
1809       script {
1810          public button_state = 0; //0:enabled, 1: disabled
1811       }
1812       parts {
1813          part { name: "button_image";
1814             mouse_events: 1;
1815             scale: 1;
1816             description { state: "default" 0.0;
1817                min: 16 46;
1818                image {
1819                   normal: "00_button_sweep_46.png";
1820                   border: 7 7 7 7;
1821                   border_scale: 1;
1822                }
1823             }
1824             description { state: "clicked" 0.0;
1825                inherit: "default" 0.0;
1826                image.normal: "00_button_sweep_46_press.png";
1827             }
1828             description { state: "disabled" 0.0;
1829                inherit:  "default" 0.0;
1830                image.normal: "00_button_sweep_46_dim.png";
1831             }
1832             description { state: "focused" 0.0;
1833                inherit: "default" 0.0;
1834                image.normal: "00_button_sweep_46_focus.png";
1835             }
1836          }
1837          part {
1838             name: "padding_left";
1839             type: RECT;
1840             scale: 1;
1841             mouse_events: 0;
1842             description { state: "default" 0.0;
1843                align: 0.0 0.0;
1844                rel1.relative: 0.0 0.0;
1845                rel2.relative: 0.0 1.0;
1846                min: 5 5;
1847                fixed: 1 0;
1848                color: 0 0 0 0;
1849             }
1850          }
1851          part {
1852             name: "padding_right";
1853             type: RECT;
1854             scale: 1;
1855             mouse_events: 0;
1856             description { state: "default" 0.0;
1857                align: 1.0 0.0;
1858                rel1.relative: 1.0 0.0;
1859                rel2.relative: 1.0 1.0;
1860                min: 5 5;
1861                fixed: 1 0;
1862                color: 0 0 0 0;
1863             }
1864          }
1865          part {
1866             name: "padding_top";
1867             type: RECT;
1868             scale: 1;
1869             mouse_events: 0;
1870             description { state: "default" 0.0;
1871                align: 0.0 0.0;
1872                rel1.relative: 0.0 0.0;
1873                rel2.relative: 1.0 0.0;
1874                min: 5 5;
1875                fixed: 0 1;
1876                color: 0 0 0 0;
1877             }
1878          }
1879          part {
1880             name: "padding_bottom";
1881             type: RECT;
1882             scale: 1;
1883             mouse_events: 0;
1884             description { state: "default" 0.0;
1885                align: 1.0 1.0;
1886                rel1.relative: 0.0 1.0;
1887                rel2.relative: 1.0 1.0;
1888                min: 5 5;
1889                fixed: 0 1;
1890                color: 0 0 0 0;
1891             }
1892          }
1893          part {
1894             name: "icon_rect";
1895             type: RECT;
1896             scale: 1;
1897             mouse_events: 0;
1898             description { state: "default" 0.0;
1899                visible: 1;
1900                min: 0 36;
1901                fixed: 1 0;
1902                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
1903                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
1904                align: 0.0 0.5;
1905                color: 0 0 0 0;
1906             }
1907          }
1908          part {
1909             name: "padding_icon_text";
1910             type: RECT;
1911             scale: 1;
1912             mouse_events: 0;
1913             description { state: "default" 0.0; //when only icon or no icon is there
1914                align: 0.0 0.0;
1915                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1916                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1917                fixed: 1 0;
1918                min: 0 0;
1919                color: 0 0 0 0;
1920             }
1921             description { state: "icononly" 0.0;
1922                inherit: "default" 0.0;
1923             }
1924             description { state: "visible" 0.0; //when icon is visible
1925                align: 0.0 0.0;
1926                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
1927                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
1928                fixed: 1 0;
1929                min: 5 0;
1930                color: 0 0 0 0;
1931             }
1932          }
1933          part { name: "elm.swallow.content";
1934             type: SWALLOW;
1935             scale: 1;
1936             description { state: "default" 0.0;
1937                visible: 0;
1938                align: 0.0 0.5;
1939                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1940                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1941                fixed: 1 0;
1942             }
1943             description { state: "visible" 0.0;
1944                fixed: 1 0;
1945                visible: 1;
1946                align: 0.0 0.5;
1947                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1948                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
1949                aspect: 1.0 1.0;
1950                aspect_preference: VERTICAL;
1951             }
1952             description { state: "icononly" 0.0;;
1953                visible: 1;
1954                min: 36 36;
1955                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1956                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1957                align: 0.5 0.5;
1958                aspect: 1.0 1.0;
1959                aspect_preference: VERTICAL;
1960             }
1961          }
1962          part { name: "elm.text";
1963             type: TEXT;
1964             //effect: SHADOW;
1965             mouse_events:  0;
1966             scale: 1;
1967             description { state: "default" 0.0;
1968                visible: 0;
1969                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1970                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
1971                align: 0.5 0.5;
1972                color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1973                color2: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
1974                text {
1975                   font: "SLP:style=Medium";
1976                   size: 24;
1977                   min:  0 0;
1978                   align: 0.5 0.5;
1979                   max: 1 0;
1980                }
1981             }
1982             description { state: "visible" 0.0;
1983                inherit: "default" 0.0;
1984                visible: 1;
1985                min: 90 36;
1986             }
1987             description { state: "clicked" 0.0;
1988                inherit: "default" 0.0;
1989                visible: 1;
1990                min: 0 0;
1991                color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1992                color2: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
1993             }
1994             description { state: "disabled" 0.0;
1995                inherit: "default" 0.0;
1996                color: 0 0 0 128;
1997                color3: 0 0 0 0;
1998             }
1999             description { state: "disabled_visible" 0.0;
2000                inherit: "default" 0.0;
2001                color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
2002                color2: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
2003                color3: 0 0 0 0;
2004                visible: 1;
2005             }
2006             description { state: "focused" 0.0;
2007                inherit: "default" 0.0;
2008                visible: 1;
2009                min: 0 0;
2010                color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2011                color2: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
2012             }
2013          }
2014          part { name: "over2";
2015             type: RECT;
2016             mouse_events: 1;
2017             repeat_events: 1;
2018             ignore_flags: ON_HOLD;
2019             description { state: "default" 0.0;
2020                color: 0 0 0 0;
2021             }
2022             description { state: "disabled" 0.0;
2023                inherit:  "default" 0.0;
2024                visible: 0;
2025             }
2026          }
2027          part { name: "over3";
2028             type: RECT;
2029             mouse_events: 1;
2030             repeat_events: 1;
2031             description { state: "default" 0.0;
2032                color: 0 0 0 0;
2033             }
2034             description { state: "clicked" 0.0;
2035                inherit:  "default" 0.0;
2036                visible: 1;
2037             }
2038          }
2039          part { name: "disabler";
2040             type: RECT;
2041             description { state: "default" 0.0;
2042                color: 0 0 0 0;
2043                visible: 0;
2044             }
2045             description { state: "disabled" 0.0;
2046                inherit: "default" 0.0;
2047                visible: 1;
2048             }
2049          }
2050       }
2051       programs {
2052          program { name: "button_click";
2053             signal: "mouse,down,1";
2054             source: "over2";
2055             action: SIGNAL_EMIT "elm,action,press" "";
2056             after: "button_click_anim";
2057          }
2058          program { name: "button_click_anim";
2059             action: STATE_SET "clicked" 0.0;
2060             target: "button_image";
2061             after: "text_clicked";
2062          }
2063          program { name: "text_clicked";
2064             script {
2065                new st[31];
2066                new Float:vl;
2067                get_state(PART:"elm.text", st, 30, vl);
2068                if (!strcmp(st, "visible"))
2069                   set_state(PART:"elm.text", "clicked", 0.0);
2070             }
2071          }
2072          program { name: "button_unpress";
2073             action: SIGNAL_EMIT "elm,action,unpress" "";
2074          }
2075          program { name: "button_mouseout_clicked";
2076             signal: "mouse,up,1";
2077             source: "over3";
2078             script {
2079                new st[31];
2080                new Float:vl;
2081                get_state(PART:"elm.swallow.content", st, 30, vl);
2082                if (strcmp(st, "icononly"))
2083                {
2084                   emit("elm,action,default,text,set", "");
2085                   set_state(PART:"elm.text", "visible", 0.0);
2086                }
2087                if(get_int(button_state) !=1)
2088                   set_state(PART:"button_image", "default", 0.0);
2089             }
2090             after: button_unpress;
2091          }
2092          program { name: "button_click2";
2093             signal: "mouse,down,1";
2094             source: "over3";
2095             action: STATE_SET "clicked" 0.0;
2096             target: "over3";
2097          }
2098          program { name: "button_unclick2";
2099             signal: "mouse,clicked,1";
2100             source: "over3";
2101             action: STATE_SET "default" 0.0;
2102             target: "over3";
2103          }
2104          program { name: "button_unclick3";
2105             signal: "mouse,clicked,1";
2106             source: "over2";
2107             action: SIGNAL_EMIT "elm,action,click" "";
2108          }
2109          program { name: "text_show";
2110             signal: "elm,state,text,visible";
2111             source: "elm";
2112             script {
2113                new st[31];
2114                new Float:vl;
2115                get_state(PART:"elm.swallow.content", st, 30, vl);
2116                if (!strcmp(st, "icononly"))
2117                {
2118                   set_state(PART:"elm.swallow.content", "visible", 0.0);
2119                   set_state(PART:"padding_icon_text", "visible", 0.0);
2120                }
2121                set_state(PART:"elm.text", "visible", 0.0);
2122             }
2123          }
2124          program { name: "text_hide";
2125             signal: "elm,state,text,hidden";
2126             source: "elm";
2127             script {
2128                new st[31];
2129                new Float:vl;
2130                get_state(PART:"elm.swallow.content", st, 30, vl);
2131                if (!strcmp(st, "visible"))
2132                {
2133                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
2134                   set_state(PART:"padding_icon_text", "icononly", 0.0);
2135                }
2136                set_state(PART:"elm.text", "default", 0.0);
2137             }
2138          }
2139          program { name: "icon_show";
2140             signal: "elm,state,icon,visible";
2141             source: "elm";
2142             script {
2143                new st[31];
2144                new Float:vl;
2145                get_state(PART:"elm.text", st, 30, vl);
2146                if (!strcmp(st, "visible"))
2147                {
2148                   set_state(PART:"elm.swallow.content", "visible", 0.0);
2149                   set_state(PART:"padding_icon_text", "visible", 0.0);
2150                }
2151                else
2152                {
2153                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
2154                   set_state(PART:"padding_icon_text", "icononly", 0.0);
2155                }
2156             }
2157          }
2158          program { name: "icon_hide";
2159             signal: "elm,state,icon,hidden";
2160             source: "elm";
2161             action:  STATE_SET "default" 0.0;
2162             target: "elm.swallow.content";
2163          }
2164          program { name: "disable";
2165             signal: "elm,state,disabled";
2166             source: "elm";
2167             action: STATE_SET "disabled" 0.0;
2168             target: "button_image";
2169             target: "over2";
2170             target: "disabler";
2171             after: "disable_text";
2172          }
2173          program { name: "disable_text";
2174             script {
2175                new st[31];
2176                new Float:vl;
2177                get_state(PART:"elm.text", st, 30, vl);
2178                if (!strcmp(st, "visible"))
2179                   set_state(PART:"elm.text", "disabled_visible", 0.0);
2180                else
2181                   set_state(PART:"elm.text", "disabled", 0.0);
2182                set_int(button_state, 1);
2183             }
2184          }
2185          program { name: "enable";
2186             signal: "elm,state,enabled";
2187             source: "elm";
2188             action: STATE_SET "default" 0.0;
2189             target: "button_image";
2190             target: "over2";
2191             target: "disabler";
2192             after: "enable_text";
2193          }
2194          program { name: "enable_text";
2195             script {
2196                new st[31];
2197                new Float:vl;
2198                get_state(PART:"elm.text", st, 30, vl);
2199                if (!strcmp(st, "disabled_visible"))
2200                   set_state(PART:"elm.text", "visible", 0.0);
2201                else
2202                   set_state(PART:"elm.text", "default", 0.0);
2203                set_int(button_state, 0);
2204             }
2205          }
2206          program { name: "focused";
2207             //signal: "elm,action,focus";
2208             //source: "elm";
2209             action: STATE_SET "focused" 0.0;
2210             target: "button_image";
2211             target: "elm.text";
2212          }
2213          program { name: "unfocused";
2214             //signal: "elm,action,unfocus";
2215             //source: "elm";
2216             action: STATE_SET "default" 0.0;
2217             target: "button_image";
2218             after: "unfocus_text";
2219          }
2220          program { name: "unfocus_text";
2221             action: STATE_SET "visible" 0.0;
2222             target: "elm.text";
2223          }
2224       }
2225    }
2226
2227 ///////////////////////////////////////////////////////////////////////////////////////
2228    group { name: "elm/button/base/text_only/title";
2229       images {
2230          image: "00_button_02_normal.png" COMP;
2231          image: "00_button_02_press.png" COMP;
2232          image: "00_button_02_focus.png" COMP;
2233       }
2234       script {
2235          public button_state = 0; //0:enabled, 1: disabled
2236       }
2237       parts {
2238          part { name: "button_image";
2239             mouse_events: 1;
2240             scale: 1;
2241             description { state: "default" 0.0;
2242                min: 16 50;
2243                image {
2244                   normal: "00_button_02_normal.png";
2245                   border: 7 7 7 7;
2246                   border_scale: 1;
2247                }
2248             }
2249             description { state: "clicked" 0.0;
2250                inherit: "default" 0.0;
2251                image.normal: "00_button_02_press.png";
2252             }
2253             description { state: "disabled" 0.0;
2254                inherit:  "default" 0.0;
2255             }
2256             description { state: "focused" 0.0;
2257                inherit: "default" 0.0;
2258                image.normal: "00_button_02_focus.png";
2259             }
2260          }
2261          part {
2262             name: "padding_left";
2263             type: RECT;
2264             scale: 1;
2265             mouse_events: 0;
2266             description { state: "default" 0.0;
2267                align: 0.0 0.0;
2268                rel1.relative: 0.0 0.0;
2269                rel2.relative: 0.0 1.0;
2270                min: 5 5;
2271                fixed: 1 0;
2272                color: 0 0 0 0;
2273             }
2274          }
2275          part {
2276             name: "padding_right";
2277             type: RECT;
2278             scale: 1;
2279             mouse_events: 0;
2280             description { state: "default" 0.0;
2281                align: 1.0 0.0;
2282                rel1.relative: 1.0 0.0;
2283                rel2.relative: 1.0 1.0;
2284                min: 5 5;
2285                fixed: 1 0;
2286                color: 0 0 0 0;
2287             }
2288          }
2289          part {
2290             name: "padding_top";
2291             type: RECT;
2292             scale: 1;
2293             mouse_events: 0;
2294             description { state: "default" 0.0;
2295                align: 0.0 0.0;
2296                rel1.relative: 0.0 0.0;
2297                rel2.relative: 1.0 0.0;
2298                min: 5 5;
2299                fixed: 0 1;
2300                color: 0 0 0 0;
2301             }
2302          }
2303          part {
2304             name: "padding_bottom";
2305             type: RECT;
2306             scale: 1;
2307             mouse_events: 0;
2308             description { state: "default" 0.0;
2309                align: 1.0 1.0;
2310                rel1.relative: 0.0 1.0;
2311                rel2.relative: 1.0 1.0;
2312                min: 5 5;
2313                fixed: 0 1;
2314                color: 0 0 0 0;
2315             }
2316          }
2317          part {
2318             name: "icon_rect";
2319             type: RECT;
2320             scale: 1;
2321             mouse_events: 0;
2322             description { state: "default" 0.0;
2323                visible: 1;
2324                min: 0 40;
2325                fixed: 1 0;
2326                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
2327                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
2328                align: 0.0 0.5;
2329                color: 0 0 0 0;
2330             }
2331          }
2332          part {
2333             name: "padding_icon_text";
2334             type: RECT;
2335             scale: 1;
2336             mouse_events: 0;
2337             description { state: "default" 0.0; //when only icon or no icon is there
2338                align: 0.0 0.0;
2339                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2340                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2341                fixed: 1 0;
2342                min: 0 0;
2343                color: 0 0 0 0;
2344             }
2345             description { state: "icononly" 0.0;
2346                inherit: "default" 0.0;
2347             }
2348             description { state: "visible" 0.0; //when icon is visible
2349                align: 0.0 0.0;
2350                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2351                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2352                fixed: 1 0;
2353                min: 5 0;
2354                color: 0 0 0 0;
2355             }
2356          }
2357          part { name: "elm.swallow.content";
2358             type: SWALLOW;
2359             scale: 1;
2360             description { state: "default" 0.0;
2361                visible: 0;
2362                align: 0.0 0.5;
2363                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2364                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2365                fixed: 1 0;
2366             }
2367             description { state: "visible" 0.0;
2368                fixed: 1 0;
2369                visible: 1;
2370                align: 0.0 0.5;
2371                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2372                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2373                aspect: 1.0 1.0;
2374                aspect_preference: VERTICAL;
2375             }
2376             description { state: "icononly" 0.0;;
2377                visible: 1;
2378                min: 40 40;
2379                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2380                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
2381                align: 0.5 0.5;
2382                aspect: 1.0 1.0;
2383                aspect_preference: VERTICAL;
2384             }
2385          }
2386          part { name: "elm.text";
2387             type: TEXT;
2388             //effect: SHADOW;
2389             mouse_events:  0;
2390             scale: 1;
2391             description { state: "default" 0.0;
2392                visible: 0;
2393                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
2394                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
2395                align: 0.5 0.5;
2396                color: 255 255 255 255;
2397                color2: 0 0 0 0;
2398                text {
2399                   font: "SLP:style=Medium";
2400                   size: 24;
2401                   min:  0 0;
2402                   max: 1 0;
2403                   align: 0.5 0.5;
2404                }
2405             }
2406             description { state: "visible" 0.0;
2407                inherit: "default" 0.0;
2408                visible: 1;
2409                min: 90 40;
2410             }
2411             description { state: "clicked" 0.0;
2412                inherit: "default" 0.0;
2413                visible: 1;
2414                min: 0 0;
2415                color: 255 255 255 255;
2416                color2: 0 0 0 102;
2417             }
2418             description { state: "disabled" 0.0;
2419                inherit: "default" 0.0;
2420                color: 0 0 0 128;
2421                color3: 0 0 0 0;
2422             }
2423             description { state: "disabled_visible" 0.0;
2424                inherit: "default" 0.0;
2425                color: 0 0 0 128;
2426                color3: 0 0 0 0;
2427                visible: 1;
2428             }
2429             description { state: "focused" 0.0;
2430                inherit: "default" 0.0;
2431                visible: 1;
2432                min: 0 0;
2433                color: 255 255 255 255;
2434                color2: 0 0 0 102;
2435             }
2436          }
2437          part { name: "over2";
2438             type: RECT;
2439             mouse_events: 1;
2440             repeat_events: 1;
2441             ignore_flags: ON_HOLD;
2442             description { state: "default" 0.0;
2443                color: 0 0 0 0;
2444             }
2445             description { state: "disabled" 0.0;
2446                inherit:  "default" 0.0;
2447                visible: 0;
2448             }
2449          }
2450          part { name: "over3";
2451             type: RECT;
2452             mouse_events: 1;
2453             repeat_events: 1;
2454             description { state: "default" 0.0;
2455                color: 0 0 0 0;
2456             }
2457             description { state: "clicked" 0.0;
2458                inherit:  "default" 0.0;
2459                visible: 1;
2460             }
2461          }
2462          part { name: "disabler";
2463             type: RECT;
2464             description { state: "default" 0.0;
2465                color: 0 0 0 0;
2466                visible: 0;
2467             }
2468             description { state: "disabled" 0.0;
2469                inherit: "default" 0.0;
2470                visible: 1;
2471             }
2472          }
2473       }
2474       programs {
2475          program { name: "button_click";
2476             signal: "mouse,down,1";
2477             source: "over2";
2478             action: SIGNAL_EMIT "elm,action,press" "";
2479             after: "button_click_anim";
2480          }
2481          program { name: "button_click_anim";
2482             action: STATE_SET "clicked" 0.0;
2483             target: "button_image";
2484             after: "text_clicked";
2485          }
2486          program { name: "text_clicked";
2487             script {
2488                new st[31];
2489                new Float:vl;
2490                get_state(PART:"elm.text", st, 30, vl);
2491                if (!strcmp(st, "visible"))
2492                   set_state(PART:"elm.text", "clicked", 0.0);
2493             }
2494          }
2495          program { name: "button_unpress";
2496             action: SIGNAL_EMIT "elm,action,unpress" "";
2497          }
2498          program { name: "button_mouseout_clicked";
2499             signal: "mouse,up,1";
2500             source: "over3";
2501             script {
2502                new st[31];
2503                new Float:vl;
2504                get_state(PART:"elm.swallow.content", st, 30, vl);
2505                if (strcmp(st, "icononly"))
2506                {
2507                   emit("elm,action,default,text,set", "");
2508                   set_state(PART:"elm.text", "visible", 0.0);
2509                }
2510                if(get_int(button_state) !=1)
2511                   set_state(PART:"button_image", "default", 0.0);
2512             }
2513             after: button_unpress;
2514          }
2515          program { name: "button_click2";
2516             signal: "mouse,down,1";
2517             source: "over3";
2518             action: STATE_SET "clicked" 0.0;
2519             target: "over3";
2520          }
2521          program { name: "button_unclick2";
2522             signal: "mouse,clicked,1";
2523             source: "over3";
2524             action: STATE_SET "default" 0.0;
2525             target: "over3";
2526          }
2527          program { name: "button_unclick3";
2528             signal: "mouse,clicked,1";
2529             source: "over2";
2530             action: SIGNAL_EMIT "elm,action,click" "";
2531          }
2532          program { name: "text_show";
2533             signal: "elm,state,text,visible";
2534             source: "elm";
2535             script {
2536                new st[31];
2537                new Float:vl;
2538                get_state(PART:"elm.swallow.content", st, 30, vl);
2539                if (!strcmp(st, "icononly"))
2540                {
2541                   set_state(PART:"elm.swallow.content", "visible", 0.0);
2542                   set_state(PART:"padding_icon_text", "visible", 0.0);
2543                }
2544                set_state(PART:"elm.text", "visible", 0.0);
2545             }
2546          }
2547          program { name: "text_hide";
2548             signal: "elm,state,text,hidden";
2549             source: "elm";
2550             script {
2551                new st[31];
2552                new Float:vl;
2553                get_state(PART:"elm.swallow.content", st, 30, vl);
2554                if (!strcmp(st, "visible"))
2555                {
2556                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
2557                   set_state(PART:"padding_icon_text", "icononly", 0.0);
2558                }
2559                set_state(PART:"elm.text", "default", 0.0);
2560             }
2561          }
2562          program { name: "icon_show";
2563             signal: "elm,state,icon,visible";
2564             source: "elm";
2565             script {
2566                new st[31];
2567                new Float:vl;
2568                get_state(PART:"elm.text", st, 30, vl);
2569                if (!strcmp(st, "visible"))
2570                {
2571                   set_state(PART:"elm.swallow.content", "visible", 0.0);
2572                   set_state(PART:"padding_icon_text", "visible", 0.0);
2573                }
2574                else
2575                {
2576                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
2577                   set_state(PART:"padding_icon_text", "icononly", 0.0);
2578                }
2579             }
2580          }
2581          program { name: "icon_hide";
2582             signal: "elm,state,icon,hidden";
2583             source: "elm";
2584             action:  STATE_SET "default" 0.0;
2585             target: "elm.swallow.content";
2586          }
2587          program { name: "disable";
2588             signal: "elm,state,disabled";
2589             source: "elm";
2590             action: STATE_SET "disabled" 0.0;
2591             target: "button_image";
2592             target: "over2";
2593             target: "disabler";
2594             after: "disable_text";
2595          }
2596          program { name: "disable_text";
2597             script {
2598                new st[31];
2599                new Float:vl;
2600                get_state(PART:"elm.text", st, 30, vl);
2601                if (!strcmp(st, "visible"))
2602                   set_state(PART:"elm.text", "disabled_visible", 0.0);
2603                else
2604                   set_state(PART:"elm.text", "disabled", 0.0);
2605                set_int(button_state, 1);
2606             }
2607          }
2608          program { name: "enable";
2609             signal: "elm,state,enabled";
2610             source: "elm";
2611             action: STATE_SET "default" 0.0;
2612             target: "button_image";
2613             target: "over2";
2614             target: "disabler";
2615             after: "enable_text";
2616          }
2617          program { name: "enable_text";
2618             script {
2619                new st[31];
2620                new Float:vl;
2621                get_state(PART:"elm.text", st, 30, vl);
2622                if (!strcmp(st, "disabled_visible"))
2623                   set_state(PART:"elm.text", "visible", 0.0);
2624                else
2625                   set_state(PART:"elm.text", "default", 0.0);
2626                set_int(button_state, 0);
2627             }
2628          }
2629          program { name: "focused";
2630             //signal: "elm,action,focus";
2631             //source: "elm";
2632             action: STATE_SET "focused" 0.0;
2633             target: "button_image";
2634             target: "elm.text";
2635          }
2636          program { name: "unfocused";
2637             //signal: "elm,action,unfocus";
2638             //source: "elm";
2639             action: STATE_SET "default" 0.0;
2640             target: "button_image";
2641             after: "unfocus_text";
2642          }
2643          program { name: "unfocus_text";
2644             action: STATE_SET "visible" 0.0;
2645             target: "elm.text";
2646          }
2647       }
2648    }
2649
2650    ///////////////////////////////////////////////////////////////////////////////////////
2651    group { name: "elm/button/base/navigationbar_functionbutton/default";
2652       script {
2653          public button_state = 0; //0:enabled, 1: disabled
2654       }
2655       parts {
2656          part { name: "button_image";
2657             mouse_events: 1;
2658             scale: 1;
2659             description { state: "default" 0.0;
2660                min: 16 50;
2661             }
2662             description { state: "clicked" 0.0;
2663                inherit: "default" 0.0;
2664             }
2665             description { state: "disabled" 0.0;
2666                inherit:  "default" 0.0;
2667             }
2668             description { state: "focused" 0.0;
2669                inherit: "default" 0.0;
2670             }
2671          }
2672          part {
2673             name: "padding_left";
2674             type: RECT;
2675             scale: 1;
2676             mouse_events: 0;
2677             description { state: "default" 0.0;
2678                align: 0.0 0.0;
2679                rel1.relative: 0.0 0.0;
2680                rel2.relative: 0.0 1.0;
2681                min: 2 2;
2682                fixed: 1 0;
2683                color: 0 0 0 0;
2684             }
2685          }
2686          part {name: "padding_after_right";
2687             type: RECT;
2688             mouse_events: 0;
2689             description { state: "default" 0.0;
2690                align: 1 0;
2691                min: 1 0;
2692                rel1 { relative: 1 0.2; }
2693                rel2 { relative: 1 0.8; }
2694                fixed: 1 0;
2695                color: 238 223 194 255;
2696             }
2697          }
2698          part {name: "padding_right";
2699             type: RECT;
2700             mouse_events: 0;
2701             description { state: "default" 0.0;
2702                align: 1 0;
2703                min: 1 0;
2704                rel1 { relative: 0 0; to: "padding_after_right"; }
2705                rel2 { relative: 0 1; to: "padding_after_right"; }
2706                fixed: 1 0;
2707                color: 164 151 130 255;
2708             }
2709          }
2710          part {
2711             name: "padding_top";
2712             type: RECT;
2713             scale: 1;
2714             mouse_events: 0;
2715             description { state: "default" 0.0;
2716                align: 0.0 0.0;
2717                rel1.relative: 0.0 0.0;
2718                rel2.relative: 1.0 0.0;
2719                min: 2 2;
2720                fixed: 0 1;
2721                color: 0 0 0 0;
2722             }
2723          }
2724          part {
2725             name: "padding_bottom";
2726             type: RECT;
2727             scale: 1;
2728             mouse_events: 0;
2729             description { state: "default" 0.0;
2730                align: 1.0 1.0;
2731                rel1.relative: 0.0 1.0;
2732                rel2.relative: 1.0 1.0;
2733                min: 2 2;
2734                fixed: 0 1;
2735                color: 0 0 0 0;
2736             }
2737          }
2738          part {
2739             name: "icon_rect";
2740             type: RECT;
2741             scale: 1;
2742             mouse_events: 0;
2743             description { state: "default" 0.0;
2744                visible: 1;
2745                min: 0 40;
2746                fixed: 1 0;
2747                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
2748                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
2749                align: 0.0 0.5;
2750                color: 0 0 0 0;
2751             }
2752          }
2753          part {
2754             name: "padding_icon_text";
2755             type: RECT;
2756             scale: 1;
2757             mouse_events: 0;
2758             description { state: "default" 0.0; //when only icon or no icon is there
2759                align: 0.0 0.0;
2760                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2761                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2762                fixed: 1 0;
2763                min: 0 0;
2764                color: 0 0 0 0;
2765             }
2766             description { state: "icononly" 0.0;
2767                inherit: "default" 0.0;
2768             }
2769             description { state: "visible" 0.0; //when icon is visible
2770                align: 0.0 0.0;
2771                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
2772                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
2773                fixed: 1 0;
2774                min: 5 0;
2775                color: 0 0 0 0;
2776             }
2777          }
2778          part { name: "elm.swallow.content";
2779             type: SWALLOW;
2780             scale: 1;
2781             description { state: "default" 0.0;
2782                visible: 0;
2783                align: 0.0 0.5;
2784                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2785                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2786                fixed: 1 0;
2787             }
2788             description { state: "visible" 0.0;
2789                fixed: 1 0;
2790                visible: 1;
2791                align: 0.0 0.5;
2792                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2793                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
2794                aspect: 1.0 1.0;
2795                aspect_preference: VERTICAL;
2796             }
2797             description { state: "icononly" 0.0;;
2798                visible: 1;
2799                min: 40 40;
2800                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
2801                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
2802                align: 0.5 0.5;
2803                aspect: 1.0 1.0;
2804                aspect_preference: VERTICAL;
2805             }
2806          }
2807          part { name: "elm.text";
2808             type: TEXT;
2809             //effect: SHADOW;
2810             mouse_events:  0;
2811             scale: 1;
2812             description { state: "default" 0.0;
2813                visible: 0;
2814                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
2815                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
2816                align: 0.5 0.5;
2817                color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_COLOR_INC;
2818                color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_SHADOW_COLOR_INC;
2819                text {
2820                   font: "SLP:style=Medium";
2821                   size: 20;
2822                   min:  0 0;
2823                   align: 0.5 0.5;
2824                }
2825             }
2826             description { state: "visible" 0.0;
2827                inherit: "default" 0.0;
2828                visible: 1;
2829                min: 80 40;
2830             }
2831             description { state: "clicked" 0.0;
2832                inherit: "default" 0.0;
2833                visible: 1;
2834                min: 0 0;
2835                color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_COLOR_INC;
2836                color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_SHADOW_COLOR_INC;
2837             }
2838             description { state: "disabled" 0.0;
2839                inherit: "default" 0.0;
2840                color: 0 0 0 128;
2841                color3: 0 0 0 0;
2842             }
2843             description { state: "disabled_visible" 0.0;
2844                inherit: "default" 0.0;
2845                color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
2846                color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_SHADOW_COLOR_INC;
2847                color3: 0 0 0 0;
2848                visible: 1;
2849             }
2850             description { state: "focused" 0.0;
2851                inherit: "default" 0.0;
2852                visible: 1;
2853                min: 0 0;
2854                color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_COLOR_INC;
2855                color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_SHADOW_COLOR_INC;
2856             }
2857          }
2858          part { name: "over2";
2859             type: RECT;
2860             mouse_events: 1;
2861             repeat_events: 1;
2862             ignore_flags: ON_HOLD;
2863             description { state: "default" 0.0;
2864                color: 0 0 0 0;
2865             }
2866             description { state: "disabled" 0.0;
2867                inherit:  "default" 0.0;
2868                visible: 0;
2869             }
2870          }
2871          part { name: "over3";
2872             type: RECT;
2873             mouse_events: 1;
2874             repeat_events: 1;
2875             description { state: "default" 0.0;
2876                color: 0 0 0 0;
2877             }
2878             description { state: "clicked" 0.0;
2879                inherit:  "default" 0.0;
2880                visible: 1;
2881             }
2882          }
2883          part { name: "disabler";
2884             type: RECT;
2885             description { state: "default" 0.0;
2886                color: 0 0 0 0;
2887                visible: 0;
2888             }
2889             description { state: "disabled" 0.0;
2890                inherit: "default" 0.0;
2891                visible: 1;
2892             }
2893          }
2894       }
2895       programs {
2896          program { name: "button_click";
2897             signal: "mouse,down,1";
2898             source: "over2";
2899             action: SIGNAL_EMIT "elm,action,press" "";
2900             after: "button_click_anim";
2901          }
2902          program { name: "button_click_anim";
2903             action: STATE_SET "clicked" 0.0;
2904             target: "button_image";
2905             after: "text_clicked";
2906          }
2907          program { name: "text_clicked";
2908             script {
2909                new st[31];
2910                new Float:vl;
2911                get_state(PART:"elm.text", st, 30, vl);
2912                if (!strcmp(st, "visible"))
2913                   set_state(PART:"elm.text", "clicked", 0.0);
2914             }
2915          }
2916          program { name: "button_unpress";
2917             action: SIGNAL_EMIT "elm,action,unpress" "";
2918          }
2919          program { name: "button_mouseout_clicked";
2920             signal: "mouse,up,1";
2921             source: "over3";
2922             script {
2923                new st[31];
2924                new Float:vl;
2925                get_state(PART:"elm.swallow.content", st, 30, vl);
2926                if (strcmp(st, "icononly"))
2927                {
2928                   emit("elm,action,default,text,set", "");
2929                   set_state(PART:"elm.text", "visible", 0.0);
2930                }
2931                if(get_int(button_state) !=1)
2932                   set_state(PART:"button_image", "default", 0.0);
2933             }
2934             after: button_unpress;
2935          }
2936          program { name: "button_click2";
2937             signal: "mouse,down,1";
2938             source: "over3";
2939             action: STATE_SET "clicked" 0.0;
2940             target: "over3";
2941          }
2942          program { name: "button_unclick2";
2943             signal: "mouse,clicked,1";
2944             source: "over3";
2945             action: STATE_SET "default" 0.0;
2946             target: "over3";
2947          }
2948          program { name: "button_unclick3";
2949             signal: "mouse,clicked,1";
2950             source: "over2";
2951             action: SIGNAL_EMIT "elm,action,click" "";
2952          }
2953          program { name: "text_show";
2954             signal: "elm,state,text,visible";
2955             source: "elm";
2956             script {
2957                new st[31];
2958                new Float:vl;
2959                get_state(PART:"elm.swallow.content", st, 30, vl);
2960                if (!strcmp(st, "icononly"))
2961                {
2962                   set_state(PART:"elm.swallow.content", "visible", 0.0);
2963                   set_state(PART:"padding_icon_text", "visible", 0.0);
2964                }
2965                set_state(PART:"elm.text", "visible", 0.0);
2966             }
2967          }
2968          program { name: "text_hide";
2969             signal: "elm,state,text,hidden";
2970             source: "elm";
2971             script {
2972                new st[31];
2973                new Float:vl;
2974                get_state(PART:"elm.swallow.content", st, 30, vl);
2975                if (!strcmp(st, "visible"))
2976                {
2977                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
2978                   set_state(PART:"padding_icon_text", "icononly", 0.0);
2979                }
2980                set_state(PART:"elm.text", "default", 0.0);
2981             }
2982          }
2983          program { name: "icon_show";
2984             signal: "elm,state,icon,visible";
2985             source: "elm";
2986             script {
2987                new st[31];
2988                new Float:vl;
2989                get_state(PART:"elm.text", st, 30, vl);
2990                if (!strcmp(st, "visible"))
2991                {
2992                   set_state(PART:"elm.swallow.content", "visible", 0.0);
2993                   set_state(PART:"padding_icon_text", "visible", 0.0);
2994                }
2995                else
2996                {
2997                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
2998                   set_state(PART:"padding_icon_text", "icononly", 0.0);
2999                }
3000             }
3001          }
3002          program { name: "icon_hide";
3003             signal: "elm,state,icon,hidden";
3004             source: "elm";
3005             action:  STATE_SET "default" 0.0;
3006             target: "elm.swallow.content";
3007          }
3008          program { name: "disable";
3009             signal: "elm,state,disabled";
3010             source: "elm";
3011             action: STATE_SET "disabled" 0.0;
3012             target: "button_image";
3013             target: "over2";
3014             target: "disabler";
3015             after: "disable_text";
3016          }
3017          program { name: "disable_text";
3018             script {
3019                new st[31];
3020                new Float:vl;
3021                get_state(PART:"elm.text", st, 30, vl);
3022                if (!strcmp(st, "visible"))
3023                   set_state(PART:"elm.text", "disabled_visible", 0.0);
3024                else
3025                   set_state(PART:"elm.text", "disabled", 0.0);
3026                set_int(button_state, 1);
3027             }
3028          }
3029          program { name: "enable";
3030             signal: "elm,state,enabled";
3031             source: "elm";
3032             action: STATE_SET "default" 0.0;
3033             target: "button_image";
3034             target: "over2";
3035             target: "disabler";
3036             after: "enable_text";
3037          }
3038          program { name: "enable_text";
3039             script {
3040                new st[31];
3041                new Float:vl;
3042                get_state(PART:"elm.text", st, 30, vl);
3043                if (!strcmp(st, "disabled_visible"))
3044                   set_state(PART:"elm.text", "visible", 0.0);
3045                else
3046                   set_state(PART:"elm.text", "default", 0.0);
3047                set_int(button_state, 0);
3048                }
3049          }
3050          program { name: "focused";
3051             //signal: "elm,action,focus";
3052             //source: "elm";
3053             action: STATE_SET "focused" 0.0;
3054             target: "button_image";
3055             target: "elm.text";
3056          }
3057          program { name: "unfocused";
3058             //signal: "elm,action,unfocus";
3059             //source: "elm";
3060             action: STATE_SET "default" 0.0;
3061             target: "button_image";
3062             after: "unfocus_text";
3063          }
3064          program { name: "unfocus_text";
3065             action: STATE_SET "visible" 0.0;
3066             target: "elm.text";
3067          }
3068       }
3069    }
3070
3071 ///////////////////////////////////////////////////////////////////////////////////////
3072    group { name: "elm/button/base/edit";
3073       alias: "elm/button/base/navigationbar_functionbutton/edit";
3074       script {
3075          public button_state = 0; //0:enabled, 1: disabled
3076       }
3077       parts {
3078          part { name: "button_image";
3079             mouse_events: 1;
3080             scale: 1;
3081             description { state: "default" 0.0;
3082                min: 16 50;
3083             }
3084             description { state: "clicked" 0.0;
3085                inherit: "default" 0.0;
3086             }
3087             description { state: "disabled" 0.0;
3088                inherit:  "default" 0.0;
3089             }
3090             description { state: "focused" 0.0;
3091                inherit: "default" 0.0;
3092             }
3093          }
3094          part {
3095             name: "padding_left";
3096             type: RECT;
3097             scale: 1;
3098             mouse_events: 0;
3099             description { state: "default" 0.0;
3100                align: 0.0 0.0;
3101                rel1.relative: 0.0 0.0;
3102                rel2.relative: 0.0 1.0;
3103                min: 2 2;
3104                fixed: 1 0;
3105                color: 0 0 0 0;
3106             }
3107          }
3108          part {name: "padding_after_right";
3109             type: RECT;
3110             mouse_events: 0;
3111             description { state: "default" 0.0;
3112                align: 1 0;
3113                min: 1 0;
3114                rel1 { relative: 1 0.2; }
3115                rel2 { relative: 1 0.8; }
3116                fixed: 1 0;
3117                color: 238 223 194 255;
3118             }
3119          }
3120          part {name: "padding_right";
3121             type: RECT;
3122             mouse_events: 0;
3123             description { state: "default" 0.0;
3124                align: 1 0;
3125                min: 1 0;
3126                rel1 { relative: 0 0; to: "padding_after_right"; }
3127                rel2 { relative: 0 1; to: "padding_after_right"; }
3128                fixed: 1 0;
3129                color: 164 151 130 255;
3130             }
3131          }
3132          part {
3133             name: "padding_top";
3134             type: RECT;
3135             scale: 1;
3136             mouse_events: 0;
3137             description { state: "default" 0.0;
3138                align: 0.0 0.0;
3139                rel1.relative: 0.0 0.0;
3140                rel2.relative: 1.0 0.0;
3141                min: 2 2;
3142                fixed: 0 1;
3143                color: 0 0 0 0;
3144             }
3145          }
3146          part {
3147             name: "padding_bottom";
3148             type: RECT;
3149             scale: 1;
3150             mouse_events: 0;
3151             description { state: "default" 0.0;
3152                align: 1.0 1.0;
3153                rel1.relative: 0.0 1.0;
3154                rel2.relative: 1.0 1.0;
3155                min: 2 2;
3156                fixed: 0 1;
3157                color: 0 0 0 0;
3158             }
3159          }
3160          part {
3161             name: "icon_rect";
3162             type: RECT;
3163             scale: 1;
3164             mouse_events: 0;
3165             description { state: "default" 0.0;
3166                visible: 1;
3167                min: 0 40;
3168                fixed: 1 0;
3169                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
3170                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
3171                align: 0.0 0.5;
3172                color: 0 0 0 0;
3173             }
3174          }
3175          part {
3176             name: "padding_icon_text";
3177             type: RECT;
3178             scale: 1;
3179             mouse_events: 0;
3180             description { state: "default" 0.0; //when only icon or no icon is there
3181                align: 0.0 0.0;
3182                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
3183                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
3184                fixed: 1 0;
3185                min: 0 0;
3186                color: 0 0 0 0;
3187             }
3188             description { state: "icononly" 0.0;
3189                inherit: "default" 0.0;
3190             }
3191             description { state: "visible" 0.0; //when icon is visible
3192                align: 0.0 0.0;
3193                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
3194                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
3195                fixed: 1 0;
3196                min: 5 0;
3197                color: 0 0 0 0;
3198             }
3199          }
3200          part { name: "elm.swallow.content";
3201             type: SWALLOW;
3202             scale: 1;
3203             description { state: "default" 0.0;
3204                visible: 0;
3205                align: 0.0 0.5;
3206                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3207                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
3208                fixed: 1 0;
3209             }
3210             description { state: "visible" 0.0;
3211                fixed: 1 0;
3212                visible: 1;
3213                align: 0.0 0.5;
3214                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3215                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
3216                aspect: 1.0 1.0;
3217                aspect_preference: VERTICAL;
3218             }
3219             description { state: "icononly" 0.0;;
3220                visible: 1;
3221                min: 40 40;
3222                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3223                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
3224                align: 0.5 0.5;
3225                aspect: 1.0 1.0;
3226                aspect_preference: VERTICAL;
3227             }
3228          }
3229          part { name: "elm.text";
3230             type: TEXT;
3231             //effect: SHADOW;
3232             mouse_events:  0;
3233             scale: 1;
3234             description { state: "default" 0.0;
3235                visible: 0;
3236                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
3237                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
3238                align: 0.5 0.5;
3239                color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_COLOR_INC;
3240                color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_NORMAL_SHADOW_COLOR_INC;
3241                text {
3242                   font: "SLP:style=Medium";
3243                   size: 20;
3244                   min:  1 0;
3245                   align: 0.5 0.5;
3246                }
3247             }
3248             description { state: "visible" 0.0;
3249                inherit: "default" 0.0;
3250                visible: 1;
3251                min: 80 40;
3252             }
3253             description { state: "clicked" 0.0;
3254                inherit: "default" 0.0;
3255                visible: 1;
3256                min: 0 0;
3257                color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_COLOR_INC;
3258                color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_PRESSED_SHADOW_COLOR_INC;
3259             }
3260             description { state: "disabled" 0.0;
3261                inherit: "default" 0.0;
3262                color: 0 0 0 128;
3263                color3: 0 0 0 0;
3264             }
3265             description { state: "disabled_visible" 0.0;
3266                inherit: "default" 0.0;
3267                color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
3268                color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_SHADOW_COLOR_INC;
3269                color3: 0 0 0 0;
3270                visible: 1;
3271             }
3272             description { state: "focused" 0.0;
3273                inherit: "default" 0.0;
3274                visible: 1;
3275                min: 0 0;
3276                color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_COLOR_INC;
3277                color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_FOCUSED_SHADOW_COLOR_INC;
3278             }
3279          }
3280          part { name: "over2";
3281             type: RECT;
3282             mouse_events: 1;
3283             repeat_events: 1;
3284             ignore_flags: ON_HOLD;
3285             description { state: "default" 0.0;
3286                color: 0 0 0 0;
3287             }
3288             description { state: "disabled" 0.0;
3289                inherit:  "default" 0.0;
3290                visible: 0;
3291             }
3292          }
3293          part { name: "over3";
3294             type: RECT;
3295             mouse_events: 1;
3296             repeat_events: 1;
3297             description { state: "default" 0.0;
3298                color: 0 0 0 0;
3299             }
3300             description { state: "clicked" 0.0;
3301                inherit:  "default" 0.0;
3302                visible: 1;
3303             }
3304          }
3305          part { name: "disabler";
3306             type: RECT;
3307             description { state: "default" 0.0;
3308                color: 0 0 0 0;
3309                visible: 0;
3310             }
3311             description { state: "disabled" 0.0;
3312                inherit: "default" 0.0;
3313                visible: 1;
3314             }
3315          }
3316       }
3317       programs {
3318          program { name: "button_click";
3319             signal: "mouse,down,1";
3320             source: "over2";
3321             action: SIGNAL_EMIT "elm,action,press" "";
3322             after: "button_click_anim";
3323          }
3324          program { name: "button_click_anim";
3325             action: STATE_SET "clicked" 0.0;
3326             target: "button_image";
3327             after: "text_clicked";
3328          }
3329          program { name: "text_clicked";
3330             script {
3331                new st[31];
3332                new Float:vl;
3333                get_state(PART:"elm.text", st, 30, vl);
3334                if (!strcmp(st, "visible"))
3335                   set_state(PART:"elm.text", "clicked", 0.0);
3336             }
3337          }
3338          program { name: "button_unpress";
3339             action: SIGNAL_EMIT "elm,action,unpress" "";
3340          }
3341          program { name: "button_mouseout_clicked";
3342             signal: "mouse,up,1";
3343             source: "over3";
3344             script {
3345                new st[31];
3346                new Float:vl;
3347                get_state(PART:"elm.swallow.content", st, 30, vl);
3348                if (strcmp(st, "icononly"))
3349                {
3350                   emit("elm,action,default,text,set", "");
3351                   set_state(PART:"elm.text", "visible", 0.0);
3352                }
3353                if(get_int(button_state) !=1)
3354                   set_state(PART:"button_image", "default", 0.0);
3355             }
3356             after: button_unpress;
3357          }
3358          program { name: "button_click2";
3359             signal: "mouse,down,1";
3360             source: "over3";
3361             action: STATE_SET "clicked" 0.0;
3362             target: "over3";
3363          }
3364          program { name: "button_unclick2";
3365             signal: "mouse,clicked,1";
3366             source: "over3";
3367             action: STATE_SET "default" 0.0;
3368             target: "over3";
3369          }
3370          program { name: "button_unclick3";
3371             signal: "mouse,clicked,1";
3372             source: "over2";
3373             action: SIGNAL_EMIT "elm,action,click" "";
3374          }
3375          program { name: "text_show";
3376             signal: "elm,state,text,visible";
3377             source: "elm";
3378             script {
3379                new st[31];
3380                new Float:vl;
3381                get_state(PART:"elm.swallow.content", st, 30, vl);
3382                if (!strcmp(st, "icononly"))
3383                {
3384                   set_state(PART:"elm.swallow.content", "visible", 0.0);
3385                   set_state(PART:"padding_icon_text", "visible", 0.0);
3386                }
3387                set_state(PART:"elm.text", "visible", 0.0);
3388             }
3389          }
3390          program { name: "text_hide";
3391             signal: "elm,state,text,hidden";
3392             source: "elm";
3393             script {
3394                new st[31];
3395                new Float:vl;
3396                get_state(PART:"elm.swallow.content", st, 30, vl);
3397                if (!strcmp(st, "visible"))
3398                {
3399                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
3400                   set_state(PART:"padding_icon_text", "icononly", 0.0);
3401                }
3402                set_state(PART:"elm.text", "default", 0.0);
3403             }
3404          }
3405          program { name: "icon_show";
3406             signal: "elm,state,icon,visible";
3407             source: "elm";
3408             script {
3409                new st[31];
3410                new Float:vl;
3411                get_state(PART:"elm.text", st, 30, vl);
3412                if (!strcmp(st, "visible"))
3413                {
3414                   set_state(PART:"elm.swallow.content", "visible", 0.0);
3415                   set_state(PART:"padding_icon_text", "visible", 0.0);
3416                }
3417                else
3418                {
3419                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
3420                   set_state(PART:"padding_icon_text", "icononly", 0.0);
3421                }
3422             }
3423          }
3424          program { name: "icon_hide";
3425             signal: "elm,state,icon,hidden";
3426             source: "elm";
3427             action:  STATE_SET "default" 0.0;
3428             target: "elm.swallow.content";
3429          }
3430          program { name: "disable";
3431             signal: "elm,state,disabled";
3432             source: "elm";
3433             action: STATE_SET "disabled" 0.0;
3434             target: "button_image";
3435             target: "over2";
3436             target: "disabler";
3437             after: "disable_text";
3438          }
3439          program { name: "disable_text";
3440             script {
3441                new st[31];
3442                new Float:vl;
3443                get_state(PART:"elm.text", st, 30, vl);
3444                if (!strcmp(st, "visible"))
3445                   set_state(PART:"elm.text", "disabled_visible", 0.0);
3446                else
3447                   set_state(PART:"elm.text", "disabled", 0.0);
3448                set_int(button_state, 1);
3449             }
3450          }
3451          program { name: "enable";
3452             signal: "elm,state,enabled";
3453             source: "elm";
3454             action: STATE_SET "default" 0.0;
3455             target: "button_image";
3456             target: "over2";
3457             target: "disabler";
3458             after: "enable_text";
3459          }
3460          program { name: "enable_text";
3461             script {
3462                new st[31];
3463                new Float:vl;
3464                get_state(PART:"elm.text", st, 30, vl);
3465                if (!strcmp(st, "disabled_visible"))
3466                   set_state(PART:"elm.text", "visible", 0.0);
3467                else
3468                   set_state(PART:"elm.text", "default", 0.0);
3469                set_int(button_state, 0);
3470                }
3471          }
3472          program { name: "focused";
3473             //signal: "elm,action,focus";
3474             //source: "elm";
3475             action: STATE_SET "focused" 0.0;
3476             target: "button_image";
3477             target: "elm.text";
3478          }
3479          program { name: "unfocused";
3480             //signal: "elm,action,unfocus";
3481             //source: "elm";
3482             action: STATE_SET "default" 0.0;
3483             target: "button_image";
3484             after: "unfocus_text";
3485          }
3486          program { name: "unfocus_text";
3487             action: STATE_SET "visible" 0.0;
3488             target: "elm.text";
3489          }
3490       }
3491    }
3492
3493 ///////////////////////////////////////////////////////////////////////////////////////
3494    group { name: "elm/button/base/popup_button/default";
3495       alias: "elm/button/base/popup_button/menustyle";
3496       alias: "elm/button/base/popup_button/liststyle";
3497       alias: "elm/button/base/popup_button/volumebarstyle";
3498       alias: "elm/button/base/popup_button/customstyle";
3499       images {
3500          image: "00_button_popup_normal.png" COMP;
3501          image: "00_button_popup_press.png" COMP;
3502          image: "00_button_popup_focus.png" COMP;
3503          image: "00_button_popup_dim.png" COMP;
3504       }
3505       script {
3506          public button_state = 0; //0:enabled, 1: disabled
3507       }
3508       parts {
3509          part { name: "button_image";
3510             mouse_events: 1;
3511             scale: 1;
3512             description { state: "default" 0.0;
3513                min: 18 46;
3514                max: 400 46;
3515                image {
3516                   normal: "00_button_popup_normal.png";
3517                   border: 4 4 4 4;
3518                   border_scale: 1;
3519                }
3520             }
3521             description { state: "clicked" 0.0;
3522                inherit: "default" 0.0;
3523                image.normal: "00_button_popup_press.png";
3524             }
3525             description { state: "disabled" 0.0;
3526                inherit:  "default" 0.0;
3527                image.normal: "00_button_popup_dim.png";
3528             }
3529             description { state: "focused" 0.0;
3530                inherit: "default" 0.0;
3531                image.normal: "00_button_popup_focus.png";
3532             }
3533          }
3534       part {
3535          name: "padding_left";
3536          type: RECT;
3537          scale: 1;
3538          mouse_events: 0;
3539          description { state: "default" 0.0;
3540             align: 0.0 0.0;
3541             rel1.relative: 0.0 0.0;
3542             rel2.relative: 0.0 1.0;
3543             min: 10 5;
3544             fixed: 1 0;
3545             color: 0 0 0 0;
3546          }
3547       }
3548       part {
3549          name: "padding_right";
3550          type: RECT;
3551          scale: 1;
3552          mouse_events: 0;
3553          description { state: "default" 0.0;
3554             align: 1.0 0.0;
3555             rel1.relative: 1.0 0.0;
3556             rel2.relative: 1.0 1.0;
3557             min: 10 5;
3558             fixed: 1 0;
3559             color: 0 0 0 0;
3560          }
3561       }
3562       part {
3563          name: "padding_top";
3564          type: RECT;
3565          scale: 1;
3566          mouse_events: 0;
3567          description { state: "default" 0.0;
3568             align: 0.0 0.0;
3569             rel1.relative: 0.0 0.0;
3570             rel2.relative: 1.0 0.0;
3571             min: 5 10;
3572             fixed: 0 1;
3573             color: 0 0 0 0;
3574          }
3575       }
3576       part {
3577          name: "padding_bottom";
3578          type: RECT;
3579          scale: 1;
3580          mouse_events: 0;
3581          description { state: "default" 0.0;
3582             align: 1.0 1.0;
3583             rel1.relative: 0.0 1.0;
3584             rel2.relative: 1.0 1.0;
3585             min: 5 10;
3586             fixed: 0 1;
3587             color: 0 0 0 0;
3588          }
3589       }
3590       part {
3591          name: "icon_rect";
3592          type: RECT;
3593          scale: 1;
3594          mouse_events: 0;
3595          description { state: "default" 0.0;
3596             visible: 1;
3597             min: 0 40;
3598             fixed: 1 0;
3599             rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
3600             rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
3601             align: 0.0 0.5;
3602             color: 0 0 0 0;
3603          }
3604       }
3605       part {
3606          name: "padding_icon_text";
3607          type: RECT;
3608          scale: 1;
3609          mouse_events: 0;
3610          description { state: "default" 0.0; //when only icon or no icon is there
3611             align: 0.0 0.0;
3612             rel1 { relative: 1.0 0.0; to: "icon_rect"; }
3613             rel2 { relative: 1.0 1.0; to: "icon_rect"; }
3614             fixed: 1 0;
3615             min: 0 0;
3616             color: 0 0 0 0;
3617          }
3618          description { state: "icononly" 0.0;
3619             inherit: "default" 0.0;
3620          }
3621          description { state: "visible" 0.0; //when icon is visible
3622             align: 0.0 0.0;
3623             rel1 { relative: 1.0 0.0; to: "icon_rect"; }
3624             rel2 { relative: 1.0 1.0; to: "icon_rect"; }
3625             fixed: 1 0;
3626             min: 10 0;
3627             color: 0 0 0 0;
3628          }
3629       }
3630       part { name: "elm.swallow.content";
3631          type: SWALLOW;
3632          scale: 1;
3633          description { state: "default" 0.0;
3634             visible: 0;
3635             align: 0.0 0.5;
3636             rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3637             rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
3638             fixed: 1 0;
3639          }
3640          description { state: "visible" 0.0;
3641             fixed: 1 0;
3642             visible: 1;
3643             align: 0.0 0.5;
3644             rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3645             rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
3646             aspect: 1.0 1.0;
3647             aspect_preference: VERTICAL;
3648          }
3649          description { state: "icononly" 0.0;;
3650             visible: 1;
3651             min: 24 24;
3652             rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
3653             rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
3654             align: 0.5 0.5;
3655             aspect: 1.0 1.0;
3656             aspect_preference: VERTICAL;
3657          }
3658       }
3659       part { name: "elm.text";
3660          type: TEXT;
3661          //effect: SHADOW;
3662          mouse_events:  0;
3663          scale: 1;
3664          description { state: "default" 0.0;
3665             visible: 0;
3666             rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
3667             rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
3668             align: 0.5 0.5;
3669             color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
3670             color2: BUTTON_POPUP_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
3671             text {
3672                font: "SLP:style=Medium";
3673                size: 20;
3674                min:  0 0;
3675                align: 0.5 0.5;
3676                max: 1 0;
3677             }
3678          }
3679          description { state: "visible" 0.0;
3680             inherit: "default" 0.0;
3681             visible: 1;
3682             min: 90 20;
3683          }
3684          description { state: "clicked" 0.0;
3685             inherit: "default" 0.0;
3686             visible: 1;
3687             min: 0 0;
3688             color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
3689             color2: BUTTON_POPUP_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
3690          }
3691          description { state: "disabled" 0.0;
3692             inherit: "default" 0.0;
3693             color: 0 0 0 128;
3694             color3: 0 0 0 0;
3695          }
3696          description { state: "disabled_visible" 0.0;
3697             inherit: "default" 0.0;
3698             color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
3699             color2: BUTTON_POPUP_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
3700             color3: 0 0 0 0;
3701             visible: 1;
3702          }
3703          description { state: "focused" 0.0;
3704             inherit: "default" 0.0;
3705             visible: 1;
3706             min: 0 0;
3707             color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
3708             color2: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
3709          }
3710       }
3711       part { name: "over2";
3712          type: RECT;
3713          mouse_events: 1;
3714          repeat_events: 1;
3715          ignore_flags: ON_HOLD;
3716          description { state: "default" 0.0;
3717             color: 0 0 0 0;
3718          }
3719          description { state: "disabled" 0.0;
3720             inherit:  "default" 0.0;
3721             visible: 0;
3722          }
3723       }
3724       part { name: "over3";
3725          type: RECT;
3726          mouse_events: 1;
3727          repeat_events: 1;
3728          description { state: "default" 0.0;
3729             color: 0 0 0 0;
3730          }
3731          description { state: "clicked" 0.0;
3732             inherit:  "default" 0.0;
3733             visible: 1;
3734          }
3735       }
3736       part { name: "disabler";
3737          type: RECT;
3738          description { state: "default" 0.0;
3739             color: 0 0 0 0;
3740             visible: 0;
3741          }
3742          description { state: "disabled" 0.0;
3743             inherit: "default" 0.0;
3744             visible: 1;
3745          }
3746       }
3747    }
3748    programs {
3749       program { name: "button_click";
3750          signal: "mouse,down,1";
3751          source: "over2";
3752          action: SIGNAL_EMIT "elm,action,press" "";
3753          after: "button_click_anim";
3754       }
3755       program { name: "button_click_anim";
3756          action: STATE_SET "clicked" 0.0;
3757          target: "button_image";
3758          after: "text_clicked";
3759       }
3760       program { name: "text_clicked";
3761          script {
3762             new st[31];
3763             new Float:vl;
3764             get_state(PART:"elm.text", st, 30, vl);
3765             if (!strcmp(st, "visible"))
3766                set_state(PART:"elm.text", "clicked", 0.0);
3767          }
3768       }
3769       program { name: "button_unpress";
3770          action: SIGNAL_EMIT "elm,action,unpress" "";
3771       }
3772       program { name: "button_mouseout_clicked";
3773          signal: "mouse,up,1";
3774          source: "over3";
3775          script {
3776             new st[31];
3777             new Float:vl;
3778             get_state(PART:"elm.swallow.content", st, 30, vl);
3779             if (strcmp(st, "icononly"))
3780             {
3781                emit("elm,action,default,text,set", "");
3782                set_state(PART:"elm.text", "visible", 0.0);
3783             }
3784             if(get_int(button_state) !=1)
3785                set_state(PART:"button_image", "default", 0.0);
3786          }
3787          after: button_unpress;
3788       }
3789       program { name: "button_click2";
3790          signal: "mouse,down,1";
3791          source: "over3";
3792          action: STATE_SET "clicked" 0.0;
3793          target: "over3";
3794       }
3795       program { name: "button_unclick2";
3796          signal: "mouse,clicked,1";
3797          source: "over3";
3798          action: STATE_SET "default" 0.0;
3799          target: "over3";
3800       }
3801       program { name: "button_unclick3";
3802          signal: "mouse,clicked,1";
3803          source: "over2";
3804          action: SIGNAL_EMIT "elm,action,click" "";
3805       }
3806       program { name: "text_show";
3807          signal: "elm,state,text,visible";
3808          source: "elm";
3809          script {
3810             new st[31];
3811             new Float:vl;
3812             get_state(PART:"elm.swallow.content", st, 30, vl);
3813             if (!strcmp(st, "icononly"))
3814             {
3815                set_state(PART:"elm.swallow.content", "visible", 0.0);
3816                set_state(PART:"padding_icon_text", "visible", 0.0);
3817             }
3818             set_state(PART:"elm.text", "visible", 0.0);
3819          }
3820       }
3821       program { name: "text_hide";
3822          signal: "elm,state,text,hidden";
3823          source: "elm";
3824          script {
3825             new st[31];
3826             new Float:vl;
3827             get_state(PART:"elm.swallow.content", st, 30, vl);
3828             if (!strcmp(st, "visible"))
3829             {
3830                set_state(PART:"elm.swallow.content", "icononly", 0.0);
3831                set_state(PART:"padding_icon_text", "icononly", 0.0);
3832             }
3833             set_state(PART:"elm.text", "default", 0.0);
3834          }
3835       }
3836       program { name: "icon_show";
3837          signal: "elm,state,icon,visible";
3838          source: "elm";
3839          script {
3840             new st[31];
3841             new Float:vl;
3842             get_state(PART:"elm.text", st, 30, vl);
3843             if (!strcmp(st, "visible"))
3844             {
3845                set_state(PART:"elm.swallow.content", "visible", 0.0);
3846                set_state(PART:"padding_icon_text", "visible", 0.0);
3847             }
3848             else
3849             {
3850                set_state(PART:"elm.swallow.content", "icononly", 0.0);
3851                set_state(PART:"padding_icon_text", "icononly", 0.0);
3852             }
3853          }
3854       }
3855       program { name: "icon_hide";
3856          signal: "elm,state,icon,hidden";
3857          source: "elm";
3858          action:  STATE_SET "default" 0.0;
3859          target: "elm.swallow.content";
3860       }
3861       program { name: "disable";
3862          signal: "elm,state,disabled";
3863          source: "elm";
3864          action: STATE_SET "disabled" 0.0;
3865          target: "button_image";
3866          target: "over2";
3867          target: "disabler";
3868          after: "disable_text";
3869       }
3870       program { name: "disable_text";
3871          script {
3872             new st[31];
3873             new Float:vl;
3874             get_state(PART:"elm.text", st, 30, vl);
3875             if (!strcmp(st, "visible"))
3876                set_state(PART:"elm.text", "disabled_visible", 0.0);
3877             else
3878                set_state(PART:"elm.text", "disabled", 0.0);
3879             set_int(button_state, 1);
3880          }
3881       }
3882       program { name: "enable";
3883          signal: "elm,state,enabled";
3884          source: "elm";
3885          action: STATE_SET "default" 0.0;
3886          target: "button_image";
3887          target: "over2";
3888          target: "disabler";
3889          after: "enable_text";
3890       }
3891       program { name: "enable_text";
3892          script {
3893             new st[31];
3894             new Float:vl;
3895             get_state(PART:"elm.text", st, 30, vl);
3896             if (!strcmp(st, "disabled_visible"))
3897                set_state(PART:"elm.text", "visible", 0.0);
3898             else
3899                set_state(PART:"elm.text", "default", 0.0);
3900             set_int(button_state, 0);
3901          }
3902       }
3903       program { name: "focused";
3904          action: STATE_SET "focused" 0.0;
3905          target: "button_image";
3906          target: "elm.text";
3907       }
3908       program { name: "unfocused";
3909          action: STATE_SET "default" 0.0;
3910          target: "button_image";
3911          after: "unfocus_text";
3912       }
3913       program { name: "unfocus_text";
3914          action: STATE_SET "visible" 0.0;
3915          target: "elm.text";
3916       }
3917    }
3918 }
3919
3920 ///////////////////////////////////////////////////////////////////////////////////////
3921    group { name: "elm/button/base/expand/opened";
3922       images {
3923          image: "00_button_expand_opened.png" COMP;
3924          image: "00_button_expand_opened_press.png" COMP;
3925          image: "00_button_expand_opened_dim.png" COMP;
3926       }
3927       parts {
3928          part { name: "button_image";
3929             mouse_events: 1;
3930             scale: 1;
3931             description { state: "default" 0.0;
3932                min: 40 40;
3933                max: 40 40;
3934                image {
3935                   normal: "00_button_expand_opened.png";
3936                }
3937             }
3938             description {
3939                state: "clicked" 0.0;
3940                inherit: "default" 0.0;
3941                image.normal: "00_button_expand_opened_press.png";
3942             }
3943             description {
3944                state: "disabled" 0.0;
3945                inherit: "default" 0.0;
3946                image.normal: "00_button_expand_opened_dim.png";
3947             }
3948          }
3949          part { name: "over1";
3950             type: RECT;
3951             mouse_events: 1;
3952             repeat_events: 1;
3953             ignore_flags: ON_HOLD;
3954             description { state: "default" 0.0;
3955                color: 0 0 0 0;
3956             }
3957          }
3958          part { name: "over2";
3959             mouse_events: 1;
3960             repeat_events: 1;
3961             description { state: "default" 0.0;
3962                color: 255 255 255 0;
3963             }
3964             description { state: "clicked" 0.0;
3965                inherit:  "default" 0.0;
3966                visible: 1;
3967                color: 255 255 255 0;
3968             }
3969          }
3970          part { name: "disabler";
3971             type: RECT;
3972             description { state: "default" 0.0;
3973                color: 0 0 0 0;
3974                visible: 0;
3975             }
3976             description { state: "disabled" 0.0;
3977                inherit: "default" 0.0;
3978                visible: 1;
3979             }
3980          }
3981       }
3982       programs {
3983          program { name: "button_click";
3984             signal: "mouse,down,1";
3985             source: "over1";
3986             action: SIGNAL_EMIT "elm,action,press" "";
3987             after: "button_click_anim";
3988          }
3989          program { name: "button_click_anim";
3990             action: STATE_SET "clicked" 0.0;
3991             target: "button_image";
3992          }
3993          program { name: "button_unclick";
3994             signal: "mouse,up,1";
3995             source: "over2";
3996             action: SIGNAL_EMIT "elm,action,unpress" "";
3997             after: "button_unclick_anim";
3998          }
3999          program { name: "button_unclick_anim";
4000             action: STATE_SET "default" 0.0;
4001             target: "button_image";
4002          }
4003          program { name: "button_click2";
4004             signal: "mouse,down,1";
4005             source: "over2";
4006             action: STATE_SET "clicked" 0.0;
4007             target: "over2";
4008          }
4009          program { name: "button_unclick2";
4010             signal: "mouse,clicked,1";
4011             source: "over1";
4012             action: STATE_SET "default" 0.0;
4013             target: "over1";
4014             after: "button_unclick3";
4015          }
4016          program { name: "button_unclick3";
4017             action: SIGNAL_EMIT "elm,action,click" "";
4018          }
4019          program { name: "disable";
4020             signal: "elm,state,disabled";
4021             source: "elm";
4022             action: STATE_SET "disabled" 0.0;
4023             target: "disabler";
4024             target: "button_image";
4025          }
4026          program { name: "enable";
4027             signal: "elm,state,enabled";
4028             source: "elm";
4029             action: STATE_SET "default" 0.0;
4030             target: "disabler";
4031             target: "button_image";
4032          }
4033       }
4034    }
4035
4036    group { name: "elm/button/base/expand/opened/extended";
4037       images {
4038          image: "00_button_expand_opened.png" COMP;
4039          image: "00_button_expand_opened_press.png" COMP;
4040          image: "00_button_expand_opened_dim.png" COMP;
4041       }
4042       parts {
4043          part { name: "button_image";
4044             mouse_events: 1;
4045             scale: 1;
4046             description { state: "default" 0.0;
4047                min: 40 40;
4048                max: 40 40;
4049                image {
4050                   normal: "00_button_expand_opened.png";
4051                }
4052             }
4053             description {
4054                state: "clicked" 0.0;
4055                inherit: "default" 0.0;
4056                image.normal: "00_button_expand_opened_press.png";
4057             }
4058             description {
4059                state: "disabled" 0.0;
4060                inherit: "default" 0.0;
4061                image.normal: "00_button_expand_opened_dim.png";
4062             }
4063          }
4064          part { name: "over1";
4065             type: RECT;
4066             mouse_events: 1;
4067             repeat_events: 1;
4068             ignore_flags: ON_HOLD;
4069             description { state: "default" 0.0;
4070                min: 60 75;
4071                max: 60 75;
4072                color: 0 0 0 0;
4073             }
4074          }
4075          part { name: "over2";
4076             mouse_events: 1;
4077             repeat_events: 1;
4078             description { state: "default" 0.0;
4079                color: 255 255 255 0;
4080             }
4081             description { state: "clicked" 0.0;
4082                inherit:  "default" 0.0;
4083                visible: 1;
4084                color: 255 255 255 0;
4085             }
4086          }
4087          part { name: "disabler";
4088             type: RECT;
4089             description { state: "default" 0.0;
4090                color: 0 0 0 0;
4091                visible: 0;
4092             }
4093             description { state: "disabled" 0.0;
4094                inherit: "default" 0.0;
4095                visible: 1;
4096             }
4097          }
4098       }
4099       programs {
4100          program { name: "button_click";
4101             signal: "mouse,down,1";
4102             source: "over1";
4103             action: SIGNAL_EMIT "elm,action,press" "";
4104             after: "button_click_anim";
4105          }
4106          program { name: "button_click_anim";
4107             action: STATE_SET "clicked" 0.0;
4108             target: "button_image";
4109          }
4110          program { name: "button_unclick";
4111             signal: "mouse,up,1";
4112             source: "over2";
4113             action: SIGNAL_EMIT "elm,action,unpress" "";
4114             after: "button_unclick_anim";
4115          }
4116          program { name: "button_unclick_anim";
4117             action: STATE_SET "default" 0.0;
4118             target: "button_image";
4119          }
4120          program { name: "button_click2";
4121             signal: "mouse,down,1";
4122             source: "over2";
4123             action: STATE_SET "clicked" 0.0;
4124             target: "over2";
4125          }
4126          program { name: "button_unclick2";
4127             signal: "mouse,clicked,1";
4128             source: "over1";
4129             action: STATE_SET "default" 0.0;
4130             target: "over1";
4131             after: "button_unclick3";
4132          }
4133          program { name: "button_unclick3";
4134             action: SIGNAL_EMIT "elm,action,click" "";
4135          }
4136          program { name: "disable";
4137             signal: "elm,state,disabled";
4138             source: "elm";
4139             action: STATE_SET "disabled" 0.0;
4140             target: "disabler";
4141             target: "button_image";
4142          }
4143          program { name: "enable";
4144             signal: "elm,state,enabled";
4145             source: "elm";
4146             action: STATE_SET "default" 0.0;
4147             target: "disabler";
4148             target: "button_image";
4149          }
4150       }
4151    }
4152
4153 ///////////////////////////////////////////////////////////////////////////////////////
4154    group { name: "elm/button/base/expand/closed";
4155       images {
4156          image: "00_button_expand_closed.png" COMP;
4157          image: "00_button_expand_closed_press.png" COMP;
4158          image: "00_button_expand_closed_dim.png" COMP;
4159       }
4160       parts {
4161          part { name: "button_image";
4162             mouse_events: 1;
4163             scale: 1;
4164             description { state: "default" 0.0;
4165                min: 40 40;
4166                max: 40 40;
4167                image {
4168                   normal: "00_button_expand_closed.png";
4169                }
4170             }
4171             description {
4172                state: "clicked" 0.0;
4173                inherit: "default" 0.0;
4174                image.normal: "00_button_expand_closed_press.png";
4175             }
4176             description {
4177                state: "disabled" 0.0;
4178                inherit: "default" 0.0;
4179                image.normal: "00_button_expand_closed_dim.png";
4180             }
4181          }
4182          part { name: "over1";
4183             type: RECT;
4184             mouse_events: 1;
4185             repeat_events: 1;
4186             ignore_flags: ON_HOLD;
4187             description { state: "default" 0.0;
4188                color: 0 0 0 0;
4189             }
4190          }
4191          part { name: "over2";
4192             mouse_events: 1;
4193             repeat_events: 1;
4194             description { state: "default" 0.0;
4195                color: 255 255 255 0;
4196             }
4197             description { state: "clicked" 0.0;
4198                inherit:  "default" 0.0;
4199                visible: 1;
4200                color: 255 255 255 0;
4201             }
4202          }
4203          part { name: "disabler";
4204             type: RECT;
4205             description { state: "default" 0.0;
4206                color: 0 0 0 0;
4207                visible: 0;
4208             }
4209             description { state: "disabled" 0.0;
4210                inherit: "default" 0.0;
4211                visible: 1;
4212             }
4213          }
4214       }
4215       programs {
4216          program { name: "button_click";
4217             signal: "mouse,down,1";
4218             source: "over1";
4219             action: SIGNAL_EMIT "elm,action,press" "";
4220             after: "button_click_anim";
4221          }
4222          program { name: "button_click_anim";
4223             action: STATE_SET "clicked" 0.0;
4224             target: "button_image";
4225          }
4226          program { name: "button_unclick";
4227             signal: "mouse,up,1";
4228             source: "over2";
4229             action: SIGNAL_EMIT "elm,action,unpress" "";
4230             after: "button_unclick_anim";
4231          }
4232          program { name: "button_unclick_anim";
4233             action: STATE_SET "default" 0.0;
4234             target: "button_image";
4235          }
4236          program { name: "button_click2";
4237             signal: "mouse,down,1";
4238             source: "over2";
4239             action: STATE_SET "clicked" 0.0;
4240             target: "over2";
4241          }
4242          program { name: "button_unclick2";
4243             signal: "mouse,clicked,1";
4244             source: "over1";
4245             action: STATE_SET "default" 0.0;
4246             target: "over1";
4247             after: "button_unclick3";
4248          }
4249          program { name: "button_unclick3";
4250             action: SIGNAL_EMIT "elm,action,click" "";
4251          }
4252          program { name: "disable";
4253             signal: "elm,state,disabled";
4254             source: "elm";
4255             action: STATE_SET "disabled" 0.0;
4256             target: "disabler";
4257             target: "button_image";
4258          }
4259          program { name: "enable";
4260             signal: "elm,state,enabled";
4261             source: "elm";
4262             action: STATE_SET "default" 0.0;
4263             target: "disabler";
4264             target: "button_image";
4265          }
4266       }
4267    }
4268
4269    group { name: "elm/button/base/expand/closed/extended";
4270       images {
4271          image: "00_button_expand_closed.png" COMP;
4272          image: "00_button_expand_closed_press.png" COMP;
4273          image: "00_button_expand_closed_dim.png" COMP;
4274       }
4275       parts {
4276          part { name: "button_image";
4277             mouse_events: 1;
4278             scale: 1;
4279             description { state: "default" 0.0;
4280                min: 40 40;
4281                max: 40 40;
4282                image {
4283                   normal: "00_button_expand_closed.png";
4284                }
4285             }
4286             description {
4287                state: "clicked" 0.0;
4288                inherit: "default" 0.0;
4289                image.normal: "00_button_expand_closed_press.png";
4290             }
4291             description {
4292                state: "disabled" 0.0;
4293                inherit: "default" 0.0;
4294                image.normal: "00_button_expand_closed_dim.png";
4295             }
4296          }
4297          part { name: "over1";
4298             type: RECT;
4299             mouse_events: 1;
4300             repeat_events: 1;
4301             ignore_flags: ON_HOLD;
4302             description { state: "default" 0.0;
4303                min: 60 75;
4304                max: 60 75;
4305                color: 0 0 0 0;
4306             }
4307          }
4308          part { name: "over2";
4309             mouse_events: 1;
4310             repeat_events: 1;
4311             description { state: "default" 0.0;
4312                color: 255 255 255 0;
4313             }
4314             description { state: "clicked" 0.0;
4315                inherit:  "default" 0.0;
4316                visible: 1;
4317                color: 255 255 255 0;
4318             }
4319          }
4320          part { name: "disabler";
4321             type: RECT;
4322             description { state: "default" 0.0;
4323                color: 0 0 0 0;
4324                visible: 0;
4325             }
4326             description { state: "disabled" 0.0;
4327                inherit: "default" 0.0;
4328                visible: 1;
4329             }
4330          }
4331       }
4332       programs {
4333          program { name: "button_click";
4334             signal: "mouse,down,1";
4335             source: "over1";
4336             action: SIGNAL_EMIT "elm,action,press" "";
4337             after: "button_click_anim";
4338          }
4339          program { name: "button_click_anim";
4340             action: STATE_SET "clicked" 0.0;
4341             target: "button_image";
4342          }
4343          program { name: "button_unclick";
4344             signal: "mouse,up,1";
4345             source: "over2";
4346             action: SIGNAL_EMIT "elm,action,unpress" "";
4347             after: "button_unclick_anim";
4348          }
4349          program { name: "button_unclick_anim";
4350             action: STATE_SET "default" 0.0;
4351             target: "button_image";
4352          }
4353          program { name: "button_click2";
4354             signal: "mouse,down,1";
4355             source: "over2";
4356             action: STATE_SET "clicked" 0.0;
4357             target: "over2";
4358          }
4359          program { name: "button_unclick2";
4360             signal: "mouse,clicked,1";
4361             source: "over1";
4362             action: STATE_SET "default" 0.0;
4363             target: "over1";
4364             after: "button_unclick3";
4365          }
4366          program { name: "button_unclick3";
4367             action: SIGNAL_EMIT "elm,action,click" "";
4368          }
4369          program { name: "disable";
4370             signal: "elm,state,disabled";
4371             source: "elm";
4372             action: STATE_SET "disabled" 0.0;
4373             target: "disabler";
4374             target: "button_image";
4375          }
4376          program { name: "enable";
4377             signal: "elm,state,enabled";
4378             source: "elm";
4379             action: STATE_SET "default" 0.0;
4380             target: "disabler";
4381             target: "button_image";
4382          }
4383       }
4384    }
4385
4386 ///////////////////////////////////////////////////////////////////////////////////////
4387    group { name: "elm/button/base/expand_2/opened";
4388       images {
4389          image: "00_button_expand_2_opened.png" COMP;
4390          image: "00_button_expand_2_opened_press.png" COMP;
4391          image: "00_button_expand_2_opened_dim.png" COMP;
4392       }
4393       parts {
4394          part { name: "button_image";
4395             mouse_events: 1;
4396             scale: 1;
4397             description { state: "default" 0.0;
4398                min: 40 40;
4399                max: 40 40;
4400                image {
4401                   normal: "00_button_expand_2_opened.png";
4402                }
4403             }
4404             description {
4405                state: "clicked" 0.0;
4406                inherit: "default" 0.0;
4407                image.normal: "00_button_expand_2_opened_press.png";
4408             }
4409             description {
4410                state: "disabled" 0.0;
4411                inherit: "default" 0.0;
4412                image.normal: "00_button_expand_2_opened_dim.png";
4413             }
4414          }
4415          part { name: "over1";
4416             type: RECT;
4417             mouse_events: 1;
4418             repeat_events: 1;
4419             ignore_flags: ON_HOLD;
4420             description { state: "default" 0.0;
4421                color: 0 0 0 0;
4422             }
4423          }
4424          part { name: "over2";
4425             mouse_events: 1;
4426             repeat_events: 1;
4427             description { state: "default" 0.0;
4428                color: 255 255 255 0;
4429             }
4430             description { state: "clicked" 0.0;
4431                inherit:  "default" 0.0;
4432                visible: 1;
4433                color: 255 255 255 0;
4434             }
4435          }
4436          part { name: "disabler";
4437             type: RECT;
4438             description { state: "default" 0.0;
4439                color: 0 0 0 0;
4440                visible: 0;
4441             }
4442             description { state: "disabled" 0.0;
4443                inherit: "default" 0.0;
4444                visible: 1;
4445             }
4446          }
4447       }
4448       programs {
4449          program { name: "button_click";
4450             signal: "mouse,down,1";
4451             source: "over1";
4452             action: SIGNAL_EMIT "elm,action,press" "";
4453             after: "button_click_anim";
4454          }
4455          program { name: "button_click_anim";
4456             action: STATE_SET "clicked" 0.0;
4457             target: "button_image";
4458          }
4459          program { name: "button_unclick";
4460             signal: "mouse,up,1";
4461             source: "over2";
4462             action: SIGNAL_EMIT "elm,action,unpress" "";
4463             after: "button_unclick_anim";
4464          }
4465          program { name: "button_unclick_anim";
4466             action: STATE_SET "default" 0.0;
4467             target: "button_image";
4468          }
4469          program { name: "button_click2";
4470             signal: "mouse,down,1";
4471             source: "over2";
4472             action: STATE_SET "clicked" 0.0;
4473             target: "over2";
4474          }
4475          program { name: "button_unclick2";
4476             signal: "mouse,clicked,1";
4477             source: "over1";
4478             action: STATE_SET "default" 0.0;
4479             target: "over1";
4480             after: "button_unclick3";
4481          }
4482          program { name: "button_unclick3";
4483             action: SIGNAL_EMIT "elm,action,click" "";
4484          }
4485          program { name: "disable";
4486             signal: "elm,state,disabled";
4487             source: "elm";
4488             action: STATE_SET "disabled" 0.0;
4489             target: "disabler";
4490             target: "button_image";
4491          }
4492          program { name: "enable";
4493             signal: "elm,state,enabled";
4494             source: "elm";
4495             action: STATE_SET "default" 0.0;
4496             target: "disabler";
4497             target: "button_image";
4498          }
4499       }
4500    }
4501
4502    group { name: "elm/button/base/expand_2/opened/extended";
4503       images {
4504          image: "00_button_expand_2_opened.png" COMP;
4505          image: "00_button_expand_2_opened_press.png" COMP;
4506          image: "00_button_expand_2_opened_dim.png" COMP;
4507       }
4508       parts {
4509          part { name: "button_image";
4510             mouse_events: 1;
4511             scale: 1;
4512             description { state: "default" 0.0;
4513                min: 40 40;
4514                max: 40 40;
4515                image {
4516                   normal: "00_button_expand_2_opened.png";
4517                }
4518             }
4519             description {
4520                state: "clicked" 0.0;
4521                inherit: "default" 0.0;
4522                image.normal: "00_button_expand_2_opened_press.png";
4523             }
4524             description {
4525                state: "disabled" 0.0;
4526                inherit: "default" 0.0;
4527                image.normal: "00_button_expand_2_opened_dim.png";
4528             }
4529          }
4530          part { name: "over1";
4531             type: RECT;
4532             mouse_events: 1;
4533             repeat_events: 1;
4534             ignore_flags: ON_HOLD;
4535             description { state: "default" 0.0;
4536                min: 60 75;
4537                max: 60 75;
4538                color: 0 0 0 0;
4539             }
4540          }
4541          part { name: "over2";
4542             mouse_events: 1;
4543             repeat_events: 1;
4544             description { state: "default" 0.0;
4545                color: 255 255 255 0;
4546             }
4547             description { state: "clicked" 0.0;
4548                inherit:  "default" 0.0;
4549                visible: 1;
4550                color: 255 255 255 0;
4551             }
4552          }
4553          part { name: "disabler";
4554             type: RECT;
4555             description { state: "default" 0.0;
4556                color: 0 0 0 0;
4557                visible: 0;
4558             }
4559             description { state: "disabled" 0.0;
4560                inherit: "default" 0.0;
4561                visible: 1;
4562             }
4563          }
4564       }
4565       programs {
4566          program { name: "button_click";
4567             signal: "mouse,down,1";
4568             source: "over1";
4569             action: SIGNAL_EMIT "elm,action,press" "";
4570             after: "button_click_anim";
4571          }
4572          program { name: "button_click_anim";
4573             action: STATE_SET "clicked" 0.0;
4574             target: "button_image";
4575          }
4576          program { name: "button_unclick";
4577             signal: "mouse,up,1";
4578             source: "over2";
4579             action: SIGNAL_EMIT "elm,action,unpress" "";
4580             after: "button_unclick_anim";
4581          }
4582          program { name: "button_unclick_anim";
4583             action: STATE_SET "default" 0.0;
4584             target: "button_image";
4585          }
4586          program { name: "button_click2";
4587             signal: "mouse,down,1";
4588             source: "over2";
4589             action: STATE_SET "clicked" 0.0;
4590             target: "over2";
4591          }
4592          program { name: "button_unclick2";
4593             signal: "mouse,clicked,1";
4594             source: "over1";
4595             action: STATE_SET "default" 0.0;
4596             target: "over1";
4597             after: "button_unclick3";
4598          }
4599          program { name: "button_unclick3";
4600             action: SIGNAL_EMIT "elm,action,click" "";
4601          }
4602          program { name: "disable";
4603             signal: "elm,state,disabled";
4604             source: "elm";
4605             action: STATE_SET "disabled" 0.0;
4606             target: "disabler";
4607             target: "button_image";
4608          }
4609          program { name: "enable";
4610             signal: "elm,state,enabled";
4611             source: "elm";
4612             action: STATE_SET "default" 0.0;
4613             target: "disabler";
4614             target: "button_image";
4615          }
4616       }
4617    }
4618
4619 ///////////////////////////////////////////////////////////////////////////////////////
4620    group { name: "elm/button/base/expand_2/closed";
4621       images {
4622          image: "00_button_expand_2_closed.png" COMP;
4623          image: "00_button_expand_2_closed_press.png" COMP;
4624          image: "00_button_expand_2_closed_dim.png" COMP;
4625       }
4626       parts {
4627          part { name: "button_image";
4628             mouse_events: 1;
4629             scale: 1;
4630             description { state: "default" 0.0;
4631                min: 40 40;
4632                max: 40 40;
4633                image {
4634                   normal: "00_button_expand_2_closed.png";
4635                }
4636             }
4637             description {
4638                state: "clicked" 0.0;
4639                inherit: "default" 0.0;
4640                image.normal: "00_button_expand_2_closed_press.png";
4641             }
4642             description {
4643                state: "disabled" 0.0;
4644                inherit: "default" 0.0;
4645                image.normal: "00_button_expand_2_closed_dim.png";
4646             }
4647          }
4648          part { name: "over1";
4649             type: RECT;
4650             mouse_events: 1;
4651             repeat_events: 1;
4652             ignore_flags: ON_HOLD;
4653             description { state: "default" 0.0;
4654                color: 0 0 0 0;
4655             }
4656          }
4657          part { name: "over2";
4658             mouse_events: 1;
4659             repeat_events: 1;
4660             description { state: "default" 0.0;
4661                color: 255 255 255 0;
4662             }
4663             description { state: "clicked" 0.0;
4664                inherit:  "default" 0.0;
4665                visible: 1;
4666                color: 255 255 255 0;
4667             }
4668          }
4669          part { name: "disabler";
4670             type: RECT;
4671             description { state: "default" 0.0;
4672                color: 0 0 0 0;
4673                visible: 0;
4674             }
4675             description { state: "disabled" 0.0;
4676                inherit: "default" 0.0;
4677                visible: 1;
4678             }
4679          }
4680       }
4681       programs {
4682          program { name: "button_click";
4683             signal: "mouse,down,1";
4684             source: "over1";
4685             action: SIGNAL_EMIT "elm,action,press" "";
4686             after: "button_click_anim";
4687          }
4688          program { name: "button_click_anim";
4689             action: STATE_SET "clicked" 0.0;
4690             target: "button_image";
4691          }
4692          program { name: "button_unclick";
4693             signal: "mouse,up,1";
4694             source: "over2";
4695             action: SIGNAL_EMIT "elm,action,unpress" "";
4696             after: "button_unclick_anim";
4697          }
4698          program { name: "button_unclick_anim";
4699             action: STATE_SET "default" 0.0;
4700             target: "button_image";
4701          }
4702          program { name: "button_click2";
4703             signal: "mouse,down,1";
4704             source: "over2";
4705             action: STATE_SET "clicked" 0.0;
4706             target: "over2";
4707          }
4708          program { name: "button_unclick2";
4709             signal: "mouse,clicked,1";
4710             source: "over1";
4711             action: STATE_SET "default" 0.0;
4712             target: "over1";
4713             after: "button_unclick3";
4714          }
4715          program { name: "button_unclick3";
4716             action: SIGNAL_EMIT "elm,action,click" "";
4717          }
4718          program { name: "disable";
4719             signal: "elm,state,disabled";
4720             source: "elm";
4721             action: STATE_SET "disabled" 0.0;
4722             target: "disabler";
4723             target: "button_image";
4724          }
4725          program { name: "enable";
4726             signal: "elm,state,enabled";
4727             source: "elm";
4728             action: STATE_SET "default" 0.0;
4729             target: "disabler";
4730             target: "button_image";
4731          }
4732       }
4733    }
4734
4735    group { name: "elm/button/base/expand_2/closed/extended";
4736       images {
4737          image: "00_button_expand_2_closed.png" COMP;
4738          image: "00_button_expand_2_closed_press.png" COMP;
4739          image: "00_button_expand_2_closed_dim.png" COMP;
4740       }
4741       parts {
4742          part { name: "button_image";
4743             mouse_events: 1;
4744             scale: 1;
4745             description { state: "default" 0.0;
4746                min: 40 40;
4747                max: 40 40;
4748                image {
4749                   normal: "00_button_expand_2_closed.png";
4750                }
4751             }
4752             description {
4753                state: "clicked" 0.0;
4754                inherit: "default" 0.0;
4755                image.normal: "00_button_expand_2_closed_press.png";
4756             }
4757             description {
4758                state: "disabled" 0.0;
4759                inherit: "default" 0.0;
4760                image.normal: "00_button_expand_2_closed_dim.png";
4761             }
4762          }
4763          part { name: "over1";
4764             type: RECT;
4765             mouse_events: 1;
4766             repeat_events: 1;
4767             ignore_flags: ON_HOLD;
4768             description { state: "default" 0.0;
4769                min: 60 75;
4770                max: 60 75;
4771                color: 0 0 0 0;
4772             }
4773          }
4774          part { name: "over2";
4775             mouse_events: 1;
4776             repeat_events: 1;
4777             description { state: "default" 0.0;
4778                color: 255 255 255 0;
4779             }
4780             description { state: "clicked" 0.0;
4781                inherit:  "default" 0.0;
4782                visible: 1;
4783                color: 255 255 255 0;
4784             }
4785          }
4786          part { name: "disabler";
4787             type: RECT;
4788             description { state: "default" 0.0;
4789                color: 0 0 0 0;
4790                visible: 0;
4791             }
4792             description { state: "disabled" 0.0;
4793                inherit: "default" 0.0;
4794                visible: 1;
4795             }
4796          }
4797       }
4798       programs {
4799          program { name: "button_click";
4800             signal: "mouse,down,1";
4801             source: "over1";
4802             action: SIGNAL_EMIT "elm,action,press" "";
4803             after: "button_click_anim";
4804          }
4805          program { name: "button_click_anim";
4806             action: STATE_SET "clicked" 0.0;
4807             target: "button_image";
4808          }
4809          program { name: "button_unclick";
4810             signal: "mouse,up,1";
4811             source: "over2";
4812             action: SIGNAL_EMIT "elm,action,unpress" "";
4813             after: "button_unclick_anim";
4814          }
4815          program { name: "button_unclick_anim";
4816             action: STATE_SET "default" 0.0;
4817             target: "button_image";
4818          }
4819          program { name: "button_click2";
4820             signal: "mouse,down,1";
4821             source: "over2";
4822             action: STATE_SET "clicked" 0.0;
4823             target: "over2";
4824          }
4825          program { name: "button_unclick2";
4826             signal: "mouse,clicked,1";
4827             source: "over1";
4828             action: STATE_SET "default" 0.0;
4829             target: "over1";
4830             after: "button_unclick3";
4831          }
4832          program { name: "button_unclick3";
4833             action: SIGNAL_EMIT "elm,action,click" "";
4834          }
4835          program { name: "disable";
4836             signal: "elm,state,disabled";
4837             source: "elm";
4838             action: STATE_SET "disabled" 0.0;
4839             target: "disabler";
4840             target: "button_image";
4841          }
4842          program { name: "enable";
4843             signal: "elm,state,enabled";
4844             source: "elm";
4845             action: STATE_SET "default" 0.0;
4846             target: "disabler";
4847             target: "button_image";
4848          }
4849       }
4850    }
4851
4852 ///////////////////////////////////////////////////////////////////////////////////////
4853    group { name: "elm/button/base/reveal";
4854       images {
4855          image: "00_button_reveal.png" COMP;
4856          image: "00_button_reveal_press.png" COMP;
4857          image: "00_button_reveal_dim.png" COMP;
4858       }
4859       parts {
4860          part { name: "button_image";
4861             mouse_events: 1;
4862             scale: 1;
4863             description { state: "default" 0.0;
4864                min: 40 40;
4865                max: 40 40;
4866                image {
4867                   normal: "00_button_reveal.png";
4868                }
4869             }
4870             description {
4871                state: "clicked" 0.0;
4872                inherit: "default" 0.0;
4873                image.normal: "00_button_reveal_press.png";
4874             }
4875             description {
4876                state: "disabled" 0.0;
4877                inherit: "default" 0.0;
4878                image.normal: "00_button_reveal_dim.png";
4879             }
4880          }
4881          part { name: "over1";
4882             type: RECT;
4883             mouse_events: 1;
4884             repeat_events: 1;
4885             ignore_flags: ON_HOLD;
4886             description { state: "default" 0.0;
4887                color: 0 0 0 0;
4888             }
4889          }
4890          part { name: "over2";
4891             mouse_events: 1;
4892             repeat_events: 1;
4893             description { state: "default" 0.0;
4894                color: 255 255 255 0;
4895             }
4896             description { state: "clicked" 0.0;
4897                inherit:  "default" 0.0;
4898                visible: 1;
4899                color: 255 255 255 0;
4900             }
4901          }
4902          part { name: "disabler";
4903             type: RECT;
4904             description { state: "default" 0.0;
4905                color: 0 0 0 0;
4906                visible: 0;
4907             }
4908             description { state: "disabled" 0.0;
4909                inherit: "default" 0.0;
4910                visible: 1;
4911             }
4912          }
4913       }
4914       programs {
4915          program { name: "button_click";
4916             signal: "mouse,down,1";
4917             source: "over1";
4918             action: SIGNAL_EMIT "elm,action,press" "";
4919             after: "button_click_anim";
4920          }
4921          program { name: "button_click_anim";
4922             action: STATE_SET "clicked" 0.0;
4923             target: "button_image";
4924          }
4925          program { name: "button_unclick";
4926             signal: "mouse,up,1";
4927             source: "over2";
4928             action: SIGNAL_EMIT "elm,action,unpress" "";
4929             after: "button_unclick_anim";
4930          }
4931          program { name: "button_unclick_anim";
4932             action: STATE_SET "default" 0.0;
4933             target: "button_image";
4934          }
4935          program { name: "button_click2";
4936             signal: "mouse,down,1";
4937             source: "over2";
4938             action: STATE_SET "clicked" 0.0;
4939             target: "over2";
4940          }
4941          program { name: "button_unclick2";
4942             signal: "mouse,clicked,1";
4943             source: "over1";
4944             action: STATE_SET "default" 0.0;
4945             target: "over1";
4946             after: "button_unclick3";
4947          }
4948          program { name: "button_unclick3";
4949             action: SIGNAL_EMIT "elm,action,click" "";
4950          }
4951          program { name: "disable";
4952             signal: "elm,state,disabled";
4953             source: "elm";
4954             action: STATE_SET "disabled" 0.0;
4955             target: "disabler";
4956             target: "button_image";
4957          }
4958          program { name: "enable";
4959             signal: "elm,state,enabled";
4960             source: "elm";
4961             action: STATE_SET "default" 0.0;
4962             target: "disabler";
4963             target: "button_image";
4964          }
4965       }
4966    }
4967
4968    group { name: "elm/button/base/reveal/extended";
4969       images {
4970          image: "00_button_reveal.png" COMP;
4971          image: "00_button_reveal_press.png" COMP;
4972          image: "00_button_reveal_dim.png" COMP;
4973       }
4974       parts {
4975          part { name: "button_image";
4976             mouse_events: 1;
4977             scale: 1;
4978             description { state: "default" 0.0;
4979                min: 40 40;
4980                max: 40 40;
4981                image {
4982                   normal: "00_button_reveal.png";
4983                }
4984             }
4985             description {
4986                state: "clicked" 0.0;
4987                inherit: "default" 0.0;
4988                image.normal: "00_button_reveal_press.png";
4989             }
4990             description {
4991                state: "disabled" 0.0;
4992                inherit: "default" 0.0;
4993                image.normal: "00_button_reveal_dim.png";
4994             }
4995          }
4996          part { name: "over1";
4997             type: RECT;
4998             mouse_events: 1;
4999             repeat_events: 1;
5000             ignore_flags: ON_HOLD;
5001             description { state: "default" 0.0;
5002                min: 60 70;
5003                max: 60 70;
5004                color: 0 0 0 0;
5005             }
5006          }
5007          part { name: "over2";
5008             mouse_events: 1;
5009             repeat_events: 1;
5010             description { state: "default" 0.0;
5011                color: 255 255 255 0;
5012             }
5013             description { state: "clicked" 0.0;
5014                inherit:  "default" 0.0;
5015                visible: 1;
5016                color: 255 255 255 0;
5017             }
5018          }
5019          part { name: "disabler";
5020             type: RECT;
5021             description { state: "default" 0.0;
5022                color: 0 0 0 0;
5023                visible: 0;
5024             }
5025             description { state: "disabled" 0.0;
5026                inherit: "default" 0.0;
5027                visible: 1;
5028             }
5029          }
5030       }
5031       programs {
5032          program { name: "button_click";
5033             signal: "mouse,down,1";
5034             source: "over1";
5035             action: SIGNAL_EMIT "elm,action,press" "";
5036             after: "button_click_anim";
5037          }
5038          program { name: "button_click_anim";
5039             action: STATE_SET "clicked" 0.0;
5040             target: "button_image";
5041          }
5042          program { name: "button_unclick";
5043             signal: "mouse,up,1";
5044             source: "over2";
5045             action: SIGNAL_EMIT "elm,action,unpress" "";
5046             after: "button_unclick_anim";
5047          }
5048          program { name: "button_unclick_anim";
5049             action: STATE_SET "default" 0.0;
5050             target: "button_image";
5051          }
5052          program { name: "button_click2";
5053             signal: "mouse,down,1";
5054             source: "over2";
5055             action: STATE_SET "clicked" 0.0;
5056             target: "over2";
5057          }
5058          program { name: "button_unclick2";
5059             signal: "mouse,clicked,1";
5060             source: "over1";
5061             action: STATE_SET "default" 0.0;
5062             target: "over1";
5063             after: "button_unclick3";
5064          }
5065          program { name: "button_unclick3";
5066             action: SIGNAL_EMIT "elm,action,click" "";
5067          }
5068          program { name: "disable";
5069             signal: "elm,state,disabled";
5070             source: "elm";
5071             action: STATE_SET "disabled" 0.0;
5072             target: "disabler";
5073             target: "button_image";
5074          }
5075          program { name: "enable";
5076             signal: "elm,state,enabled";
5077             source: "elm";
5078             action: STATE_SET "default" 0.0;
5079             target: "disabler";
5080             target: "button_image";
5081          }
5082       }
5083    }
5084
5085    group { name: "elm/button/base/call/extended";
5086       images {
5087          image: "00_button_call.png" COMP;
5088          image: "00_button_call_press.png" COMP;
5089          image: "00_button_call_dim.png" COMP;
5090       }
5091       parts {
5092          part { name: "button_image";
5093             mouse_events: 1;
5094             scale: 1;
5095             description { state: "default" 0.0;
5096                min: 40 40;
5097                max: 40 40;
5098                image {
5099                   normal: "00_button_call.png";
5100                }
5101             }
5102             description {
5103                state: "clicked" 0.0;
5104                inherit: "default" 0.0;
5105                image.normal: "00_button_call_press.png";
5106             }
5107             description {
5108                state: "disabled" 0.0;
5109                inherit: "default" 0.0;
5110                image.normal: "00_button_call_dim.png";
5111             }
5112          }
5113          part { name: "over1";
5114             type: RECT;
5115             mouse_events: 1;
5116             repeat_events: 1;
5117             ignore_flags: ON_HOLD;
5118             description { state: "default" 0.0;
5119                min: 60 75;
5120                max: 60 75;
5121                color: 0 0 0 0;
5122             }
5123          }
5124          part { name: "over2";
5125             mouse_events: 1;
5126             repeat_events: 1;
5127             description { state: "default" 0.0;
5128                color: 255 255 255 0;
5129             }
5130             description { state: "clicked" 0.0;
5131                inherit:  "default" 0.0;
5132                visible: 1;
5133                color: 255 255 255 0;
5134             }
5135          }
5136          part { name: "disabler";
5137             type: RECT;
5138             description { state: "default" 0.0;
5139                color: 0 0 0 0;
5140                visible: 0;
5141             }
5142             description { state: "disabled" 0.0;
5143                inherit: "default" 0.0;
5144                visible: 1;
5145             }
5146          }
5147       }
5148       programs {
5149          program { name: "button_click";
5150             signal: "mouse,down,1";
5151             source: "over1";
5152             action: SIGNAL_EMIT "elm,action,press" "";
5153             after: "button_click_anim";
5154          }
5155          program { name: "button_click_anim";
5156             action: STATE_SET "clicked" 0.0;
5157             target: "button_image";
5158          }
5159          program { name: "button_unclick";
5160             signal: "mouse,up,1";
5161             source: "over2";
5162             action: SIGNAL_EMIT "elm,action,unpress" "";
5163             after: "button_unclick_anim";
5164          }
5165          program { name: "button_unclick_anim";
5166             action: STATE_SET "default" 0.0;
5167             target: "button_image";
5168          }
5169          program { name: "button_click2";
5170             signal: "mouse,down,1";
5171             source: "over2";
5172             action: STATE_SET "clicked" 0.0;
5173             target: "over2";
5174          }
5175          program { name: "button_unclick2";
5176             signal: "mouse,clicked,1";
5177             source: "over1";
5178             action: STATE_SET "default" 0.0;
5179             target: "over1";
5180             after: "button_unclick3";
5181          }
5182          program { name: "button_unclick3";
5183             action: SIGNAL_EMIT "elm,action,click" "";
5184          }
5185          program { name: "disable";
5186             signal: "elm,state,disabled";
5187             source: "elm";
5188             action: STATE_SET "disabled" 0.0;
5189             target: "disabler";
5190             target: "button_image";
5191          }
5192          program { name: "enable";
5193             signal: "elm,state,enabled";
5194             source: "elm";
5195             action: STATE_SET "default" 0.0;
5196             target: "disabler";
5197             target: "button_image";
5198          }
5199       }
5200    }
5201
5202 ///////////////////////////////////////////////////////////////////////////////////////
5203    group { name: "elm/button/base/add";
5204       images {
5205          image: "00_button_icon_plus.png" COMP;
5206          image: "00_button_icon_plus_press.png" COMP;
5207          image: "00_button_EditStyle.png" COMP;
5208          image: "00_button_EditStyle_press.png" COMP;
5209          image: "00_button_EditStyle_dim.png" COMP;
5210       }
5211       parts {
5212          part { name: "button_image";
5213             mouse_events: 1;
5214             scale: 1;
5215             description { state: "default" 0.0;
5216                min: 46 46;
5217                max: 46 46;
5218                image {
5219                   normal: "00_button_EditStyle.png";
5220                   border: 8 0 3 3;
5221                   border_scale: 1;
5222                }
5223             }
5224             description {
5225                state: "clicked" 0.0;
5226                inherit: "default" 0.0;
5227                image.normal: "00_button_EditStyle_press.png";
5228             }
5229             description {
5230                state: "disabled" 0.0;
5231                inherit: "default" 0.0;
5232                image.normal: "00_button_EditStyle_dim.png";
5233             }
5234          }
5235          part { name: "button_center_part";
5236             mouse_events: 0;
5237             scale: 1;
5238             description { state: "default" 0.0;
5239                min: 46 46;
5240                max: 46 46;
5241                image {
5242                   normal: "00_button_icon_plus.png";
5243                   border: 8 0 3 3;
5244                   border_scale: 1;
5245                }
5246             }
5247             description {
5248                state: "clicked" 0.0;
5249                inherit: "default" 0.0;
5250                image.normal: "00_button_icon_plus_press.png";
5251             }
5252          }
5253          part { name: "over1";
5254             type: RECT;
5255             mouse_events: 1;
5256             repeat_events: 1;
5257             ignore_flags: ON_HOLD;
5258             description { state: "default" 0.0;
5259                color: 0 0 0 0;
5260             }
5261          }
5262          part { name: "over2";
5263             mouse_events: 1;
5264             repeat_events: 1;
5265             description { state: "default" 0.0;
5266                color: 255 255 255 0;
5267             }
5268             description { state: "clicked" 0.0;
5269                inherit:  "default" 0.0;
5270                visible: 1;
5271                color: 255 255 255 0;
5272             }
5273          }
5274          part { name: "disabler";
5275             type: RECT;
5276             description { state: "default" 0.0;
5277                color: 0 0 0 0;
5278                visible: 0;
5279             }
5280             description { state: "disabled" 0.0;
5281                inherit: "default" 0.0;
5282                visible: 1;
5283             }
5284          }
5285       }
5286       programs {
5287          program { name: "button_click";
5288             signal: "mouse,down,1";
5289             source: "over1";
5290             action: SIGNAL_EMIT "elm,action,press" "";
5291             after: "button_click_anim";
5292          }
5293          program { name: "button_click_anim";
5294             action: STATE_SET "clicked" 0.0;
5295             target: "button_image";
5296             target: "button_center_part";
5297          }
5298          program { name: "button_unclick";
5299             signal: "mouse,up,1";
5300             source: "over2";
5301             action: SIGNAL_EMIT "elm,action,unpress" "";
5302             after: "button_unclick_anim";
5303          }
5304          program { name: "button_unclick_anim";
5305             action: STATE_SET "default" 0.0;
5306             target: "button_image";
5307             target: "button_center_part";
5308          }
5309          program { name: "button_click2";
5310             signal: "mouse,down,1";
5311             source: "over2";
5312             action: STATE_SET "clicked" 0.0;
5313             target: "over2";
5314          }
5315          program { name: "button_unclick2";
5316             signal: "mouse,clicked,1";
5317             source: "over1";
5318             action: STATE_SET "default" 0.0;
5319             target: "over1";
5320             after: "button_unclick3";
5321          }
5322          program { name: "button_unclick3";
5323             action: SIGNAL_EMIT "elm,action,click" "";
5324          }
5325          program { name: "disable";
5326             signal: "elm,state,disabled";
5327             source: "elm";
5328             action: STATE_SET "disabled" 0.0;
5329             target: "disabler";
5330             target: "button_image";
5331          }
5332          program { name: "enable";
5333             signal: "elm,state,enabled";
5334             source: "elm";
5335             action: STATE_SET "default" 0.0;
5336             target: "disabler";
5337             target: "button_image";
5338          }
5339       }
5340    }
5341
5342    group { name: "elm/button/base/add/extended";
5343       images {
5344          image: "00_button_icon_plus.png" COMP;
5345          image: "00_button_icon_plus_press.png" COMP;
5346          image: "00_button_EditStyle.png" COMP;
5347          image: "00_button_EditStyle_press.png" COMP;
5348          image: "00_button_EditStyle_dim.png" COMP;
5349       }
5350       parts {
5351          part { name: "button_image";
5352             mouse_events: 1;
5353             scale: 1;
5354             description { state: "default" 0.0;
5355                min: 46 46;
5356                max: 46 46;
5357                image {
5358                   normal: "00_button_EditStyle.png";
5359                }
5360             }
5361             description {
5362                state: "clicked" 0.0;
5363                inherit: "default" 0.0;
5364                image.normal: "00_button_EditStyle_press.png";
5365             }
5366             description {
5367                state: "disabled" 0.0;
5368                inherit: "default" 0.0;
5369                image.normal: "00_button_EditStyle_dim.png";
5370             }
5371          }
5372          part { name: "button_center_part";
5373             mouse_events: 0;
5374             scale: 1;
5375             description { state: "default" 0.0;
5376                min: 46 46;
5377                max: 46 46;
5378                image {
5379                   normal: "00_button_icon_plus.png";
5380                   border: 8 0 3 3;
5381                   border_scale: 1;
5382                }
5383             }
5384             description {
5385                state: "clicked" 0.0;
5386                inherit: "default" 0.0;
5387                image.normal: "00_button_icon_plus_press.png";
5388             }
5389          }
5390          part { name: "over1";
5391             type: RECT;
5392             mouse_events: 1;
5393             repeat_events: 1;
5394             ignore_flags: ON_HOLD;
5395             description { state: "default" 0.0;
5396                min: 60 75;
5397                max: 60 75;
5398                color: 0 0 0 0;
5399             }
5400          }
5401          part { name: "over2";
5402             mouse_events: 1;
5403             repeat_events: 1;
5404             description { state: "default" 0.0;
5405                color: 255 255 255 0;
5406             }
5407             description { state: "clicked" 0.0;
5408                inherit:  "default" 0.0;
5409                visible: 1;
5410                color: 255 255 255 0;
5411             }
5412          }
5413          part { name: "disabler";
5414             type: RECT;
5415             description { state: "default" 0.0;
5416                color: 0 0 0 0;
5417                visible: 0;
5418             }
5419             description { state: "disabled" 0.0;
5420                inherit: "default" 0.0;
5421                visible: 1;
5422             }
5423          }
5424       }
5425       programs {
5426          program { name: "button_click";
5427             signal: "mouse,down,1";
5428             source: "over1";
5429             action: SIGNAL_EMIT "elm,action,press" "";
5430             after: "button_click_anim";
5431          }
5432          program { name: "button_click_anim";
5433             action: STATE_SET "clicked" 0.0;
5434             target: "button_image";
5435             target: "button_center_part";
5436          }
5437          program { name: "button_unclick";
5438             signal: "mouse,up,1";
5439             source: "over2";
5440             action: SIGNAL_EMIT "elm,action,unpress" "";
5441             after: "button_unclick_anim";
5442          }
5443          program { name: "button_unclick_anim";
5444             action: STATE_SET "default" 0.0;
5445             target: "button_image";
5446             target: "button_center_part";
5447          }
5448          program { name: "button_click2";
5449             signal: "mouse,down,1";
5450             source: "over2";
5451             action: STATE_SET "clicked" 0.0;
5452             target: "over2";
5453          }
5454          program { name: "button_unclick2";
5455             signal: "mouse,clicked,1";
5456             source: "over1";
5457             action: STATE_SET "default" 0.0;
5458             target: "over1";
5459             after: "button_unclick3";
5460          }
5461          program { name: "button_unclick3";
5462             action: SIGNAL_EMIT "elm,action,click" "";
5463          }
5464          program { name: "disable";
5465             signal: "elm,state,disabled";
5466             source: "elm";
5467             action: STATE_SET "disabled" 0.0;
5468             target: "disabler";
5469             target: "button_image";
5470          }
5471          program { name: "enable";
5472             signal: "elm,state,enabled";
5473             source: "elm";
5474             action: STATE_SET "default" 0.0;
5475             target: "disabler";
5476             target: "button_image";
5477          }
5478       }
5479    }
5480
5481 ///////////////////////////////////////////////////////////////////////////////////////
5482    group { name: "elm/button/base/minus";
5483       images {
5484          image: "00_button_icon_minus.png" COMP;
5485          image: "00_button_icon_minus_press.png" COMP;
5486          image: "00_button_EditStyle.png" COMP;
5487          image: "00_button_EditStyle_press.png" COMP;
5488          image: "00_button_EditStyle_dim.png" COMP;
5489       }
5490       parts {
5491          part { name: "button_image";
5492             mouse_events: 1;
5493             scale: 1;
5494             description { state: "default" 0.0;
5495                min: 46 46;
5496                max: 46 46;
5497                image {
5498                   normal: "00_button_EditStyle.png";
5499                   border: 8 0 3 3;
5500                   border_scale: 1;
5501                }
5502             }
5503             description {
5504                state: "clicked" 0.0;
5505                inherit: "default" 0.0;
5506                image.normal: "00_button_EditStyle_press.png";
5507             }
5508             description {
5509                state: "disabled" 0.0;
5510                inherit: "default" 0.0;
5511                image.normal: "00_button_EditStyle_dim.png";
5512             }
5513          }
5514          part { name: "button_center_part";
5515             mouse_events: 0;
5516             scale: 1;
5517             description { state: "default" 0.0;
5518                min: 46 46;
5519                max: 46 46;
5520                image {
5521                   normal: "00_button_icon_minus.png";
5522                   border: 8 0 3 3;
5523                   border_scale: 1;
5524                }
5525             }
5526             description {
5527                state: "clicked" 0.0;
5528                inherit: "default" 0.0;
5529                image.normal: "00_button_icon_minus_press.png";
5530             }
5531          }
5532          part { name: "over1";
5533             type: RECT;
5534             mouse_events: 1;
5535             repeat_events: 1;
5536             ignore_flags: ON_HOLD;
5537             description { state: "default" 0.0;
5538                color: 0 0 0 0;
5539             }
5540          }
5541          part { name: "over2";
5542             mouse_events: 1;
5543             repeat_events: 1;
5544             description { state: "default" 0.0;
5545                color: 255 255 255 0;
5546             }
5547             description { state: "clicked" 0.0;
5548                inherit:  "default" 0.0;
5549                visible: 1;
5550                color: 255 255 255 0;
5551             }
5552          }
5553          part { name: "disabler";
5554             type: RECT;
5555             description { state: "default" 0.0;
5556                color: 0 0 0 0;
5557                visible: 0;
5558             }
5559             description { state: "disabled" 0.0;
5560                inherit: "default" 0.0;
5561                visible: 1;
5562             }
5563          }
5564       }
5565       programs {
5566          program { name: "button_click";
5567             signal: "mouse,down,1";
5568             source: "over1";
5569             action: SIGNAL_EMIT "elm,action,press" "";
5570             after: "button_click_anim";
5571          }
5572          program { name: "button_click_anim";
5573             action: STATE_SET "clicked" 0.0;
5574             target: "button_image";
5575             target: "button_center_part";
5576          }
5577          program { name: "button_unclick";
5578             signal: "mouse,up,1";
5579             source: "over2";
5580             action: SIGNAL_EMIT "elm,action,unpress" "";
5581             after: "button_unclick_anim";
5582          }
5583          program { name: "button_unclick_anim";
5584             action: STATE_SET "default" 0.0;
5585             target: "button_image";
5586             target: "button_center_part";
5587          }
5588          program { name: "button_click2";
5589             signal: "mouse,down,1";
5590             source: "over2";
5591             action: STATE_SET "clicked" 0.0;
5592             target: "over2";
5593          }
5594          program { name: "button_unclick2";
5595             signal: "mouse,clicked,1";
5596             source: "over1";
5597             action: STATE_SET "default" 0.0;
5598             target: "over1";
5599             after: "button_unclick3";
5600          }
5601          program { name: "button_unclick3";
5602             action: SIGNAL_EMIT "elm,action,click" "";
5603          }
5604          program { name: "disable";
5605             signal: "elm,state,disabled";
5606             source: "elm";
5607             action: STATE_SET "disabled" 0.0;
5608             target: "disabler";
5609             target: "button_image";
5610          }
5611          program { name: "enable";
5612             signal: "elm,state,enabled";
5613             source: "elm";
5614             action: STATE_SET "default" 0.0;
5615             target: "disabler";
5616             target: "button_image";
5617          }
5618       }
5619    }
5620
5621    group { name: "elm/button/base/minus/extended";
5622       images {
5623          image: "00_button_icon_minus.png" COMP;
5624          image: "00_button_icon_minus_press.png" COMP;
5625          image: "00_button_EditStyle.png" COMP;
5626          image: "00_button_EditStyle_press.png" COMP;
5627          image: "00_button_EditStyle_dim.png" COMP;
5628       }
5629       parts {
5630          part { name: "button_image";
5631             mouse_events: 1;
5632             scale: 1;
5633             description { state: "default" 0.0;
5634                min: 46 46;
5635                max: 46 46;
5636                image {
5637                   normal: "00_button_EditStyle.png";
5638                }
5639             }
5640             description {
5641                state: "clicked" 0.0;
5642                inherit: "default" 0.0;
5643                image.normal: "00_button_EditStyle_press.png";
5644             }
5645             description {
5646                state: "disabled" 0.0;
5647                inherit: "default" 0.0;
5648                image.normal: "00_button_EditStyle_dim.png";
5649             }
5650          }
5651          part { name: "button_center_part";
5652             mouse_events: 0;
5653             scale: 1;
5654             description { state: "default" 0.0;
5655                min: 46 46;
5656                max: 46 46;
5657                image {
5658                   normal: "00_button_icon_minus.png";
5659                   border: 8 0 3 3;
5660                   border_scale: 1;
5661                }
5662             }
5663             description {
5664                state: "clicked" 0.0;
5665                inherit: "default" 0.0;
5666                image.normal: "00_button_icon_minus_press.png";
5667             }
5668          }
5669          part { name: "over1";
5670             type: RECT;
5671             mouse_events: 1;
5672             repeat_events: 1;
5673             ignore_flags: ON_HOLD;
5674             description { state: "default" 0.0;
5675                min: 60 75;
5676                max: 60 75;
5677                color: 0 0 0 0;
5678             }
5679          }
5680          part { name: "over2";
5681             mouse_events: 1;
5682             repeat_events: 1;
5683             description { state: "default" 0.0;
5684                color: 255 255 255 0;
5685             }
5686             description { state: "clicked" 0.0;
5687                inherit:  "default" 0.0;
5688                visible: 1;
5689                color: 255 255 255 0;
5690             }
5691          }
5692          part { name: "disabler";
5693             type: RECT;
5694             description { state: "default" 0.0;
5695                color: 0 0 0 0;
5696                visible: 0;
5697             }
5698             description { state: "disabled" 0.0;
5699                inherit: "default" 0.0;
5700                visible: 1;
5701             }
5702          }
5703       }
5704       programs {
5705          program { name: "button_click";
5706             signal: "mouse,down,1";
5707             source: "over1";
5708             action: SIGNAL_EMIT "elm,action,press" "";
5709             after: "button_click_anim";
5710          }
5711          program { name: "button_click_anim";
5712             action: STATE_SET "clicked" 0.0;
5713             target: "button_image";
5714             target: "button_center_part";
5715          }
5716          program { name: "button_unclick";
5717             signal: "mouse,up,1";
5718             source: "over2";
5719             action: SIGNAL_EMIT "elm,action,unpress" "";
5720             after: "button_unclick_anim";
5721          }
5722          program { name: "button_unclick_anim";
5723             action: STATE_SET "default" 0.0;
5724             target: "button_image";
5725             target: "button_center_part";
5726          }
5727          program { name: "button_click2";
5728             signal: "mouse,down,1";
5729             source: "over2";
5730             action: STATE_SET "clicked" 0.0;
5731             target: "over2";
5732          }
5733          program { name: "button_unclick2";
5734             signal: "mouse,clicked,1";
5735             source: "over1";
5736             action: STATE_SET "default" 0.0;
5737             target: "over1";
5738             after: "button_unclick3";
5739          }
5740          program { name: "button_unclick3";
5741             action: SIGNAL_EMIT "elm,action,click" "";
5742          }
5743          program { name: "disable";
5744             signal: "elm,state,disabled";
5745             source: "elm";
5746             action: STATE_SET "disabled" 0.0;
5747             target: "disabler";
5748             target: "button_image";
5749          }
5750          program { name: "enable";
5751             signal: "elm,state,enabled";
5752             source: "elm";
5753             action: STATE_SET "default" 0.0;
5754             target: "disabler";
5755             target: "button_image";
5756          }
5757       }
5758    }
5759
5760 ///////////////////////////////////////////////////////////////////////////////////////
5761    group { name: "elm/button/base/icon_expand";
5762       images {
5763          image: "00_button_icon_expand.png" COMP;
5764          image: "00_button_icon_expand_press.png" COMP;
5765          image: "00_button_EditStyle.png" COMP;
5766          image: "00_button_EditStyle_press.png" COMP;
5767          image: "00_button_EditStyle_dim.png" COMP;
5768       }
5769       parts {
5770          part { name: "button_image";
5771             mouse_events: 1;
5772             scale: 1;
5773             description { state: "default" 0.0;
5774                min: 46 46;
5775                max: 46 46;
5776                image {
5777                   normal: "00_button_EditStyle.png";
5778                   border: 8 0 3 3;
5779                   border_scale: 1;
5780                }
5781             }
5782             description {
5783                state: "clicked" 0.0;
5784                inherit: "default" 0.0;
5785                image.normal: "00_button_EditStyle_press.png";
5786             }
5787             description {
5788                state: "disabled" 0.0;
5789                inherit: "default" 0.0;
5790                image.normal: "00_button_EditStyle_dim.png";
5791             }
5792          }
5793          part { name: "button_center_part";
5794             mouse_events: 0;
5795             scale: 1;
5796             description { state: "default" 0.0;
5797                min: 46 46;
5798                max: 46 46;
5799                image {
5800                   normal: "00_button_icon_expand.png";
5801                   border: 8 0 3 3;
5802                   border_scale: 1;
5803                }
5804             }
5805             description {
5806                state: "clicked" 0.0;
5807                inherit: "default" 0.0;
5808                image.normal: "00_button_icon_expand_press.png";
5809             }
5810          }
5811          part { name: "over1";
5812             type: RECT;
5813             mouse_events: 1;
5814             repeat_events: 1;
5815             ignore_flags: ON_HOLD;
5816             description { state: "default" 0.0;
5817                color: 0 0 0 0;
5818             }
5819          }
5820          part { name: "over2";
5821             mouse_events: 1;
5822             repeat_events: 1;
5823             description { state: "default" 0.0;
5824                color: 255 255 255 0;
5825             }
5826             description { state: "clicked" 0.0;
5827                inherit:  "default" 0.0;
5828                visible: 1;
5829                color: 255 255 255 0;
5830             }
5831          }
5832          part { name: "disabler";
5833             type: RECT;
5834             description { state: "default" 0.0;
5835                color: 0 0 0 0;
5836                visible: 0;
5837             }
5838             description { state: "disabled" 0.0;
5839                inherit: "default" 0.0;
5840                visible: 1;
5841             }
5842          }
5843       }
5844       programs {
5845          program { name: "button_click";
5846             signal: "mouse,down,1";
5847             source: "over1";
5848             action: SIGNAL_EMIT "elm,action,press" "";
5849             after: "button_click_anim";
5850          }
5851          program { name: "button_click_anim";
5852             action: STATE_SET "clicked" 0.0;
5853             target: "button_image";
5854             target: "button_center_part";
5855          }
5856          program { name: "button_unclick";
5857             signal: "mouse,up,1";
5858             source: "over2";
5859             action: SIGNAL_EMIT "elm,action,unpress" "";
5860             after: "button_unclick_anim";
5861          }
5862          program { name: "button_unclick_anim";
5863             action: STATE_SET "default" 0.0;
5864             target: "button_image";
5865             target: "button_center_part";
5866          }
5867          program { name: "button_click2";
5868             signal: "mouse,down,1";
5869             source: "over2";
5870             action: STATE_SET "clicked" 0.0;
5871             target: "over2";
5872          }
5873          program { name: "button_unclick2";
5874             signal: "mouse,clicked,1";
5875             source: "over1";
5876             action: STATE_SET "default" 0.0;
5877             target: "over1";
5878             after: "button_unclick3";
5879          }
5880          program { name: "button_unclick3";
5881             action: SIGNAL_EMIT "elm,action,click" "";
5882          }
5883          program { name: "disable";
5884             signal: "elm,state,disabled";
5885             source: "elm";
5886             action: STATE_SET "disabled" 0.0;
5887             target: "disabler";
5888             target: "button_image";
5889          }
5890          program { name: "enable";
5891             signal: "elm,state,enabled";
5892             source: "elm";
5893             action: STATE_SET "default" 0.0;
5894             target: "disabler";
5895             target: "button_image";
5896          }
5897       }
5898    }
5899
5900    group { name: "elm/button/base/icon_expand/extended";
5901       images {
5902          image: "00_button_icon_expand.png" COMP;
5903          image: "00_button_icon_expand_press.png" COMP;
5904          image: "00_button_EditStyle.png" COMP;
5905          image: "00_button_EditStyle_press.png" COMP;
5906          image: "00_button_EditStyle_dim.png" COMP;
5907       }
5908       parts {
5909          part { name: "button_image";
5910             mouse_events: 1;
5911             scale: 1;
5912             description { state: "default" 0.0;
5913                min: 46 46;
5914                max: 46 46;
5915                image {
5916                   normal: "00_button_EditStyle.png";
5917                }
5918             }
5919             description {
5920                state: "clicked" 0.0;
5921                inherit: "default" 0.0;
5922                image.normal: "00_button_EditStyle_press.png";
5923             }
5924             description {
5925                state: "disabled" 0.0;
5926                inherit: "default" 0.0;
5927                image.normal: "00_button_EditStyle_dim.png";
5928             }
5929          }
5930          part { name: "button_center_part";
5931             mouse_events: 0;
5932             scale: 1;
5933             description { state: "default" 0.0;
5934                min: 46 46;
5935                max: 46 46;
5936                image {
5937                   normal: "00_button_icon_expand.png";
5938                   border: 8 0 3 3;
5939                   border_scale: 1;
5940                }
5941             }
5942             description {
5943                state: "clicked" 0.0;
5944                inherit: "default" 0.0;
5945                image.normal: "00_button_icon_expand_press.png";
5946             }
5947          }
5948          part { name: "over1";
5949             type: RECT;
5950             mouse_events: 1;
5951             repeat_events: 1;
5952             ignore_flags: ON_HOLD;
5953             description { state: "default" 0.0;
5954                min: 60 75;
5955                max: 60 75;
5956                color: 0 0 0 0;
5957             }
5958          }
5959          part { name: "over2";
5960             mouse_events: 1;
5961             repeat_events: 1;
5962             description { state: "default" 0.0;
5963                color: 255 255 255 0;
5964             }
5965             description { state: "clicked" 0.0;
5966                inherit:  "default" 0.0;
5967                visible: 1;
5968                color: 255 255 255 0;
5969             }
5970          }
5971          part { name: "disabler";
5972             type: RECT;
5973             description { state: "default" 0.0;
5974                color: 0 0 0 0;
5975                visible: 0;
5976             }
5977             description { state: "disabled" 0.0;
5978                inherit: "default" 0.0;
5979                visible: 1;
5980             }
5981          }
5982       }
5983       programs {
5984          program { name: "button_click";
5985             signal: "mouse,down,1";
5986             source: "over1";
5987             action: SIGNAL_EMIT "elm,action,press" "";
5988             after: "button_click_anim";
5989          }
5990          program { name: "button_click_anim";
5991             action: STATE_SET "clicked" 0.0;
5992             target: "button_image";
5993             target: "button_center_part";
5994          }
5995          program { name: "button_unclick";
5996             signal: "mouse,up,1";
5997             source: "over2";
5998             action: SIGNAL_EMIT "elm,action,unpress" "";
5999             after: "button_unclick_anim";
6000          }
6001          program { name: "button_unclick_anim";
6002             action: STATE_SET "default" 0.0;
6003             target: "button_image";
6004             target: "button_center_part";
6005          }
6006          program { name: "button_click2";
6007             signal: "mouse,down,1";
6008             source: "over2";
6009             action: STATE_SET "clicked" 0.0;
6010             target: "over2";
6011          }
6012          program { name: "button_unclick2";
6013             signal: "mouse,clicked,1";
6014             source: "over1";
6015             action: STATE_SET "default" 0.0;
6016             target: "over1";
6017             after: "button_unclick3";
6018          }
6019          program { name: "button_unclick3";
6020             action: SIGNAL_EMIT "elm,action,click" "";
6021          }
6022          program { name: "disable";
6023             signal: "elm,state,disabled";
6024             source: "elm";
6025             action: STATE_SET "disabled" 0.0;
6026             target: "disabler";
6027             target: "button_image";
6028          }
6029          program { name: "enable";
6030             signal: "elm,state,enabled";
6031             source: "elm";
6032             action: STATE_SET "default" 0.0;
6033             target: "disabler";
6034             target: "button_image";
6035          }
6036       }
6037    }
6038
6039 ///////////////////////////////////////////////////////////////////////////////////////
6040    group { name: "elm/button/base/rename";
6041       images {
6042          image: "00_button_rename.png" COMP;
6043          image: "00_button_rename_press.png" COMP;
6044          image: "00_button_rename_dim.png" COMP;
6045       }
6046       parts {
6047          part { name: "button_image";
6048             mouse_events: 1;
6049             scale: 1;
6050             description { state: "default" 0.0;
6051                min: 40 40;
6052                max: 40 40;
6053                image {
6054                   normal: "00_button_rename.png";
6055                }
6056             }
6057             description {
6058                state: "clicked" 0.0;
6059                inherit: "default" 0.0;
6060                image.normal: "00_button_rename_press.png";
6061             }
6062             description {
6063                state: "disabled" 0.0;
6064                inherit: "default" 0.0;
6065                image.normal: "00_button_rename_dim.png";
6066             }
6067          }
6068          part { name: "over1";
6069             type: RECT;
6070             mouse_events: 1;
6071             repeat_events: 1;
6072             ignore_flags: ON_HOLD;
6073             description { state: "default" 0.0;
6074                color: 0 0 0 0;
6075             }
6076          }
6077          part { name: "over2";
6078             mouse_events: 1;
6079             repeat_events: 1;
6080             description { state: "default" 0.0;
6081                color: 255 255 255 0;
6082             }
6083             description { state: "clicked" 0.0;
6084                inherit:  "default" 0.0;
6085                visible: 1;
6086                color: 255 255 255 0;
6087             }
6088          }
6089          part { name: "disabler";
6090             type: RECT;
6091             description { state: "default" 0.0;
6092                color: 0 0 0 0;
6093                visible: 0;
6094             }
6095             description { state: "disabled" 0.0;
6096                inherit: "default" 0.0;
6097                visible: 1;
6098             }
6099          }
6100       }
6101       programs {
6102          program { name: "button_click";
6103             signal: "mouse,down,1";
6104             source: "over1";
6105             action: SIGNAL_EMIT "elm,action,press" "";
6106             after: "button_click_anim";
6107          }
6108          program { name: "button_click_anim";
6109             action: STATE_SET "clicked" 0.0;
6110             target: "button_image";
6111          }
6112          program { name: "button_unclick";
6113             signal: "mouse,up,1";
6114             source: "over2";
6115             action: SIGNAL_EMIT "elm,action,unpress" "";
6116             after: "button_unclick_anim";
6117          }
6118          program { name: "button_unclick_anim";
6119             action: STATE_SET "default" 0.0;
6120             target: "button_image";
6121          }
6122          program { name: "button_click2";
6123             signal: "mouse,down,1";
6124             source: "over2";
6125             action: STATE_SET "clicked" 0.0;
6126             target: "over2";
6127          }
6128          program { name: "button_unclick2";
6129             signal: "mouse,clicked,1";
6130             source: "over1";
6131             action: STATE_SET "default" 0.0;
6132             target: "over1";
6133             after: "button_unclick3";
6134          }
6135          program { name: "button_unclick3";
6136             action: SIGNAL_EMIT "elm,action,click" "";
6137          }
6138          program { name: "disable";
6139             signal: "elm,state,disabled";
6140             source: "elm";
6141             action: STATE_SET "disabled" 0.0;
6142             target: "disabler";
6143             target: "button_image";
6144          }
6145          program { name: "enable";
6146             signal: "elm,state,enabled";
6147             source: "elm";
6148             action: STATE_SET "default" 0.0;
6149             target: "disabler";
6150             target: "button_image";
6151          }
6152       }
6153    }
6154
6155    group { name: "elm/button/base/rename/extended";
6156       images {
6157          image: "00_button_rename.png" COMP;
6158          image: "00_button_rename_press.png" COMP;
6159          image: "00_button_rename_dim.png" COMP;
6160       }
6161       parts {
6162          part { name: "button_image";
6163             mouse_events: 1;
6164             scale: 1;
6165             description { state: "default" 0.0;
6166                min: 40 40;
6167                max: 40 40;
6168                image {
6169                   normal: "00_button_rename.png";
6170                }
6171             }
6172             description {
6173                state: "clicked" 0.0;
6174                inherit: "default" 0.0;
6175                image.normal: "00_button_rename_press.png";
6176             }
6177             description {
6178                state: "disabled" 0.0;
6179                inherit: "default" 0.0;
6180                image.normal: "00_button_rename_dim.png";
6181             }
6182          }
6183          part { name: "over1";
6184             type: RECT;
6185             mouse_events: 1;
6186             repeat_events: 1;
6187             ignore_flags: ON_HOLD;
6188             description { state: "default" 0.0;
6189                min: 60 75;
6190                max: 60 75;
6191                color: 0 0 0 0;
6192             }
6193          }
6194          part { name: "over2";
6195             mouse_events: 1;
6196             repeat_events: 1;
6197             description { state: "default" 0.0;
6198                color: 255 255 255 0;
6199             }
6200             description { state: "clicked" 0.0;
6201                inherit:  "default" 0.0;
6202                visible: 1;
6203                color: 255 255 255 0;
6204             }
6205          }
6206          part { name: "disabler";
6207             type: RECT;
6208             description { state: "default" 0.0;
6209                color: 0 0 0 0;
6210                visible: 0;
6211             }
6212             description { state: "disabled" 0.0;
6213                inherit: "default" 0.0;
6214                visible: 1;
6215             }
6216          }
6217       }
6218       programs {
6219          program { name: "button_click";
6220             signal: "mouse,down,1";
6221             source: "over1";
6222             action: SIGNAL_EMIT "elm,action,press" "";
6223             after: "button_click_anim";
6224          }
6225          program { name: "button_click_anim";
6226             action: STATE_SET "clicked" 0.0;
6227             target: "button_image";
6228          }
6229          program { name: "button_unclick";
6230             signal: "mouse,up,1";
6231             source: "over2";
6232             action: SIGNAL_EMIT "elm,action,unpress" "";
6233             after: "button_unclick_anim";
6234          }
6235          program { name: "button_unclick_anim";
6236             action: STATE_SET "default" 0.0;
6237             target: "button_image";
6238          }
6239          program { name: "button_click2";
6240             signal: "mouse,down,1";
6241             source: "over2";
6242             action: STATE_SET "clicked" 0.0;
6243             target: "over2";
6244          }
6245          program { name: "button_unclick2";
6246             signal: "mouse,clicked,1";
6247             source: "over1";
6248             action: STATE_SET "default" 0.0;
6249             target: "over1";
6250             after: "button_unclick3";
6251          }
6252          program { name: "button_unclick3";
6253             action: SIGNAL_EMIT "elm,action,click" "";
6254          }
6255          program { name: "disable";
6256             signal: "elm,state,disabled";
6257             source: "elm";
6258             action: STATE_SET "disabled" 0.0;
6259             target: "disabler";
6260             target: "button_image";
6261          }
6262          program { name: "enable";
6263             signal: "elm,state,enabled";
6264             source: "elm";
6265             action: STATE_SET "default" 0.0;
6266             target: "disabler";
6267             target: "button_image";
6268          }
6269       }
6270    }
6271
6272 ///////////////////////////////////////////////////////////////////////////////////////
6273    group { name: "elm/button/base/warning";
6274       images {
6275          image: "00_button_warning.png" COMP;
6276          image: "00_button_warning_press.png" COMP;
6277          image: "00_button_warning_dim.png" COMP;
6278       }
6279       parts {
6280          part { name: "button_image";
6281             mouse_events: 1;
6282             scale: 1;
6283             description { state: "default" 0.0;
6284                min: 40 40;
6285                max: 40 40;
6286                image {
6287                   normal: "00_button_warning.png";
6288                }
6289             }
6290             description {
6291                state: "clicked" 0.0;
6292                inherit: "default" 0.0;
6293                image.normal: "00_button_warning_press.png";
6294             }
6295             description {
6296                state: "disabled" 0.0;
6297                inherit: "default" 0.0;
6298                image.normal: "00_button_warning_dim.png";
6299             }
6300          }
6301          part { name: "over1";
6302             type: RECT;
6303             mouse_events: 1;
6304             repeat_events: 1;
6305             ignore_flags: ON_HOLD;
6306             description { state: "default" 0.0;
6307                color: 0 0 0 0;
6308             }
6309          }
6310          part { name: "over2";
6311             mouse_events: 1;
6312             repeat_events: 1;
6313             description { state: "default" 0.0;
6314                color: 255 255 255 0;
6315             }
6316             description { state: "clicked" 0.0;
6317                inherit:  "default" 0.0;
6318                visible: 1;
6319                color: 255 255 255 0;
6320             }
6321          }
6322          part { name: "disabler";
6323             type: RECT;
6324             description { state: "default" 0.0;
6325                color: 0 0 0 0;
6326                visible: 0;
6327             }
6328             description { state: "disabled" 0.0;
6329                inherit: "default" 0.0;
6330                visible: 1;
6331             }
6332          }
6333       }
6334       programs {
6335          program { name: "button_click";
6336             signal: "mouse,down,1";
6337             source: "over1";
6338             action: SIGNAL_EMIT "elm,action,press" "";
6339             after: "button_click_anim";
6340          }
6341          program { name: "button_click_anim";
6342             action: STATE_SET "clicked" 0.0;
6343             target: "button_image";
6344          }
6345          program { name: "button_unclick";
6346             signal: "mouse,up,1";
6347             source: "over2";
6348             action: SIGNAL_EMIT "elm,action,unpress" "";
6349             after: "button_unclick_anim";
6350          }
6351          program { name: "button_unclick_anim";
6352             action: STATE_SET "default" 0.0;
6353             target: "button_image";
6354          }
6355          program { name: "button_click2";
6356             signal: "mouse,down,1";
6357             source: "over2";
6358             action: STATE_SET "clicked" 0.0;
6359             target: "over2";
6360          }
6361          program { name: "button_unclick2";
6362             signal: "mouse,clicked,1";
6363             source: "over1";
6364             action: STATE_SET "default" 0.0;
6365             target: "over1";
6366             after: "button_unclick3";
6367          }
6368          program { name: "button_unclick3";
6369             action: SIGNAL_EMIT "elm,action,click" "";
6370          }
6371          program { name: "disable";
6372             signal: "elm,state,disabled";
6373             source: "elm";
6374             action: STATE_SET "disabled" 0.0;
6375             target: "disabler";
6376             target: "button_image";
6377          }
6378          program { name: "enable";
6379             signal: "elm,state,enabled";
6380             source: "elm";
6381             action: STATE_SET "default" 0.0;
6382             target: "disabler";
6383             target: "button_image";
6384          }
6385       }
6386    }
6387
6388    group { name: "elm/button/base/warning/extended";
6389       images {
6390          image: "00_button_warning.png" COMP;
6391          image: "00_button_warning_press.png" COMP;
6392          image: "00_button_warning_dim.png" COMP;
6393       }
6394       parts {
6395          part { name: "button_image";
6396             mouse_events: 1;
6397             scale: 1;
6398             description { state: "default" 0.0;
6399                min: 40 40;
6400                max: 40 40;
6401                image {
6402                   normal: "00_button_warning.png";
6403                }
6404             }
6405             description {
6406                state: "clicked" 0.0;
6407                inherit: "default" 0.0;
6408                image.normal: "00_button_warning_press.png";
6409             }
6410             description {
6411                state: "disabled" 0.0;
6412                inherit: "default" 0.0;
6413                image.normal: "00_button_warning_dim.png";
6414             }
6415          }
6416          part { name: "over1";
6417             type: RECT;
6418             mouse_events: 1;
6419             repeat_events: 1;
6420             ignore_flags: ON_HOLD;
6421             description { state: "default" 0.0;
6422                min: 60 75;
6423                max: 60 75;
6424                color: 0 0 0 0;
6425             }
6426          }
6427          part { name: "over2";
6428             mouse_events: 1;
6429             repeat_events: 1;
6430             description { state: "default" 0.0;
6431                color: 255 255 255 0;
6432             }
6433             description { state: "clicked" 0.0;
6434                inherit:  "default" 0.0;
6435                visible: 1;
6436                color: 255 255 255 0;
6437             }
6438          }
6439          part { name: "disabler";
6440             type: RECT;
6441             description { state: "default" 0.0;
6442                color: 0 0 0 0;
6443                visible: 0;
6444             }
6445             description { state: "disabled" 0.0;
6446                inherit: "default" 0.0;
6447                visible: 1;
6448             }
6449          }
6450       }
6451       programs {
6452          program { name: "button_click";
6453             signal: "mouse,down,1";
6454             source: "over1";
6455             action: SIGNAL_EMIT "elm,action,press" "";
6456             after: "button_click_anim";
6457          }
6458          program { name: "button_click_anim";
6459             action: STATE_SET "clicked" 0.0;
6460             target: "button_image";
6461          }
6462          program { name: "button_unclick";
6463             signal: "mouse,up,1";
6464             source: "over2";
6465             action: SIGNAL_EMIT "elm,action,unpress" "";
6466             after: "button_unclick_anim";
6467          }
6468          program { name: "button_unclick_anim";
6469             action: STATE_SET "default" 0.0;
6470             target: "button_image";
6471          }
6472          program { name: "button_click2";
6473             signal: "mouse,down,1";
6474             source: "over2";
6475             action: STATE_SET "clicked" 0.0;
6476             target: "over2";
6477          }
6478          program { name: "button_unclick2";
6479             signal: "mouse,clicked,1";
6480             source: "over1";
6481             action: STATE_SET "default" 0.0;
6482             target: "over1";
6483             after: "button_unclick3";
6484          }
6485          program { name: "button_unclick3";
6486             action: SIGNAL_EMIT "elm,action,click" "";
6487          }
6488          program { name: "disable";
6489             signal: "elm,state,disabled";
6490             source: "elm";
6491             action: STATE_SET "disabled" 0.0;
6492             target: "disabler";
6493             target: "button_image";
6494          }
6495          program { name: "enable";
6496             signal: "elm,state,enabled";
6497             source: "elm";
6498             action: STATE_SET "default" 0.0;
6499             target: "disabler";
6500             target: "button_image";
6501          }
6502       }
6503    }
6504
6505 ///////////////////////////////////////////////////////////////////////////////////////
6506    group { name: "elm/button/base/info";
6507       images {
6508          image: "00_button_info.png" COMP;
6509          image: "00_button_info_press.png" COMP;
6510          image: "00_button_info_dim.png" COMP;
6511       }
6512       parts {
6513          part { name: "button_image";
6514             mouse_events: 1;
6515             scale: 1;
6516             description { state: "default" 0.0;
6517                min: 40 40;
6518                max: 40 40;
6519                image {
6520                   normal: "00_button_info.png";
6521                }
6522             }
6523             description {
6524                state: "clicked" 0.0;
6525                inherit: "default" 0.0;
6526                image.normal: "00_button_info_press.png";
6527             }
6528             description {
6529                state: "disabled" 0.0;
6530                inherit: "default" 0.0;
6531                image.normal: "00_button_info_dim.png";
6532             }
6533          }
6534          part { name: "over1";
6535             type: RECT;
6536             mouse_events: 1;
6537             repeat_events: 1;
6538             ignore_flags: ON_HOLD;
6539             description { state: "default" 0.0;
6540                color: 0 0 0 0;
6541             }
6542          }
6543          part { name: "over2";
6544             mouse_events: 1;
6545             repeat_events: 1;
6546             description { state: "default" 0.0;
6547                color: 255 255 255 0;
6548             }
6549             description { state: "clicked" 0.0;
6550                inherit:  "default" 0.0;
6551                visible: 1;
6552                color: 255 255 255 0;
6553             }
6554          }
6555          part { name: "disabler";
6556             type: RECT;
6557             description { state: "default" 0.0;
6558                color: 0 0 0 0;
6559                visible: 0;
6560             }
6561             description { state: "disabled" 0.0;
6562                inherit: "default" 0.0;
6563                visible: 1;
6564             }
6565          }
6566       }
6567       programs {
6568          program { name: "button_click";
6569             signal: "mouse,down,1";
6570             source: "over1";
6571             action: SIGNAL_EMIT "elm,action,press" "";
6572             after: "button_click_anim";
6573          }
6574          program { name: "button_click_anim";
6575             action: STATE_SET "clicked" 0.0;
6576             target: "button_image";
6577          }
6578          program { name: "button_unclick";
6579             signal: "mouse,up,1";
6580             source: "over2";
6581             action: SIGNAL_EMIT "elm,action,unpress" "";
6582             after: "button_unclick_anim";
6583          }
6584          program { name: "button_unclick_anim";
6585             action: STATE_SET "default" 0.0;
6586             target: "button_image";
6587          }
6588          program { name: "button_click2";
6589             signal: "mouse,down,1";
6590             source: "over2";
6591             action: STATE_SET "clicked" 0.0;
6592             target: "over2";
6593          }
6594          program { name: "button_unclick2";
6595             signal: "mouse,clicked,1";
6596             source: "over1";
6597             action: STATE_SET "default" 0.0;
6598             target: "over1";
6599             after: "button_unclick3";
6600          }
6601          program { name: "button_unclick3";
6602             action: SIGNAL_EMIT "elm,action,click" "";
6603          }
6604          program { name: "disable";
6605             signal: "elm,state,disabled";
6606             source: "elm";
6607             action: STATE_SET "disabled" 0.0;
6608             target: "disabler";
6609             target: "button_image";
6610          }
6611          program { name: "enable";
6612             signal: "elm,state,enabled";
6613             source: "elm";
6614             action: STATE_SET "default" 0.0;
6615             target: "disabler";
6616             target: "button_image";
6617          }
6618       }
6619    }
6620
6621    group { name: "elm/button/base/info/extended";
6622       images {
6623          image: "00_button_info.png" COMP;
6624          image: "00_button_info_press.png" COMP;
6625          image: "00_button_info_dim.png" COMP;
6626       }
6627       parts {
6628          part { name: "button_image";
6629             mouse_events: 1;
6630             scale: 1;
6631             description { state: "default" 0.0;
6632                min: 40 40;
6633                max: 40 40;
6634                image {
6635                   normal: "00_button_info.png";
6636                }
6637             }
6638             description {
6639                state: "clicked" 0.0;
6640                inherit: "default" 0.0;
6641                image.normal: "00_button_info_press.png";
6642             }
6643             description {
6644                state: "disabled" 0.0;
6645                inherit: "default" 0.0;
6646                image.normal: "00_button_info_dim.png";
6647             }
6648          }
6649          part { name: "over1";
6650             type: RECT;
6651             mouse_events: 1;
6652             repeat_events: 1;
6653             ignore_flags: ON_HOLD;
6654             description { state: "default" 0.0;
6655                min: 60 75;
6656                max: 60 75;
6657                color: 0 0 0 0;
6658             }
6659          }
6660          part { name: "over2";
6661             mouse_events: 1;
6662             repeat_events: 1;
6663             description { state: "default" 0.0;
6664                color: 255 255 255 0;
6665             }
6666             description { state: "clicked" 0.0;
6667                inherit:  "default" 0.0;
6668                visible: 1;
6669                color: 255 255 255 0;
6670             }
6671          }
6672          part { name: "disabler";
6673             type: RECT;
6674             description { state: "default" 0.0;
6675                color: 0 0 0 0;
6676                visible: 0;
6677             }
6678             description { state: "disabled" 0.0;
6679                inherit: "default" 0.0;
6680                visible: 1;
6681             }
6682          }
6683       }
6684       programs {
6685          program { name: "button_click";
6686             signal: "mouse,down,1";
6687             source: "over1";
6688             action: SIGNAL_EMIT "elm,action,press" "";
6689             after: "button_click_anim";
6690          }
6691          program { name: "button_click_anim";
6692             action: STATE_SET "clicked" 0.0;
6693             target: "button_image";
6694          }
6695          program { name: "button_unclick";
6696             signal: "mouse,up,1";
6697             source: "over2";
6698             action: SIGNAL_EMIT "elm,action,unpress" "";
6699             after: "button_unclick_anim";
6700          }
6701          program { name: "button_unclick_anim";
6702             action: STATE_SET "default" 0.0;
6703             target: "button_image";
6704          }
6705          program { name: "button_click2";
6706             signal: "mouse,down,1";
6707             source: "over2";
6708             action: STATE_SET "clicked" 0.0;
6709             target: "over2";
6710          }
6711          program { name: "button_unclick2";
6712             signal: "mouse,clicked,1";
6713             source: "over1";
6714             action: STATE_SET "default" 0.0;
6715             target: "over1";
6716             after: "button_unclick3";
6717          }
6718          program { name: "button_unclick3";
6719             action: SIGNAL_EMIT "elm,action,click" "";
6720          }
6721          program { name: "disable";
6722             signal: "elm,state,disabled";
6723             source: "elm";
6724             action: STATE_SET "disabled" 0.0;
6725             target: "disabler";
6726             target: "button_image";
6727          }
6728          program { name: "enable";
6729             signal: "elm,state,enabled";
6730             source: "elm";
6731             action: STATE_SET "default" 0.0;
6732             target: "disabler";
6733             target: "button_image";
6734          }
6735       }
6736    }
6737
6738 ///////////////////////////////////////////////////////////////////////////////////////
6739    group { name: "elm/button/base/call";
6740       images {
6741          image: "00_button_call.png" COMP;
6742          image: "00_button_call_press.png" COMP;
6743          image: "00_button_call_dim.png" COMP;
6744       }
6745       parts {
6746          part { name: "button_image";
6747             mouse_events: 1;
6748             scale: 1;
6749             description { state: "default" 0.0;
6750                min: 40 40;
6751                max: 40 40;
6752                image {
6753                   normal: "00_button_call.png";
6754                }
6755             }
6756             description {
6757                state: "clicked" 0.0;
6758                inherit: "default" 0.0;
6759                image.normal: "00_button_call_press.png";
6760             }
6761             description {
6762                state: "disabled" 0.0;
6763                inherit: "default" 0.0;
6764                image.normal: "00_button_call_dim.png";
6765             }
6766          }
6767          part { name: "over1";
6768             type: RECT;
6769             mouse_events: 1;
6770             repeat_events: 1;
6771             ignore_flags: ON_HOLD;
6772             description { state: "default" 0.0;
6773                color: 0 0 0 0;
6774             }
6775          }
6776          part { name: "over2";
6777             mouse_events: 1;
6778             repeat_events: 1;
6779             description { state: "default" 0.0;
6780                color: 255 255 255 0;
6781             }
6782             description { state: "clicked" 0.0;
6783                inherit:  "default" 0.0;
6784                visible: 1;
6785                color: 255 255 255 0;
6786             }
6787          }
6788          part { name: "disabler";
6789             type: RECT;
6790             description { state: "default" 0.0;
6791                color: 0 0 0 0;
6792                visible: 0;
6793             }
6794             description { state: "disabled" 0.0;
6795                inherit: "default" 0.0;
6796                visible: 1;
6797             }
6798          }
6799       }
6800       programs {
6801          program { name: "button_click";
6802             signal: "mouse,down,1";
6803             source: "over1";
6804             action: SIGNAL_EMIT "elm,action,press" "";
6805             after: "button_click_anim";
6806          }
6807          program { name: "button_click_anim";
6808             action: STATE_SET "clicked" 0.0;
6809             target: "button_image";
6810          }
6811          program { name: "button_unclick";
6812             signal: "mouse,up,1";
6813             source: "over2";
6814             action: SIGNAL_EMIT "elm,action,unpress" "";
6815             after: "button_unclick_anim";
6816          }
6817          program { name: "button_unclick_anim";
6818             action: STATE_SET "default" 0.0;
6819             target: "button_image";
6820          }
6821          program { name: "button_click2";
6822             signal: "mouse,down,1";
6823             source: "over2";
6824             action: STATE_SET "clicked" 0.0;
6825             target: "over2";
6826          }
6827          program { name: "button_unclick2";
6828             signal: "mouse,clicked,1";
6829             source: "over1";
6830             action: STATE_SET "default" 0.0;
6831             target: "over1";
6832             after: "button_unclick3";
6833          }
6834          program { name: "button_unclick3";
6835             action: SIGNAL_EMIT "elm,action,click" "";
6836          }
6837          program { name: "disable";
6838             signal: "elm,state,disabled";
6839             source: "elm";
6840             action: STATE_SET "disabled" 0.0;
6841             target: "disabler";
6842             target: "button_image";
6843          }
6844          program { name: "enable";
6845             signal: "elm,state,enabled";
6846             source: "elm";
6847             action: STATE_SET "default" 0.0;
6848             target: "disabler";
6849             target: "button_image";
6850          }
6851       }
6852    }
6853
6854 ///////////////////////////////////////////////////////////////////////////////////////
6855    group { name: "elm/button/base/text_only/multiline";
6856       images {
6857          image: "00_button_04_normal.png" COMP;
6858          image: "00_button_04_press.png" COMP;
6859          image: "00_button_04_dim.png" COMP;
6860       }
6861       script {
6862          public button_state = 0; //0:enabled, 1: disabled
6863       }
6864       styles{
6865          style { name: "btn_multiline_style";
6866             base: "font=SLP:style=Medium font_size=18 align=center color=#ffffff wrap=char";
6867             tag:  "br" "\n";
6868             tag:  "ps" "ps";
6869             tag:  "hilight" "+ font=SLP:style=Bold";
6870             tag:  "b" "+ font=SLP:style=Bold";
6871             tag:  "tab" "\t";
6872          }
6873       }
6874       parts {
6875          part { name: "button_image";
6876             mouse_events: 1;
6877             scale: 1;
6878             description { state: "default" 0.0;
6879                min: 10 46;
6880                image {
6881                   normal: "00_button_04_normal.png";
6882                   border: 4 4 3 3;
6883                   border_scale: 1;
6884                }
6885             }
6886             description { state: "clicked" 0.0;
6887                inherit: "default" 0.0;
6888                image.normal: "00_button_04_press.png";
6889             }
6890             description { state: "disabled" 0.0;
6891                inherit:  "default" 0.0;
6892                image.normal: "00_button_04_dim.png";
6893             }
6894             description { state: "focused" 0.0;
6895                inherit: "default" 0.0;
6896                image.normal: "00_button_04_press.png";
6897             }
6898          }
6899          part {
6900             name: "padding_left";
6901             type: RECT;
6902             scale: 1;
6903             mouse_events: 0;
6904             description { state: "default" 0.0;
6905                align: 0.0 0.0;
6906                rel1.relative: 0.0 0.0;
6907                rel2.relative: 0.0 1.0;
6908                min: 2 2;
6909                fixed: 1 0;
6910                color: 0 0 0 0;
6911             }
6912          }
6913          part {
6914             name: "padding_right";
6915             type: RECT;
6916             scale: 1;
6917             mouse_events: 0;
6918             description { state: "default" 0.0;
6919                align: 1.0 0.0;
6920                rel1.relative: 1.0 0.0;
6921                rel2.relative: 1.0 1.0;
6922                min: 2 2;
6923                fixed: 1 0;
6924                color: 0 0 0 0;
6925             }
6926          }
6927          part {
6928             name: "padding_top";
6929             type: RECT;
6930             scale: 1;
6931             mouse_events: 0;
6932             description { state: "default" 0.0;
6933                align: 0.0 0.0;
6934                rel1.relative: 0.0 0.0;
6935                rel2.relative: 1.0 0.0;
6936                min: 2 2;
6937                fixed: 0 1;
6938                color: 0 0 0 0;
6939             }
6940          }
6941          part {
6942             name: "padding_bottom";
6943             type: RECT;
6944             scale: 1;
6945             mouse_events: 0;
6946             description { state: "default" 0.0;
6947                align: 1.0 1.0;
6948                rel1.relative: 0.0 1.0;
6949                rel2.relative: 1.0 1.0;
6950                min: 2 2;
6951                fixed: 0 1;
6952                color: 0 0 0 0;
6953             }
6954          }
6955          part {
6956             name: "icon_rect";
6957             type: RECT;
6958             scale: 1;
6959             mouse_events: 0;
6960             description { state: "default" 0.0;
6961                visible: 1;
6962                min: 0 40;
6963                fixed: 1 0;
6964                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
6965                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
6966                align: 0.0 0.5;
6967                color: 0 0 0 0;
6968             }
6969          }
6970          part {
6971             name: "padding_icon_text";
6972             type: RECT;
6973             scale: 1;
6974             mouse_events: 0;
6975             description { state: "default" 0.0; //when only icon or no icon is there
6976                align: 0.0 0.0;
6977                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6978                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6979                fixed: 1 0;
6980                min: 0 0;
6981                color: 0 0 0 0;
6982             }
6983             description { state: "icononly" 0.0;
6984                inherit: "default" 0.0;
6985             }
6986             description { state: "visible" 0.0; //when icon is visible
6987                align: 0.0 0.0;
6988                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
6989                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
6990                fixed: 1 0;
6991                min: 5 0;
6992                color: 0 0 0 0;
6993             }
6994          }
6995          part { name: "elm.swallow.content";
6996             type: SWALLOW;
6997             scale: 1;
6998             description { state: "default" 0.0;
6999                visible: 0;
7000                align: 0.0 0.5;
7001                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7002                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
7003                fixed: 1 0;
7004             }
7005             description { state: "visible" 0.0;
7006                fixed: 1 0;
7007                visible: 1;
7008                align: 0.0 0.5;
7009                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7010                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
7011                aspect: 1.0 1.0;
7012                aspect_preference: VERTICAL;
7013             }
7014             description { state: "icononly" 0.0;;
7015                visible: 1;
7016                min: 40 40;
7017                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7018                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
7019                align: 0.5 0.5;
7020                aspect: 1.0 1.0;
7021                aspect_preference: VERTICAL;
7022             }
7023          }
7024          part { name: "elm.text";
7025             type: TEXTBLOCK;
7026             //effect: SHADOW;
7027             mouse_events:  0;
7028             scale: 1;
7029             description { state: "default" 0.0;
7030                visible: 0;
7031                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
7032                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
7033                align: 0.5 0.5;
7034                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
7035                color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
7036                text {
7037                   style: "btn_multiline_style";
7038                   min:  0 0;
7039                   max: 0 1;
7040                }
7041             }
7042             description { state: "visible" 0.0;
7043                inherit: "default" 0.0;
7044                visible: 1;
7045                min: 80 0;
7046             }
7047             description { state: "clicked" 0.0;
7048                inherit: "default" 0.0;
7049                visible: 1;
7050                min: 0 0;
7051                color: BUTTON_TEXT_STYLE2_PRESSED_COLOR_INC;
7052                color2: BUTTON_TEXT_STYLE2_PRESSED_SHAWDOW_COLOR_INC;
7053             }
7054             description { state: "disabled" 0.0;
7055                inherit: "default" 0.0;
7056                color: 0 0 0 128;
7057                color3: 0 0 0 0;
7058             }
7059             description { state: "disabled_visible" 0.0;
7060                inherit: "default" 0.0;
7061                color: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_COLOR_INC;
7062                color2: BUTTON_NAVIBAR_FUNCTION_BUTTON_TEXT_DISABLED_SHADOW_COLOR_INC;
7063                color3: 0 0 0 0;
7064                visible: 1;
7065             }
7066             description { state: "focused" 0.0;
7067                inherit: "default" 0.0;
7068                visible: 1;
7069                min: 0 0;
7070                color: BUTTON_TEXT_STYLE2_DISABLED_COLOR_INC;
7071                color2: BUTTON_TEXT_STYLE2_DISABLED_SHAWDOW_COLOR_INC;
7072             }
7073          }
7074          part { name: "over2";
7075             type: RECT;
7076             mouse_events: 1;
7077             repeat_events: 1;
7078             ignore_flags: ON_HOLD;
7079             description { state: "default" 0.0;
7080                color: 0 0 0 0;
7081             }
7082             description { state: "disabled" 0.0;
7083                inherit:  "default" 0.0;
7084                visible: 0;
7085             }
7086          }
7087          part { name: "over3";
7088             type: RECT;
7089             mouse_events: 1;
7090             repeat_events: 1;
7091             description { state: "default" 0.0;
7092                color: 0 0 0 0;
7093             }
7094             description { state: "clicked" 0.0;
7095                inherit:  "default" 0.0;
7096                visible: 1;
7097             }
7098          }
7099          part { name: "disabler";
7100             type: RECT;
7101             description { state: "default" 0.0;
7102                color: 0 0 0 0;
7103                visible: 0;
7104             }
7105             description { state: "disabled" 0.0;
7106                inherit: "default" 0.0;
7107                visible: 1;
7108             }
7109          }
7110       }
7111       programs {
7112          program { name: "button_click";
7113             signal: "mouse,down,1";
7114             source: "over2";
7115             action: SIGNAL_EMIT "elm,action,press" "";
7116             after: "button_click_anim";
7117          }
7118          program { name: "button_click_anim";
7119             action: STATE_SET "clicked" 0.0;
7120             target: "button_image";
7121             after: "text_clicked";
7122          }
7123          program { name: "text_clicked";
7124             script {
7125                new st[31];
7126                new Float:vl;
7127                get_state(PART:"elm.text", st, 30, vl);
7128                if (!strcmp(st, "visible"))
7129                   set_state(PART:"elm.text", "clicked", 0.0);
7130             }
7131          }
7132          program { name: "button_unpress";
7133             action: SIGNAL_EMIT "elm,action,unpress" "";
7134          }
7135          program { name: "button_mouseout_clicked";
7136             signal: "mouse,up,1";
7137             source: "over3";
7138             script {
7139                new st[31];
7140                new Float:vl;
7141                get_state(PART:"elm.swallow.content", st, 30, vl);
7142                if (strcmp(st, "icononly"))
7143                {
7144                   emit("elm,action,default,text,set", "");
7145                   set_state(PART:"elm.text", "visible", 0.0);
7146                }
7147                if(get_int(button_state) !=1)
7148                   set_state(PART:"button_image", "default", 0.0);
7149             }
7150             after: button_unpress;
7151          }
7152          program { name: "button_click2";
7153             signal: "mouse,down,1";
7154             source: "over3";
7155             action: STATE_SET "clicked" 0.0;
7156             target: "over3";
7157          }
7158          program { name: "button_unclick2";
7159             signal: "mouse,clicked,1";
7160             source: "over3";
7161             action: STATE_SET "default" 0.0;
7162             target: "over3";
7163          }
7164          program { name: "button_unclick3";
7165             signal: "mouse,clicked,1";
7166             source: "over2";
7167             action: SIGNAL_EMIT "elm,action,click" "";
7168          }
7169          program { name: "text_show";
7170             signal: "elm,state,text,visible";
7171             source: "elm";
7172             script {
7173                new st[31];
7174                new Float:vl;
7175                get_state(PART:"elm.swallow.content", st, 30, vl);
7176                if (!strcmp(st, "icononly"))
7177                {
7178                   set_state(PART:"elm.swallow.content", "visible", 0.0);
7179                   set_state(PART:"padding_icon_text", "visible", 0.0);
7180                }
7181                set_state(PART:"elm.text", "visible", 0.0);
7182             }
7183          }
7184          program { name: "text_hide";
7185             signal: "elm,state,text,hidden";
7186             source: "elm";
7187             script {
7188                new st[31];
7189                new Float:vl;
7190                get_state(PART:"elm.swallow.content", st, 30, vl);
7191                if (!strcmp(st, "visible"))
7192                {
7193                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
7194                   set_state(PART:"padding_icon_text", "icononly", 0.0);
7195                }
7196                set_state(PART:"elm.text", "default", 0.0);
7197             }
7198          }
7199          program { name: "icon_show";
7200             signal: "elm,state,icon,visible";
7201             source: "elm";
7202             script {
7203                new st[31];
7204                new Float:vl;
7205                get_state(PART:"elm.text", st, 30, vl);
7206                if (!strcmp(st, "visible"))
7207                {
7208                   set_state(PART:"elm.swallow.content", "visible", 0.0);
7209                   set_state(PART:"padding_icon_text", "visible", 0.0);
7210                }
7211                else
7212                {
7213                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
7214                   set_state(PART:"padding_icon_text", "icononly", 0.0);
7215                }
7216             }
7217          }
7218          program { name: "icon_hide";
7219             signal: "elm,state,icon,hidden";
7220             source: "elm";
7221             action:  STATE_SET "default" 0.0;
7222             target: "elm.swallow.content";
7223          }
7224          program { name: "disable";
7225             signal: "elm,state,disabled";
7226             source: "elm";
7227             action: STATE_SET "disabled" 0.0;
7228             target: "button_image";
7229             target: "over2";
7230             target: "disabler";
7231             after: "disable_text";
7232          }
7233          program { name: "disable_text";
7234             script {
7235                new st[31];
7236                new Float:vl;
7237                get_state(PART:"elm.text", st, 30, vl);
7238                if (!strcmp(st, "visible"))
7239                   set_state(PART:"elm.text", "disabled_visible", 0.0);
7240                else
7241                   set_state(PART:"elm.text", "disabled", 0.0);
7242                set_int(button_state, 1);
7243             }
7244          }
7245          program { name: "enable";
7246             signal: "elm,state,enabled";
7247             source: "elm";
7248             action: STATE_SET "default" 0.0;
7249             target: "button_image";
7250             target: "over2";
7251             target: "disabler";
7252             after: "enable_text";
7253          }
7254          program { name: "enable_text";
7255             script {
7256                new st[31];
7257                new Float:vl;
7258                get_state(PART:"elm.text", st, 30, vl);
7259                if (!strcmp(st, "disabled_visible"))
7260                   set_state(PART:"elm.text", "visible", 0.0);
7261                else
7262                   set_state(PART:"elm.text", "default", 0.0);
7263                set_int(button_state, 0);
7264             }
7265          }
7266          program { name: "focused";
7267             //signal: "elm,action,focus";
7268             //source: "elm";
7269             action: STATE_SET "focused" 0.0;
7270             target: "button_image";
7271             target: "elm.text";
7272          }
7273          program { name: "unfocused";
7274             //signal: "elm,action,unfocus";
7275             //source: "elm";
7276             action: STATE_SET "default" 0.0;
7277             target: "button_image";
7278             after: "unfocus_text";
7279          }
7280          program { name: "unfocus_text";
7281             action: STATE_SET "visible" 0.0;
7282             target: "elm.text";
7283          }
7284       }
7285    }
7286
7287 ///////////////////////////////////////////////////////////////////////////////////////
7288    group { name: "elm/button/base/icon_only/default";
7289       images {
7290          image: "00_button_03_normal.png" COMP;
7291          image: "00_button_03_press.png" COMP;
7292          image: "00_button_03_focus.png" COMP;
7293          image: "00_button_03_dim.png" COMP;
7294       }
7295       script {
7296          public button_state = 0; //0:enabled, 1: disabled
7297       }
7298       parts {
7299          part { name: "button_image";
7300             mouse_events: 1;
7301             scale: 1;
7302             description { state: "default" 0.0;
7303                min: 50 50;
7304                max: 50 50;
7305                image {
7306                   normal: "00_button_03_normal.png";
7307                   border: 7 7 7 7;
7308                   border_scale: 1;
7309                }
7310             }
7311             description { state: "clicked" 0.0;
7312                inherit: "default" 0.0;
7313                image.normal: "00_button_03_press.png";
7314             }
7315             description { state: "disabled" 0.0;
7316                inherit:  "default" 0.0;
7317                image.normal: "00_button_03_dim.png";
7318             }
7319             description { state: "focused" 0.0;
7320                inherit: "default" 0.0;
7321                image.normal: "00_button_03_focus.png";
7322             }
7323          }
7324          part {
7325             name: "padding_left";
7326             type: RECT;
7327             scale: 1;
7328             mouse_events: 0;
7329             description { state: "default" 0.0;
7330                align: 0.0 0.0;
7331                rel1.relative: 0.0 0.0;
7332                rel2.relative: 0.0 1.0;
7333                min: 5 5;
7334                fixed: 1 0;
7335                color: 0 0 0 0;
7336             }
7337          }
7338          part {
7339             name: "padding_right";
7340             type: RECT;
7341             scale: 1;
7342             mouse_events: 0;
7343             description { state: "default" 0.0;
7344                align: 1.0 0.0;
7345                rel1.relative: 1.0 0.0;
7346                rel2.relative: 1.0 1.0;
7347                min: 5 5;
7348                fixed: 1 0;
7349                color: 0 0 0 0;
7350             }
7351          }
7352          part {
7353             name: "padding_top";
7354             type: RECT;
7355             scale: 1;
7356             mouse_events: 0;
7357             description { state: "default" 0.0;
7358                align: 0.0 0.0;
7359                rel1.relative: 0.0 0.0;
7360                rel2.relative: 1.0 0.0;
7361                min: 5 5;
7362                fixed: 0 1;
7363                color: 0 0 0 0;
7364             }
7365          }
7366          part {
7367             name: "padding_bottom";
7368             type: RECT;
7369             scale: 1;
7370             mouse_events: 0;
7371             description { state: "default" 0.0;
7372                align: 1.0 1.0;
7373                rel1.relative: 0.0 1.0;
7374                rel2.relative: 1.0 1.0;
7375                min: 5 5;
7376                fixed: 0 1;
7377                color: 0 0 0 0;
7378             }
7379          }
7380          part { name: "elm.swallow.content";
7381             type: SWALLOW;
7382             mouse_events: 0;
7383             scale: 1;
7384             description { state: "default" 0.0;
7385                max: 40 40;
7386                visible: 0;
7387                aspect: 1.0 1.0;
7388                aspect_preference: VERTICAL;
7389                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7390                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
7391                align: 0.5 0.5;
7392             }
7393             description { state: "visible" 0.0;
7394                inherit: "default" 0.0;
7395                visible: 1;
7396             }
7397          }
7398          part { name: "over1";
7399             mouse_events: 1;
7400             repeat_events: 1;
7401             ignore_flags: ON_HOLD;
7402             description { state: "default" 0.0;
7403             rel1.to: "button_image";
7404             rel2.to: "button_image";
7405             }
7406             description { state: "disabled" 0.0;
7407                inherit:  "default" 0.0;
7408                visible: 0;
7409             }
7410          }
7411          part { name: "over2";
7412             mouse_events: 1;
7413             repeat_events: 1;
7414             description { state: "default" 0.0;
7415             rel1.to: "button_image";
7416             rel2.to: "button_image";
7417                color: 0 0 0 0;
7418             }
7419             description { state: "clicked" 0.0;
7420                inherit:  "default" 0.0;
7421                visible: 1;
7422                color: 0 0 0 0;
7423             }
7424          }
7425          part { name: "disabler";
7426             type: RECT;
7427             description { state: "default" 0.0;
7428                rel1.to: "button_image";
7429                rel2.to: "button_image";
7430                color: 0 0 0 0;
7431                visible: 0;
7432             }
7433             description { state: "disabled" 0.0;
7434                inherit: "default" 0.0;
7435                visible: 1;
7436             }
7437          }
7438       }
7439       programs {
7440          program { name: "button_click";
7441             signal: "mouse,down,1";
7442             source: "over1";
7443             action: SIGNAL_EMIT "elm,action,press" "";
7444             after: "button_click_anim";
7445          }
7446          program { name: "button_click_anim";
7447             action: STATE_SET "clicked" 0.0;
7448             target: "button_image";
7449          }
7450          program { name: "button_unclick";
7451             signal: "mouse,up,1";
7452             source: "over2";
7453             action: SIGNAL_EMIT "elm,action,unpress" "";
7454             after: "button_unclick_anim";
7455          }
7456          program { name: "button_unclick_anim";
7457             action: STATE_SET "default" 0.0;
7458             target: "button_image";
7459          }
7460          program { name: "button_click2";
7461             signal: "mouse,down,1";
7462             source: "over2";
7463             action: STATE_SET "clicked" 0.0;
7464             target: "over2";
7465          }
7466          program { name: "button_unclick2";
7467             signal: "mouse,clicked,1";
7468             source: "over1";
7469             action: STATE_SET "default" 0.0;
7470             target: "over1";
7471             after: "button_unclick3";
7472          }
7473          program { name: "button_unclick3";
7474             action: SIGNAL_EMIT "elm,action,click" "";
7475          }
7476          program { name: "disable";
7477             signal: "elm,state,disabled";
7478             source: "elm";
7479             action: STATE_SET "disabled" 0.0;
7480             target: "button_image";
7481             target: "over1";
7482             target: "disabler";
7483             after : "state_set_disable";
7484          }
7485          program { name: "state_set_disable";
7486             script {
7487                set_int(button_state, 1);
7488             }
7489          }
7490          program { name: "enable";
7491             signal: "elm,state,enabled";
7492             source: "elm";
7493             action: STATE_SET "default" 0.0;
7494             target: "button_image";
7495             target: "over1";
7496             target: "disabler";
7497             after : "state_set_enable";
7498          }
7499          program { name: "state_set_enable";
7500             script {
7501                set_int(button_state, 0);
7502             }
7503          }
7504          program { name: "icon_show";
7505             signal: "elm,state,icon,visible";
7506             source: "elm";
7507             action:  STATE_SET "visible" 0.0;
7508             target: "elm.swallow.content";
7509          }
7510          program { name: "icon_hide";
7511             signal: "elm,state,icon,hidden";
7512             source: "elm";
7513             action:  STATE_SET "default" 0.0;
7514             target: "elm.swallow.content";
7515          }
7516          program { name: "focused";
7517             //signal: "elm,action,focus";
7518             //source: "elm";
7519             action: STATE_SET "focused" 0.0;
7520             target: "button_image";
7521          }
7522          program { name: "unfocused";
7523             //signal: "elm,action,unfocus";
7524             //source: "elm";
7525             action: STATE_SET "default" 0.0;
7526             target: "button_image";
7527          }
7528       }
7529    }
7530
7531 ///////////////////////////////////////////////////////////////////////////////////////
7532    group { name: "elm/button/base/dark";
7533       alias: "elm/button/base/sound_dark";
7534       alias: "elm/button/base/sound_haptic_multiline";
7535       images {
7536          image: "00_button_02_normal.png" COMP;
7537          image: "00_button_02_press.png" COMP;
7538          image: "00_button_02_focus.png" COMP;
7539       }
7540       script {
7541          public button_state = 0; //0:enabled, 1: disabled
7542       }
7543       parts {
7544          part { name: "button_image";
7545             mouse_events: 1;
7546             scale: 1;
7547             description { state: "default" 0.0;
7548                min: 16 50;
7549                image {
7550                   normal: "00_button_02_normal.png";
7551                   border: 7 7 7 7;
7552                   border_scale: 1;
7553                }
7554             }
7555             description { state: "clicked" 0.0;
7556                inherit: "default" 0.0;
7557                image.normal: "00_button_02_press.png";
7558             }
7559             description { state: "disabled" 0.0;
7560                inherit:  "default" 0.0;
7561             }
7562             description { state: "focused" 0.0;
7563                inherit: "default" 0.0;
7564                image.normal: "00_button_02_focus.png";
7565             }
7566          }
7567          part {
7568             name: "padding_left";
7569             type: RECT;
7570             scale: 1;
7571             mouse_events: 0;
7572             description { state: "default" 0.0;
7573                align: 0.0 0.0;
7574                rel1.relative: 0.0 0.0;
7575                rel2.relative: 0.0 1.0;
7576                min: 5 5;
7577                fixed: 1 0;
7578                color: 0 0 0 0;
7579             }
7580          }
7581          part {
7582             name: "padding_right";
7583             type: RECT;
7584             scale: 1;
7585             mouse_events: 0;
7586             description { state: "default" 0.0;
7587                align: 1.0 0.0;
7588                rel1.relative: 1.0 0.0;
7589                rel2.relative: 1.0 1.0;
7590                min: 5 5;
7591                fixed: 1 0;
7592                color: 0 0 0 0;
7593             }
7594          }
7595          part {
7596             name: "padding_top";
7597             type: RECT;
7598             scale: 1;
7599             mouse_events: 0;
7600             description { state: "default" 0.0;
7601                align: 0.0 0.0;
7602                rel1.relative: 0.0 0.0;
7603                rel2.relative: 1.0 0.0;
7604                min: 5 5;
7605                fixed: 0 1;
7606                color: 0 0 0 0;
7607             }
7608          }
7609          part {
7610             name: "padding_bottom";
7611             type: RECT;
7612             scale: 1;
7613             mouse_events: 0;
7614             description { state: "default" 0.0;
7615                align: 1.0 1.0;
7616                rel1.relative: 0.0 1.0;
7617                rel2.relative: 1.0 1.0;
7618                min: 5 5;
7619                fixed: 0 1;
7620                color: 0 0 0 0;
7621             }
7622          }
7623          part {
7624             name: "icon_rect";
7625             type: RECT;
7626             scale: 1;
7627             mouse_events: 0;
7628             description { state: "default" 0.0;
7629                visible: 1;
7630                min: 0 40;
7631                fixed: 1 0;
7632                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
7633                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
7634                align: 0.0 0.5;
7635                color: 0 0 0 0;
7636             }
7637          }
7638          part {
7639             name: "padding_icon_text";
7640             type: RECT;
7641             scale: 1;
7642             mouse_events: 0;
7643             description { state: "default" 0.0; //when only icon or no icon is there
7644                align: 0.0 0.0;
7645                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7646                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7647                fixed: 1 0;
7648                min: 0 0;
7649                color: 0 0 0 0;
7650             }
7651             description { state: "icononly" 0.0;
7652                inherit: "default" 0.0;
7653             }
7654             description { state: "visible" 0.0; //when icon is visible
7655                align: 0.0 0.0;
7656                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
7657                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
7658                fixed: 1 0;
7659                min: 5 0;
7660                color: 0 0 0 0;
7661             }
7662          }
7663          part { name: "elm.swallow.content";
7664             type: SWALLOW;
7665             scale: 1;
7666             description { state: "default" 0.0;
7667                visible: 0;
7668                align: 0.0 0.5;
7669                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7670                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
7671                fixed: 1 0;
7672             }
7673             description { state: "visible" 0.0;
7674                fixed: 1 0;
7675                visible: 1;
7676                align: 0.0 0.5;
7677                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7678                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
7679                aspect: 1.0 1.0;
7680                aspect_preference: VERTICAL;
7681             }
7682             description { state: "icononly" 0.0;;
7683                visible: 1;
7684                min: 40 40;
7685                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
7686                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
7687                align: 0.5 0.5;
7688                aspect: 1.0 1.0;
7689                aspect_preference: VERTICAL;
7690             }
7691          }
7692          part { name: "elm.text";
7693             type: TEXT;
7694             //effect: SHADOW;
7695             mouse_events:  0;
7696             scale: 1;
7697             description { state: "default" 0.0;
7698                visible: 0;
7699                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
7700                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
7701                align: 0.5 0.5;
7702                color: 255 255 255 255;
7703                color2: 0 0 0 0;
7704                text {
7705                   font: "SLP:style=Medium";
7706                   size: 24;
7707                   min:  0 0;
7708                   align: 0.5 0.5;
7709                   max: 1 0;
7710                }
7711             }
7712             description { state: "visible" 0.0;
7713                inherit: "default" 0.0;
7714                visible: 1;
7715                min: 90 40;
7716             }
7717             description { state: "clicked" 0.0;
7718                inherit: "default" 0.0;
7719                visible: 1;
7720                min: 0 0;
7721                color: 255 255 255 255;
7722                color2: 0 0 0 102;
7723             }
7724             description { state: "disabled" 0.0;
7725                inherit: "default" 0.0;
7726                color: 0 0 0 128;
7727                color3: 0 0 0 0;
7728             }
7729             description { state: "disabled_visible" 0.0;
7730                inherit: "default" 0.0;
7731                color: 0 0 0 128;
7732                color3: 0 0 0 0;
7733                visible: 1;
7734             }
7735             description { state: "focused" 0.0;
7736                inherit: "default" 0.0;
7737                visible: 1;
7738                min: 0 0;
7739                color: 255 255 255 255;
7740                color2: 0 0 0 102;
7741             }
7742          }
7743          part { name: "over2";
7744             type: RECT;
7745             mouse_events: 1;
7746             repeat_events: 1;
7747             ignore_flags: ON_HOLD;
7748             description { state: "default" 0.0;
7749                color: 0 0 0 0;
7750             }
7751             description { state: "disabled" 0.0;
7752                inherit:  "default" 0.0;
7753                visible: 0;
7754             }
7755          }
7756          part { name: "over3";
7757             type: RECT;
7758             mouse_events: 1;
7759             repeat_events: 1;
7760             description { state: "default" 0.0;
7761                color: 0 0 0 0;
7762             }
7763             description { state: "clicked" 0.0;
7764                inherit:  "default" 0.0;
7765                visible: 1;
7766             }
7767          }
7768          part { name: "disabler";
7769             type: RECT;
7770             description { state: "default" 0.0;
7771                color: 0 0 0 0;
7772                visible: 0;
7773             }
7774             description { state: "disabled" 0.0;
7775                inherit: "default" 0.0;
7776                visible: 1;
7777             }
7778          }
7779       }
7780       programs {
7781          program { name: "button_click";
7782             signal: "mouse,down,1";
7783             source: "over2";
7784             action: SIGNAL_EMIT "elm,action,press" "";
7785             after: "button_click_anim";
7786          }
7787          program { name: "button_click_anim";
7788             action: STATE_SET "clicked" 0.0;
7789             target: "button_image";
7790             after: "text_clicked";
7791          }
7792          program { name: "text_clicked";
7793             script {
7794                new st[31];
7795                new Float:vl;
7796                get_state(PART:"elm.text", st, 30, vl);
7797                if (!strcmp(st, "visible"))
7798                   set_state(PART:"elm.text", "clicked", 0.0);
7799             }
7800          }
7801          program { name: "button_unpress";
7802             action: SIGNAL_EMIT "elm,action,unpress" "";
7803          }
7804          program { name: "button_mouseout_clicked";
7805             signal: "mouse,up,1";
7806             source: "over3";
7807             script {
7808                new st[31];
7809                new Float:vl;
7810                get_state(PART:"elm.swallow.content", st, 30, vl);
7811                if (strcmp(st, "icononly"))
7812                {
7813                   emit("elm,action,default,text,set", "");
7814                   set_state(PART:"elm.text", "visible", 0.0);
7815                }
7816                if(get_int(button_state) !=1)
7817                   set_state(PART:"button_image", "default", 0.0);
7818             }
7819             after: button_unpress;
7820          }
7821          program { name: "button_click2";
7822             signal: "mouse,down,1";
7823             source: "over3";
7824             action: STATE_SET "clicked" 0.0;
7825             target: "over3";
7826          }
7827          program { name: "button_unclick2";
7828             signal: "mouse,clicked,1";
7829             source: "over3";
7830             action: STATE_SET "default" 0.0;
7831             target: "over3";
7832          }
7833          program { name: "button_unclick3";
7834             signal: "mouse,clicked,1";
7835             source: "over2";
7836             action: SIGNAL_EMIT "elm,action,click" "";
7837          }
7838          program { name: "text_show";
7839             signal: "elm,state,text,visible";
7840             source: "elm";
7841             script {
7842                new st[31];
7843                new Float:vl;
7844                get_state(PART:"elm.swallow.content", st, 30, vl);
7845                if (!strcmp(st, "icononly"))
7846                {
7847                   set_state(PART:"elm.swallow.content", "visible", 0.0);
7848                   set_state(PART:"padding_icon_text", "visible", 0.0);
7849                }
7850                set_state(PART:"elm.text", "visible", 0.0);
7851             }
7852          }
7853          program { name: "text_hide";
7854             signal: "elm,state,text,hidden";
7855             source: "elm";
7856             script {
7857                new st[31];
7858                new Float:vl;
7859                get_state(PART:"elm.swallow.content", st, 30, vl);
7860                if (!strcmp(st, "visible"))
7861                {
7862                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
7863                   set_state(PART:"padding_icon_text", "icononly", 0.0);
7864                }
7865                set_state(PART:"elm.text", "default", 0.0);
7866             }
7867          }
7868          program { name: "icon_show";
7869             signal: "elm,state,icon,visible";
7870             source: "elm";
7871             script {
7872                new st[31];
7873                new Float:vl;
7874                get_state(PART:"elm.text", st, 30, vl);
7875                if (!strcmp(st, "visible"))
7876                {
7877                   set_state(PART:"elm.swallow.content", "visible", 0.0);
7878                   set_state(PART:"padding_icon_text", "visible", 0.0);
7879                }
7880                else
7881                {
7882                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
7883                   set_state(PART:"padding_icon_text", "icononly", 0.0);
7884                }
7885             }
7886          }
7887          program { name: "icon_hide";
7888             signal: "elm,state,icon,hidden";
7889             source: "elm";
7890             action:  STATE_SET "default" 0.0;
7891             target: "elm.swallow.content";
7892          }
7893          program { name: "disable";
7894             signal: "elm,state,disabled";
7895             source: "elm";
7896             action: STATE_SET "disabled" 0.0;
7897             target: "button_image";
7898             target: "over2";
7899             target: "disabler";
7900             after: "disable_text";
7901          }
7902          program { name: "disable_text";
7903             script {
7904                new st[31];
7905                new Float:vl;
7906                get_state(PART:"elm.text", st, 30, vl);
7907                if (!strcmp(st, "visible"))
7908                   set_state(PART:"elm.text", "disabled_visible", 0.0);
7909                else
7910                   set_state(PART:"elm.text", "disabled", 0.0);
7911                set_int(button_state, 1);
7912             }
7913          }
7914          program { name: "enable";
7915             signal: "elm,state,enabled";
7916             source: "elm";
7917             action: STATE_SET "default" 0.0;
7918             target: "button_image";
7919             target: "over2";
7920             target: "disabler";
7921             after: "enable_text";
7922          }
7923          program { name: "enable_text";
7924             script {
7925                new st[31];
7926                new Float:vl;
7927                get_state(PART:"elm.text", st, 30, vl);
7928                if (!strcmp(st, "disabled_visible"))
7929                   set_state(PART:"elm.text", "visible", 0.0);
7930                else
7931                   set_state(PART:"elm.text", "default", 0.0);
7932                set_int(button_state, 0);
7933             }
7934          }
7935          program { name: "focused";
7936             //signal: "elm,action,focus";
7937             //source: "elm";
7938             action: STATE_SET "focused" 0.0;
7939             target: "button_image";
7940             target: "elm.text";
7941          }
7942          program { name: "unfocused";
7943             //signal: "elm,action,unfocus";
7944             //source: "elm";
7945             action: STATE_SET "default" 0.0;
7946             target: "button_image";
7947             after: "unfocus_text";
7948          }
7949          program { name: "unfocus_text";
7950             action: STATE_SET "visible" 0.0;
7951             target: "elm.text";
7952          }
7953       }
7954    }
7955
7956 ///////////////////////////////////////////////////////////////////////////////////////
7957    group { name: "elm/button/base/default";
7958       images {
7959          image: "00_button_03_normal.png" COMP;
7960          image: "00_button_03_press.png" COMP;
7961          image: "00_button_03_focus.png" COMP;
7962       }
7963       script {
7964          public button_state = 0; //0:enabled, 1: disabled
7965       }
7966       parts {
7967          part { name: "button_image";
7968             mouse_events: 1;
7969             scale: 1;
7970             description { state: "default" 0.0;
7971                min: 16 50;
7972                image {
7973                   normal: "00_button_03_normal.png";
7974                   border: 7 7 7 7;
7975                   border_scale: 1;
7976                }
7977             }
7978             description { state: "clicked" 0.0;
7979                inherit: "default" 0.0;
7980                image.normal: "00_button_03_press.png";
7981             }
7982             description { state: "disabled" 0.0;
7983                inherit:  "default" 0.0;
7984             }
7985             description { state: "focused" 0.0;
7986                inherit: "default" 0.0;
7987                image.normal: "00_button_03_focus.png";
7988             }
7989          }
7990          part {
7991             name: "padding_left";
7992             type: RECT;
7993             scale: 1;
7994             mouse_events: 0;
7995             description { state: "default" 0.0;
7996                align: 0.0 0.0;
7997                rel1.relative: 0.0 0.0;
7998                rel2.relative: 0.0 1.0;
7999                min: 5 5;
8000                fixed: 1 0;
8001                color: 0 0 0 0;
8002             }
8003          }
8004          part {
8005             name: "padding_right";
8006             type: RECT;
8007             scale: 1;
8008             mouse_events: 0;
8009             description { state: "default" 0.0;
8010                align: 1.0 0.0;
8011                rel1.relative: 1.0 0.0;
8012                rel2.relative: 1.0 1.0;
8013                min: 5 5;
8014                fixed: 1 0;
8015                color: 0 0 0 0;
8016             }
8017          }
8018          part {
8019             name: "padding_top";
8020             type: RECT;
8021             scale: 1;
8022             mouse_events: 0;
8023             description { state: "default" 0.0;
8024                align: 0.0 0.0;
8025                rel1.relative: 0.0 0.0;
8026                rel2.relative: 1.0 0.0;
8027                min: 5 5;
8028                fixed: 0 1;
8029                color: 0 0 0 0;
8030             }
8031          }
8032          part {
8033             name: "padding_bottom";
8034             type: RECT;
8035             scale: 1;
8036             mouse_events: 0;
8037             description { state: "default" 0.0;
8038                align: 1.0 1.0;
8039                rel1.relative: 0.0 1.0;
8040                rel2.relative: 1.0 1.0;
8041                min: 5 5;
8042                fixed: 0 1;
8043                color: 0 0 0 0;
8044             }
8045          }
8046          part {
8047             name: "icon_rect";
8048             type: RECT;
8049             scale: 1;
8050             mouse_events: 0;
8051             description { state: "default" 0.0;
8052                visible: 1;
8053                min: 0 40;
8054                fixed: 1 0;
8055                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
8056                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
8057                align: 0.0 0.5;
8058                color: 0 0 0 0;
8059             }
8060          }
8061          part {
8062             name: "padding_icon_text";
8063             type: RECT;
8064             scale: 1;
8065             mouse_events: 0;
8066             description { state: "default" 0.0; //when only icon or no icon is there
8067                align: 0.0 0.0;
8068                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8069                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8070                fixed: 1 0;
8071                min: 0 0;
8072                color: 0 0 0 0;
8073             }
8074             description { state: "icononly" 0.0;
8075                inherit: "default" 0.0;
8076             }
8077             description { state: "visible" 0.0; //when icon is visible
8078                align: 0.0 0.0;
8079                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8080                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8081                fixed: 1 0;
8082                min: 5 0;
8083                color: 0 0 0 0;
8084             }
8085          }
8086          part { name: "elm.swallow.content";
8087             type: SWALLOW;
8088             scale: 1;
8089             description { state: "default" 0.0;
8090                visible: 0;
8091                align: 0.0 0.5;
8092                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8093                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8094                fixed: 1 0;
8095             }
8096             description { state: "visible" 0.0;
8097                fixed: 1 0;
8098                visible: 1;
8099                align: 0.0 0.5;
8100                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8101                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8102                aspect: 1.0 1.0;
8103                aspect_preference: VERTICAL;
8104             }
8105             description { state: "icononly" 0.0;;
8106                visible: 1;
8107                min: 40 40;
8108                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8109                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
8110                align: 0.5 0.5;
8111                aspect: 1.0 1.0;
8112                aspect_preference: VERTICAL;
8113             }
8114          }
8115          part { name: "elm.text";
8116             type: TEXT;
8117             //effect: SHADOW;
8118             mouse_events:  0;
8119             scale: 1;
8120             description { state: "default" 0.0;
8121                visible: 0;
8122                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
8123                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
8124                align: 0.5 0.5;
8125                color: 90 73 40 255;
8126                color2: 255 255 255 255;
8127                text {
8128                   font: "SLP:style=Medium";
8129                   size: 24;
8130                   min:  0 0;
8131                   align: 0.5 0.5;
8132                   max: 1 0;
8133                }
8134             }
8135             description { state: "visible" 0.0;
8136                inherit: "default" 0.0;
8137                visible: 1;
8138                min: 90 40;
8139             }
8140             description { state: "clicked" 0.0;
8141                inherit: "default" 0.0;
8142                visible: 1;
8143                min: 0 0;
8144                color: 255 255 255 255;
8145                color2: 0 0 0 102;
8146             }
8147             description { state: "disabled" 0.0;
8148                inherit: "default" 0.0;
8149                color: 0 0 0 128;
8150                color3: 0 0 0 0;
8151             }
8152             description { state: "disabled_visible" 0.0;
8153                inherit: "default" 0.0;
8154                color: 0 0 0 128;
8155                color3: 0 0 0 0;
8156                visible: 1;
8157             }
8158             description { state: "focused" 0.0;
8159                inherit: "default" 0.0;
8160                visible: 1;
8161                min: 0 0;
8162                color: 255 255 255 255;
8163                color2: 0 0 0 102;
8164             }
8165          }
8166          part { name: "over2";
8167             type: RECT;
8168             mouse_events: 1;
8169             repeat_events: 1;
8170             ignore_flags: ON_HOLD;
8171             description { state: "default" 0.0;
8172                color: 0 0 0 0;
8173             }
8174             description { state: "disabled" 0.0;
8175                inherit:  "default" 0.0;
8176                visible: 0;
8177             }
8178          }
8179          part { name: "over3";
8180             type: RECT;
8181             mouse_events: 1;
8182             repeat_events: 1;
8183             description { state: "default" 0.0;
8184                color: 0 0 0 0;
8185             }
8186             description { state: "clicked" 0.0;
8187                inherit:  "default" 0.0;
8188                visible: 1;
8189             }
8190          }
8191          part { name: "disabler";
8192             type: RECT;
8193             description { state: "default" 0.0;
8194                color: 0 0 0 0;
8195                visible: 0;
8196             }
8197             description { state: "disabled" 0.0;
8198                inherit: "default" 0.0;
8199                visible: 1;
8200             }
8201          }
8202       }
8203       programs {
8204          program { name: "button_click";
8205             signal: "mouse,down,1";
8206             source: "over2";
8207             action: SIGNAL_EMIT "elm,action,press" "";
8208             after: "button_click_anim";
8209          }
8210          program { name: "button_click_anim";
8211             action: STATE_SET "clicked" 0.0;
8212             target: "button_image";
8213             after: "text_clicked";
8214          }
8215          program { name: "text_clicked";
8216             script {
8217                new st[31];
8218                new Float:vl;
8219                get_state(PART:"elm.text", st, 30, vl);
8220                if (!strcmp(st, "visible"))
8221                   set_state(PART:"elm.text", "clicked", 0.0);
8222             }
8223          }
8224          program { name: "button_unpress";
8225             action: SIGNAL_EMIT "elm,action,unpress" "";
8226          }
8227          program { name: "button_mouseout_clicked";
8228             signal: "mouse,up,1";
8229             source: "over3";
8230             script {
8231                new st[31];
8232                new Float:vl;
8233                get_state(PART:"elm.swallow.content", st, 30, vl);
8234                if (strcmp(st, "icononly"))
8235                {
8236                   emit("elm,action,default,text,set", "");
8237                   set_state(PART:"elm.text", "visible", 0.0);
8238                }
8239                if(get_int(button_state) !=1)
8240                   set_state(PART:"button_image", "default", 0.0);
8241             }
8242             after: button_unpress;
8243          }
8244          program { name: "button_click2";
8245             signal: "mouse,down,1";
8246             source: "over3";
8247             action: STATE_SET "clicked" 0.0;
8248             target: "over3";
8249          }
8250          program { name: "button_unclick2";
8251             signal: "mouse,clicked,1";
8252             source: "over3";
8253             action: STATE_SET "default" 0.0;
8254             target: "over3";
8255          }
8256          program { name: "button_unclick3";
8257             signal: "mouse,clicked,1";
8258             source: "over2";
8259             action: SIGNAL_EMIT "elm,action,click" "";
8260          }
8261          program { name: "text_show";
8262             signal: "elm,state,text,visible";
8263             source: "elm";
8264             script {
8265                new st[31];
8266                new Float:vl;
8267                get_state(PART:"elm.swallow.content", st, 30, vl);
8268                if (!strcmp(st, "icononly"))
8269                {
8270                   set_state(PART:"elm.swallow.content", "visible", 0.0);
8271                   set_state(PART:"padding_icon_text", "visible", 0.0);
8272                }
8273                set_state(PART:"elm.text", "visible", 0.0);
8274             }
8275          }
8276          program { name: "text_hide";
8277             signal: "elm,state,text,hidden";
8278             source: "elm";
8279             script {
8280                new st[31];
8281                new Float:vl;
8282                get_state(PART:"elm.swallow.content", st, 30, vl);
8283                if (!strcmp(st, "visible"))
8284                {
8285                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
8286                   set_state(PART:"padding_icon_text", "icononly", 0.0);
8287                }
8288                set_state(PART:"elm.text", "default", 0.0);
8289             }
8290          }
8291          program { name: "icon_show";
8292             signal: "elm,state,icon,visible";
8293             source: "elm";
8294             script {
8295                new st[31];
8296                new Float:vl;
8297                get_state(PART:"elm.text", st, 30, vl);
8298                if (!strcmp(st, "visible"))
8299                {
8300                   set_state(PART:"elm.swallow.content", "visible", 0.0);
8301                   set_state(PART:"padding_icon_text", "visible", 0.0);
8302                }
8303                else
8304                {
8305                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
8306                   set_state(PART:"padding_icon_text", "icononly", 0.0);
8307                }
8308             }
8309          }
8310          program { name: "icon_hide";
8311             signal: "elm,state,icon,hidden";
8312             source: "elm";
8313             action:  STATE_SET "default" 0.0;
8314             target: "elm.swallow.content";
8315          }
8316          program { name: "disable";
8317             signal: "elm,state,disabled";
8318             source: "elm";
8319             action: STATE_SET "disabled" 0.0;
8320             target: "button_image";
8321             target: "over2";
8322             target: "disabler";
8323             after: "disable_text";
8324          }
8325          program { name: "disable_text";
8326             script {
8327                new st[31];
8328                new Float:vl;
8329                get_state(PART:"elm.text", st, 30, vl);
8330                if (!strcmp(st, "visible"))
8331                   set_state(PART:"elm.text", "disabled_visible", 0.0);
8332                else
8333                   set_state(PART:"elm.text", "disabled", 0.0);
8334                set_int(button_state, 1);
8335             }
8336          }
8337          program { name: "enable";
8338             signal: "elm,state,enabled";
8339             source: "elm";
8340             action: STATE_SET "default" 0.0;
8341             target: "button_image";
8342             target: "over2";
8343             target: "disabler";
8344             after: "enable_text";
8345          }
8346          program { name: "enable_text";
8347             script {
8348                new st[31];
8349                new Float:vl;
8350                get_state(PART:"elm.text", st, 30, vl);
8351                if (!strcmp(st, "disabled_visible"))
8352                   set_state(PART:"elm.text", "visible", 0.0);
8353                else
8354                   set_state(PART:"elm.text", "default", 0.0);
8355                set_int(button_state, 0);
8356             }
8357          }
8358          program { name: "focused";
8359             //signal: "elm,action,focus";
8360             //source: "elm";
8361             action: STATE_SET "focused" 0.0;
8362             target: "button_image";
8363             target: "elm.text";
8364          }
8365          program { name: "unfocused";
8366             //signal: "elm,action,unfocus";
8367             //source: "elm";
8368             action: STATE_SET "default" 0.0;
8369             target: "button_image";
8370             after: "unfocus_text";
8371          }
8372          program { name: "unfocus_text";
8373             action: STATE_SET "visible" 0.0;
8374             target: "elm.text";
8375          }
8376       }
8377    }
8378
8379 ///////////////////////////////////////////////////////////////////////////////////////
8380    group { name: "elm/button/base/hidden";
8381       images {
8382          image: "00_button_sweep.png" COMP;
8383          image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
8384          //image: "00_button_sweep_dim.png" COMP;
8385       }
8386       script {
8387          public button_state = 0; //0:enabled, 1: disabled
8388       }
8389       parts {
8390          part { name: "button_image";
8391             mouse_events: 1;
8392             scale: 1;
8393             description { state: "default" 0.0;
8394                min: 10 38;
8395                image {
8396                   normal: "00_button_sweep.png";
8397                   border: 4 4 3 3;
8398                   border_scale: 1;
8399                }
8400             }
8401             description { state: "clicked" 0.0;
8402                inherit: "default" 0.0;
8403                image.normal: "00_button_sweep_press.png";
8404             }
8405             description { state: "disabled" 0.0;
8406                inherit:  "default" 0.0;
8407             }
8408             description { state: "focused" 0.0;
8409                inherit: "default" 0.0;
8410                image.normal: "00_button_sweep_press.png";
8411             }
8412          }
8413          part {
8414             name: "padding_left";
8415             type: RECT;
8416             scale: 1;
8417             mouse_events: 0;
8418             description { state: "default" 0.0;
8419                align: 0.0 0.0;
8420                rel1.relative: 0.0 0.0;
8421                rel2.relative: 0.0 1.0;
8422                min: 5 5;
8423                fixed: 1 0;
8424                color: 0 0 0 0;
8425             }
8426          }
8427          part {
8428             name: "padding_right";
8429             type: RECT;
8430             scale: 1;
8431             mouse_events: 0;
8432             description { state: "default" 0.0;
8433                align: 1.0 0.0;
8434                rel1.relative: 1.0 0.0;
8435                rel2.relative: 1.0 1.0;
8436                min: 5 5;
8437                fixed: 1 0;
8438                color: 0 0 0 0;
8439             }
8440          }
8441          part {
8442             name: "padding_top";
8443             type: RECT;
8444             scale: 1;
8445             mouse_events: 0;
8446             description { state: "default" 0.0;
8447                align: 0.0 0.0;
8448                rel1.relative: 0.0 0.0;
8449                rel2.relative: 1.0 0.0;
8450                min: 5 5;
8451                fixed: 0 1;
8452                color: 0 0 0 0;
8453             }
8454          }
8455          part {
8456             name: "padding_bottom";
8457             type: RECT;
8458             scale: 1;
8459             mouse_events: 0;
8460             description { state: "default" 0.0;
8461                align: 1.0 1.0;
8462                rel1.relative: 0.0 1.0;
8463                rel2.relative: 1.0 1.0;
8464                min: 5 5;
8465                fixed: 0 1;
8466                color: 0 0 0 0;
8467             }
8468          }
8469          part {
8470             name: "icon_rect";
8471             type: RECT;
8472             scale: 1;
8473             mouse_events: 0;
8474             description { state: "default" 0.0;
8475                visible: 1;
8476                min: 0 28;
8477                fixed: 1 0;
8478                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
8479                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
8480                align: 0.0 0.5;
8481                color: 0 0 0 0;
8482             }
8483          }
8484          part {
8485             name: "padding_icon_text";
8486             type: RECT;
8487             scale: 1;
8488             mouse_events: 0;
8489             description { state: "default" 0.0; //when only icon or no icon is there
8490                align: 0.0 0.0;
8491                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8492                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8493                fixed: 1 0;
8494                min: 0 0;
8495                color: 0 0 0 0;
8496             }
8497             description { state: "icononly" 0.0;
8498                inherit: "default" 0.0;
8499             }
8500             description { state: "visible" 0.0; //when icon is visible
8501                align: 0.0 0.0;
8502                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8503                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8504                fixed: 1 0;
8505                min: 5 0;
8506                color: 0 0 0 0;
8507             }
8508          }
8509          part { name: "elm.swallow.content";
8510             type: SWALLOW;
8511             scale: 1;
8512             description { state: "default" 0.0;
8513                visible: 0;
8514                align: 0.0 0.5;
8515                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8516                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8517                fixed: 1 0;
8518             }
8519             description { state: "visible" 0.0;
8520                fixed: 1 0;
8521                visible: 1;
8522                align: 0.0 0.5;
8523                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8524                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8525                aspect: 1.0 1.0;
8526                aspect_preference: VERTICAL;
8527             }
8528             description { state: "icononly" 0.0;;
8529                visible: 1;
8530                min: 28 28;
8531                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8532                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
8533                align: 0.5 0.5;
8534                aspect: 1.0 1.0;
8535                aspect_preference: VERTICAL;
8536             }
8537          }
8538          part { name: "elm.text";
8539             type: TEXT;
8540             //effect: SHADOW;
8541             mouse_events:  0;
8542             scale: 1;
8543             description { state: "default" 0.0;
8544                visible: 0;
8545                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
8546                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
8547                align: 0.5 0.5;
8548                color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
8549                color2: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
8550                text {
8551                   font: "SLP:style=Medium";
8552                   size: 24;
8553                   min:  0 0;
8554                   align: 0.5 0.5;
8555                   max: 1 0;
8556                }
8557             }
8558             description { state: "visible" 0.0;
8559                inherit: "default" 0.0;
8560                visible: 1;
8561                min: 90 28;
8562             }
8563             description { state: "clicked" 0.0;
8564                inherit: "default" 0.0;
8565                visible: 1;
8566                min: 0 0;
8567                color: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_COLOR_INC;
8568                color2: BUTTON_HIDDEN_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
8569             }
8570             description { state: "disabled" 0.0;
8571                inherit: "default" 0.0;
8572                color: 0 0 0 128;
8573                color3: 0 0 0 0;
8574             }
8575             description { state: "disabled_visible" 0.0;
8576                inherit: "default" 0.0;
8577                color: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_COLOR_INC;
8578                color2: BUTTON_HIDDEN_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
8579                color3: 0 0 0 0;
8580                visible: 1;
8581             }
8582             description { state: "focused" 0.0;
8583                inherit: "default" 0.0;
8584                visible: 1;
8585                min: 0 0;
8586                color: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_COLOR_INC;
8587                color2: BUTTON_HIDDEN_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
8588             }
8589          }
8590          part { name: "over2";
8591             type: RECT;
8592             mouse_events: 1;
8593             repeat_events: 1;
8594             ignore_flags: ON_HOLD;
8595             description { state: "default" 0.0;
8596                color: 0 0 0 0;
8597             }
8598             description { state: "disabled" 0.0;
8599                inherit:  "default" 0.0;
8600                visible: 0;
8601             }
8602          }
8603          part { name: "over3";
8604             type: RECT;
8605             mouse_events: 1;
8606             repeat_events: 1;
8607             description { state: "default" 0.0;
8608                color: 0 0 0 0;
8609             }
8610             description { state: "clicked" 0.0;
8611                inherit:  "default" 0.0;
8612                visible: 1;
8613             }
8614          }
8615          part { name: "disabler";
8616             type: RECT;
8617             description { state: "default" 0.0;
8618                color: 0 0 0 0;
8619                visible: 0;
8620             }
8621             description { state: "disabled" 0.0;
8622                inherit: "default" 0.0;
8623                visible: 1;
8624             }
8625          }
8626       }
8627       programs {
8628          program { name: "button_click";
8629             signal: "mouse,down,1";
8630             source: "over2";
8631             action: SIGNAL_EMIT "elm,action,press" "";
8632             after: "button_click_anim";
8633          }
8634          program { name: "button_click_anim";
8635             action: STATE_SET "clicked" 0.0;
8636             target: "button_image";
8637             after: "text_clicked";
8638          }
8639          program { name: "text_clicked";
8640             script {
8641                new st[31];
8642                new Float:vl;
8643                get_state(PART:"elm.text", st, 30, vl);
8644                if (!strcmp(st, "visible"))
8645                   set_state(PART:"elm.text", "clicked", 0.0);
8646             }
8647          }
8648          program { name: "button_unpress";
8649             action: SIGNAL_EMIT "elm,action,unpress" "";
8650          }
8651          program { name: "button_mouseout_clicked";
8652             signal: "mouse,up,1";
8653             source: "over3";
8654             script {
8655                new st[31];
8656                new Float:vl;
8657                get_state(PART:"elm.swallow.content", st, 30, vl);
8658                if (strcmp(st, "icononly"))
8659                {
8660                   emit("elm,action,default,text,set", "");
8661                   set_state(PART:"elm.text", "visible", 0.0);
8662                }
8663                if(get_int(button_state) !=1)
8664                   set_state(PART:"button_image", "default", 0.0);
8665             }
8666             after: button_unpress;
8667          }
8668          program { name: "button_click2";
8669             signal: "mouse,down,1";
8670             source: "over3";
8671             action: STATE_SET "clicked" 0.0;
8672             target: "over3";
8673          }
8674          program { name: "button_unclick2";
8675             signal: "mouse,clicked,1";
8676             source: "over3";
8677             action: STATE_SET "default" 0.0;
8678             target: "over3";
8679          }
8680          program { name: "button_unclick3";
8681             signal: "mouse,clicked,1";
8682             source: "over2";
8683             action: SIGNAL_EMIT "elm,action,click" "";
8684          }
8685          program { name: "text_show";
8686             signal: "elm,state,text,visible";
8687             source: "elm";
8688             script {
8689                new st[31];
8690                new Float:vl;
8691                get_state(PART:"elm.swallow.content", st, 30, vl);
8692                if (!strcmp(st, "icononly"))
8693                {
8694                   set_state(PART:"elm.swallow.content", "visible", 0.0);
8695                   set_state(PART:"padding_icon_text", "visible", 0.0);
8696                }
8697                set_state(PART:"elm.text", "visible", 0.0);
8698             }
8699          }
8700          program { name: "text_hide";
8701             signal: "elm,state,text,hidden";
8702             source: "elm";
8703             script {
8704                new st[31];
8705                new Float:vl;
8706                get_state(PART:"elm.swallow.content", st, 30, vl);
8707                if (!strcmp(st, "visible"))
8708                {
8709                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
8710                   set_state(PART:"padding_icon_text", "icononly", 0.0);
8711                }
8712                set_state(PART:"elm.text", "default", 0.0);
8713             }
8714          }
8715          program { name: "icon_show";
8716             signal: "elm,state,icon,visible";
8717             source: "elm";
8718             script {
8719                new st[31];
8720                new Float:vl;
8721                get_state(PART:"elm.text", st, 30, vl);
8722                if (!strcmp(st, "visible"))
8723                {
8724                   set_state(PART:"elm.swallow.content", "visible", 0.0);
8725                   set_state(PART:"padding_icon_text", "visible", 0.0);
8726                }
8727                else
8728                {
8729                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
8730                   set_state(PART:"padding_icon_text", "icononly", 0.0);
8731                }
8732             }
8733          }
8734          program { name: "icon_hide";
8735             signal: "elm,state,icon,hidden";
8736             source: "elm";
8737             action:  STATE_SET "default" 0.0;
8738             target: "elm.swallow.content";
8739          }
8740          program { name: "disable";
8741             signal: "elm,state,disabled";
8742             source: "elm";
8743             action: STATE_SET "disabled" 0.0;
8744             target: "button_image";
8745             target: "over2";
8746             target: "disabler";
8747             after: "disable_text";
8748          }
8749          program { name: "disable_text";
8750             script {
8751                new st[31];
8752                new Float:vl;
8753                get_state(PART:"elm.text", st, 30, vl);
8754                if (!strcmp(st, "visible"))
8755                   set_state(PART:"elm.text", "disabled_visible", 0.0);
8756                else
8757                   set_state(PART:"elm.text", "disabled", 0.0);
8758                set_int(button_state, 1);
8759             }
8760          }
8761          program { name: "enable";
8762             signal: "elm,state,enabled";
8763             source: "elm";
8764             action: STATE_SET "default" 0.0;
8765             target: "button_image";
8766             target: "over2";
8767             target: "disabler";
8768             after: "enable_text";
8769          }
8770          program { name: "enable_text";
8771             script {
8772                new st[31];
8773                new Float:vl;
8774                get_state(PART:"elm.text", st, 30, vl);
8775                if (!strcmp(st, "disabled_visible"))
8776                   set_state(PART:"elm.text", "visible", 0.0);
8777                else
8778                   set_state(PART:"elm.text", "default", 0.0);
8779                set_int(button_state, 0);
8780             }
8781          }
8782          program { name: "focused";
8783             //signal: "elm,action,focus";
8784             //source: "elm";
8785             action: STATE_SET "focused" 0.0;
8786             target: "button_image";
8787             target: "elm.text";
8788          }
8789          program { name: "unfocused";
8790             //signal: "elm,action,unfocus";
8791             //source: "elm";
8792             action: STATE_SET "default" 0.0;
8793             target: "button_image";
8794             after: "unfocus_text";
8795          }
8796          program { name: "unfocus_text";
8797             action: STATE_SET "visible" 0.0;
8798             target: "elm.text";
8799          }
8800       }
8801    }
8802
8803 ///////////////////////////////////////////////////////////////////////////////////////
8804    group { name: "elm/button/base/popup/contact";
8805       images {
8806          image: "00_button_01_normal.png" COMP;
8807          image: "00_button_01_press.png" COMP;
8808          image: "00_button_01_focus.png" COMP;
8809       }
8810       script {
8811          public button_state = 0; //0:enabled, 1: disabled
8812       }
8813       parts {
8814          part { name: "button_image";
8815             mouse_events: 1;
8816             scale: 1;
8817             description { state: "default" 0.0;
8818                min: 16 46;
8819                image {
8820                   normal: "00_button_01_normal.png";
8821                   border: 4 4 4 4;
8822                   border_scale: 1;
8823                }
8824             }
8825             description { state: "clicked" 0.0;
8826                inherit: "default" 0.0;
8827                image.normal: "00_button_01_press.png";
8828             }
8829             description { state: "disabled" 0.0;
8830                inherit:  "default" 0.0;
8831             }
8832             description { state: "focused" 0.0;
8833                inherit: "default" 0.0;
8834             // image.normal: "00_button_01_focus.png";
8835             }
8836          }
8837          part {
8838             name: "padding_left";
8839             type: RECT;
8840             scale: 1;
8841             mouse_events: 0;
8842             description { state: "default" 0.0;
8843                align: 0.0 0.0;
8844                rel1.relative: 0.0 0.0;
8845                rel2.relative: 0.0 1.0;
8846                min: 10 5;
8847                fixed: 1 0;
8848                color: 0 0 0 0;
8849             }
8850          }
8851          part {
8852             name: "padding_right";
8853             type: RECT;
8854             scale: 1;
8855             mouse_events: 0;
8856             description { state: "default" 0.0;
8857                align: 1.0 0.0;
8858                rel1.relative: 1.0 0.0;
8859                rel2.relative: 1.0 1.0;
8860                min: 10 5;
8861                fixed: 1 0;
8862                color: 0 0 0 0;
8863             }
8864          }
8865          part {
8866             name: "padding_top";
8867             type: RECT;
8868             scale: 1;
8869             mouse_events: 0;
8870             description { state: "default" 0.0;
8871                align: 0.0 0.0;
8872                rel1.relative: 0.0 0.0;
8873                rel2.relative: 1.0 0.0;
8874                min: 5 10;
8875                fixed: 0 1;
8876                color: 0 0 0 0;
8877             }
8878          }
8879          part {
8880             name: "padding_bottom";
8881             type: RECT;
8882             scale: 1;
8883             mouse_events: 0;
8884             description { state: "default" 0.0;
8885                align: 1.0 1.0;
8886                rel1.relative: 0.0 1.0;
8887                rel2.relative: 1.0 1.0;
8888                min: 5 10;
8889                fixed: 0 1;
8890                color: 0 0 0 0;
8891             }
8892          }
8893          part {
8894             name: "icon_rect";
8895             type: RECT;
8896             scale: 1;
8897             mouse_events: 0;
8898             description { state: "default" 0.0;
8899                visible: 1;
8900                min: 0 40;
8901                fixed: 1 0;
8902                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
8903                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
8904                align: 0.0 0.5;
8905                color: 0 0 0 0;
8906             }
8907          }
8908          part {
8909             name: "padding_icon_text";
8910             type: RECT;
8911             scale: 1;
8912             mouse_events: 0;
8913             description { state: "default" 0.0; //when only icon or no icon is there
8914                align: 0.0 0.0;
8915                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8916                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8917                fixed: 1 0;
8918                min: 0 0;
8919                color: 0 0 0 0;
8920             }
8921             description { state: "icononly" 0.0;
8922                inherit: "default" 0.0;
8923             }
8924             description { state: "visible" 0.0; //when icon is visible
8925                align: 0.0 0.0;
8926                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
8927                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
8928                fixed: 1 0;
8929                min: 10 0;
8930                color: 0 0 0 0;
8931             }
8932          }
8933          part { name: "elm.swallow.content";
8934             type: SWALLOW;
8935             scale: 1;
8936             description { state: "default" 0.0;
8937                visible: 0;
8938                align: 0.0 0.5;
8939                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8940                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8941                fixed: 1 0;
8942             }
8943             description { state: "visible" 0.0;
8944                fixed: 1 0;
8945                visible: 1;
8946                align: 0.0 0.5;
8947                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8948                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
8949                aspect: 1.0 1.0;
8950                aspect_preference: VERTICAL;
8951             }
8952             description { state: "icononly" 0.0;;
8953                visible: 1;
8954                min: 24 24;
8955                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
8956                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
8957                align: 0.5 0.5;
8958                aspect: 1.0 1.0;
8959                aspect_preference: VERTICAL;
8960             }
8961          }
8962          part { name: "elm.text";
8963             type: TEXT;
8964             //effect: SHADOW;
8965             mouse_events:  0;
8966             scale: 1;
8967             description { state: "default" 0.0;
8968                visible: 0;
8969                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
8970                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
8971                align: 0.0 0.5;
8972                color: 90 73 40 255;
8973                color2: 255 255 255 255;
8974                text {
8975                   font: "SLP:style=Medium";
8976                   size: 20;
8977                   min:  0 0;
8978                   align: 0.5 0.5;
8979                   max: 1 0;
8980                }
8981             }
8982             description { state: "visible" 0.0;
8983                inherit: "default" 0.0;
8984                visible: 1;
8985                min: 90 20;
8986             }
8987             description { state: "clicked" 0.0;
8988                inherit: "default" 0.0;
8989                visible: 1;
8990                min: 0 0;
8991                color: 255 255 255 255;
8992                color2: 0 0 0 102;
8993             }
8994             description { state: "disabled" 0.0;
8995                inherit: "default" 0.0;
8996                color: 0 0 0 128;
8997                color3: 0 0 0 0;
8998             }
8999             description { state: "disabled_visible" 0.0;
9000                inherit: "default" 0.0;
9001                color: 0 0 0 128;
9002                color3: 0 0 0 0;
9003                visible: 1;
9004             }
9005             description { state: "focused" 0.0;
9006                inherit: "default" 0.0;
9007                visible: 1;
9008                min: 0 0;
9009                color: 255 255 255 255;
9010                color2: 0 0 0 102;
9011             }
9012          }
9013          part { name: "over2";
9014             type: RECT;
9015             mouse_events: 1;
9016             repeat_events: 1;
9017             ignore_flags: ON_HOLD;
9018             description { state: "default" 0.0;
9019                color: 0 0 0 0;
9020             }
9021             description { state: "disabled" 0.0;
9022                inherit:  "default" 0.0;
9023                visible: 0;
9024             }
9025          }
9026          part { name: "over3";
9027             type: RECT;
9028             mouse_events: 1;
9029             repeat_events: 1;
9030             description { state: "default" 0.0;
9031                color: 0 0 0 0;
9032             }
9033             description { state: "clicked" 0.0;
9034                inherit:  "default" 0.0;
9035                visible: 1;
9036             }
9037          }
9038          part { name: "disabler";
9039             type: RECT;
9040             description { state: "default" 0.0;
9041                color: 0 0 0 0;
9042                visible: 0;
9043             }
9044             description { state: "disabled" 0.0;
9045                inherit: "default" 0.0;
9046                visible: 1;
9047             }
9048          }
9049       }
9050       programs {
9051          program { name: "button_click";
9052             signal: "mouse,down,1";
9053             source: "over2";
9054             action: SIGNAL_EMIT "elm,action,press" "";
9055             after: "button_click_anim";
9056          }
9057          program { name: "button_click_anim";
9058             action: STATE_SET "clicked" 0.0;
9059             target: "button_image";
9060             after: "text_clicked";
9061          }
9062          program { name: "text_clicked";
9063             script {
9064                new st[31];
9065                new Float:vl;
9066                get_state(PART:"elm.text", st, 30, vl);
9067                if (!strcmp(st, "visible"))
9068                   set_state(PART:"elm.text", "clicked", 0.0);
9069             }
9070          }
9071          program { name: "button_unpress";
9072             action: SIGNAL_EMIT "elm,action,unpress" "";
9073          }
9074          program { name: "button_mouseout_clicked";
9075             signal: "mouse,up,1";
9076             source: "over3";
9077             script {
9078                new st[31];
9079                new Float:vl;
9080                get_state(PART:"elm.swallow.content", st, 30, vl);
9081                if (strcmp(st, "icononly"))
9082                {
9083                   emit("elm,action,default,text,set", "");
9084                   set_state(PART:"elm.text", "visible", 0.0);
9085                }
9086                if(get_int(button_state) !=1)
9087                   set_state(PART:"button_image", "default", 0.0);
9088             }
9089             after: button_unpress;
9090          }
9091          program { name: "button_click2";
9092             signal: "mouse,down,1";
9093             source: "over3";
9094             action: STATE_SET "clicked" 0.0;
9095             target: "over3";
9096          }
9097          program { name: "button_unclick2";
9098             signal: "mouse,clicked,1";
9099             source: "over3";
9100             action: STATE_SET "default" 0.0;
9101             target: "over3";
9102          }
9103          program { name: "button_unclick3";
9104             signal: "mouse,clicked,1";
9105             source: "over2";
9106             action: SIGNAL_EMIT "elm,action,click" "";
9107          }
9108          program { name: "text_show";
9109             signal: "elm,state,text,visible";
9110             source: "elm";
9111             script {
9112                new st[31];
9113                new Float:vl;
9114                get_state(PART:"elm.swallow.content", st, 30, vl);
9115                if (!strcmp(st, "icononly"))
9116                {
9117                   set_state(PART:"elm.swallow.content", "visible", 0.0);
9118                   set_state(PART:"padding_icon_text", "visible", 0.0);
9119                }
9120                set_state(PART:"elm.text", "visible", 0.0);
9121             }
9122          }
9123          program { name: "text_hide";
9124             signal: "elm,state,text,hidden";
9125             source: "elm";
9126             script {
9127                new st[31];
9128                new Float:vl;
9129                get_state(PART:"elm.swallow.content", st, 30, vl);
9130                if (!strcmp(st, "visible"))
9131                {
9132                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
9133                   set_state(PART:"padding_icon_text", "icononly", 0.0);
9134                }
9135                set_state(PART:"elm.text", "default", 0.0);
9136             }
9137          }
9138          program { name: "icon_show";
9139             signal: "elm,state,icon,visible";
9140             source: "elm";
9141             script {
9142                new st[31];
9143                new Float:vl;
9144                get_state(PART:"elm.text", st, 30, vl);
9145                if (!strcmp(st, "visible"))
9146                {
9147                   set_state(PART:"elm.swallow.content", "visible", 0.0);
9148                   set_state(PART:"padding_icon_text", "visible", 0.0);
9149                }
9150                else
9151                {
9152                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
9153                   set_state(PART:"padding_icon_text", "icononly", 0.0);
9154                }
9155             }
9156          }
9157          program { name: "icon_hide";
9158             signal: "elm,state,icon,hidden";
9159             source: "elm";
9160             action:  STATE_SET "default" 0.0;
9161             target: "elm.swallow.content";
9162          }
9163          program { name: "disable";
9164             signal: "elm,state,disabled";
9165             source: "elm";
9166             action: STATE_SET "disabled" 0.0;
9167             target: "button_image";
9168             target: "over2";
9169             target: "disabler";
9170             after: "disable_text";
9171          }
9172          program { name: "disable_text";
9173             script {
9174                new st[31];
9175                new Float:vl;
9176                get_state(PART:"elm.text", st, 30, vl);
9177                if (!strcmp(st, "visible"))
9178                   set_state(PART:"elm.text", "disabled_visible", 0.0);
9179                else
9180                   set_state(PART:"elm.text", "disabled", 0.0);
9181                set_int(button_state, 1);
9182             }
9183          }
9184          program { name: "enable";
9185             signal: "elm,state,enabled";
9186             source: "elm";
9187             action: STATE_SET "default" 0.0;
9188             target: "button_image";
9189             target: "over2";
9190             target: "disabler";
9191             after: "enable_text";
9192          }
9193          program { name: "enable_text";
9194             script {
9195                new st[31];
9196                new Float:vl;
9197                get_state(PART:"elm.text", st, 30, vl);
9198                if (!strcmp(st, "disabled_visible"))
9199                   set_state(PART:"elm.text", "visible", 0.0);
9200                else
9201                   set_state(PART:"elm.text", "default", 0.0);
9202                set_int(button_state, 0);
9203             }
9204          }
9205          program { name: "focused";
9206             //signal: "elm,action,focus";
9207             //source: "elm";
9208             action: STATE_SET "focused" 0.0;
9209             target: "button_image";
9210             target: "elm.text";
9211          }
9212          program { name: "unfocused";
9213             //signal: "elm,action,unfocus";
9214             //source: "elm";
9215             action: STATE_SET "default" 0.0;
9216             target: "button_image";
9217             after: "unfocus_text";
9218          }
9219          program { name: "unfocus_text";
9220             action: STATE_SET "visible" 0.0;
9221             target: "elm.text";
9222          }
9223       }
9224    }
9225
9226 ///////////////////////////////////////////////////////////////////////////////////////
9227    group { name: "elm/button/base/calendarpicker/bar";
9228       images {
9229          image: "00_picker_btn_normal.png" COMP;
9230          image: "00_picker_btn_press.png" COMP;
9231       }
9232       script {
9233          public button_state = 0; //0:enabled, 1: disabled
9234       }
9235       parts {
9236          part { name: "button_image";
9237             mouse_events: 1;
9238             scale: 1;
9239             description { state: "default" 0.0;
9240                min: 46 42;
9241                image {
9242                   normal: "00_picker_btn_normal.png";
9243                   border: 4 4 4 4;
9244                   border_scale: 1;
9245                }
9246             }
9247             description { state: "clicked" 0.0;
9248                inherit: "default" 0.0;
9249                image.normal: "00_picker_btn_press.png";
9250             }
9251             description { state: "disabled" 0.0;
9252                inherit:  "default" 0.0;
9253             }
9254             description { state: "focused" 0.0;
9255                inherit: "default" 0.0;
9256                image.normal: "00_picker_btn_press.png";
9257             }
9258          }
9259          part {
9260             name: "padding_left";
9261             type: RECT;
9262             scale: 1;
9263             mouse_events: 0;
9264             description { state: "default" 0.0;
9265                align: 0.0 0.0;
9266                rel1.relative: 0.0 0.0;
9267                rel2.relative: 0.0 1.0;
9268                min: 5 5;
9269                fixed: 1 0;
9270                color: 0 0 0 0;
9271             }
9272          }
9273          part {
9274             name: "padding_right";
9275             type: RECT;
9276             scale: 1;
9277             mouse_events: 0;
9278             description { state: "default" 0.0;
9279                align: 1.0 0.0;
9280                rel1.relative: 1.0 0.0;
9281                rel2.relative: 1.0 1.0;
9282                min: 5 5;
9283                fixed: 1 0;
9284                color: 0 0 0 0;
9285             }
9286          }
9287          part {
9288             name: "padding_top";
9289             type: RECT;
9290             scale: 1;
9291             mouse_events: 0;
9292             description { state: "default" 0.0;
9293                align: 0.0 0.0;
9294                rel1.relative: 0.0 0.0;
9295                rel2.relative: 1.0 0.0;
9296                min: 5 5;
9297                fixed: 0 1;
9298                color: 0 0 0 0;
9299             }
9300          }
9301          part {
9302             name: "padding_bottom";
9303             type: RECT;
9304             scale: 1;
9305             mouse_events: 0;
9306             description { state: "default" 0.0;
9307                align: 1.0 1.0;
9308                rel1.relative: 0.0 1.0;
9309                rel2.relative: 1.0 1.0;
9310                min: 5 5;
9311                fixed: 0 1;
9312                color: 0 0 0 0;
9313             }
9314          }
9315          part {
9316             name: "icon_rect";
9317             type: RECT;
9318             scale: 1;
9319             mouse_events: 0;
9320             description { state: "default" 0.0;
9321                visible: 1;
9322                min: 0 32;
9323                fixed: 1 0;
9324                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
9325                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
9326                align: 0.0 0.5;
9327                color: 0 0 0 0;
9328             }
9329          }
9330          part {
9331             name: "padding_icon_text";
9332             type: RECT;
9333             scale: 1;
9334             mouse_events: 0;
9335             description { state: "default" 0.0; //when only icon or no icon is there
9336                align: 0.0 0.0;
9337                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9338                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9339                fixed: 1 0;
9340                min: 0 0;
9341                color: 0 0 0 0;
9342             }
9343             description { state: "icononly" 0.0;
9344                inherit: "default" 0.0;
9345             }
9346             description { state: "visible" 0.0; //when icon is visible
9347                align: 0.0 0.0;
9348                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9349                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9350                fixed: 1 0;
9351                min: 5 0;
9352                color: 0 0 0 0;
9353             }
9354          }
9355          part { name: "elm.swallow.content";
9356             type: SWALLOW;
9357             scale: 1;
9358             description { state: "default" 0.0;
9359                visible: 0;
9360                align: 0.0 0.5;
9361                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9362                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9363                fixed: 1 0;
9364             }
9365             description { state: "visible" 0.0;
9366                fixed: 1 0;
9367                visible: 1;
9368                align: 0.0 0.5;
9369                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9370                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9371                aspect: 1.0 1.0;
9372                aspect_preference: VERTICAL;
9373             }
9374             description { state: "icononly" 0.0;;
9375                visible: 1;
9376                min: 32 32;
9377                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9378                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
9379                align: 0.5 0.5;
9380                aspect: 1.0 1.0;
9381                aspect_preference: VERTICAL;
9382             }
9383          }
9384          part { name: "elm.text";
9385             type: TEXT;
9386             //effect: SHADOW;
9387             mouse_events:  0;
9388             scale: 1;
9389             description { state: "default" 0.0;
9390                visible: 0;
9391                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
9392                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
9393                align: 0.5 0.5;
9394                color: 78 73 69 255;
9395                color2: 0 0 0 0;
9396                text {
9397                   font: "SLP:style=Medium";
9398                   size: 20;
9399                   min:  1 0;
9400                   align: 0.5 0.5;
9401                   max: 0 0;
9402                }
9403             }
9404             description { state: "visible" 0.0;
9405                inherit: "default" 0.0;
9406                visible: 1;
9407                min: 80 32;
9408             }
9409             description { state: "clicked" 0.0;
9410                inherit: "default" 0.0;
9411                visible: 1;
9412                min: 0 0;
9413                color: 255 255 255 255;
9414                color2: 0 0 0 0;
9415             }
9416             description { state: "disabled" 0.0;
9417                inherit: "default" 0.0;
9418                color: 0 0 0 128;
9419                color3: 0 0 0 0;
9420             }
9421             description { state: "disabled_visible" 0.0;
9422                inherit: "default" 0.0;
9423                color: 0 0 0 128;
9424                color3: 0 0 0 0;
9425                visible: 1;
9426             }
9427             description { state: "focused" 0.0;
9428                inherit: "default" 0.0;
9429                visible: 1;
9430                min: 0 0;
9431                color: 255 255 255 255;
9432                color2: 0 0 0 102;
9433             }
9434          }
9435          part { name: "over2";
9436             type: RECT;
9437             mouse_events: 1;
9438             repeat_events: 1;
9439             ignore_flags: ON_HOLD;
9440             description { state: "default" 0.0;
9441                color: 0 0 0 0;
9442             }
9443             description { state: "disabled" 0.0;
9444                inherit:  "default" 0.0;
9445                visible: 0;
9446             }
9447          }
9448          part { name: "over3";
9449             type: RECT;
9450             mouse_events: 1;
9451             repeat_events: 1;
9452             description { state: "default" 0.0;
9453                color: 0 0 0 0;
9454             }
9455             description { state: "clicked" 0.0;
9456                inherit:  "default" 0.0;
9457                visible: 1;
9458             }
9459          }
9460          part { name: "disabler";
9461             type: RECT;
9462             description { state: "default" 0.0;
9463                color: 0 0 0 0;
9464                visible: 0;
9465             }
9466             description { state: "disabled" 0.0;
9467                inherit: "default" 0.0;
9468                visible: 1;
9469             }
9470          }
9471       }
9472       programs {
9473          program { name: "button_click";
9474             signal: "mouse,down,1";
9475             source: "over2";
9476             action: SIGNAL_EMIT "elm,action,press" "";
9477             after: "button_click_anim";
9478          }
9479          program { name: "button_click_anim";
9480             action: STATE_SET "clicked" 0.0;
9481             target: "button_image";
9482             after: "text_clicked";
9483          }
9484          program { name: "text_clicked";
9485             script {
9486                new st[31];
9487                new Float:vl;
9488                get_state(PART:"elm.text", st, 30, vl);
9489                if (!strcmp(st, "visible"))
9490                   set_state(PART:"elm.text", "clicked", 0.0);
9491             }
9492          }
9493          program { name: "button_unpress";
9494             action: SIGNAL_EMIT "elm,action,unpress" "";
9495          }
9496          program { name: "button_mouseout_clicked";
9497             signal: "mouse,up,1";
9498             source: "over3";
9499             script {
9500                new st[31];
9501                new Float:vl;
9502                get_state(PART:"elm.swallow.content", st, 30, vl);
9503                if (strcmp(st, "icononly"))
9504                {
9505                   emit("elm,action,default,text,set", "");
9506                   set_state(PART:"elm.text", "visible", 0.0);
9507                }
9508                if(get_int(button_state) !=1)
9509                   set_state(PART:"button_image", "default", 0.0);
9510             }
9511             after: button_unpress;
9512          }
9513          program { name: "button_click2";
9514             signal: "mouse,down,1";
9515             source: "over3";
9516             action: STATE_SET "clicked" 0.0;
9517             target: "over3";
9518          }
9519          program { name: "button_unclick2";
9520             signal: "mouse,clicked,1";
9521             source: "over3";
9522             action: STATE_SET "default" 0.0;
9523             target: "over3";
9524          }
9525          program { name: "button_unclick3";
9526             signal: "mouse,clicked,1";
9527             source: "over2";
9528             action: SIGNAL_EMIT "elm,action,click" "";
9529          }
9530          program { name: "text_show";
9531             signal: "elm,state,text,visible";
9532             source: "elm";
9533             script {
9534                new st[31];
9535                new Float:vl;
9536                get_state(PART:"elm.swallow.content", st, 30, vl);
9537                if (!strcmp(st, "icononly"))
9538                {
9539                   set_state(PART:"elm.swallow.content", "visible", 0.0);
9540                   set_state(PART:"padding_icon_text", "visible", 0.0);
9541                }
9542                set_state(PART:"elm.text", "visible", 0.0);
9543             }
9544          }
9545          program { name: "text_hide";
9546             signal: "elm,state,text,hidden";
9547             source: "elm";
9548             script {
9549                new st[31];
9550                new Float:vl;
9551                get_state(PART:"elm.swallow.content", st, 30, vl);
9552                if (!strcmp(st, "visible"))
9553                {
9554                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
9555                   set_state(PART:"padding_icon_text", "icononly", 0.0);
9556                }
9557                set_state(PART:"elm.text", "default", 0.0);
9558             }
9559          }
9560          program { name: "icon_show";
9561             signal: "elm,state,icon,visible";
9562             source: "elm";
9563             script {
9564                new st[31];
9565                new Float:vl;
9566                get_state(PART:"elm.text", st, 30, vl);
9567                if (!strcmp(st, "visible"))
9568                {
9569                   set_state(PART:"elm.swallow.content", "visible", 0.0);
9570                   set_state(PART:"padding_icon_text", "visible", 0.0);
9571                }
9572                else
9573                {
9574                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
9575                   set_state(PART:"padding_icon_text", "icononly", 0.0);
9576                }
9577             }
9578          }
9579          program { name: "icon_hide";
9580             signal: "elm,state,icon,hidden";
9581             source: "elm";
9582             action:  STATE_SET "default" 0.0;
9583             target: "elm.swallow.content";
9584          }
9585          program { name: "disable";
9586             signal: "elm,state,disabled";
9587             source: "elm";
9588             action: STATE_SET "disabled" 0.0;
9589             target: "button_image";
9590             target: "over2";
9591             target: "disabler";
9592             after: "disable_text";
9593          }
9594          program { name: "disable_text";
9595             script {
9596                new st[31];
9597                new Float:vl;
9598                get_state(PART:"elm.text", st, 30, vl);
9599                if (!strcmp(st, "visible"))
9600                   set_state(PART:"elm.text", "disabled_visible", 0.0);
9601                else
9602                   set_state(PART:"elm.text", "disabled", 0.0);
9603                set_int(button_state, 1);
9604             }
9605          }
9606          program { name: "enable";
9607             signal: "elm,state,enabled";
9608             source: "elm";
9609             action: STATE_SET "default" 0.0;
9610             target: "button_image";
9611             target: "over2";
9612             target: "disabler";
9613             after: "enable_text";
9614          }
9615          program { name: "enable_text";
9616             script {
9617                new st[31];
9618                new Float:vl;
9619                get_state(PART:"elm.text", st, 30, vl);
9620                if (!strcmp(st, "disabled_visible"))
9621                   set_state(PART:"elm.text", "visible", 0.0);
9622                else
9623                   set_state(PART:"elm.text", "default", 0.0);
9624                set_int(button_state, 0);
9625             }
9626          }
9627          program { name: "focused";
9628             //signal: "elm,action,focus";
9629             //source: "elm";
9630             action: STATE_SET "focused" 0.0;
9631             target: "button_image";
9632             target: "elm.text";
9633          }
9634          program { name: "unfocused";
9635             //signal: "elm,action,unfocus";
9636             //source: "elm";
9637             action: STATE_SET "default" 0.0;
9638             target: "button_image";
9639             after: "unfocus_text";
9640          }
9641          program { name: "unfocus_text";
9642             action: STATE_SET "visible" 0.0;
9643             target: "elm.text";
9644          }
9645       }
9646    }
9647
9648 ///////////////////////////////////////////////////////////////////////////////////////
9649    group { name: "elm/button/base/icon_and_text/center";
9650       images {
9651          image: "00_button_01_normal.png" COMP;
9652          image: "00_button_01_press.png" COMP;
9653          image: "00_button_01_focus.png" COMP;
9654          image: "00_button_01_dim.png" COMP;
9655       }
9656       script {
9657          public button_state = 0; //0:enabled, 1: disabled
9658       }
9659       parts {
9660          part { name: "button_image";
9661             mouse_events: 1;
9662             scale: 1;
9663             description { state: "default" 0.0;
9664                min: 20 46;
9665                image {
9666                   normal: "00_button_01_normal.png";
9667                   border: 4 4 4 4;
9668                   border_scale: 1;
9669                }
9670             }
9671             description { state: "clicked" 0.0;
9672                inherit: "default" 0.0;
9673                image.normal: "00_button_01_press.png";
9674             }
9675             description { state: "disabled" 0.0;
9676                inherit:  "default" 0.0;
9677                image.normal: "00_button_01_dim.png";
9678             }
9679             description { state: "focused" 0.0;
9680                inherit: "default" 0.0;
9681                image.normal: "00_button_01_focus.png";
9682             }
9683          }
9684          part {
9685             name: "padding_left";
9686             type: RECT;
9687             scale: 1;
9688             mouse_events: 0;
9689             description { state: "default" 0.0;
9690                align: 0.0 0.0;
9691                rel1.relative: 0.0 0.0;
9692                rel2.relative: 0.0 1.0;
9693                min: 10 5;
9694                fixed: 1 0;
9695                color: 0 0 0 0;
9696             }
9697          }
9698          part {
9699             name: "padding_right";
9700             type: RECT;
9701             scale: 1;
9702             mouse_events: 0;
9703             description { state: "default" 0.0;
9704                align: 1.0 0.0;
9705                rel1.relative: 1.0 0.0;
9706                rel2.relative: 1.0 1.0;
9707                min: 10 5;
9708                fixed: 1 0;
9709                color: 0 0 0 0;
9710             }
9711          }
9712          part {
9713             name: "padding_top";
9714             type: RECT;
9715             scale: 1;
9716             mouse_events: 0;
9717             description { state: "default" 0.0;
9718                align: 0.0 0.0;
9719                rel1.relative: 0.0 0.0;
9720                rel2.relative: 1.0 0.0;
9721                min: 5 10;
9722                fixed: 0 1;
9723                color: 0 0 0 0;
9724             }
9725          }
9726          part {
9727             name: "padding_bottom";
9728             type: RECT;
9729             scale: 1;
9730             mouse_events: 0;
9731             description { state: "default" 0.0;
9732                align: 1.0 1.0;
9733                rel1.relative: 0.0 1.0;
9734                rel2.relative: 1.0 1.0;
9735                min: 5 10;
9736                fixed: 0 1;
9737                color: 0 0 0 0;
9738             }
9739          }
9740          part {
9741             name: "icon_rect";
9742             type: RECT;
9743             scale: 1;
9744             mouse_events: 0;
9745             description { state: "default" 0.0;
9746                visible: 1;
9747                min: 0 0;
9748                fixed: 1 0;
9749                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9750                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9751                align: 0.0 0.5;
9752                color: 0 0 0 0;
9753             }
9754             description { state: "visible" 0.0;
9755                visible: 1;
9756                min: 24 24;
9757                max: 24 24;
9758                fixed: 1 0;
9759                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9760                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9761                aspect: 1.0 1.0;
9762                aspect_preference: VERTICAL;
9763                align: 0.0 0.5;
9764                color: 0 0 0 0;
9765             }
9766             description { state: "icononly" 0.0;
9767                inherit: "default" 0.0;
9768             }
9769          }
9770          part {
9771             name: "padding_after_icon";
9772             type: RECT;
9773             scale: 1;
9774             mouse_events: 0;
9775             description { state: "default" 0.0; //when only icon or no icon is there
9776                align: 0.0 0.0;
9777                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9778                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9779                fixed: 1 0;
9780                min: 0 0;
9781                color: 0 255 0 100;
9782             }
9783             description { state: "visible" 0.0;
9784                visible: 1;
9785                align: 0.0 0.0;
9786                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
9787                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
9788                fixed: 1 0;
9789                min: 10 0;
9790                color: 0 0 0 0;
9791             }
9792             description { state: "icononly" 0.0;
9793                inherit: "default" 0.0;
9794             }
9795          }
9796          part {
9797             name: "padding_before_text";
9798             type: RECT;
9799             scale: 1;
9800             mouse_events: 0;
9801             description { state: "default" 0.0; //when only icon or no icon is there
9802                align: 1.0 0.5;
9803                rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
9804                rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
9805                fixed: 1 0;
9806                min: 10 0;
9807                color: 0 0 0 0;
9808             }
9809          }
9810          part { name: "elm.swallow.content";
9811             type: SWALLOW;
9812             scale: 1;
9813             description { state: "default" 0.0;
9814                visible: 0;
9815                align: 0.0 0.5;
9816                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9817                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
9818                fixed: 1 0;
9819             }
9820             description { state: "visible" 0.0;
9821                fixed: 1 0;
9822                visible: 1;
9823                min: 24 24;
9824                max: 24 24;
9825                align: 1.0 0.5;
9826                rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
9827                rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
9828                aspect: 1.0 1.0;
9829                aspect_preference: VERTICAL;
9830             }
9831             description { state: "icononly" 0.0;;
9832                visible: 1;
9833                min: 30 30;
9834                max: 30 30;
9835                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
9836                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
9837                align: 0.5 0.5;
9838                aspect: 1.0 1.0;
9839                aspect_preference: VERTICAL;
9840             }
9841          }
9842          part { name: "elm.text";
9843             type: TEXT;
9844             //effect: SHADOW;
9845             mouse_events:  0;
9846             scale: 1;
9847             description { state: "default" 0.0;
9848                visible: 0;
9849                rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
9850                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
9851                align: 0.5 0.5;
9852                color: BUTTON_ICON_TEXT_NORMAL_COLOR_INC;
9853                color2: BUTTON_ICON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
9854                text {
9855                   font: "SLP:style=Medium";
9856                   size: 24;
9857                   min:  0 0;
9858                   align: 0.5 0.5;
9859                   max: 1 0;
9860                }
9861             }
9862             description { state: "visible" 0.0;
9863                inherit: "default" 0.0;
9864                visible: 1;
9865                min: 90 24;
9866             }
9867             description { state: "clicked" 0.0;
9868                inherit: "default" 0.0;
9869                visible: 1;
9870                min: 0 0;
9871                color: BUTTON_ICON_TEXT_PRESSED_COLOR_INC;
9872                color2: BUTTON_ICON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
9873             }
9874             description { state: "disabled" 0.0;
9875                inherit: "default" 0.0;
9876                color: 0 0 0 128;
9877                color3: 0 0 0 0;
9878             }
9879             description { state: "disabled_visible" 0.0;
9880                inherit: "default" 0.0;
9881                color: BUTTON_ICON_TEXT_DISABLED_COLOR_INC;
9882                color2: BUTTON_ICON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
9883                color3: 0 0 0 0;
9884                visible: 1;
9885             }
9886             description { state: "focused" 0.0;
9887                inherit: "default" 0.0;
9888                visible: 1;
9889                min: 0 0;
9890                color: BUTTON_ICON_TEXT_FOCUSED_COLOR_INC;
9891                color2: BUTTON_ICON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
9892             }
9893          }
9894          part { name: "over2";
9895             type: RECT;
9896             mouse_events: 1;
9897             repeat_events: 1;
9898             ignore_flags: ON_HOLD;
9899             description { state: "default" 0.0;
9900                color: 0 0 0 0;
9901             }
9902             description { state: "disabled" 0.0;
9903                inherit:  "default" 0.0;
9904                visible: 0;
9905             }
9906          }
9907          part { name: "over3";
9908             type: RECT;
9909             mouse_events: 1;
9910             repeat_events: 1;
9911             description { state: "default" 0.0;
9912                color: 0 0 0 0;
9913             }
9914             description { state: "clicked" 0.0;
9915                inherit:  "default" 0.0;
9916                visible: 1;
9917             }
9918          }
9919          part { name: "disabler";
9920             type: RECT;
9921             description { state: "default" 0.0;
9922                color: 0 0 0 0;
9923                visible: 0;
9924             }
9925             description { state: "disabled" 0.0;
9926                inherit: "default" 0.0;
9927                visible: 1;
9928             }
9929          }
9930       }
9931       programs {
9932          program { name: "button_click";
9933             signal: "mouse,down,1";
9934             source: "over2";
9935             action: SIGNAL_EMIT "elm,action,press" "";
9936             after: "button_click_anim";
9937          }
9938          program { name: "button_click_anim";
9939             action: STATE_SET "clicked" 0.0;
9940             target: "button_image";
9941             after: "text_clicked";
9942          }
9943          program { name: "text_clicked";
9944             script {
9945                new st[31];
9946                new Float:vl;
9947                get_state(PART:"elm.text", st, 30, vl);
9948                if (!strcmp(st, "visible"))
9949                   set_state(PART:"elm.text", "clicked", 0.0);
9950             }
9951          }
9952          program { name: "button_unpress";
9953             action: SIGNAL_EMIT "elm,action,unpress" "";
9954          }
9955          program { name: "button_mouseout_clicked";
9956             signal: "mouse,up,1";
9957             source: "over3";
9958             script {
9959                new st[31];
9960                new Float:vl;
9961                get_state(PART:"elm.swallow.content", st, 30, vl);
9962                if (strcmp(st, "icononly"))
9963                  {
9964                     emit("elm,action,default,text,set", "");
9965                     set_state(PART:"elm.text", "visible", 0.0);
9966                  }
9967                if(get_int(button_state) !=1)
9968                   set_state(PART:"button_image", "default", 0.0);
9969             }
9970             after: button_unpress;
9971          }
9972          program { name: "button_click2";
9973             signal: "mouse,down,1";
9974             source: "over3";
9975             action: STATE_SET "clicked" 0.0;
9976             target: "over3";
9977          }
9978          program { name: "button_unclick2";
9979             signal: "mouse,clicked,1";
9980             source: "over3";
9981             action: STATE_SET "default" 0.0;
9982             target: "over3";
9983          }
9984          program { name: "button_unclick3";
9985             signal: "mouse,clicked,1";
9986             source: "over2";
9987             action: SIGNAL_EMIT "elm,action,click" "";
9988          }
9989          program { name: "text_show";
9990             signal: "elm,state,text,visible";
9991             source: "elm";
9992             script {
9993                new st[31];
9994                new Float:vl;
9995                get_state(PART:"elm.swallow.content", st, 30, vl);
9996                if (!strcmp(st, "icononly"))
9997                {
9998                   set_state(PART:"elm.swallow.content", "visible", 0.0);
9999                   set_state(PART:"icon_rect", "visible", 0.0);
10000                   set_state(PART:"padding_after_icon", "visible", 0.0);
10001                }
10002                set_state(PART:"elm.text", "visible", 0.0);
10003             }
10004          }
10005          program { name: "text_hide";
10006             signal: "elm,state,text,hidden";
10007             source: "elm";
10008             script {
10009                new st[31];
10010                new Float:vl;
10011                get_state(PART:"elm.swallow.content", st, 30, vl);
10012                if (!strcmp(st, "visible"))
10013                {
10014                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
10015                   set_state(PART:"icon_rect", "icononly", 0.0);
10016                   set_state(PART:"padding_after_icon", "icononly", 0.0);
10017                }
10018                set_state(PART:"elm.text", "default", 0.0);
10019             }
10020          }
10021          program { name: "icon_show";
10022             signal: "elm,state,icon,visible";
10023             source: "elm";
10024             script {
10025                new st[31];
10026                new Float:vl;
10027                get_state(PART:"elm.text", st, 30, vl);
10028                if (!strcmp(st, "visible"))
10029                {
10030                   set_state(PART:"elm.swallow.content", "visible", 0.0);
10031                   set_state(PART:"icon_rect", "visible", 0.0);
10032                   set_state(PART:"padding_after_icon", "visible", 0.0);
10033                }
10034                else
10035                {
10036                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
10037                   set_state(PART:"icon_rect", "icononly", 0.0);
10038                   set_state(PART:"padding_after_icon", "icononly", 0.0);
10039                }
10040             }
10041          }
10042          program { name: "icon_hide";
10043             signal: "elm,state,icon,hidden";
10044             source: "elm";
10045             action:  STATE_SET "default" 0.0;
10046             target: "elm.swallow.content";
10047          }
10048          program { name: "disable";
10049             signal: "elm,state,disabled";
10050             source: "elm";
10051             action: STATE_SET "disabled" 0.0;
10052             target: "button_image";
10053             target: "over2";
10054             target: "disabler";
10055             after: "disable_text";
10056          }
10057          program { name: "disable_text";
10058             script {
10059                new st[31];
10060                new Float:vl;
10061                get_state(PART:"elm.text", st, 30, vl);
10062                if (!strcmp(st, "visible"))
10063                   set_state(PART:"elm.text", "disabled_visible", 0.0);
10064                else
10065                   set_state(PART:"elm.text", "disabled", 0.0);
10066                set_int(button_state, 1);
10067             }
10068          }
10069          program { name: "enable";
10070             signal: "elm,state,enabled";
10071             source: "elm";
10072             action: STATE_SET "default" 0.0;
10073             target: "button_image";
10074             target: "over2";
10075             target: "disabler";
10076             after: "enable_text";
10077          }
10078          program { name: "enable_text";
10079             script {
10080                new st[31];
10081                new Float:vl;
10082                get_state(PART:"elm.text", st, 30, vl);
10083                if (!strcmp(st, "disabled_visible"))
10084                   set_state(PART:"elm.text", "visible", 0.0);
10085                else
10086                   set_state(PART:"elm.text", "default", 0.0);
10087                set_int(button_state, 0);
10088             }
10089          }
10090          program { name: "focused";
10091             action: STATE_SET "focused" 0.0;
10092             target: "button_image";
10093             target: "elm.text";
10094          }
10095          program { name: "unfocused";
10096             action: STATE_SET "default" 0.0;
10097             target: "button_image";
10098             after: "unfocus_text";
10099          }
10100          program { name: "unfocus_text";
10101             action: STATE_SET "visible" 0.0;
10102             target: "elm.text";
10103          }
10104       }
10105    }
10106
10107 ///////////////////////////////////////////////////////////////////////////////////////
10108    group { name: "elm/button/base/text_only/contact";
10109       alias: "elm/button/base/haptic";
10110       images {
10111          image: "00_message_button_add_recipient.png" COMP;
10112          image: "00_message_button_add_recipient_press.png" COMP;
10113          image: "00_message_button_add_recipient_focus.png" COMP;
10114          image: "00_message_button_add_recipient_dim.png" COMP;
10115       }
10116       script {
10117          public button_state = 0; //0:enabled, 1: disabled
10118       }
10119       parts {
10120          part { name: "button_image";
10121                 type: RECT;
10122             mouse_events: 1;
10123             scale: 1;
10124             description { state: "default" 0.0;
10125                rel1 { to_x: "padding.left"; to_y: "elm.text";}
10126                rel2 { to_x: "padding.right"; to_y: "elm.text";}
10127                min: 44 28;
10128                     color: 221 134 21 255;
10129             }
10130             description { state: "clicked" 0.0;
10131                inherit: "default" 0.0;
10132             }
10133             description { state: "disabled" 0.0;
10134                inherit: "default" 0.0;
10135             }
10136             description { state: "focused" 0.0;
10137                inherit: "default" 0.0;
10138             }
10139          }
10140          part { name: "padding.left";
10141             type: RECT;
10142             scale: 1;
10143             description { state: "default" 0.0;
10144                visible: 0;
10145                min: 10 1;
10146                fixed: 1 0;
10147                color: 0 0 0 0;
10148                rel1.relative: 0 0;
10149                rel2 { relative: 0.0 1.0; to_x: "elm.text";}
10150                align: 1 0;
10151             }
10152          }
10153          part { name: "padding.right";
10154             type: RECT;
10155             scale: 1;
10156             description { state: "default" 0.0;
10157                visible: 0;
10158                min: 10 1;
10159                fixed: 1 0;
10160                color: 0 0 0 0;
10161                rel1 { relative: 1.0 0.0; to_x: "elm.text";}
10162                rel2.relative: 1.0 1.0;
10163                align: 0 0;
10164             }
10165          }
10166          part {   name: "elm.text";
10167             type: TEXT;
10168             //effect: SHADOW;
10169             mouse_events: 0;
10170             scale: 1;
10171             description { state: "default" 0.0;
10172                visible: 0;
10173                fixed: 1 1;
10174                align: 0.5 0.5;
10175                color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
10176                color2: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
10177                text {
10178                   font: "SLP:style=Medium";
10179                   size: 24;
10180                   min:  1 1;
10181                   align: 0.5 0.5;
10182                }
10183             }
10184             description { state: "visible" 0.0;
10185                inherit: "default" 0.0;
10186                visible: 1;
10187                min: 1 1;
10188             }
10189             description { state: "clicked" 0.0;
10190                inherit: "default" 0.0;
10191                visible: 1;
10192                min: 1 1;
10193                color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
10194                color2: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_SHAWDOW_COLOR_INC;
10195             }
10196             description { state: "disabled" 0.0;
10197                inherit: "default" 0.0;
10198                color: 0 0 0 128;
10199                color3: 0 0 0 0;
10200             }
10201             description { state: "disabled_visible" 0.0;
10202                inherit: "default" 0.0;
10203                color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
10204                color2: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_SHAWDOW_COLOR_INC;
10205                color3: 0 0 0 0;
10206                visible: 1;
10207                min: 1 1;
10208             }
10209             description { state: "focused" 0.0;
10210                inherit: "default" 0.0;
10211                visible: 1;
10212                min: 1 1;
10213                color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
10214                color2: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_SHAWDOW_COLOR_INC;
10215             }
10216          }
10217          part { name: "over1";
10218             mouse_events: 0;
10219             description { state: "default" 0.0;
10220                rel2.relative: 1.0 0.5;
10221             }
10222             description { state: "disabled" 0.0;
10223                inherit:  "default" 0.0;
10224             }
10225          }
10226          part { name: "over2";
10227             mouse_events: 1;
10228             repeat_events: 1;
10229             ignore_flags: ON_HOLD;
10230             description { state: "default" 0.0;
10231             rel1.to: "button_image";
10232             rel2.to: "button_image";
10233             }
10234             description { state: "disabled" 0.0;
10235                inherit:  "default" 0.0;
10236                visible: 0;
10237             }
10238          }
10239          part { name: "over3";
10240             mouse_events: 1;
10241             repeat_events: 1;
10242             description { state: "default" 0.0;
10243             rel1.to: "button_image";
10244             rel2.to: "button_image";
10245                color: 255 255 255 0;
10246             }
10247             description { state: "clicked" 0.0;
10248                inherit:  "default" 0.0;
10249                visible: 1;
10250                color: 255 255 255 0;
10251             }
10252          }
10253          part { name: "disabler";
10254             type: RECT;
10255             description { state: "default" 0.0;
10256                rel1.to: "button_image";
10257                rel2.to: "button_image";
10258                color: 0 0 0 0;
10259                visible: 0;
10260             }
10261             description { state: "disabled" 0.0;
10262                inherit: "default" 0.0;
10263                visible: 1;
10264             }
10265          }
10266       }
10267       programs {
10268          program { name: "button_click";
10269             signal: "mouse,down,1";
10270             source: "over2";
10271             action: SIGNAL_EMIT "elm,action,press" "";
10272             after: "button_click_anim";
10273          }
10274          program { name: "button_click_anim";
10275             action: STATE_SET "clicked" 0.0;
10276             target: "button_image";
10277             target: "elm.text";
10278          }
10279          program { name: "button_unpress";
10280             action: SIGNAL_EMIT "elm,action,unpress" "";
10281          }
10282          program { name: "button_mouseout_clicked";
10283             signal: "mouse,up,1";
10284             source: "over3";
10285             script {
10286                new st[31];
10287                new Float:vl;
10288                get_state(PART:"elm.text", st, 30, vl);
10289                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
10290                {
10291                   emit("elm,action,default,text,set", "");
10292                   set_state(PART:"elm.text", "visible", 0.0);
10293                }
10294                if(get_int(button_state) !=1)
10295                   set_state(PART:"button_image", "default", 0.0);
10296             }
10297             after: button_unpress;
10298          }
10299          program { name: "button_click2";
10300             signal: "mouse,down,1";
10301             source: "over3";
10302             action: STATE_SET "clicked" 0.0;
10303             target: "over3";
10304          }
10305          program { name: "button_unclick2";
10306             signal: "mouse,clicked,1";
10307             source: "over3";
10308             action: STATE_SET "default" 0.0;
10309             target: "over3";
10310          }
10311          program { name: "button_unclick3";
10312             signal: "mouse,clicked,1";
10313             source: "over2";
10314             action: SIGNAL_EMIT "elm,action,click" "";
10315          }
10316          program { name: "text_show";
10317             signal: "elm,state,text,visible";
10318             source: "elm";
10319             action: STATE_SET "visible" 0.0;
10320             target: "elm.text";
10321          }
10322          program { name: "text_hide";
10323             signal: "elm,state,text,hidden";
10324             source: "elm";
10325             action: STATE_SET "default" 0.0;
10326             target: "elm.text";
10327          }
10328
10329          program { name: "disable";
10330             signal: "elm,state,disabled";
10331             source: "elm";
10332             action: STATE_SET "disabled" 0.0;
10333             target: "button_image";
10334             target: "over1";
10335             target: "over2";
10336             target: "disabler";
10337             after: "disable_text";
10338          }
10339          program { name: "disable_text";
10340             script {
10341                new st[31];
10342                new Float:vl;
10343                get_state(PART:"elm.text", st, 30, vl);
10344                if (!strcmp(st, "visible"))
10345                   set_state(PART:"elm.text", "disabled_visible", 0.0);
10346                else
10347                   set_state(PART:"elm.text", "disabled", 0.0);
10348                set_int(button_state, 1);
10349             }
10350          }
10351          program { name: "enable";
10352             signal: "elm,state,enabled";
10353             source: "elm";
10354             action: STATE_SET "default" 0.0;
10355             target: "button_image";
10356             target: "over1";
10357             target: "over2";
10358             target: "disabler";
10359             after: "enable_text";
10360          }
10361          program { name: "enable_text";
10362             script {
10363                new st[31];
10364                new Float:vl;
10365                get_state(PART:"elm.text", st, 30, vl);
10366                if (!strcmp(st, "disabled_visible"))
10367                   set_state(PART:"elm.text", "visible", 0.0);
10368                else
10369                   set_state(PART:"elm.text", "default", 0.0);
10370                set_int(button_state, 0);
10371             }
10372          }
10373          program { name: "focused";
10374             //signal: "elm,action,focus";
10375             //source: "elm";
10376             action: STATE_SET "focused" 0.0;
10377             target: "button_image";
10378             target: "elm.text";
10379          }
10380          program { name: "unfocused";
10381             //signal: "elm,action,unfocus";
10382             //source: "elm";
10383             action: STATE_SET "default" 0.0;
10384             target: "button_image";
10385             action: STATE_SET "visible" 0.0;
10386             target: "elm.text";
10387          }
10388       }
10389    }
10390
10391 ///////////////////////////////////////////////////////////////////////////////////////
10392    group { name: "elm/button/base/text_only/more";
10393       images {
10394          image: "00_button_more.png" COMP;
10395       }
10396       script {
10397          public button_state = 0; //0:enabled, 1: disabled
10398       }
10399       parts {
10400          part { name: "button_image";
10401             mouse_events: 1;
10402             scale: 1;
10403             description { state: "default" 0.0;
10404                rel1 { to_x: "padding.left"; to_y: "elm.text";}
10405                rel2 { to_x: "padding.right"; to_y: "elm.text";}
10406                min: 28 26;
10407                fixed: 1 1;
10408                image {
10409                   normal: "00_button_more.png";
10410                   border: 13 13 12 12;
10411                   border_scale: 1;
10412                }
10413             }
10414             description { state: "clicked" 0.0;
10415                inherit: "default" 0.0;
10416             }
10417             description { state: "disabled" 0.0;
10418                inherit: "default" 0.0;
10419             }
10420             description { state: "focused" 0.0;
10421                inherit: "default" 0.0;
10422             }
10423          }
10424          part { name: "padding.left";
10425             type: RECT;
10426             scale: 1;
10427             description { state: "default" 0.0;
10428                visible: 0;
10429                min: 10 1;
10430                fixed: 1 0;
10431                color: 0 0 0 0;
10432                rel1.relative: 0 0;
10433                rel2 { relative: 0.0 1.0; to_x: "elm.text";}
10434                align: 1 0;
10435             }
10436          }
10437          part { name: "padding.right";
10438             type: RECT;
10439             scale: 1;
10440             description { state: "default" 0.0;
10441                visible: 0;
10442                min: 10 1;
10443                fixed: 1 0;
10444                color: 0 0 0 0;
10445                rel1 { relative: 1.0 0.0; to_x: "elm.text";}
10446                rel2.relative: 1.0 1.0;
10447                align: 0 0;
10448             }
10449          }
10450          part {   name: "elm.text";
10451             type: TEXT;
10452             //effect: SHADOW;
10453             mouse_events: 0;
10454             scale: 1;
10455             description { state: "default" 0.0;
10456                visible: 0;
10457                fixed: 1 1;
10458                align: 0.5 0.5;
10459                color: BUTTON_MORE_BUTTON_TEXT_NORMAL_COLOR_INC;
10460                color2: BUTTON_MORE_BUTTON_TEXT_NORMAL_SHAWDOW_COLOR_INC;
10461                text {
10462                   font: "SLP:style=Bold";
10463                   size: 16;
10464                   min:  1 1;
10465                   max: 0 1;
10466                   align: 0.5 0.5;
10467                }
10468             }
10469             description { state: "visible" 0.0;
10470                inherit: "default" 0.0;
10471                visible: 1;
10472                min: 1 1;
10473             }
10474             description { state: "clicked" 0.0;
10475                inherit: "default" 0.0;
10476                visible: 1;
10477                min: 1 1;
10478                //color: 53 45 39 255;
10479             }
10480             description { state: "disabled" 0.0;
10481                inherit: "default" 0.0;
10482                color: 0 0 0 128;
10483                color2: 0 0 0 0;
10484                color3: 0 0 0 0;
10485             }
10486             description { state: "disabled_visible" 0.0;
10487                inherit: "default" 0.0;
10488                color: 0 0 0 128;
10489                color2: 0 0 0 0;
10490                color3: 0 0 0 0;
10491                visible: 1;
10492                min: 1 1;
10493             }
10494             description { state: "focused" 0.0;
10495                inherit: "default" 0.0;
10496                visible: 1;
10497                min: 1 1;
10498             }
10499          }
10500          part { name: "over1";
10501             mouse_events: 0;
10502             scale: 1;
10503             description { state: "default" 0.0;
10504                rel1.to: "button_image";
10505                rel2.to: "button_image";
10506                align: 0.5 0.5;
10507                fixed: 1 1;
10508                min: 28 40;
10509             }
10510             description { state: "disabled" 0.0;
10511                inherit:  "default" 0.0;
10512             }
10513          }
10514          part { name: "over2";
10515             mouse_events: 1;
10516             repeat_events: 1;
10517             ignore_flags: ON_HOLD;
10518             scale: 1;
10519             description { state: "default" 0.0;
10520                rel1.to: "button_image";
10521                rel2.to: "button_image";
10522                align: 0.5 0.5;
10523                fixed: 1 1;
10524                min: 28 40;
10525             }
10526             description { state: "disabled" 0.0;
10527                inherit:  "default" 0.0;
10528                visible: 0;
10529             }
10530          }
10531          part { name: "over3";
10532             mouse_events: 1;
10533             repeat_events: 1;
10534             scale: 1;
10535             description { state: "default" 0.0;
10536                rel1.to: "button_image";
10537                rel2.to: "button_image";
10538                color: 255 255 255 0;
10539                fixed: 1 1;
10540                min: 28 40;
10541             }
10542             description { state: "clicked" 0.0;
10543                inherit:  "default" 0.0;
10544                visible: 1;
10545                color: 255 255 255 0;
10546             }
10547          }
10548          part { name: "disabler";
10549             type: RECT;
10550             scale: 1;
10551             description { state: "default" 0.0;
10552                rel1.to: "button_image";
10553                rel2.to: "button_image";
10554                align: 0.5 0.5;
10555                fixed: 1 1;
10556                min: 28 40;
10557                color: 0 0 0 0;
10558                visible: 0;
10559             }
10560             description { state: "disabled" 0.0;
10561                inherit: "default" 0.0;
10562                visible: 1;
10563             }
10564          }
10565       }
10566       programs {
10567          program { name: "button_click";
10568             signal: "mouse,down,1";
10569             source: "over2";
10570             action: SIGNAL_EMIT "elm,action,press" "";
10571             after: "button_click_anim";
10572          }
10573          program { name: "button_click_anim";
10574             action: STATE_SET "clicked" 0.0;
10575             target: "button_image";
10576             target: "elm.text";
10577          }
10578          program { name: "button_unpress";
10579             action: SIGNAL_EMIT "elm,action,unpress" "";
10580          }
10581          program { name: "button_mouseout_clicked";
10582             signal: "mouse,up,1";
10583             source: "over3";
10584             script {
10585                new st[31];
10586                new Float:vl;
10587                get_state(PART:"elm.text", st, 30, vl);
10588                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
10589                {
10590                   emit("elm,action,default,text,set", "");
10591                   set_state(PART:"elm.text", "visible", 0.0);
10592                }
10593                if(get_int(button_state) !=1)
10594                   set_state(PART:"button_image", "default", 0.0);
10595             }
10596             after: button_unpress;
10597          }
10598          program { name: "button_click2";
10599             signal: "mouse,down,1";
10600             source: "over3";
10601             action: STATE_SET "clicked" 0.0;
10602             target: "over3";
10603          }
10604          program { name: "button_unclick2";
10605             signal: "mouse,clicked,1";
10606             source: "over3";
10607             action: STATE_SET "default" 0.0;
10608             target: "over3";
10609          }
10610          program { name: "button_unclick3";
10611             signal: "mouse,clicked,1";
10612             source: "over2";
10613             action: SIGNAL_EMIT "elm,action,click" "";
10614          }
10615          program { name: "text_show";
10616             signal: "elm,state,text,visible";
10617             source: "elm";
10618             action: STATE_SET "visible" 0.0;
10619             target: "elm.text";
10620          }
10621          program { name: "text_hide";
10622             signal: "elm,state,text,hidden";
10623             source: "elm";
10624             action: STATE_SET "default" 0.0;
10625             target: "elm.text";
10626          }
10627
10628          program { name: "disable";
10629             signal: "elm,state,disabled";
10630             source: "elm";
10631             action: STATE_SET "disabled" 0.0;
10632             target: "button_image";
10633             target: "over1";
10634             target: "over2";
10635             target: "disabler";
10636             after: "disable_text";
10637          }
10638          program { name: "disable_text";
10639             script {
10640                new st[31];
10641                new Float:vl;
10642                get_state(PART:"elm.text", st, 30, vl);
10643                if (!strcmp(st, "visible"))
10644                   set_state(PART:"elm.text", "disabled_visible", 0.0);
10645                else
10646                   set_state(PART:"elm.text", "disabled", 0.0);
10647                set_int(button_state, 1);
10648             }
10649          }
10650          program { name: "enable";
10651             signal: "elm,state,enabled";
10652             source: "elm";
10653             action: STATE_SET "default" 0.0;
10654             target: "button_image";
10655             target: "over1";
10656             target: "over2";
10657             target: "disabler";
10658             after: "enable_text";
10659          }
10660          program { name: "enable_text";
10661             script {
10662                new st[31];
10663                new Float:vl;
10664                get_state(PART:"elm.text", st, 30, vl);
10665                if (!strcmp(st, "disabled_visible"))
10666                set_state(PART:"elm.text", "visible", 0.0);
10667                else
10668                set_state(PART:"elm.text", "default", 0.0);
10669                set_int(button_state, 0);
10670             }
10671          }
10672          program { name: "focused";
10673             //signal: "elm,action,focus";
10674             //source: "elm";
10675             action: STATE_SET "focused" 0.0;
10676             target: "button_image";
10677             target: "elm.text";
10678          }
10679          program { name: "unfocused";
10680             //signal: "elm,action,unfocus";
10681             //source: "elm";
10682             action: STATE_SET "default" 0.0;
10683             target: "button_image";
10684             action: STATE_SET "visible" 0.0;
10685             target: "elm.text";
10686          }
10687       }
10688    }
10689
10690 ///////////////////////////////////////////////////////////////////////////////////////
10691    group { name: "elm/button/base/navigationbar_backbutton/default";
10692       images {
10693          image: "00_winset_btn_prev.png" COMP;
10694          image: "00_winset_btn_prev_press.png" COMP;
10695       }
10696       parts {
10697          part { name: "button_image";
10698             type: RECT;
10699             mouse_events: 1;
10700             scale: 1;
10701             description { state: "default" 0.0;
10702                min: 67 40;
10703                color: 0 0 0 0;
10704             }
10705             description {
10706                state: "clicked" 0.0;
10707                inherit: "default" 0.0;
10708             }
10709             description {
10710                state: "disabled" 0.0;
10711                inherit: "default" 0.0;
10712             }
10713          }
10714          part {name: "padding_right";
10715             type: RECT;
10716             mouse_events: 0;
10717             description { state: "default" 0.0;
10718                align: 1 0;
10719                min: 1 0;
10720                rel1 { relative: 1 0.2; }
10721                rel2 { relative: 1 0.8; }
10722                fixed: 1 0;
10723                color: 238 223 194 255;
10724             }
10725          }
10726          part {name: "padding_before_right";
10727             type: RECT;
10728             mouse_events: 0;
10729             description { state: "default" 0.0;
10730                align: 1 0;
10731                min: 1 0;
10732                rel1 { relative: 0 0; to: "padding_right"; }
10733                rel2 { relative: 0 1; to: "padding_right"; }
10734                fixed: 1 0;
10735                color: 164 151 130 255;
10736             }
10737          }
10738          part { name: "button_center_part";
10739             mouse_events: 0;
10740             scale: 1;
10741             description { state: "default" 0.0;
10742                min: 22 20;
10743                max: 22 20;
10744                align: 0.5 0.5;
10745                rel2 { relative: 0 1; to_x: "padding_before_right"; }
10746                image {
10747                   normal: "00_winset_btn_prev.png";
10748                }
10749             }
10750             description {
10751                state: "clicked" 0.0;
10752                inherit: "default" 0.0;
10753                image.normal: "00_winset_btn_prev_press.png";
10754             }
10755          }
10756          part { name: "over1";
10757             type: RECT;
10758             mouse_events: 1;
10759             repeat_events: 1;
10760             ignore_flags: ON_HOLD;
10761             description { state: "default" 0.0;
10762                color: 0 0 0 0;
10763             }
10764          }
10765          part { name: "over2";
10766             mouse_events: 1;
10767             repeat_events: 1;
10768             description { state: "default" 0.0;
10769                color: 255 255 255 0;
10770             }
10771             description { state: "clicked" 0.0;
10772                inherit:  "default" 0.0;
10773                visible: 1;
10774                color: 255 255 255 0;
10775             }
10776          }
10777          part { name: "disabler";
10778             type: RECT;
10779             description { state: "default" 0.0;
10780                color: 0 0 0 0;
10781                visible: 0;
10782             }
10783             description { state: "disabled" 0.0;
10784                inherit: "default" 0.0;
10785                visible: 1;
10786             }
10787          }
10788       }
10789       programs {
10790          program { name: "button_click";
10791             signal: "mouse,down,1";
10792             source: "over1";
10793             action: SIGNAL_EMIT "elm,action,press" "";
10794             after: "button_click_anim";
10795          }
10796          program { name: "button_click_anim";
10797             action: STATE_SET "clicked" 0.0;
10798             target: "button_image";
10799             target: "button_center_part";
10800          }
10801          program { name: "button_unclick";
10802             signal: "mouse,up,1";
10803             source: "over2";
10804             action: SIGNAL_EMIT "elm,action,unpress" "";
10805             after: "button_unclick_anim";
10806          }
10807          program { name: "button_unclick_anim";
10808             action: STATE_SET "default" 0.0;
10809             target: "button_image";
10810             target: "button_center_part";
10811          }
10812          program { name: "button_click2";
10813             signal: "mouse,down,1";
10814             source: "over2";
10815             action: STATE_SET "clicked" 0.0;
10816             target: "over2";
10817          }
10818          program { name: "button_unclick2";
10819             signal: "mouse,clicked,1";
10820             source: "over1";
10821             action: STATE_SET "default" 0.0;
10822             target: "over1";
10823             after: "button_unclick3";
10824          }
10825          program { name: "button_unclick3";
10826             action: SIGNAL_EMIT "elm,action,click" "";
10827          }
10828          program { name: "disable";
10829             signal: "elm,state,disabled";
10830             source: "elm";
10831             action: STATE_SET "disabled" 0.0;
10832             target: "disabler";
10833             target: "button_image";
10834          }
10835          program { name: "enable";
10836             signal: "elm,state,enabled";
10837             source: "elm";
10838             action: STATE_SET "default" 0.0;
10839             target: "disabler";
10840             target: "button_image";
10841          }
10842       }
10843    }
10844
10845 /*
10846       Sound and Haptic
10847 */
10848 ///////////////////////////////////////////////////////////////////////////////////////
10849    group { name: "elm/button/base/sound/default";
10850       images {
10851          image: "00_button_03_normal.png" COMP;
10852          image: "00_button_03_press.png" COMP;
10853          image: "00_button_03_focus.png" COMP;
10854       }
10855       script {
10856          public button_state = 0; //0:enabled, 1: disabled
10857       }
10858       parts {
10859          part { name: "button_image";
10860             mouse_events: 1;
10861             scale: 1;
10862             description { state: "default" 0.0;
10863                min: 16 50;
10864                image {
10865                   normal: "00_button_03_normal.png";
10866                   border: 7 7 7 7;
10867                   border_scale: 1;
10868                }
10869             }
10870             description { state: "clicked" 0.0;
10871                inherit: "default" 0.0;
10872                image.normal: "00_button_03_press.png";
10873             }
10874             description { state: "disabled" 0.0;
10875                inherit:  "default" 0.0;
10876             }
10877             description { state: "focused" 0.0;
10878                inherit: "default" 0.0;
10879                image.normal: "00_button_03_focus.png";
10880             }
10881          }
10882          part {
10883             name: "padding_left";
10884             type: RECT;
10885             scale: 1;
10886             mouse_events: 0;
10887             description { state: "default" 0.0;
10888                align: 0.0 0.0;
10889                rel1.relative: 0.0 0.0;
10890                rel2.relative: 0.0 1.0;
10891                min: 5 5;
10892                fixed: 1 0;
10893                color: 0 0 0 0;
10894             }
10895          }
10896          part {
10897             name: "padding_right";
10898             type: RECT;
10899             scale: 1;
10900             mouse_events: 0;
10901             description { state: "default" 0.0;
10902                align: 1.0 0.0;
10903                rel1.relative: 1.0 0.0;
10904                rel2.relative: 1.0 1.0;
10905                min: 5 5;
10906                fixed: 1 0;
10907                color: 0 0 0 0;
10908             }
10909          }
10910          part {
10911             name: "padding_top";
10912             type: RECT;
10913             scale: 1;
10914             mouse_events: 0;
10915             description { state: "default" 0.0;
10916                align: 0.0 0.0;
10917                rel1.relative: 0.0 0.0;
10918                rel2.relative: 1.0 0.0;
10919                min: 5 5;
10920                fixed: 0 1;
10921                color: 0 0 0 0;
10922             }
10923          }
10924          part {
10925             name: "padding_bottom";
10926             type: RECT;
10927             scale: 1;
10928             mouse_events: 0;
10929             description { state: "default" 0.0;
10930                align: 1.0 1.0;
10931                rel1.relative: 0.0 1.0;
10932                rel2.relative: 1.0 1.0;
10933                min: 5 5;
10934                fixed: 0 1;
10935                color: 0 0 0 0;
10936             }
10937          }
10938          part {
10939             name: "icon_rect";
10940             type: RECT;
10941             scale: 1;
10942             mouse_events: 0;
10943             description { state: "default" 0.0;
10944                visible: 1;
10945                min: 0 40;
10946                fixed: 1 0;
10947                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
10948                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
10949                align: 0.0 0.5;
10950                color: 0 0 0 0;
10951             }
10952          }
10953          part {
10954             name: "padding_icon_text";
10955             type: RECT;
10956             scale: 1;
10957             mouse_events: 0;
10958             description { state: "default" 0.0; //when only icon or no icon is there
10959                align: 0.0 0.0;
10960                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
10961                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
10962                fixed: 1 0;
10963                min: 0 0;
10964                color: 0 0 0 0;
10965             }
10966             description { state: "icononly" 0.0;
10967                inherit: "default" 0.0;
10968             }
10969             description { state: "visible" 0.0; //when icon is visible
10970                align: 0.0 0.0;
10971                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
10972                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
10973                fixed: 1 0;
10974                min: 5 0;
10975                color: 0 0 0 0;
10976             }
10977          }
10978          part { name: "elm.swallow.content";
10979             type: SWALLOW;
10980             scale: 1;
10981             description { state: "default" 0.0;
10982                visible: 0;
10983                align: 0.0 0.5;
10984                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
10985                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
10986                fixed: 1 0;
10987             }
10988             description { state: "visible" 0.0;
10989                fixed: 1 0;
10990                visible: 1;
10991                align: 0.0 0.5;
10992                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
10993                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
10994                aspect: 1.0 1.0;
10995                aspect_preference: VERTICAL;
10996             }
10997             description { state: "icononly" 0.0;;
10998                visible: 1;
10999                min: 40 40;
11000                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11001                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
11002                align: 0.5 0.5;
11003                aspect: 1.0 1.0;
11004                aspect_preference: VERTICAL;
11005             }
11006          }
11007          part { name: "elm.text";
11008             type: TEXT;
11009             //effect: SHADOW;
11010             mouse_events:  0;
11011             scale: 1;
11012             description { state: "default" 0.0;
11013                visible: 0;
11014                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
11015                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
11016                align: 0.5 0.5;
11017                color: 90 73 40 255;
11018                color2: 255 255 255 255;
11019                text {
11020                   font: FONT_MED;
11021                   size: 24;
11022                   min:  0 0;
11023                   align: 0.5 0.5;
11024                   max: 1 0;
11025                }
11026             }
11027             description { state: "visible" 0.0;
11028                inherit: "default" 0.0;
11029                visible: 1;
11030                min: 90 40;
11031             }
11032             description { state: "clicked" 0.0;
11033                inherit: "default" 0.0;
11034                visible: 1;
11035                min: 0 0;
11036                color: 255 255 255 255;
11037                color2: 0 0 0 102;
11038             }
11039             description { state: "disabled" 0.0;
11040                inherit: "default" 0.0;
11041                color: 0 0 0 128;
11042                color3: 0 0 0 0;
11043             }
11044             description { state: "disabled_visible" 0.0;
11045                inherit: "default" 0.0;
11046                color: 0 0 0 128;
11047                color3: 0 0 0 0;
11048                visible: 1;
11049             }
11050             description { state: "focused" 0.0;
11051                inherit: "default" 0.0;
11052                visible: 1;
11053                min: 0 0;
11054                color: 255 255 255 255;
11055                color2: 0 0 0 102;
11056             }
11057          }
11058          part { name: "over2";
11059             type: RECT;
11060             mouse_events: 1;
11061             repeat_events: 1;
11062             ignore_flags: ON_HOLD;
11063             description { state: "default" 0.0;
11064                color: 0 0 0 0;
11065             }
11066             description { state: "disabled" 0.0;
11067                inherit:  "default" 0.0;
11068                visible: 0;
11069             }
11070          }
11071          part { name: "over3";
11072             type: RECT;
11073             mouse_events: 1;
11074             repeat_events: 1;
11075             description { state: "default" 0.0;
11076                color: 0 0 0 0;
11077             }
11078             description { state: "clicked" 0.0;
11079                inherit:  "default" 0.0;
11080                visible: 1;
11081             }
11082          }
11083          part { name: "disabler";
11084             type: RECT;
11085             description { state: "default" 0.0;
11086                color: 0 0 0 0;
11087                visible: 0;
11088             }
11089             description { state: "disabled" 0.0;
11090                inherit: "default" 0.0;
11091                visible: 1;
11092             }
11093          }
11094       }
11095       programs {
11096          program { name: "button_click";
11097             signal: "mouse,down,1";
11098             source: "over2";
11099             action: SIGNAL_EMIT "elm,action,press" "";
11100             after: "button_click_anim";
11101             //after:touch_sound ;
11102          }
11103          /*
11104          program { name: touch_sound;
11105                action: TOUCH_SOUND "button-pressed.wav" 2 ;
11106          }
11107          */
11108          program { name: "button_click_anim";
11109             action: STATE_SET "clicked" 0.0;
11110             target: "button_image";
11111             after: "text_clicked";
11112          }
11113          program { name: "text_clicked";
11114             script {
11115                new st[31];
11116                new Float:vl;
11117                get_state(PART:"elm.text", st, 30, vl);
11118                if (!strcmp(st, "visible"))
11119                   set_state(PART:"elm.text", "clicked", 0.0);
11120             }
11121          }
11122          program { name: "button_unpress";
11123             action: SIGNAL_EMIT "elm,action,unpress" "";
11124          }
11125          program { name: "button_mouseout_clicked";
11126             signal: "mouse,up,1";
11127             source: "over3";
11128             script {
11129                new st[31];
11130                new Float:vl;
11131                get_state(PART:"elm.swallow.content", st, 30, vl);
11132                if (strcmp(st, "icononly"))
11133                {
11134                   emit("elm,action,default,text,set", "");
11135                   set_state(PART:"elm.text", "visible", 0.0);
11136                }
11137                if(get_int(button_state) !=1)
11138                   set_state(PART:"button_image", "default", 0.0);
11139             }
11140             after: button_unpress;
11141          }
11142          program { name: "button_click2";
11143             signal: "mouse,down,1";
11144             source: "over3";
11145             action: STATE_SET "clicked" 0.0;
11146             target: "over3";
11147          }
11148          program { name: "button_unclick2";
11149             signal: "mouse,clicked,1";
11150             source: "over3";
11151             action: STATE_SET "default" 0.0;
11152             target: "over3";
11153          }
11154          program { name: "button_unclick3";
11155             signal: "mouse,clicked,1";
11156             source: "over2";
11157             action: SIGNAL_EMIT "elm,action,click" "";
11158          }
11159          program { name: "text_show";
11160             signal: "elm,state,text,visible";
11161             source: "elm";
11162             script {
11163                new st[31];
11164                new Float:vl;
11165                get_state(PART:"elm.swallow.content", st, 30, vl);
11166                if (!strcmp(st, "icononly"))
11167                {
11168                   set_state(PART:"elm.swallow.content", "visible", 0.0);
11169                   set_state(PART:"padding_icon_text", "visible", 0.0);
11170                }
11171                set_state(PART:"elm.text", "visible", 0.0);
11172             }
11173          }
11174          program { name: "text_hide";
11175             signal: "elm,state,text,hidden";
11176             source: "elm";
11177             script {
11178                new st[31];
11179                new Float:vl;
11180                get_state(PART:"elm.swallow.content", st, 30, vl);
11181                if (!strcmp(st, "visible"))
11182                {
11183                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
11184                   set_state(PART:"padding_icon_text", "icononly", 0.0);
11185                }
11186                set_state(PART:"elm.text", "default", 0.0);
11187             }
11188          }
11189          program { name: "icon_show";
11190             signal: "elm,state,icon,visible";
11191             source: "elm";
11192             script {
11193                new st[31];
11194                new Float:vl;
11195                get_state(PART:"elm.text", st, 30, vl);
11196                if (!strcmp(st, "visible"))
11197                {
11198                   set_state(PART:"elm.swallow.content", "visible", 0.0);
11199                   set_state(PART:"padding_icon_text", "visible", 0.0);
11200                }
11201                else
11202                {
11203                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
11204                   set_state(PART:"padding_icon_text", "icononly", 0.0);
11205                }
11206             }
11207          }
11208          program { name: "icon_hide";
11209             signal: "elm,state,icon,hidden";
11210             source: "elm";
11211             action:  STATE_SET "default" 0.0;
11212             target: "elm.swallow.content";
11213          }
11214          program { name: "disable";
11215             signal: "elm,state,disabled";
11216             source: "elm";
11217             action: STATE_SET "disabled" 0.0;
11218             target: "button_image";
11219             target: "over2";
11220             target: "disabler";
11221             after: "disable_text";
11222          }
11223          program { name: "disable_text";
11224             script {
11225                new st[31];
11226                new Float:vl;
11227                get_state(PART:"elm.text", st, 30, vl);
11228                if (!strcmp(st, "visible"))
11229                   set_state(PART:"elm.text", "disabled_visible", 0.0);
11230                else
11231                   set_state(PART:"elm.text", "disabled", 0.0);
11232                set_int(button_state, 1);
11233             }
11234          }
11235          program { name: "enable";
11236             signal: "elm,state,enabled";
11237             source: "elm";
11238             action: STATE_SET "default" 0.0;
11239             target: "button_image";
11240             target: "over2";
11241             target: "disabler";
11242             after: "enable_text";
11243          }
11244          program { name: "enable_text";
11245             script {
11246                new st[31];
11247                new Float:vl;
11248                get_state(PART:"elm.text", st, 30, vl);
11249                if (!strcmp(st, "disabled_visible"))
11250                   set_state(PART:"elm.text", "visible", 0.0);
11251                else
11252                   set_state(PART:"elm.text", "default", 0.0);
11253                set_int(button_state, 0);
11254             }
11255          }
11256          program { name: "focused";
11257             //signal: "elm,action,focus";
11258             //source: "elm";
11259             action: STATE_SET "focused" 0.0;
11260             target: "button_image";
11261             target: "elm.text";
11262          }
11263          program { name: "unfocused";
11264             //signal: "elm,action,unfocus";
11265             //source: "elm";
11266             action: STATE_SET "default" 0.0;
11267             target: "button_image";
11268             after: "unfocus_text";
11269          }
11270          program { name: "unfocus_text";
11271             action: STATE_SET "visible" 0.0;
11272             target: "elm.text";
11273          }
11274       }
11275    }
11276
11277 ///////////////////////////////////////////////////////////////////////////////////////
11278    group { name: "elm/button/haptic/default";
11279       images {
11280          image: "00_button_03_normal.png" COMP;
11281          image: "00_button_03_press.png" COMP;
11282          image: "00_button_03_focus.png" COMP;
11283       }
11284       script {
11285          public button_state = 0; //0:enabled, 1: disabled
11286       }
11287       parts {
11288          part { name: "button_image";
11289             mouse_events: 1;
11290             scale: 1;
11291             description { state: "default" 0.0;
11292                min: 16 50;
11293                image {
11294                   normal: "00_button_03_normal.png";
11295                   border: 7 7 7 7;
11296                   border_scale: 1;
11297                }
11298             }
11299             description { state: "clicked" 0.0;
11300                inherit: "default" 0.0;
11301                image.normal: "00_button_03_press.png";
11302             }
11303             description { state: "disabled" 0.0;
11304                inherit:  "default" 0.0;
11305             }
11306             description { state: "focused" 0.0;
11307                inherit: "default" 0.0;
11308                image.normal: "00_button_03_focus.png";
11309             }
11310          }
11311          part {
11312             name: "padding_left";
11313             type: RECT;
11314             scale: 1;
11315             mouse_events: 0;
11316             description { state: "default" 0.0;
11317                align: 0.0 0.0;
11318                rel1.relative: 0.0 0.0;
11319                rel2.relative: 0.0 1.0;
11320                min: 5 5;
11321                fixed: 1 0;
11322                color: 0 0 0 0;
11323             }
11324          }
11325          part {
11326             name: "padding_right";
11327             type: RECT;
11328             scale: 1;
11329             mouse_events: 0;
11330             description { state: "default" 0.0;
11331                align: 1.0 0.0;
11332                rel1.relative: 1.0 0.0;
11333                rel2.relative: 1.0 1.0;
11334                min: 5 5;
11335                fixed: 1 0;
11336                color: 0 0 0 0;
11337             }
11338          }
11339          part {
11340             name: "padding_top";
11341             type: RECT;
11342             scale: 1;
11343             mouse_events: 0;
11344             description { state: "default" 0.0;
11345                align: 0.0 0.0;
11346                rel1.relative: 0.0 0.0;
11347                rel2.relative: 1.0 0.0;
11348                min: 5 5;
11349                fixed: 0 1;
11350                color: 0 0 0 0;
11351             }
11352          }
11353          part {
11354             name: "padding_bottom";
11355             type: RECT;
11356             scale: 1;
11357             mouse_events: 0;
11358             description { state: "default" 0.0;
11359                align: 1.0 1.0;
11360                rel1.relative: 0.0 1.0;
11361                rel2.relative: 1.0 1.0;
11362                min: 5 5;
11363                fixed: 0 1;
11364                color: 0 0 0 0;
11365             }
11366          }
11367          part {
11368             name: "icon_rect";
11369             type: RECT;
11370             scale: 1;
11371             mouse_events: 0;
11372             description { state: "default" 0.0;
11373                visible: 1;
11374                min: 0 40;
11375                fixed: 1 0;
11376                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
11377                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
11378                align: 0.0 0.5;
11379                color: 0 0 0 0;
11380             }
11381          }
11382          part {
11383             name: "padding_icon_text";
11384             type: RECT;
11385             scale: 1;
11386             mouse_events: 0;
11387             description { state: "default" 0.0; //when only icon or no icon is there
11388                align: 0.0 0.0;
11389                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
11390                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
11391                fixed: 1 0;
11392                min: 0 0;
11393                color: 0 0 0 0;
11394             }
11395             description { state: "icononly" 0.0;
11396                inherit: "default" 0.0;
11397             }
11398             description { state: "visible" 0.0; //when icon is visible
11399                align: 0.0 0.0;
11400                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
11401                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
11402                fixed: 1 0;
11403                min: 5 0;
11404                color: 0 0 0 0;
11405             }
11406          }
11407          part { name: "elm.swallow.content";
11408             type: SWALLOW;
11409             scale: 1;
11410             description { state: "default" 0.0;
11411                visible: 0;
11412                align: 0.0 0.5;
11413                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11414                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
11415                fixed: 1 0;
11416             }
11417             description { state: "visible" 0.0;
11418                fixed: 1 0;
11419                visible: 1;
11420                align: 0.0 0.5;
11421                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11422                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
11423                aspect: 1.0 1.0;
11424                aspect_preference: VERTICAL;
11425             }
11426             description { state: "icononly" 0.0;;
11427                visible: 1;
11428                min: 40 40;
11429                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11430                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
11431                align: 0.5 0.5;
11432                aspect: 1.0 1.0;
11433                aspect_preference: VERTICAL;
11434             }
11435          }
11436          part { name: "elm.text";
11437             type: TEXT;
11438             //effect: SHADOW;
11439             mouse_events:  0;
11440             scale: 1;
11441             description { state: "default" 0.0;
11442                visible: 0;
11443                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
11444                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
11445                align: 0.5 0.5;
11446                color: 90 73 40 255;
11447                color2: 255 255 255 255;
11448                text {
11449                   font: FONT_MED;
11450                   size: 24;
11451                   min:  0 0;
11452                   align: 0.5 0.5;
11453                   max: 1 0;
11454                }
11455             }
11456             description { state: "visible" 0.0;
11457                inherit: "default" 0.0;
11458                visible: 1;
11459                min: 90 40;
11460             }
11461             description { state: "clicked" 0.0;
11462                inherit: "default" 0.0;
11463                visible: 1;
11464                min: 0 0;
11465                color: 255 255 255 255;
11466                color2: 0 0 0 102;
11467             }
11468             description { state: "disabled" 0.0;
11469                inherit: "default" 0.0;
11470                color: 0 0 0 128;
11471                color3: 0 0 0 0;
11472             }
11473             description { state: "disabled_visible" 0.0;
11474                inherit: "default" 0.0;
11475                color: 0 0 0 128;
11476                color3: 0 0 0 0;
11477                visible: 1;
11478             }
11479             description { state: "focused" 0.0;
11480                inherit: "default" 0.0;
11481                visible: 1;
11482                min: 0 0;
11483                color: 255 255 255 255;
11484                color2: 0 0 0 102;
11485             }
11486          }
11487          part { name: "over2";
11488             type: RECT;
11489             mouse_events: 1;
11490             repeat_events: 1;
11491             ignore_flags: ON_HOLD;
11492             description { state: "default" 0.0;
11493                color: 0 0 0 0;
11494             }
11495             description { state: "disabled" 0.0;
11496                inherit:  "default" 0.0;
11497                visible: 0;
11498             }
11499          }
11500          part { name: "over3";
11501             type: RECT;
11502             mouse_events: 1;
11503             repeat_events: 1;
11504             description { state: "default" 0.0;
11505                color: 0 0 0 0;
11506             }
11507             description { state: "clicked" 0.0;
11508                inherit:  "default" 0.0;
11509                visible: 1;
11510             }
11511          }
11512          part { name: "disabler";
11513             type: RECT;
11514             description { state: "default" 0.0;
11515                color: 0 0 0 0;
11516                visible: 0;
11517             }
11518             description { state: "disabled" 0.0;
11519                inherit: "default" 0.0;
11520                visible: 1;
11521             }
11522          }
11523       }
11524       programs {
11525          program { name: "button_click";
11526             signal: "mouse,down,1";
11527             source: "over2";
11528             action: SIGNAL_EMIT "elm,action,press" "";
11529             after: "button_click_anim";
11530          }
11531          program { name: "button_click_anim";
11532             action: STATE_SET "clicked" 0.0;
11533             target: "button_image";
11534             after: "text_clicked";
11535          }
11536          program { name: "text_clicked";
11537             script {
11538                new st[31];
11539                new Float:vl;
11540                get_state(PART:"elm.text", st, 30, vl);
11541                if (!strcmp(st, "visible"))
11542                   set_state(PART:"elm.text", "clicked", 0.0);
11543             }
11544          }
11545          program { name: "button_unpress";
11546             action: SIGNAL_EMIT "elm,action,unpress" "";
11547          }
11548          program { name: "button_mouseout_clicked";
11549             signal: "mouse,up,1";
11550             source: "over3";
11551             script {
11552                new st[31];
11553                new Float:vl;
11554                get_state(PART:"elm.swallow.content", st, 30, vl);
11555                if (strcmp(st, "icononly"))
11556                {
11557                   emit("elm,action,default,text,set", "");
11558                   set_state(PART:"elm.text", "visible", 0.0);
11559                }
11560                if(get_int(button_state) !=1)
11561                   set_state(PART:"button_image", "default", 0.0);
11562             }
11563             after: button_unpress;
11564          }
11565          program { name: "button_click2";
11566             signal: "mouse,down,1";
11567             source: "over3";
11568             action: STATE_SET "clicked" 0.0;
11569             target: "over3";
11570          }
11571          program { name: "button_unclick2";
11572             signal: "mouse,clicked,1";
11573             source: "over3";
11574             action: STATE_SET "default" 0.0;
11575             target: "over3";
11576          }
11577          program { name: "button_unclick3";
11578             signal: "mouse,clicked,1";
11579             source: "over2";
11580             action: SIGNAL_EMIT "elm,action,click" "";
11581          }
11582          program { name: "text_show";
11583             signal: "elm,state,text,visible";
11584             source: "elm";
11585             script {
11586                new st[31];
11587                new Float:vl;
11588                get_state(PART:"elm.swallow.content", st, 30, vl);
11589                if (!strcmp(st, "icononly"))
11590                {
11591                   set_state(PART:"elm.swallow.content", "visible", 0.0);
11592                   set_state(PART:"padding_icon_text", "visible", 0.0);
11593                }
11594                set_state(PART:"elm.text", "visible", 0.0);
11595             }
11596          }
11597          program { name: "text_hide";
11598             signal: "elm,state,text,hidden";
11599             source: "elm";
11600             script {
11601                new st[31];
11602                new Float:vl;
11603                get_state(PART:"elm.swallow.content", st, 30, vl);
11604                if (!strcmp(st, "visible"))
11605                {
11606                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
11607                   set_state(PART:"padding_icon_text", "icononly", 0.0);
11608                }
11609                set_state(PART:"elm.text", "default", 0.0);
11610             }
11611          }
11612          program { name: "icon_show";
11613             signal: "elm,state,icon,visible";
11614             source: "elm";
11615             script {
11616                new st[31];
11617                new Float:vl;
11618                get_state(PART:"elm.text", st, 30, vl);
11619                if (!strcmp(st, "visible"))
11620                {
11621                   set_state(PART:"elm.swallow.content", "visible", 0.0);
11622                   set_state(PART:"padding_icon_text", "visible", 0.0);
11623                }
11624                else
11625                {
11626                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
11627                   set_state(PART:"padding_icon_text", "icononly", 0.0);
11628                }
11629             }
11630          }
11631          program { name: "icon_hide";
11632             signal: "elm,state,icon,hidden";
11633             source: "elm";
11634             action:  STATE_SET "default" 0.0;
11635             target: "elm.swallow.content";
11636          }
11637          program { name: "disable";
11638             signal: "elm,state,disabled";
11639             source: "elm";
11640             action: STATE_SET "disabled" 0.0;
11641             target: "button_image";
11642             target: "over2";
11643             target: "disabler";
11644             after: "disable_text";
11645          }
11646          program { name: "disable_text";
11647             script {
11648                new st[31];
11649                new Float:vl;
11650                get_state(PART:"elm.text", st, 30, vl);
11651                if (!strcmp(st, "visible"))
11652                   set_state(PART:"elm.text", "disabled_visible", 0.0);
11653                else
11654                   set_state(PART:"elm.text", "disabled", 0.0);
11655                set_int(button_state, 1);
11656             }
11657          }
11658          program { name: "enable";
11659             signal: "elm,state,enabled";
11660             source: "elm";
11661             action: STATE_SET "default" 0.0;
11662             target: "button_image";
11663             target: "over2";
11664             target: "disabler";
11665             after: "enable_text";
11666          }
11667          program { name: "enable_text";
11668             script {
11669                new st[31];
11670                new Float:vl;
11671                get_state(PART:"elm.text", st, 30, vl);
11672                if (!strcmp(st, "disabled_visible"))
11673                   set_state(PART:"elm.text", "visible", 0.0);
11674                else
11675                   set_state(PART:"elm.text", "default", 0.0);
11676                set_int(button_state, 0);
11677             }
11678          }
11679          program { name: "focused";
11680             //signal: "elm,action,focus";
11681             //source: "elm";
11682             action: STATE_SET "focused" 0.0;
11683             target: "button_image";
11684             target: "elm.text";
11685          }
11686          program { name: "unfocused";
11687             //signal: "elm,action,unfocus";
11688             //source: "elm";
11689             action: STATE_SET "default" 0.0;
11690             target: "button_image";
11691             after: "unfocus_text";
11692          }
11693          program { name: "unfocus_text";
11694             action: STATE_SET "visible" 0.0;
11695             target: "elm.text";
11696          }
11697       }
11698    }
11699
11700 ///////////////////////////////////////////////////////////////////////////////////////
11701    group { name: "elm/button/base/sound_haptic/default";
11702       images {
11703          image: "00_button_03_normal.png" COMP;
11704          image: "00_button_03_press.png" COMP;
11705          image: "00_button_03_focus.png" COMP;
11706       }
11707       script {
11708          public button_state = 0; //0:enabled, 1: disabled
11709       }
11710       parts {
11711          part { name: "button_image";
11712             mouse_events: 1;
11713             scale: 1;
11714             description { state: "default" 0.0;
11715                min: 16 50;
11716                image {
11717                   normal: "00_button_03_normal.png";
11718                   border: 7 7 7 7;
11719                   border_scale: 1;
11720                }
11721             }
11722             description { state: "clicked" 0.0;
11723                inherit: "default" 0.0;
11724                image.normal: "00_button_03_press.png";
11725             }
11726             description { state: "disabled" 0.0;
11727                inherit:  "default" 0.0;
11728             }
11729             description { state: "focused" 0.0;
11730                inherit: "default" 0.0;
11731                image.normal: "00_button_03_focus.png";
11732             }
11733          }
11734          part {
11735             name: "padding_left";
11736             type: RECT;
11737             scale: 1;
11738             mouse_events: 0;
11739             description { state: "default" 0.0;
11740                align: 0.0 0.0;
11741                rel1.relative: 0.0 0.0;
11742                rel2.relative: 0.0 1.0;
11743                min: 5 5;
11744                fixed: 1 0;
11745                color: 0 0 0 0;
11746             }
11747          }
11748          part {
11749             name: "padding_right";
11750             type: RECT;
11751             scale: 1;
11752             mouse_events: 0;
11753             description { state: "default" 0.0;
11754                align: 1.0 0.0;
11755                rel1.relative: 1.0 0.0;
11756                rel2.relative: 1.0 1.0;
11757                min: 5 5;
11758                fixed: 1 0;
11759                color: 0 0 0 0;
11760             }
11761          }
11762          part {
11763             name: "padding_top";
11764             type: RECT;
11765             scale: 1;
11766             mouse_events: 0;
11767             description { state: "default" 0.0;
11768                align: 0.0 0.0;
11769                rel1.relative: 0.0 0.0;
11770                rel2.relative: 1.0 0.0;
11771                min: 5 5;
11772                fixed: 0 1;
11773                color: 0 0 0 0;
11774             }
11775          }
11776          part {
11777             name: "padding_bottom";
11778             type: RECT;
11779             scale: 1;
11780             mouse_events: 0;
11781             description { state: "default" 0.0;
11782                align: 1.0 1.0;
11783                rel1.relative: 0.0 1.0;
11784                rel2.relative: 1.0 1.0;
11785                min: 5 5;
11786                fixed: 0 1;
11787                color: 0 0 0 0;
11788             }
11789          }
11790          part {
11791             name: "icon_rect";
11792             type: RECT;
11793             scale: 1;
11794             mouse_events: 0;
11795             description { state: "default" 0.0;
11796                visible: 1;
11797                min: 0 40;
11798                fixed: 1 0;
11799                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
11800                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
11801                align: 0.0 0.5;
11802                color: 0 0 0 0;
11803             }
11804          }
11805          part {
11806             name: "padding_icon_text";
11807             type: RECT;
11808             scale: 1;
11809             mouse_events: 0;
11810             description { state: "default" 0.0; //when only icon or no icon is there
11811                align: 0.0 0.0;
11812                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
11813                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
11814                fixed: 1 0;
11815                min: 0 0;
11816                color: 0 0 0 0;
11817             }
11818             description { state: "icononly" 0.0;
11819                inherit: "default" 0.0;
11820             }
11821             description { state: "visible" 0.0; //when icon is visible
11822                align: 0.0 0.0;
11823                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
11824                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
11825                fixed: 1 0;
11826                min: 5 0;
11827                color: 0 0 0 0;
11828             }
11829          }
11830          part { name: "elm.swallow.content";
11831             type: SWALLOW;
11832             scale: 1;
11833             description { state: "default" 0.0;
11834                visible: 0;
11835                align: 0.0 0.5;
11836                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11837                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
11838                fixed: 1 0;
11839             }
11840             description { state: "visible" 0.0;
11841                fixed: 1 0;
11842                visible: 1;
11843                align: 0.0 0.5;
11844                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11845                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
11846                aspect: 1.0 1.0;
11847                aspect_preference: VERTICAL;
11848             }
11849             description { state: "icononly" 0.0;;
11850                visible: 1;
11851                min: 40 40;
11852                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
11853                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
11854                align: 0.5 0.5;
11855                aspect: 1.0 1.0;
11856                aspect_preference: VERTICAL;
11857             }
11858          }
11859          part { name: "elm.text";
11860             type: TEXT;
11861             //effect: SHADOW;
11862             mouse_events:  0;
11863             scale: 1;
11864             description { state: "default" 0.0;
11865                visible: 0;
11866                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
11867                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
11868                align: 0.5 0.5;
11869                color: 90 73 40 255;
11870                color2: 255 255 255 255;
11871                text {
11872                   font: FONT_MED;
11873                   size: 24;
11874                   min:  0 0;
11875                   align: 0.5 0.5;
11876                   max: 1 0;
11877                }
11878             }
11879             description { state: "visible" 0.0;
11880                inherit: "default" 0.0;
11881                visible: 1;
11882                min: 90 40;
11883             }
11884             description { state: "clicked" 0.0;
11885                inherit: "default" 0.0;
11886                visible: 1;
11887                min: 0 0;
11888                color: 255 255 255 255;
11889                color2: 0 0 0 102;
11890             }
11891             description { state: "disabled" 0.0;
11892                inherit: "default" 0.0;
11893                color: 0 0 0 128;
11894                color3: 0 0 0 0;
11895             }
11896             description { state: "disabled_visible" 0.0;
11897                inherit: "default" 0.0;
11898                color: 0 0 0 128;
11899                color3: 0 0 0 0;
11900                visible: 1;
11901             }
11902             description { state: "focused" 0.0;
11903                inherit: "default" 0.0;
11904                visible: 1;
11905                min: 0 0;
11906                color: 255 255 255 255;
11907                color2: 0 0 0 102;
11908             }
11909          }
11910          part { name: "over2";
11911             type: RECT;
11912             mouse_events: 1;
11913             repeat_events: 1;
11914             ignore_flags: ON_HOLD;
11915             description { state: "default" 0.0;
11916                color: 0 0 0 0;
11917             }
11918             description { state: "disabled" 0.0;
11919                inherit:  "default" 0.0;
11920                visible: 0;
11921             }
11922          }
11923          part { name: "over3";
11924             type: RECT;
11925             mouse_events: 1;
11926             repeat_events: 1;
11927             description { state: "default" 0.0;
11928                color: 0 0 0 0;
11929             }
11930             description { state: "clicked" 0.0;
11931                inherit:  "default" 0.0;
11932                visible: 1;
11933             }
11934          }
11935          part { name: "disabler";
11936             type: RECT;
11937             description { state: "default" 0.0;
11938                color: 0 0 0 0;
11939                visible: 0;
11940             }
11941             description { state: "disabled" 0.0;
11942                inherit: "default" 0.0;
11943                visible: 1;
11944             }
11945          }
11946       }
11947       programs {
11948          program { name: "button_click";
11949             signal: "mouse,down,1";
11950             source: "over2";
11951             action: SIGNAL_EMIT "elm,action,press" "";
11952             after: "button_click_anim";
11953             //after:touch_sound ;
11954          }
11955          /*
11956          program { name: touch_sound;
11957                action: TOUCH_SOUND "Waterdrop.wav" 2 ;
11958          }
11959          */
11960          program { name: "button_click_anim";
11961             action: STATE_SET "clicked" 0.0;
11962             target: "button_image";
11963             after: "text_clicked";
11964          }
11965          program { name: "text_clicked";
11966             script {
11967                new st[31];
11968                new Float:vl;
11969                get_state(PART:"elm.text", st, 30, vl);
11970                if (!strcmp(st, "visible"))
11971                   set_state(PART:"elm.text", "clicked", 0.0);
11972             }
11973          }
11974          program { name: "button_unpress";
11975             action: SIGNAL_EMIT "elm,action,unpress" "";
11976          }
11977          program { name: "button_mouseout_clicked";
11978             signal: "mouse,up,1";
11979             source: "over3";
11980             script {
11981                new st[31];
11982                new Float:vl;
11983                get_state(PART:"elm.swallow.content", st, 30, vl);
11984                if (strcmp(st, "icononly"))
11985                {
11986                   emit("elm,action,default,text,set", "");
11987                   set_state(PART:"elm.text", "visible", 0.0);
11988                }
11989                if(get_int(button_state) !=1)
11990                   set_state(PART:"button_image", "default", 0.0);
11991             }
11992             after: button_unpress;
11993          }
11994          program { name: "button_click2";
11995             signal: "mouse,down,1";
11996             source: "over3";
11997             action: STATE_SET "clicked" 0.0;
11998             target: "over3";
11999          }
12000          program { name: "button_unclick2";
12001             signal: "mouse,clicked,1";
12002             source: "over3";
12003             action: STATE_SET "default" 0.0;
12004             target: "over3";
12005          }
12006          program { name: "button_unclick3";
12007             signal: "mouse,clicked,1";
12008             source: "over2";
12009             action: SIGNAL_EMIT "elm,action,click" "";
12010          }
12011          program { name: "text_show";
12012             signal: "elm,state,text,visible";
12013             source: "elm";
12014             script {
12015                new st[31];
12016                new Float:vl;
12017                get_state(PART:"elm.swallow.content", st, 30, vl);
12018                if (!strcmp(st, "icononly"))
12019                {
12020                   set_state(PART:"elm.swallow.content", "visible", 0.0);
12021                   set_state(PART:"padding_icon_text", "visible", 0.0);
12022                }
12023                set_state(PART:"elm.text", "visible", 0.0);
12024             }
12025          }
12026          program { name: "text_hide";
12027             signal: "elm,state,text,hidden";
12028             source: "elm";
12029             script {
12030                new st[31];
12031                new Float:vl;
12032                get_state(PART:"elm.swallow.content", st, 30, vl);
12033                if (!strcmp(st, "visible"))
12034                {
12035                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
12036                   set_state(PART:"padding_icon_text", "icononly", 0.0);
12037                }
12038                set_state(PART:"elm.text", "default", 0.0);
12039             }
12040          }
12041          program { name: "icon_show";
12042             signal: "elm,state,icon,visible";
12043             source: "elm";
12044             script {
12045                new st[31];
12046                new Float:vl;
12047                get_state(PART:"elm.text", st, 30, vl);
12048                if (!strcmp(st, "visible"))
12049                {
12050                   set_state(PART:"elm.swallow.content", "visible", 0.0);
12051                   set_state(PART:"padding_icon_text", "visible", 0.0);
12052                }
12053                else
12054                {
12055                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
12056                   set_state(PART:"padding_icon_text", "icononly", 0.0);
12057                }
12058             }
12059          }
12060          program { name: "icon_hide";
12061             signal: "elm,state,icon,hidden";
12062             source: "elm";
12063             action:  STATE_SET "default" 0.0;
12064             target: "elm.swallow.content";
12065          }
12066          program { name: "disable";
12067             signal: "elm,state,disabled";
12068             source: "elm";
12069             action: STATE_SET "disabled" 0.0;
12070             target: "button_image";
12071             target: "over2";
12072             target: "disabler";
12073             after: "disable_text";
12074          }
12075          program { name: "disable_text";
12076             script {
12077                new st[31];
12078                new Float:vl;
12079                get_state(PART:"elm.text", st, 30, vl);
12080                if (!strcmp(st, "visible"))
12081                   set_state(PART:"elm.text", "disabled_visible", 0.0);
12082                else
12083                   set_state(PART:"elm.text", "disabled", 0.0);
12084                set_int(button_state, 1);
12085             }
12086          }
12087          program { name: "enable";
12088             signal: "elm,state,enabled";
12089             source: "elm";
12090             action: STATE_SET "default" 0.0;
12091             target: "button_image";
12092             target: "over2";
12093             target: "disabler";
12094             after: "enable_text";
12095          }
12096          program { name: "enable_text";
12097             script {
12098                new st[31];
12099                new Float:vl;
12100                get_state(PART:"elm.text", st, 30, vl);
12101                if (!strcmp(st, "disabled_visible"))
12102                   set_state(PART:"elm.text", "visible", 0.0);
12103                else
12104                   set_state(PART:"elm.text", "default", 0.0);
12105                set_int(button_state, 0);
12106             }
12107          }
12108          program { name: "focused";
12109             //signal: "elm,action,focus";
12110             //source: "elm";
12111             action: STATE_SET "focused" 0.0;
12112             target: "button_image";
12113             target: "elm.text";
12114          }
12115          program { name: "unfocused";
12116             //signal: "elm,action,unfocus";
12117             //source: "elm";
12118             action: STATE_SET "default" 0.0;
12119             target: "button_image";
12120             after: "unfocus_text";
12121          }
12122          program { name: "unfocus_text";
12123             action: STATE_SET "visible" 0.0;
12124             target: "elm.text";
12125          }
12126       }
12127    }
12128
12129 ///////////////////////////////////////////////////////////////////////////////////////
12130    group { name: "elm/button/base/calendarpicker/prev";
12131       images {
12132          image: "00_picker_btn_normal.png" COMP;
12133          image: "00_picker_btn_press.png" COMP;
12134          image: "00_picker_arrow_left.png" COMP;
12135          image: "00_picker_arrow_left_press.png" COMP;
12136       }
12137       script {
12138          public button_state = 0; //0:enabled, 1: disabled
12139       }
12140       parts {
12141          part { name: "button_image";
12142             mouse_events: 1;
12143             scale: 1;
12144             description { state: "default" 0.0;
12145                min: 46 42;
12146                max: 46 42;
12147                image {
12148                   normal: "00_picker_btn_normal.png";
12149                   border: 4 4 4 4;
12150                   border_scale: 1;
12151                }
12152             }
12153             description { state: "clicked" 0.0;
12154                inherit: "default" 0.0;
12155                image.normal: "00_picker_btn_press.png";
12156             }
12157             description { state: "disabled" 0.0;
12158                inherit:  "default" 0.0;
12159             }
12160             description { state: "focused" 0.0;
12161                inherit: "default" 0.0;
12162                image.normal: "00_picker_btn_press.png";
12163             }
12164          }
12165          part {
12166             name: "padding_left";
12167             type: RECT;
12168             scale: 1;
12169             mouse_events: 0;
12170             description { state: "default" 0.0;
12171                align: 0.0 0.0;
12172                rel1.relative: 0.0 0.0;
12173                rel2.relative: 0.0 1.0;
12174                min: 5 5;
12175                fixed: 1 0;
12176                color: 0 0 0 0;
12177             }
12178          }
12179          part {
12180             name: "padding_right";
12181             type: RECT;
12182             scale: 1;
12183             mouse_events: 0;
12184             description { state: "default" 0.0;
12185                align: 1.0 0.0;
12186                rel1.relative: 1.0 0.0;
12187                rel2.relative: 1.0 1.0;
12188                min: 5 5;
12189                fixed: 1 0;
12190                color: 0 0 0 0;
12191             }
12192          }
12193          part {
12194             name: "padding_top";
12195             type: RECT;
12196             scale: 1;
12197             mouse_events: 0;
12198             description { state: "default" 0.0;
12199                align: 0.0 0.0;
12200                rel1.relative: 0.0 0.0;
12201                rel2.relative: 1.0 0.0;
12202                min: 5 5;
12203                fixed: 0 1;
12204                color: 0 0 0 0;
12205             }
12206          }
12207          part {
12208             name: "padding_bottom";
12209             type: RECT;
12210             scale: 1;
12211             mouse_events: 0;
12212             description { state: "default" 0.0;
12213                align: 1.0 1.0;
12214                rel1.relative: 0.0 1.0;
12215                rel2.relative: 1.0 1.0;
12216                min: 5 5;
12217                fixed: 0 1;
12218                color: 0 0 0 0;
12219             }
12220          }
12221          part {
12222             name: "left_arrow";
12223             type: IMAGE;
12224             scale: 1;
12225             mouse_events: 0;
12226             description { state: "default" 0.0;
12227                min: 20 20;
12228                max: 20 20;
12229                align: 0.5 0.5;
12230                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12231                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
12232                image.normal: "00_picker_arrow_left.png";
12233             }
12234             description { state: "clicked" 0.0;
12235                inherit: "default" 0.0;
12236                image.normal: "00_picker_arrow_left_press.png";
12237             }
12238          }
12239          part { name: "over2";
12240             type: RECT;
12241             mouse_events: 1;
12242             repeat_events: 1;
12243             ignore_flags: ON_HOLD;
12244             description { state: "default" 0.0;
12245                color: 0 0 0 0;
12246             }
12247             description { state: "disabled" 0.0;
12248                inherit:  "default" 0.0;
12249                visible: 0;
12250             }
12251          }
12252          part { name: "over3";
12253             type: RECT;
12254             mouse_events: 1;
12255             repeat_events: 1;
12256             description { state: "default" 0.0;
12257                color: 0 0 0 0;
12258             }
12259             description { state: "clicked" 0.0;
12260                inherit:  "default" 0.0;
12261                visible: 1;
12262             }
12263          }
12264          part { name: "disabler";
12265             type: RECT;
12266             description { state: "default" 0.0;
12267                color: 0 0 0 0;
12268                visible: 0;
12269             }
12270             description { state: "disabled" 0.0;
12271                inherit: "default" 0.0;
12272                visible: 1;
12273             }
12274          }
12275       }
12276       programs {
12277          program { name: "button_click";
12278             signal: "mouse,down,1";
12279             source: "over2";
12280             action: SIGNAL_EMIT "elm,action,press" "";
12281             after: "button_click_anim";
12282          }
12283          program { name: "button_click_anim";
12284             action: STATE_SET "clicked" 0.0;
12285             target: "button_image";
12286          }
12287          program { name: "button_unpress";
12288             action: SIGNAL_EMIT "elm,action,unpress" "";
12289          }
12290          program { name: "button_mouseout_clicked";
12291             signal: "mouse,up,1";
12292             source: "over3";
12293             script {
12294                if(get_int(button_state) !=1)
12295                   set_state(PART:"button_image", "default", 0.0);
12296             }
12297             after: button_unpress;
12298          }
12299          program { name: "button_click2";
12300             signal: "mouse,down,1";
12301             source: "over3";
12302             action: STATE_SET "clicked" 0.0;
12303             target: "over3";
12304          }
12305          program { name: "button_unclick2";
12306             signal: "mouse,clicked,1";
12307             source: "over3";
12308             action: STATE_SET "default" 0.0;
12309             target: "over3";
12310          }
12311          program { name: "button_unclick3";
12312             signal: "mouse,clicked,1";
12313             source: "over2";
12314             action: SIGNAL_EMIT "elm,action,click" "";
12315          }
12316          program { name: "disable";
12317             signal: "elm,state,disabled";
12318             source: "elm";
12319             action: STATE_SET "disabled" 0.0;
12320             target: "button_image";
12321             target: "over2";
12322             target: "disabler";
12323             after: "disable_button";
12324          }
12325          program { name: "disable_button";
12326             script {
12327                set_int(button_state, 1);
12328             }
12329          }
12330          program { name: "enable";
12331             signal: "elm,state,enabled";
12332             source: "elm";
12333             action: STATE_SET "default" 0.0;
12334             target: "button_image";
12335             target: "over2";
12336             target: "disabler";
12337             after: "enable_button";
12338          }
12339          program { name: "enable_button";
12340             script {
12341                set_int(button_state, 0);
12342             }
12343          }
12344          program { name: "focused";
12345             //signal: "elm,action,focus";
12346             //source: "elm";
12347             action: STATE_SET "focused" 0.0;
12348             target: "button_image";
12349          }
12350          program { name: "unfocused";
12351             //signal: "elm,action,unfocus";
12352             //source: "elm";
12353             action: STATE_SET "default" 0.0;
12354             target: "button_image";
12355          }
12356       }
12357    }
12358
12359 ///////////////////////////////////////////////////////////////////////////////////////
12360    group { name: "elm/button/base/calendarpicker/next";
12361       images {
12362          image: "00_picker_btn_normal.png" COMP;
12363          image: "00_picker_btn_press.png" COMP;
12364          image: "00_picker_arrow_right.png" COMP;
12365          image: "00_picker_arrow_right_press.png" COMP;
12366       }
12367       script {
12368          public button_state = 0; //0:enabled, 1: disabled
12369       }
12370       parts {
12371          part { name: "button_image";
12372             mouse_events: 1;
12373             scale: 1;
12374             description { state: "default" 0.0;
12375                min: 46 42;
12376                max: 46 42;
12377                image {
12378                   normal: "00_picker_btn_normal.png";
12379                   border: 4 4 4 4;
12380                   border_scale: 1;
12381                }
12382             }
12383             description { state: "clicked" 0.0;
12384                inherit: "default" 0.0;
12385                image.normal: "00_picker_btn_press.png";
12386             }
12387             description { state: "disabled" 0.0;
12388                inherit:  "default" 0.0;
12389             }
12390             description { state: "focused" 0.0;
12391                inherit: "default" 0.0;
12392                image.normal: "00_picker_btn_press.png";
12393             }
12394          }
12395          part {
12396             name: "padding_left";
12397             type: RECT;
12398             scale: 1;
12399             mouse_events: 0;
12400             description { state: "default" 0.0;
12401                align: 0.0 0.0;
12402                rel1.relative: 0.0 0.0;
12403                rel2.relative: 0.0 1.0;
12404                min: 5 5;
12405                fixed: 1 0;
12406                color: 0 0 0 0;
12407             }
12408          }
12409          part {
12410             name: "padding_right";
12411             type: RECT;
12412             scale: 1;
12413             mouse_events: 0;
12414             description { state: "default" 0.0;
12415                align: 1.0 0.0;
12416                rel1.relative: 1.0 0.0;
12417                rel2.relative: 1.0 1.0;
12418                min: 5 5;
12419                fixed: 1 0;
12420                color: 0 0 0 0;
12421             }
12422          }
12423          part {
12424             name: "padding_top";
12425             type: RECT;
12426             scale: 1;
12427             mouse_events: 0;
12428             description { state: "default" 0.0;
12429                align: 0.0 0.0;
12430                rel1.relative: 0.0 0.0;
12431                rel2.relative: 1.0 0.0;
12432                min: 5 5;
12433                fixed: 0 1;
12434                color: 0 0 0 0;
12435             }
12436          }
12437          part {
12438             name: "padding_bottom";
12439             type: RECT;
12440             scale: 1;
12441             mouse_events: 0;
12442             description { state: "default" 0.0;
12443                align: 1.0 1.0;
12444                rel1.relative: 0.0 1.0;
12445                rel2.relative: 1.0 1.0;
12446                min: 5 5;
12447                fixed: 0 1;
12448                color: 0 0 0 0;
12449             }
12450          }
12451          part {
12452             name: "left_arrow";
12453             type: IMAGE;
12454             scale: 1;
12455             mouse_events: 0;
12456             description { state: "default" 0.0;
12457                min: 20 20;
12458                max: 20 20;
12459                align: 0.5 0.5;
12460                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12461                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
12462                image.normal: "00_picker_arrow_right.png";
12463             }
12464             description { state: "clicked" 0.0;
12465                inherit: "default" 0.0;
12466                image.normal: "00_picker_arrow_right_press.png";
12467             }
12468          }
12469          part { name: "over2";
12470             type: RECT;
12471             mouse_events: 1;
12472             repeat_events: 1;
12473             ignore_flags: ON_HOLD;
12474             description { state: "default" 0.0;
12475                color: 0 0 0 0;
12476             }
12477             description { state: "disabled" 0.0;
12478                inherit:  "default" 0.0;
12479                visible: 0;
12480             }
12481          }
12482          part { name: "over3";
12483             type: RECT;
12484             mouse_events: 1;
12485             repeat_events: 1;
12486             description { state: "default" 0.0;
12487                color: 0 0 0 0;
12488             }
12489             description { state: "clicked" 0.0;
12490                inherit:  "default" 0.0;
12491                visible: 1;
12492             }
12493          }
12494          part { name: "disabler";
12495             type: RECT;
12496             description { state: "default" 0.0;
12497                color: 0 0 0 0;
12498                visible: 0;
12499             }
12500             description { state: "disabled" 0.0;
12501                inherit: "default" 0.0;
12502                visible: 1;
12503             }
12504          }
12505       }
12506       programs {
12507          program { name: "button_click";
12508             signal: "mouse,down,1";
12509             source: "over2";
12510             action: SIGNAL_EMIT "elm,action,press" "";
12511             after: "button_click_anim";
12512          }
12513          program { name: "button_click_anim";
12514             action: STATE_SET "clicked" 0.0;
12515             target: "button_image";
12516          }
12517          program { name: "button_unpress";
12518             action: SIGNAL_EMIT "elm,action,unpress" "";
12519          }
12520          program { name: "button_mouseout_clicked";
12521             signal: "mouse,up,1";
12522             source: "over3";
12523             script {
12524                if(get_int(button_state) !=1)
12525                   set_state(PART:"button_image", "default", 0.0);
12526             }
12527             after: button_unpress;
12528          }
12529          program { name: "button_click2";
12530             signal: "mouse,down,1";
12531             source: "over3";
12532             action: STATE_SET "clicked" 0.0;
12533             target: "over3";
12534          }
12535          program { name: "button_unclick2";
12536             signal: "mouse,clicked,1";
12537             source: "over3";
12538             action: STATE_SET "default" 0.0;
12539             target: "over3";
12540          }
12541          program { name: "button_unclick3";
12542             signal: "mouse,clicked,1";
12543             source: "over2";
12544             action: SIGNAL_EMIT "elm,action,click" "";
12545          }
12546          program { name: "disable";
12547             signal: "elm,state,disabled";
12548             source: "elm";
12549             action: STATE_SET "disabled" 0.0;
12550             target: "button_image";
12551             target: "over2";
12552             target: "disabler";
12553             after: "disable_button";
12554          }
12555          program { name: "disable_button";
12556             script {
12557                set_int(button_state, 1);
12558             }
12559          }
12560          program { name: "enable";
12561             signal: "elm,state,enabled";
12562             source: "elm";
12563             action: STATE_SET "default" 0.0;
12564             target: "button_image";
12565             target: "over2";
12566             target: "disabler";
12567             after: "enable_button";
12568          }
12569          program { name: "enable_button";
12570             script {
12571                set_int(button_state, 0);
12572             }
12573          }
12574          program { name: "focused";
12575             //signal: "elm,action,focus";
12576             //source: "elm";
12577             action: STATE_SET "focused" 0.0;
12578             target: "button_image";
12579          }
12580          program { name: "unfocused";
12581             //signal: "elm,action,unfocus";
12582             //source: "elm";
12583             action: STATE_SET "default" 0.0;
12584             target: "button_image";
12585          }
12586       }
12587    }
12588
12589 //###############################################
12590 // Nocontents Search Button Styles //
12591 //###############################################
12592
12593    group { name: "elm/button/base/nocontents/search_button";
12594       images {
12595          image: "00_button_03_normal.png" COMP;
12596          image: "00_button_03_press.png" COMP;
12597          image: "00_button_03_focus.png" COMP;
12598       }
12599       script {
12600          public button_state = 0; //0:enabled, 1: disabled
12601       }
12602       parts {
12603          part { name: "button_image";
12604             mouse_events: 1;
12605             scale: 1;
12606             description { state: "default" 0.0;
12607                min: 16 50;
12608                image {
12609                   normal: "00_button_03_normal.png";
12610                   border: 7 7 7 7;
12611                   border_scale: 1;
12612                }
12613             }
12614             description { state: "clicked" 0.0;
12615                inherit: "default" 0.0;
12616                image.normal: "00_button_03_press.png";
12617             }
12618             description { state: "disabled" 0.0;
12619                inherit:  "default" 0.0;
12620             }
12621             description { state: "focused" 0.0;
12622                inherit: "default" 0.0;
12623                image.normal: "00_button_03_focus.png";
12624             }
12625          }
12626          part {
12627             name: "padding_left";
12628             type: RECT;
12629             scale: 1;
12630             mouse_events: 0;
12631             description { state: "default" 0.0;
12632                align: 0.0 0.0;
12633                rel1.relative: 0.0 0.0;
12634                rel2.relative: 0.0 1.0;
12635                min: 5 5;
12636                fixed: 1 0;
12637                color: 0 0 0 0;
12638             }
12639          }
12640          part {
12641             name: "padding_right";
12642             type: RECT;
12643             scale: 1;
12644             mouse_events: 0;
12645             description { state: "default" 0.0;
12646                align: 1.0 0.0;
12647                rel1.relative: 1.0 0.0;
12648                rel2.relative: 1.0 1.0;
12649                min: 5 5;
12650                fixed: 1 0;
12651                color: 0 0 0 0;
12652             }
12653          }
12654          part {
12655             name: "padding_top";
12656             type: RECT;
12657             scale: 1;
12658             mouse_events: 0;
12659             description { state: "default" 0.0;
12660                align: 0.0 0.0;
12661                rel1.relative: 0.0 0.0;
12662                rel2.relative: 1.0 0.0;
12663                min: 5 5;
12664                fixed: 0 1;
12665                color: 0 0 0 0;
12666             }
12667          }
12668          part {
12669             name: "padding_bottom";
12670             type: RECT;
12671             scale: 1;
12672             mouse_events: 0;
12673             description { state: "default" 0.0;
12674                align: 1.0 1.0;
12675                rel1.relative: 0.0 1.0;
12676                rel2.relative: 1.0 1.0;
12677                min: 5 5;
12678                fixed: 0 1;
12679                color: 0 0 0 0;
12680             }
12681          }
12682          part {
12683             name: "icon_rect";
12684             type: RECT;
12685             scale: 1;
12686             mouse_events: 0;
12687             description { state: "default" 0.0;
12688                visible: 1;
12689                min: 0 0;
12690                fixed: 1 0;
12691                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12692                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
12693                align: 0.0 0.5;
12694                color: 0 0 0 0;
12695             }
12696             description { state: "visible" 0.0;
12697                visible: 1;
12698                min: 40 40;
12699                fixed: 1 0;
12700                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12701                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
12702                aspect: 1.0 1.0;
12703                aspect_preference: VERTICAL;
12704                align: 0.0 0.5;
12705                color: 0 0 0 0;
12706             }
12707             description { state: "icononly" 0.0;
12708                inherit: "default" 0.0;
12709             }
12710          }
12711          part {
12712             name: "padding_after_icon";
12713             type: RECT;
12714             scale: 1;
12715             mouse_events: 0;
12716             description { state: "default" 0.0; //when only icon or no icon is there
12717                align: 0.0 0.0;
12718                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
12719                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
12720                fixed: 1 0;
12721                min: 0 0;
12722                color: 0 255 0 100;
12723             }
12724             description { state: "visible" 0.0;
12725                visible: 1;
12726                align: 0.0 0.0;
12727                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
12728                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
12729                fixed: 1 0;
12730                min: 12 0;
12731                max: 12 0;
12732                color: 0 0 0 255;
12733             }
12734             description { state: "icononly" 0.0;
12735                inherit: "default" 0.0;
12736             }
12737          }
12738          part {
12739             name: "padding_before_text";
12740             type: RECT;
12741             scale: 1;
12742             mouse_events: 0;
12743             description { state: "default" 0.0; //when only icon or no icon is there
12744                align: 1.0 0.5;
12745                rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
12746                rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
12747                fixed: 1 0;
12748                min: 12 0;
12749                max: 12 0;
12750                color: 0 0 0 0;
12751             }
12752          }
12753          part { name: "elm.swallow.content";
12754             type: SWALLOW;
12755             scale: 1;
12756             description { state: "default" 0.0;
12757                visible: 0;
12758                align: 0.0 0.5;
12759                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12760                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
12761                fixed: 1 0;
12762             }
12763             description { state: "visible" 0.0;
12764                fixed: 1 0;
12765                visible: 1;
12766                align: 1.0 0.5;
12767                rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
12768                rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
12769                aspect: 1.0 1.0;
12770                aspect_preference: VERTICAL;
12771             }
12772             description { state: "icononly" 0.0;;
12773                visible: 1;
12774                min: 40 40;
12775                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
12776                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
12777                align: 0.5 0.5;
12778                aspect: 1.0 1.0;
12779                aspect_preference: VERTICAL;
12780             }
12781          }
12782          part { name: "elm.text";
12783             type: TEXT;
12784             //effect: SHADOW;
12785             mouse_events:  0;
12786             scale: 1;
12787             description { state: "default" 0.0;
12788                visible: 0;
12789                rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
12790                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
12791                align: 0.5 0.5;
12792                color: 51 102 255 255;
12793                color2: 255 255 255 255;
12794                text {
12795                   font: "SLP:style=Medium";
12796                   size: 24;
12797                   min:  0 0;
12798                   align: 0.5 0.5;
12799                   max: 1 0;
12800                }
12801             }
12802             description { state: "visible" 0.0;
12803                inherit: "default" 0.0;
12804                visible: 1;
12805                min: 90 40;
12806             }
12807             description { state: "clicked" 0.0;
12808                inherit: "default" 0.0;
12809                visible: 1;
12810                min: 0 0;
12811                color: 255 255 255 255;
12812                color2: 0 0 0 102;
12813             }
12814             description { state: "disabled" 0.0;
12815                inherit: "default" 0.0;
12816                color: 0 0 0 128;
12817                color3: 0 0 0 0;
12818             }
12819             description { state: "disabled_visible" 0.0;
12820                inherit: "default" 0.0;
12821                color: 0 0 0 128;
12822                color3: 0 0 0 0;
12823                visible: 1;
12824             }
12825             description { state: "focused" 0.0;
12826                inherit: "default" 0.0;
12827                visible: 1;
12828                min: 0 0;
12829                color: 255 255 255 255;
12830                color2: 0 0 0 102;
12831             }
12832          }
12833          part { name: "over2";
12834             type: RECT;
12835             mouse_events: 1;
12836             repeat_events: 1;
12837             ignore_flags: ON_HOLD;
12838             description { state: "default" 0.0;
12839                color: 0 0 0 0;
12840             }
12841             description { state: "disabled" 0.0;
12842                inherit:  "default" 0.0;
12843                visible: 0;
12844             }
12845          }
12846          part { name: "over3";
12847             type: RECT;
12848             mouse_events: 1;
12849             repeat_events: 1;
12850             description { state: "default" 0.0;
12851                color: 0 0 0 0;
12852             }
12853             description { state: "clicked" 0.0;
12854                inherit:  "default" 0.0;
12855                visible: 1;
12856             }
12857          }
12858          part { name: "disabler";
12859             type: RECT;
12860             description { state: "default" 0.0;
12861                color: 0 0 0 0;
12862                visible: 0;
12863             }
12864             description { state: "disabled" 0.0;
12865                inherit: "default" 0.0;
12866                visible: 1;
12867             }
12868          }
12869       }
12870       programs {
12871          program { name: "button_click";
12872             signal: "mouse,down,1";
12873             source: "over2";
12874             action: SIGNAL_EMIT "elm,action,press" "";
12875             after: "button_click_anim";
12876          }
12877          program { name: "button_click_anim";
12878             action: STATE_SET "clicked" 0.0;
12879             target: "button_image";
12880             after: "text_clicked";
12881          }
12882          program { name: "text_clicked";
12883             script {
12884                new st[31];
12885                new Float:vl;
12886                get_state(PART:"elm.text", st, 30, vl);
12887                if (!strcmp(st, "visible"))
12888                   set_state(PART:"elm.text", "clicked", 0.0);
12889             }
12890          }
12891          program { name: "button_unpress";
12892             action: SIGNAL_EMIT "elm,action,unpress" "";
12893          }
12894          program { name: "button_mouseout_clicked";
12895             signal: "mouse,up,1";
12896             source: "over3";
12897             script {
12898                new st[31];
12899                new Float:vl;
12900                get_state(PART:"elm.swallow.content", st, 30, vl);
12901                if (strcmp(st, "icononly"))
12902                {
12903                   emit("elm,action,default,text,set", "");
12904                   set_state(PART:"elm.text", "visible", 0.0);
12905                }
12906                if(get_int(button_state) !=1)
12907                   set_state(PART:"button_image", "default", 0.0);
12908             }
12909             after: button_unpress;
12910          }
12911          program { name: "button_click2";
12912             signal: "mouse,down,1";
12913             source: "over3";
12914             action: STATE_SET "clicked" 0.0;
12915             target: "over3";
12916          }
12917          program { name: "button_unclick2";
12918             signal: "mouse,clicked,1";
12919             source: "over3";
12920             action: STATE_SET "default" 0.0;
12921             target: "over3";
12922          }
12923          program { name: "button_unclick3";
12924             signal: "mouse,clicked,1";
12925             source: "over2";
12926             action: SIGNAL_EMIT "elm,action,click" "";
12927          }
12928          program { name: "text_show";
12929             signal: "elm,state,text,visible";
12930             source: "elm";
12931             script {
12932                new st[31];
12933                new Float:vl;
12934                get_state(PART:"elm.swallow.content", st, 30, vl);
12935                if (!strcmp(st, "icononly"))
12936                {
12937                   set_state(PART:"elm.swallow.content", "visible", 0.0);
12938                   set_state(PART:"icon_rect", "visible", 0.0);
12939                   set_state(PART:"padding_after_icon", "visible", 0.0);
12940                }
12941                set_state(PART:"elm.text", "visible", 0.0);
12942             }
12943          }
12944          program { name: "text_hide";
12945             signal: "elm,state,text,hidden";
12946             source: "elm";
12947             script {
12948                new st[31];
12949                new Float:vl;
12950                get_state(PART:"elm.swallow.content", st, 30, vl);
12951                if (!strcmp(st, "visible"))
12952                {
12953                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
12954                   set_state(PART:"icon_rect", "icononly", 0.0);
12955                   set_state(PART:"padding_after_icon", "icononly", 0.0);
12956                }
12957                set_state(PART:"elm.text", "default", 0.0);
12958             }
12959          }
12960          program { name: "icon_show";
12961             signal: "elm,state,icon,visible";
12962             source: "elm";
12963             script {
12964                new st[31];
12965                new Float:vl;
12966                get_state(PART:"elm.text", st, 30, vl);
12967                if (!strcmp(st, "visible"))
12968                {
12969                   set_state(PART:"elm.swallow.content", "visible", 0.0);
12970                   set_state(PART:"icon_rect", "visible", 0.0);
12971                   set_state(PART:"padding_after_icon", "visible", 0.0);
12972                }
12973                else
12974                {
12975                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
12976                   set_state(PART:"icon_rect", "icononly", 0.0);
12977                   set_state(PART:"padding_after_icon", "icononly", 0.0);
12978                }
12979             }
12980          }
12981          program { name: "icon_hide";
12982             signal: "elm,state,icon,hidden";
12983             source: "elm";
12984             action:  STATE_SET "default" 0.0;
12985             target: "elm.swallow.content";
12986          }
12987          program { name: "disable";
12988             signal: "elm,state,disabled";
12989             source: "elm";
12990             action: STATE_SET "disabled" 0.0;
12991             target: "button_image";
12992             target: "over2";
12993             target: "disabler";
12994             after: "disable_text";
12995          }
12996          program { name: "disable_text";
12997             script {
12998                new st[31];
12999                new Float:vl;
13000                get_state(PART:"elm.text", st, 30, vl);
13001                if (!strcmp(st, "visible"))
13002                   set_state(PART:"elm.text", "disabled_visible", 0.0);
13003                else
13004                   set_state(PART:"elm.text", "disabled", 0.0);
13005                set_int(button_state, 1);
13006             }
13007          }
13008          program { name: "enable";
13009             signal: "elm,state,enabled";
13010             source: "elm";
13011             action: STATE_SET "default" 0.0;
13012             target: "button_image";
13013             target: "over2";
13014             target: "disabler";
13015             after: "enable_text";
13016          }
13017          program { name: "enable_text";
13018             script {
13019                new st[31];
13020                new Float:vl;
13021                get_state(PART:"elm.text", st, 30, vl);
13022                if (!strcmp(st, "disabled_visible"))
13023                   set_state(PART:"elm.text", "visible", 0.0);
13024                else
13025                   set_state(PART:"elm.text", "default", 0.0);
13026                set_int(button_state, 0);
13027             }
13028          }
13029          program { name: "focused";
13030             //signal: "elm,action,focus";
13031             //source: "elm";
13032             action: STATE_SET "focused" 0.0;
13033             target: "button_image";
13034             target: "elm.text";
13035          }
13036          program { name: "unfocused";
13037             //signal: "elm,action,unfocus";
13038             //source: "elm";
13039             action: STATE_SET "default" 0.0;
13040             target: "button_image";
13041             after: "unfocus_text";
13042          }
13043          program { name: "unfocus_text";
13044             action: STATE_SET "visible" 0.0;
13045             target: "elm.text";
13046          }
13047       }
13048    }
13049
13050 ///////////////////////////////////////////////////////////////////////////////////////
13051    group { name: "elm/button/base/navigationbar_control/center";
13052       script {
13053          public button_state = 0; //0:enabled, 1: disabled
13054       }
13055       parts {
13056          part { name: "button_image";
13057             type: RECT;
13058             mouse_events: 1;
13059             scale: 1;
13060             description { state: "default" 0.0;
13061                min: 20 50;
13062                color: 0 0 0 0;
13063                rel1.offset: 5 5;
13064                rel2.offset: -6 -6;
13065             }
13066             description { state: "clicked" 0.0;
13067                inherit: "default" 0.0;
13068                color: 187 127 16 255;
13069             }
13070          }
13071          part {
13072             name: "padding_left";
13073             type: RECT;
13074             scale: 1;
13075             mouse_events: 0;
13076             description { state: "default" 0.0;
13077                align: 0.0 0.0;
13078                rel1.relative: 0.0 0.0;
13079                rel2.relative: 0.0 1.0;
13080                min: 10 5;
13081                fixed: 1 0;
13082                color: 0 0 0 0;
13083             }
13084          }
13085          part {
13086             name: "padding_right";
13087             type: RECT;
13088             scale: 1;
13089             mouse_events: 0;
13090             description { state: "default" 0.0;
13091                align: 1.0 0.0;
13092                rel1.relative: 1.0 0.0;
13093                rel2.relative: 1.0 1.0;
13094                min: 10 5;
13095                fixed: 1 0;
13096                color: 0 0 0 0;
13097             }
13098          }
13099          part {
13100             name: "padding_top";
13101             type: RECT;
13102             scale: 1;
13103             mouse_events: 0;
13104             description { state: "default" 0.0;
13105                align: 0.0 0.0;
13106                rel1.relative: 0.0 0.0;
13107                rel2.relative: 1.0 0.0;
13108                min: 5 5;
13109                fixed: 0 1;
13110                color: 0 0 0 0;
13111             }
13112          }
13113          part {
13114             name: "padding_bottom";
13115             type: RECT;
13116             scale: 1;
13117             mouse_events: 0;
13118             description { state: "default" 0.0;
13119                align: 1.0 1.0;
13120                rel1.relative: 0.0 1.0;
13121                rel2.relative: 1.0 1.0;
13122                min: 5 5;
13123                fixed: 0 1;
13124                color: 0 0 0 0;
13125             }
13126          }
13127          part {
13128             name: "icon_rect";
13129             type: RECT;
13130             scale: 1;
13131             mouse_events: 0;
13132             description { state: "default" 0.0;
13133                visible: 1;
13134                min: 0 0;
13135                fixed: 1 0;
13136                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13137                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
13138                align: 0.0 0.5;
13139                color: 0 0 0 0;
13140             }
13141             description { state: "visible" 0.0;
13142                visible: 1;
13143                min: 22 22;
13144                fixed: 1 0;
13145                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13146                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
13147                align: 0.0 0.5;
13148                color: 0 0 0 0;
13149             }
13150             description { state: "icononly" 0.0;
13151                inherit: "default" 0.0;
13152             }
13153          }
13154          part {
13155             name: "padding_after_icon";
13156             type: RECT;
13157             scale: 1;
13158             mouse_events: 0;
13159             description { state: "default" 0.0; //when only icon or no icon is there
13160                align: 0.0 0.0;
13161                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
13162                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
13163                fixed: 1 0;
13164                min: 0 0;
13165                color: 0 255 0 100;
13166             }
13167             description { state: "visible" 0.0;
13168                visible: 1;
13169                align: 0.0 0.0;
13170                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
13171                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
13172                fixed: 1 0;
13173                min: 6 0;
13174                color: 0 0 0 0;
13175             }
13176             description { state: "icononly" 0.0;
13177                inherit: "default" 0.0;
13178             }
13179          }
13180          part {
13181             name: "padding_before_text";
13182             type: RECT;
13183             scale: 1;
13184             mouse_events: 0;
13185             description { state: "default" 0.0; //when only icon or no icon is there
13186                align: 1.0 0.5;
13187                rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
13188                rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
13189                fixed: 1 0;
13190                min: 6 0;
13191                color: 0 0 0 0;
13192             }
13193          }
13194          part { name: "elm.swallow.content";
13195             type: SWALLOW;
13196             scale: 1;
13197             description { state: "default" 0.0;
13198                visible: 0;
13199                align: 0.0 0.5;
13200                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13201                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
13202                fixed: 1 0;
13203             }
13204             description { state: "visible" 0.0;
13205                fixed: 1 0;
13206                visible: 1;
13207             min: 22 22;
13208             max: 22 22;
13209                align: 1.0 0.5;
13210                rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
13211                rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
13212                aspect: 1.0 1.0;
13213                aspect_preference: VERTICAL;
13214             }
13215             description { state: "icononly" 0.0;;
13216                visible: 1;
13217                min: 30 30;
13218                max: 30 30;
13219                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13220                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
13221                align: 0.5 0.5;
13222                aspect: 1.0 1.0;
13223                aspect_preference: VERTICAL;
13224             }
13225          }
13226          part { name: "elm.text";
13227             type: TEXT;
13228             mouse_events:  0;
13229             scale: 1;
13230             description { state: "default" 0.0;
13231                visible: 0;
13232                rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
13233                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
13234                align: 0.5 0.5;
13235                color: 255 255 255 255;
13236                text {
13237                   font: "SLP:style=Medium";
13238                   size: 20;
13239                   min:  0 0;
13240                   align: 0.5 0.5;
13241                   max: 1 0;
13242                }
13243             }
13244             description { state: "visible" 0.0;
13245                inherit: "default" 0.0;
13246                visible: 1;
13247                min: 90 24;
13248             }
13249             description { state: "clicked" 0.0;
13250                inherit: "default" 0.0;
13251                visible: 1;
13252                min: 0 0;
13253                color: 255 255 255 255;
13254             }
13255             description { state: "disabled" 0.0;
13256                inherit: "default" 0.0;
13257                color: 0 0 0 128;
13258                color3: 0 0 0 0;
13259             }
13260             description { state: "disabled_visible" 0.0;
13261                inherit: "default" 0.0;
13262                color: BUTTON_ICON_TEXT_DISABLED_COLOR_INC;
13263                color3: 0 0 0 0;
13264                visible: 1;
13265             }
13266             description { state: "focused" 0.0;
13267                inherit: "default" 0.0;
13268                visible: 1;
13269                min: 0 0;
13270                color: BUTTON_ICON_TEXT_FOCUSED_COLOR_INC;
13271             }
13272          }
13273          part { name: "over2";
13274             type: RECT;
13275             mouse_events: 1;
13276             repeat_events: 1;
13277             ignore_flags: ON_HOLD;
13278             description { state: "default" 0.0;
13279                color: 0 0 0 0;
13280             }
13281             description { state: "disabled" 0.0;
13282                inherit:  "default" 0.0;
13283                visible: 0;
13284             }
13285          }
13286          part { name: "over3";
13287             type: RECT;
13288             mouse_events: 1;
13289             repeat_events: 1;
13290             description { state: "default" 0.0;
13291                color: 0 0 0 0;
13292             }
13293             description { state: "clicked" 0.0;
13294                inherit:  "default" 0.0;
13295                visible: 1;
13296             }
13297          }
13298          part { name: "disabler";
13299             type: RECT;
13300             description { state: "default" 0.0;
13301                color: 0 0 0 0;
13302                visible: 0;
13303             }
13304             description { state: "disabled" 0.0;
13305                inherit: "default" 0.0;
13306                visible: 1;
13307             }
13308          }
13309       }
13310       programs {
13311          program { name: "button_click";
13312             signal: "mouse,down,1";
13313             source: "over2";
13314             action: SIGNAL_EMIT "elm,action,press" "";
13315             after: "button_click_anim";
13316          }
13317          program { name: "button_click_anim";
13318             action: STATE_SET "clicked" 0.0;
13319             target: "button_image";
13320             after: "text_clicked";
13321          }
13322          program { name: "text_clicked";
13323             script {
13324                new st[31];
13325                new Float:vl;
13326                get_state(PART:"elm.text", st, 30, vl);
13327                if (!strcmp(st, "visible"))
13328                   set_state(PART:"elm.text", "clicked", 0.0);
13329             }
13330          }
13331          program { name: "button_unpress";
13332             action: SIGNAL_EMIT "elm,action,unpress" "";
13333          }
13334          program { name: "button_mouseout_clicked";
13335             signal: "mouse,up,1";
13336             source: "over3";
13337             script {
13338                new st[31];
13339                new Float:vl;
13340                get_state(PART:"elm.swallow.content", st, 30, vl);
13341                if (strcmp(st, "icononly"))
13342                  {
13343                     emit("elm,action,default,text,set", "");
13344                     set_state(PART:"elm.text", "visible", 0.0);
13345                  }
13346                if(get_int(button_state) !=1)
13347                   set_state(PART:"button_image", "default", 0.0);
13348             }
13349             after: button_unpress;
13350          }
13351          program { name: "button_click2";
13352             signal: "mouse,down,1";
13353             source: "over3";
13354             action: STATE_SET "clicked" 0.0;
13355             target: "over3";
13356          }
13357          program { name: "button_unclick2";
13358             signal: "mouse,clicked,1";
13359             source: "over3";
13360             action: STATE_SET "default" 0.0;
13361             target: "over3";
13362          }
13363          program { name: "button_unclick3";
13364             signal: "mouse,clicked,1";
13365             source: "over2";
13366             action: SIGNAL_EMIT "elm,action,click" "";
13367          }
13368          program { name: "text_show";
13369             signal: "elm,state,text,visible";
13370             source: "elm";
13371             script {
13372                new st[31];
13373                new Float:vl;
13374                get_state(PART:"elm.swallow.content", st, 30, vl);
13375                if (!strcmp(st, "icononly"))
13376                {
13377                   set_state(PART:"elm.swallow.content", "visible", 0.0);
13378                   set_state(PART:"icon_rect", "visible", 0.0);
13379                   set_state(PART:"padding_after_icon", "visible", 0.0);
13380                }
13381                set_state(PART:"elm.text", "visible", 0.0);
13382             }
13383          }
13384          program { name: "text_hide";
13385             signal: "elm,state,text,hidden";
13386             source: "elm";
13387             script {
13388                new st[31];
13389                new Float:vl;
13390                get_state(PART:"elm.swallow.content", st, 30, vl);
13391                if (!strcmp(st, "visible"))
13392                {
13393                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
13394                   set_state(PART:"icon_rect", "icononly", 0.0);
13395                   set_state(PART:"padding_after_icon", "icononly", 0.0);
13396                }
13397                set_state(PART:"elm.text", "default", 0.0);
13398             }
13399          }
13400          program { name: "icon_show";
13401             signal: "elm,state,icon,visible";
13402             source: "elm";
13403             script {
13404                new st[31];
13405                new Float:vl;
13406                get_state(PART:"elm.text", st, 30, vl);
13407                if (!strcmp(st, "visible"))
13408                {
13409                   set_state(PART:"elm.swallow.content", "visible", 0.0);
13410                   set_state(PART:"icon_rect", "visible", 0.0);
13411                   set_state(PART:"padding_after_icon", "visible", 0.0);
13412                }
13413                else
13414                {
13415                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
13416                   set_state(PART:"icon_rect", "icononly", 0.0);
13417                   set_state(PART:"padding_after_icon", "icononly", 0.0);
13418                }
13419             }
13420          }
13421          program { name: "icon_hide";
13422             signal: "elm,state,icon,hidden";
13423             source: "elm";
13424             action:  STATE_SET "default" 0.0;
13425             target: "elm.swallow.content";
13426          }
13427          program { name: "disable";
13428             signal: "elm,state,disabled";
13429             source: "elm";
13430             action: STATE_SET "disabled" 0.0;
13431             target: "button_image";
13432             target: "over2";
13433             target: "disabler";
13434             after: "disable_text";
13435          }
13436          program { name: "disable_text";
13437             script {
13438                new st[31];
13439                new Float:vl;
13440                get_state(PART:"elm.text", st, 30, vl);
13441                if (!strcmp(st, "visible"))
13442                   set_state(PART:"elm.text", "disabled_visible", 0.0);
13443                else
13444                   set_state(PART:"elm.text", "disabled", 0.0);
13445                set_int(button_state, 1);
13446             }
13447          }
13448          program { name: "enable";
13449             signal: "elm,state,enabled";
13450             source: "elm";
13451             action: STATE_SET "default" 0.0;
13452             target: "button_image";
13453             target: "over2";
13454             target: "disabler";
13455             after: "enable_text";
13456          }
13457          program { name: "enable_text";
13458             script {
13459                new st[31];
13460                new Float:vl;
13461                get_state(PART:"elm.text", st, 30, vl);
13462                if (!strcmp(st, "disabled_visible"))
13463                   set_state(PART:"elm.text", "visible", 0.0);
13464                else
13465                   set_state(PART:"elm.text", "default", 0.0);
13466                set_int(button_state, 0);
13467             }
13468          }
13469          program { name: "focused";
13470             action: STATE_SET "focused" 0.0;
13471             target: "button_image";
13472             target: "elm.text";
13473          }
13474          program { name: "unfocused";
13475             action: STATE_SET "default" 0.0;
13476             target: "button_image";
13477             after: "unfocus_text";
13478          }
13479          program { name: "unfocus_text";
13480             action: STATE_SET "visible" 0.0;
13481             target: "elm.text";
13482          }
13483       }
13484    }
13485
13486 ///////////////////////////////////////////////////////////////////////////////////////
13487    group { name: "elm/button/base/navigationbar_control/left";
13488       script {
13489          public button_state = 0; //0:enabled, 1: disabled
13490       }
13491       parts {
13492          part { name: "button_image";
13493             type: RECT;
13494             mouse_events: 1;
13495             scale: 1;
13496             description { state: "default" 0.0;
13497                min: 20 50;
13498                color: 0 0 0 0;
13499                rel1.offset: 5 5;
13500                rel2.offset: -6 -6;
13501             }
13502             description { state: "clicked" 0.0;
13503                 inherit: "default" 0.0;
13504                color: 187 127 16 255;
13505             }
13506          }
13507          part {
13508             name: "padding_left";
13509             type: RECT;
13510             scale: 1;
13511             mouse_events: 0;
13512             description { state: "default" 0.0;
13513                align: 0.0 0.0;
13514                rel1.relative: 0.0 0.0;
13515                rel2.relative: 0.0 1.0;
13516                min: 10 5;
13517                fixed: 1 0;
13518                color: 0 0 0 0;
13519             }
13520          }
13521          part {
13522             name: "padding_right";
13523             type: RECT;
13524             scale: 1;
13525             mouse_events: 0;
13526             description { state: "default" 0.0;
13527                align: 1.0 0.0;
13528                rel1.relative: 1.0 0.0;
13529                rel2.relative: 1.0 1.0;
13530                min: 10 5;
13531                fixed: 1 0;
13532                color: 0 0 0 0;
13533             }
13534          }
13535          part {
13536             name: "padding_top";
13537             type: RECT;
13538             scale: 1;
13539             mouse_events: 0;
13540             description { state: "default" 0.0;
13541                align: 0.0 0.0;
13542                rel1.relative: 0.0 0.0;
13543                rel2.relative: 1.0 0.0;
13544                min: 5 5;
13545                fixed: 0 1;
13546                color: 0 0 0 0;
13547             }
13548          }
13549          part {
13550             name: "padding_bottom";
13551             type: RECT;
13552             scale: 1;
13553             mouse_events: 0;
13554             description { state: "default" 0.0;
13555                align: 1.0 1.0;
13556                rel1.relative: 0.0 1.0;
13557                rel2.relative: 1.0 1.0;
13558                min: 5 5;
13559                fixed: 0 1;
13560                color: 0 0 0 0;
13561             }
13562          }
13563          part {
13564             name: "icon_rect";
13565             type: RECT;
13566             scale: 1;
13567             mouse_events: 0;
13568             description { state: "default" 0.0;
13569                visible: 1;
13570                min: 0 40;
13571                fixed: 1 0;
13572                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
13573                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
13574                align: 0.0 0.5;
13575                color: 0 0 0 0;
13576             }
13577          }
13578          part {
13579             name: "padding_icon_text";
13580             type: RECT;
13581             scale: 1;
13582             mouse_events: 0;
13583             description { state: "default" 0.0; //when only icon or no icon is there
13584                align: 0.0 0.0;
13585                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
13586                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
13587                fixed: 1 0;
13588                min: 0 0;
13589                color: 0 0 0 0;
13590             }
13591             description { state: "icononly" 0.0;
13592                inherit: "default" 0.0;
13593             }
13594             description { state: "visible" 0.0; //when icon is visible
13595                align: 0.0 0.0;
13596                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
13597                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
13598                fixed: 1 0;
13599                min: 6 0;
13600                color: 0 0 0 0;
13601             }
13602          }
13603          part { name: "elm.swallow.content";
13604             type: SWALLOW;
13605             scale: 1;
13606             description { state: "default" 0.0;
13607                visible: 0;
13608                align: 0.0 0.5;
13609                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13610                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
13611                fixed: 1 0;
13612             }
13613             description { state: "visible" 0.0;
13614                fixed: 1 0;
13615                visible: 1;
13616                min: 22 22;
13617                max: 22 22;
13618                align: 0.0 0.5;
13619                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13620                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
13621                aspect: 1.0 1.0;
13622                aspect_preference: VERTICAL;
13623             }
13624             description { state: "icononly" 0.0;;
13625                visible: 1;
13626                min: 30 30;
13627                max: 30 30;
13628                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
13629                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
13630                align: 0.5 0.5;
13631                aspect: 1.0 1.0;
13632                aspect_preference: VERTICAL;
13633             }
13634          }
13635          part { name: "elm.text";
13636             type: TEXT;
13637             mouse_events:  0;
13638             scale: 1;
13639             description { state: "default" 0.0;
13640                visible: 0;
13641                rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
13642                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
13643                align: 0.0 0.5;
13644                color: 255 255 255 255;
13645                text {
13646                   font: "SLP:style=Medium";
13647                   size: 20;
13648                   min:  0 0;
13649                   align: 0.5 0.5;
13650                   max: 1 0;
13651                }
13652             }
13653             description { state: "visible" 0.0;
13654                inherit: "default" 0.0;
13655                visible: 1;
13656                min: 90 40;
13657             }
13658             description { state: "clicked" 0.0;
13659                inherit: "default" 0.0;
13660                visible: 1;
13661                min: 0 0;
13662                color: 255 255 255 255;
13663                color2: 0 0 0 102;
13664             }
13665             description { state: "disabled" 0.0;
13666                inherit: "default" 0.0;
13667                color: 0 0 0 128;
13668                color3: 0 0 0 0;
13669             }
13670             description { state: "disabled_visible" 0.0;
13671                inherit: "default" 0.0;
13672                color: 0 0 0 128;
13673                color3: 0 0 0 0;
13674                visible: 1;
13675             }
13676             description { state: "focused" 0.0;
13677                inherit: "default" 0.0;
13678                visible: 1;
13679                min: 0 0;
13680                color: 255 255 255 255;
13681                color2: 0 0 0 102;
13682             }
13683          }
13684          part { name: "over2";
13685             type: RECT;
13686             mouse_events: 1;
13687             repeat_events: 1;
13688             ignore_flags: ON_HOLD;
13689             description { state: "default" 0.0;
13690                color: 0 0 0 0;
13691             }
13692             description { state: "disabled" 0.0;
13693                inherit:  "default" 0.0;
13694                visible: 0;
13695             }
13696          }
13697          part { name: "over3";
13698             type: RECT;
13699             mouse_events: 1;
13700             repeat_events: 1;
13701             description { state: "default" 0.0;
13702                color: 0 0 0 0;
13703             }
13704             description { state: "clicked" 0.0;
13705                inherit:  "default" 0.0;
13706                visible: 1;
13707             }
13708          }
13709          part { name: "disabler";
13710             type: RECT;
13711             description { state: "default" 0.0;
13712                color: 0 0 0 0;
13713                visible: 0;
13714             }
13715             description { state: "disabled" 0.0;
13716                inherit: "default" 0.0;
13717                visible: 1;
13718             }
13719          }
13720       }
13721       programs {
13722          program { name: "button_click";
13723             signal: "mouse,down,1";
13724             source: "over2";
13725             action: SIGNAL_EMIT "elm,action,press" "";
13726             after: "button_click_anim";
13727          }
13728          program { name: "button_click_anim";
13729             action: STATE_SET "clicked" 0.0;
13730             target: "button_image";
13731             after: "text_clicked";
13732          }
13733          program { name: "text_clicked";
13734             script {
13735                new st[31];
13736                new Float:vl;
13737                get_state(PART:"elm.text", st, 30, vl);
13738                if (!strcmp(st, "visible"))
13739                   set_state(PART:"elm.text", "clicked", 0.0);
13740             }
13741          }
13742          program { name: "button_unpress";
13743             action: SIGNAL_EMIT "elm,action,unpress" "";
13744          }
13745          program { name: "button_mouseout_clicked";
13746             signal: "mouse,up,1";
13747             source: "over3";
13748             script {
13749                new st[31];
13750                new Float:vl;
13751                get_state(PART:"elm.swallow.content", st, 30, vl);
13752                if (strcmp(st, "icononly"))
13753                {
13754                   emit("elm,action,default,text,set", "");
13755                   set_state(PART:"elm.text", "visible", 0.0);
13756                }
13757                if(get_int(button_state) !=1)
13758                   set_state(PART:"button_image", "default", 0.0);
13759             }
13760             after: button_unpress;
13761          }
13762          program { name: "button_click2";
13763             signal: "mouse,down,1";
13764             source: "over3";
13765             action: STATE_SET "clicked" 0.0;
13766             target: "over3";
13767          }
13768          program { name: "button_unclick2";
13769             signal: "mouse,clicked,1";
13770             source: "over3";
13771             action: STATE_SET "default" 0.0;
13772             target: "over3";
13773          }
13774          program { name: "button_unclick3";
13775             signal: "mouse,clicked,1";
13776             source: "over2";
13777             action: SIGNAL_EMIT "elm,action,click" "";
13778          }
13779          program { name: "text_show";
13780             signal: "elm,state,text,visible";
13781             source: "elm";
13782             script {
13783                new st[31];
13784                new Float:vl;
13785                get_state(PART:"elm.swallow.content", st, 30, vl);
13786                if (!strcmp(st, "icononly"))
13787                {
13788                   set_state(PART:"elm.swallow.content", "visible", 0.0);
13789                   set_state(PART:"padding_icon_text", "visible", 0.0);
13790                }
13791                set_state(PART:"elm.text", "visible", 0.0);
13792             }
13793          }
13794          program { name: "text_hide";
13795             signal: "elm,state,text,hidden";
13796             source: "elm";
13797             script {
13798                new st[31];
13799                new Float:vl;
13800                get_state(PART:"elm.swallow.content", st, 30, vl);
13801                if (!strcmp(st, "visible"))
13802                {
13803                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
13804                   set_state(PART:"padding_icon_text", "icononly", 0.0);
13805                }
13806                set_state(PART:"elm.text", "default", 0.0);
13807             }
13808          }
13809          program { name: "icon_show";
13810             signal: "elm,state,icon,visible";
13811             source: "elm";
13812             script {
13813                new st[31];
13814                new Float:vl;
13815                get_state(PART:"elm.text", st, 30, vl);
13816                if (!strcmp(st, "visible"))
13817                {
13818                   set_state(PART:"elm.swallow.content", "visible", 0.0);
13819                   set_state(PART:"padding_icon_text", "visible", 0.0);
13820                }
13821                else
13822                {
13823                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
13824                   set_state(PART:"padding_icon_text", "icononly", 0.0);
13825                }
13826             }
13827          }
13828          program { name: "icon_hide";
13829             signal: "elm,state,icon,hidden";
13830             source: "elm";
13831             action:  STATE_SET "default" 0.0;
13832             target: "elm.swallow.content";
13833          }
13834          program { name: "disable";
13835             signal: "elm,state,disabled";
13836             source: "elm";
13837             action: STATE_SET "disabled" 0.0;
13838             target: "button_image";
13839             target: "over2";
13840             target: "disabler";
13841             after: "disable_text";
13842          }
13843          program { name: "disable_text";
13844             script {
13845                new st[31];
13846                new Float:vl;
13847                get_state(PART:"elm.text", st, 30, vl);
13848                if (!strcmp(st, "visible"))
13849                   set_state(PART:"elm.text", "disabled_visible", 0.0);
13850                else
13851                   set_state(PART:"elm.text", "disabled", 0.0);
13852                set_int(button_state, 1);
13853             }
13854          }
13855          program { name: "enable";
13856             signal: "elm,state,enabled";
13857             source: "elm";
13858             action: STATE_SET "default" 0.0;
13859             target: "button_image";
13860             target: "over2";
13861             target: "disabler";
13862             after: "enable_text";
13863          }
13864          program { name: "enable_text";
13865             script {
13866                new st[31];
13867                new Float:vl;
13868                get_state(PART:"elm.text", st, 30, vl);
13869                if (!strcmp(st, "disabled_visible"))
13870                   set_state(PART:"elm.text", "visible", 0.0);
13871                else
13872                   set_state(PART:"elm.text", "default", 0.0);
13873                set_int(button_state, 0);
13874             }
13875          }
13876          program { name: "focused";
13877             //signal: "elm,action,focus";
13878             //source: "elm";
13879             action: STATE_SET "focused" 0.0;
13880             target: "button_image";
13881             target: "elm.text";
13882          }
13883          program { name: "unfocused";
13884             //signal: "elm,action,unfocus";
13885             //source: "elm";
13886             action: STATE_SET "default" 0.0;
13887             target: "button_image";
13888             after: "unfocus_text";
13889          }
13890          program { name: "unfocus_text";
13891             action: STATE_SET "visible" 0.0;
13892             target: "elm.text";
13893          }
13894       }
13895    }
13896
13897 ///////////////////////////////////////////////////////////////////////////////////////
13898    group { name: "elm/button/base/navigationbar_control/right";
13899       script {
13900          public button_state = 0; //0:enabled, 1: disabled
13901       }
13902       parts {
13903          part { name: "button_image";
13904             type: RECT;
13905             mouse_events: 1;
13906             scale: 1;
13907             description { state: "default" 0.0;
13908                min: 20 50;
13909                color: 0 0 0 0;
13910                rel1.offset: 5 5;
13911                rel2.offset: -6 -6;
13912             }
13913             description { state: "clicked" 0.0;
13914                 inherit: "default" 0.0;
13915                color: 187 127 16 255;
13916             }
13917          }
13918          part {
13919             name: "padding_left";
13920             type: RECT;
13921             scale: 1;
13922             mouse_events: 0;
13923             description { state: "default" 0.0;
13924                align: 0.0 0.0;
13925                rel1.relative: 0.0 0.0;
13926                rel2.relative: 0.0 1.0;
13927                min: 10 5;
13928                fixed: 1 0;
13929                color: 0 0 0 0;
13930             }
13931          }
13932          part {
13933             name: "padding_right";
13934             type: RECT;
13935             scale: 1;
13936             mouse_events: 0;
13937             description { state: "default" 0.0;
13938                align: 1.0 0.0;
13939                rel1.relative: 1.0 0.0;
13940                rel2.relative: 1.0 1.0;
13941                min: 10 5;
13942                fixed: 1 0;
13943                color: 0 0 0 0;
13944             }
13945          }
13946          part {
13947             name: "padding_top";
13948             type: RECT;
13949             scale: 1;
13950             mouse_events: 0;
13951             description { state: "default" 0.0;
13952                align: 0.0 0.0;
13953                rel1.relative: 0.0 0.0;
13954                rel2.relative: 1.0 0.0;
13955                min: 5 5;
13956                fixed: 0 1;
13957                color: 0 0 0 0;
13958             }
13959          }
13960          part {
13961             name: "padding_bottom";
13962             type: RECT;
13963             scale: 1;
13964             mouse_events: 0;
13965             description { state: "default" 0.0;
13966                align: 1.0 1.0;
13967                rel1.relative: 0.0 1.0;
13968                rel2.relative: 1.0 1.0;
13969                min: 5 5;
13970                fixed: 0 1;
13971                color: 0 0 0 0;
13972             }
13973          }
13974          part {
13975             name: "icon_rect";
13976             type: RECT;
13977             scale: 1;
13978             mouse_events: 0;
13979             description { state: "default" 0.0;
13980                visible: 1;
13981                min: 0 40;
13982                fixed: 1 0;
13983                rel1 {relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_top"; }
13984                rel2 {relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_bottom"; }
13985                align: 0.0 0.5;
13986                color: 0 0 0 0;
13987             }
13988          }
13989          part {
13990             name: "padding_icon_text";
13991             type: RECT;
13992             scale: 1;
13993             mouse_events: 0;
13994             description { state: "default" 0.0; //when only icon or no icon is there
13995                align: 1.0 0.5;
13996                rel1 { relative: 0.0 0.0; to: "elm.text"; }
13997                rel2 { relative: 0.0 1.0; to: "elm.text"; }
13998                fixed: 1 0;
13999                min: 0 0;
14000                color: 0 0 0 0;
14001             }
14002             description { state: "icononly" 0.0;
14003                inherit: "default" 0.0;
14004             }
14005             description { state: "visible" 0.0; //when icon is visible
14006                align: 1.0 0.5;
14007                rel1 { relative: 0.0 0.0; to: "elm.text"; }
14008                rel2 { relative: 0.0 1.0; to: "elm.text"; }
14009                fixed: 1 0;
14010                min: 6 0;
14011                color: 0 0 0 0;
14012             }
14013          }
14014          part { name: "elm.swallow.content";
14015             type: SWALLOW;
14016             scale: 1;
14017             description { state: "default" 0.0;
14018                visible: 0;
14019                align: 0.0 0.5;
14020                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14021                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
14022                fixed: 1 0;
14023             }
14024             description { state: "visible" 0.0;
14025                fixed: 1 0;
14026                visible: 1;
14027                min: 22 22;
14028                max: 22 22;
14029                align: 1.0 0.5;
14030                rel1 {relative: 0.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
14031                rel2 {relative: 0.0 0.0; to_x: "padding_icon_text"; to_y: "padding_bottom"; }
14032                aspect: 1.0 1.0;
14033                aspect_preference: VERTICAL;
14034             }
14035             description { state: "icononly" 0.0;;
14036                visible: 1;
14037                min: 30 30;
14038                max: 30 30;
14039                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14040                rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
14041                align: 0.5 0.5;
14042                aspect: 1.0 1.0;
14043                aspect_preference: VERTICAL;
14044             }
14045          }
14046          part { name: "elm.text";
14047             type: TEXT;
14048             mouse_events:  0;
14049             scale: 1;
14050             description { state: "default" 0.0;
14051                visible: 0;
14052                rel1 { relative: 0.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14053                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
14054                align: 1.0 0.5;
14055                color: 255 255 255 255;
14056                text {
14057                   font: "SLP:style=Medium";
14058                   size: 20;
14059                   min:  0 0;
14060                   align: 1.0 0.5;
14061                   max: 1 0;
14062                }
14063             }
14064             description { state: "visible" 0.0;
14065                inherit: "default" 0.0;
14066                visible: 1;
14067                min: 90 40;
14068             }
14069             description { state: "clicked" 0.0;
14070                inherit: "default" 0.0;
14071                visible: 1;
14072                min: 0 0;
14073                color: 255 255 255 255;
14074                color2: 0 0 0 102;
14075             }
14076             description { state: "disabled" 0.0;
14077                inherit: "default" 0.0;
14078                color: 0 0 0 128;
14079                color3: 0 0 0 0;
14080             }
14081             description { state: "disabled_visible" 0.0;
14082                inherit: "default" 0.0;
14083                color: 0 0 0 128;
14084                color3: 0 0 0 0;
14085                visible: 1;
14086             }
14087             description { state: "focused" 0.0;
14088                inherit: "default" 0.0;
14089                visible: 1;
14090                min: 0 0;
14091                color: 255 255 255 255;
14092                color2: 0 0 0 102;
14093             }
14094          }
14095          part { name: "over2";
14096             type: RECT;
14097             mouse_events: 1;
14098             repeat_events: 1;
14099             ignore_flags: ON_HOLD;
14100             description { state: "default" 0.0;
14101                color: 0 0 0 0;
14102             }
14103             description { state: "disabled" 0.0;
14104                inherit:  "default" 0.0;
14105                visible: 0;
14106             }
14107          }
14108          part { name: "over3";
14109             type: RECT;
14110             mouse_events: 1;
14111             repeat_events: 1;
14112             description { state: "default" 0.0;
14113                color: 0 0 0 0;
14114             }
14115             description { state: "clicked" 0.0;
14116                inherit:  "default" 0.0;
14117                visible: 1;
14118             }
14119          }
14120          part { name: "disabler";
14121             type: RECT;
14122             description { state: "default" 0.0;
14123                color: 0 0 0 0;
14124                visible: 0;
14125             }
14126             description { state: "disabled" 0.0;
14127                inherit: "default" 0.0;
14128                visible: 1;
14129             }
14130          }
14131       }
14132       programs {
14133          program { name: "button_click";
14134             signal: "mouse,down,1";
14135             source: "over2";
14136             action: SIGNAL_EMIT "elm,action,press" "";
14137             after: "button_click_anim";
14138          }
14139          program { name: "button_click_anim";
14140             action: STATE_SET "clicked" 0.0;
14141             target: "button_image";
14142             after: "text_clicked";
14143          }
14144          program { name: "text_clicked";
14145             script {
14146                new st[31];
14147                new Float:vl;
14148                get_state(PART:"elm.text", st, 30, vl);
14149                if (!strcmp(st, "visible"))
14150                   set_state(PART:"elm.text", "clicked", 0.0);
14151             }
14152          }
14153          program { name: "button_unpress";
14154             action: SIGNAL_EMIT "elm,action,unpress" "";
14155          }
14156          program { name: "button_mouseout_clicked";
14157             signal: "mouse,up,1";
14158             source: "over3";
14159             script {
14160                new st[31];
14161                new Float:vl;
14162                get_state(PART:"elm.swallow.content", st, 30, vl);
14163                if (strcmp(st, "icononly"))
14164                {
14165                   emit("elm,action,default,text,set", "");
14166                   set_state(PART:"elm.text", "visible", 0.0);
14167                }
14168                if(get_int(button_state) !=1)
14169                   set_state(PART:"button_image", "default", 0.0);
14170             }
14171             after: button_unpress;
14172          }
14173          program { name: "button_click2";
14174             signal: "mouse,down,1";
14175             source: "over3";
14176             action: STATE_SET "clicked" 0.0;
14177             target: "over3";
14178          }
14179          program { name: "button_unclick2";
14180             signal: "mouse,clicked,1";
14181             source: "over3";
14182             action: STATE_SET "default" 0.0;
14183             target: "over3";
14184          }
14185          program { name: "button_unclick3";
14186             signal: "mouse,clicked,1";
14187             source: "over2";
14188             action: SIGNAL_EMIT "elm,action,click" "";
14189          }
14190          program { name: "text_show";
14191             signal: "elm,state,text,visible";
14192             source: "elm";
14193             script {
14194                new st[31];
14195                new Float:vl;
14196                get_state(PART:"elm.swallow.content", st, 30, vl);
14197                if (!strcmp(st, "icononly"))
14198                {
14199                   set_state(PART:"elm.swallow.content", "visible", 0.0);
14200                   set_state(PART:"padding_icon_text", "visible", 0.0);
14201                }
14202                set_state(PART:"elm.text", "visible", 0.0);
14203             }
14204          }
14205          program { name: "text_hide";
14206             signal: "elm,state,text,hidden";
14207             source: "elm";
14208             script {
14209                new st[31];
14210                new Float:vl;
14211                get_state(PART:"elm.swallow.content", st, 30, vl);
14212                if (!strcmp(st, "visible"))
14213                {
14214                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
14215                   set_state(PART:"padding_icon_text", "icononly", 0.0);
14216                }
14217                set_state(PART:"elm.text", "default", 0.0);
14218             }
14219          }
14220          program { name: "icon_show";
14221             signal: "elm,state,icon,visible";
14222             source: "elm";
14223             script {
14224                new st[31];
14225                new Float:vl;
14226                get_state(PART:"elm.text", st, 30, vl);
14227                if (!strcmp(st, "visible"))
14228                {
14229                   set_state(PART:"elm.swallow.content", "visible", 0.0);
14230                   set_state(PART:"padding_icon_text", "visible", 0.0);
14231                }
14232                else
14233                {
14234                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
14235                   set_state(PART:"padding_icon_text", "icononly", 0.0);
14236                }
14237             }
14238          }
14239          program { name: "icon_hide";
14240             signal: "elm,state,icon,hidden";
14241             source: "elm";
14242             action:  STATE_SET "default" 0.0;
14243             target: "elm.swallow.content";
14244          }
14245          program { name: "disable";
14246             signal: "elm,state,disabled";
14247             source: "elm";
14248             action: STATE_SET "disabled" 0.0;
14249             target: "button_image";
14250             target: "over2";
14251             target: "disabler";
14252             after: "disable_text";
14253          }
14254          program { name: "disable_text";
14255             script {
14256                new st[31];
14257                new Float:vl;
14258                get_state(PART:"elm.text", st, 30, vl);
14259                if (!strcmp(st, "visible"))
14260                   set_state(PART:"elm.text", "disabled_visible", 0.0);
14261                else
14262                   set_state(PART:"elm.text", "disabled", 0.0);
14263                set_int(button_state, 1);
14264             }
14265          }
14266          program { name: "enable";
14267             signal: "elm,state,enabled";
14268             source: "elm";
14269             action: STATE_SET "default" 0.0;
14270             target: "button_image";
14271             target: "over2";
14272             target: "disabler";
14273             after: "enable_text";
14274          }
14275          program { name: "enable_text";
14276             script {
14277                new st[31];
14278                new Float:vl;
14279                get_state(PART:"elm.text", st, 30, vl);
14280                if (!strcmp(st, "disabled_visible"))
14281                   set_state(PART:"elm.text", "visible", 0.0);
14282                else
14283                   set_state(PART:"elm.text", "default", 0.0);
14284                set_int(button_state, 0);
14285             }
14286          }
14287          program { name: "focused";
14288             //signal: "elm,action,focus";
14289             //source: "elm";
14290             action: STATE_SET "focused" 0.0;
14291             target: "button_image";
14292             target: "elm.text";
14293          }
14294          program { name: "unfocused";
14295             //signal: "elm,action,unfocus";
14296             //source: "elm";
14297             action: STATE_SET "default" 0.0;
14298             target: "button_image";
14299             after: "unfocus_text";
14300          }
14301          program { name: "unfocus_text";
14302             action: STATE_SET "visible" 0.0;
14303             target: "elm.text";
14304          }
14305       }
14306    }
14307
14308 ///////////////////////////////////////////////////////////////////////////////////////
14309    group { name: "elm/button/base/tickernoti";
14310       images {
14311          image: "00_button_06_normal.png" COMP;
14312          image: "00_button_06_press.png" COMP;
14313          image: "00_button_06_dim.png" COMP;
14314       }
14315       script {
14316          public button_state = 0; //0:enabled, 1: disabled
14317       }
14318       parts {
14319          part { name: "button_image";
14320             mouse_events: 1;
14321             scale: 1;
14322             description { state: "default" 0.0;
14323                min: 10 34;
14324                max: 150 34;
14325                image {
14326                   normal: "00_button_06_normal.png";
14327                   border: 4 4 3 3;
14328                   border_scale: 1;
14329                }
14330             }
14331             description { state: "clicked" 0.0;
14332                inherit: "default" 0.0;
14333                image.normal: "00_button_06_press.png";
14334             }
14335             description { state: "disabled" 0.0;
14336                inherit:  "default" 0.0;
14337                image.normal: "00_button_06_dim.png";
14338             }
14339             description { state: "focused" 0.0;
14340                inherit: "default" 0.0;
14341                image.normal: "00_button_06_press.png";
14342             }
14343          }
14344          part {
14345             name: "padding_left";
14346             type: RECT;
14347             scale: 1;
14348             mouse_events: 0;
14349             description { state: "default" 0.0;
14350                align: 0.0 0.0;
14351                rel1.relative: 0.0 0.0;
14352                rel2.relative: 0.0 1.0;
14353                min: 5 5;
14354                fixed: 1 0;
14355                color: 0 0 0 0;
14356             }
14357          }
14358          part {
14359             name: "padding_right";
14360             type: RECT;
14361             scale: 1;
14362             mouse_events: 0;
14363             description { state: "default" 0.0;
14364                align: 1.0 0.0;
14365                rel1.relative: 1.0 0.0;
14366                rel2.relative: 1.0 1.0;
14367                min: 5 5;
14368                fixed: 1 0;
14369                color: 0 0 0 0;
14370             }
14371          }
14372          part {
14373             name: "padding_top";
14374             type: RECT;
14375             scale: 1;
14376             mouse_events: 0;
14377             description { state: "default" 0.0;
14378                align: 0.0 0.0;
14379                rel1.relative: 0.0 0.0;
14380                rel2.relative: 1.0 0.0;
14381                min: 5 5;
14382                fixed: 0 1;
14383                color: 0 0 0 0;
14384             }
14385          }
14386          part {
14387             name: "padding_bottom";
14388             type: RECT;
14389             scale: 1;
14390             mouse_events: 0;
14391             description { state: "default" 0.0;
14392                align: 1.0 1.0;
14393                rel1.relative: 0.0 1.0;
14394                rel2.relative: 1.0 1.0;
14395                min: 5 5;
14396                fixed: 0 1;
14397                color: 0 0 0 0;
14398             }
14399          }
14400          part {
14401             name: "icon_rect";
14402             type: RECT;
14403             scale: 1;
14404             mouse_events: 0;
14405             description { state: "default" 0.0;
14406                visible: 1;
14407                min: 0 0;
14408                fixed: 1 0;
14409                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14410                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
14411                align: 0.0 0.5;
14412                color: 0 0 0 0;
14413             }
14414             description { state: "visible" 0.0;
14415                visible: 1;
14416                min: 24 24;
14417                max: 24 24;
14418                fixed: 1 0;
14419                rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14420                rel2 {relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
14421                aspect: 1.0 1.0;
14422                aspect_preference: VERTICAL;
14423                align: 0.0 0.5;
14424                color: 0 0 0 0;
14425             }
14426             description { state: "icononly" 0.0;
14427                inherit: "default" 0.0;
14428             }
14429          }
14430          part {
14431             name: "padding_after_icon";
14432             type: RECT;
14433             scale: 1;
14434             mouse_events: 0;
14435             description { state: "default" 0.0; //when only icon or no icon is there
14436                align: 0.0 0.0;
14437                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
14438                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
14439                fixed: 1 0;
14440                min: 0 0;
14441                color: 0 255 0 100;
14442             }
14443             description { state: "visible" 0.0;
14444                visible: 1;
14445                align: 0.0 0.0;
14446                rel1 { relative: 1.0 0.0; to: "icon_rect"; }
14447                rel2 { relative: 1.0 1.0; to: "icon_rect"; }
14448                fixed: 1 0;
14449                min: 8 0;
14450                color: 0 0 0 0;
14451             }
14452             description { state: "icononly" 0.0;
14453                inherit: "default" 0.0;
14454             }
14455          }
14456          part {
14457             name: "padding_before_text";
14458             type: RECT;
14459             scale: 1;
14460             mouse_events: 0;
14461             description { state: "default" 0.0; //when only icon or no icon is there
14462                align: 1.0 0.5;
14463                rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
14464                rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
14465                fixed: 1 0;
14466                min: 8 0;
14467                color: 0 0 0 0;
14468             }
14469          }
14470          part { name: "elm.swallow.content";
14471             type: SWALLOW;
14472             scale: 1;
14473             description { state: "default" 0.0;
14474                visible: 0;
14475                align: 0.0 0.5;
14476                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14477                rel2 { relative: 1.0 0.0; to_x: "padding_left"; to_y: "padding_bottom"; }
14478                fixed: 1 0;
14479             }
14480             description { state: "visible" 0.0;
14481                fixed: 1 0;
14482                visible: 1;
14483                min: 24 24;
14484                max: 24 24;
14485                align: 1.0 0.5;
14486                rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_top"; }
14487                rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_bottom"; }
14488                aspect: 1.0 1.0;
14489                aspect_preference: VERTICAL;
14490             }
14491             description { state: "icononly" 0.0;;
14492                visible: 1;
14493                min: 30 20;
14494                max: 30 20;
14495                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14496                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
14497                align: 0.5 0.5;
14498                aspect: 1.0 1.0;
14499                aspect_preference: VERTICAL;
14500             }
14501          }
14502          part { name: "elm.text";
14503             type: TEXT;
14504             mouse_events: 0;
14505             scale: 1;
14506             description { state: "default" 0.0;
14507                visible: 0;
14508                rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_top"; }
14509                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y:"padding_bottom"; }
14510                align: 0.5 0.5;
14511                color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
14512                text {
14513                   font: "SLP:style=Roman";
14514                   size: 20;
14515                   min:  0 0;
14516                   align: 0.5 0.5;
14517                   max: 1 0;
14518                }
14519             }
14520             description { state: "visible" 0.0;
14521                inherit: "default" 0.0;
14522                visible: 1;
14523                min: 90 24;
14524             }
14525             description { state: "clicked" 0.0;
14526                inherit: "default" 0.0;
14527                visible: 1;
14528                min: 0 0;
14529                color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
14530             }
14531             description { state: "disabled" 0.0;
14532                inherit: "default" 0.0;
14533                color: 0 0 0 128;
14534             }
14535             description { state: "disabled_visible" 0.0;
14536                inherit: "default" 0.0;
14537                color: BUTTON_TEXT_TICKERNOTI_DISABLED_COLOR_INC;
14538                visible: 1;
14539             }
14540             description { state: "focused" 0.0;
14541                inherit: "default" 0.0;
14542                visible: 1;
14543                min: 0 0;
14544                color: BUTTON_TEXT_TICKERNOTI_NORMAL_COLOR_INC;
14545             }
14546          }
14547          part { name: "over2";
14548             type: RECT;
14549             mouse_events: 1;
14550             repeat_events: 1;
14551             ignore_flags: ON_HOLD;
14552             description { state: "default" 0.0;
14553                color: 0 0 0 0;
14554             }
14555             description { state: "disabled" 0.0;
14556                inherit:  "default" 0.0;
14557                visible: 0;
14558             }
14559          }
14560          part { name: "over3";
14561             type: RECT;
14562             mouse_events: 1;
14563             repeat_events: 1;
14564             description { state: "default" 0.0;
14565                color: 0 0 0 0;
14566             }
14567             description { state: "clicked" 0.0;
14568                inherit:  "default" 0.0;
14569                visible: 1;
14570             }
14571          }
14572          part { name: "disabler";
14573             type: RECT;
14574             description { state: "default" 0.0;
14575                color: 0 0 0 0;
14576                visible: 0;
14577             }
14578             description { state: "disabled" 0.0;
14579                inherit: "default" 0.0;
14580                visible: 1;
14581             }
14582          }
14583       }
14584       programs {
14585          program { name: "button_click";
14586             signal: "mouse,down,1";
14587             source: "over2";
14588             action: SIGNAL_EMIT "elm,action,press" "";
14589             after: "button_click_anim";
14590          }
14591          program { name: "button_click_anim";
14592             action: STATE_SET "clicked" 0.0;
14593             target: "button_image";
14594             after: "text_clicked";
14595          }
14596          program { name: "text_clicked";
14597             script {
14598                new st[31];
14599                new Float:vl;
14600                get_state(PART:"elm.text", st, 30, vl);
14601                if (!strcmp(st, "visible"))
14602                   set_state(PART:"elm.text", "clicked", 0.0);
14603             }
14604          }
14605          program { name: "button_unpress";
14606             action: SIGNAL_EMIT "elm,action,unpress" "";
14607          }
14608          program { name: "button_mouseout_clicked";
14609             signal: "mouse,up,1";
14610             source: "over3";
14611             script {
14612                new st[31];
14613                new Float:vl;
14614                get_state(PART:"elm.swallow.content", st, 30, vl);
14615                if (strcmp(st, "icononly"))
14616                {
14617                   emit("elm,action,default,text,set", "");
14618                   set_state(PART:"elm.text", "visible", 0.0);
14619                }
14620                if(get_int(button_state) !=1)
14621                   set_state(PART:"button_image", "default", 0.0);
14622             }
14623             after: button_unpress;
14624          }
14625          program { name: "button_click2";
14626             signal: "mouse,down,1";
14627             source: "over3";
14628             action: STATE_SET "clicked" 0.0;
14629             target: "over3";
14630          }
14631          program { name: "button_unclick2";
14632             signal: "mouse,clicked,1";
14633             source: "over3";
14634             action: STATE_SET "default" 0.0;
14635             target: "over3";
14636          }
14637          program { name: "button_unclick3";
14638             signal: "mouse,clicked,1";
14639             source: "over2";
14640             action: SIGNAL_EMIT "elm,action,click" "";
14641          }
14642          program { name: "text_show";
14643             signal: "elm,state,text,visible";
14644             source: "elm";
14645             script {
14646                new st[31];
14647                new Float:vl;
14648                get_state(PART:"elm.swallow.content", st, 30, vl);
14649                if (!strcmp(st, "icononly"))
14650                {
14651                   set_state(PART:"elm.swallow.content", "visible", 0.0);
14652                   set_state(PART:"icon_rect", "visible", 0.0);
14653                   set_state(PART:"padding_after_icon", "visible", 0.0);
14654                }
14655                set_state(PART:"elm.text", "visible", 0.0);
14656             }
14657          }
14658          program { name: "text_hide";
14659             signal: "elm,state,text,hidden";
14660             source: "elm";
14661             script {
14662                new st[31];
14663                new Float:vl;
14664                get_state(PART:"elm.swallow.content", st, 30, vl);
14665                if (!strcmp(st, "visible"))
14666                {
14667                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
14668                   set_state(PART:"icon_rect", "icononly", 0.0);
14669                   set_state(PART:"padding_after_icon", "icononly", 0.0);
14670                }
14671                set_state(PART:"elm.text", "default", 0.0);
14672             }
14673          }
14674          program { name: "icon_show";
14675             signal: "elm,state,icon,visible";
14676             source: "elm";
14677             script {
14678                new st[31];
14679                new Float:vl;
14680                get_state(PART:"elm.text", st, 30, vl);
14681                if (!strcmp(st, "visible"))
14682                {
14683                   set_state(PART:"elm.swallow.content", "visible", 0.0);
14684                   set_state(PART:"icon_rect", "visible", 0.0);
14685                   set_state(PART:"padding_after_icon", "visible", 0.0);
14686                }
14687                else
14688                {
14689                   set_state(PART:"elm.swallow.content", "icononly", 0.0);
14690                   set_state(PART:"icon_rect", "icononly", 0.0);
14691                   set_state(PART:"padding_after_icon", "icononly", 0.0);
14692                }
14693             }
14694          }
14695          program { name: "icon_hide";
14696             signal: "elm,state,icon,hidden";
14697             source: "elm";
14698             action:  STATE_SET "default" 0.0;
14699             target: "elm.swallow.content";
14700          }
14701          program { name: "disable";
14702             signal: "elm,state,disabled";
14703             source: "elm";
14704             action: STATE_SET "disabled" 0.0;
14705             target: "button_image";
14706             target: "over2";
14707             target: "disabler";
14708             after: "disable_text";
14709          }
14710          program { name: "disable_text";
14711             script {
14712                new st[31];
14713                new Float:vl;
14714                get_state(PART:"elm.text", st, 30, vl);
14715                if (!strcmp(st, "visible"))
14716                   set_state(PART:"elm.text", "disabled_visible", 0.0);
14717                else
14718                   set_state(PART:"elm.text", "disabled", 0.0);
14719                set_int(button_state, 1);
14720             }
14721          }
14722          program { name: "enable";
14723             signal: "elm,state,enabled";
14724             source: "elm";
14725             action: STATE_SET "default" 0.0;
14726             target: "button_image";
14727             target: "over2";
14728             target: "disabler";
14729             after: "enable_text";
14730          }
14731          program { name: "enable_text";
14732             script {
14733                new st[31];
14734                new Float:vl;
14735                get_state(PART:"elm.text", st, 30, vl);
14736                if (!strcmp(st, "disabled_visible"))
14737                   set_state(PART:"elm.text", "visible", 0.0);
14738                else
14739                   set_state(PART:"elm.text", "default", 0.0);
14740                set_int(button_state, 0);
14741             }
14742          }
14743          program { name: "focused";
14744             //signal: "elm,action,focus";
14745             //source: "elm";
14746             action: STATE_SET "focused" 0.0;
14747             target: "button_image";
14748             target: "elm.text";
14749          }
14750          program { name: "unfocused";
14751             //signal: "elm,action,unfocus";
14752             //source: "elm";
14753             action: STATE_SET "default" 0.0;
14754             target: "button_image";
14755             after: "unfocus_text";
14756          }
14757          program { name: "unfocus_text";
14758             action: STATE_SET "visible" 0.0;
14759             target: "elm.text";
14760          }
14761       }
14762    }
14763
14764 ///////////////////////////////////////////////////////////////////////////////////////
14765    group { name: "elm/button/base/text_only/expandable_number";
14766       images {
14767          image: "00_button_05_normal.png" COMP;
14768          image: "00_button_05_press.png" COMP;
14769          image: "00_button_05_dim.png" COMP;
14770          image: "00_arrow_down.png" COMP;
14771          image: "00_arrow_down_press.png" COMP;
14772          image: "00_arrow_down_dim.png" COMP;
14773       }
14774       script {
14775          public button_state = 0; //0:enabled, 1: disabled
14776       }
14777       parts {
14778          part { name: "button_image";
14779             mouse_events: 1;
14780             scale: 1;
14781             description { state: "default" 0.0;
14782                min: 59 28;
14783                image {
14784                   normal: "00_button_05_normal.png";
14785                   border: 4 4 3 3;
14786                   border_scale: 1;
14787                }
14788             }
14789             description { state: "clicked" 0.0;
14790                inherit: "default" 0.0;
14791                image.normal: "00_button_05_press.png";
14792             }
14793             description { state: "disabled" 0.0;
14794                inherit:  "default" 0.0;
14795                image.normal: "00_button_05_dim.png";
14796             }
14797             description { state: "focused" 0.0;
14798                inherit: "default" 0.0;
14799                image.normal: "00_button_05_press.png";
14800             }
14801          }
14802          part {
14803             name: "padding_left";
14804             type: RECT;
14805             scale: 1;
14806             mouse_events: 0;
14807             description { state: "default" 0.0;
14808                align: 0.0 0.0;
14809                rel1.relative: 0.0 0.0;
14810                rel2.relative: 0.0 1.0;
14811                min: 15 5;
14812                fixed: 1 0;
14813                color: 0 0 0 0;
14814             }
14815          }
14816          part {
14817             name: "padding_right";
14818             type: RECT;
14819             scale: 1;
14820             mouse_events: 0;
14821             description { state: "default" 0.0;
14822                align: 1.0 0.0;
14823                rel1.relative: 1.0 0.0;
14824                rel2.relative: 1.0 1.0;
14825                min: 15 5;
14826                fixed: 1 0;
14827                color: 0 0 0 0;
14828             }
14829          }
14830          part {
14831             name: "padding_top";
14832             type: RECT;
14833             scale: 1;
14834             mouse_events: 0;
14835             description { state: "default" 0.0;
14836                align: 0.0 0.0;
14837                rel1.relative: 0.0 0.0;
14838                rel2.relative: 1.0 0.0;
14839                min: 5 5;
14840                fixed: 0 1;
14841                color: 0 0 0 0;
14842             }
14843          }
14844          part {
14845             name: "padding_bottom";
14846             type: RECT;
14847             scale: 1;
14848             mouse_events: 0;
14849             description { state: "default" 0.0;
14850                align: 1.0 1.0;
14851                rel1.relative: 0.0 1.0;
14852                rel2.relative: 1.0 1.0;
14853                min: 5 5;
14854                fixed: 0 1;
14855                color: 0 0 0 0;
14856             }
14857          }
14858          part {
14859             name: "icon_rect";
14860             type: RECT;
14861             scale: 1;
14862             mouse_events: 0;
14863             description { state: "default" 0.0;
14864                visible: 0;
14865                min: 14 10;
14866                fixed: 1 0;
14867                rel1 { relative: 0.0 1.0; to_x: "padding_right"; to_y: "padding_top"; }
14868                rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
14869                align: 1.0 0.5;
14870                color: 0 0 0 0;
14871             }
14872          }
14873          part {
14874             name: "padding_before_icon";
14875             type: RECT;
14876             scale: 1;
14877             mouse_events: 0;
14878             description { state: "default" 0.0;
14879                align: 1.0 0.0;
14880                rel1 { relative: 0.0 0.0; to: "icon_rect"; }
14881                rel2 { relative: 0.0 1.0; to: "icon_rect"; }
14882                fixed: 1 0;
14883                min: 15 0;
14884                color: 0 0 0 0;
14885             }
14886          }
14887          part {
14888             name: "padding_after_text";
14889             type: RECT;
14890             scale: 1;
14891             mouse_events: 0;
14892             description { state: "default" 0.0;
14893                align: 0.0 0.5;
14894                rel1 { relative: 1.0 1.0; to_x: "elm.text"; to_y: "padding_top"; }
14895                rel2 { relative: 1.0 0.0; to_x: "elm.text"; to_y: "padding_bottom"; }
14896                fixed: 1 0;
14897                min: 15 0;
14898                color: 0 0 0 0;
14899             }
14900          }
14901          part {
14902             name: "arrow_down";
14903             scale: 1;
14904             mouse_events: 0;
14905             description { state: "default" 0.0;
14906                align: 0.0 0.5;
14907                min: 14 10;
14908                max: 14 10;
14909                fixed: 1 1;
14910                rel1 { relative: 1.0 0.5; to_x: "padding_after_text"; }
14911                rel2 { relative: 1.0 0.5; to_x: "padding_after_text"; }
14912                image.normal:"00_arrow_down.png";
14913             }
14914             description { state: "clicked" 0.0;
14915                inherit: "default" 0.0;
14916                image.normal:"00_arrow_down_press.png";
14917             }
14918             description { state: "disabled" 0.0;
14919                inherit: "default" 0.0;
14920                image.normal:"00_arrow_down_dim.png";
14921             }
14922          }
14923          part { name: "elm.text";
14924             type: TEXT;
14925             //effect: SHADOW;
14926             mouse_events:  0;
14927             scale: 1;
14928             description { state: "default" 0.0;
14929                visible: 1;
14930                rel1 { relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
14931                rel2 { relative: 0.0 0.0; to_x: "padding_before_icon"; to_y:"padding_bottom"; }
14932                align: 0.5 0.5;
14933                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
14934                color2: BUTTON_TEXT_STYLE1_NORMAL_SHAWDOW_COLOR_INC;
14935                text {
14936                   font: "SLP:style=Medium";
14937                   size: 20;
14938                   min:  1 0;
14939                   align: 0.5 0.5;
14940                   max: 1 0;
14941                }
14942             }
14943             description { state: "visible" 0.0;
14944                inherit: "default" 0.0;
14945                visible: 1;
14946                min: 90 36;
14947             }
14948             description { state: "clicked" 0.0;
14949                inherit: "default" 0.0;
14950                visible: 1;
14951                min: 0 0;
14952                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
14953                color2: BUTTON_TEXT_STYLE1_PRESSED_SHAWDOW_COLOR_INC;
14954             }
14955             description { state: "disabled" 0.0;
14956                inherit: "default" 0.0;
14957                color: 0 0 0 128;
14958                color3: 0 0 0 0;
14959             }
14960             description { state: "disabled_visible" 0.0;
14961                inherit: "default" 0.0;
14962                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
14963                color2: BUTTON_TEXT_STYLE1_DISABLED_SHAWDOW_COLOR_INC;
14964                color3: 0 0 0 0;
14965                visible: 1;
14966             }
14967             description { state: "focused" 0.0;
14968                inherit: "default" 0.0;
14969                visible: 1;
14970                min: 0 0;
14971                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
14972                color2: BUTTON_TEXT_STYLE1_FOCUSED_SHAWDOW_COLOR_INC;
14973             }
14974          }
14975          part { name: "over2";
14976             type: RECT;
14977             mouse_events: 1;
14978             repeat_events: 1;
14979             ignore_flags: ON_HOLD;
14980             description { state: "default" 0.0;
14981                color: 0 0 0 0;
14982             }
14983             description { state: "disabled" 0.0;
14984                inherit:  "default" 0.0;
14985                visible: 0;
14986             }
14987          }
14988          part { name: "over3";
14989             type: RECT;
14990             mouse_events: 1;
14991             repeat_events: 1;
14992             description { state: "default" 0.0;
14993                color: 0 0 0 0;
14994             }
14995             description { state: "clicked" 0.0;
14996                inherit:  "default" 0.0;
14997                visible: 1;
14998             }
14999          }
15000          part { name: "disabler";
15001             type: RECT;
15002             description { state: "default" 0.0;
15003                color: 0 0 0 0;
15004                visible: 0;
15005             }
15006             description { state: "disabled" 0.0;
15007                inherit: "default" 0.0;
15008                visible: 1;
15009             }
15010          }
15011       }
15012       programs {
15013          program { name: "button_click";
15014             signal: "mouse,down,1";
15015             source: "over2";
15016             action: SIGNAL_EMIT "elm,action,press" "";
15017             after: "button_click_anim";
15018          }
15019          program { name: "button_click_anim";
15020             action: STATE_SET "clicked" 0.0;
15021             target: "button_image";
15022             target: "arrow_down";
15023             after: "text_clicked";
15024          }
15025          program { name: "text_clicked";
15026             script {
15027                new st[31];
15028                new Float:vl;
15029                get_state(PART:"elm.text", st, 30, vl);
15030                if (!strcmp(st, "visible"))
15031                   set_state(PART:"elm.text", "clicked", 0.0);
15032             }
15033          }
15034          program { name: "button_unpress";
15035             action: SIGNAL_EMIT "elm,action,unpress" "";
15036          }
15037          program { name: "button_mouseout_clicked";
15038             signal: "mouse,up,1";
15039             source: "over3";
15040             script {
15041                //new st[31];
15042                //new Float:vl;
15043                //get_state(PART:"elm.swallow.content", st, 30, vl);
15044                //if (strcmp(st, "icononly"))
15045                {
15046                   //emit("elm,action,default,text,set", "");
15047                   //set_state(PART:"elm.text", "visible", 0.0);
15048                }
15049                if(get_int(button_state) !=1)
15050                {
15051                   set_state(PART:"button_image", "default", 0.0);
15052                   set_state(PART:"elm.text", "visible", 0.0);
15053                   set_state(PART:"arrow_down", "default", 0.0);
15054                }
15055             }
15056             after: button_unpress;
15057          }
15058          program { name: "button_click2";
15059             signal: "mouse,down,1";
15060             source: "over3";
15061             action: STATE_SET "clicked" 0.0;
15062             target: "over3";
15063          }
15064          program { name: "button_unclick2";
15065             signal: "mouse,clicked,1";
15066             source: "over3";
15067             action: STATE_SET "default" 0.0;
15068             target: "over3";
15069          }
15070          program { name: "button_unclick3";
15071             signal: "mouse,clicked,1";
15072             source: "over2";
15073             action: SIGNAL_EMIT "elm,action,click" "";
15074          }
15075          program { name: "text_show";
15076             signal: "elm,state,text,visible";
15077             source: "elm";
15078             script {
15079                //new st[31];
15080                //new Float:vl;
15081                //get_state(PART:"elm.swallow.content", st, 30, vl);
15082                //if (!strcmp(st, "icononly"))
15083                {
15084                   //set_state(PART:"elm.swallow.content", "visible", 0.0);
15085                   //set_state(PART:"icon_rect", "visible", 0.0);
15086                   //set_state(PART:"padding_after_icon", "visible", 0.0);
15087                }
15088                set_state(PART:"elm.text", "visible", 0.0);
15089             }
15090          }
15091          program { name: "text_hide";
15092             signal: "elm,state,text,hidden";
15093             source: "elm";
15094             script {
15095                //new st[31];
15096                //new Float:vl;
15097                //get_state(PART:"elm.swallow.content", st, 30, vl);
15098                //if (!strcmp(st, "visible"))
15099                {
15100                   //set_state(PART:"elm.swallow.content", "icononly", 0.0);
15101                   //set_state(PART:"icon_rect", "icononly", 0.0);
15102                   //set_state(PART:"padding_after_icon", "icononly", 0.0);
15103                }
15104                set_state(PART:"elm.text", "default", 0.0);
15105             }
15106          }
15107          program { name: "icon_show";
15108             signal: "elm,state,icon,visible";
15109             source: "elm";
15110             script {
15111                //new st[31];
15112                //new Float:vl;
15113                //get_state(PART:"elm.text", st, 30, vl);
15114                //if (!strcmp(st, "visible"))
15115                {
15116                   //set_state(PART:"elm.swallow.content", "visible", 0.0);
15117                   //set_state(PART:"icon_rect", "visible", 0.0);
15118                   //set_state(PART:"padding_after_icon", "visible", 0.0);
15119                }
15120                //else
15121                {
15122                   //set_state(PART:"elm.swallow.content", "icononly", 0.0);
15123                   //set_state(PART:"icon_rect", "icononly", 0.0);
15124                   //set_state(PART:"padding_after_icon", "icononly", 0.0);
15125                }
15126             }
15127          }
15128          program { name: "icon_hide";
15129             signal: "elm,state,icon,hidden";
15130             source: "elm";
15131             //action:  STATE_SET "default" 0.0;
15132             //target: "elm.swallow.content";
15133          }
15134          program { name: "disable";
15135             signal: "elm,state,disabled";
15136             source: "elm";
15137             action: STATE_SET "disabled" 0.0;
15138             target: "button_image";
15139             target: "over2";
15140             target: "disabler";
15141             after: "disable_text";
15142          }
15143          program { name: "disable_text";
15144             script {
15145                new st[31];
15146                new Float:vl;
15147                get_state(PART:"elm.text", st, 30, vl);
15148                if (!strcmp(st, "visible"))
15149                   set_state(PART:"elm.text", "disabled_visible", 0.0);
15150                else
15151                   set_state(PART:"elm.text", "disabled", 0.0);
15152                set_int(button_state, 1);
15153             }
15154          }
15155          program { name: "enable";
15156             signal: "elm,state,enabled";
15157             source: "elm";
15158             action: STATE_SET "default" 0.0;
15159             target: "button_image";
15160             target: "over2";
15161             target: "disabler";
15162             after: "enable_text";
15163          }
15164          program { name: "enable_text";
15165             script {
15166                new st[31];
15167                new Float:vl;
15168                get_state(PART:"elm.text", st, 30, vl);
15169                if (!strcmp(st, "disabled_visible"))
15170                   set_state(PART:"elm.text", "visible", 0.0);
15171                else
15172                   set_state(PART:"elm.text", "default", 0.0);
15173                set_int(button_state, 0);
15174             }
15175          }
15176          program { name: "focused";
15177             //signal: "elm,action,focus";
15178             //source: "elm";
15179             action: STATE_SET "focused" 0.0;
15180             target: "button_image";
15181             target: "elm.text";
15182          }
15183          program { name: "unfocused";
15184             //signal: "elm,action,unfocus";
15185             //source: "elm";
15186             action: STATE_SET "default" 0.0;
15187             target: "button_image";
15188             after: "unfocus_text";
15189          }
15190          program { name: "unfocus_text";
15191             action: STATE_SET "visible" 0.0;
15192             target: "elm.text";
15193          }
15194       }
15195    }