Merge "[scroller] removed scroller's bounce effect" into tizen_2.2
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / button.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19
20 #define BUTTON_STATE_ENABLED 0
21 #define BUTTON_STATE_DISABLED 1
22 #define BUTTON_LANDSCAPE_DISABLED 0
23 #define BUTTON_LANDSCAPE_ENABLED 1
24
25 ///////////////////////////////////////////////////////////////////////////////////////
26    group { name: "elm/button/base/style1";
27       alias: "elm/button/base/text_only/style1";
28       alias: "elm/button/base/center";
29       alias: "elm/button/base/icon_and_text/center";
30       alias: "elm/button/base/nocontents/search_button";
31       alias: "elm/button/base/style1/multiline";
32       alias: "elm/button/base/sweep";
33       alias: "elm/button/base/text_only/sweep";
34       alias: "elm/button/base/hidden";
35       alias: "elm/button/base/sweep/multiline";
36       alias: "elm/button/base/style2";
37       alias: "elm/button/base/text_only/style2";
38       alias: "elm/button/base/style2/multiline";
39       data {
40          item: "focus_highlight" "on";
41       }
42       images {
43          image: "00_button_01.png" COMP;
44          image: "00_button_01_press.png" COMP;
45          image: "00_button_01_dim.png" COMP;
46          image: "00_button_01_focus.png" COMP;
47       }
48       styles{
49          style { name: "btn_base_style1";
50             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
51             tag: "br" "\n";
52             tag: "ps" "ps";
53             tag: "tab" "\t";
54          }
55          style { name: "btn_base_style1_pressed";
56             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
57             tag: "br" "\n";
58             tag: "ps" "ps";
59             tag: "tab" "\t";
60          }
61       }
62       script {
63          public button_state = BUTTON_STATE_ENABLED;
64       }
65       parts {
66          part { name: "button_image";
67             scale: 1;
68             description { state: "default" 0.0;
69                image {
70                   normal: "00_button_01.png";
71                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
72                   border_scale: 1;
73                }
74             }
75             description { state: "clicked" 0.0;
76                inherit: "default" 0.0;
77                image.normal: "00_button_01_press.png";
78             }
79             description { state: "disabled" 0.0;
80                inherit: "default" 0.0;
81                image.normal: "00_button_01_dim.png";
82             }
83             description { state: "focused" 0.0;
84                inherit: "default" 0.0;
85                image.normal: "00_button_01_press.png";
86             }
87          }
88          part { name: "focus_image";
89             scale: 1;
90             mouse_events: 0;
91             repeat_events: 1;
92             description { state: "default" 0.0;
93                visible: 0;
94                rel1.to : "button_image";
95                rel2.to : "button_image";
96                image {
97                   normal: "00_button_01_focus.png";
98                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
99                   border_scale: 1;
100                }
101             }
102             description { state: "focused" 0.0;
103                inherit: "default" 0.0;
104                visible: 1;
105             }
106          }
107          part { name: "padding_left_top";
108             type: RECT;
109             scale: 1;
110             mouse_events: 0;
111             description { state: "default" 0.0;
112                align: 0.0 0.0;
113                rel2.relative: 0.0 0.0;
114                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
115                fixed: 1 1;
116                visible: 0;
117             }
118          }
119          part { name: "bg";
120             type: RECT;
121             scale: 1;
122             mouse_events: 0;
123             description { state: "default" 0.0;
124                min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
125                visible: 0;
126             }
127             description { state: "visible" 0.0;
128                inherit: "default" 0.0;
129                min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
130             }
131             description { state: "icononly" 0.0;
132                inherit: "default" 0.0;
133                min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
134             }
135          }
136          part { name: "padding_right_bottom";
137             type: RECT;
138             scale: 1;
139             mouse_events: 0;
140             description { state: "default" 0.0;
141                align: 1.0 1.0;
142                rel1.relative: 1.0 1.0;
143                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
144                fixed: 1 1;
145                visible: 0;
146             }
147          }
148          part { name: "icon_rect";
149             type: RECT;
150             scale: 1;
151             mouse_events: 0;
152             description { state: "default" 0.0;
153                visible: 0;
154                min: 0 0;
155                fixed: 1 0;
156                rel1 {
157                   relative: 1.0 1.0;
158                   to: "padding_left_top";
159                }
160                rel2 {
161                   relative: 1.0 0.0;
162                   to_x: "padding_left_top";
163                   to_y: "padding_right_bottom";
164                }
165                align: 0.0 0.5;
166             }
167             description { state: "visible" 0.0;
168                inherit: "default" 0.0;
169                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
170                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
171             }
172             description { state: "icononly" 0.0;
173                inherit: "default" 0.0;
174             }
175          }
176          part { name: "padding_after_icon";
177             type: RECT;
178             scale: 1;
179             mouse_events: 0;
180             description { state: "default" 0.0; //when only icon or no icon is there
181                align: 0.0 0.0;
182                rel1 {
183                   relative: 1.0 0.0;
184                   to: "icon_rect";
185                }
186                rel2.to: "icon_rect";
187                fixed: 1 0;
188                min: 0 0;
189                visible: 0;
190             }
191             description { state: "visible" 0.0;
192                inherit: "default" 0.0;
193                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
194             }
195             description { state: "icononly" 0.0;
196                inherit: "default" 0.0;
197             }
198          }
199          part { name: "padding_before_text";
200             type: RECT;
201             scale: 1;
202             mouse_events: 0;
203             description { state: "default" 0.0; //when only icon or no icon is there
204                align: 1.0 0.5;
205                rel1 {
206                   relative: 0.0 1.0;
207                   to_x: "elm.text";
208                   to_y: "padding_left_top";
209                }
210                rel2 {
211                   relative: 0.0 0.0;
212                   to_x: "elm.text";
213                   to_y: "padding_right_bottom";
214                }
215                fixed: 1 0;
216                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
217                visible: 0;
218             }
219          }
220          part { name: "elm.swallow.content";
221             type: SWALLOW;
222             scale: 1;
223             clip_to: "clipper";
224             description { state: "default" 0.0;
225                visible: 0;
226                align: 0.0 0.5;
227                rel1 {
228                   relative: 1.0 1.0;
229                   to: "padding_left_top";
230                }
231                rel2 {
232                   relative: 1.0 0.0;
233                   to_x: "padding_left_top";
234                   to_y: "padding_right_bottom";
235                }
236                fixed: 1 0;
237             }
238             description { state: "visible" 0.0;
239                fixed: 1 0;
240                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
241                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
242                align: 1.0 0.5;
243                rel1 {
244                   relative: 0.0 1.0;
245                   to_x: "padding_before_text";
246                   to_y: "padding_left_top";
247                }
248                rel2 {
249                   relative: 0.0 0.0;
250                   to_x: "padding_before_text";
251                   to_y: "padding_right_bottom";
252                }
253             }
254             description { state: "icononly" 0.0;
255                min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
256                max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
257             }
258          }
259          part { name: "elm.text";
260             type: TEXTBLOCK;
261             mouse_events: 0;
262             scale: 1;
263             clip_to: "clipper";
264             description { state: "default" 0.0;
265                visible: 0;
266                rel1 {
267                   relative: 1.0 1.0;
268                   to_x: "padding_after_icon";
269                   to_y: "padding_left_top";
270                }
271                rel2 {
272                   relative: 0.0 0.0;
273                   to: "padding_right_bottom";
274                } 
275                text {
276                   style: "btn_base_style1";
277                }
278             }
279             description { state: "visible" 0.0;
280                inherit: "default" 0.0;
281                visible: 1;
282             }
283             description { state: "clicked" 0.0;
284                inherit: "default" 0.0;
285                visible: 1;
286                text {
287                   style: "btn_base_style1_pressed";
288                }
289             }
290             description { state: "disabled" 0.0;
291                inherit: "default" 0.0;
292             }
293             description { state: "disabled_visible" 0.0;
294                inherit: "default" 0.0;
295                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
296                visible: 1;
297             }
298             description { state: "focused" 0.0;
299                inherit: "default" 0.0;
300                visible: 1;
301                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
302             }
303          }
304          part { name: "over2";
305             type: RECT;
306             repeat_events: 1;
307             ignore_flags: ON_HOLD;
308             description { state: "default" 0.0;
309                color: 0 0 0 0;
310             }
311          }
312          part { name: "over3";
313             type: RECT;
314             repeat_events: 1;
315             description { state: "default" 0.0;
316                color: 0 0 0 0;
317             }
318          }
319          part { name: "clipper";
320             type: RECT;
321             description { state: "default" 0.0;
322                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
323             }
324             description { state: "disabled" 0.0;
325                inherit: "default" 0.0;
326                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
327             }
328          }
329          part { name: "disabler";
330             type: RECT;
331             description { state: "default" 0.0;
332                color: 0 0 0 0;
333                visible: 0;
334             }
335             description { state: "disabled" 0.0;
336                inherit: "default" 0.0;
337                visible: 1;
338             }
339          }
340       }
341       programs {
342          program { name: "button_click";
343             signal: "mouse,down,1";
344             source: "over2";
345             action: SIGNAL_EMIT "elm,action,press" "";
346             after: "button_click_anim";
347          }
348          program { name: "button_click_anim";
349             action: STATE_SET "clicked" 0.0;
350             target: "button_image";
351             after: "text_clicked";
352          }
353          program { name: "text_clicked";
354             script {
355                new st[31];
356                new Float:vl;
357                get_state(PART:"elm.text", st, 30, vl);
358                if (!strcmp(st, "visible"))
359                  set_state(PART:"elm.text", "clicked", 0.0);
360             }
361          }
362          program { name: "button_double_click";
363             signal: "mouse,down,1,double";
364             source: "over2";
365             after: "button_click_anim";
366          }
367          program { name: "button_unpress";
368             action: SIGNAL_EMIT "elm,action,unpress" "";
369          }
370          program { name: "button_mouseout_clicked";
371             signal: "mouse,up,1";
372             source: "over3";
373             script {
374                new st[31];
375                new Float:vl;
376                get_state(PART:"elm.swallow.content", st, 30, vl);
377                if (strcmp(st, "icononly"))
378                  {
379                     emit("elm,action,default,text,set", "");
380                     set_state(PART:"elm.text", "visible", 0.0);
381                  }
382                if (get_int(button_state) != BUTTON_STATE_DISABLED)
383                  set_state(PART:"button_image", "default", 0.0);
384             }
385             after: button_unpress;
386          }
387          program { name: "touch_snd";
388             signal: "mouse,clicked,1";
389             source: "over2";
390             action: PLAY_SAMPLE "touch_sound" 1.0;
391             after: button_unclick3;
392          }
393          program { name: "button_unclick3";
394             action: SIGNAL_EMIT "elm,action,click" "";
395          }
396          program { name: "text_show";
397             signal: "elm,state,text,visible";
398             source: "elm";
399             script {
400                new st[31];
401                new Float:vl;
402                get_state(PART:"elm.swallow.content", st, 30, vl);
403                if (!strcmp(st, "icononly"))
404                  {
405                     set_state(PART:"elm.swallow.content", "visible", 0.0);
406                     set_state(PART:"icon_rect", "visible", 0.0);
407                     set_state(PART:"padding_after_icon", "visible", 0.0);
408                     set_state(PART:"bg", "visible", 0.0);
409                  }
410                if (get_int(button_state) != BUTTON_STATE_DISABLED)
411                  set_state(PART:"elm.text", "visible", 0.0);
412                else
413                  set_state(PART:"elm.text", "disabled_visible", 0.0);
414             }
415          }
416          program { name: "text_hide";
417             signal: "elm,state,text,hidden";
418             source: "elm";
419             script {
420                new st[31];
421                new Float:vl;
422                get_state(PART:"elm.swallow.content", st, 30, vl);
423                if (!strcmp(st, "visible"))
424                  {
425                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
426                     set_state(PART:"icon_rect", "icononly", 0.0);
427                     set_state(PART:"padding_after_icon", "icononly", 0.0);
428                     set_state(PART:"bg", "icononly", 0.0);
429                  }
430                set_state(PART:"elm.text", "default", 0.0);
431             }
432          }
433          program { name: "icon_show";
434             signal: "elm,state,icon,visible";
435             source: "elm";
436             script {
437                new st[31];
438                new Float:vl;
439                get_state(PART:"elm.text", st, 30, vl);
440                if (!strcmp(st, "visible"))
441                  {
442                     set_state(PART:"elm.swallow.content", "visible", 0.0);
443                     set_state(PART:"icon_rect", "visible", 0.0);
444                     set_state(PART:"padding_after_icon", "visible", 0.0);
445                     set_state(PART:"bg", "visible", 0.0);
446                  }
447                else
448                  {
449                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
450                     set_state(PART:"icon_rect", "icononly", 0.0);
451                     set_state(PART:"padding_after_icon", "icononly", 0.0);
452                     set_state(PART:"bg", "icononly", 0.0);
453                  }
454             }
455          }
456          program { name: "icon_hide";
457             signal: "elm,state,icon,hidden";
458             source: "elm";
459             action: STATE_SET "default" 0.0;
460             target: "elm.swallow.content";
461             target: "padding_after_icon";
462             target: "icon_rect";
463             target: "bg";
464          }
465          program { name: "disable";
466             signal: "elm,state,disabled";
467             source: "elm";
468             action: STATE_SET "disabled" 0.0;
469             target: "button_image";
470             target: "disabler";
471             target: "clipper";
472             after: "disable_text";
473          }
474          program { name: "disable_text";
475             script {
476                new st[31];
477                new Float:vl;
478                get_state(PART:"elm.text", st, 30, vl);
479                if (!strcmp(st, "visible"))
480                  set_state(PART:"elm.text", "disabled_visible", 0.0);
481                else
482                  set_state(PART:"elm.text", "disabled", 0.0);
483                set_int(button_state, BUTTON_STATE_DISABLED);
484             }
485          }
486          program { name: "enable";
487             signal: "elm,state,enabled";
488             source: "elm";
489             action: STATE_SET "default" 0.0;
490             target: "button_image";
491             target: "clipper";
492             target: "disabler";
493             after: "enable_text";
494          }
495          program { name: "enable_text";
496             script {
497                new st[31];
498                new Float:vl;
499                get_state(PART:"elm.text", st, 30, vl);
500                if (!strcmp(st, "disabled_visible"))
501                  set_state(PART:"elm.text", "visible", 0.0);
502                else
503                  set_state(PART:"elm.text", "default", 0.0);
504                set_int(button_state, BUTTON_STATE_ENABLED);
505             }
506          }
507          program { name: "action_focus";
508             signal: "elm,action,focus_highlight,show";
509             source: "elm";
510             action: STATE_SET "focused" 0.0;
511             target: "focus_image";
512          }
513          program { name: "action_unfocus";
514             signal: "elm,action,focus_highlight,hide";
515             source: "elm";
516             action: STATE_SET "default" 0.0;
517             target: "focus_image";
518          }
519       }
520    }
521
522 //////////////////////////////////////////////////////////////
523    group { name: "elm/button/base/style1/auto_expand";
524       inherit: "elm/button/base/style1";
525       parts {
526          part { name: "elm.text";
527             type: TEXTBLOCK;
528             mouse_events: 0;
529             scale: 1;
530             clip_to: "clipper";
531             description { state: "default" 0.0;
532                visible: 0;
533                rel1 {
534                   relative: 1.0 1.0;
535                   to_x: "padding_after_icon";
536                   to_y: "padding_left_top";
537                }
538                rel2 {
539                   relative: 0.0 0.0;
540                   to: "padding_right_bottom";
541                }
542                text {
543                   style: "btn_base_style1";
544                   min: 1 0;
545                   max: 1 0;
546                }
547             }
548             description { state: "visible" 0.0;
549                inherit: "default" 0.0;
550                visible: 1;
551             }
552             description { state: "clicked" 0.0;
553                inherit: "default" 0.0;
554                visible: 1;
555                text {
556                   style: "btn_base_style1_pressed";
557                }
558             }
559             description { state: "disabled" 0.0;
560                inherit: "default" 0.0;
561             }
562             description { state: "disabled_visible" 0.0;
563                inherit: "default" 0.0;
564                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
565                visible: 1;
566             }
567             description { state: "focused" 0.0;
568                inherit: "default" 0.0;
569                visible: 1;
570                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
571             }
572          }
573       }
574    }
575
576 //////////////////////////////////////////////////////////////////////////////////////
577    group { name: "elm/button/base/datetime/ampm/default";
578       alias: "elm/button/base/datetime_ampm/default";
579       inherit: "elm/button/base/style1/auto_expand";
580       parts {
581          part { name: "button_image";
582             scale: 1;
583             description { state: "default" 0.0;
584                image {
585                   normal: "00_button_01.png";
586                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
587                   border_scale: 1;
588                }
589                min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
590                max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
591             }
592             description { state: "clicked" 0.0;
593                inherit: "default" 0.0;
594                image.normal: "00_button_01_press.png";
595             }
596             description { state: "disabled" 0.0;
597                inherit: "default" 0.0;
598                image.normal: "00_button_01_dim.png";
599             }
600             description { state: "focused" 0.0;
601                inherit: "default" 0.0;
602                image.normal: "00_button_01_press.png";
603             }
604          }
605          part { name: "bg";
606             type: RECT;
607             scale: 1;
608             mouse_events: 0;
609             description { state: "default" 0.0;
610                min: 0 0;
611                visible: 0;
612             }
613             description { state: "visible" 0.0;
614                inherit: "default" 0.0;
615                min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
616             }
617             description { state: "icononly" 0.0;
618                inherit: "default" 0.0;
619             }
620          }
621          part { name: "elm.text";
622             type: TEXTBLOCK;
623             mouse_events: 0;
624             scale: 1;
625             clip_to: "clipper";
626             description { state: "default" 0.0;
627                visible: 0;
628                fixed: 1 1;
629                text {
630                   style: "btn_base_style1";
631                   size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
632                   min: 1 1;
633                }
634             }
635             description { state: "visible" 0.0;
636                inherit: "default" 0.0;
637                visible: 1;
638             }
639             description { state: "clicked" 0.0;
640                inherit: "default" 0.0;
641                visible: 1;
642                text {
643                   style: "btn_base_style1_pressed";
644                }
645             }
646             description { state: "disabled" 0.0;
647                inherit: "default" 0.0;
648             }
649             description { state: "disabled_visible" 0.0;
650                inherit: "default" 0.0;
651                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
652                visible: 1;
653             }
654             description { state: "focused" 0.0;
655                inherit: "default" 0.0;
656                visible: 1;
657                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
658             }
659          }
660       }
661    }
662
663 ///////////////////////////////////////////////////////////////////////////////////////
664    group { name: "elm/button/base/style1/delete";
665       alias: "elm/button/base/sweep/delete";
666       alias: "elm/button/base/sweep/delete/multiline";
667       inherit: "elm/button/base/style1";
668       images {
669          image: "00_button_01_delete.png" COMP;
670          image: "00_button_01_delete_dim.png" COMP;
671          image: "00_button_01_delete_press.png" COMP;
672       }
673       parts {
674          part { name: "button_image";
675             scale: 1;
676             description { state: "default" 0.0;
677                image {
678                   normal: "00_button_01_delete.png";
679                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
680                   border_scale: 1;
681                }
682             }
683             description { state: "clicked" 0.0;
684                inherit: "default" 0.0;
685                image.normal: "00_button_01_delete_press.png";
686             }
687             description { state: "disabled" 0.0;
688                inherit: "default" 0.0;
689                image.normal: "00_button_01_delete_dim.png";
690             }
691             description { state: "focused" 0.0;
692                inherit: "default" 0.0;
693                image.normal: "00_button_01_delete_press.png";
694             }
695          }
696          part { name: "elm.text";
697             type: TEXTBLOCK;
698             mouse_events: 0;
699             scale: 1;
700             clip_to: "clipper";
701             description { state: "default" 0.0;
702                visible: 0;
703                rel1 {
704                   relative: 1.0 1.0;
705                   to_x: "padding_after_icon";
706                   to_y: "padding_left_top";
707                }
708                rel2 {
709                   relative: 0.0 0.0;
710                   to: "padding_right_bottom";
711                }
712                text {
713                   style: "btn_base_style1";
714                }
715             }
716             description { state: "visible" 0.0;
717                inherit: "default" 0.0;
718                visible: 1;
719             }
720             description { state: "clicked" 0.0;
721                inherit: "default" 0.0;
722                visible: 1;
723                text {
724                   style: "btn_base_style1_pressed";
725                }
726             }
727             description { state: "disabled" 0.0;
728                inherit: "default" 0.0;
729             }
730             description { state: "disabled_visible" 0.0;
731                inherit: "default" 0.0;
732                color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
733                visible: 1;
734             }
735             description { state: "focused" 0.0;
736                inherit: "default" 0.0;
737                visible: 1;
738                color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
739             }
740          }
741       }
742    }
743
744 ///////////////////////////////////////////////////////////////////////////////////////
745    group { name: "elm/button/base/search_button/text";
746       alias: "elm/button/base/searchbar/default";
747       inherit: "elm/button/base/style1";
748       images {
749          image: "00_button_01.png" COMP;
750          image: "00_button_01_dim.png" COMP;
751          image: "00_button_01_press.png" COMP;
752       }
753       parts {
754          part { name: "button_image";
755             scale: 1;
756             description { state: "default" 0.0;
757                image {
758                   normal: "00_button_01.png";
759                   border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
760                   border_scale: 1;
761                }
762             }
763             description { state: "clicked" 0.0;
764                inherit: "default" 0.0;
765                image.normal: "00_button_01_press.png";
766             }
767             description { state: "disabled" 0.0;
768                inherit: "default" 0.0;
769                image.normal: "00_button_01_dim.png";
770             }
771             description { state: "focused" 0.0;
772                inherit: "default" 0.0;
773                image.normal: "00_button_01_press.png";
774             }
775          }
776          part { name: "bg";
777             type: RECT;
778             scale: 1;
779             mouse_events: 0;
780             description { state: "default" 0.0;
781                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
782                visible: 0;
783             }
784             description { state: "visible" 0.0;
785                inherit: "default" 0.0;
786                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
787             }
788             description { state: "icononly" 0.0;
789                inherit: "default" 0.0;
790                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
791             }
792          }
793          part { name: "elm.text";
794             type: TEXT;
795             mouse_events: 0;
796             effect: SHADOW BOTTOM;
797             clip_to: "clipper";
798             scale: 1;
799             description { state: "default" 0.0;
800                visible: 0;
801                rel1 {
802                   relative: 1.0 1.0;
803                   to_x: "padding_after_icon";
804                   to_y: "padding_left_top";
805                }
806                rel2 {
807                   relative: 0.0 0.0;
808                   to: "padding_right_bottom";
809                }
810                color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
811                text {
812                   font: "Tizen:style=Regular";
813                   size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
814                   min: 0 0;
815                   max: 1 0;
816                   text_class: "tizen";
817                }
818             }
819             description { state: "visible" 0.0;
820                inherit: "default" 0.0;
821                visible: 1;
822             }
823             description { state: "clicked" 0.0;
824                inherit: "default" 0.0;
825                visible: 1;
826                color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
827                color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
828             }
829             description { state: "disabled" 0.0;
830                inherit: "default" 0.0;
831             }
832             description { state: "disabled_visible" 0.0;
833                inherit: "default" 0.0;
834                color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
835                visible: 1;
836             }
837             description { state: "focused" 0.0;
838                inherit: "default" 0.0;
839                visible: 1;
840                color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
841             }
842          }
843       }
844    }
845
846 ///////////////////////////////////////////////////////////////////////////////////////
847    group { name: "elm/button/base/search_button/send";
848       inherit: "elm/button/base/style1";
849       images {
850          image: "00_button_01_send.png" COMP;
851          image: "00_button_01_send_dim.png" COMP;
852          image: "00_button_01_send_press.png" COMP;
853       }
854       parts {
855          part { name: "button_image";
856             scale: 1;
857             description { state: "default" 0.0;
858                image {
859                   normal: "00_button_01_send.png";
860                   border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
861                   border_scale: 1;
862                }
863             }
864             description { state: "clicked" 0.0;
865                inherit: "default" 0.0;
866                image.normal: "00_button_01_send_press.png";
867             }
868             description { state: "disabled" 0.0;
869                inherit: "default" 0.0;
870                image.normal: "00_button_01_send_dim.png";
871             }
872             description { state: "focused" 0.0;
873                inherit: "default" 0.0;
874                image.normal: "00_button_01_send_press.png";
875             }
876          }
877          part { name: "bg";
878             type: RECT;
879             scale: 1;
880             mouse_events: 0;
881             description { state: "default" 0.0;
882                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
883                visible: 0;
884             }
885             description { state: "visible" 0.0;
886                inherit: "default" 0.0;
887                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
888             }
889             description { state: "icononly" 0.0;
890                inherit: "default" 0.0;
891                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
892             }
893          }
894          part { name: "elm.text";
895             type: TEXT;
896             mouse_events: 0;
897             effect: SHADOW BOTTOM;
898             clip_to: "clipper";
899             scale: 1;
900             description { state: "default" 0.0;
901                visible: 0;
902                rel1 {
903                   relative: 1.0 1.0;
904                   to_x: "padding_after_icon";
905                   to_y: "padding_left_top";
906                }
907                rel2 {
908                   relative: 0.0 0.0;
909                   to: "padding_right_bottom";
910                }
911                color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
912                color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
913                text {
914                   font: "Tizen:style=Regular";
915                   size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
916                   min: 0 0;
917                   max: 1 0;
918                   text_class: "tizen";
919                }
920             }
921             description { state: "visible" 0.0;
922                inherit: "default" 0.0;
923                visible: 1;
924             }
925             description { state: "clicked" 0.0;
926                inherit: "default" 0.0;
927                visible: 1;
928                color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
929             }
930             description { state: "disabled" 0.0;
931                inherit: "default" 0.0;
932             }
933             description { state: "disabled_visible" 0.0;
934                inherit: "default" 0.0;
935                color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
936                visible: 1;
937             }
938             description { state: "focused" 0.0;
939                inherit: "default" 0.0;
940                visible: 1;
941                color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
942             }
943          }
944       }
945    }
946
947 ///////////////////////////////////////////////////////////////////////////////////////
948    group { name: "elm/button/base/search_button/cancel";
949       inherit: "elm/button/base/style1";
950       images {
951          image: "00_button_01_delete.png" COMP;
952          image: "00_button_01_delete_dim.png" COMP;
953          image: "00_button_01_delete_press.png" COMP;
954       }
955       parts {
956          part { name: "button_image";
957             scale: 1;
958             description { state: "default" 0.0;
959                image {
960                   normal: "00_button_01_delete.png";
961                   border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
962                   border_scale: 1;
963                }
964             }
965             description { state: "clicked" 0.0;
966                inherit: "default" 0.0;
967                image.normal: "00_button_01_delete_press.png";
968             }
969             description { state: "disabled" 0.0;
970                inherit: "default" 0.0;
971                image.normal: "00_button_01_delete_dim.png";
972             }
973             description { state: "focused" 0.0;
974                inherit: "default" 0.0;
975                image.normal: "00_button_01_delete_press.png";
976             }
977          }
978          part { name: "bg";
979             type: RECT;
980             scale: 1;
981             mouse_events: 0;
982             description { state: "default" 0.0;
983                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
984                visible: 0;
985             }
986             description { state: "visible" 0.0;
987                inherit: "default" 0.0;
988                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
989             }
990             description { state: "icononly" 0.0;
991                inherit: "default" 0.0;
992                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
993             }
994          }
995          part { name: "elm.text";
996             type: TEXT;
997             mouse_events: 0;
998             effect: SHADOW BOTTOM;
999             clip_to: "clipper";
1000             scale: 1;
1001             description { state: "default" 0.0;
1002                visible: 0;
1003                rel1 {
1004                   relative: 1.0 1.0;
1005                   to_x: "padding_after_icon";
1006                   to_y: "padding_left_top";
1007                }
1008                rel2 {
1009                   relative: 0.0 0.0;
1010                   to: "padding_right_bottom";
1011                }
1012                color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
1013                color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
1014                text {
1015                   font: "Tizen:style=Regular";
1016                   size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1017                   min: 0 0;
1018                   max: 1 0;
1019                   text_class: "tizen";
1020                }
1021             }
1022             description { state: "visible" 0.0;
1023                inherit: "default" 0.0;
1024                visible: 1;
1025             }
1026             description { state: "clicked" 0.0;
1027                inherit: "default" 0.0;
1028                visible: 1;
1029                color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1030             }
1031             description { state: "disabled" 0.0;
1032                inherit: "default" 0.0;
1033             }
1034             description { state: "disabled_visible" 0.0;
1035                inherit: "default" 0.0;
1036                color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1037                visible: 1;
1038             }
1039             description { state: "focused" 0.0;
1040                inherit: "default" 0.0;
1041                visible: 1;
1042                color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1043             }
1044          }
1045       }
1046    }
1047
1048 ///////////////////////////////////////////////////////////////////////////////////////
1049 /*   group { name: "elm/button/base/style2";
1050       alias: "elm/button/base/text_only/style2";
1051       alias: "elm/button/base/style2/multiline";
1052       data {
1053          item: "focus_highlight" "on";
1054       }
1055       images {
1056          image: "00_button_01.png" COMP;
1057          image: "00_button_01_press.png" COMP;
1058          image: "00_button_01_dim.png" COMP;
1059          image: "00_button_01_focus.png" COMP;
1060       }
1061       script {
1062          public button_state = BUTTON_STATE_ENABLED;
1063       }
1064       parts {
1065          part { name: "button_image";
1066             scale: 1;
1067             description { state: "default" 0.0;
1068                image {
1069                   normal: "00_button_01.png";
1070                   border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1071                   border_scale: 1;
1072                }
1073             }
1074             description { state: "clicked" 0.0;
1075                inherit: "default" 0.0;
1076                image.normal: "00_button_01_press.png";
1077             }
1078             description { state: "disabled" 0.0;
1079                inherit: "default" 0.0;
1080                image.normal: "00_button_01_dim.png";
1081             }
1082             description { state: "focused" 0.0;
1083                inherit: "default" 0.0;
1084                image.normal: "00_button_01_press.png";
1085             }
1086          }
1087          part { name: "focus_image";
1088             scale: 1;
1089             mouse_events: 0;
1090             repeat_events: 1;
1091             description { state: "default" 0.0;
1092                visible: 0;
1093                rel1.to : "button_image";
1094                rel2.to : "button_image";
1095                image {
1096                   normal: "00_button_01_focus.png";
1097                   border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1098                   border_scale: 1;
1099                }
1100             }
1101             description { state: "focused" 0.0;
1102                inherit: "default" 0.0;
1103                visible: 1;
1104             }
1105          }
1106          part { name: "padding_left_top";
1107             type: RECT;
1108             scale: 1;
1109             mouse_events: 0;
1110             description { state: "default" 0.0;
1111                align: 0.0 0.0;
1112                rel2.relative: 0.0 0.0;
1113                min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1114                fixed: 1 1;
1115                visible: 0;
1116             }
1117          }
1118          part { name: "bg";
1119             type: RECT;
1120             scale: 1;
1121             mouse_events: 0;
1122             description { state: "default" 0.0;
1123                min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1124                visible: 0;
1125             }
1126             description { state: "visible" 0.0;
1127                inherit: "default" 0.0;
1128                min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1129             }
1130             description { state: "icononly" 0.0;
1131                inherit: "default" 0.0;
1132                min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1133             }
1134          }
1135          part { name: "padding_right_bottom";
1136             type: RECT;
1137             scale: 1;
1138             mouse_events: 0;
1139             description { state: "default" 0.0;
1140                align: 1.0 1.0;
1141                rel1.relative: 1.0 1.0;
1142                min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1143                fixed: 1 1;
1144                visible: 0;
1145             }
1146          }
1147          part { name: "icon_rect";
1148             type: RECT;
1149             scale: 1;
1150             mouse_events: 0;
1151             description { state: "default" 0.0;
1152                visible: 0;
1153                min: 0 0;
1154                fixed: 1 0;
1155                rel1 {
1156                   relative: 1.0 1.0;
1157                   to: "padding_left_top";
1158                }
1159                rel2 {
1160                   relative: 1.0 0.0;
1161                   to_x: "padding_left_top";
1162                   to_y: "padding_right_bottom";
1163                }
1164                align: 0.0 0.5;
1165             }
1166             description { state: "visible" 0.0;
1167                inherit: "default" 0.0;
1168                min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1169                max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1170             }
1171             description { state: "icononly" 0.0;
1172                inherit: "default" 0.0;
1173             }
1174          }
1175          part { name: "padding_after_icon";
1176             type: RECT;
1177             scale: 1;
1178             mouse_events: 0;
1179             description { state: "default" 0.0; //when only icon or no icon is there
1180                visible: 0;
1181                min: 0 0;
1182                fixed: 1 0;
1183                rel1 {
1184                   relative: 1.0 0.0;
1185                   to: "icon_rect";
1186                }
1187                rel2.to: "icon_rect";
1188                align: 0.0 0.0;
1189             }
1190             description { state: "visible" 0.0;
1191                inherit: "default" 0.0;
1192                min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1193             }
1194             description { state: "icononly" 0.0;
1195                inherit: "default" 0.0;
1196             }
1197          }
1198          part { name: "padding_before_text";
1199             type: RECT;
1200             scale: 1;
1201             mouse_events: 0;
1202             description { state: "default" 0.0; //when only icon or no icon is there
1203                align: 1.0 0.5;
1204                rel1 {
1205                   relative: 0.0 1.0;
1206                   to_x: "elm.text";
1207                   to_y: "padding_left_top";
1208                }
1209                rel2 {
1210                   relative: 0.0 0.0;
1211                   to_x: "elm.text";
1212                   to_y: "padding_right_bottom";
1213                }
1214                fixed: 1 0;
1215                min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1216                visible: 0;
1217             }
1218          }
1219          part { name: "elm.swallow.content";
1220             type: SWALLOW;
1221             scale: 1;
1222             clip_to: "clipper";
1223             description { state: "default" 0.0;
1224                visible: 0;
1225                align: 0.0 0.5;
1226                rel1 {
1227                   relative: 1.0 1.0;
1228                   to: "padding_left_top";
1229                }
1230                rel2 {
1231                   relative: 1.0 0.0;
1232                   to_x: "padding_left_top";
1233                   to_y: "padding_right_bottom";
1234                }
1235                fixed: 1 0;
1236             }
1237             description { state: "visible" 0.0;
1238                fixed: 1 0;
1239                min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1240                max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1241                align: 1.0 0.5;
1242                rel1 {
1243                   relative: 0.0 1.0;
1244                   to_x: "padding_before_text";
1245                   to_y: "padding_left_top";
1246                }
1247                rel2 {
1248                   relative: 0.0 0.0;
1249                   to_x: "padding_before_text";
1250                   to_y: "padding_right_bottom";
1251                }
1252             }
1253             description { state: "icononly" 0.0;
1254                min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1255                max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1256             }
1257          }
1258          part { name: "elm.text";
1259             type: TEXT;
1260             mouse_events: 0;
1261             scale: 1;
1262             clip_to: "clipper";
1263             effect: SHADOW BOTTOM;
1264             description { state: "default" 0.0;
1265                visible: 0;
1266                rel1 {
1267                   relative: 1.0 1.0;
1268                   to_x: "padding_after_icon";
1269                   to_y: "padding_left_top";
1270                }
1271                rel2 {
1272                   relative: 0.0 0.0;
1273                   to: "padding_right_bottom";
1274                }
1275                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1276                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1277                text {
1278                   font: "Tizen:style=Regular";
1279                   size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1280                   min: 0 0;
1281                   max: 1 0;
1282                   text_class: "tizen";
1283                }
1284             }
1285             description { state: "visible" 0.0;
1286                inherit: "default" 0.0;
1287                visible: 1;
1288             }
1289             description { state: "clicked" 0.0;
1290                inherit: "default" 0.0;
1291                visible: 1;
1292                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1293             }
1294             description { state: "disabled" 0.0;
1295                inherit: "default" 0.0;
1296             }
1297             description { state: "disabled_visible" 0.0;
1298                inherit: "default" 0.0;
1299                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1300                visible: 1;
1301             }
1302             description { state: "focused" 0.0;
1303                inherit: "default" 0.0;
1304                visible: 1;
1305                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1306             }
1307          }
1308          part { name: "over2";
1309             type: RECT;
1310             repeat_events: 1;
1311             ignore_flags: ON_HOLD;
1312             description { state: "default" 0.0;
1313                color: 0 0 0 0;
1314             }
1315          }
1316          part { name: "over3";
1317             type: RECT;
1318             repeat_events: 1;
1319             description { state: "default" 0.0;
1320                color: 0 0 0 0;
1321             }
1322          }
1323          part { name: "clipper";
1324             type: RECT;
1325             description { state: "default" 0.0;
1326                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1327             }
1328             description { state: "disabled" 0.0;
1329                inherit: "default" 0.0;
1330                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1331             }
1332          }
1333          part { name: "disabler";
1334             type: RECT;
1335             description { state: "default" 0.0;
1336                color: 0 0 0 0;
1337                visible: 0;
1338             }
1339             description { state: "disabled" 0.0;
1340                inherit: "default" 0.0;
1341                visible: 1;
1342             }
1343          }
1344       }
1345       programs {
1346          program { name: "button_click";
1347             signal: "mouse,down,1";
1348             source: "over2";
1349             action: SIGNAL_EMIT "elm,action,press" "";
1350             after: "button_click_anim";
1351          }
1352          program { name: "button_click_anim";
1353             action: STATE_SET "clicked" 0.0;
1354             target: "button_image";
1355             after: "text_clicked";
1356          }
1357          program { name: "text_clicked";
1358             script {
1359                new st[31];
1360                new Float:vl;
1361                get_state(PART:"elm.text", st, 30, vl);
1362                if (!strcmp(st, "visible"))
1363                  set_state(PART:"elm.text", "clicked", 0.0);
1364             }
1365          }
1366          program { name: "button_double_click";
1367             signal: "mouse,down,1,double";
1368             source: "over2";
1369             after: "button_click_anim";
1370          }
1371          program { name: "button_unpress";
1372             action: SIGNAL_EMIT "elm,action,unpress" "";
1373          }
1374          program { name: "button_mouseout_clicked";
1375             signal: "mouse,up,1";
1376             source: "over3";
1377             script {
1378                new st[31];
1379                new Float:vl;
1380                get_state(PART:"elm.swallow.content", st, 30, vl);
1381                if (strcmp(st, "icononly"))
1382                  {
1383                     emit("elm,action,default,text,set", "");
1384                     set_state(PART:"elm.text", "visible", 0.0);
1385                  }
1386                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1387                  set_state(PART:"button_image", "default", 0.0);
1388             }
1389             after: button_unpress;
1390          }
1391          program { name: "touch_snd";
1392             signal: "mouse,clicked,1";
1393             source: "over2";
1394             action: PLAY_SAMPLE "touch_sound" 1.0;
1395             after: button_unclick3;
1396          }
1397          program { name: "button_unclick3";
1398             action: SIGNAL_EMIT "elm,action,click" "";
1399          }
1400          program { name: "text_show";
1401             signal: "elm,state,text,visible";
1402             source: "elm";
1403             script {
1404                new st[31];
1405                new Float:vl;
1406                get_state(PART:"elm.swallow.content", st, 30, vl);
1407                if (!strcmp(st, "icononly"))
1408                  {
1409                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1410                     set_state(PART:"icon_rect", "visible", 0.0);
1411                     set_state(PART:"padding_after_icon", "visible", 0.0);
1412                     set_state(PART:"bg", "visible", 0.0);
1413                  }
1414                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1415                  set_state(PART:"elm.text", "visible", 0.0);
1416                else
1417                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1418             }
1419          }
1420          program { name: "text_hide";
1421             signal: "elm,state,text,hidden";
1422             source: "elm";
1423             script {
1424                new st[31];
1425                new Float:vl;
1426                get_state(PART:"elm.swallow.content", st, 30, vl);
1427                if (!strcmp(st, "visible"))
1428                  {
1429                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1430                     set_state(PART:"icon_rect", "icononly", 0.0);
1431                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1432                     set_state(PART:"bg", "icononly", 0.0);
1433                  }
1434                set_state(PART:"elm.text", "default", 0.0);
1435             }
1436          }
1437          program { name: "icon_show";
1438             signal: "elm,state,icon,visible";
1439             source: "elm";
1440             script {
1441                new st[31];
1442                new Float:vl;
1443                get_state(PART:"elm.text", st, 30, vl);
1444                if (!strcmp(st, "visible"))
1445                  {
1446                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1447                     set_state(PART:"icon_rect", "visible", 0.0);
1448                     set_state(PART:"padding_after_icon", "visible", 0.0);
1449                     set_state(PART:"bg", "visible", 0.0);
1450                  }
1451                else
1452                  {
1453                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1454                     set_state(PART:"icon_rect", "icononly", 0.0);
1455                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1456                     set_state(PART:"bg", "icononly", 0.0);
1457                  }
1458             }
1459          }
1460          program { name: "icon_hide";
1461             signal: "elm,state,icon,hidden";
1462             source: "elm";
1463             action: STATE_SET "default" 0.0;
1464             target: "elm.swallow.content";
1465             target: "padding_after_icon";
1466             target: "icon_rect";
1467             target: "bg";
1468          }
1469          program { name: "disable";
1470             signal: "elm,state,disabled";
1471             source: "elm";
1472             action: STATE_SET "disabled" 0.0;
1473             target: "button_image";
1474             target: "clipper";
1475             target: "disabler";
1476             after: "disable_text";
1477          }
1478          program { name: "disable_text";
1479             script {
1480                new st[31];
1481                new Float:vl;
1482                get_state(PART:"elm.text", st, 30, vl);
1483                if (!strcmp(st, "visible"))
1484                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1485                else
1486                  set_state(PART:"elm.text", "disabled", 0.0);
1487                set_int(button_state, BUTTON_STATE_DISABLED);
1488             }
1489          }
1490          program { name: "enable";
1491             signal: "elm,state,enabled";
1492             source: "elm";
1493             action: STATE_SET "default" 0.0;
1494             target: "button_image";
1495             target: "clipper";
1496             target: "disabler";
1497             after: "enable_text";
1498          }
1499          program { name: "enable_text";
1500             script {
1501                new st[31];
1502                new Float:vl;
1503                get_state(PART:"elm.text", st, 30, vl);
1504                if (!strcmp(st, "disabled_visible"))
1505                  set_state(PART:"elm.text", "visible", 0.0);
1506                else
1507                  set_state(PART:"elm.text", "default", 0.0);
1508                set_int(button_state, BUTTON_STATE_ENABLED);
1509             }
1510          }
1511          program { name: "action_focus";
1512             signal: "elm,action,focus_highlight,show";
1513             source: "elm";
1514             action: STATE_SET "focused" 0.0;
1515             target: "focus_image";
1516          }
1517          program { name: "action_unfocus";
1518             signal: "elm,action,focus_highlight,hide";
1519             source: "elm";
1520             action: STATE_SET "default" 0.0;
1521             target: "focus_image";
1522          }
1523       }
1524    }
1525
1526 ///////////////////////////////////////////////////////////////////////////////////////
1527    group { name: "elm/button/base/sweep";
1528       alias: "elm/button/base/text_only/sweep";
1529       alias: "elm/button/base/hidden";
1530       alias: "elm/button/base/sweep/multiline";
1531       data {
1532          item: "focus_highlight" "on";
1533       }
1534       images {
1535          image: "00_button_01.png" COMP;
1536          image: "00_button_01_press.png" COMP;
1537          image: "00_button_01_dim.png" COMP;
1538          image: "00_button_01_focus.png" COMP;
1539       }
1540       script {
1541          public button_state = BUTTON_STATE_ENABLED;
1542       }
1543       styles{
1544          style { name: "btn_sweep_multiline";
1545             base: "font=Tizen:style=Regular font_size="BUTTON_SWEEP_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed linegap=-7 ellipsis=1.0 text_class=tizen";
1546             tag: "br" "\n";
1547             tag: "ps" "ps";
1548             tag: "tab" "\t";
1549          }
1550       }
1551       parts {
1552          part { name: "button_image";
1553             scale: 1;
1554             description { state: "default" 0.0;
1555                min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1556                image {
1557                   normal: "00_button_01.png";
1558                   border: BUTTON_SWEEP_BG_BORDER_INC;
1559                   border_scale: 1;
1560                }
1561             }
1562             description { state: "clicked" 0.0;
1563                inherit: "default" 0.0;
1564                image.normal: "00_button_01_press.png";
1565             }
1566             description { state: "disabled" 0.0;
1567                inherit: "default" 0.0;
1568                image.normal: "00_button_01_dim.png";
1569             }
1570             description { state: "focused" 0.0;
1571                inherit: "default" 0.0;
1572                image.normal: "00_button_01_press.png";
1573             }
1574          }
1575          part { name: "focus_image";
1576             scale: 1;
1577             mouse_events: 0;
1578             repeat_events: 1;
1579             description { state: "default" 0.0;
1580                visible: 0;
1581                rel1.to : "button_image";
1582                rel2.to : "button_image";
1583                image {
1584                   normal: "00_button_01_focus.png";
1585                   border: BUTTON_SWEEP_BG_BORDER_INC;
1586                   border_scale: 1;
1587                }
1588             }
1589             description { state: "focused" 0.0;
1590                inherit: "default" 0.0;
1591                visible: 1;
1592             }
1593          }
1594          part { name: "padding_left_top";
1595             type: RECT;
1596             scale: 1;
1597             mouse_events: 0;
1598             description { state: "default" 0.0;
1599                align: 0.0 0.0;
1600                rel2.relative: 0.0 0.0;
1601                min: BUTTON_SWEEP_PADDING_MIN_INC;
1602                fixed: 1 1;
1603                visible: 0;
1604             }
1605          }
1606          part { name: "padding_right_bottom";
1607             type: RECT;
1608             scale: 1;
1609             mouse_events: 0;
1610             description { state: "default" 0.0;
1611                align: 1.0 1.0;
1612                rel1.relative: 1.0 1.0;
1613                min: BUTTON_SWEEP_PADDING_MIN_INC;
1614                fixed: 1 1;
1615                visible: 0;
1616             }
1617          }
1618          part { name: "icon_rect";
1619             type: RECT;
1620             scale: 1;
1621             mouse_events: 0;
1622             description { state: "default" 0.0;
1623                min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1624                fixed: 1 0;
1625                rel1 {
1626                   relative: 0.0 1.0;
1627                   to_x: "elm.swallow.content";
1628                   to_y: "padding_left_top";
1629                }
1630                rel2 {
1631                   relative: 1.0 0.0;
1632                   to_x: "elm.swallow.content";
1633                   to_y: "padding_right_bottom";
1634                }
1635                align: 0.0 0.5;
1636                color: 0 0 0 0;
1637             }
1638          }
1639          part { name: "padding_icon_text";
1640             type: RECT;
1641             scale: 1;
1642             mouse_events: 0;
1643             description { state: "default" 0.0; //when only icon or no icon is there
1644                visible: 0;
1645                fixed: 1 0;
1646                min: 0 0;
1647                rel1 {
1648                   relative: 1.0 0.0;
1649                   to: "icon_rect";
1650                }
1651                rel2.to: "icon_rect";
1652                align: 0.0 0.0;
1653             }
1654             description { state: "visible" 0.0; //when icon is visible
1655                inherit: "default" 0.0;
1656                min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1657             }
1658             description { state: "icononly" 0.0;
1659                inherit: "default" 0.0;
1660             }
1661          }
1662          part { name: "elm.swallow.content";
1663             type: SWALLOW;
1664             scale: 1;
1665             clip_to: "clipper";
1666             description { state: "default" 0.0;
1667                visible: 0;
1668                align: 0.0 0.5;
1669                rel1 {
1670                   relative: 1.0 1.0;
1671                   to: "padding_left_top";
1672                }
1673                rel2 {
1674                   relative: 1.0 0.0;
1675                   to_x: "padding_left_top";
1676                   to_y: "padding_right_bottom";
1677                }
1678                fixed: 1 0;
1679             }
1680             description { state: "visible" 0.0;
1681                inherit: "default" 0.0;
1682                min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1683                max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1684                visible: 1;
1685                aspect: 1.0 1.0;
1686                aspect_preference: VERTICAL;
1687             }
1688             description { state: "icononly" 0.0;
1689                min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1690                max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1691             }
1692          }
1693          part { name: "elm.text";
1694             type: TEXTBLOCK;
1695             mouse_events: 0;
1696             effect: SHADOW BOTTOM;
1697             scale: 1;
1698             clip_to: "clipper";
1699             description { state: "default" 0.0;
1700                fixed: 1 1;
1701                visible: 0;
1702                rel1 {
1703                   relative: 1.0 1.0;
1704                   to_x: "padding_icon_text";
1705                   to_y: "padding_left_top";
1706                }
1707                rel2 {
1708                   relative: 0.0 0.0;
1709                   to: "padding_right_bottom";
1710                }
1711                color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1712                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1713                text {
1714                   style: "btn_sweep_multiline";
1715                   align: 0.5 0.45;
1716                }
1717             }
1718             description { state: "visible" 0.0;
1719                inherit: "default" 0.0;
1720                visible: 1;
1721                min: BUTTON_SWEEP_TEXT_MIN_INC;
1722             }
1723             description { state: "clicked" 0.0;
1724                inherit: "default" 0.0;
1725                visible: 1;
1726                min: 0 0;
1727                color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1728             }
1729             description { state: "disabled" 0.0;
1730                inherit: "default" 0.0;
1731             }
1732             description { state: "disabled_visible" 0.0;
1733                inherit: "default" 0.0;
1734                color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1735                visible: 1;
1736                min: BUTTON_SWEEP_TEXT_MIN_INC;
1737             }
1738             description { state: "focused" 0.0;
1739                inherit: "default" 0.0;
1740                visible: 1;
1741                min: 0 0;
1742                color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1743             }
1744          }
1745          part { name: "over2";
1746             type: RECT;
1747             repeat_events: 1;
1748             ignore_flags: ON_HOLD;
1749             description { state: "default" 0.0;
1750                color: 0 0 0 0;
1751             }
1752          }
1753          part { name: "over3";
1754             type: RECT;
1755             repeat_events: 1;
1756             description { state: "default" 0.0;
1757                color: 0 0 0 0;
1758             }
1759          }
1760          part { name: "clipper";
1761             type: RECT;
1762             description { state: "default" 0.0;
1763                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1764             }
1765             description { state: "disabled" 0.0;
1766                inherit: "default" 0.0;
1767                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1768             }
1769          }
1770          part { name: "disabler";
1771             type: RECT;
1772             description { state: "default" 0.0;
1773                color: 0 0 0 0;
1774                visible: 0;
1775             }
1776             description { state: "disabled" 0.0;
1777                inherit: "default" 0.0;
1778                visible: 1;
1779             }
1780          }
1781       }
1782       programs {
1783          program { name: "button_click";
1784             signal: "mouse,down,1";
1785             source: "over2";
1786             action: SIGNAL_EMIT "elm,action,press" "";
1787             after: "button_click_anim";
1788          }
1789          program { name: "button_click_anim";
1790             action: STATE_SET "clicked" 0.0;
1791             target: "button_image";
1792             after: "text_clicked";
1793          }
1794          program { name: "text_clicked";
1795             script {
1796                new st[31];
1797                new Float:vl;
1798                get_state(PART:"elm.text", st, 30, vl);
1799                if (!strcmp(st, "visible"))
1800                  set_state(PART:"elm.text", "clicked", 0.0);
1801             }
1802          }
1803          program { name: "button_double_click";
1804             signal: "mouse,down,1,double";
1805             source: "over2";
1806             after: "button_click_anim";
1807          }
1808          program { name: "button_unpress";
1809             action: SIGNAL_EMIT "elm,action,unpress" "";
1810          }
1811          program { name: "button_mouseout_clicked";
1812             signal: "mouse,up,1";
1813             source: "over3";
1814             script {
1815                new st[31];
1816                new Float:vl;
1817                get_state(PART:"elm.swallow.content", st, 30, vl);
1818                if (strcmp(st, "icononly"))
1819                  {
1820                     emit("elm,action,default,text,set", "");
1821                     set_state(PART:"elm.text", "visible", 0.0);
1822                  }
1823                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1824                  set_state(PART:"button_image", "default", 0.0);
1825             }
1826             after: button_unpress;
1827          }
1828          program { name: "touch_snd";
1829             signal: "mouse,clicked,1";
1830             source: "over2";
1831             action: PLAY_SAMPLE "touch_sound" 1.0;
1832             after: button_unclick3;
1833          }
1834          program { name: "button_unclick3";
1835             action: SIGNAL_EMIT "elm,action,click" "";
1836          }
1837          program { name: "text_show";
1838             signal: "elm,state,text,visible";
1839             source: "elm";
1840             script {
1841                new st[31];
1842                new Float:vl;
1843                get_state(PART:"elm.swallow.content", st, 30, vl);
1844                if (!strcmp(st, "icononly"))
1845                  {
1846                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1847                     set_state(PART:"padding_icon_text", "visible", 0.0);
1848                  }
1849                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1850                  set_state(PART:"elm.text", "visible", 0.0);
1851                else
1852                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1853             }
1854          }
1855          program { name: "text_hide";
1856             signal: "elm,state,text,hidden";
1857             source: "elm";
1858             script {
1859                new st[31];
1860                new Float:vl;
1861                get_state(PART:"elm.swallow.content", st, 30, vl);
1862                if (!strcmp(st, "visible"))
1863                  {
1864                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1865                     set_state(PART:"padding_icon_text", "icononly", 0.0);
1866                  }
1867                set_state(PART:"elm.text", "default", 0.0);
1868             }
1869          }
1870          program { name: "icon_show";
1871             signal: "elm,state,icon,visible";
1872             source: "elm";
1873             script {
1874                new st[31];
1875                new Float:vl;
1876                get_state(PART:"elm.text", st, 30, vl);
1877                if (!strcmp(st, "visible"))
1878                  {
1879                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1880                     set_state(PART:"padding_icon_text", "visible", 0.0);
1881                  }
1882                else
1883                  {
1884                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1885                     set_state(PART:"padding_icon_text", "icononly", 0.0);
1886                  }
1887             }
1888          }
1889          program { name: "icon_hide";
1890             signal: "elm,state,icon,hidden";
1891             source: "elm";
1892             action: STATE_SET "default" 0.0;
1893             target: "elm.swallow.content";
1894             target: "padding_icon_text";
1895          }
1896          program { name: "disable";
1897             signal: "elm,state,disabled";
1898             source: "elm";
1899             action: STATE_SET "disabled" 0.0;
1900             target: "button_image";
1901             target: "clipper";
1902             target: "disabler";
1903             after: "disable_text";
1904          }
1905          program { name: "disable_text";
1906             script {
1907                new st[31];
1908                new Float:vl;
1909                get_state(PART:"elm.text", st, 30, vl);
1910                if (!strcmp(st, "visible"))
1911                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1912                else
1913                  set_state(PART:"elm.text", "disabled", 0.0);
1914                set_int(button_state, BUTTON_STATE_DISABLED);
1915             }
1916          }
1917          program { name: "enable";
1918             signal: "elm,state,enabled";
1919             source: "elm";
1920             action: STATE_SET "default" 0.0;
1921             target: "button_image";
1922             target: "clipper";
1923             target: "disabler";
1924             after: "enable_text";
1925          }
1926          program { name: "enable_text";
1927             script {
1928                new st[31];
1929                new Float:vl;
1930                get_state(PART:"elm.text", st, 30, vl);
1931                if (!strcmp(st, "disabled_visible"))
1932                  set_state(PART:"elm.text", "visible", 0.0);
1933                else
1934                  set_state(PART:"elm.text", "default", 0.0);
1935                set_int(button_state, BUTTON_STATE_ENABLED);
1936             }
1937          }
1938          program { name: "action_focus";
1939             signal: "elm,action,focus_highlight,show";
1940             source: "elm";
1941             action: STATE_SET "focused" 0.0;
1942             target: "focus_image";
1943          }
1944          program { name: "action_unfocus";
1945             signal: "elm,action,focus_highlight,hide";
1946             source: "elm";
1947             action: STATE_SET "default" 0.0;
1948             target: "focus_image";
1949          }
1950       }
1951    }
1952
1953 ///////////////////////////////////////////////////////////////////////////////////////
1954    group { name: "elm/button/base/sweep/delete";
1955       inherit: "elm/button/base/sweep";
1956       alias: "elm/button/base/sweep/delete/multiline";
1957       images {
1958          image: "00_button_01_delete_press.png" COMP;
1959          image: "00_button_01_delete.png" COMP;
1960          image: "00_button_01_delete_dim.png" COMP;
1961       }
1962       styles{
1963          style { name: "btn_sweep_delete_multiline";
1964             base: "font=Tizen:style=Regular font_size="BUTTON_SWEEP_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed linegap=-7 ellipsis=1.0 text_class=tizen";
1965             tag: "br" "\n";
1966             tag: "ps" "ps";
1967             tag: "tab" "\t";
1968          }
1969       }
1970       parts {
1971          part { name: "button_image";
1972             scale: 1;
1973             description { state: "default" 0.0;
1974                min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1975                image {
1976                   normal: "00_button_01_delete.png";
1977                   border: BUTTON_SWEEP_BG_BORDER_INC;
1978                   border_scale: 1;
1979                }
1980             }
1981             description { state: "clicked" 0.0;
1982                inherit: "default" 0.0;
1983                image.normal: "00_button_01_delete_press.png";
1984             }
1985             description { state: "disabled" 0.0;
1986                inherit: "default" 0.0;
1987                image.normal: "00_button_01_delete_dim.png";
1988             }
1989             description { state: "focused" 0.0;
1990                inherit: "default" 0.0;
1991                image.normal: "00_button_01_delete_press.png";
1992             }
1993          }
1994          part { name: "elm.text";
1995             type: TEXTBLOCK;
1996             mouse_events: 0;
1997             effect: SHADOW BOTTOM;
1998             scale: 1;
1999             clip_to: "clipper";
2000             description { state: "default" 0.0;
2001                fixed: 1 1;
2002                visible: 0;
2003                rel1 {
2004                   relative: 1.0 1.0;
2005                   to_x: "padding_icon_text";
2006                   to_y: "padding_left_top";
2007                }
2008                rel2 {
2009                   relative: 0.0 0.0;
2010                   to: "padding_right_bottom";
2011                }
2012                color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
2013                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2014                text {
2015                   style: "btn_sweep_multiline";
2016                   align: 0.5 0.45;
2017                }
2018             }
2019             description { state: "visible" 0.0;
2020                inherit: "default" 0.0;
2021                visible: 1;
2022                min: BUTTON_SWEEP_TEXT_MIN_INC;
2023             }
2024             description { state: "clicked" 0.0;
2025                inherit: "default" 0.0;
2026                visible: 1;
2027                min: 0 0;
2028                color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
2029             }
2030             description { state: "disabled" 0.0;
2031                inherit: "default" 0.0;
2032             }
2033             description { state: "disabled_visible" 0.0;
2034                inherit: "default" 0.0;
2035                color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
2036                visible: 1;
2037                min: BUTTON_SWEEP_TEXT_MIN_INC;
2038             }
2039             description { state: "focused" 0.0;
2040                inherit: "default" 0.0;
2041                visible: 1;
2042                min: 0 0;
2043                color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2044             }
2045          }
2046       }
2047    }
2048 */
2049 ///////////////////////////////////////////////////////////////////////////////////////
2050    group { name: "elm/button/base/popup_button/default";
2051       alias: "elm/button/base/popup_button/menustyle";
2052       alias: "elm/button/base/popup_button/liststyle";
2053       alias: "elm/button/base/popup_button/volumebarstyle";
2054       alias: "elm/button/base/popup_button/customstyle";
2055       alias: "elm/button/base/popup_button/verticalbuttonstyle";
2056       alias: "elm/button/base/popup_button/default/multiline";
2057       data {
2058          item: "focus_highlight" "on";
2059       }
2060       images {
2061          image: "00_popup_button.png" COMP;
2062          image: "00_popup_button_dim.png" COMP;
2063          image: "00_popup_button_press.png" COMP;
2064          image: "00_popup_button_focus.png" COMP;
2065       }
2066       styles{
2067          style { name: "btn_base_popup_button";
2068             base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
2069             tag: "br" "\n";
2070             tag: "ps" "ps";
2071             tag: "tab" "\t";
2072          }
2073          style { name: "btn_base_popup_button_pressed";
2074             base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
2075             tag: "br" "\n";
2076             tag: "ps" "ps";
2077             tag: "tab" "\t";
2078          }
2079       }
2080       script {
2081          public button_state = BUTTON_STATE_ENABLED;
2082       }
2083       parts {
2084          part { name: "button_image";
2085             scale: 1;
2086             description { state: "default" 0.0;
2087                min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2088                image {
2089                   normal: "00_popup_button.png";
2090                   border: BUTTON_POPUP_BG_BORDER_INC;
2091                   border_scale: 1;
2092                }
2093             }
2094             description { state: "clicked" 0.0;
2095                inherit: "default" 0.0;
2096                image.normal: "00_popup_button_press.png";
2097             }
2098             description { state: "disabled" 0.0;
2099                inherit: "default" 0.0;
2100                image.normal: "00_popup_button_dim.png";
2101             }
2102             description { state: "focused" 0.0;
2103                inherit: "default" 0.0;
2104                image.normal: "00_popup_button_focus.png";
2105             }
2106          }
2107          part { name: "focus_image";
2108             scale: 1;
2109             mouse_events: 0;
2110             repeat_events: 1;
2111             description { state: "default" 0.0;
2112                visible: 0;
2113                rel1.to : "button_image";
2114                rel2.to : "button_image";
2115                image {
2116                   normal: "00_popup_button_focus.png";
2117                   border: BUTTON_POPUP_BG_BORDER_INC;
2118                   border_scale: 1;
2119                }
2120             }
2121             description { state: "focused" 0.0;
2122                inherit: "default" 0.0;
2123                visible: 1;
2124             }
2125          }
2126          part { name: "padding_left_top";
2127             type: RECT;
2128             scale: 1;
2129             mouse_events: 0;
2130             description { state: "default" 0.0;
2131                align: 0.0 0.0;
2132                rel2.relative: 0.0 0.0;
2133                min: BUTTON_POPUP_PADDING_MIN_INC;
2134                fixed: 1 1;
2135                visible: 0;
2136             }
2137          }
2138          part { name: "padding_right_bottom";
2139             type: RECT;
2140             scale: 1;
2141             description { state: "default" 0.0;
2142                align: 1.0 0.0;
2143                rel1.relative: 1.0 1.0;
2144                min: BUTTON_POPUP_PADDING_MIN_INC;
2145                fixed: 1 1;
2146                visible: 0;
2147             }
2148          }
2149          part { name: "padding_icon_text";
2150             type: RECT;
2151             scale: 1;
2152             description { state: "default" 0.0; //when only icon or no icon is there
2153                align: 0.0 0.0;
2154                rel1 {
2155                   relative: 1.0 0.0;
2156                   to: "elm.swallow.content";
2157                }
2158                rel2.to: "elm.swallow.content";
2159                fixed: 1 0;
2160                min: 0 0;
2161                visible: 0;
2162             }
2163             description { state: "icononly" 0.0;
2164                inherit: "default" 0.0;
2165             }
2166             description { state: "visible" 0.0; //when icon is visible
2167                inherit: "default" 0.0;
2168                min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2169             }
2170          }
2171          part { name: "elm.swallow.content";
2172             type: SWALLOW;
2173             scale: 1;
2174             clip_to: "clipper";
2175             description { state: "default" 0.0;
2176                visible: 0;
2177                align: 0.0 0.5;
2178                rel1 {
2179                   relative: 1.0 1.0;
2180                   to: "padding_left_top";
2181                }
2182                rel2 {
2183                   relative: 1.0 0.0;
2184                   to_x: "padding_left_top";
2185                   to_y: "padding_right_bottom";
2186                }
2187                fixed: 1 0;
2188             }
2189             description { state: "visible" 0.0;
2190                inherit: "default" 0.0;
2191                fixed: 1 0;
2192                visible: 1;
2193                aspect: 1.0 1.0;
2194                aspect_preference: VERTICAL;
2195             }
2196             description { state: "icononly" 0.0;
2197                inherit: "default" 0.0;
2198                min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2199                visible: 1;
2200                align: 0.5 0.5;
2201             }
2202          }
2203          part { name: "elm.text";
2204             type: TEXTBLOCK;
2205             mouse_events: 0;
2206             scale: 1;
2207             clip_to: "clipper";
2208             description { state: "default" 0.0;
2209                visible: 0;
2210                rel1 {
2211                   relative: 1.0 1.0;
2212                   to_x: "padding_icon_text";
2213                   to_y: "padding_left_top";
2214                }
2215                rel2 {
2216                   relative: 0.0 0.0;
2217                   to: "padding_right_bottom";
2218                }
2219                text {
2220                   style: "btn_base_popup_button";
2221                   min: 0 0;
2222                }
2223             }
2224             description { state: "visible" 0.0;
2225                inherit: "default" 0.0;
2226                visible: 1;
2227                min: BUTTON_POPUP_TEXT_MIN_INC;
2228             }
2229             description { state: "clicked" 0.0;
2230                inherit: "default" 0.0;
2231                visible: 1;
2232                text {
2233                   style: "btn_base_popup_button_pressed";
2234                   min: 0 0;
2235                }
2236             }
2237             description { state: "disabled" 0.0;
2238                inherit: "default" 0.0;
2239             }
2240             description { state: "disabled_visible" 0.0;
2241                inherit: "default" 0.0;
2242                color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2243                visible: 1;
2244                min: BUTTON_POPUP_TEXT_MIN_INC;
2245             }
2246             description { state: "focused" 0.0;
2247                inherit: "default" 0.0;
2248                visible: 1;
2249                min: 0 0;
2250                color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2251             }
2252          }
2253          part { name: "over2";
2254             type: RECT;
2255             repeat_events: 1;
2256             ignore_flags: ON_HOLD;
2257             description { state: "default" 0.0;
2258                color: 0 0 0 0;
2259             }
2260          }
2261          part { name: "over3";
2262             type: RECT;
2263             repeat_events: 1;
2264             description { state: "default" 0.0;
2265                color: 0 0 0 0;
2266             }
2267          }
2268          part { name: "clipper";
2269             type: RECT;
2270             description { state: "default" 0.0;
2271                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2272             }
2273             description { state: "disabled" 0.0;
2274                inherit: "default" 0.0;
2275                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2276             }
2277          }
2278          part { name: "disabler";
2279             type: RECT;
2280             description { state: "default" 0.0;
2281                color: 0 0 0 0;
2282                visible: 0;
2283             }
2284             description { state: "disabled" 0.0;
2285                inherit: "default" 0.0;
2286                visible: 1;
2287             }
2288          }
2289       }
2290       programs {
2291          program { name: "button_click";
2292             signal: "mouse,down,1";
2293             source: "over2";
2294             action: SIGNAL_EMIT "elm,action,press" "";
2295             after: "button_click_anim";
2296          }
2297          program { name: "button_click_anim";
2298             action: STATE_SET "clicked" 0.0;
2299             target: "button_image";
2300             after: "text_clicked";
2301          }
2302          program { name: "text_clicked";
2303             script {
2304                new st[31];
2305                new Float:vl;
2306                get_state(PART:"elm.text", st, 30, vl);
2307                if (!strcmp(st, "visible"))
2308                  set_state(PART:"elm.text", "clicked", 0.0);
2309             }
2310          }
2311          program { name: "button_double_click";
2312             signal: "mouse,down,1,double";
2313             source: "over2";
2314             after: "button_click_anim";
2315          }
2316          program { name: "button_unpress";
2317             action: SIGNAL_EMIT "elm,action,unpress" "";
2318          }
2319          program { name: "button_mouseout_clicked";
2320             signal: "mouse,up,1";
2321             source: "over3";
2322             script {
2323                new st[31];
2324                new Float:vl;
2325                get_state(PART:"elm.swallow.content", st, 30, vl);
2326                if (strcmp(st, "icononly"))
2327                  {
2328                     emit("elm,action,default,text,set", "");
2329                     set_state(PART:"elm.text", "visible", 0.0);
2330                  }
2331                if (get_int(button_state) != BUTTON_STATE_DISABLED)
2332                  set_state(PART:"button_image", "default", 0.0);
2333             }
2334             after: button_unpress;
2335          }
2336          program { name: "touch_snd";
2337             signal: "mouse,clicked,1";
2338             source: "over2";
2339             action: PLAY_SAMPLE "touch_sound" 1.0;
2340             after: button_unclick3;
2341          }
2342          program { name: "button_unclick3";
2343             action: SIGNAL_EMIT "elm,action,click" "";
2344          }
2345          program { name: "text_show";
2346             signal: "elm,state,text,visible";
2347             source: "elm";
2348             script {
2349                new st[31];
2350                new Float:vl;
2351                get_state(PART:"elm.swallow.content", st, 30, vl);
2352                if (!strcmp(st, "icononly"))
2353                  {
2354                     set_state(PART:"elm.swallow.content", "visible", 0.0);
2355                     set_state(PART:"padding_icon_text", "visible", 0.0);
2356                  }
2357                if (get_int(button_state) != BUTTON_STATE_DISABLED)
2358                  set_state(PART:"elm.text", "visible", 0.0);
2359                else
2360                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2361             }
2362          }
2363          program { name: "text_hide";
2364             signal: "elm,state,text,hidden";
2365             source: "elm";
2366             script {
2367                new st[31];
2368                new Float:vl;
2369                get_state(PART:"elm.swallow.content", st, 30, vl);
2370                if (!strcmp(st, "visible"))
2371                  {
2372                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
2373                     set_state(PART:"padding_icon_text", "icononly", 0.0);
2374                  }
2375                set_state(PART:"elm.text", "default", 0.0);
2376             }
2377          }
2378          program { name: "icon_show";
2379             signal: "elm,state,icon,visible";
2380             source: "elm";
2381             script {
2382                new st[31];
2383                new Float:vl;
2384                get_state(PART:"elm.text", st, 30, vl);
2385                if (!strcmp(st, "visible"))
2386                  {
2387                     set_state(PART:"elm.swallow.content", "visible", 0.0);
2388                     set_state(PART:"padding_icon_text", "visible", 0.0);
2389                  }
2390                else
2391                  {
2392                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
2393                     set_state(PART:"padding_icon_text", "icononly", 0.0);
2394                  }
2395             }
2396          }
2397          program { name: "icon_hide";
2398             signal: "elm,state,icon,hidden";
2399             source: "elm";
2400             action: STATE_SET "default" 0.0;
2401             target: "elm.swallow.content";
2402             target: "padding_icon_text";
2403          }
2404          program { name: "disable";
2405             signal: "elm,state,disabled";
2406             source: "elm";
2407             action: STATE_SET "disabled" 0.0;
2408             target: "button_image";
2409             target: "clipper";
2410             target: "disabler";
2411             after: "disable_text";
2412          }
2413          program { name: "disable_text";
2414             script {
2415                new st[31];
2416                new Float:vl;
2417                get_state(PART:"elm.text", st, 30, vl);
2418                if (!strcmp(st, "visible"))
2419                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2420                else
2421                  set_state(PART:"elm.text", "disabled", 0.0);
2422                set_int(button_state, BUTTON_STATE_DISABLED);
2423             }
2424          }
2425          program { name: "enable";
2426             signal: "elm,state,enabled";
2427             source: "elm";
2428             action: STATE_SET "default" 0.0;
2429             target: "button_image";
2430             target: "clipper";
2431             target: "disabler";
2432             after: "enable_text";
2433          }
2434          program { name: "enable_text";
2435             script {
2436                new st[31];
2437                new Float:vl;
2438                get_state(PART:"elm.text", st, 30, vl);
2439                if (!strcmp(st, "disabled_visible"))
2440                  set_state(PART:"elm.text", "visible", 0.0);
2441                else
2442                  set_state(PART:"elm.text", "default", 0.0);
2443                set_int(button_state, BUTTON_STATE_ENABLED);
2444             }
2445          }
2446          program { name: "action_focus";
2447             signal: "elm,action,focus_highlight,show";
2448             source: "elm";
2449             action: STATE_SET "focused" 0.0;
2450             target: "focus_image";
2451          }
2452          program { name: "action_unfocus";
2453             signal: "elm,action,focus_highlight,hide";
2454             source: "elm";
2455             action: STATE_SET "default" 0.0;
2456             target: "focus_image";
2457          }
2458       }
2459    }
2460
2461 ///////////////////////////////////////////////////////////////////////////////////////
2462 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2463    group { name: "elm/button/base/"style_name; \
2464       data { \
2465          item: "focus_highlight" "on"; \
2466       } \
2467       images { \
2468          image: "00_circle_button.png" COMP; \
2469          image: "00_circle_button_press.png" COMP; \
2470          image: "00_circle_button_dim.png" COMP; \
2471          image: image_normal COMP; \
2472          image: image_press COMP; \
2473          image: 00_circle_button_focus.png COMP; \
2474       } \
2475       parts { \
2476          part { name: "button_image"; \
2477             scale: 1; \
2478             description { state: "default" 0.0; \
2479                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2480                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2481                image.normal: "00_circle_button.png"; \
2482             } \
2483             description { \
2484                state: "clicked" 0.0; \
2485                inherit: "default" 0.0; \
2486                image.normal: "00_circle_button_press.png"; \
2487             } \
2488             description { \
2489                state: "disabled" 0.0; \
2490                inherit: "default" 0.0; \
2491                image.normal: "00_circle_button_dim.png"; \
2492             } \
2493          } \
2494          part { name: "left_top_padding"; \
2495             scale: 1; \
2496             type: SPACER; \
2497             description { state: "default" 0.0; \
2498                min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2499                max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2500                fixed: 1 1; \
2501                align: 0.0 0.0; \
2502                rel1.to: "button_image"; \
2503                rel2.to: "button_image"; \
2504             } \
2505          } \
2506          part { name: "right_bottom_padding"; \
2507             scale: 1; \
2508             type: SPACER; \
2509             description { state: "default" 0.0; \
2510                min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2511                max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2512                fixed: 1 1; \
2513                align: 1.0 1.0; \
2514                rel1 { \
2515                   relative: 1.0 1.0; \
2516                   to: "button_image"; \
2517                } \
2518                rel2.to: "button_image"; \
2519             } \
2520          } \
2521          part { name: "button_center_part"; \
2522             scale: 1; \
2523             clip_to: "icon_clipper"; \
2524             description { state: "default" 0.0; \
2525                min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2526                max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2527                image.normal: image_normal; \
2528                rel1 { \
2529                   relative: 1.0 1.0; \
2530                   to: "left_top_padding"; \
2531                } \
2532                rel2 { \
2533                   relative: 0.0 0.0; \
2534                   to: "right_bottom_padding"; \
2535                } \
2536             } \
2537             description { state: "clicked" 0.0; \
2538                inherit: "default"; \
2539                image.normal: image_press; \
2540             } \
2541             description { state: "disabled" 0.0; \
2542                inherit: "default"; \
2543             } \
2544          } \
2545          part { name: "icon_clipper"; \
2546             type: RECT; \
2547             scale: 1; \
2548             description { state: "default" 0.0; \
2549                color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2550             } \
2551             description { state: "clicked" 0.0; \
2552                color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2553             } \
2554             description { state: "disabled" 0.0; \
2555                color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2556             } \
2557          } \
2558          part { name: "focus_image"; \
2559             scale: 1; \
2560             mouse_events: 0; \
2561             repeat_events: 1; \
2562               description { state: "default" 0.0; \
2563                  min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2564                  max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2565                  visible: 0; \
2566                  rel1.to : "button_image"; \
2567                  rel2.to : "button_image"; \
2568                  image { \
2569                   normal: "00_circle_button_focus.png"; \
2570                   border_scale: 1; \
2571                } \
2572             } \
2573             description { state: "focused" 0.0; \
2574                inherit: "default" 0.0; \
2575                visible: 1; \
2576             } \
2577          } \
2578          part { name: "over1"; \
2579             type: RECT; \
2580             ignore_flags: ON_HOLD; \
2581             description { state: "default" 0.0; \
2582                color: 0 0 0 0; \
2583                min: min_width min_height; \
2584             } \
2585          } \
2586          part { name: "over2"; \
2587             type: RECT; \
2588             repeat_events: 1; \
2589             description { state: "default" 0.0; \
2590                color: 0 0 0 0; \
2591             } \
2592          } \
2593          part { name: "disabler"; \
2594             type: RECT; \
2595             description { state: "default" 0.0; \
2596                color: 0 0 0 0; \
2597                visible: 0; \
2598             } \
2599             description { state: "disabled" 0.0; \
2600                inherit: "default" 0.0; \
2601                visible: 1; \
2602             } \
2603          } \
2604       } \
2605       programs { \
2606          program { name: "button_click"; \
2607             signal: "mouse,down,1"; \
2608             source: "over1"; \
2609             action: SIGNAL_EMIT "elm,action,press" ""; \
2610             after: "button_click_anim"; \
2611          } \
2612          program { name: "button_click_anim"; \
2613             action: STATE_SET "clicked" 0.0; \
2614             target: "button_image"; \
2615             target: "button_center_part"; \
2616             target: "icon_clipper"; \
2617          } \
2618          program { name: "button_double_click"; \
2619             signal: "mouse,down,1,double"; \
2620             source: "over1"; \
2621             after: "button_click_anim"; \
2622          } \
2623          program { name: "button_unclick"; \
2624             signal: "mouse,up,1"; \
2625             source: "over2"; \
2626             action: SIGNAL_EMIT "elm,action,unpress" ""; \
2627             after: "button_unclick_anim"; \
2628          } \
2629          program { name: "button_unclick_anim"; \
2630             action: STATE_SET "default" 0.0; \
2631             target: "button_image"; \
2632             target: "button_center_part"; \
2633             target: "icon_clipper"; \
2634          } \
2635          program { name: "touch_snd"; \
2636             signal: "mouse,clicked,1"; \
2637             source: "over1"; \
2638             action: PLAY_SAMPLE "touch_sound" 1.0; \
2639             after: button_unclick3; \
2640          } \
2641          program { name: "button_unclick3"; \
2642             action: SIGNAL_EMIT "elm,action,click" ""; \
2643          } \
2644          program { name: "disable"; \
2645             signal: "elm,state,disabled"; \
2646             source: "elm"; \
2647             action: STATE_SET "disabled" 0.0; \
2648             target: "disabler"; \
2649             target: "button_image"; \
2650             target: "button_center_part"; \
2651             target: "icon_clipper"; \
2652          } \
2653          program { name: "enable"; \
2654             signal: "elm,state,enabled"; \
2655             source: "elm"; \
2656             action: STATE_SET "default" 0.0; \
2657             target: "disabler"; \
2658             target: "button_image"; \
2659             target: "button_center_part"; \
2660             target: "icon_clipper"; \
2661          } \
2662          program { name: "action_focus"; \
2663             signal: "elm,action,focus_highlight,show"; \
2664             source: "elm"; \
2665             action: STATE_SET "focused" 0.0; \
2666             target: "focus_image"; \
2667          } \
2668          program { name: "action_unfocus"; \
2669             signal: "elm,action,focus_highlight,hide"; \
2670             source: "elm"; \
2671             action: STATE_SET "default" 0.0; \
2672             target: "focus_image"; \
2673          } \
2674       } \
2675    }
2676
2677 ///////////////////////////////////////////////////////////////////////////////////////
2678    BUTTON_CIRCLE_STYLES("reveal","00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2679
2680 ///////////////////////////////////////////////////////////////////////////////////////
2681    BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2682
2683 ///////////////////////////////////////////////////////////////////////////////////////
2684    BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2685
2686 ///////////////////////////////////////////////////////////////////////////////////////
2687    BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2688
2689 ///////////////////////////////////////////////////////////////////////////////////////
2690    BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2691
2692 ///////////////////////////////////////////////////////////////////////////////////////
2693    BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2694
2695 ///////////////////////////////////////////////////////////////////////////////////////
2696    BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2697
2698 ///////////////////////////////////////////////////////////////////////////////////////
2699    BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2700
2701 ///////////////////////////////////////////////////////////////////////////////////////
2702    BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2703
2704 ///////////////////////////////////////////////////////////////////////////////////////
2705    BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2706
2707 ///////////////////////////////////////////////////////////////////////////////////////
2708    BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2709
2710 ///////////////////////////////////////////////////////////////////////////////////////
2711    BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2712
2713 ///////////////////////////////////////////////////////////////////////////////////////
2714    BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2715
2716 ///////////////////////////////////////////////////////////////////////////////////////
2717    BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2718
2719 ///////////////////////////////////////////////////////////////////////////////////////
2720    BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2721
2722 ///////////////////////////////////////////////////////////////////////////////////////
2723    BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2724
2725 ///////////////////////////////////////////////////////////////////////////////////////
2726    BUTTON_CIRCLE_STYLES("cancel", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2727
2728 ///////////////////////////////////////////////////////////////////////////////////////
2729    BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2730
2731 ///////////////////////////////////////////////////////////////////////////////////////
2732    BUTTON_CIRCLE_STYLES("send", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2733
2734 ///////////////////////////////////////////////////////////////////////////////////////
2735    BUTTON_CIRCLE_STYLES("send/extended", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2736 ///////////////////////////////////////////////////////////////////////////////////////
2737
2738 ///////////////////////////////////////////////////////////////////////////////////////
2739    BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", "00_button_contact_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2740 ///////////////////////////////////////////////////////////////////////////////////////
2741
2742 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2743    group { name: "elm/button/base/"style_name; \
2744       inherit: "elm/button/base/info"; \
2745       images { \
2746          image: "00_circle_button_delete.png" COMP; \
2747          image: "00_circle_button_delete_press.png" COMP; \
2748          image: "00_circle_button_delete_dim.png" COMP; \
2749          image: "00_button_warning.png" COMP; \
2750          image: "00_button_warning_press.png" COMP; \
2751       } \
2752       parts { \
2753          part { name: "button_image"; \
2754             scale: 1; \
2755             description { state: "default" 0.0; \
2756                image.normal: "00_circle_button_delete.png"; \
2757             } \
2758             description { \
2759                state: "clicked" 0.0; \
2760                inherit: "default" 0.0; \
2761                image.normal: "00_circle_button_delete_press.png"; \
2762             } \
2763             description { \
2764                state: "disabled" 0.0; \
2765                inherit: "default" 0.0; \
2766                image.normal: "00_circle_button_delete_dim.png"; \
2767             } \
2768          } \
2769          part { name: "button_center_part"; \
2770             scale: 1; \
2771             clip_to: "icon_clipper"; \
2772             description { state: "default" 0.0; \
2773                image.normal: "00_button_warning.png"; \
2774             } \
2775             description { state: "clicked" 0.0; \
2776                inherit: "default"; \
2777                image.normal: "00_button_warning_press.png"; \
2778             } \
2779             description { state: "disabled" 0.0; \
2780                inherit: "default"; \
2781             } \
2782          } \
2783          part { name: "icon_clipper"; \
2784             type: RECT; \
2785             scale: 1; \
2786             description { state: "default" 0.0; \
2787                color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2788             } \
2789             description { state: "clicked" 0.0; \
2790                color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2791             } \
2792             description { state: "disabled" 0.0; \
2793                color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2794             } \
2795          } \
2796          part { name: "over1"; \
2797             type: RECT; \
2798             ignore_flags: ON_HOLD; \
2799             description { state: "default" 0.0; \
2800                color: 0 0 0 0; \
2801                min: min_width min_height; \
2802             } \
2803          } \
2804       } \
2805    }
2806
2807 ///////////////////////////////////////////////////////////////////////////////////////
2808    BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2809
2810 ///////////////////////////////////////////////////////////////////////////////////////
2811    BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2812
2813 ///////////////////////////////////////////////////////////////////////////////////////
2814    group { name: "elm/button/base/circle/empty";
2815       data {
2816          item: "focus_highlight" "on";
2817       }
2818       images {
2819          image: "00_circle_button.png" COMP;
2820          image: "00_circle_button_press.png" COMP;
2821          image: "00_circle_button_dim.png" COMP;
2822          image: 00_circle_button_focus.png COMP;
2823       }
2824       parts {
2825          part { name: "button_image";
2826             scale: 1;
2827             description { state: "default" 0.0;
2828                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2829                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2830                fixed: 1 1;
2831                image.normal: "00_circle_button.png";
2832             }
2833             description { state: "clicked" 0.0;
2834                inherit: "default" 0.0;
2835                image.normal: "00_circle_button_press.png";
2836             }
2837             description { state: "disabled" 0.0;
2838                inherit: "default" 0.0;
2839                image.normal: "00_circle_button_dim.png";
2840             }
2841          }
2842          part { name: "left_top_padding";
2843             scale: 1;
2844             type: SPACER;
2845             description { state: "default" 0.0;
2846                min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2847                max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2848                fixed: 1 1;
2849                align: 0.0 0.0;
2850                rel1.to: "button_image";
2851                rel2.to: "button_image";
2852             }
2853          }
2854          part { name: "right_bottom_padding";
2855             scale: 1;
2856             type: SPACER;
2857             description { state: "default" 0.0;
2858                min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2859                max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2860                fixed: 1 1;
2861                align: 1.0 1.0;
2862                rel1 {
2863                   relative: 1.0 1.0;
2864                   to: "button_image";
2865                }
2866                rel2.to: "button_image";
2867             }
2868          }
2869          part { name: "elm.swallow.content";
2870             type: SWALLOW;
2871             clip_to: "icon_clipper";
2872             scale: 1;
2873             description { state: "default" 0.0;
2874                fixed: 1 1;
2875                rel1 {
2876                   relative: 1.0 1.0;
2877                   to: "left_top_padding";
2878                }
2879                rel2 {
2880                   relative: 0.0 0.0;
2881                   to: "right_bottom_padding";
2882                }
2883                visible: 0;
2884             }
2885             description { state: "visible" 0.0;
2886                inherit: "default" 0.0;
2887                visible: 1;
2888                min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2889                max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2890             }
2891          }
2892          part { name: "icon_clipper";
2893             type: RECT;
2894             scale: 1;
2895             description { state: "default" 0.0;
2896                color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2897             }
2898             description { state: "clicked" 0.0;
2899                color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2900             }
2901             description { state: "disabled" 0.0;
2902                color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2903             }
2904          }
2905          part { name: "focus_image";
2906             scale: 1;
2907             mouse_events: 0;
2908             repeat_events: 1;
2909               description { state: "default" 0.0;
2910                  min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2911                  max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2912                  visible: 0;
2913                  rel1.to : "button_image";
2914                  rel2.to : "button_image";
2915                  image {
2916                   normal: "00_circle_button_focus.png";
2917                   border_scale: 1;
2918                }
2919             }
2920             description { state: "focused" 0.0;
2921                inherit: "default" 0.0;
2922                visible: 1;
2923             }
2924          }
2925          part { name: "over1";
2926             type: RECT;
2927             ignore_flags: ON_HOLD;
2928             description { state: "default" 0.0;
2929                color: 0 0 0 0;
2930             }
2931          }
2932          part { name: "over2";
2933             type: RECT;
2934             repeat_events: 1;
2935             description { state: "default" 0.0;
2936                color: 0 0 0 0;
2937             }
2938          }
2939          part { name: "disabler";
2940             type: RECT;
2941             description { state: "default" 0.0;
2942                color: 0 0 0 0;
2943                visible: 0;
2944             }
2945             description { state: "disabled" 0.0;
2946                inherit: "default" 0.0;
2947                visible: 1;
2948             }
2949          }
2950       }
2951       programs {
2952          program { name: "button_click";
2953             signal: "mouse,down,1";
2954             source: "over1";
2955             action: SIGNAL_EMIT "elm,action,press" "";
2956             after: "button_click_anim";
2957          }
2958          program { name: "button_click_anim";
2959             action: STATE_SET "clicked" 0.0;
2960             target: "button_image";
2961             target: "icon_clipper";
2962          }
2963          program { name: "button_double_click";
2964             signal: "mouse,down,1,double";
2965             source: "over1";
2966             after: "button_click_anim";
2967          }
2968          program { name: "touch_snd";
2969             signal: "mouse,clicked,1";
2970             source: "over1";
2971             action: PLAY_SAMPLE "touch_sound" 1.0;
2972             after: button_unclick2;
2973          }
2974          program { name: "button_unclick2";
2975             action: SIGNAL_EMIT "elm,action,click" "";
2976          }
2977          program { name: "button_unclick";
2978             signal: "mouse,up,1";
2979             source: "over2";
2980             action: SIGNAL_EMIT "elm,action,unpress" "";
2981             after: "button_unclick_anim";
2982          }
2983          program { name: "button_unclick_anim";
2984             action: STATE_SET "default" 0.0;
2985             target: "button_image";
2986             target: "icon_clipper";
2987          }
2988          program { name: "disable";
2989             signal: "elm,state,disabled";
2990             source: "elm";
2991             action: STATE_SET "disabled" 0.0;
2992             target: "disabler";
2993             target: "button_image";
2994             target: "icon_clipper";
2995          }
2996          program { name: "enable";
2997             signal: "elm,state,enabled";
2998             source: "elm";
2999             action: STATE_SET "default" 0.0;
3000             target: "disabler";
3001             target: "button_image";
3002             target: "icon_clipper";
3003          }
3004          program { name: "icon_show";
3005             signal: "elm,state,icon,visible";
3006             source: "elm";
3007             action: STATE_SET "visible" 0.0;
3008             target: "elm.swallow.content";
3009          }
3010          program { name: "icon_hide";
3011             signal: "elm,state,icon,hidden";
3012             source: "elm";
3013             action: STATE_SET "default" 0.0;
3014             target: "elm.swallow.content";
3015          }
3016          program { name: "action_focus";
3017             signal: "elm,action,focus_highlight,show";
3018             source: "elm";
3019             action: STATE_SET "focused" 0.0;
3020             target: "focus_image";
3021          }
3022          program { name: "action_unfocus";
3023             signal: "elm,action,focus_highlight,hide";
3024             source: "elm";
3025             action: STATE_SET "default" 0.0;
3026             target: "focus_image";
3027          }
3028       }
3029    }
3030
3031 ///////////////////////////////////////////////////////////////////////////////////////
3032 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3033    group { name: "elm/button/base/contacts/"style_name; \
3034    alias: "elm/button/base/"style_name; \
3035       data { \
3036          item: "focus_highlight" "on"; \
3037       } \
3038       images { \
3039          image: "00_circle_button.png" COMP; \
3040          image: "00_circle_button_press.png" COMP; \
3041          image: "00_circle_button_dim.png" COMP; \
3042          image: image_normal COMP; \
3043          image: image_press COMP; \
3044          image: 00_circle_button_focus.png COMP;\
3045       } \
3046       parts { \
3047          part { name: "button_image"; \
3048             scale: 1; \
3049             description { state: "default" 0.0; \
3050                min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3051                max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3052                image.normal: "00_circle_button.png"; \
3053             } \
3054             description { state: "clicked" 0.0; \
3055                inherit: "default" 0.0; \
3056                image.normal: "00_circle_button_press.png"; \
3057             } \
3058             description { state: "disabled" 0.0; \
3059                inherit: "default" 0.0; \
3060                image.normal: "00_circle_button_dim.png"; \
3061             } \
3062          } \
3063          part { name: "button_center_part"; \
3064             mouse_events: 0; \
3065             scale: 1; \
3066             clip_to: "icon_clipper"; \
3067             description { state: "default" 0.0; \
3068                min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3069                max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3070                image.normal: image_normal; \
3071             } \
3072             description { \
3073                state: "clicked" 0.0; \
3074                inherit: "default" 0.0; \
3075                image.normal: image_press; \
3076             } \
3077             description { state: "disabled" 0.0; \
3078                inherit: "default" 0.0; \
3079             } \
3080          } \
3081          part { name: "focus_image"; \
3082             scale: 1; \
3083             mouse_events: 0; \
3084             repeat_events: 1; \
3085               description { state: "default" 0.0; \
3086                  min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3087                  max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3088                  visible: 0; \
3089                  rel1.to : "button_image"; \
3090                  rel2.to : "button_image"; \
3091                  image { \
3092                   normal: "00_circle_button_focus.png"; \
3093                   border_scale: 1; \
3094                } \
3095             } \
3096             description { state: "focused" 0.0; \
3097                inherit: "default" 0.0; \
3098                visible: 1; \
3099             } \
3100          } \
3101          part { name: "icon_clipper"; \
3102             scale: 1; \
3103             type: RECT; \
3104             description { state: "default" 0.0; \
3105                color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
3106             } \
3107             description { state: "clicked" 0.0; \
3108                color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
3109             } \
3110             description { state: "disabled" 0.0; \
3111                color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
3112             } \
3113          } \
3114          part { name: "over1"; \
3115             type: RECT; \
3116             repeat_events: 1; \
3117             ignore_flags: ON_HOLD; \
3118             description { state: "default" 0.0; \
3119                color: 0 0 0 0; \
3120                min: min_width min_height; \
3121             } \
3122          } \
3123          part { name: "over2"; \
3124             type: RECT; \
3125             repeat_events: 1; \
3126             description { state: "default" 0.0; \
3127                color: 0 0 0 0; \
3128             } \
3129          } \
3130          part { name: "disabler"; \
3131             type: RECT; \
3132             description { state: "default" 0.0; \
3133                color: 0 0 0 0; \
3134                visible: 0; \
3135             } \
3136             description { state: "disabled" 0.0; \
3137                inherit: "default" 0.0; \
3138                visible: 1; \
3139             } \
3140          } \
3141       } \
3142       programs { \
3143          program { name: "button_click"; \
3144             signal: "mouse,down,1"; \
3145             source: "over1"; \
3146             action: SIGNAL_EMIT "elm,action,press" ""; \
3147             after: "button_click_anim"; \
3148          } \
3149          program { name: "button_click_anim"; \
3150             action: STATE_SET "clicked" 0.0; \
3151             target: "button_image"; \
3152             target: "button_center_part"; \
3153             target: "icon_clipper"; \
3154          } \
3155          program { name: "button_double_click"; \
3156             signal: "mouse,down,1,double"; \
3157             source: "over1"; \
3158             after: "button_click_anim"; \
3159          } \
3160          program { name: "button_unclick"; \
3161             signal: "mouse,up,1"; \
3162             source: "over2"; \
3163             action: SIGNAL_EMIT "elm,action,unpress" ""; \
3164             after: "button_unclick_anim"; \
3165          } \
3166          program { name: "button_unclick_anim"; \
3167             action: STATE_SET "default" 0.0; \
3168             target: "button_image"; \
3169             target: "button_center_part"; \
3170             target: "icon_clipper"; \
3171          } \
3172          program { name: "touch_snd"; \
3173             signal: "mouse,clicked,1"; \
3174             source: "over1"; \
3175             action: PLAY_SAMPLE "touch_sound" 1.0; \
3176             after: button_unclick3; \
3177          } \
3178          program { name: "button_unclick3"; \
3179             action: SIGNAL_EMIT "elm,action,click" ""; \
3180          } \
3181          program { name: "disable"; \
3182             signal: "elm,state,disabled"; \
3183             source: "elm"; \
3184             action: STATE_SET "disabled" 0.0; \
3185             target: "disabler"; \
3186             target: "button_image"; \
3187             target: "button_center_part"; \
3188             target: "icon_clipper"; \
3189          } \
3190          program { name: "enable"; \
3191             signal: "elm,state,enabled"; \
3192             source: "elm"; \
3193             action: STATE_SET "default" 0.0; \
3194             target: "disabler"; \
3195             target: "button_image"; \
3196             target: "button_center_part"; \
3197             target: "icon_clipper"; \
3198          } \
3199          program { name: "action_focus"; \
3200             signal: "elm,action,focus_highlight,show"; \
3201             source: "elm"; \
3202             action: STATE_SET "focused" 0.0; \
3203             target: "focus_image"; \
3204          } \
3205          program { name: "action_unfocus"; \
3206             signal: "elm,action,focus_highlight,hide"; \
3207             source: "elm"; \
3208             action: STATE_SET "default" 0.0; \
3209             target: "focus_image"; \
3210          } \
3211       } \
3212    }
3213 ///////////////////////////////////////////////////////////////////////////////////////
3214    BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3215
3216 ///////////////////////////////////////////////////////////////////////////////////////
3217    BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3218
3219 ///////////////////////////////////////////////////////////////////////////////////////
3220    BUTTON_EDIT_STYLES("icon_expand", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3221
3222 ///////////////////////////////////////////////////////////////////////////////////////
3223    BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3224
3225 ///////////////////////////////////////////////////////////////////////////////////////
3226    BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3227
3228 ///////////////////////////////////////////////////////////////////////////////////////
3229    BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3230
3231 ///////////////////////////////////////////////////////////////////////////////////////
3232
3233 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3234    group { name: "elm/button/base/contacts/"style_name; \
3235       alias: "elm/button/base/"style_name; \
3236       inherit: "elm/button/base/contacts/icon_plus"; \
3237       images { \
3238          image: "00_circle_button_delete.png" COMP; \
3239          image: "00_circle_button_delete_press.png" COMP; \
3240          image: "00_circle_button_delete_dim.png" COMP; \
3241          image: "00_button_delete.png" COMP; \
3242          image: "00_button_delete_press.png" COMP; \
3243       } \
3244       parts { \
3245          part { name: "button_image"; \
3246             scale: 1; \
3247             description { state: "default" 0.0; \
3248                image.normal: "00_circle_button_delete.png"; \
3249             } \
3250             description { state: "clicked" 0.0; \
3251                inherit: "default" 0.0; \
3252                image.normal: "00_circle_button_delete_press.png"; \
3253             } \
3254             description { state: "disabled" 0.0; \
3255                inherit: "default" 0.0; \
3256                image.normal: "00_circle_button_delete_dim.png"; \
3257             } \
3258          } \
3259          part { name: "button_center_part"; \
3260             mouse_events: 0; \
3261             scale: 1; \
3262             clip_to: "icon_clipper"; \
3263             description { state: "default" 0.0; \
3264                image.normal: "00_button_delete.png"; \
3265             } \
3266             description { \
3267                state: "clicked" 0.0; \
3268                inherit: "default" 0.0; \
3269                image.normal: "00_button_delete_press.png"; \
3270             } \
3271             description { state: "disabled" 0.0; \
3272                inherit: "default" 0.0; \
3273             } \
3274          } \
3275          part { name: "icon_clipper"; \
3276             scale: 1; \
3277             type: RECT; \
3278             description { state: "default" 0.0; \
3279                color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3280             } \
3281             description { state: "clicked" 0.0; \
3282                color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3283             } \
3284             description { state: "disabled" 0.0; \
3285                color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3286             } \
3287          } \
3288          part { name: "over1"; \
3289             type: RECT; \
3290             repeat_events: 1; \
3291             ignore_flags: ON_HOLD; \
3292             description { state: "default" 0.0; \
3293                color: 0 0 0 0; \
3294                min: min_width min_height; \
3295             } \
3296          } \
3297       } \
3298    }
3299
3300 ///////////////////////////////////////////////////////////////////////////////////////
3301    BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3302
3303 ///////////////////////////////////////////////////////////////////////////////////////
3304    BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3305
3306 ///////////////////////////////////////////////////////////////////////////////////////
3307 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3308    group { name: "elm/button/base/"style_name; \
3309       data { \
3310          item: "focus_highlight" "on"; \
3311       } \
3312       images { \
3313          image: "00_button_01.png" COMP; \
3314          image: "00_button_01_press.png" COMP; \
3315          image: "00_button_01_dim.png" COMP; \
3316          image: image_normal COMP; \
3317          image: "00_button_01_focus.png" COMP; \
3318       }\
3319       parts { \
3320          part { name: "button_image";\
3321             type: IMAGE; \
3322             scale: 1; \
3323             description { state: "default" 0.0; \
3324                min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3325                image { \
3326                   normal: "00_button_01.png"; \
3327                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3328                   border_scale: 1; \
3329                } \
3330             } \
3331             description { state: "clicked" 0.0; \
3332              inherit: "default" 0.0; \
3333              image.normal: "00_button_01_press.png"; \
3334             } \
3335             description { state: "disabled" 0.0; \
3336                inherit: "default" 0.0; \
3337                image.normal: "00_button_01_dim.png"; \
3338             } \
3339          } \
3340          part { name: "focus_image"; \
3341             scale: 1; \
3342             mouse_events: 0; \
3343             repeat_events: 1; \
3344             description { state: "default" 0.0; \
3345                visible: 0; \
3346                rel1.to : "button_image"; \
3347                rel2.to : "button_image"; \
3348                image { \
3349                   normal: "00_button_01_focus.png"; \
3350                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3351                   border_scale: 1; \
3352                } \
3353             } \
3354             description { state: "focused" 0.0; \
3355                inherit: "default" 0.0; \
3356                visible: 1; \
3357             } \
3358          } \
3359          part { name: "padding_left_top"; \
3360             type: SPACER; \
3361             scale: 1; \
3362             description { state: "default" 0.0; \
3363                align: 0.0 0.0; \
3364                rel2.relative: 0.0 0.0; \
3365                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3366                fixed: 1 1; \
3367             } \
3368          } \
3369          part { name: "padding_right_bottom"; \
3370             type: SPACER; \
3371             scale: 1; \
3372             description { state: "default" 0.0; \
3373                align: 1.0 1.0; \
3374                rel1.relative: 1.0 1.0; \
3375                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3376                fixed: 1 1; \
3377             } \
3378          } \
3379          part { name: "jump_image"; \
3380             type: IMAGE; \
3381             scale: 1; \
3382             description { state: "default" 0.0; \
3383                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3384                max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3385                rel1 { \
3386                   relative: 1.0 0.0; \
3387                   to_x: "padding_left_top"; \
3388                } \
3389                rel2 { \
3390                   relative: 0.0 1.0; \
3391                   to_x: "padding_right_bottom"; \
3392                } \
3393                image.normal: image_normal; \
3394                aspect: 1.0 1.0; \
3395                aspect_preference: VERTICAL; \
3396                color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3397             } \
3398             description { state: "clicked" 0.0; \
3399                inherit: "default" 0.0; \
3400                color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3401             } \
3402             description { state: "disabled" 0.0; \
3403                inherit: "default" 0.0; \
3404                color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3405             } \
3406          } \
3407          part { name: "over1"; \
3408             type: RECT; \
3409             repeat_events: 1; \
3410             ignore_flags: ON_HOLD; \
3411             description { state: "default" 0.0; \
3412                color: 0 0 0 0; \
3413                rel1.relative: 0.0 0.0; \
3414                rel2.relative: 1.0 1.0; \
3415             } \
3416          } \
3417          part { name: "over2"; \
3418             type: RECT; \
3419             repeat_events: 1; \
3420             description { state: "default" 0.0; \
3421                color: 0 0 0 0; \
3422             } \
3423          } \
3424       } \
3425       programs { \
3426          program { name: "button_click"; \
3427             signal: "mouse,down,1"; \
3428             source: "over1"; \
3429             action: SIGNAL_EMIT "elm,action,press" ""; \
3430             after: "button_click_anim"; \
3431          } \
3432          program { name: "button_click_anim"; \
3433             action: STATE_SET "clicked" 0.0; \
3434             target: "button_image"; \
3435             target: "jump_image"; \
3436          } \
3437          program { name: "button_double_click"; \
3438             signal: "mouse,down,1,double"; \
3439             source: "over1"; \
3440             after: "button_click_anim"; \
3441          } \
3442          program { name: "button_unclick"; \
3443             signal: "mouse,up,1"; \
3444             source: "over2"; \
3445             action: SIGNAL_EMIT "elm,action,unpress" ""; \
3446             after: "button_unclick_anim"; \
3447          } \
3448          program { name: "button_unclick_anim"; \
3449             action: STATE_SET "default" 0.0; \
3450             target: "button_image"; \
3451             target: "jump_image"; \
3452          } \
3453          program { name: "touch_snd"; \
3454             signal: "mouse,clicked,1"; \
3455             source: "over1"; \
3456             action: PLAY_SAMPLE "touch_sound" 1.0; \
3457             after: button_unclick3; \
3458          } \
3459          program { name: "button_unclick3"; \
3460             action: SIGNAL_EMIT "elm,action,click" ""; \
3461          } \
3462          program { name: "disable"; \
3463             signal: "elm,state,disabled"; \
3464             source: "elm"; \
3465             action: STATE_SET "disabled" 0.0; \
3466             target: "button_image"; \
3467             target: "jump_image"; \
3468          } \
3469          program { name: "enable"; \
3470             signal: "elm,state,enabled"; \
3471             source: "elm"; \
3472             action: STATE_SET "default" 0.0; \
3473             target: "button_image"; \
3474             target: "jump_image"; \
3475          } \
3476          program { name: "action_focus"; \
3477             signal: "elm,action,focus_highlight,show"; \
3478             source: "elm"; \
3479             action: STATE_SET "focused" 0.0; \
3480             target: "focus_image"; \
3481          } \
3482          program { name: "action_unfocus"; \
3483             signal: "elm,action,focus_highlight,hide"; \
3484             source: "elm"; \
3485             action: STATE_SET "default" 0.0; \
3486             target: "focus_image"; \
3487          } \
3488       } \
3489    }
3490
3491 ////////////////////////////////////////////////////////////////////////
3492 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3493 ////////////////////////////////////////////////////////////////////////
3494 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3495
3496 ////////////////////////////////////////////////////////////////////////
3497    group { name: "elm/button/base/default";
3498       data {
3499          item: "focus_highlight" "on";
3500       }
3501       images {
3502          image: "00_button_01.png" COMP;
3503          image: "00_button_01_press.png" COMP;
3504          image: "00_button_01_dim.png" COMP;
3505          image: "00_button_01_focus.png" COMP;
3506       }
3507       styles{
3508          style { name: "btn_base_default";
3509             base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3510             tag: "br" "\n";
3511             tag: "ps" "ps";
3512             tag: "tab" "\t";
3513          }
3514          style { name: "btn_base_default_pressed";
3515             base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3516             tag: "br" "\n";
3517             tag: "ps" "ps";
3518             tag: "tab" "\t";
3519          }
3520       }
3521       script {
3522          public button_state = BUTTON_STATE_ENABLED;
3523       }
3524       parts {
3525          part { name: "button_image";
3526             scale: 1;
3527             description { state: "default" 0.0;
3528                min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3529                image {
3530                   normal: "00_button_01.png";
3531                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3532                   border_scale: 1;
3533                }
3534             }
3535             description { state: "clicked" 0.0;
3536                inherit: "default" 0.0;
3537                image.normal: "00_button_01_press.png";
3538             }
3539             description { state: "disabled" 0.0;
3540                inherit: "default" 0.0;
3541                image.normal: "00_button_01_dim.png";
3542             }
3543             description { state: "focused" 0.0;
3544                inherit: "default" 0.0;
3545                image.normal: "00_button_01_press.png";
3546             }
3547          }
3548          part { name: "focus_image";
3549             scale: 1;
3550             mouse_events: 0;
3551             repeat_events: 1;
3552             description { state: "default" 0.0;
3553                visible: 0;
3554                rel1.to : "button_image";
3555                rel2.to : "button_image";
3556                image {
3557                   normal: "00_button_01_focus.png";
3558                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3559                   border_scale: 1;
3560                }
3561             }
3562             description { state: "focused" 0.0;
3563                inherit: "default" 0.0;
3564                visible: 1;
3565             }
3566          }
3567          part { name: "padding_left_top";
3568             type: RECT;
3569             scale: 1;
3570             mouse_events: 0;
3571             description { state: "default" 0.0;
3572                align: 0.0 0.0;
3573                rel2.relative: 0.0 0.0;
3574                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3575                fixed: 1 1;
3576                visible: 0;
3577             }
3578          }
3579          part { name: "padding_right_bottom";
3580             type: RECT;
3581             scale: 1;
3582             mouse_events: 0;
3583             description { state: "default" 0.0;
3584                align: 1.0 1.0;
3585                rel1.relative: 1.0 1.0;
3586                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3587                fixed: 1 1;
3588                visible: 0;
3589             }
3590          }
3591          part { name: "padding_icon_text";
3592             type: RECT;
3593             scale: 1;
3594             mouse_events: 0;
3595             description { state: "default" 0.0; //when only icon or no icon is there
3596                visible: 0;
3597                fixed: 1 0;
3598                min: 0 0;
3599                rel1 {
3600                   relative: 1.0 0.0;
3601                   to: "elm.swallow.content";
3602                }
3603                rel2.to: "elm.swallow.content";
3604                align: 0.0 0.0;
3605             }
3606             description { state: "icononly" 0.0;
3607                inherit: "default" 0.0;
3608             }
3609             description { state: "visible" 0.0; //when icon is visible
3610                inherit: "default" 0.0;
3611                min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3612             }
3613          }
3614          part { name: "elm.swallow.content";
3615             type: SWALLOW;
3616             scale: 1;
3617             clip_to: "disclip";
3618             description { state: "default" 0.0;
3619                visible: 0;
3620                fixed: 1 0;
3621                align: 0.0 0.5;
3622                rel1 {
3623                   relative: 1.0 1.0;
3624                   to: "padding_left_top";
3625                }
3626                rel2 {
3627                   relative: 1.0 0.0;
3628                   to_x: "padding_left_top";
3629                   to_y: "padding_right_bottom";
3630                }
3631             }
3632             description { state: "visible" 0.0;
3633                inherit: "default" 0.0;
3634                visible: 1;
3635                aspect: 1.0 1.0;
3636                aspect_preference: VERTICAL;
3637             }
3638             description { state: "icononly" 0.0;
3639                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3640                rel1 {
3641                   relative: 1.0 0.0;
3642                   to_x: "padding_left_top";
3643                }
3644                rel2 {
3645                   relative: 0.0 1.0;
3646                   to_x: "padding_right_bottom";
3647                }
3648                aspect: 1.0 1.0;
3649                aspect_preference: VERTICAL;
3650             }
3651          }
3652          part { name: "elm.text";
3653             type: TEXTBLOCK;
3654             mouse_events: 0;
3655             scale: 1;
3656             clip_to: "disclip";
3657             description { state: "default" 0.0;
3658                visible: 0;
3659                align: 0.0 0.5;
3660                rel1 {
3661                   relative: 1.0 1.0;
3662                   to_x: "padding_icon_text";
3663                   to_y: "padding_left_top";
3664                }
3665                rel2 {
3666                   relative: 0.0 0.0;
3667                   to: "padding_right_bottom";
3668                }
3669                text {
3670                   style: "btn_base_default";
3671                }
3672             }
3673             description { state: "visible" 0.0;
3674                inherit: "default" 0.0;
3675                visible: 1;
3676                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3677             }
3678             description { state: "clicked" 0.0;
3679                inherit: "default" 0.0;
3680                visible: 1;
3681                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3682                text {
3683                   style: "btn_base_default_pressed";
3684                }
3685             }
3686             description { state: "disabled" 0.0;
3687                inherit: "default" 0.0;
3688             }
3689             description { state: "disabled_visible" 0.0;
3690                inherit: "default" 0.0;
3691                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3692                visible: 1;
3693                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3694             }
3695             description { state: "focused" 0.0;
3696                inherit: "default" 0.0;
3697                visible: 1;
3698                min: 0 0;
3699                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3700             }
3701          }
3702          part { name: "over2";
3703             type: RECT;
3704             repeat_events: 1;
3705             ignore_flags: ON_HOLD;
3706             description { state: "default" 0.0;
3707                color: 0 0 0 0;
3708             }
3709          }
3710          part { name: "over3";
3711             type: RECT;
3712             repeat_events: 1;
3713             description { state: "default" 0.0;
3714                color: 0 0 0 0;
3715             }
3716          }
3717          part { name: "disclip";
3718             type: RECT;
3719             description { state: "default" 0.0;
3720                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3721             }
3722             description { state: "disabled" 0.0;
3723                inherit: "default" 0.0;
3724                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3725             }
3726          }
3727          part { name: "disabler";
3728             type: RECT;
3729             description { state: "default" 0.0;
3730                color: 0 0 0 0;
3731                visible: 0;
3732             }
3733             description { state: "disabled" 0.0;
3734                inherit: "default" 0.0;
3735                visible: 1;
3736             }
3737          }
3738       }
3739       programs {
3740          program { name: "button_click";
3741             signal: "mouse,down,1";
3742             source: "over3";
3743             action: SIGNAL_EMIT "elm,action,press" "";
3744             after: "button_click_anim";
3745          }
3746          program { name: "button_click_anim";
3747             action: STATE_SET "clicked" 0.0;
3748             target: "button_image";
3749             after: "text_clicked";
3750          }
3751          program { name: "text_clicked";
3752             script {
3753                new st[31];
3754                new Float:vl;
3755                get_state(PART:"elm.text", st, 30, vl);
3756                if (!strcmp(st, "visible"))
3757                  set_state(PART:"elm.text", "clicked", 0.0);
3758             }
3759          }
3760          program { name: "button_double_click";
3761             signal: "mouse,down,1,double";
3762             source: "over3";
3763             after: "button_click_anim";
3764          }
3765          program { name: "button_unpress";
3766             action: SIGNAL_EMIT "elm,action,unpress" "";
3767          }
3768          program { name: "button_mouseout_clicked";
3769             signal: "mouse,up,1";
3770             source: "over3";
3771             script {
3772                new st[31];
3773                new Float:vl;
3774                get_state(PART:"elm.swallow.content", st, 30, vl);
3775                if (strcmp(st, "icononly"))
3776                  {
3777                     emit("elm,action,default,text,set", "");
3778                     set_state(PART:"elm.text", "visible", 0.0);
3779                  }
3780                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3781                  set_state(PART:"button_image", "default", 0.0);
3782             }
3783             after: button_unpress;
3784          }
3785          program { name: "touch_snd";
3786             signal: "mouse,clicked,1";
3787             source: "over2";
3788             action: PLAY_SAMPLE "touch_sound" 1.0;
3789             after: button_unclick3;
3790          }
3791          program { name: "button_unclick3";
3792             action: SIGNAL_EMIT "elm,action,click" "";
3793          }
3794          program { name: "text_show";
3795             signal: "elm,state,text,visible";
3796             source: "elm";
3797             script {
3798                new st[31];
3799                new Float:vl;
3800                get_state(PART:"elm.swallow.content", st, 30, vl);
3801                if (!strcmp(st, "icononly"))
3802                  {
3803                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3804                     set_state(PART:"padding_icon_text", "visible", 0.0);
3805                  }
3806                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3807                  set_state(PART:"elm.text", "visible", 0.0);
3808                else
3809                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3810             }
3811          }
3812          program { name: "text_hide";
3813             signal: "elm,state,text,hidden";
3814             source: "elm";
3815             script {
3816                new st[31];
3817                new Float:vl;
3818                get_state(PART:"elm.swallow.content", st, 30, vl);
3819                if (!strcmp(st, "visible"))
3820                  {
3821                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3822                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3823                  }
3824                set_state(PART:"elm.text", "default", 0.0);
3825             }
3826          }
3827          program { name: "icon_show";
3828             signal: "elm,state,icon,visible";
3829             source: "elm";
3830             script {
3831                new st[31];
3832                new Float:vl;
3833                get_state(PART:"elm.text", st, 30, vl);
3834                if (!strcmp(st, "visible"))
3835                  {
3836                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3837                     set_state(PART:"padding_icon_text", "visible", 0.0);
3838                  }
3839                else
3840                  {
3841                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3842                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3843                  }
3844             }
3845          }
3846          program { name: "icon_hide";
3847             signal: "elm,state,icon,hidden";
3848             source: "elm";
3849             action: STATE_SET "default" 0.0;
3850             target: "elm.swallow.content";
3851             target: "padding_icon_text";
3852          }
3853          program { name: "disable";
3854             signal: "elm,state,disabled";
3855             source: "elm";
3856             action: STATE_SET "disabled" 0.0;
3857             target: "button_image";
3858             target: "disabler";
3859             target: "disclip";
3860             after: "disable_text";
3861          }
3862          program { name: "disable_text";
3863             script {
3864                new st[31];
3865                new Float:vl;
3866                get_state(PART:"elm.text", st, 30, vl);
3867                if (!strcmp(st, "visible"))
3868                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3869                else
3870                  set_state(PART:"elm.text", "disabled", 0.0);
3871                set_int(button_state, BUTTON_STATE_DISABLED);
3872             }
3873          }
3874          program { name: "enable";
3875             signal: "elm,state,enabled";
3876             source: "elm";
3877             action: STATE_SET "default" 0.0;
3878             target: "button_image";
3879             target: "disabler";
3880             target: "disclip";
3881             after: "enable_text";
3882          }
3883          program { name: "enable_text";
3884             script {
3885                new st[31];
3886                new Float:vl;
3887                get_state(PART:"elm.text", st, 30, vl);
3888                if (!strcmp(st, "disabled_visible"))
3889                  set_state(PART:"elm.text", "visible", 0.0);
3890                else
3891                  set_state(PART:"elm.text", "default", 0.0);
3892                set_int(button_state, BUTTON_STATE_ENABLED);
3893             }
3894          }
3895          program { name: "action_focus";
3896             signal: "elm,action,focus_highlight,show";
3897             source: "elm";
3898             action: STATE_SET "focused" 0.0;
3899             target: "focus_image";
3900          }
3901          program { name: "action_unfocus";
3902             signal: "elm,action,focus_highlight,hide";
3903             source: "elm";
3904             action: STATE_SET "default" 0.0;
3905             target: "focus_image";
3906          }
3907       }
3908    }
3909
3910 ///////////////////////////////////////////////////////////////////////////////////////
3911    group { name: "elm/button/base/multiline";
3912       alias: "elm/button/base/text_only/multiline";
3913       inherit: "elm/button/base/default";
3914       styles{
3915          style { name: "btn_multiline_style";
3916             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
3917             tag: "br" "\n";
3918             tag: "ps" "ps";
3919             tag: "tab" "\t";
3920          }
3921       }
3922       parts {
3923          part { name: "button_image";
3924             scale: 1;
3925             description { state: "default" 0.0;
3926                min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3927                image {
3928                   normal: "00_button_01.png";
3929                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3930                   border_scale: 1;
3931                }
3932             }
3933             description { state: "clicked" 0.0;
3934                inherit: "default" 0.0;
3935                image.normal: "00_button_01_press.png";
3936             }
3937             description { state: "disabled" 0.0;
3938                inherit: "default" 0.0;
3939                image.normal: "00_button_01_dim.png";
3940             }
3941             description { state: "focused" 0.0;
3942                inherit: "default" 0.0;
3943                image.normal: "00_button_01_press.png";
3944             }
3945          }
3946          part { name: "padding_left_top";
3947             type: RECT;
3948             scale: 1;
3949             mouse_events: 0;
3950             description { state: "default" 0.0;
3951                align: 0.0 0.0;
3952                rel2.relative: 0.0 0.0;
3953                min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3954                fixed: 1 1;
3955                visible: 0;
3956             }
3957          }
3958          part { name: "padding_right_bottom";
3959             type: RECT;
3960             scale: 1;
3961             mouse_events: 0;
3962             description { state: "default" 0.0;
3963                align: 1.0 1.0;
3964                rel1.relative: 1.0 1.0;
3965                min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3966                fixed: 1 1;
3967                visible: 0;
3968             }
3969          }
3970          part { name: "elm.text";
3971             type: TEXTBLOCK;
3972             mouse_events: 0;
3973             scale: 1;
3974             clip_to: "disclip";
3975             description { state: "default" 0.0;
3976                visible: 0;
3977                rel1 {
3978                   relative: 1.0 1.0;
3979                   to_x: "padding_icon_text";
3980                   to_y: "padding_left_top";
3981                }
3982                rel2 {
3983                   relative: 0.0 0.0;
3984                   to: "padding_right_bottom";
3985                }
3986                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3987                text {
3988                   style: "btn_multiline_style";
3989                }
3990             }
3991             description { state: "visible" 0.0;
3992                inherit: "default" 0.0;
3993                visible: 1;
3994                min: 80 0;
3995             }
3996             description { state: "clicked" 0.0;
3997                inherit: "default" 0.0;
3998                visible: 1;
3999                min: 0 0;
4000                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
4001             }
4002             description { state: "disabled" 0.0;
4003                inherit: "default" 0.0;
4004             }
4005             description { state: "disabled_visible" 0.0;
4006                inherit: "default" 0.0;
4007                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4008                visible: 1;
4009                min: 80 0;
4010             }
4011             description { state: "focused" 0.0;
4012                inherit: "default" 0.0;
4013                visible: 1;
4014                min: 0 0;
4015                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4016             }
4017          }
4018       }
4019    }
4020
4021 ///////////////////////////////////////////////////////////////////////////////////////
4022 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
4023    group { name: "elm/button/base/"style_name; \
4024       data { \
4025          item: "focus_highlight" "on"; \
4026       } \
4027       images { \
4028          image: image_normal COMP; \
4029          image: image_press COMP; \
4030          image: image_dim COMP; \
4031          image: "00_button_01.png" COMP; \
4032          image: "00_button_01_press.png" COMP; \
4033          image: "00_button_01_focus.png" COMP; \
4034       } \
4035       parts { \
4036          part { name: "button_image"; \
4037             scale: 1; \
4038             description { state: "default" 0.0; \
4039                min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4040                max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4041                image { \
4042                   normal: "00_button_01.png"; \
4043                   border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4044                   border_scale: 1; \
4045                } \
4046             } \
4047             description { \
4048                state: "clicked" 0.0; \
4049                inherit: "default" 0.0; \
4050                image.normal: "00_button_01_press.png"; \
4051             } \
4052             description { \
4053                state: "disabled" 0.0; \
4054                inherit: "default" 0.0; \
4055                image.normal: "00_button_01_dim.png"; \
4056             } \
4057             description { \
4058                state: "focused" 0.0; \
4059                inherit: "default" 0.0; \
4060                image.normal: "00_button_01_press.png"; \
4061             } \
4062          } \
4063          part { name: "focus_image"; \
4064             scale: 1; \
4065             mouse_events: 0; \
4066             repeat_events: 1; \
4067             description { state: "default" 0.0; \
4068                min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4069                max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4070                visible: 0; \
4071                rel1.to : "button_image"; \
4072                rel2.to : "button_image"; \
4073                image { \
4074                   normal: "00_button_01_focus.png"; \
4075                   border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4076                   border_scale: 1; \
4077                } \
4078             } \
4079             description { state: "focused" 0.0; \
4080                inherit: "default" 0.0; \
4081                visible: 1; \
4082             } \
4083          } \
4084          part { name: "button_center_part"; \
4085             scale: 1; \
4086             clip_to: "icon_clipper"; \
4087             description { state: "default" 0.0; \
4088                min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4089                max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4090                image.normal: image_normal; \
4091             } \
4092             description { \
4093                state: "clicked" 0.0; \
4094                inherit: "default" 0.0; \
4095                image.normal: image_press; \
4096             } \
4097             description { \
4098                state: "disabled" 0.0; \
4099                inherit: "default" 0.0; \
4100             } \
4101          } \
4102          part { name: "icon_clipper"; \
4103             type: RECT; \
4104             scale: 1; \
4105             description { state: "default" 0.0; \
4106                color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
4107             } \
4108             description { state: "clicked" 0.0; \
4109                color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
4110             } \
4111             description { state: "disabled" 0.0; \
4112                color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
4113             } \
4114          } \
4115          part { name: "over1"; \
4116             type: RECT; \
4117             ignore_flags: ON_HOLD; \
4118             description { state: "default" 0.0; \
4119                color: 0 0 0 0; \
4120             } \
4121          } \
4122          part { name: "over2"; \
4123             type: RECT; \
4124             repeat_events: 1; \
4125             description { state: "default" 0.0; \
4126                color: 0 0 0 0; \
4127             } \
4128          } \
4129          part { name: "disabler"; \
4130             type: RECT; \
4131             description { state: "default" 0.0; \
4132                color: 0 0 0 0; \
4133                visible: 0; \
4134             } \
4135             description { state: "disabled" 0.0; \
4136                inherit: "default" 0.0; \
4137                visible: 1; \
4138             } \
4139          } \
4140       } \
4141       programs { \
4142          program { name: "button_click"; \
4143             signal: "mouse,down,1"; \
4144             source: "over1"; \
4145             action: SIGNAL_EMIT "elm,action,press" ""; \
4146             after: "button_click_anim"; \
4147          } \
4148          program { name: "button_click_anim"; \
4149             action: STATE_SET "clicked" 0.0; \
4150             target: "button_image"; \
4151             target: "button_center_part"; \
4152             target: ""icon_clipper""; \
4153          } \
4154          program { name: "button_double_click"; \
4155             signal: "mouse,down,1,double"; \
4156             source: "over1"; \
4157             after: "button_click_anim"; \
4158          } \
4159          program { name: "button_unclick"; \
4160             signal: "mouse,up,1"; \
4161             source: "over2"; \
4162             action: SIGNAL_EMIT "elm,action,unpress" ""; \
4163             after: "button_unclick_anim"; \
4164          } \
4165          program { name: "button_unclick_anim"; \
4166             action: STATE_SET "default" 0.0; \
4167             target: "button_image"; \
4168             target: "button_center_part"; \
4169             target: ""icon_clipper""; \
4170          } \
4171          program { name: "touch_snd"; \
4172             signal: "mouse,clicked,1"; \
4173             source: "over1"; \
4174             action: PLAY_SAMPLE "touch_sound" 1.0; \
4175             after: button_unclick3; \
4176          } \
4177          program { name: "button_unclick3"; \
4178             action: SIGNAL_EMIT "elm,action,click" ""; \
4179          } \
4180          program { name: "disable"; \
4181             signal: "elm,state,disabled"; \
4182             source: "elm"; \
4183             action: STATE_SET "disabled" 0.0; \
4184             target: "disabler"; \
4185             target: "button_image"; \
4186             target: "button_center_part"; \
4187             target: ""icon_clipper""; \
4188          } \
4189          program { name: "enable"; \
4190             signal: "elm,state,enabled"; \
4191             source: "elm"; \
4192             action: STATE_SET "default" 0.0; \
4193             target: "disabler"; \
4194             target: "button_image"; \
4195             target: "button_center_part"; \
4196             target: ""icon_clipper""; \
4197          } \
4198          program { name: "action_focus"; \
4199             signal: "elm,action,focus_highlight,show"; \
4200             source: "elm"; \
4201             action: STATE_SET "focused" 0.0; \
4202             target: "focus_image"; \
4203          } \
4204          program { name: "action_unfocus"; \
4205             signal: "elm,action,focus_highlight,hide"; \
4206             source: "elm"; \
4207             action: STATE_SET "default" 0.0; \
4208             target: "focus_image"; \
4209          } \
4210       } \
4211    }
4212 ///////////////////////////////////////////////////////////////////////////////////////
4213    BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
4214 ///////////////////////////////////////////////////////////////////////////////////////
4215    BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
4216 ///////////////////////////////////////////////////////////////////////////////////////
4217
4218    group { name: "elm/button/base/multibuttonentry";
4219       alias: "elm/button/base/text_only/multibuttonentry";
4220       data {
4221          item: "focus_highlight" "on";
4222       }
4223       images {
4224          image: "00_contacts_button.png" COMP;
4225          image: "00_contacts_button_press.png" COMP;
4226          image: "00_contacts_button_focus.png" COMP;
4227       }
4228       styles{
4229          style { name: "btn_base_multibuttonentry";
4230             base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4231             tag: "br" "\n";
4232             tag: "ps" "ps";
4233             tag: "tab" "\t";
4234          }
4235          style { name: "btn_base_multibuttonentry_pressed";
4236             base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4237             tag: "br" "\n";
4238             tag: "ps" "ps";
4239             tag: "tab" "\t";
4240          }
4241       }
4242       script {
4243          public button_state = BUTTON_STATE_ENABLED;
4244       }
4245       parts {
4246          part { name: "button_image";
4247             scale: 1;
4248             description { state: "default" 0.0;
4249                rel1 {
4250                   to_x: "padding.left";
4251                   to_y: "elm.text";
4252                }
4253                rel2 {
4254                   to_x: "padding.right";
4255                   to_y: "elm.text";
4256                }
4257                min: BUTTON_CONTACT_BG_MIN_INC;
4258                image {
4259                   normal: "00_contacts_button.png";
4260                   border: BUTTON_CONTACT_BG_BORDER_INC;
4261                   border_scale: 1;
4262                }
4263             }
4264             description { state: "clicked" 0.0;
4265                inherit: "default" 0.0;
4266                image.normal: "00_contacts_button_press.png";
4267             }
4268             description { state: "disabled" 0.0;
4269                inherit: "default" 0.0;
4270             }
4271             description { state: "focused" 0.0;
4272                inherit: "default" 0.0;
4273                image.normal: "00_contacts_button_press.png";
4274             }
4275          }
4276          part { name: "focus_image";
4277             scale: 1;
4278             mouse_events: 0;
4279             repeat_events: 1;
4280             description { state: "default" 0.0;
4281                visible: 0;
4282                rel1.to : "button_image";
4283                rel2.to : "button_image";
4284                image {
4285                   normal: "00_contacts_button_focus.png";
4286                   border: BUTTON_CONTACT_BG_BORDER_INC;
4287                   border_scale: 1;
4288                }
4289             }
4290             description { state: "focused" 0.0;
4291                inherit: "default" 0.0;
4292                visible: 1;
4293             }
4294          }
4295          part { name: "padding.left";
4296             type: RECT;
4297             scale: 1;
4298             description { state: "default" 0.0;
4299                visible: 0;
4300                min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
4301                fixed: 1 0;
4302                color: 0 0 0 0;
4303                rel2 {
4304                   relative: 0.0 1.0;
4305                   to_x: "elm.text";
4306                }
4307                align: 1.0 0.0;
4308             }
4309          }
4310          part { name: "padding.right";
4311             type: RECT;
4312             scale: 1;
4313             description { state: "default" 0.0;
4314                visible: 0;
4315                min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4316                fixed: 1 0;
4317                color: 0 0 0 0;
4318                rel1 {
4319                   relative: 1.0 0.0;
4320                   to_x: "elm.text";
4321                }
4322                align: 0.0 0.0;
4323             }
4324          }
4325          part { name: "elm.text";
4326             type: TEXTBLOCK;
4327             mouse_events: 0;
4328             scale: 1;
4329             description { state: "default" 0.0;
4330                visible: 0;
4331                fixed: 1 1;
4332                text {
4333                   style: "btn_base_multibuttonentry";
4334                   min: 1 1;
4335                }
4336             }
4337             description { state: "visible" 0.0;
4338                inherit: "default" 0.0;
4339                visible: 1;
4340                min: 1 1;
4341             }
4342             description { state: "clicked" 0.0;
4343                inherit: "default" 0.0;
4344                visible: 1;
4345                min: 1 1;
4346                text {
4347                   style: "btn_base_multibuttonentry_pressed";
4348                }
4349             }
4350             description { state: "disabled" 0.0;
4351                inherit: "default" 0.0;
4352             }
4353             description { state: "disabled_visible" 0.0;
4354                inherit: "default" 0.0;
4355                color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4356                visible: 1;
4357                min: 1 1;
4358             }
4359             description { state: "focused" 0.0;
4360                inherit: "default" 0.0;
4361                visible: 1;
4362                min: 1 1;
4363                color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4364             }
4365          }
4366          part { name: "over1";
4367             type: RECT;
4368             mouse_events: 0;
4369             description { state: "default" 0.0;
4370                rel2.relative: 1.0 0.5;
4371                color: 0 0 0 0;
4372             }
4373          }
4374          part { name: "over2";
4375             type: RECT;
4376             repeat_events: 1;
4377             ignore_flags: ON_HOLD;
4378             description { state: "default" 0.0;
4379                rel1.to: "button_image";
4380                rel2.to: "button_image";
4381                color: 0 0 0 0;
4382             }
4383          }
4384          part { name: "over3";
4385             type: RECT;
4386             repeat_events: 1;
4387             description { state: "default" 0.0;
4388                rel1.to: "button_image";
4389                rel2.to: "button_image";
4390                color: 0 0 0 0;
4391             }
4392          }
4393          part { name: "disabler";
4394             type: RECT;
4395             description { state: "default" 0.0;
4396                rel1.to: "button_image";
4397                rel2.to: "button_image";
4398                color: 0 0 0 0;
4399                visible: 0;
4400             }
4401             description { state: "disabled" 0.0;
4402                inherit: "default" 0.0;
4403                visible: 1;
4404             }
4405          }
4406       }
4407       programs {
4408          program { name: "button_click";
4409             signal: "mouse,down,1";
4410             source: "over2";
4411             action: SIGNAL_EMIT "elm,action,press" "";
4412             after: "button_click_anim";
4413          }
4414          program { name: "button_click_anim";
4415             action: STATE_SET "clicked" 0.0;
4416             target: "button_image";
4417             target: "elm.text";
4418          }
4419          program { name: "button_double_click";
4420             signal: "mouse,down,1,double";
4421             source: "over2";
4422             after: "button_click_anim";
4423          }
4424          program { name: "button_unpress";
4425             action: SIGNAL_EMIT "elm,action,unpress" "";
4426          }
4427          program { name: "button_mouseout_clicked";
4428             signal: "mouse,up,1";
4429             source: "over3";
4430             script {
4431                new st[31];
4432                new Float:vl;
4433                get_state(PART:"elm.text", st, 30, vl);
4434                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4435                  {
4436                     emit("elm,action,default,text,set", "");
4437                     set_state(PART:"elm.text", "visible", 0.0);
4438                  }
4439                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4440                  set_state(PART:"button_image", "default", 0.0);
4441             }
4442             after: button_unpress;
4443          }
4444          program { name: "touch_snd";
4445             signal: "mouse,clicked,1";
4446             source: "over2";
4447             action: PLAY_SAMPLE "touch_sound" 1.0;
4448             after: button_unclick3;
4449          }
4450          program { name: "button_unclick3";
4451             action: SIGNAL_EMIT "elm,action,click" "";
4452          }
4453          program { name: "text_show";
4454             signal: "elm,state,text,visible";
4455             source: "elm";
4456             script {
4457                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4458                  set_state(PART:"elm.text", "visible", 0.0);
4459                else
4460                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4461             }
4462          }
4463          program { name: "text_hide";
4464             signal: "elm,state,text,hidden";
4465             source: "elm";
4466             action: STATE_SET "default" 0.0;
4467             target: "elm.text";
4468          }
4469          program { name: "disable";
4470             signal: "elm,state,disabled";
4471             source: "elm";
4472             action: STATE_SET "disabled" 0.0;
4473             target: "button_image";
4474             target: "disabler";
4475             after: "disable_text";
4476          }
4477          program { name: "disable_text";
4478             script {
4479                new st[31];
4480                new Float:vl;
4481                get_state(PART:"elm.text", st, 30, vl);
4482                if (!strcmp(st, "visible"))
4483                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4484                else
4485                  set_state(PART:"elm.text", "disabled", 0.0);
4486                set_int(button_state, BUTTON_STATE_DISABLED);
4487             }
4488          }
4489          program { name: "enable";
4490             signal: "elm,state,enabled";
4491             source: "elm";
4492             action: STATE_SET "default" 0.0;
4493             target: "button_image";
4494             target: "disabler";
4495             after: "enable_text";
4496          }
4497          program { name: "enable_text";
4498             script {
4499                new st[31];
4500                new Float:vl;
4501                get_state(PART:"elm.text", st, 30, vl);
4502                if (!strcmp(st, "disabled_visible"))
4503                  set_state(PART:"elm.text", "visible", 0.0);
4504                else
4505                  set_state(PART:"elm.text", "default", 0.0);
4506                set_int(button_state, BUTTON_STATE_ENABLED);
4507             }
4508          }
4509          program { name: "action_focus";
4510             signal: "elm,action,focus_highlight,show";
4511             source: "elm";
4512             action: STATE_SET "focused" 0.0;
4513             target: "focus_image";
4514          }
4515          program { name: "action_unfocus";
4516             signal: "elm,action,focus_highlight,hide";
4517             source: "elm";
4518             action: STATE_SET "default" 0.0;
4519             target: "focus_image";
4520          }
4521       }
4522    }
4523
4524 ///////////////////////////////////////////////////////////////////////////////////////
4525    group { name: "elm/button/base/naviframe/back_btn/default";
4526       alias: "elm/button/base/naviframe/prev_btn/default";
4527       alias: "elm/button/base/naviframe/end_btn/default";
4528       data {
4529          item: "focus_highlight" "on";
4530       }
4531       images {
4532          image: "00_icon_back.png" COMP;
4533          image: "00_icon_SIP_close.png" COMP;
4534          image: "00_icon_focus.png" COMP;
4535       }
4536       parts {
4537          part { name: "button_image";
4538             type: RECT;
4539             scale: 1;
4540             description { state: "default" 0.0;
4541                min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4542                max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4543                visible: 0;
4544             }
4545             description { state: "landscape" 0.0;
4546                min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4547                max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4548                visible: 0;
4549             }
4550          }
4551          part { name: "focus_image";
4552             scale: 1;
4553             mouse_events: 0;
4554             repeat_events: 1;
4555             description { state: "default" 0.0;
4556                visible: 0;
4557                rel1.to : "button_image";
4558                rel2.to : "button_image";
4559                image {
4560                   normal: "00_icon_focus.png";
4561                   border_scale: 1;
4562                }
4563             }
4564             description { state: "focused" 0.0;
4565                inherit: "default" 0.0;
4566                visible: 1;
4567             }
4568          }
4569          part { name: "back_button";
4570             scale: 1;
4571             mouse_events: 0;
4572             clip_to: "back_button.clipper";
4573             description { state: "default" 0.0;
4574                min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4575                max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4576                fixed: 1 1;
4577                rel1.to: "button_image";
4578                rel2.to: "button_image";
4579                image.normal: "00_icon_back.png";
4580             }
4581             description { state: "compress" 0.0;
4582                inherit: "default" 0.0;
4583                image.normal: "00_icon_SIP_close.png";
4584             }
4585          }
4586          part { name: "back_button.clipper";
4587             type: RECT;
4588             description { state: "default" 0.0;
4589                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4590             }
4591             description { state: "clicked" 0.0;
4592                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4593             }
4594             description { state: "disabled" 0.0;
4595                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4596             }
4597          }
4598          part { name: "over2";
4599             type: RECT;
4600             ignore_flags: ON_HOLD;
4601             description { state: "default" 0.0;
4602                color: 0 0 0 0;
4603             }
4604          }
4605          part { name: "over3";
4606             type: RECT;
4607             repeat_events: 1;
4608             description { state: "default" 0.0;
4609                color: 0 0 0 0;
4610             }
4611          }
4612          part { name: "disabler";
4613             type: RECT;
4614             description { state: "default" 0.0;
4615                color: 0 0 0 0;
4616                visible: 0;
4617             }
4618             description { state: "disabled" 0.0;
4619                inherit: "default" 0.0;
4620                visible: 1;
4621             }
4622          }
4623       }
4624       programs {
4625          program { name: "button_click";
4626             signal: "mouse,down,1";
4627             source: "over2";
4628             action: SIGNAL_EMIT "elm,action,press" "";
4629             after: "button_click_anim";
4630          }
4631          program { name: "button_click_anim";
4632             script {
4633                set_state(PART:"back_button.clipper", "clicked", 0.0);
4634             }
4635          }
4636          program { name: "button_double_click";
4637             signal: "mouse,down,1,double";
4638             source: "over2";
4639             after: "button_click_anim";
4640          }
4641          program { name: "button_unclick";
4642             signal: "mouse,up,1";
4643             source: "over3";
4644             action: SIGNAL_EMIT "elm,action,unpress" "";
4645             after: "button_unclick_anim";
4646          }
4647          program { name: "button_unclick_anim";
4648             script {
4649                set_state(PART:"back_button.clipper", "default", 0.0);
4650             }
4651          }
4652          program { name: "touch_snd";
4653             signal: "mouse,clicked,1";
4654             source: "over2";
4655             action: PLAY_SAMPLE "touch_sound" 1.0;
4656             after: button_unclick3;
4657          }
4658          program { name: "button_unclick3";
4659             action: SIGNAL_EMIT "elm,action,click" "";
4660          }
4661          program { name: "disable";
4662             signal: "elm,state,disabled";
4663             source: "elm";
4664             script {
4665                set_state(PART:"back_button.clipper", "disabled", 0.0);
4666             }
4667          }
4668          program { name: "enable";
4669             signal: "elm,state,enabled";
4670             source: "elm";
4671             script {
4672                set_state(PART:"back_button.clipper", "default", 0.0);
4673             }
4674          }
4675          program { name: "change_to_landscape";
4676             signal: "elm,state,landscape";
4677             source: "elm";
4678             action: STATE_SET "landscape" 0.0;
4679             target: "button_image";
4680          }
4681          program { name: "change_to_portrait";
4682             signal: "elm,state,portrait";
4683             source: "elm";
4684             action: STATE_SET "default" 0.0;
4685             target: "button_image";
4686          }
4687          program { name: "landscape_mode";
4688             source: "elm";
4689             signal: "elm,state,orient,90";
4690             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4691          }
4692          program { name: "landscape_mode2";
4693             source: "elm";
4694             signal: "elm,state,orient,270";
4695             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4696          }
4697          program { name: "portrait_mode";
4698             source: "elm";
4699             signal: "elm,state,orient,0";
4700             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4701          }
4702          program { name: "portrait_mode2";
4703             source: "elm";
4704             signal: "elm,state,orient,180";
4705             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4706          }
4707          program { name: "display_compress_mode";
4708             signal: "elm,state,display,compress";
4709             source: "elm";
4710             action: STATE_SET "compress" 0.0;
4711             target: "back_button";
4712          }
4713          program { name: "display_default_mode";
4714             signal: "elm,state,display,default";
4715             source: "elm";
4716             action: STATE_SET "default" 0.0;
4717             target: "back_button";
4718          }
4719          program { name: "action_focus";
4720             signal: "elm,action,focus_highlight,show";
4721             source: "elm";
4722             action: STATE_SET "focused" 0.0;
4723             target: "focus_image";
4724          }
4725          program { name: "action_unfocus";
4726             signal: "elm,action,focus_highlight,hide";
4727             source: "elm";
4728             action: STATE_SET "default" 0.0;
4729             target: "focus_image";
4730          }
4731       }
4732    }
4733
4734 //////////////////////////////////////////////////////////////
4735 /*   group { name: "elm/button/base/naviframe/toolbar/default";
4736       alias: "elm/button/base/naviframe/title/default";
4737       data {
4738          item: "focus_highlight" "on";
4739       }
4740       images {
4741          image: "00_toolbar_button.png" COMP;
4742          image: "00_toolbar_button_press.png" COMP;
4743          image: "00_toolbar_button_dim.png" COMP;
4744          image: "00_toolbar_button_focus.png" COMP;
4745       }
4746       styles{
4747          style { name: "btn_naviframe_toolbar";
4748             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4749             tag: "br" "\n";
4750             tag: "ps" "ps";
4751             tag: "tab" "\t";
4752          }
4753          style { name: "btn_naviframe_toolbar_pressed";
4754             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_PRESSED_COLOR_INC" style=shadow,top shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4755             tag: "br" "\n";
4756             tag: "ps" "ps";
4757             tag: "tab" "\t";
4758          }
4759          style { name: "btn_naviframe_toolbar_disabled";
4760             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_DISABLED_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4761             tag: "br" "\n";
4762             tag: "ps" "ps";
4763             tag: "tab" "\t";
4764          }
4765       }
4766       script {
4767          public button_state = BUTTON_STATE_ENABLED;
4768          public landscape_state = BUTTON_LANDSCAPE_DISABLED;
4769       }
4770       parts {
4771          part { name: "button_bg";
4772             type: SPACER;
4773             scale: 1;
4774             description { state: "default" 0.0;
4775                min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
4776                max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
4777                fixed: 1 1;
4778                rel1.to: "padding_text_left_top";
4779                rel2.to: "padding_text_right_bottom";
4780             }
4781             description { state: "landscape" 0.0;
4782                inherit: "default" 0.0;
4783                min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4784                max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4785             }
4786          }
4787          part { name: "button_image";
4788             scale: 1;
4789             description { state: "default" 0.0;
4790                rel1.to: "button_bg";
4791                rel2.to: "button_bg";
4792                image {
4793                   normal: "00_toolbar_button.png";
4794                   border: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_PRESSED_BORDER_INC;
4795                   border_scale: 1;
4796                }
4797             }
4798             description { state: "clicked" 0.0;
4799                inherit: "default" 0.0;
4800                image.normal: "00_toolbar_button_press.png";
4801             }
4802             description { state: "disabled" 0.0;
4803                inherit: "default" 0.0;
4804                image.normal: "00_toolbar_button_dim.png";
4805             }
4806             description { state: "focused" 0.0;
4807                inherit: "default" 0.0;
4808                image.normal: "00_toolbar_button_press.png";
4809             }
4810          }
4811          part { name: "focus_image";
4812             scale: 1;
4813             mouse_events: 0;
4814             repeat_events: 1;
4815             description { state: "default" 0.0;
4816                visible: 0;
4817                rel1.to : "button_image";
4818                rel2.to : "button_image";
4819                image {
4820                   normal: "00_toolbar_button_focus.png";
4821                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4822                   border_scale: 1;
4823                }
4824             }
4825             description { state: "focused" 0.0;
4826                inherit: "default" 0.0;
4827                visible: 1;
4828             }
4829          }
4830          part { name: "padding_left_top";
4831             type: RECT;
4832             scale: 1;
4833             mouse_events: 0;
4834             description { state: "default" 0.0;
4835                visible: 0;
4836                align: 0.0 0.0;
4837                rel2.relative: 0.0 0.0;
4838                min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4839                fixed: 1 1;
4840             }
4841          }
4842          part { name: "padding_right_bottom";
4843             type: RECT;
4844             scale: 1;
4845             mouse_events: 0;
4846             description { state: "default" 0.0;
4847                align: 1.0 1.0;
4848                rel1.relative: 1.0 1.0;
4849                min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4850                fixed: 1 1;
4851                visible: 0;
4852             }
4853          }
4854          part { name: "padding_text_left_top";
4855             type: RECT;
4856             scale: 1;
4857             mouse_events: 0;
4858             description { state: "default" 0.0;
4859                visible: 0;
4860                min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4861                fixed: 1 1;
4862                rel1.to: "elm.text";
4863                rel2 {
4864                   relative: 0.0 0.0;
4865                   to: "elm.text";
4866                }
4867                align: 1.0 1.0;
4868             }
4869          }
4870          part { name: "padding_text_right_bottom";
4871             type: RECT;
4872             scale: 1;
4873             mouse_events: 0;
4874             description { state: "default" 0.0;
4875                min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_PADDING_MIN_INC;
4876                fixed: 1 1;
4877                visible: 0;
4878                rel1 {
4879                   relative: 1.0 1.0;
4880                   to: "elm.text";
4881                }
4882                rel2.to: "elm.text";
4883                align: 0.0 0.0;
4884             }
4885          }
4886          part { name: "elm.text";
4887             type: TEXTBLOCK;
4888             clip_to: "disclip";
4889             mouse_events: 0;
4890             scale: 1;
4891             description { state: "default" 0.0;
4892                visible: 0;
4893                fixed: 1 1;
4894                min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
4895                rel1 {
4896                   relative: 1.0 1.0;
4897                   to: "padding_left_top";
4898                }
4899                rel2 {
4900                   relative: 0.0 0.0;
4901                   to: "padding_right_bottom";
4902                }
4903                text {
4904                   min: 0 1;
4905                   max: 1 1;
4906                   align: 0.5 0.54;
4907                   style: "btn_naviframe_toolbar";
4908                }
4909             }
4910             description { state: "landscape" 0.0;
4911                inherit: "default" 0.0;
4912                min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
4913             }
4914             description { state: "visible" 0.0;
4915                inherit: "default" 0.0;
4916                visible: 1;
4917             }
4918             description { state: "landscape_visible" 0.0;
4919                inherit: "landscape" 0.0;
4920                visible: 1;
4921             }
4922             description { state: "clicked" 0.0;
4923                inherit: "default" 0.0;
4924                visible: 1;
4925                text {
4926                   style: "btn_naviframe_toolbar_pressed";
4927                }
4928             }
4929             description { state: "landscape_clicked" 0.0;
4930                inherit: "landscape" 0.0;
4931                visible: 1;
4932                text {
4933                   style: "btn_naviframe_toolbar_pressed";
4934                }
4935             }
4936             description { state: "disabled" 0.0;
4937                inherit: "default" 0.0;
4938             }
4939             description { state: "landscape_disabled" 0.0;
4940                inherit: "landscape" 0.0;
4941             }
4942             description { state: "disabled_visible" 0.0;
4943                inherit: "default" 0.0;
4944                visible: 1;
4945                text {
4946                   style: "btn_naviframe_toolbar_disabled";
4947                }
4948             }
4949             description { state: "landscape_disabled_visible" 0.0;
4950                inherit: "landscape" 0.0;
4951                visible: 1;
4952                text {
4953                   style: "btn_naviframe_toolbar_disabled";
4954                }
4955             }
4956             description { state: "focused" 0.0;
4957                inherit: "default" 0.0;
4958                visible: 1;
4959                text {
4960                   style: "btn_naviframe_toolbar_pressed";
4961                }
4962             }
4963             description { state: "landscape_focused" 0.0;
4964                inherit: "landscape" 0.0;
4965                visible: 1;
4966                text {
4967                   style: "btn_naviframe_toolbar_pressed";
4968                }
4969             }
4970          }
4971          part { name: "disclip";
4972             type: RECT;
4973             description { state: "default" 0.0;
4974                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4975             }
4976             description { state: "disabled" 0.0;
4977                inherit: "default" 0.0;
4978                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4979             }
4980          }
4981          part { name: "over2";
4982             type: RECT;
4983             repeat_events: 1;
4984             ignore_flags: ON_HOLD;
4985             description { state: "default" 0.0;
4986                rel1.to: "button_image";
4987                rel2.to: "button_image";
4988                color: 0 0 0 0;
4989             }
4990          }
4991          part { name: "over3";
4992             type: RECT;
4993             repeat_events: 1;
4994             description { state: "default" 0.0;
4995                rel1.to: "button_image";
4996                rel2.to: "button_image";
4997                color: 0 0 0 0;
4998             }
4999          }
5000          part { name: "disabler";
5001             type: RECT;
5002             description { state: "default" 0.0;
5003                rel1.to: "button_image";
5004                rel2.to: "button_image";
5005                color: 0 0 0 0;
5006                visible: 0;
5007             }
5008             description { state: "disabled" 0.0;
5009                inherit: "default" 0.0;
5010                visible: 1;
5011             }
5012          }
5013       }
5014       programs {
5015          program { name: "button_click";
5016             signal: "mouse,down,1";
5017             source: "over2";
5018             action: SIGNAL_EMIT "elm,action,press" "";
5019             after: "button_click_anim";
5020          }
5021          program { name: "button_click_anim";
5022             script {
5023                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5024                   set_state(PART:"elm.text", "landscape_clicked", 0.0);
5025                else
5026                   set_state(PART:"elm.text", "clicked", 0.0);
5027                set_state(PART:"button_image", "clicked", 0.0);
5028             }
5029          }
5030          program { name: "button_double_click";
5031             signal: "mouse,down,1,double";
5032             source: "over2";
5033             after: "button_click_anim";
5034          }
5035          program { name: "button_unpress";
5036             action: SIGNAL_EMIT "elm,action,unpress" "";
5037          }
5038          program { name: "button_mouseout_clicked";
5039             signal: "mouse,up,1";
5040             source: "over3";
5041             script {
5042                new st[31];
5043                new Float:vl;
5044                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5045                  {
5046                     get_state(PART:"elm.text", st, 30, vl);
5047                     if (!strcmp(st, "landscape_clicked") || !strcmp(st, "landscape_focused"))
5048                       {
5049                          emit("elm,action,default,text,set", "");
5050                          set_state(PART:"elm.text", "landscape_visible", 0.0);
5051                       }
5052                  }
5053                else
5054                  {
5055                     get_state(PART:"elm.text", st, 30, vl);
5056                     if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5057                       {
5058                          emit("elm,action,default,text,set", "");
5059                          set_state(PART:"elm.text", "visible", 0.0);
5060                       }
5061                  }
5062                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5063                  set_state(PART:"button_image", "default", 0.0);
5064             }
5065             after: button_unpress;
5066          }
5067          program { name: "touch_snd";
5068             signal: "mouse,clicked,1";
5069             source: "over2";
5070             action: PLAY_SAMPLE "touch_sound" 1.0;
5071             after: button_unclick3;
5072          }
5073          program { name: "button_unclick3";
5074             action: SIGNAL_EMIT "elm,action,click" "";
5075          }
5076          program { name: "text_show";
5077             signal: "elm,state,text,visible";
5078             source: "elm";
5079             script {
5080                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5081                  {
5082                     if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5083                       set_state(PART:"elm.text", "landscape_visible", 0.0);
5084                     else
5085                       set_state(PART:"elm.text", "visible", 0.0);
5086                  }
5087                else
5088                  {
5089                     if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5090                       set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5091                     else
5092                       set_state(PART:"elm.text", "disabled_visible", 0.0);
5093                  }
5094             }
5095          }
5096          program { name: "text_hide";
5097             signal: "elm,state,text,hidden";
5098             source: "elm";
5099             script {
5100                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5101                  set_state(PART:"elm.text", "landscape", 0.0);
5102                else
5103                  set_state(PART:"elm.text", "default", 0.0);
5104             }
5105          }
5106          program { name: "disable";
5107             signal: "elm,state,disabled";
5108             source: "elm";
5109             action: STATE_SET "disabled" 0.0;
5110             target: "button_image";
5111             target: "disclip";
5112             target: "disabler";
5113             after: "disable_text";
5114          }
5115          program { name: "disable_text";
5116             script {
5117                new st[31];
5118                new Float:vl;
5119                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5120                  {
5121                     get_state(PART:"elm.text", st, 30, vl);
5122                     if (!strcmp(st, "landscape_visible"))
5123                       set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5124                     else
5125                       set_state(PART:"elm.text", "landscape_disabled", 0.0);
5126                  }
5127                else
5128                  {
5129                     get_state(PART:"elm.text", st, 30, vl);
5130                     if (!strcmp(st, "visible"))
5131                       set_state(PART:"elm.text", "disabled_visible", 0.0);
5132                     else
5133                       set_state(PART:"elm.text", "disabled", 0.0);
5134                  }
5135                set_int(button_state, BUTTON_STATE_DISABLED);
5136             }
5137          }
5138          program { name: "enable";
5139             signal: "elm,state,enabled";
5140             source: "elm";
5141             action: STATE_SET "default" 0.0;
5142             target: "button_image";
5143             target: "disclip";
5144             target: "disabler";
5145             after: "enable_text";
5146          }
5147          program { name: "enable_text";
5148             script {
5149                new st[31];
5150                new Float:vl;
5151                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
5152                  {
5153                     get_state(PART:"elm.text", st, 30, vl);
5154                     if (!strcmp(st, "landscape_disabled"))
5155                       set_state(PART:"elm.text", "landscape", 0.0);
5156                     else
5157                       set_state(PART:"elm.text", "landscape_visible", 0.0);
5158                  }
5159                else
5160                  {
5161                     get_state(PART:"elm.text", st, 30, vl);
5162                     if (!strcmp(st, "disabled"))
5163                       set_state(PART:"elm.text", "default", 0.0);
5164                     else
5165                       set_state(PART:"elm.text", "visible", 0.0);
5166                  }
5167                set_int(button_state, BUTTON_STATE_ENABLED);
5168             }
5169          }
5170          program { name: "change_to_landscape";
5171             signal: "elm,state,landscape";
5172             source: "elm";
5173             script {
5174                new st[31];
5175                new Float:vl;
5176                set_int(landscape_state, BUTTON_LANDSCAPE_ENABLED);
5177                get_state(PART:"elm.text", st, 30, vl);
5178                if (!strcmp(st, "default"))
5179                  set_state(PART:"elm.text", "landscape", 0.0);
5180                else if (!strcmp(st, "clicked"))
5181                  set_state(PART:"elm.text", "landscape_clicked", 0.0);
5182                else if (!strcmp(st, "disabled"))
5183                  set_state(PART:"elm.text", "landscape_disabled", 0.0);
5184                else if (!strcmp(st, "disabled_visible"))
5185                  set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
5186                else
5187                  set_state(PART:"elm.text", "landscape_visible", 0.0);
5188                set_state(PART:"button_bg", "landscape", 0.0);
5189             }
5190          }
5191          program { name: "change_to_portrait";
5192             signal: "elm,state,portrait";
5193             source: "elm";
5194             script {
5195                new st[31];
5196                new Float:vl;
5197                set_int(landscape_state, BUTTON_LANDSCAPE_DISABLED);
5198                get_state(PART:"elm.text", st, 30, vl);
5199                if (!strcmp(st, "landscape"))
5200                  set_state(PART:"elm.text", "default", 0.0);
5201                else if (!strcmp(st, "landscape_clicked"))
5202                  set_state(PART:"elm.text", "clicked", 0.0);
5203                else if (!strcmp(st, "landscape_disabled"))
5204                  set_state(PART:"elm.text", "disabled", 0.0);
5205                else if (!strcmp(st, "landscape_disabled_visible"))
5206                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5207                else
5208                  set_state(PART:"elm.text", "visible", 0.0);
5209                set_state(PART:"button_bg", "default", 0.0);
5210             }
5211          }
5212          program { name: "landscape_mode";
5213             source: "elm";
5214             signal: "elm,state,orient,90";
5215             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5216          }
5217          program { name: "landscape_mode2";
5218             source: "elm";
5219             signal: "elm,state,orient,270";
5220             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5221          }
5222          program { name: "portrait_mode";
5223             source: "elm";
5224             signal: "elm,state,orient,0";
5225             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5226          }
5227          program { name: "portrait_mode2";
5228             source: "elm";
5229             signal: "elm,state,orient,180";
5230             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5231          }
5232          program { name: "action_focus";
5233             signal: "elm,action,focus_highlight,show";
5234             source: "elm";
5235             action: STATE_SET "focused" 0.0;
5236             target: "focus_image";
5237          }
5238          program { name: "action_unfocus";
5239             signal: "elm,action,focus_highlight,hide";
5240             source: "elm";
5241             action: STATE_SET "default" 0.0;
5242             target: "focus_image";
5243          }
5244       }
5245    }
5246
5247 //////////////////////////////////////////////////////////////
5248    group { name: "elm/button/base/naviframe/toolbar/left";
5249       inherit: "elm/button/base/naviframe/toolbar/default";
5250       parts {
5251          part { name: "button_bg";
5252             type: SPACER;
5253             scale: 1;
5254             description { state: "default" 0.0;
5255                min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5256                max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
5257                fixed: 1 1;
5258                rel1.to: "padding_text_left_top";
5259                rel2.to: "padding_text_right_bottom";
5260                align: 1.0 0.5;
5261             }
5262             description { state: "landscape" 0.0;
5263                inherit: "default" 0.0;
5264                min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5265                max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5266             }
5267          }
5268          part { name: "elm.text";
5269             type: TEXTBLOCK;
5270             clip_to: "disclip";
5271             mouse_events: 0;
5272             scale: 1;
5273             description { state: "default" 0.0;
5274                visible: 0;
5275                fixed: 1 1;
5276                min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
5277                rel1 {
5278                   relative: 1.0 1.0;
5279                   to: "padding_left_top";
5280                }
5281                rel2 {
5282                   relative: 0.0 0.0;
5283                   to: "padding_right_bottom";
5284                }
5285                align: 1.0 0.5;
5286                text {
5287                   min: 0 1;
5288                   max: 1 1;
5289                   align: 0.5 0.54;
5290                   style: "btn_naviframe_toolbar";
5291                }
5292             }
5293             description { state: "landscape" 0.0;
5294                inherit: "default" 0.0;
5295                min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
5296             }
5297             description { state: "visible" 0.0;
5298                inherit: "default" 0.0;
5299                visible: 1;
5300             }
5301             description { state: "landscape_visible" 0.0;
5302                inherit: "landscape" 0.0;
5303                visible: 1;
5304             }
5305             description { state: "clicked" 0.0;
5306                inherit: "default" 0.0;
5307                visible: 1;
5308                text {
5309                   style: "btn_naviframe_toolbar_pressed";
5310                }
5311             }
5312             description { state: "landscape_clicked" 0.0;
5313                inherit: "landscape" 0.0;
5314                visible: 1;
5315                text {
5316                   style: "btn_naviframe_toolbar_pressed";
5317                }
5318             }
5319             description { state: "disabled" 0.0;
5320                inherit: "default" 0.0;
5321             }
5322             description { state: "landscape_disabled" 0.0;
5323                inherit: "landscape" 0.0;
5324             }
5325             description { state: "disabled_visible" 0.0;
5326                inherit: "default" 0.0;
5327                visible: 1;
5328                text {
5329                   style: "btn_naviframe_toolbar_disabled";
5330                }
5331             }
5332             description { state: "landscape_disabled_visible" 0.0;
5333                inherit: "landscape" 0.0;
5334                visible: 1;
5335                text {
5336                   style: "btn_naviframe_toolbar_disabled";
5337                }
5338             }
5339             description { state: "focused" 0.0;
5340                inherit: "default" 0.0;
5341                visible: 1;
5342                text {
5343                   style: "btn_naviframe_toolbar_pressed";
5344                }
5345             }
5346             description { state: "landscape_focused" 0.0;
5347                inherit: "landscape" 0.0;
5348                visible: 1;
5349                text {
5350                   style: "btn_naviframe_toolbar_pressed";
5351                }
5352             }
5353          }
5354       }
5355    }
5356
5357 //////////////////////////////////////////////////////////////
5358    group { name: "elm/button/base/naviframe/toolbar/right";
5359       inherit: "elm/button/base/naviframe/toolbar/default";
5360       parts {
5361          part { name: "button_bg";
5362             type: SPACER;
5363             scale: 1;
5364             description { state: "default" 0.0;
5365                min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5366                max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_BG_NORMAL_MAX_INC;
5367                fixed: 1 1;
5368                rel1.to: "padding_text_left_top";
5369                rel2.to: "padding_text_right_bottom";
5370                align: 0.0 0.5;
5371             }
5372             description { state: "landscape" 0.0;
5373                inherit: "default" 0.0;
5374                min: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5375                max: BUTTON_NAVIFRAME_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5376             }
5377          }
5378          part { name: "elm.text";
5379             type: TEXTBLOCK;
5380             clip_to: "disclip";
5381             mouse_events: 0;
5382             scale: 1;
5383             description { state: "default" 0.0;
5384                visible: 0;
5385                fixed: 1 1;
5386                min: BUTTON_NAVIFRAME_TOOLBAR_TEXTBLOCK_MIN_INC;
5387                rel1 {
5388                   relative: 1.0 1.0;
5389                   to: "padding_left_top";
5390                }
5391                rel2 {
5392                   relative: 0.0 0.0;
5393                   to: "padding_right_bottom";
5394                }
5395                align: 0.0 0.5;
5396                text {
5397                   min: 0 1;
5398                   max: 1 1;
5399                   align: 0.5 0.54;
5400                   style: "btn_naviframe_toolbar";
5401                }
5402             }
5403             description { state: "landscape" 0.0;
5404                inherit: "default" 0.0;
5405                min: BUTTON_NAVIFRAME_TOOLBAR_LANDSCAPE_TEXTBLOCK_MIN_INC;
5406             }
5407             description { state: "visible" 0.0;
5408                inherit: "default" 0.0;
5409                visible: 1;
5410             }
5411             description { state: "landscape_visible" 0.0;
5412                inherit: "landscape" 0.0;
5413                visible: 1;
5414             }
5415             description { state: "clicked" 0.0;
5416                inherit: "default" 0.0;
5417                visible: 1;
5418                text {
5419                   style: "btn_naviframe_toolbar_pressed";
5420                }
5421             }
5422             description { state: "landscape_clicked" 0.0;
5423                inherit: "landscape" 0.0;
5424                visible: 1;
5425                text {
5426                   style: "btn_naviframe_toolbar_pressed";
5427                }
5428             }
5429             description { state: "disabled" 0.0;
5430                inherit: "default" 0.0;
5431             }
5432             description { state: "landscape_disabled" 0.0;
5433                inherit: "landscape" 0.0;
5434             }
5435             description { state: "disabled_visible" 0.0;
5436                inherit: "default" 0.0;
5437                visible: 1;
5438                text {
5439                   style: "btn_naviframe_toolbar_disabled";
5440                }
5441             }
5442             description { state: "landscape_disabled_visible" 0.0;
5443                inherit: "landscape" 0.0;
5444                visible: 1;
5445                text {
5446                   style: "btn_naviframe_toolbar_disabled";
5447                }
5448             }
5449             description { state: "focused" 0.0;
5450                inherit: "default" 0.0;
5451                visible: 1;
5452                text {
5453                   style: "btn_naviframe_toolbar_pressed";
5454                }
5455             }
5456             description { state: "landscape_focused" 0.0;
5457                inherit: "landscape" 0.0;
5458                visible: 1;
5459                text {
5460                   style: "btn_naviframe_toolbar_pressed";
5461                }
5462             }
5463          }
5464       }
5465    }
5466 */
5467 ////////////////////////////////////////////////////////////////////
5468    group { name: "elm/button/base/naviframe/title_icon";
5469       data {
5470          item: "focus_highlight" "on";
5471       }
5472       images {
5473          image: "00_icon_focus.png" COMP;
5474       }
5475       parts {
5476          part { name: "button_image";
5477             type: RECT;
5478             scale: 1;
5479             description { state: "default" 0.0;
5480                visible: 0;
5481                min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5482                max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5483             }
5484             description { state: "landscape" 0.0;
5485                visible: 0;
5486                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5487                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5488             }
5489          }
5490          part { name: "focus_image";
5491             scale: 1;
5492             mouse_events: 0;
5493             repeat_events: 1;
5494             description { state: "default" 0.0;
5495                visible: 0;
5496                rel1.to : "button_image";
5497                rel2.to : "button_image";
5498                image {
5499                   normal: "00_icon_focus.png";
5500                   border_scale: 1;
5501                }
5502             }
5503             description { state: "focused" 0.0;
5504                inherit: "default" 0.0;
5505                visible: 1;
5506             }
5507          }
5508          part { name: "elm.swallow.content";
5509             type: SWALLOW;
5510             scale: 1;
5511             clip_to: "elm.icon.clipper";
5512             description { state: "default" 0.0;
5513                visible: 0;
5514                max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5515                align: 0.5 0.5;
5516                rel1 { to: "button_image"; }
5517                rel2 { to: "button_image"; }
5518             }
5519             description { state: "visible" 0.0;
5520                inherit: "default" 0.0;
5521                visible: 1;
5522             }
5523          }
5524          part { name: "elm.icon.clipper";
5525             type: RECT;
5526             description { state: "default" 0.0;
5527                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5528             }
5529             description { state: "clicked" 0.0;
5530                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5531             }
5532             description { state: "disabled" 0.0;
5533                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5534             }
5535          }
5536          part { name: "over2";
5537             type: RECT;
5538             ignore_flags: ON_HOLD;
5539             description { state: "default" 0.0;
5540                color: 0 0 0 0;
5541             }
5542          }
5543          part { name: "over3";
5544             type: RECT;
5545             repeat_events: 1;
5546             description { state: "default" 0.0;
5547                color: 0 0 0 0;
5548             }
5549          }
5550          part { name: "disabler";
5551             type: RECT;
5552             description { state: "default" 0.0;
5553                color: 0 0 0 0;
5554                visible: 0;
5555             }
5556             description { state: "disabled" 0.0;
5557                inherit: "default" 0.0;
5558                visible: 1;
5559             }
5560          }
5561       }
5562       programs {
5563          program { name: "button_click";
5564             signal: "mouse,down,1";
5565             source: "over2";
5566             action: SIGNAL_EMIT "elm,action,press" "";
5567             after: "button_click_anim";
5568          }
5569          program { name: "button_click_anim";
5570             script {
5571                set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5572             }
5573          }
5574          program { name: "button_double_click";
5575             signal: "mouse,down,1,double";
5576             source: "over2";
5577             after: "button_click_anim";
5578          }
5579          program { name: "button_unpress";
5580             action: SIGNAL_EMIT "elm,action,unpress" "";
5581          }
5582          program { name: "button_mouseout_clicked";
5583             signal: "mouse,up,1";
5584             source: "over3";
5585             action: STATE_SET "default" 0.0;
5586             target: "elm.icon.clipper";
5587             after: button_unpress;
5588          }
5589          program { name: "touch_snd";
5590             signal: "mouse,clicked,1";
5591             source: "over2";
5592             action: PLAY_SAMPLE "touch_sound" 1.0;
5593             after: button_unclick3;
5594          }
5595          program { name: "button_unclick3";
5596             action: SIGNAL_EMIT "elm,action,click" "";
5597          }
5598          program { name: "icon_show";
5599             signal: "elm,state,icon,visible";
5600             source: "elm";
5601             action: STATE_SET "visible" 0.0;
5602             target: "elm.swallow.content";
5603          }
5604          program { name: "icon_hide";
5605             signal: "elm,state,icon,hidden";
5606             source: "elm";
5607             action: STATE_SET "default" 0.0;
5608             target: "elm.swallow.content";
5609          }
5610          program { name: "disable";
5611             signal: "elm,state,disabled";
5612             source: "elm";
5613             script {
5614                set_state(PART:"disabler", "disabled", 0.0);
5615                set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5616             }
5617          }
5618          program { name: "enable";
5619             signal: "elm,state,enabled";
5620             source: "elm";
5621             script {
5622                set_state(PART:"disabler", "default", 0.0);
5623                set_state(PART:"elm.icon.clipper", "default", 0.0);
5624             }
5625          }
5626          program { name: "change_to_landscape";
5627             signal: "elm,state,landscape";
5628             source: "elm";
5629             action: STATE_SET "landscape" 0.0;
5630             target: "button_image";
5631          }
5632          program { name: "change_to_portrait";
5633             signal: "elm,state,portrait";
5634             source: "elm";
5635             action: STATE_SET "default" 0.0;
5636             target: "button_image";
5637          }
5638          program { name: "landscape_mode";
5639             source: "elm";
5640             signal: "elm,state,orient,90";
5641             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5642          }
5643          program { name: "landscape_mode2";
5644             source: "elm";
5645             signal: "elm,state,orient,270";
5646             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5647          }
5648          program { name: "portrait_mode";
5649             source: "elm";
5650             signal: "elm,state,orient,0";
5651             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5652          }
5653          program { name: "portrait_mode2";
5654             source: "elm";
5655             signal: "elm,state,orient,180";
5656             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5657          }
5658          program { name: "action_focus";
5659             signal: "elm,action,focus_highlight,show";
5660             source: "elm";
5661             action: STATE_SET "focused" 0.0;
5662             target: "focus_image";
5663          }
5664          program { name: "action_unfocus";
5665             signal: "elm,action,focus_highlight,hide";
5666             source: "elm";
5667             action: STATE_SET "default" 0.0;
5668             target: "focus_image";
5669          }
5670       }
5671    }
5672
5673 ////////////////////////////////////////////////////////////////////
5674    group { name: "elm/button/base/naviframe/title_text";
5675       images {
5676          image: "00_title_press.png" COMP;
5677       }
5678       styles{
5679          style { name: "btn_naviframe_title_text";
5680             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5681             tag: "br" "\n";
5682             tag: "ps" "ps";
5683             tag: "tab" "\t";
5684          }
5685       }
5686       parts {
5687          part { name: "button_bg";
5688             type: RECT;
5689             scale: 1;
5690             description { state: "default" 0.0;
5691                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_INC;
5692                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MAX_INC;
5693             }
5694             description { state: "landscape" 0.0;
5695                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_INC;
5696                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MAX_INC;
5697             }
5698          }
5699          part { name: "button_image";
5700             type: IMAGE;
5701             scale: 1;
5702             description { state: "default" 0.0;
5703                visible: 0;
5704                rel1 { to: "button_bg"; }
5705                rel2 { to: "button_bg"; }
5706             }
5707             description { state: "clicked" 0.0;
5708                inherit: "default" 0.0;
5709                visible: 1;
5710                image {
5711                   normal: "00_title_press.png";
5712                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
5713                   border_scale: 1;
5714                }
5715             }
5716          }
5717          part { name: "left_padding";
5718             type: RECT;
5719             scale: 1;
5720             description { state: "default" 0.0;
5721                visible: 0;
5722                min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
5723                max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
5724                align: 0.0 0.5;
5725                fixed: 1 0;
5726                rel1 { relative: 0.0 0.0; to: "button_bg"; }
5727                rel2 { relative: 0.0 1.0; to: "button_bg"; }
5728             }
5729          }
5730          part { name: "right_padding";
5731             type: RECT;
5732             scale: 1;
5733             description { state: "default" 0.0;
5734                visible: 0;
5735                min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
5736                max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
5737                align: 1.0 0.5;
5738                fixed: 1 0;
5739                rel1 { relative: 1.0 0.0; to: "button_bg"; }
5740                rel2 { relative: 1.0 1.0; to: "button_bg"; }
5741             }
5742          }
5743          part { name: "elm.text";
5744             type: TEXTBLOCK;
5745             mouse_events: 0;
5746             scale: 1;
5747             clip_to: "button_bg";
5748             description { state: "default" 0.0;
5749                min: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MIN_INC;
5750                max: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MAX_INC;
5751                rel1 { relative: 1.0 0.0; to: "left_padding"; }
5752                rel2 { relative: 0.0 1.0; to: "right_padding"; }
5753                text {
5754                   style: "btn_naviframe_title_text";
5755                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
5756                   min: 1 0;
5757                }
5758             }
5759             description { state: "landscape" 0.0;
5760                inherit: "default" 0.0;
5761                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MIN_INC;
5762                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MAX_INC;
5763             }
5764          }
5765          part { name: "over2";
5766             type: RECT;
5767             ignore_flags: ON_HOLD;
5768             description { state: "default" 0.0;
5769                color: 0 0 0 0;
5770             }
5771          }
5772          part { name: "over3";
5773             type: RECT;
5774             repeat_events: 1;
5775             description { state: "default" 0.0;
5776                color: 0 0 0 0;
5777             }
5778          }
5779          part { name: "disabler";
5780             type: RECT;
5781             description { state: "default" 0.0;
5782                color: 0 0 0 0;
5783                visible: 0;
5784             }
5785             description { state: "disabled" 0.0;
5786                inherit: "default" 0.0;
5787                visible: 1;
5788             }
5789          }
5790       }
5791       programs {
5792          program { name: "button_click";
5793             signal: "mouse,down,1";
5794             source: "over2";
5795             action: SIGNAL_EMIT "elm,action,press" "";
5796             after: "button_click_anim";
5797          }
5798          program { name: "button_click_anim";
5799             script {
5800                set_state(PART:"button_image", "clicked", 0.0);
5801             }
5802          }
5803          program { name: "button_double_click";
5804             signal: "mouse,down,1,double";
5805             source: "over2";
5806             after: "button_click_anim";
5807          }
5808          program { name: "button_unclick";
5809             signal: "mouse,up,1";
5810             source: "over3";
5811             action: SIGNAL_EMIT "elm,action,unpress" "";
5812             after: "button_unclick_anim";
5813          }
5814          program { name: "button_unclick_anim";
5815             script {
5816                set_state(PART:"button_image", "default", 0.0);
5817             }
5818          }
5819          program { name: "touch_snd";
5820             signal: "mouse,clicked,1";
5821             source: "over2";
5822             action: PLAY_SAMPLE "touch_sound" 1.0;
5823             after: "button_unclick3";
5824          }
5825          program { name: "button_unclick3";
5826             action: SIGNAL_EMIT "elm,action,click" "";
5827          }
5828          program { name: "change_to_landscape";
5829             signal: "elm,state,landscape";
5830             source: "elm";
5831             script {
5832                set_state(PART:"button_bg", "landscape", 0.0);
5833                set_state(PART:"elm.text", "landscape", 0.0);
5834             }
5835          }
5836          program { name: "change_to_portrait";
5837             signal: "elm,state,portrait";
5838             source: "elm";
5839             script {
5840                set_state(PART:"button_bg", "default", 0.0);
5841                set_state(PART:"elm.text", "default", 0.0);
5842             }
5843          }
5844          program { name: "landscape_mode";
5845             source: "elm";
5846             signal: "elm,state,orient,90";
5847             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5848          }
5849          program { name: "landscape_mode2";
5850             source: "elm";
5851             signal: "elm,state,orient,270";
5852             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5853          }
5854          program { name: "portrait_mode";
5855             source: "elm";
5856             signal: "elm,state,orient,0";
5857             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5858          }
5859          program { name: "portrait_mode2";
5860             source: "elm";
5861             signal: "elm,state,orient,180";
5862             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5863          }
5864       }
5865    }
5866
5867 /////////////////////////////////////////////////////////////////////////////////////////
5868    group { name: "elm/button/base/naviframe/more/default";
5869       data {
5870          item: "focus_highlight" "on";
5871       }
5872       images {
5873          image: "00_icon_more.png" COMP;
5874          image: "00_icon_focus.png" COMP;
5875       }
5876       parts {
5877          part { name: "button_image";
5878             type: RECT;
5879             scale: 1;
5880             description { state: "default" 0.0;
5881                min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5882                max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5883                visible: 0;
5884             }
5885             description { state: "landscape" 0.0;
5886                min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5887                max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5888                visible: 0;
5889             }
5890          }
5891          part { name: "focus_image";
5892             scale: 1;
5893             mouse_events: 0;
5894             repeat_events: 1;
5895             description { state: "default" 0.0;
5896                visible: 0;
5897                rel1.to : "button_image";
5898                rel2.to : "button_image";
5899                image {
5900                   normal: "00_icon_focus.png";
5901                   border_scale: 1;
5902                }
5903             }
5904             description { state: "focused" 0.0;
5905                inherit: "default" 0.0;
5906                visible: 1;
5907             }
5908          }
5909          part { name: "more_image";
5910             scale: 1;
5911             mouse_events: 0;
5912             clip_to: "more_image.clipper";
5913             description { state: "default" 0.0;
5914                min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5915                max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5916                fixed: 1 1;
5917                rel1.to: "button_image";
5918                rel2.to: "button_image";
5919                image.normal: "00_icon_more.png";
5920             }
5921          }
5922          part { name: "more_image.clipper";
5923             type: RECT;
5924             description { state: "default" 0.0;
5925                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5926             }
5927             description { state: "clicked" 0.0;
5928                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5929             }
5930             description { state: "disabled" 0.0;
5931                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5932             }
5933          }
5934          part { name: "over2";
5935             type: RECT;
5936             ignore_flags: ON_HOLD;
5937             description { state: "default" 0.0;
5938                color: 0 0 0 0;
5939             }
5940          }
5941          part { name: "over3";
5942             type: RECT;
5943             repeat_events: 1;
5944             description { state: "default" 0.0;
5945                color: 0 0 0 0;
5946             }
5947          }
5948          part { name: "disabler";
5949             type: RECT;
5950             description { state: "default" 0.0;
5951                color: 0 0 0 0;
5952                visible: 0;
5953             }
5954             description { state: "disabled" 0.0;
5955                inherit: "default" 0.0;
5956                visible: 1;
5957             }
5958          }
5959       }
5960       programs {
5961          program { name: "button_click";
5962             signal: "mouse,down,1";
5963             source: "over2";
5964             action: SIGNAL_EMIT "elm,action,press" "";
5965             after: "button_click_anim";
5966          }
5967          program { name: "button_click_anim";
5968             script {
5969                set_state(PART:"more_image.clipper", "clicked", 0.0);
5970             }
5971          }
5972          program { name: "button_double_click";
5973             signal: "mouse,down,1,double";
5974             source: "over2";
5975             after: "button_click_anim";
5976          }
5977          program { name: "button_unclick";
5978             signal: "mouse,up,1";
5979             source: "over3";
5980             action: SIGNAL_EMIT "elm,action,unpress" "";
5981             after: "button_unclick_anim";
5982          }
5983          program { name: "button_unclick_anim";
5984             script {
5985                set_state(PART:"more_image.clipper", "default", 0.0);
5986             }
5987          }
5988          program { name: "touch_snd";
5989             signal: "mouse,clicked,1";
5990             source: "over2";
5991             action: PLAY_SAMPLE "touch_sound" 1.0;
5992             after: button_unclick3;
5993          }
5994          program { name: "button_unclick3";
5995             action: SIGNAL_EMIT "elm,action,click" "";
5996          }
5997          program { name: "disable";
5998             signal: "elm,state,disabled";
5999             source: "elm";
6000             script {
6001                set_state(PART:"disabler", "disabled", 0.0);
6002                set_state(PART:"more_image.clipper", "disabled", 0.0);
6003             }
6004          }
6005          program { name: "enable";
6006             signal: "elm,state,enabled";
6007             source: "elm";
6008             script {
6009                set_state(PART:"disabler", "default", 0.0);
6010                set_state(PART:"more_image.clipper", "default", 0.0);
6011             }
6012          }
6013          program { name: "change_to_landscape";
6014             signal: "elm,state,landscape";
6015             source: "elm";
6016             action: STATE_SET "landscape" 0.0;
6017             target: "button_image";
6018          }
6019          program { name: "change_to_portrait";
6020             signal: "elm,state,portrait";
6021             source: "elm";
6022             action: STATE_SET "default" 0.0;
6023             target: "button_image";
6024          }
6025          program { name: "landscape_mode";
6026             source: "elm";
6027             signal: "elm,state,orient,90";
6028             action: SIGNAL_EMIT "elm,state,landscape" "elm";
6029          }
6030          program { name: "landscape_mode2";
6031             source: "elm";
6032             signal: "elm,state,orient,270";
6033             action: SIGNAL_EMIT "elm,state,landscape" "elm";
6034          }
6035          program { name: "portrait_mode";
6036             source: "elm";
6037             signal: "elm,state,orient,0";
6038             action: SIGNAL_EMIT "elm,state,portrait" "elm";
6039          }
6040          program { name: "portrait_mode2";
6041             source: "elm";
6042             signal: "elm,state,orient,180";
6043             action: SIGNAL_EMIT "elm,state,portrait" "elm";
6044          }
6045          program { name: "action_focus";
6046             signal: "elm,action,focus_highlight,show";
6047             source: "elm";
6048             action: STATE_SET "focused" 0.0;
6049             target: "focus_image";
6050          }
6051          program { name: "action_unfocus";
6052             signal: "elm,action,focus_highlight,hide";
6053             source: "elm";
6054             action: STATE_SET "default" 0.0;
6055             target: "focus_image";
6056          }
6057       }
6058    }
6059
6060 ///////////////////////////////////////////////////////////////////////////////////////
6061    group { name: "elm/button/base/tickernoti";
6062       images {
6063          image: "00_notification_button.png" COMP;
6064          image: "00_notification_button_press.png" COMP;
6065          image: "00_notification_button_dim.png" COMP;
6066       }
6067       script {
6068          public button_state = BUTTON_STATE_ENABLED;
6069       }
6070       parts {
6071          part { name: "button_image";
6072             scale: 1;
6073             description { state: "default" 0.0;
6074                min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6075                max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6076                image {
6077                   normal: "00_notification_button.png";
6078                   border: BUTTON_TICKERNOTI_BG_BORDER_INC;
6079                   border_scale: 1;
6080                }
6081             }
6082             description { state: "clicked" 0.0;
6083                inherit: "default" 0.0;
6084                image.normal: "00_notification_button_press.png";
6085             }
6086             description { state: "disabled" 0.0;
6087                inherit: "default" 0.0;
6088                image.normal: "00_notification_button_dim.png";
6089             }
6090             description { state: "focused" 0.0;
6091                inherit: "default" 0.0;
6092                image.normal: "00_notification_button_press.png";
6093             }
6094          }
6095          part { name: "padding_left_top";
6096             type: RECT;
6097             scale: 1;
6098             mouse_events: 0;
6099             description { state: "default" 0.0;
6100                visible: 0;
6101                align: 0.0 0.0;
6102                rel2.relative: 0.0 0.0;
6103                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6104                fixed: 1 1;
6105             }
6106          }
6107          part { name: "bg";
6108             type: RECT;
6109             scale: 1;
6110             mouse_events: 0;
6111             description { state: "default" 0.0;
6112                min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6113                visible: 0;
6114             }
6115             description { state: "visible" 0.0;
6116                inherit: "default" 0.0;
6117             }
6118             description { state: "icononly" 0.0;
6119                inherit: "default" 0.0;
6120             }
6121          }
6122          part { name: "padding_right_bottom";
6123             type: RECT;
6124             scale: 1;
6125             mouse_events: 0;
6126             description { state: "default" 0.0;
6127                align: 1.0 1.0;
6128                rel1.relative: 1.0 1.0;
6129                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6130                fixed: 1 1;
6131                visible: 0;
6132             }
6133          }
6134          part { name: "icon_rect";
6135             type: RECT;
6136             scale: 1;
6137             mouse_events: 0;
6138             description { state: "default" 0.0;
6139                visible: 0;
6140                min: 0 0;
6141                fixed: 1 0;
6142                rel1 {
6143                   relative: 1.0 1.0;
6144                   to: "padding_left_top";
6145                }
6146                rel2 {
6147                   relative: 1.0 0.0;
6148                   to_x: "padding_left_top";
6149                   to_y: "padding_right_bottom";
6150                }
6151                align: 0.0 0.5;
6152             }
6153             description { state: "visible" 0.0;
6154                inherit: "default" 0.0;
6155                min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6156                max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6157             }
6158             description { state: "icononly" 0.0;
6159                inherit: "default" 0.0;
6160             }
6161          }
6162          part { name: "padding_after_icon";
6163             type: RECT;
6164             scale: 1;
6165             mouse_events: 0;
6166             description { state: "default" 0.0; //when only icon or no icon is there
6167                visible: 0;
6168                fixed: 1 0;
6169                min: 0 0;
6170                align: 0.0 0.0;
6171                rel1 {
6172                   relative: 1.0 0.0;
6173                   to: "icon_rect";
6174                }
6175                rel2.to: "icon_rect";
6176             }
6177             description { state: "visible" 0.0;
6178                inherit: "default" 0.0;
6179                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6180             }
6181             description { state: "icononly" 0.0;
6182                inherit: "default" 0.0;
6183             }
6184          }
6185          part { name: "padding_before_text";
6186             type: RECT;
6187             scale: 1;
6188             mouse_events: 0;
6189             description { state: "default" 0.0; //when only icon or no icon is there
6190                visible: 0;
6191                align: 1.0 0.5;
6192                fixed: 1 0;
6193                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6194                rel1 {
6195                   relative: 0.0 1.0;
6196                   to_x: "elm.text";
6197                   to_y: "padding_left_top";
6198                }
6199                rel2 {
6200                   relative: 0.0 0.0;
6201                   to_x: "elm.text";
6202                   to_y: "padding_right_bottom";
6203                }
6204             }
6205          }
6206          part { name: "elm.swallow.content";
6207             type: SWALLOW;
6208             scale: 1;
6209             clip_to: "clipper";
6210             description { state: "default" 0.0;
6211                visible: 0;
6212                fixed: 1 0;
6213                align: 0.0 0.5;
6214                rel1 {
6215                   relative: 1.0 1.0;
6216                   to: "padding_left_top";
6217                }
6218                rel2 {
6219                   relative: 1.0 0.0;
6220                   to_x: "padding_left_top";
6221                   to_y: "padding_right_bottom";
6222                }
6223             }
6224             description { state: "visible" 0.0;
6225                fixed: 1 0;
6226                min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6227                max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6228                align: 1.0 0.5;
6229                rel1 {
6230                   relative: 0.0 1.0;
6231                   to_x: "padding_before_text";
6232                   to_y: "padding_left_top";
6233                }
6234                rel2 {
6235                   relative: 0.0 0.0;
6236                   to_x: "padding_before_text";
6237                   to_y: "padding_right_bottom";
6238                }
6239             }
6240             description { state: "icononly" 0.0;
6241                min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6242                max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6243             }
6244          }
6245          part { name: "elm.text";
6246             type: TEXT;
6247             mouse_events: 0;
6248             effect: FAR_SHADOW BOTTOM;
6249             scale: 1;
6250             clip_to: "clipper";
6251             description { state: "default" 0.0;
6252                visible: 0;
6253                rel1 {
6254                   relative: 1.0 1.0;
6255                   to_x: "padding_after_icon";
6256                   to_y: "padding_left_top";
6257                }
6258                rel2 {
6259                   relative: 0.0 0.0;
6260                   to: "padding_right_bottom";
6261                }
6262                color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6263                color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6264                text {
6265                   font: "Tizen:style=Regular";
6266                   size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6267                   text_class: "tizen";
6268                }
6269             }
6270             description { state: "visible" 0.0;
6271                inherit: "default" 0.0;
6272                visible: 1;
6273             }
6274             description { state: "clicked" 0.0;
6275                inherit: "default" 0.0;
6276                visible: 1;
6277                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6278             }
6279             description { state: "disabled" 0.0;
6280                inherit: "default" 0.0;
6281             }
6282             description { state: "disabled_visible" 0.0;
6283                inherit: "default" 0.0;
6284                color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6285                color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6286                visible: 1;
6287             }
6288             description { state: "focused" 0.0;
6289                inherit: "default" 0.0;
6290                visible: 1;
6291                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6292             }
6293          }
6294          part { name: "over2";
6295             type: RECT;
6296             repeat_events: 1;
6297             ignore_flags: ON_HOLD;
6298             description { state: "default" 0.0;
6299                color: 0 0 0 0;
6300             }
6301          }
6302          part { name: "over3";
6303             type: RECT;
6304             repeat_events: 1;
6305             description { state: "default" 0.0;
6306                color: 0 0 0 0;
6307             }
6308          }
6309          part { name: "clipper";
6310             type: RECT;
6311             description { state: "default" 0.0;
6312                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6313             }
6314             description { state: "disabled" 0.0;
6315                inherit: "default" 0.0;
6316                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6317             }
6318          }
6319          part { name: "disabler";
6320             type: RECT;
6321             description { state: "default" 0.0;
6322                color: 0 0 0 0;
6323                visible: 0;
6324             }
6325             description { state: "disabled" 0.0;
6326                inherit: "default" 0.0;
6327                visible: 1;
6328             }
6329          }
6330       }
6331       programs {
6332          program { name: "button_click";
6333             signal: "mouse,down,1";
6334             source: "over2";
6335             action: SIGNAL_EMIT "elm,action,press" "";
6336             after: "button_click_anim";
6337          }
6338          program { name: "button_click_anim";
6339             action: STATE_SET "clicked" 0.0;
6340             target: "button_image";
6341             after: "text_clicked";
6342          }
6343          program { name: "text_clicked";
6344             script {
6345                new st[31];
6346                new Float:vl;
6347                get_state(PART:"elm.text", st, 30, vl);
6348                if (!strcmp(st, "visible"))
6349                  set_state(PART:"elm.text", "clicked", 0.0);
6350             }
6351          }
6352          program { name: "button_double_click";
6353             signal: "mouse,down,1,double";
6354             source: "over2";
6355             after: "button_click_anim";
6356          }
6357          program { name: "button_unpress";
6358             action: SIGNAL_EMIT "elm,action,unpress" "";
6359          }
6360          program { name: "button_mouseout_clicked";
6361             signal: "mouse,up,1";
6362             source: "over3";
6363             script {
6364                new st[31];
6365                new Float:vl;
6366                get_state(PART:"elm.swallow.content", st, 30, vl);
6367                if (strcmp(st, "icononly"))
6368                  {
6369                     emit("elm,action,default,text,set", "");
6370                     set_state(PART:"elm.text", "visible", 0.0);
6371                  }
6372                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6373                  set_state(PART:"button_image", "default", 0.0);
6374             }
6375             after: button_unpress;
6376          }
6377          program { name: "touch_snd";
6378             signal: "mouse,clicked,1";
6379             source: "over2";
6380             action: PLAY_SAMPLE "touch_sound" 1.0;
6381             after: button_unclick3;
6382          }
6383          program { name: "button_unclick3";
6384             action: SIGNAL_EMIT "elm,action,click" "";
6385          }
6386          program { name: "text_show";
6387             signal: "elm,state,text,visible";
6388             source: "elm";
6389             script {
6390                new st[31];
6391                new Float:vl;
6392                get_state(PART:"elm.swallow.content", st, 30, vl);
6393                if (!strcmp(st, "icononly"))
6394                  {
6395                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6396                     set_state(PART:"icon_rect", "visible", 0.0);
6397                     set_state(PART:"padding_after_icon", "visible", 0.0);
6398                     set_state(PART:"bg", "visible", 0.0);
6399                  }
6400                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6401                  set_state(PART:"elm.text", "visible", 0.0);
6402                else
6403                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6404             }
6405          }
6406          program { name: "text_hide";
6407             signal: "elm,state,text,hidden";
6408             source: "elm";
6409             script {
6410                new st[31];
6411                new Float:vl;
6412                get_state(PART:"elm.swallow.content", st, 30, vl);
6413                if (!strcmp(st, "visible"))
6414                  {
6415                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6416                     set_state(PART:"icon_rect", "icononly", 0.0);
6417                     set_state(PART:"padding_after_icon", "icononly", 0.0);
6418                     set_state(PART:"bg", "icononly", 0.0);
6419                  }
6420                set_state(PART:"elm.text", "default", 0.0);
6421             }
6422          }
6423          program { name: "icon_show";
6424             signal: "elm,state,icon,visible";
6425             source: "elm";
6426             script {
6427                new st[31];
6428                new Float:vl;
6429                get_state(PART:"elm.text", st, 30, vl);
6430                if (!strcmp(st, "visible"))
6431                  {
6432                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6433                     set_state(PART:"icon_rect", "visible", 0.0);
6434                     set_state(PART:"padding_after_icon", "visible", 0.0);
6435                     set_state(PART:"bg", "visible", 0.0);
6436                  }
6437                else
6438                  {
6439                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6440                     set_state(PART:"icon_rect", "icononly", 0.0);
6441                     set_state(PART:"padding_after_icon", "icononly", 0.0);
6442                     set_state(PART:"bg", "icononly", 0.0);
6443                  }
6444             }
6445          }
6446          program { name: "icon_hide";
6447             signal: "elm,state,icon,hidden";
6448             source: "elm";
6449             action: STATE_SET "default" 0.0;
6450             target: "elm.swallow.content";
6451             target: "padding_after_icon";
6452             target: "icon_rect";
6453             target: "bg";
6454          }
6455          program { name: "disable";
6456             signal: "elm,state,disabled";
6457             source: "elm";
6458             action: STATE_SET "disabled" 0.0;
6459             target: "button_image";
6460             target: "disabler";
6461             target: "clipper";
6462             after: "disable_text";
6463          }
6464          program { name: "disable_text";
6465             script {
6466                new st[31];
6467                new Float:vl;
6468                get_state(PART:"elm.text", st, 30, vl);
6469                if (!strcmp(st, "visible"))
6470                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6471                else
6472                  set_state(PART:"elm.text", "disabled", 0.0);
6473                set_int(button_state, BUTTON_STATE_DISABLED);
6474             }
6475          }
6476          program { name: "enable";
6477             signal: "elm,state,enabled";
6478             source: "elm";
6479             action: STATE_SET "default" 0.0;
6480             target: "button_image";
6481             target: "disabler";
6482             target: "clipper";
6483             after: "enable_text";
6484          }
6485          program { name: "enable_text";
6486             script {
6487                new st[31];
6488                new Float:vl;
6489                get_state(PART:"elm.text", st, 30, vl);
6490                if (!strcmp(st, "disabled_visible"))
6491                  set_state(PART:"elm.text", "visible", 0.0);
6492                else
6493                  set_state(PART:"elm.text", "default", 0.0);
6494                set_int(button_state, BUTTON_STATE_ENABLED);
6495             }
6496          }
6497          program { name: "focused";
6498             //signal: "elm,action,focus";
6499             //source: "elm";
6500             action: STATE_SET "focused" 0.0;
6501             target: "button_image";
6502             target: "elm.text";
6503          }
6504          program { name: "unfocused";
6505             //signal: "elm,action,unfocus";
6506             //source: "elm";
6507             action: STATE_SET "default" 0.0;
6508             target: "button_image";
6509             after: "unfocus_text";
6510          }
6511          program { name: "unfocus_text";
6512             action: STATE_SET "visible" 0.0;
6513             target: "elm.text";
6514          }
6515       }
6516    }
6517
6518 ///////////////////////////////////////////////////////////////////////////////////////
6519    group { name: "elm/button/base/expandable_number";
6520       alias: "elm/button/base/text_only/expandable_number";
6521       data {
6522          item: "focus_highlight" "on";
6523       }
6524       images {
6525          image: "00_button_01.png" COMP;
6526          image: "00_button_01_press.png" COMP;
6527          image: "00_button_01_dim.png" COMP;
6528          image: "00_arrow_expand.png" COMP;
6529          image: "00_button_01_focus.png" COMP;
6530       }
6531       styles{
6532          style { name: "btn_base_exapandable_number";
6533             base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
6534             tag: "br" "\n";
6535             tag: "ps" "ps";
6536             tag: "tab" "\t";
6537          }
6538          style { name: "btn_base_exapandable_number_pressed";
6539             base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
6540             tag: "br" "\n";
6541             tag: "ps" "ps";
6542             tag: "tab" "\t";
6543          }
6544       }
6545       script {
6546          public button_state = BUTTON_STATE_ENABLED;
6547       }
6548       parts {
6549          part { name: "button_image";
6550             scale: 1;
6551             description { state: "default" 0.0;
6552                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6553                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6554                image {
6555                   normal: "00_button_01.png";
6556                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6557                   border_scale: 1;
6558                }
6559             }
6560             description { state: "clicked" 0.0;
6561                inherit: "default" 0.0;
6562                image.normal: "00_button_01_press.png";
6563             }
6564             description { state: "disabled" 0.0;
6565                inherit: "default" 0.0;
6566                image.normal: "00_button_01_dim.png";
6567             }
6568             description { state: "focused" 0.0;
6569                inherit: "default" 0.0;
6570                image.normal: "00_button_01_press.png";
6571             }
6572          }
6573          part { name: "focus_image";
6574             scale: 1;
6575             mouse_events: 0;
6576             repeat_events: 1;
6577             description { state: "default" 0.0;
6578                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6579                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6580                visible: 0;
6581                rel1.to : "button_image";
6582                rel2.to : "button_image";
6583                image {
6584                   normal: "00_button_01_focus.png";
6585                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6586                   border_scale: 1;
6587                }
6588             }
6589             description { state: "focused" 0.0;
6590                inherit: "default" 0.0;
6591                visible: 1;
6592             }
6593          }
6594          part { name: "padding_left_top";
6595             type: RECT;
6596             scale: 1;
6597             mouse_events: 0;
6598             description { state: "default" 0.0;
6599                visible: 0;
6600                align: 0.0 0.0;
6601                rel2.relative: 0.0 0.0;
6602                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6603                fixed: 1 1;
6604             }
6605          }
6606          part { name: "padding_right_bottom";
6607             type: RECT;
6608             scale: 1;
6609             mouse_events: 0;
6610             description { state: "default" 0.0;
6611                visible: 0;
6612                align: 1.0 1.0;
6613                rel1.relative: 1.0 1.0;
6614                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6615                fixed: 1 1;
6616             }
6617          }
6618          part { name: "icon_rect";
6619             type: RECT;
6620             scale: 1;
6621             mouse_events: 0;
6622             description { state: "default" 0.0;
6623                visible: 0;
6624                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6625                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6626                fixed: 1 0;
6627                rel1 {
6628                   relative: 0.0 1.0;
6629                   to_x: "padding_right_bottom";
6630                   to_y: "padding_left_top";
6631                }
6632                rel2 {
6633                   relative: 0.0 0.0;
6634                   to: "padding_right_bottom";
6635                }
6636                align: 1.0 0.5;
6637             }
6638          }
6639          part { name: "arrow_expand";
6640             scale: 1;
6641             clip_to: "icon_clipper";
6642             mouse_events: 0;
6643             description { state: "default" 0.0;
6644                align: 0.0 0.5;
6645                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6646                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6647                fixed: 0 0;
6648                rel1.to: "icon_rect";
6649                rel2.to: "icon_rect";
6650                image.normal:"00_arrow_expand.png";
6651             }
6652          }
6653          part { name: "elm.text";
6654             type: TEXTBLOCK;
6655             mouse_events: 0;
6656             scale: 1;
6657             description { state: "default" 0.0;
6658                min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6659                max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6660                fixed:1 0;
6661                rel1 {
6662                   relative: 1.0 1.0;
6663                   to: "padding_left_top";
6664                }
6665                rel2 {
6666                   relative: 1.0 1.0;
6667                   to_x:"padding_left_top";
6668                   to_y:"padding_right_bottom";
6669                }
6670                align: 0.0 0.5;
6671                text {
6672                   style: "btn_base_exapandable_number";
6673                   min: 0 0;
6674                   fit: 1 1;
6675                   size_range: 28 32;
6676                }
6677             }
6678             description { state: "visible" 0.0;
6679                inherit: "default" 0.0;
6680             }
6681             description { state: "clicked" 0.0;
6682                inherit: "default" 0.0;
6683                text {
6684                   style: "btn_base_exapandable_number_pressed";
6685                   min: 0 0;
6686                   fit: 1 1;
6687                   size_range: 28 32;
6688                }
6689             }
6690             description { state: "disabled" 0.0;
6691                inherit: "default" 0.0;
6692             }
6693             description { state: "disabled_visible" 0.0;
6694                inherit: "default" 0.0;
6695                color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6696             }
6697             description { state: "focused" 0.0;
6698                inherit: "default" 0.0;
6699                color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6700             }
6701          }
6702          part { name: "icon_clipper";
6703             scale: 1;
6704             type: RECT;
6705             description { state: "default" 0.0;
6706                color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6707             }
6708             description { state: "clicked" 0.0;
6709                color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6710             }
6711             description { state: "disabled" 0.0;
6712                color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6713             }
6714          }
6715          part { name: "over2";
6716             type: RECT;
6717             repeat_events: 1;
6718             ignore_flags: ON_HOLD;
6719             description { state: "default" 0.0;
6720                color: 0 0 0 0;
6721             }
6722          }
6723          part { name: "over3";
6724             type: RECT;
6725             repeat_events: 1;
6726             description { state: "default" 0.0;
6727                color: 0 0 0 0;
6728             }
6729          }
6730          part { name: "disabler";
6731             type: RECT;
6732             description { state: "default" 0.0;
6733                color: 0 0 0 0;
6734                visible: 0;
6735             }
6736             description { state: "disabled" 0.0;
6737                inherit: "default" 0.0;
6738                visible: 1;
6739             }
6740          }
6741       }
6742       programs {
6743          program { name: "button_click";
6744             signal: "mouse,down,1";
6745             source: "over2";
6746             action: SIGNAL_EMIT "elm,action,press" "";
6747             after: "button_click_anim";
6748          }
6749          program { name: "button_click_anim";
6750             action: STATE_SET "clicked" 0.0;
6751             target: "button_image";
6752             target: "icon_clipper";
6753             after: "text_clicked";
6754          }
6755          program { name: "text_clicked";
6756             script {
6757                new st[31];
6758                new Float:vl;
6759                get_state(PART:"elm.text", st, 30, vl);
6760                if (!strcmp(st, "visible"))
6761                  set_state(PART:"elm.text", "clicked", 0.0);
6762             }
6763          }
6764          program { name: "button_double_click";
6765             signal: "mouse,down,1,double";
6766             source: "over2";
6767             after: "button_click_anim";
6768          }
6769          program { name: "button_unpress";
6770             action: SIGNAL_EMIT "elm,action,unpress" "";
6771          }
6772          program { name: "button_mouseout_clicked";
6773             signal: "mouse,up,1";
6774             source: "over3";
6775             script {
6776                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6777                  {
6778                     set_state(PART:"button_image", "default", 0.0);
6779                     set_state(PART:"elm.text", "visible", 0.0);
6780                     set_state(PART:"icon_clipper", "default", 0.0);
6781                  }
6782             }
6783             after: button_unpress;
6784          }
6785          program { name: "touch_snd";
6786             signal: "mouse,clicked,1";
6787             source: "over2";
6788             action: PLAY_SAMPLE "touch_sound" 1.0;
6789             after: button_unclick3;
6790          }
6791          program { name: "button_unclick3";
6792             action: SIGNAL_EMIT "elm,action,click" "";
6793          }
6794          program { name: "text_show";
6795             signal: "elm,state,text,visible";
6796             source: "elm";
6797             script {
6798                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6799                  set_state(PART:"elm.text", "visible", 0.0);
6800                else
6801                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6802             }
6803          }
6804          program { name: "text_hide";
6805             signal: "elm,state,text,hidden";
6806             source: "elm";
6807             script {
6808                set_state(PART:"elm.text", "default", 0.0);
6809             }
6810          }
6811          program { name: "disable";
6812             signal: "elm,state,disabled";
6813             source: "elm";
6814             action: STATE_SET "disabled" 0.0;
6815             target: "button_image";
6816             target: "disabler";
6817             target: "icon_clipper";
6818             after: "disable_text";
6819          }
6820          program { name: "disable_text";
6821             script {
6822                new st[31];
6823                new Float:vl;
6824                get_state(PART:"elm.text", st, 30, vl);
6825                if (!strcmp(st, "visible"))
6826                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6827                else
6828                  set_state(PART:"elm.text", "disabled", 0.0);
6829                set_int(button_state, BUTTON_STATE_DISABLED);
6830             }
6831          }
6832          program { name: "enable";
6833             signal: "elm,state,enabled";
6834             source: "elm";
6835             action: STATE_SET "default" 0.0;
6836             target: "button_image";
6837             target: "disabler";
6838             target: "icon_clipper";
6839             after: "enable_text";
6840          }
6841          program { name: "enable_text";
6842             script {
6843                new st[31];
6844                new Float:vl;
6845                get_state(PART:"elm.text", st, 30, vl);
6846                if (!strcmp(st, "disabled_visible"))
6847                  set_state(PART:"elm.text", "visible", 0.0);
6848                else
6849                  set_state(PART:"elm.text", "default", 0.0);
6850                set_int(button_state, BUTTON_STATE_ENABLED);
6851             }
6852          }
6853          program { name: "action_focus";
6854             signal: "elm,action,focus_highlight,show";
6855             source: "elm";
6856             action: STATE_SET "focused" 0.0;
6857             target: "focus_image";
6858          }
6859          program { name: "action_unfocus";
6860             signal: "elm,action,focus_highlight,hide";
6861             source: "elm";
6862             action: STATE_SET "default" 0.0;
6863             target: "focus_image";
6864          }
6865       }
6866    }
6867
6868 ////////////////////////////////////////////////////////////////////////
6869    group { name: "elm/button/base/bubble_sent";
6870       inherit: "elm/button/base/style1";
6871       images {
6872          image: "00_messagebubble_button_sent.png" COMP;
6873          image: "00_messagebubble_button_sent_press.png" COMP;
6874          image: "00_messagebubble_button_sent_dim.png" COMP;
6875       }
6876       parts {
6877          part { name: "button_image";
6878             scale: 1;
6879             description { state: "default" 0.0;
6880                image {
6881                   normal: "00_messagebubble_button_sent.png";
6882                   border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6883                   border_scale: 1;
6884                }
6885             }
6886             description { state: "clicked" 0.0;
6887                inherit: "default" 0.0;
6888                image.normal: "00_messagebubble_button_sent_press.png";
6889             }
6890             description { state: "disabled" 0.0;
6891                inherit: "default" 0.0;
6892                image.normal: "00_messagebubble_button_sent_dim.png";
6893             }
6894             description { state: "focused" 0.0;
6895                inherit: "default" 0.0;
6896                image.normal: "00_messagebubble_button_sent_press.png";
6897             }
6898          }
6899          part { name: "elm.text";
6900             type: TEXT;
6901             mouse_events: 0;
6902             effect: FAR_SHADOW BOTTOM;
6903             scale: 1;
6904             clip_to: "clipper";
6905             description { state: "default" 0.0;
6906                visible: 0;
6907                rel1 {
6908                   relative: 1.0 1.0;
6909                   to_x: "padding_after_icon";
6910                   to_y: "padding_left_top";
6911                }
6912                rel2 {
6913                   relative: 0.0 0.0;
6914                   to: "padding_right_bottom";
6915                }
6916                color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6917                color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6918                text {
6919                   font: "Tizen:style=Regular";
6920                   size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6921                   min: 0 0;
6922                   max: 1 0;
6923                   text_class: "tizen";
6924                }
6925             }
6926             description { state: "visible" 0.0;
6927                inherit: "default" 0.0;
6928                visible: 1;
6929             }
6930             description { state: "clicked" 0.0;
6931                inherit: "default" 0.0;
6932                visible: 1;
6933                color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6934             }
6935             description { state: "disabled" 0.0;
6936                inherit: "default" 0.0;
6937             }
6938             description { state: "disabled_visible" 0.0;
6939                inherit: "default" 0.0;
6940                color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6941                visible: 1;
6942             }
6943             description { state: "focused" 0.0;
6944                inherit: "default" 0.0;
6945                visible: 1;
6946                color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6947             }
6948          }
6949       }
6950    }
6951
6952 ////////////////////////////////////////////////////////////////////////
6953    group { name: "elm/button/base/bubble_sent/multiline";
6954       inherit: "elm/button/base/bubble_sent";
6955       styles{
6956          style { name: "bubble_sent_multiline";
6957             base: "font=Tizen:style=Regular font_size="BUTTON_SENT_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
6958             tag: "br" "\n";
6959             tag: "ps" "ps";
6960             tag: "tab" "\t";
6961          }
6962       }
6963       parts {
6964          part { name: "elm.text";
6965             type: TEXTBLOCK;
6966             mouse_events: 0;
6967             effect: FAR_SHADOW BOTTOM;
6968             scale: 1;
6969             clip_to: "clipper";
6970             description { state: "default" 0.0;
6971                visible: 0;
6972                fixed: 1 1;
6973                rel1 {
6974                   relative: 1.0 1.0;
6975                   to_x: "padding_after_icon";
6976                   to_y: "padding_left_top";
6977                }
6978                rel2 {
6979                   relative: 0.0 0.0;
6980                   to: "padding_right_bottom";
6981                }
6982                color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6983                color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6984                text {
6985                    style: "bubble_sent_multiline";
6986                }
6987             }
6988             description { state: "visible" 0.0;
6989                inherit: "default" 0.0;
6990                visible: 1;
6991             }
6992             description { state: "clicked" 0.0;
6993                inherit: "default" 0.0;
6994                visible: 1;
6995                color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6996             }
6997             description { state: "disabled" 0.0;
6998                inherit: "default" 0.0;
6999             }
7000             description { state: "disabled_visible" 0.0;
7001                inherit: "default" 0.0;
7002                color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7003                visible: 1;
7004             }
7005             description { state: "focused" 0.0;
7006                inherit: "default" 0.0;
7007                visible: 1;
7008                color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7009             }
7010          }
7011       }
7012    }
7013
7014 ///////////////////////////////////////////////////////////////////////
7015    group { name: "elm/button/base/bubble_receive";
7016       inherit: "elm/button/base/style1";
7017       images {
7018          image: "00_messagebubble_button_receive.png" COMP;
7019          image: "00_messagebubble_button_receive_press.png" COMP;
7020          image: "00_messagebubble_button_receive_dim.png" COMP;
7021       }
7022       parts {
7023          part { name: "button_image";
7024             scale: 1;
7025             description { state: "default" 0.0;
7026                image {
7027                   normal: "00_messagebubble_button_receive.png";
7028                   border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
7029                   border_scale: 1;
7030                }
7031             }
7032             description { state: "clicked" 0.0;
7033                inherit: "default" 0.0;
7034                image.normal: "00_messagebubble_button_receive_press.png";
7035             }
7036             description { state: "disabled" 0.0;
7037                inherit: "default" 0.0;
7038                image.normal: "00_messagebubble_button_receive_dim.png";
7039             }
7040             description { state: "focused" 0.0;
7041                inherit: "default" 0.0;
7042                image.normal: "00_messagebubble_button_receive_press.png";
7043             }
7044          }
7045          part { name: "elm.text";
7046             type: TEXT;
7047             mouse_events: 0;
7048             effect: SHADOW BOTTOM;
7049             scale: 1;
7050             clip_to: "clipper";
7051             description { state: "default" 0.0;
7052                visible: 0;
7053                rel1 {
7054                   relative: 1.0 1.0;
7055                   to_x: "padding_after_icon";
7056                   to_y: "padding_left_top";
7057                }
7058                rel2 {
7059                   relative: 0.0 0.0;
7060                   to: "padding_right_bottom";
7061                }
7062                color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7063                color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7064                text {
7065                   font: "Tizen:style=Regular";
7066                   size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
7067                   min: 0 0;
7068                   max: 1 0;
7069                   text_class: "tizen";
7070                }
7071             }
7072             description { state: "visible" 0.0;
7073                inherit: "default" 0.0;
7074                visible: 1;
7075             }
7076             description { state: "clicked" 0.0;
7077                inherit: "default" 0.0;
7078                visible: 1;
7079                color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7080             }
7081             description { state: "disabled" 0.0;
7082                inherit: "default" 0.0;
7083             }
7084             description { state: "disabled_visible" 0.0;
7085                inherit: "default" 0.0;
7086                color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7087                visible: 1;
7088             }
7089             description { state: "focused" 0.0;
7090                inherit: "default" 0.0;
7091                visible: 1;
7092                color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7093             }
7094          }
7095       }
7096    }
7097
7098 ///////////////////////////////////////////////////////////////////////
7099    group { name: "elm/button/base/bubble_receive/multiline";
7100       inherit: "elm/button/base/bubble_receive";
7101       styles{
7102          style { name: "bubble_receive_multiline";
7103             base: "font=Tizen:style=Regular font_size="BUTTON_RECEIVE_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
7104             tag: "br" "\n";
7105             tag: "ps" "ps";
7106             tag: "tab" "\t";
7107          }
7108       }
7109       parts {
7110          part { name: "elm.text";
7111             type: TEXTBLOCK;
7112             mouse_events: 0;
7113             effect: SHADOW BOTTOM;
7114             scale: 1;
7115             clip_to: "clipper";
7116             description { state: "default" 0.0;
7117                visible: 0;
7118                fixed: 1 1;
7119                rel1 {
7120                   relative: 1.0 1.0;
7121                   to_x: "padding_after_icon";
7122                   to_y: "padding_left_top";
7123                }
7124                rel2 {
7125                   relative: 0.0 0.0;
7126                   to: "padding_right_bottom";
7127                }
7128                color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7129                color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7130                text {
7131                    style: "btn_style1_multiline";
7132                }
7133             }
7134             description { state: "visible" 0.0;
7135                inherit: "default" 0.0;
7136                visible: 1;
7137             }
7138             description { state: "clicked" 0.0;
7139                inherit: "default" 0.0;
7140                visible: 1;
7141                color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7142             }
7143             description { state: "disabled" 0.0;
7144                inherit: "default" 0.0;
7145             }
7146             description { state: "disabled_visible" 0.0;
7147                inherit: "default" 0.0;
7148                color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7149                visible: 1;
7150             }
7151             description { state: "focused" 0.0;
7152                inherit: "default" 0.0;
7153                visible: 1;
7154                color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7155             }
7156          }
7157       }
7158    }
7159
7160 ///////////////////////////////////////////////////////////////////////
7161 group { name: "elm/button/base/bubble_circle/receive";
7162       images {
7163          image: "00_messagebubble_circle_receive.png" COMP;
7164          image: "00_messagebubble_circle_receive_press.png" COMP;
7165          image: "00_messagebubble_circle_receive_dim.png" COMP;
7166          image: "00_button_right.png" COMP;
7167          image: "00_button_right_press.png" COMP;
7168       }
7169       parts {
7170          part { name: "button_image";
7171             scale: 1;
7172             description { state: "default" 0.0;
7173                min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7174                max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7175                image.normal: "00_messagebubble_circle_receive.png";
7176             }
7177             description {
7178                state: "clicked" 0.0;
7179                inherit: "default" 0.0;
7180                image.normal: "00_messagebubble_circle_receive_press.png";
7181             }
7182             description {
7183                state: "disabled" 0.0;
7184                inherit: "default" 0.0;
7185                image.normal: "00_messagebubble_circle_receive_dim.png";
7186             }
7187          }
7188          part { name: "image";
7189             scale: 1;
7190             clip_to: "icon_clipper";
7191             description { state: "default" 0.0;
7192                min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7193                max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7194                image.normal: "00_button_right.png";
7195             }
7196             description {
7197                state: "clicked" 0.0;
7198                inherit: "default" 0.0;
7199                image.normal: "00_button_right_press.png";
7200             }
7201             description {
7202                state: "disabled" 0.0;
7203                inherit: "default" 0.0;
7204             }
7205          }
7206          part { name: "icon_clipper";
7207             type: RECT;
7208             scale: 1;
7209             description { state: "default" 0.0;
7210                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
7211             }
7212             description { state: "clicked" 0.0;
7213                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
7214             }
7215             description { state: "disabled" 0.0;
7216                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
7217             }
7218          }
7219          part { name: "over1";
7220             type: RECT;
7221             ignore_flags: ON_HOLD;
7222             description { state: "default" 0.0;
7223                color: 0 0 0 0;
7224             }
7225          }
7226          part { name: "over2";
7227             type: RECT;
7228             repeat_events: 1;
7229             description { state: "default" 0.0;
7230                color: 0 0 0 0;
7231             }
7232          }
7233          part { name: "disabler";
7234             type: RECT;
7235             description { state: "default" 0.0;
7236                color: 0 0 0 0;
7237                visible: 0;
7238             }
7239             description { state: "disabled" 0.0;
7240                inherit: "default" 0.0;
7241                visible: 1;
7242             }
7243          }
7244       }
7245       programs {
7246          program { name: "button_click";
7247             signal: "mouse,down,1";
7248             source: "over1";
7249             action: SIGNAL_EMIT "elm,action,press" "";
7250             after: "button_click_anim";
7251          }
7252          program { name: "button_click_anim";
7253             action: STATE_SET "clicked" 0.0;
7254             target: "button_image";
7255             target: "image";
7256             target: "icon_clipper";
7257          }
7258          program { name: "button_double_click";
7259             signal: "mouse,down,1,double";
7260             source: "over1";
7261             after: "button_click_anim";
7262          }
7263          program { name: "button_unclick";
7264             signal: "mouse,up,1";
7265             source: "over2";
7266             action: SIGNAL_EMIT "elm,action,unpress" "";
7267             after: "button_unclick_anim";
7268          }
7269          program { name: "button_unclick_anim";
7270             action: STATE_SET "default" 0.0;
7271             target: "button_image";
7272             target: "image";
7273             target: "icon_clipper";
7274          }
7275          program { name: "touch_snd";
7276             signal: "mouse,clicked,1";
7277             source: "over1";
7278             action: PLAY_SAMPLE "touch_sound" 1.0;
7279             after: button_unclick3;
7280          }
7281          program { name: "button_unclick3";
7282             action: SIGNAL_EMIT "elm,action,click" "";
7283          }
7284          program { name: "disable";
7285             signal: "elm,state,disabled";
7286             source: "elm";
7287             action: STATE_SET "disabled" 0.0;
7288             target: "disabler";
7289             target: "button_image";
7290             target: "icon_clipper";
7291             
7292          }
7293          program { name: "enable";
7294             signal: "elm,state,enabled";
7295             source: "elm";
7296             action: STATE_SET "default" 0.0;
7297             target: "disabler";
7298             target: "button_image";
7299             target: "icon_clipper";
7300          }
7301       }
7302    }
7303
7304 ///////////////////////////////////////////////////////////////////////
7305 group { name: "elm/button/base/bubble_circle/sent";
7306       images {
7307          image: "00_messagebubble_circle_sent.png" COMP;
7308          image: "00_messagebubble_circle_sent_press.png" COMP;
7309          image: "00_messagebubble_circle_sent_dim.png" COMP;
7310          image: "00_button_right.png" COMP;
7311          image: "00_button_right_press.png" COMP;
7312       }
7313       parts {
7314          part { name: "button_image";
7315             scale: 1;
7316             description { state: "default" 0.0;
7317                min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7318                max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7319                image.normal: "00_messagebubble_circle_sent.png";
7320             }
7321             description {
7322                state: "clicked" 0.0;
7323                inherit: "default" 0.0;
7324                image.normal: "00_messagebubble_circle_sent_press.png";
7325             }
7326             description {
7327                state: "disabled" 0.0;
7328                inherit: "default" 0.0;
7329                image.normal: "00_messagebubble_circle_sent_dim.png";
7330             }
7331          }
7332          part { name: "image";
7333             scale: 1;
7334             clip_to: "icon_clipper";
7335             description { state: "default" 0.0;
7336                min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7337                max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7338                image.normal: "00_button_right.png";
7339             }
7340             description {
7341                state: "clicked" 0.0;
7342                inherit: "default" 0.0;
7343                image.normal: "00_button_right_press.png";
7344             }
7345             description {
7346                state: "disabled" 0.0;
7347                inherit: "default" 0.0;
7348             }
7349          }
7350          part { name: "icon_clipper";
7351             type: RECT;
7352             scale: 1;
7353             description { state: "default" 0.0;
7354                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7355             }
7356             description { state: "clicked" 0.0;
7357                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7358             }
7359             description { state: "disabled" 0.0;
7360                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7361             }
7362          }
7363          part { name: "over1";
7364             type: RECT;
7365             ignore_flags: ON_HOLD;
7366             description { state: "default" 0.0;
7367                color: 0 0 0 0;
7368             }
7369          }
7370          part { name: "over2";
7371             type: RECT;
7372             repeat_events: 1;
7373             description { state: "default" 0.0;
7374                color: 0 0 0 0;
7375             }
7376          }
7377          part { name: "disabler";
7378             type: RECT;
7379             description { state: "default" 0.0;
7380                color: 0 0 0 0;
7381                visible: 0;
7382             }
7383             description { state: "disabled" 0.0;
7384                inherit: "default" 0.0;
7385                visible: 1;
7386             }
7387          }
7388       }
7389       programs {
7390          program { name: "button_click";
7391             signal: "mouse,down,1";
7392             source: "over1";
7393             action: SIGNAL_EMIT "elm,action,press" "";
7394             after: "button_click_anim";
7395          }
7396          program { name: "button_click_anim";
7397             action: STATE_SET "clicked" 0.0;
7398             target: "button_image";
7399             target: "image";
7400             target: "icon_clipper";
7401          }
7402          program { name: "button_double_click";
7403             signal: "mouse,down,1,double";
7404             source: "over1";
7405             after: "button_click_anim";
7406          }
7407          program { name: "button_unclick";
7408             signal: "mouse,up,1";
7409             source: "over2";
7410             action: SIGNAL_EMIT "elm,action,unpress" "";
7411             after: "button_unclick_anim";
7412          }
7413          program { name: "button_unclick_anim";
7414             action: STATE_SET "default" 0.0;
7415             target: "button_image";
7416             target: "image";
7417             target: "icon_clipper";
7418          }
7419          program { name: "touch_snd";
7420             signal: "mouse,clicked,1";
7421             source: "over1";
7422             action: PLAY_SAMPLE "touch_sound" 1.0;
7423             after: button_unclick3;
7424          }
7425          program { name: "button_unclick3";
7426             action: SIGNAL_EMIT "elm,action,click" "";
7427          }
7428          program { name: "disable";
7429             signal: "elm,state,disabled";
7430             source: "elm";
7431             action: STATE_SET "disabled" 0.0;
7432             target: "disabler";
7433             target: "button_image";
7434             target: "icon_clipper";
7435          }
7436          program { name: "enable";
7437             signal: "elm,state,enabled";
7438             source: "elm";
7439             action: STATE_SET "default" 0.0;
7440             target: "disabler";
7441             target: "button_image";
7442             target: "icon_clipper";
7443          }
7444       }
7445    }
7446
7447 //////////////////////////////////////////////////////////////////////////////////////
7448    group { name: "elm/button/base/editfield_clear";
7449       images {
7450          image: "00_edit_field_clear.png" COMP;
7451       }
7452       parts {
7453          part { name: "button_image";
7454             type: RECT;
7455             scale: 1;
7456             description { state: "default" 0.0;
7457                visible: 0;
7458             }
7459             description { state: "clicked" 0.0;
7460                inherit: "default" 0.0;
7461             }
7462             description { state: "disabled" 0.0;
7463                inherit: "default" 0.0;
7464             }
7465             description { state: "focused" 0.0;
7466                inherit: "default" 0.0;
7467             }
7468          }
7469          part { name: "clear_button";
7470             scale: 1;
7471             mouse_events: 0;
7472             clip_to: "clear_button.clipper";
7473             description { state: "default" 0.0;
7474                min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7475                max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7476                fixed: 1 1;
7477                align: 0.5 0.5;
7478                image.normal: "00_edit_field_clear.png";
7479             }
7480          }
7481          part { name: "clear_button.clipper";
7482             type: RECT;
7483             description { state: "default" 0.0;
7484                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7485             }
7486             description { state: "clicked" 0.0;
7487                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7488             }
7489             description { state: "disabled" 0.0;
7490                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7491             }
7492          }
7493          part { name: "over2";
7494             type: RECT;
7495             ignore_flags: ON_HOLD;
7496             description { state: "default" 0.0;
7497                color: 0 0 0 0;
7498             }
7499          }
7500          part { name: "over3";
7501             type: RECT;
7502             repeat_events: 1;
7503             description { state: "default" 0.0;
7504                color: 0 0 0 0;
7505             }
7506          }
7507          part { name: "disabler";
7508             type: RECT;
7509             description { state: "default" 0.0;
7510                color: 0 0 0 0;
7511                visible: 0;
7512             }
7513             description { state: "disabled" 0.0;
7514                inherit: "default" 0.0;
7515                visible: 1;
7516             }
7517          }
7518       }
7519       programs {
7520          program { name: "button_click";
7521             signal: "mouse,down,1";
7522             source: "over2";
7523             action: SIGNAL_EMIT "elm,action,press" "";
7524             after: "button_click_anim";
7525          }
7526          program { name: "button_click_anim";
7527             action: STATE_SET "clicked" 0.0;
7528             target: "button_image";
7529             target: "clear_button.clipper";
7530          }
7531          program { name: "button_double_click";
7532             signal: "mouse,down,1,double";
7533             source: "over1";
7534             after: "button_click_anim";
7535          }
7536          program { name: "button_unclick";
7537             signal: "mouse,up,1";
7538             source: "over3";
7539             action: SIGNAL_EMIT "elm,action,unpress" "";
7540             after: "button_unclick_anim";
7541          }
7542          program { name: "button_unclick_anim";
7543             action: STATE_SET "default" 0.0;
7544             target: "button_image";
7545             target: "clear_button.clipper";
7546          }
7547          program { name: "touch_snd";
7548             signal: "mouse,clicked,1";
7549             source: "over2";
7550             action: PLAY_SAMPLE "touch_sound" 1.0;
7551             after: button_unclick3;
7552          }
7553          program { name: "button_unclick3";
7554             action: SIGNAL_EMIT "elm,action,click" "";
7555          }
7556          program { name: "disable";
7557             signal: "elm,state,disabled";
7558             source: "elm";
7559             action: STATE_SET "disabled" 0.0;
7560             target: "button_image";
7561             target: "disabler";
7562             target: "clear_button.clipper";
7563          }
7564          program { name: "enable";
7565             signal: "elm,state,enabled";
7566             source: "elm";
7567             action: STATE_SET "default" 0.0;
7568             target: "button_image";
7569             target: "disabler";
7570             target: "clear_button.clipper";
7571          }
7572       }
7573    }
7574
7575 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
7576    group { name: "elm/button/base/"style_name; \
7577       data { \
7578          item: "focus_highlight" "on"; \
7579       } \
7580       images { \
7581          image: image_normal COMP; \
7582       } \
7583       parts { \
7584          part { name: "elm.swallow.content"; \
7585             type: SWALLOW; \
7586             scale: 1; \
7587             description { state: "default" 0.0; \
7588             } \
7589          } \
7590          part { name: "focus_image"; \
7591             scale: 1; \
7592             mouse_events: 0; \
7593             repeat_events: 1; \
7594             description { state: "default" 0.0; \
7595                visible: 0; \
7596                image { \
7597                   normal: image_normal; \
7598                   border: 6 6 6 6; \
7599                   border_scale: 1; \
7600                } \
7601             } \
7602             description { state: "focused" 0.0; \
7603                inherit: "default" 0.0; \
7604                visible: 1; \
7605             } \
7606          } \
7607          part { name: "over2"; \
7608             type: RECT; \
7609             repeat_events: 1; \
7610             ignore_flags: ON_HOLD; \
7611             description { state: "default" 0.0; \
7612                color: 0 0 0 0; \
7613             } \
7614          } \
7615          part { name: "over3"; \
7616             type: RECT; \
7617             repeat_events: 1; \
7618             description { state: "default" 0.0; \
7619                color: 0 0 0 0; \
7620             } \
7621          } \
7622       } \
7623       programs { \
7624          program { name: "button_click"; \
7625             signal: "mouse,down,1"; \
7626             source: "over2"; \
7627             action: SIGNAL_EMIT "elm,action,press" ""; \
7628          } \
7629          program { name: "button_unclick"; \
7630             signal: "mouse,up,1"; \
7631             source: "over3"; \
7632             action: SIGNAL_EMIT "elm,action,unpress" ""; \
7633          } \
7634          program { name: "button_click3"; \
7635             signal: "mouse,clicked,1"; \
7636             source: "over2"; \
7637             action: SIGNAL_EMIT "elm,action,click" ""; \
7638          } \
7639          program { name: "action_focus"; \
7640             signal: "elm,action,focus_highlight,show"; \
7641             source: "elm"; \
7642             action: STATE_SET "focused" 0.0; \
7643             target: "focus_image"; \
7644          } \
7645          program { name: "action_unfocus"; \
7646             signal: "elm,action,focus_highlight,hide"; \
7647             source: "elm"; \
7648             action: STATE_SET "default" 0.0; \
7649             target: "focus_image"; \
7650          } \
7651       } \
7652    } \
7653
7654 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
7655 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
7656 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
7657 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
7658
7659    group { name: "elm/button/base/search_icon";
7660       images {
7661          image: "00_search_icon.png" COMP;
7662       }
7663       parts {
7664          part { name: "search_icon";
7665             scale: 1;
7666             mouse_events: 0;
7667             clip_to: "search_icon.clipper";
7668             description { state: "default" 0.0;
7669                min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7670                max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7671                fixed: 1 1;
7672                align: 0.5 0.5;
7673                image.normal: "00_search_icon.png";
7674             }
7675          }
7676          part { name: "search_icon.clipper";
7677             type: RECT;
7678             description { state: "default" 0.0;
7679                color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
7680             }
7681             description { state: "disabled" 0.0;
7682                color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
7683             }
7684          }
7685          part { name: "over2";
7686             type: RECT;
7687             ignore_flags: ON_HOLD;
7688             description { state: "default" 0.0;
7689                color: 0 0 0 0;
7690             }
7691          }
7692          part { name: "over3";
7693             type: RECT;
7694             repeat_events: 1;
7695             description { state: "default" 0.0;
7696                color: 0 0 0 0;
7697             }
7698          }
7699          part { name: "disabler";
7700             type: RECT;
7701             description { state: "default" 0.0;
7702                color: 0 0 0 0;
7703                visible: 0;
7704             }
7705             description { state: "disabled" 0.0;
7706                inherit: "default" 0.0;
7707                visible: 1;
7708             }
7709          }
7710       }
7711       programs {
7712          program { name: "button_click";
7713             signal: "mouse,down,1";
7714             source: "over2";
7715             action: SIGNAL_EMIT "elm,action,press" "";
7716          }
7717          program { name: "button_double_click";
7718             signal: "mouse,down,1,double";
7719             source: "over1";
7720          }
7721          program { name: "button_unclick";
7722             signal: "mouse,up,1";
7723             source: "over3";
7724             action: SIGNAL_EMIT "elm,action,unpress" "";
7725          }
7726          program { name: "touch_snd";
7727             signal: "mouse,clicked,1";
7728             source: "over2";
7729             action: PLAY_SAMPLE "touch_sound" 1.0;
7730             after: "button_unclick3";
7731          }
7732          program { name: "button_unclick3";
7733             action: SIGNAL_EMIT "elm,action,click" "";
7734          }
7735          program { name: "disable";
7736             signal: "elm,state,disabled";
7737             source: "elm";
7738             action: STATE_SET "disabled" 0.0;
7739             target: "disabler";
7740             target: "search_icon.clipper";
7741          }
7742          program { name: "enable";
7743             signal: "elm,state,enabled";
7744             source: "elm";
7745             action: STATE_SET "default" 0.0;
7746             target: "disabler";
7747             target: "search_icon.clipper";
7748          }
7749       }
7750    }
7751
7752    group { name: "elm/button/base/search_clear";
7753       inherit: "elm/button/base/editfield_clear";
7754       images {
7755          image: "00_field_btn_clear.png" COMP;
7756       }
7757       parts {
7758          part { name: "clear_button";
7759             scale: 1;
7760             mouse_events: 0;
7761             clip_to: "clear_button.clipper";
7762             description { state: "default" 0.0;
7763                min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7764                max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7765                fixed: 1 1;
7766                align: 0.5 0.5;
7767                image.normal: "00_field_btn_clear.png";
7768             }
7769          }
7770          part { name: "clear_button.clipper";
7771             type: RECT;
7772             description { state: "default" 0.0;
7773                color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7774             }
7775             description { state: "clicked" 0.0;
7776                color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7777             }
7778             description { state: "disabled" 0.0;
7779                color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7780             }
7781          }
7782       }
7783    }
7784
7785 #undef BUTTON_STATE_ENABLED
7786 #undef BUTTON_STATE_DISABLED
7787 #undef BUTTON_LANDSCAPE_DISABLED
7788 #undef BUTTON_LANDSCAPE_ENABLED