dbd82e3cf775d8b9f360847f2e4df2c3a9175b9e
[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          style { name: "btn_base_style1_dim";
62             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
63             tag: "br" "\n";
64             tag: "ps" "ps";
65             tag: "tab" "\t";
66          }
67          style { name: "btn_base_style1_focus";
68             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
69             tag: "br" "\n";
70             tag: "ps" "ps";
71             tag: "tab" "\t";
72          }
73       }
74       script {
75          public button_state = BUTTON_STATE_ENABLED;
76       }
77       parts {
78          part { name: "button_image";
79             scale: 1;
80             description { state: "default" 0.0;
81                image {
82                   normal: "00_button_01.png";
83                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
84                   border_scale: 1;
85                }
86             }
87             description { state: "clicked" 0.0;
88                inherit: "default" 0.0;
89                image.normal: "00_button_01_press.png";
90             }
91             description { state: "disabled" 0.0;
92                inherit: "default" 0.0;
93                image.normal: "00_button_01_dim.png";
94             }
95             description { state: "focused" 0.0;
96                inherit: "default" 0.0;
97                image.normal: "00_button_01_press.png";
98             }
99          }
100          part { name: "focus_image";
101             scale: 1;
102             mouse_events: 0;
103             repeat_events: 1;
104             description { state: "default" 0.0;
105                visible: 0;
106                rel1.to : "button_image";
107                rel2.to : "button_image";
108                image {
109                   normal: "00_button_01_focus.png";
110                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
111                   border_scale: 1;
112                }
113             }
114             description { state: "focused" 0.0;
115                inherit: "default" 0.0;
116                visible: 1;
117             }
118          }
119          part { name: "padding_left_top";
120             type: RECT;
121             scale: 1;
122             mouse_events: 0;
123             description { state: "default" 0.0;
124                align: 0.0 0.0;
125                rel2.relative: 0.0 0.0;
126                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
127                fixed: 1 1;
128                visible: 0;
129             }
130          }
131          part { name: "bg";
132             type: RECT;
133             scale: 1;
134             mouse_events: 0;
135             description { state: "default" 0.0;
136                min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
137                visible: 0;
138             }
139             description { state: "visible" 0.0;
140                inherit: "default" 0.0;
141                min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
142             }
143             description { state: "icononly" 0.0;
144                inherit: "default" 0.0;
145                min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
146             }
147          }
148          part { name: "padding_right_bottom";
149             type: RECT;
150             scale: 1;
151             mouse_events: 0;
152             description { state: "default" 0.0;
153                align: 1.0 1.0;
154                rel1.relative: 1.0 1.0;
155                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
156                fixed: 1 1;
157                visible: 0;
158             }
159          }
160          part { name: "icon_rect";
161             type: RECT;
162             scale: 1;
163             mouse_events: 0;
164             description { state: "default" 0.0;
165                visible: 0;
166                min: 0 0;
167                fixed: 1 0;
168                rel1 {
169                   relative: 1.0 1.0;
170                   to: "padding_left_top";
171                }
172                rel2 {
173                   relative: 1.0 0.0;
174                   to_x: "padding_left_top";
175                   to_y: "padding_right_bottom";
176                }
177                align: 0.0 0.5;
178             }
179             description { state: "visible" 0.0;
180                inherit: "default" 0.0;
181                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
182                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
183             }
184             description { state: "icononly" 0.0;
185                inherit: "default" 0.0;
186             }
187          }
188          part { name: "padding_after_icon";
189             type: RECT;
190             scale: 1;
191             mouse_events: 0;
192             description { state: "default" 0.0; //when only icon or no icon is there
193                align: 0.0 0.0;
194                rel1 {
195                   relative: 1.0 0.0;
196                   to: "icon_rect";
197                }
198                rel2.to: "icon_rect";
199                fixed: 1 0;
200                min: 0 0;
201                visible: 0;
202             }
203             description { state: "visible" 0.0;
204                inherit: "default" 0.0;
205                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
206             }
207             description { state: "icononly" 0.0;
208                inherit: "default" 0.0;
209             }
210          }
211          part { name: "padding_before_text";
212             type: RECT;
213             scale: 1;
214             mouse_events: 0;
215             description { state: "default" 0.0; //when only icon or no icon is there
216                align: 1.0 0.5;
217                rel1 {
218                   relative: 0.0 1.0;
219                   to_x: "elm.text";
220                   to_y: "padding_left_top";
221                }
222                rel2 {
223                   relative: 0.0 0.0;
224                   to_x: "elm.text";
225                   to_y: "padding_right_bottom";
226                }
227                fixed: 1 0;
228                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
229                visible: 0;
230             }
231          }
232          part { name: "elm.swallow.content";
233             type: SWALLOW;
234             scale: 1;
235             clip_to: "clipper";
236             description { state: "default" 0.0;
237                visible: 0;
238                align: 0.0 0.5;
239                rel1 {
240                   relative: 1.0 1.0;
241                   to: "padding_left_top";
242                }
243                rel2 {
244                   relative: 1.0 0.0;
245                   to_x: "padding_left_top";
246                   to_y: "padding_right_bottom";
247                }
248                fixed: 1 0;
249             }
250             description { state: "visible" 0.0;
251                fixed: 1 0;
252                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
253                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
254                align: 1.0 0.5;
255                rel1 {
256                   relative: 0.0 1.0;
257                   to_x: "padding_before_text";
258                   to_y: "padding_left_top";
259                }
260                rel2 {
261                   relative: 0.0 0.0;
262                   to_x: "padding_before_text";
263                   to_y: "padding_right_bottom";
264                }
265             }
266             description { state: "icononly" 0.0;
267                min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
268                max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
269             }
270          }
271          part { name: "elm.text";
272             type: TEXTBLOCK;
273             mouse_events: 0;
274             scale: 1;
275             clip_to: "clipper";
276             description { state: "default" 0.0;
277                visible: 0;
278                rel1 {
279                   relative: 1.0 1.0;
280                   to_x: "padding_after_icon";
281                   to_y: "padding_left_top";
282                }
283                rel2 {
284                   relative: 0.0 0.0;
285                   to: "padding_right_bottom";
286                } 
287                text {
288                   style: "btn_base_style1";
289                }
290             }
291             description { state: "visible" 0.0;
292                inherit: "default" 0.0;
293                visible: 1;
294             }
295             description { state: "clicked" 0.0;
296                inherit: "default" 0.0;
297                visible: 1;
298                text {
299                   style: "btn_base_style1_pressed";
300                }
301             }
302             description { state: "disabled" 0.0;
303                inherit: "default" 0.0;
304             }
305             description { state: "disabled_visible" 0.0;
306                inherit: "default" 0.0;
307                visible: 1;
308                text {
309                   style: "btn_base_style1_dim";
310                }
311             }
312             description { state: "focused" 0.0;
313                inherit: "default" 0.0;
314                visible: 1;
315                text {
316                   style: "btn_base_style1_focus";
317                }
318             }
319          }
320          part { name: "over2";
321             type: RECT;
322             repeat_events: 1;
323             ignore_flags: ON_HOLD;
324             description { state: "default" 0.0;
325                color: 0 0 0 0;
326             }
327          }
328          part { name: "over3";
329             type: RECT;
330             repeat_events: 1;
331             description { state: "default" 0.0;
332                color: 0 0 0 0;
333             }
334          }
335          part { name: "clipper";
336             type: RECT;
337             description { state: "default" 0.0;
338                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
339             }
340             description { state: "disabled" 0.0;
341                inherit: "default" 0.0;
342                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
343             }
344          }
345          part { name: "disabler";
346             type: RECT;
347             description { state: "default" 0.0;
348                color: 0 0 0 0;
349                visible: 0;
350             }
351             description { state: "disabled" 0.0;
352                inherit: "default" 0.0;
353                visible: 1;
354             }
355          }
356       }
357       programs {
358          program { name: "button_click";
359             signal: "mouse,down,1";
360             source: "over2";
361             action: SIGNAL_EMIT "elm,action,press" "";
362             after: "button_click_anim";
363          }
364          program { name: "button_click_anim";
365             action: STATE_SET "clicked" 0.0;
366             target: "button_image";
367             after: "text_clicked";
368          }
369          program { name: "text_clicked";
370             script {
371                new st[31];
372                new Float:vl;
373                get_state(PART:"elm.text", st, 30, vl);
374                if (!strcmp(st, "visible"))
375                  set_state(PART:"elm.text", "clicked", 0.0);
376             }
377          }
378          program { name: "button_double_click";
379             signal: "mouse,down,1,double";
380             source: "over2";
381             after: "button_click_anim";
382          }
383          program { name: "button_unpress";
384             action: SIGNAL_EMIT "elm,action,unpress" "";
385          }
386          program { name: "button_mouseout_clicked";
387             signal: "mouse,up,1";
388             source: "over3";
389             script {
390                new st[31];
391                new Float:vl;
392                get_state(PART:"elm.swallow.content", st, 30, vl);
393                if (strcmp(st, "icononly"))
394                  {
395                     emit("elm,action,default,text,set", "");
396                     set_state(PART:"elm.text", "visible", 0.0);
397                  }
398                if (get_int(button_state) != BUTTON_STATE_DISABLED)
399                  set_state(PART:"button_image", "default", 0.0);
400             }
401             after: button_unpress;
402          }
403          program { name: "touch_snd";
404             signal: "mouse,clicked,1";
405             source: "over2";
406             action: PLAY_SAMPLE "touch_sound" 1.0;
407             after: button_unclick3;
408          }
409          program { name: "button_unclick3";
410             action: SIGNAL_EMIT "elm,action,click" "";
411          }
412          program { name: "text_show";
413             signal: "elm,state,text,visible";
414             source: "elm";
415             script {
416                new st[31];
417                new Float:vl;
418                get_state(PART:"elm.swallow.content", st, 30, vl);
419                if (!strcmp(st, "icononly"))
420                  {
421                     set_state(PART:"elm.swallow.content", "visible", 0.0);
422                     set_state(PART:"icon_rect", "visible", 0.0);
423                     set_state(PART:"padding_after_icon", "visible", 0.0);
424                     set_state(PART:"bg", "visible", 0.0);
425                  }
426                if (get_int(button_state) != BUTTON_STATE_DISABLED)
427                  set_state(PART:"elm.text", "visible", 0.0);
428                else
429                  set_state(PART:"elm.text", "disabled_visible", 0.0);
430             }
431          }
432          program { name: "text_hide";
433             signal: "elm,state,text,hidden";
434             source: "elm";
435             script {
436                new st[31];
437                new Float:vl;
438                get_state(PART:"elm.swallow.content", st, 30, vl);
439                if (!strcmp(st, "visible"))
440                  {
441                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
442                     set_state(PART:"icon_rect", "icononly", 0.0);
443                     set_state(PART:"padding_after_icon", "icononly", 0.0);
444                     set_state(PART:"bg", "icononly", 0.0);
445                  }
446                set_state(PART:"elm.text", "default", 0.0);
447             }
448          }
449          program { name: "icon_show";
450             signal: "elm,state,icon,visible";
451             source: "elm";
452             script {
453                new st[31];
454                new Float:vl;
455                get_state(PART:"elm.text", st, 30, vl);
456                if (!strcmp(st, "visible"))
457                  {
458                     set_state(PART:"elm.swallow.content", "visible", 0.0);
459                     set_state(PART:"icon_rect", "visible", 0.0);
460                     set_state(PART:"padding_after_icon", "visible", 0.0);
461                     set_state(PART:"bg", "visible", 0.0);
462                  }
463                else
464                  {
465                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
466                     set_state(PART:"icon_rect", "icononly", 0.0);
467                     set_state(PART:"padding_after_icon", "icononly", 0.0);
468                     set_state(PART:"bg", "icononly", 0.0);
469                  }
470             }
471          }
472          program { name: "icon_hide";
473             signal: "elm,state,icon,hidden";
474             source: "elm";
475             action: STATE_SET "default" 0.0;
476             target: "elm.swallow.content";
477             target: "padding_after_icon";
478             target: "icon_rect";
479             target: "bg";
480          }
481          program { name: "disable";
482             signal: "elm,state,disabled";
483             source: "elm";
484             action: STATE_SET "disabled" 0.0;
485             target: "button_image";
486             target: "disabler";
487             target: "clipper";
488             after: "disable_text";
489          }
490          program { name: "disable_text";
491             script {
492                new st[31];
493                new Float:vl;
494                get_state(PART:"elm.text", st, 30, vl);
495                if (!strcmp(st, "visible"))
496                  set_state(PART:"elm.text", "disabled_visible", 0.0);
497                else
498                  set_state(PART:"elm.text", "disabled", 0.0);
499                set_int(button_state, BUTTON_STATE_DISABLED);
500             }
501          }
502          program { name: "enable";
503             signal: "elm,state,enabled";
504             source: "elm";
505             action: STATE_SET "default" 0.0;
506             target: "button_image";
507             target: "clipper";
508             target: "disabler";
509             after: "enable_text";
510          }
511          program { name: "enable_text";
512             script {
513                new st[31];
514                new Float:vl;
515                get_state(PART:"elm.text", st, 30, vl);
516                if (!strcmp(st, "disabled_visible"))
517                  set_state(PART:"elm.text", "visible", 0.0);
518                else
519                  set_state(PART:"elm.text", "default", 0.0);
520                set_int(button_state, BUTTON_STATE_ENABLED);
521             }
522          }
523          program { name: "action_focus";
524             signal: "elm,action,focus_highlight,show";
525             source: "elm";
526             action: STATE_SET "focused" 0.0;
527             target: "focus_image";
528          }
529          program { name: "action_unfocus";
530             signal: "elm,action,focus_highlight,hide";
531             source: "elm";
532             action: STATE_SET "default" 0.0;
533             target: "focus_image";
534          }
535       }
536    }
537
538 //////////////////////////////////////////////////////////////
539    group { name: "elm/button/base/style1/auto_expand";
540       inherit: "elm/button/base/style1";
541       parts {
542          part { name: "elm.text";
543             type: TEXTBLOCK;
544             mouse_events: 0;
545             scale: 1;
546             clip_to: "clipper";
547             description { state: "default" 0.0;
548                visible: 0;
549                rel1 {
550                   relative: 1.0 1.0;
551                   to_x: "padding_after_icon";
552                   to_y: "padding_left_top";
553                }
554                rel2 {
555                   relative: 0.0 0.0;
556                   to: "padding_right_bottom";
557                }
558                text {
559                   style: "btn_base_style1";
560                   min: 1 0;
561                   max: 1 0;
562                }
563             }
564             description { state: "visible" 0.0;
565                inherit: "default" 0.0;
566                visible: 1;
567             }
568             description { state: "clicked" 0.0;
569                inherit: "default" 0.0;
570                visible: 1;
571                text {
572                   style: "btn_base_style1_pressed";
573                }
574             }
575             description { state: "disabled" 0.0;
576                inherit: "default" 0.0;
577             }
578             description { state: "disabled_visible" 0.0;
579                inherit: "default" 0.0;
580                visible: 1;
581                text {
582                   style: "btn_base_style1_dim";
583                }
584             }
585             description { state: "focused" 0.0;
586                inherit: "default" 0.0;
587                visible: 1;
588                text {
589                   style: "btn_base_style1_focus";
590                }
591             }
592          }
593       }
594    }
595
596 //////////////////////////////////////////////////////////////////////////////////////
597    group { name: "elm/button/base/datetime/ampm/default";
598       alias: "elm/button/base/datetime_ampm/default";
599       inherit: "elm/button/base/style1/auto_expand";
600       parts {
601          part { name: "button_image";
602             scale: 1;
603             description { state: "default" 0.0;
604                image {
605                   normal: "00_button_01.png";
606                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
607                   border_scale: 1;
608                }
609                min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
610                max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
611             }
612             description { state: "clicked" 0.0;
613                inherit: "default" 0.0;
614                image.normal: "00_button_01_press.png";
615             }
616             description { state: "disabled" 0.0;
617                inherit: "default" 0.0;
618                image.normal: "00_button_01_dim.png";
619             }
620             description { state: "focused" 0.0;
621                inherit: "default" 0.0;
622                image.normal: "00_button_01_press.png";
623             }
624          }
625          part { name: "bg";
626             type: RECT;
627             scale: 1;
628             mouse_events: 0;
629             description { state: "default" 0.0;
630                min: 0 0;
631                visible: 0;
632             }
633             description { state: "visible" 0.0;
634                inherit: "default" 0.0;
635                min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
636             }
637             description { state: "icononly" 0.0;
638                inherit: "default" 0.0;
639             }
640          }
641          part { name: "elm.text";
642             type: TEXTBLOCK;
643             mouse_events: 0;
644             scale: 1;
645             clip_to: "clipper";
646             description { state: "default" 0.0;
647                visible: 0;
648                fixed: 1 1;
649                text {
650                   style: "btn_base_style1";
651                   size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
652                   min: 1 1;
653                }
654             }
655             description { state: "visible" 0.0;
656                inherit: "default" 0.0;
657                visible: 1;
658             }
659             description { state: "clicked" 0.0;
660                inherit: "default" 0.0;
661                visible: 1;
662                text {
663                   style: "btn_base_style1_pressed";
664                }
665             }
666             description { state: "disabled" 0.0;
667                inherit: "default" 0.0;
668             }
669             description { state: "disabled_visible" 0.0;
670                inherit: "default" 0.0;
671                visible: 1;
672                text {
673                   style: "btn_base_style1_dim";
674                }
675             }
676             description { state: "focused" 0.0;
677                inherit: "default" 0.0;
678                visible: 1;
679                text {
680                   style: "btn_base_style1_focus";
681                }
682             }
683          }
684       }
685    }
686
687 ///////////////////////////////////////////////////////////////////////////////////////
688    group { name: "elm/button/base/style1/delete";
689       alias: "elm/button/base/sweep/delete";
690       alias: "elm/button/base/sweep/delete/multiline";
691       inherit: "elm/button/base/style1";
692       images {
693          image: "00_button_01_delete.png" COMP;
694          image: "00_button_01_delete_dim.png" COMP;
695          image: "00_button_01_delete_press.png" COMP;
696       }
697       styles{
698          style { name: "btn_base_style1_delete";
699             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_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";
700             tag: "br" "\n";
701             tag: "ps" "ps";
702             tag: "tab" "\t";
703          }
704          style { name: "btn_base_style1_delete_pressed";
705             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_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";
706             tag: "br" "\n";
707             tag: "ps" "ps";
708             tag: "tab" "\t";
709          }
710          style { name: "btn_base_style1_delete_dim";
711             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
712             tag: "br" "\n";
713             tag: "ps" "ps";
714             tag: "tab" "\t";
715          }
716          style { name: "btn_base_style1_delete_focus";
717             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
718             tag: "br" "\n";
719             tag: "ps" "ps";
720             tag: "tab" "\t";
721          }
722       }
723       parts {
724          part { name: "button_image";
725             scale: 1;
726             description { state: "default" 0.0;
727                image {
728                   normal: "00_button_01_delete.png";
729                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
730                   border_scale: 1;
731                }
732             }
733             description { state: "clicked" 0.0;
734                inherit: "default" 0.0;
735                image.normal: "00_button_01_delete_press.png";
736             }
737             description { state: "disabled" 0.0;
738                inherit: "default" 0.0;
739                image.normal: "00_button_01_delete_dim.png";
740             }
741             description { state: "focused" 0.0;
742                inherit: "default" 0.0;
743                image.normal: "00_button_01_delete_press.png";
744             }
745          }
746          part { name: "elm.text";
747             type: TEXTBLOCK;
748             mouse_events: 0;
749             scale: 1;
750             clip_to: "clipper";
751             description { state: "default" 0.0;
752                visible: 0;
753                rel1 {
754                   relative: 1.0 1.0;
755                   to_x: "padding_after_icon";
756                   to_y: "padding_left_top";
757                }
758                rel2 {
759                   relative: 0.0 0.0;
760                   to: "padding_right_bottom";
761                }
762                text {
763                   style: "btn_base_style1_delete";
764                }
765             }
766             description { state: "visible" 0.0;
767                inherit: "default" 0.0;
768                visible: 1;
769             }
770             description { state: "clicked" 0.0;
771                inherit: "default" 0.0;
772                visible: 1;
773                text {
774                   style: "btn_base_style1_delete_pressed";
775                }
776             }
777             description { state: "disabled" 0.0;
778                inherit: "default" 0.0;
779             }
780             description { state: "disabled_visible" 0.0;
781                inherit: "default" 0.0;
782                visible: 1;
783                text {
784                   style: "btn_base_style1_delete_dim";
785                }
786             }
787             description { state: "focused" 0.0;
788                inherit: "default" 0.0;
789                visible: 1;
790                text {
791                   style: "btn_base_style1_delete_focus";
792                }
793             }
794          }
795       }
796    }
797
798 ///////////////////////////////////////////////////////////////////////////////////////
799    group { name: "elm/button/base/search_button/text";
800       alias: "elm/button/base/searchbar/default";
801       inherit: "elm/button/base/style1";
802       styles{
803          style { name: "btn_base_search";
804             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
805             tag: "br" "\n";
806             tag: "ps" "ps";
807             tag: "tab" "\t";
808          }
809          style { name: "btn_base_search_pressed";
810             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
811             tag: "br" "\n";
812             tag: "ps" "ps";
813             tag: "tab" "\t";
814          }
815          style { name: "btn_base_search_dim";
816             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
817             tag: "br" "\n";
818             tag: "ps" "ps";
819             tag: "tab" "\t";
820          }
821          style { name: "btn_base_search_focus";
822             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
823             tag: "br" "\n";
824             tag: "ps" "ps";
825             tag: "tab" "\t";
826          }
827       }
828       parts {
829          part { name: "bg";
830             type: RECT;
831             scale: 1;
832             mouse_events: 0;
833             description { state: "default" 0.0;
834                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
835                visible: 0;
836             }
837             description { state: "visible" 0.0;
838                inherit: "default" 0.0;
839                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
840             }
841             description { state: "icononly" 0.0;
842                inherit: "default" 0.0;
843                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
844             }
845          }
846          part { name: "elm.text";
847             type: TEXTBLOCK;
848             mouse_events: 0;
849             clip_to: "clipper";
850             scale: 1;
851             description { state: "default" 0.0;
852                visible: 0;
853                rel1 {
854                   relative: 1.0 1.0;
855                   to_x: "padding_after_icon";
856                   to_y: "padding_left_top";
857                }
858                rel2 {
859                   relative: 0.0 0.0;
860                   to: "padding_right_bottom";
861                } 
862                text {
863                   style: "btn_base_search";
864                   min: 0 0;
865                   max: 1 0;
866                }
867             }
868             description { state: "visible" 0.0;
869                inherit: "default" 0.0;
870                visible: 1;
871             }
872             description { state: "clicked" 0.0;
873                inherit: "default" 0.0;
874                visible: 1;
875                text {
876                   style: "btn_base_search_pressed";
877                }
878             }
879             description { state: "disabled" 0.0;
880                inherit: "default" 0.0;
881             }
882             description { state: "disabled_visible" 0.0;
883                inherit: "default" 0.0;
884                visible: 1;
885                text {
886                   style: "btn_base_search_dim";
887                }
888             }
889             description { state: "focused" 0.0;
890                inherit: "default" 0.0;
891                visible: 1;
892                text {
893                   style: "btn_base_search_focus";
894                }
895             }
896          }
897       }
898    }
899
900 ///////////////////////////////////////////////////////////////////////////////////////
901    group { name: "elm/button/base/search_button/send";
902       inherit: "elm/button/base/style1";
903       images {
904          image: "00_button_01_send.png" COMP;
905          image: "00_button_01_send_dim.png" COMP;
906          image: "00_button_01_send_press.png" COMP;
907       }
908       styles{
909          style { name: "btn_base_search_send";
910             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
911             tag: "br" "\n";
912             tag: "ps" "ps";
913             tag: "tab" "\t";
914          }
915          style { name: "btn_base_search_send_pressed";
916             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
917             tag: "br" "\n";
918             tag: "ps" "ps";
919             tag: "tab" "\t";
920          }
921          style { name: "btn_base_search_send_dim";
922             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
923             tag: "br" "\n";
924             tag: "ps" "ps";
925             tag: "tab" "\t";
926          }
927          style { name: "btn_base_search_send_focus";
928             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
929             tag: "br" "\n";
930             tag: "ps" "ps";
931             tag: "tab" "\t";
932          }
933       }
934       parts {
935          part { name: "button_image";
936             scale: 1;
937             description { state: "default" 0.0;
938                image {
939                   normal: "00_button_01_send.png";
940                   border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
941                   border_scale: 1;
942                }
943             }
944             description { state: "clicked" 0.0;
945                inherit: "default" 0.0;
946                image.normal: "00_button_01_send_press.png";
947             }
948             description { state: "disabled" 0.0;
949                inherit: "default" 0.0;
950                image.normal: "00_button_01_send_dim.png";
951             }
952             description { state: "focused" 0.0;
953                inherit: "default" 0.0;
954                image.normal: "00_button_01_send_press.png";
955             }
956          }
957          part { name: "bg";
958             type: RECT;
959             scale: 1;
960             mouse_events: 0;
961             description { state: "default" 0.0;
962                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
963                visible: 0;
964             }
965             description { state: "visible" 0.0;
966                inherit: "default" 0.0;
967                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
968             }
969             description { state: "icononly" 0.0;
970                inherit: "default" 0.0;
971                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
972             }
973          }
974          part { name: "elm.text";
975             type: TEXTBLOCK;
976             mouse_events: 0;
977             clip_to: "clipper";
978             scale: 1;
979             description { state: "default" 0.0;
980                visible: 0;
981                rel1 {
982                   relative: 1.0 1.0;
983                   to_x: "padding_after_icon";
984                   to_y: "padding_left_top";
985                }
986                rel2 {
987                   relative: 0.0 0.0;
988                   to: "padding_right_bottom";
989                }
990                text {
991                   style: "btn_base_search_send";
992                   min: 0 0;
993                   max: 1 0;
994                }
995             }
996             description { state: "visible" 0.0;
997                inherit: "default" 0.0;
998                visible: 1;
999             }
1000             description { state: "clicked" 0.0;
1001                inherit: "default" 0.0;
1002                visible: 1;
1003                text {
1004                   style: "btn_base_search_send_pressed";
1005                }
1006             }
1007             description { state: "disabled" 0.0;
1008                inherit: "default" 0.0;
1009             }
1010             description { state: "disabled_visible" 0.0;
1011                inherit: "default" 0.0;
1012                visible: 1;
1013                text {
1014                   style: "btn_base_search_send_dim";
1015                }
1016             }
1017             description { state: "focused" 0.0;
1018                inherit: "default" 0.0;
1019                visible: 1;
1020                text {
1021                   style: "btn_base_search_send_focus";
1022                }
1023             }
1024          }
1025       }
1026    }
1027
1028 ///////////////////////////////////////////////////////////////////////////////////////
1029    group { name: "elm/button/base/search_button/cancel";
1030       inherit: "elm/button/base/style1";
1031       images {
1032          image: "00_button_01_delete.png" COMP;
1033          image: "00_button_01_delete_dim.png" COMP;
1034          image: "00_button_01_delete_press.png" COMP;
1035       }
1036       styles{
1037          style { name: "btn_base_search_cancel";
1038             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1039             tag: "br" "\n";
1040             tag: "ps" "ps";
1041             tag: "tab" "\t";
1042          }
1043          style { name: "btn_base_search_cancel_pressed";
1044             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1045             tag: "br" "\n";
1046             tag: "ps" "ps";
1047             tag: "tab" "\t";
1048          }
1049          style { name: "btn_base_search_cancel_dim";
1050             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1051             tag: "br" "\n";
1052             tag: "ps" "ps";
1053             tag: "tab" "\t";
1054          }
1055          style { name: "btn_base_search_cancel_focus";
1056             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1057             tag: "br" "\n";
1058             tag: "ps" "ps";
1059             tag: "tab" "\t";
1060          }
1061       }
1062       parts {
1063          part { name: "button_image";
1064             scale: 1;
1065             description { state: "default" 0.0;
1066                image {
1067                   normal: "00_button_01_delete.png";
1068                   border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
1069                   border_scale: 1;
1070                }
1071             }
1072             description { state: "clicked" 0.0;
1073                inherit: "default" 0.0;
1074                image.normal: "00_button_01_delete_press.png";
1075             }
1076             description { state: "disabled" 0.0;
1077                inherit: "default" 0.0;
1078                image.normal: "00_button_01_delete_dim.png";
1079             }
1080             description { state: "focused" 0.0;
1081                inherit: "default" 0.0;
1082                image.normal: "00_button_01_delete_press.png";
1083             }
1084          }
1085          part { name: "bg";
1086             type: RECT;
1087             scale: 1;
1088             mouse_events: 0;
1089             description { state: "default" 0.0;
1090                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1091                visible: 0;
1092             }
1093             description { state: "visible" 0.0;
1094                inherit: "default" 0.0;
1095                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1096             }
1097             description { state: "icononly" 0.0;
1098                inherit: "default" 0.0;
1099                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1100             }
1101          }
1102          part { name: "elm.text";
1103             type: TEXTBLOCK;
1104             mouse_events: 0;
1105             clip_to: "clipper";
1106             scale: 1;
1107             description { state: "default" 0.0;
1108                visible: 0;
1109                rel1 {
1110                   relative: 1.0 1.0;
1111                   to_x: "padding_after_icon";
1112                   to_y: "padding_left_top";
1113                }
1114                rel2 {
1115                   relative: 0.0 0.0;
1116                   to: "padding_right_bottom";
1117                }
1118                text {
1119                   style: "btn_base_search_cancel";
1120                   min: 0 0;
1121                   max: 1 0;
1122                }
1123             }
1124             description { state: "visible" 0.0;
1125                inherit: "default" 0.0;
1126                visible: 1;
1127             }
1128             description { state: "clicked" 0.0;
1129                inherit: "default" 0.0;
1130                visible: 1;
1131                text {
1132                   style: "btn_base_search_cancel_pressed";
1133                }
1134             }
1135             description { state: "disabled" 0.0;
1136                inherit: "default" 0.0;
1137             }
1138             description { state: "disabled_visible" 0.0;
1139                inherit: "default" 0.0;
1140                visible: 1;
1141                text {
1142                   style: "btn_base_search_cancel_dim";
1143                }
1144             }
1145             description { state: "focused" 0.0;
1146                inherit: "default" 0.0;
1147                visible: 1;
1148                text {
1149                   style: "btn_base_search_cancel_focus";
1150                }
1151             }
1152          }
1153       }
1154    }
1155
1156 ///////////////////////////////////////////////////////////////////////////////////////
1157 /*   group { name: "elm/button/base/style2";
1158       alias: "elm/button/base/text_only/style2";
1159       alias: "elm/button/base/style2/multiline";
1160       data {
1161          item: "focus_highlight" "on";
1162       }
1163       images {
1164          image: "00_button_01.png" COMP;
1165          image: "00_button_01_press.png" COMP;
1166          image: "00_button_01_dim.png" COMP;
1167          image: "00_button_01_focus.png" COMP;
1168       }
1169       script {
1170          public button_state = BUTTON_STATE_ENABLED;
1171       }
1172       parts {
1173          part { name: "button_image";
1174             scale: 1;
1175             description { state: "default" 0.0;
1176                image {
1177                   normal: "00_button_01.png";
1178                   border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1179                   border_scale: 1;
1180                }
1181             }
1182             description { state: "clicked" 0.0;
1183                inherit: "default" 0.0;
1184                image.normal: "00_button_01_press.png";
1185             }
1186             description { state: "disabled" 0.0;
1187                inherit: "default" 0.0;
1188                image.normal: "00_button_01_dim.png";
1189             }
1190             description { state: "focused" 0.0;
1191                inherit: "default" 0.0;
1192                image.normal: "00_button_01_press.png";
1193             }
1194          }
1195          part { name: "focus_image";
1196             scale: 1;
1197             mouse_events: 0;
1198             repeat_events: 1;
1199             description { state: "default" 0.0;
1200                visible: 0;
1201                rel1.to : "button_image";
1202                rel2.to : "button_image";
1203                image {
1204                   normal: "00_button_01_focus.png";
1205                   border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1206                   border_scale: 1;
1207                }
1208             }
1209             description { state: "focused" 0.0;
1210                inherit: "default" 0.0;
1211                visible: 1;
1212             }
1213          }
1214          part { name: "padding_left_top";
1215             type: RECT;
1216             scale: 1;
1217             mouse_events: 0;
1218             description { state: "default" 0.0;
1219                align: 0.0 0.0;
1220                rel2.relative: 0.0 0.0;
1221                min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1222                fixed: 1 1;
1223                visible: 0;
1224             }
1225          }
1226          part { name: "bg";
1227             type: RECT;
1228             scale: 1;
1229             mouse_events: 0;
1230             description { state: "default" 0.0;
1231                min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1232                visible: 0;
1233             }
1234             description { state: "visible" 0.0;
1235                inherit: "default" 0.0;
1236                min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1237             }
1238             description { state: "icononly" 0.0;
1239                inherit: "default" 0.0;
1240                min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1241             }
1242          }
1243          part { name: "padding_right_bottom";
1244             type: RECT;
1245             scale: 1;
1246             mouse_events: 0;
1247             description { state: "default" 0.0;
1248                align: 1.0 1.0;
1249                rel1.relative: 1.0 1.0;
1250                min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1251                fixed: 1 1;
1252                visible: 0;
1253             }
1254          }
1255          part { name: "icon_rect";
1256             type: RECT;
1257             scale: 1;
1258             mouse_events: 0;
1259             description { state: "default" 0.0;
1260                visible: 0;
1261                min: 0 0;
1262                fixed: 1 0;
1263                rel1 {
1264                   relative: 1.0 1.0;
1265                   to: "padding_left_top";
1266                }
1267                rel2 {
1268                   relative: 1.0 0.0;
1269                   to_x: "padding_left_top";
1270                   to_y: "padding_right_bottom";
1271                }
1272                align: 0.0 0.5;
1273             }
1274             description { state: "visible" 0.0;
1275                inherit: "default" 0.0;
1276                min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1277                max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1278             }
1279             description { state: "icononly" 0.0;
1280                inherit: "default" 0.0;
1281             }
1282          }
1283          part { name: "padding_after_icon";
1284             type: RECT;
1285             scale: 1;
1286             mouse_events: 0;
1287             description { state: "default" 0.0; //when only icon or no icon is there
1288                visible: 0;
1289                min: 0 0;
1290                fixed: 1 0;
1291                rel1 {
1292                   relative: 1.0 0.0;
1293                   to: "icon_rect";
1294                }
1295                rel2.to: "icon_rect";
1296                align: 0.0 0.0;
1297             }
1298             description { state: "visible" 0.0;
1299                inherit: "default" 0.0;
1300                min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1301             }
1302             description { state: "icononly" 0.0;
1303                inherit: "default" 0.0;
1304             }
1305          }
1306          part { name: "padding_before_text";
1307             type: RECT;
1308             scale: 1;
1309             mouse_events: 0;
1310             description { state: "default" 0.0; //when only icon or no icon is there
1311                align: 1.0 0.5;
1312                rel1 {
1313                   relative: 0.0 1.0;
1314                   to_x: "elm.text";
1315                   to_y: "padding_left_top";
1316                }
1317                rel2 {
1318                   relative: 0.0 0.0;
1319                   to_x: "elm.text";
1320                   to_y: "padding_right_bottom";
1321                }
1322                fixed: 1 0;
1323                min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1324                visible: 0;
1325             }
1326          }
1327          part { name: "elm.swallow.content";
1328             type: SWALLOW;
1329             scale: 1;
1330             clip_to: "clipper";
1331             description { state: "default" 0.0;
1332                visible: 0;
1333                align: 0.0 0.5;
1334                rel1 {
1335                   relative: 1.0 1.0;
1336                   to: "padding_left_top";
1337                }
1338                rel2 {
1339                   relative: 1.0 0.0;
1340                   to_x: "padding_left_top";
1341                   to_y: "padding_right_bottom";
1342                }
1343                fixed: 1 0;
1344             }
1345             description { state: "visible" 0.0;
1346                fixed: 1 0;
1347                min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1348                max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1349                align: 1.0 0.5;
1350                rel1 {
1351                   relative: 0.0 1.0;
1352                   to_x: "padding_before_text";
1353                   to_y: "padding_left_top";
1354                }
1355                rel2 {
1356                   relative: 0.0 0.0;
1357                   to_x: "padding_before_text";
1358                   to_y: "padding_right_bottom";
1359                }
1360             }
1361             description { state: "icononly" 0.0;
1362                min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1363                max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1364             }
1365          }
1366          part { name: "elm.text";
1367             type: TEXT;
1368             mouse_events: 0;
1369             scale: 1;
1370             clip_to: "clipper";
1371             effect: SHADOW BOTTOM;
1372             description { state: "default" 0.0;
1373                visible: 0;
1374                rel1 {
1375                   relative: 1.0 1.0;
1376                   to_x: "padding_after_icon";
1377                   to_y: "padding_left_top";
1378                }
1379                rel2 {
1380                   relative: 0.0 0.0;
1381                   to: "padding_right_bottom";
1382                }
1383                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1384                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1385                text {
1386                   font: "Tizen:style=Regular";
1387                   size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1388                   min: 0 0;
1389                   max: 1 0;
1390                   text_class: "tizen";
1391                }
1392             }
1393             description { state: "visible" 0.0;
1394                inherit: "default" 0.0;
1395                visible: 1;
1396             }
1397             description { state: "clicked" 0.0;
1398                inherit: "default" 0.0;
1399                visible: 1;
1400                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1401             }
1402             description { state: "disabled" 0.0;
1403                inherit: "default" 0.0;
1404             }
1405             description { state: "disabled_visible" 0.0;
1406                inherit: "default" 0.0;
1407                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1408                visible: 1;
1409             }
1410             description { state: "focused" 0.0;
1411                inherit: "default" 0.0;
1412                visible: 1;
1413                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1414             }
1415          }
1416          part { name: "over2";
1417             type: RECT;
1418             repeat_events: 1;
1419             ignore_flags: ON_HOLD;
1420             description { state: "default" 0.0;
1421                color: 0 0 0 0;
1422             }
1423          }
1424          part { name: "over3";
1425             type: RECT;
1426             repeat_events: 1;
1427             description { state: "default" 0.0;
1428                color: 0 0 0 0;
1429             }
1430          }
1431          part { name: "clipper";
1432             type: RECT;
1433             description { state: "default" 0.0;
1434                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1435             }
1436             description { state: "disabled" 0.0;
1437                inherit: "default" 0.0;
1438                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1439             }
1440          }
1441          part { name: "disabler";
1442             type: RECT;
1443             description { state: "default" 0.0;
1444                color: 0 0 0 0;
1445                visible: 0;
1446             }
1447             description { state: "disabled" 0.0;
1448                inherit: "default" 0.0;
1449                visible: 1;
1450             }
1451          }
1452       }
1453       programs {
1454          program { name: "button_click";
1455             signal: "mouse,down,1";
1456             source: "over2";
1457             action: SIGNAL_EMIT "elm,action,press" "";
1458             after: "button_click_anim";
1459          }
1460          program { name: "button_click_anim";
1461             action: STATE_SET "clicked" 0.0;
1462             target: "button_image";
1463             after: "text_clicked";
1464          }
1465          program { name: "text_clicked";
1466             script {
1467                new st[31];
1468                new Float:vl;
1469                get_state(PART:"elm.text", st, 30, vl);
1470                if (!strcmp(st, "visible"))
1471                  set_state(PART:"elm.text", "clicked", 0.0);
1472             }
1473          }
1474          program { name: "button_double_click";
1475             signal: "mouse,down,1,double";
1476             source: "over2";
1477             after: "button_click_anim";
1478          }
1479          program { name: "button_unpress";
1480             action: SIGNAL_EMIT "elm,action,unpress" "";
1481          }
1482          program { name: "button_mouseout_clicked";
1483             signal: "mouse,up,1";
1484             source: "over3";
1485             script {
1486                new st[31];
1487                new Float:vl;
1488                get_state(PART:"elm.swallow.content", st, 30, vl);
1489                if (strcmp(st, "icononly"))
1490                  {
1491                     emit("elm,action,default,text,set", "");
1492                     set_state(PART:"elm.text", "visible", 0.0);
1493                  }
1494                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1495                  set_state(PART:"button_image", "default", 0.0);
1496             }
1497             after: button_unpress;
1498          }
1499          program { name: "touch_snd";
1500             signal: "mouse,clicked,1";
1501             source: "over2";
1502             action: PLAY_SAMPLE "touch_sound" 1.0;
1503             after: button_unclick3;
1504          }
1505          program { name: "button_unclick3";
1506             action: SIGNAL_EMIT "elm,action,click" "";
1507          }
1508          program { name: "text_show";
1509             signal: "elm,state,text,visible";
1510             source: "elm";
1511             script {
1512                new st[31];
1513                new Float:vl;
1514                get_state(PART:"elm.swallow.content", st, 30, vl);
1515                if (!strcmp(st, "icononly"))
1516                  {
1517                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1518                     set_state(PART:"icon_rect", "visible", 0.0);
1519                     set_state(PART:"padding_after_icon", "visible", 0.0);
1520                     set_state(PART:"bg", "visible", 0.0);
1521                  }
1522                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1523                  set_state(PART:"elm.text", "visible", 0.0);
1524                else
1525                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1526             }
1527          }
1528          program { name: "text_hide";
1529             signal: "elm,state,text,hidden";
1530             source: "elm";
1531             script {
1532                new st[31];
1533                new Float:vl;
1534                get_state(PART:"elm.swallow.content", st, 30, vl);
1535                if (!strcmp(st, "visible"))
1536                  {
1537                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1538                     set_state(PART:"icon_rect", "icononly", 0.0);
1539                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1540                     set_state(PART:"bg", "icononly", 0.0);
1541                  }
1542                set_state(PART:"elm.text", "default", 0.0);
1543             }
1544          }
1545          program { name: "icon_show";
1546             signal: "elm,state,icon,visible";
1547             source: "elm";
1548             script {
1549                new st[31];
1550                new Float:vl;
1551                get_state(PART:"elm.text", st, 30, vl);
1552                if (!strcmp(st, "visible"))
1553                  {
1554                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1555                     set_state(PART:"icon_rect", "visible", 0.0);
1556                     set_state(PART:"padding_after_icon", "visible", 0.0);
1557                     set_state(PART:"bg", "visible", 0.0);
1558                  }
1559                else
1560                  {
1561                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1562                     set_state(PART:"icon_rect", "icononly", 0.0);
1563                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1564                     set_state(PART:"bg", "icononly", 0.0);
1565                  }
1566             }
1567          }
1568          program { name: "icon_hide";
1569             signal: "elm,state,icon,hidden";
1570             source: "elm";
1571             action: STATE_SET "default" 0.0;
1572             target: "elm.swallow.content";
1573             target: "padding_after_icon";
1574             target: "icon_rect";
1575             target: "bg";
1576          }
1577          program { name: "disable";
1578             signal: "elm,state,disabled";
1579             source: "elm";
1580             action: STATE_SET "disabled" 0.0;
1581             target: "button_image";
1582             target: "clipper";
1583             target: "disabler";
1584             after: "disable_text";
1585          }
1586          program { name: "disable_text";
1587             script {
1588                new st[31];
1589                new Float:vl;
1590                get_state(PART:"elm.text", st, 30, vl);
1591                if (!strcmp(st, "visible"))
1592                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1593                else
1594                  set_state(PART:"elm.text", "disabled", 0.0);
1595                set_int(button_state, BUTTON_STATE_DISABLED);
1596             }
1597          }
1598          program { name: "enable";
1599             signal: "elm,state,enabled";
1600             source: "elm";
1601             action: STATE_SET "default" 0.0;
1602             target: "button_image";
1603             target: "clipper";
1604             target: "disabler";
1605             after: "enable_text";
1606          }
1607          program { name: "enable_text";
1608             script {
1609                new st[31];
1610                new Float:vl;
1611                get_state(PART:"elm.text", st, 30, vl);
1612                if (!strcmp(st, "disabled_visible"))
1613                  set_state(PART:"elm.text", "visible", 0.0);
1614                else
1615                  set_state(PART:"elm.text", "default", 0.0);
1616                set_int(button_state, BUTTON_STATE_ENABLED);
1617             }
1618          }
1619          program { name: "action_focus";
1620             signal: "elm,action,focus_highlight,show";
1621             source: "elm";
1622             action: STATE_SET "focused" 0.0;
1623             target: "focus_image";
1624          }
1625          program { name: "action_unfocus";
1626             signal: "elm,action,focus_highlight,hide";
1627             source: "elm";
1628             action: STATE_SET "default" 0.0;
1629             target: "focus_image";
1630          }
1631       }
1632    }
1633
1634 ///////////////////////////////////////////////////////////////////////////////////////
1635    group { name: "elm/button/base/sweep";
1636       alias: "elm/button/base/text_only/sweep";
1637       alias: "elm/button/base/hidden";
1638       alias: "elm/button/base/sweep/multiline";
1639       data {
1640          item: "focus_highlight" "on";
1641       }
1642       images {
1643          image: "00_button_01.png" COMP;
1644          image: "00_button_01_press.png" COMP;
1645          image: "00_button_01_dim.png" COMP;
1646          image: "00_button_01_focus.png" COMP;
1647       }
1648       script {
1649          public button_state = BUTTON_STATE_ENABLED;
1650       }
1651       styles{
1652          style { name: "btn_sweep_multiline";
1653             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";
1654             tag: "br" "\n";
1655             tag: "ps" "ps";
1656             tag: "tab" "\t";
1657          }
1658       }
1659       parts {
1660          part { name: "button_image";
1661             scale: 1;
1662             description { state: "default" 0.0;
1663                min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1664                image {
1665                   normal: "00_button_01.png";
1666                   border: BUTTON_SWEEP_BG_BORDER_INC;
1667                   border_scale: 1;
1668                }
1669             }
1670             description { state: "clicked" 0.0;
1671                inherit: "default" 0.0;
1672                image.normal: "00_button_01_press.png";
1673             }
1674             description { state: "disabled" 0.0;
1675                inherit: "default" 0.0;
1676                image.normal: "00_button_01_dim.png";
1677             }
1678             description { state: "focused" 0.0;
1679                inherit: "default" 0.0;
1680                image.normal: "00_button_01_press.png";
1681             }
1682          }
1683          part { name: "focus_image";
1684             scale: 1;
1685             mouse_events: 0;
1686             repeat_events: 1;
1687             description { state: "default" 0.0;
1688                visible: 0;
1689                rel1.to : "button_image";
1690                rel2.to : "button_image";
1691                image {
1692                   normal: "00_button_01_focus.png";
1693                   border: BUTTON_SWEEP_BG_BORDER_INC;
1694                   border_scale: 1;
1695                }
1696             }
1697             description { state: "focused" 0.0;
1698                inherit: "default" 0.0;
1699                visible: 1;
1700             }
1701          }
1702          part { name: "padding_left_top";
1703             type: RECT;
1704             scale: 1;
1705             mouse_events: 0;
1706             description { state: "default" 0.0;
1707                align: 0.0 0.0;
1708                rel2.relative: 0.0 0.0;
1709                min: BUTTON_SWEEP_PADDING_MIN_INC;
1710                fixed: 1 1;
1711                visible: 0;
1712             }
1713          }
1714          part { name: "padding_right_bottom";
1715             type: RECT;
1716             scale: 1;
1717             mouse_events: 0;
1718             description { state: "default" 0.0;
1719                align: 1.0 1.0;
1720                rel1.relative: 1.0 1.0;
1721                min: BUTTON_SWEEP_PADDING_MIN_INC;
1722                fixed: 1 1;
1723                visible: 0;
1724             }
1725          }
1726          part { name: "icon_rect";
1727             type: RECT;
1728             scale: 1;
1729             mouse_events: 0;
1730             description { state: "default" 0.0;
1731                min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1732                fixed: 1 0;
1733                rel1 {
1734                   relative: 0.0 1.0;
1735                   to_x: "elm.swallow.content";
1736                   to_y: "padding_left_top";
1737                }
1738                rel2 {
1739                   relative: 1.0 0.0;
1740                   to_x: "elm.swallow.content";
1741                   to_y: "padding_right_bottom";
1742                }
1743                align: 0.0 0.5;
1744                color: 0 0 0 0;
1745             }
1746          }
1747          part { name: "padding_icon_text";
1748             type: RECT;
1749             scale: 1;
1750             mouse_events: 0;
1751             description { state: "default" 0.0; //when only icon or no icon is there
1752                visible: 0;
1753                fixed: 1 0;
1754                min: 0 0;
1755                rel1 {
1756                   relative: 1.0 0.0;
1757                   to: "icon_rect";
1758                }
1759                rel2.to: "icon_rect";
1760                align: 0.0 0.0;
1761             }
1762             description { state: "visible" 0.0; //when icon is visible
1763                inherit: "default" 0.0;
1764                min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1765             }
1766             description { state: "icononly" 0.0;
1767                inherit: "default" 0.0;
1768             }
1769          }
1770          part { name: "elm.swallow.content";
1771             type: SWALLOW;
1772             scale: 1;
1773             clip_to: "clipper";
1774             description { state: "default" 0.0;
1775                visible: 0;
1776                align: 0.0 0.5;
1777                rel1 {
1778                   relative: 1.0 1.0;
1779                   to: "padding_left_top";
1780                }
1781                rel2 {
1782                   relative: 1.0 0.0;
1783                   to_x: "padding_left_top";
1784                   to_y: "padding_right_bottom";
1785                }
1786                fixed: 1 0;
1787             }
1788             description { state: "visible" 0.0;
1789                inherit: "default" 0.0;
1790                min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1791                max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1792                visible: 1;
1793                aspect: 1.0 1.0;
1794                aspect_preference: VERTICAL;
1795             }
1796             description { state: "icononly" 0.0;
1797                min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1798                max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1799             }
1800          }
1801          part { name: "elm.text";
1802             type: TEXTBLOCK;
1803             mouse_events: 0;
1804             effect: SHADOW BOTTOM;
1805             scale: 1;
1806             clip_to: "clipper";
1807             description { state: "default" 0.0;
1808                fixed: 1 1;
1809                visible: 0;
1810                rel1 {
1811                   relative: 1.0 1.0;
1812                   to_x: "padding_icon_text";
1813                   to_y: "padding_left_top";
1814                }
1815                rel2 {
1816                   relative: 0.0 0.0;
1817                   to: "padding_right_bottom";
1818                }
1819                color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1820                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1821                text {
1822                   style: "btn_sweep_multiline";
1823                   align: 0.5 0.45;
1824                }
1825             }
1826             description { state: "visible" 0.0;
1827                inherit: "default" 0.0;
1828                visible: 1;
1829                min: BUTTON_SWEEP_TEXT_MIN_INC;
1830             }
1831             description { state: "clicked" 0.0;
1832                inherit: "default" 0.0;
1833                visible: 1;
1834                min: 0 0;
1835                color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1836             }
1837             description { state: "disabled" 0.0;
1838                inherit: "default" 0.0;
1839             }
1840             description { state: "disabled_visible" 0.0;
1841                inherit: "default" 0.0;
1842                color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1843                visible: 1;
1844                min: BUTTON_SWEEP_TEXT_MIN_INC;
1845             }
1846             description { state: "focused" 0.0;
1847                inherit: "default" 0.0;
1848                visible: 1;
1849                min: 0 0;
1850                color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1851             }
1852          }
1853          part { name: "over2";
1854             type: RECT;
1855             repeat_events: 1;
1856             ignore_flags: ON_HOLD;
1857             description { state: "default" 0.0;
1858                color: 0 0 0 0;
1859             }
1860          }
1861          part { name: "over3";
1862             type: RECT;
1863             repeat_events: 1;
1864             description { state: "default" 0.0;
1865                color: 0 0 0 0;
1866             }
1867          }
1868          part { name: "clipper";
1869             type: RECT;
1870             description { state: "default" 0.0;
1871                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1872             }
1873             description { state: "disabled" 0.0;
1874                inherit: "default" 0.0;
1875                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1876             }
1877          }
1878          part { name: "disabler";
1879             type: RECT;
1880             description { state: "default" 0.0;
1881                color: 0 0 0 0;
1882                visible: 0;
1883             }
1884             description { state: "disabled" 0.0;
1885                inherit: "default" 0.0;
1886                visible: 1;
1887             }
1888          }
1889       }
1890       programs {
1891          program { name: "button_click";
1892             signal: "mouse,down,1";
1893             source: "over2";
1894             action: SIGNAL_EMIT "elm,action,press" "";
1895             after: "button_click_anim";
1896          }
1897          program { name: "button_click_anim";
1898             action: STATE_SET "clicked" 0.0;
1899             target: "button_image";
1900             after: "text_clicked";
1901          }
1902          program { name: "text_clicked";
1903             script {
1904                new st[31];
1905                new Float:vl;
1906                get_state(PART:"elm.text", st, 30, vl);
1907                if (!strcmp(st, "visible"))
1908                  set_state(PART:"elm.text", "clicked", 0.0);
1909             }
1910          }
1911          program { name: "button_double_click";
1912             signal: "mouse,down,1,double";
1913             source: "over2";
1914             after: "button_click_anim";
1915          }
1916          program { name: "button_unpress";
1917             action: SIGNAL_EMIT "elm,action,unpress" "";
1918          }
1919          program { name: "button_mouseout_clicked";
1920             signal: "mouse,up,1";
1921             source: "over3";
1922             script {
1923                new st[31];
1924                new Float:vl;
1925                get_state(PART:"elm.swallow.content", st, 30, vl);
1926                if (strcmp(st, "icononly"))
1927                  {
1928                     emit("elm,action,default,text,set", "");
1929                     set_state(PART:"elm.text", "visible", 0.0);
1930                  }
1931                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1932                  set_state(PART:"button_image", "default", 0.0);
1933             }
1934             after: button_unpress;
1935          }
1936          program { name: "touch_snd";
1937             signal: "mouse,clicked,1";
1938             source: "over2";
1939             action: PLAY_SAMPLE "touch_sound" 1.0;
1940             after: button_unclick3;
1941          }
1942          program { name: "button_unclick3";
1943             action: SIGNAL_EMIT "elm,action,click" "";
1944          }
1945          program { name: "text_show";
1946             signal: "elm,state,text,visible";
1947             source: "elm";
1948             script {
1949                new st[31];
1950                new Float:vl;
1951                get_state(PART:"elm.swallow.content", st, 30, vl);
1952                if (!strcmp(st, "icononly"))
1953                  {
1954                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1955                     set_state(PART:"padding_icon_text", "visible", 0.0);
1956                  }
1957                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1958                  set_state(PART:"elm.text", "visible", 0.0);
1959                else
1960                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1961             }
1962          }
1963          program { name: "text_hide";
1964             signal: "elm,state,text,hidden";
1965             source: "elm";
1966             script {
1967                new st[31];
1968                new Float:vl;
1969                get_state(PART:"elm.swallow.content", st, 30, vl);
1970                if (!strcmp(st, "visible"))
1971                  {
1972                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1973                     set_state(PART:"padding_icon_text", "icononly", 0.0);
1974                  }
1975                set_state(PART:"elm.text", "default", 0.0);
1976             }
1977          }
1978          program { name: "icon_show";
1979             signal: "elm,state,icon,visible";
1980             source: "elm";
1981             script {
1982                new st[31];
1983                new Float:vl;
1984                get_state(PART:"elm.text", st, 30, vl);
1985                if (!strcmp(st, "visible"))
1986                  {
1987                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1988                     set_state(PART:"padding_icon_text", "visible", 0.0);
1989                  }
1990                else
1991                  {
1992                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1993                     set_state(PART:"padding_icon_text", "icononly", 0.0);
1994                  }
1995             }
1996          }
1997          program { name: "icon_hide";
1998             signal: "elm,state,icon,hidden";
1999             source: "elm";
2000             action: STATE_SET "default" 0.0;
2001             target: "elm.swallow.content";
2002             target: "padding_icon_text";
2003          }
2004          program { name: "disable";
2005             signal: "elm,state,disabled";
2006             source: "elm";
2007             action: STATE_SET "disabled" 0.0;
2008             target: "button_image";
2009             target: "clipper";
2010             target: "disabler";
2011             after: "disable_text";
2012          }
2013          program { name: "disable_text";
2014             script {
2015                new st[31];
2016                new Float:vl;
2017                get_state(PART:"elm.text", st, 30, vl);
2018                if (!strcmp(st, "visible"))
2019                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2020                else
2021                  set_state(PART:"elm.text", "disabled", 0.0);
2022                set_int(button_state, BUTTON_STATE_DISABLED);
2023             }
2024          }
2025          program { name: "enable";
2026             signal: "elm,state,enabled";
2027             source: "elm";
2028             action: STATE_SET "default" 0.0;
2029             target: "button_image";
2030             target: "clipper";
2031             target: "disabler";
2032             after: "enable_text";
2033          }
2034          program { name: "enable_text";
2035             script {
2036                new st[31];
2037                new Float:vl;
2038                get_state(PART:"elm.text", st, 30, vl);
2039                if (!strcmp(st, "disabled_visible"))
2040                  set_state(PART:"elm.text", "visible", 0.0);
2041                else
2042                  set_state(PART:"elm.text", "default", 0.0);
2043                set_int(button_state, BUTTON_STATE_ENABLED);
2044             }
2045          }
2046          program { name: "action_focus";
2047             signal: "elm,action,focus_highlight,show";
2048             source: "elm";
2049             action: STATE_SET "focused" 0.0;
2050             target: "focus_image";
2051          }
2052          program { name: "action_unfocus";
2053             signal: "elm,action,focus_highlight,hide";
2054             source: "elm";
2055             action: STATE_SET "default" 0.0;
2056             target: "focus_image";
2057          }
2058       }
2059    }
2060
2061 ///////////////////////////////////////////////////////////////////////////////////////
2062    group { name: "elm/button/base/sweep/delete";
2063       inherit: "elm/button/base/sweep";
2064       alias: "elm/button/base/sweep/delete/multiline";
2065       images {
2066          image: "00_button_01_delete_press.png" COMP;
2067          image: "00_button_01_delete.png" COMP;
2068          image: "00_button_01_delete_dim.png" COMP;
2069       }
2070       styles{
2071          style { name: "btn_sweep_delete_multiline";
2072             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";
2073             tag: "br" "\n";
2074             tag: "ps" "ps";
2075             tag: "tab" "\t";
2076          }
2077       }
2078       parts {
2079          part { name: "button_image";
2080             scale: 1;
2081             description { state: "default" 0.0;
2082                min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
2083                image {
2084                   normal: "00_button_01_delete.png";
2085                   border: BUTTON_SWEEP_BG_BORDER_INC;
2086                   border_scale: 1;
2087                }
2088             }
2089             description { state: "clicked" 0.0;
2090                inherit: "default" 0.0;
2091                image.normal: "00_button_01_delete_press.png";
2092             }
2093             description { state: "disabled" 0.0;
2094                inherit: "default" 0.0;
2095                image.normal: "00_button_01_delete_dim.png";
2096             }
2097             description { state: "focused" 0.0;
2098                inherit: "default" 0.0;
2099                image.normal: "00_button_01_delete_press.png";
2100             }
2101          }
2102          part { name: "elm.text";
2103             type: TEXTBLOCK;
2104             mouse_events: 0;
2105             effect: SHADOW BOTTOM;
2106             scale: 1;
2107             clip_to: "clipper";
2108             description { state: "default" 0.0;
2109                fixed: 1 1;
2110                visible: 0;
2111                rel1 {
2112                   relative: 1.0 1.0;
2113                   to_x: "padding_icon_text";
2114                   to_y: "padding_left_top";
2115                }
2116                rel2 {
2117                   relative: 0.0 0.0;
2118                   to: "padding_right_bottom";
2119                }
2120                color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
2121                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2122                text {
2123                   style: "btn_sweep_multiline";
2124                   align: 0.5 0.45;
2125                }
2126             }
2127             description { state: "visible" 0.0;
2128                inherit: "default" 0.0;
2129                visible: 1;
2130                min: BUTTON_SWEEP_TEXT_MIN_INC;
2131             }
2132             description { state: "clicked" 0.0;
2133                inherit: "default" 0.0;
2134                visible: 1;
2135                min: 0 0;
2136                color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
2137             }
2138             description { state: "disabled" 0.0;
2139                inherit: "default" 0.0;
2140             }
2141             description { state: "disabled_visible" 0.0;
2142                inherit: "default" 0.0;
2143                color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
2144                visible: 1;
2145                min: BUTTON_SWEEP_TEXT_MIN_INC;
2146             }
2147             description { state: "focused" 0.0;
2148                inherit: "default" 0.0;
2149                visible: 1;
2150                min: 0 0;
2151                color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2152             }
2153          }
2154       }
2155    }
2156 */
2157 ///////////////////////////////////////////////////////////////////////////////////////
2158    group { name: "elm/button/base/popup_button/default";
2159       alias: "elm/button/base/popup_button/menustyle";
2160       alias: "elm/button/base/popup_button/liststyle";
2161       alias: "elm/button/base/popup_button/volumebarstyle";
2162       alias: "elm/button/base/popup_button/customstyle";
2163       alias: "elm/button/base/popup_button/verticalbuttonstyle";
2164       alias: "elm/button/base/popup_button/default/multiline";
2165       data {
2166          item: "focus_highlight" "on";
2167       }
2168       images {
2169          image: "00_popup_button.png" COMP;
2170          image: "00_popup_button_dim.png" COMP;
2171          image: "00_popup_button_press.png" COMP;
2172          image: "00_popup_button_focus.png" COMP;
2173       }
2174       styles{
2175          style { name: "btn_base_popup_button";
2176             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";
2177             tag: "br" "\n";
2178             tag: "ps" "ps";
2179             tag: "tab" "\t";
2180          }
2181          style { name: "btn_base_popup_button_pressed";
2182             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";
2183             tag: "br" "\n";
2184             tag: "ps" "ps";
2185             tag: "tab" "\t";
2186          }
2187          style { name: "btn_base_popup_button_dim";
2188             base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
2189             tag: "br" "\n";
2190             tag: "ps" "ps";
2191             tag: "tab" "\t";
2192          }
2193          style { name: "btn_base_popup_button_focus";
2194             base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
2195             tag: "br" "\n";
2196             tag: "ps" "ps";
2197             tag: "tab" "\t";
2198          }
2199       }
2200       script {
2201          public button_state = BUTTON_STATE_ENABLED;
2202       }
2203       parts {
2204          part { name: "button_image";
2205             scale: 1;
2206             description { state: "default" 0.0;
2207                min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2208                image {
2209                   normal: "00_popup_button.png";
2210                   border: BUTTON_POPUP_BG_BORDER_INC;
2211                   border_scale: 1;
2212                }
2213             }
2214             description { state: "clicked" 0.0;
2215                inherit: "default" 0.0;
2216                image.normal: "00_popup_button_press.png";
2217             }
2218             description { state: "disabled" 0.0;
2219                inherit: "default" 0.0;
2220                image.normal: "00_popup_button_dim.png";
2221             }
2222             description { state: "focused" 0.0;
2223                inherit: "default" 0.0;
2224                image.normal: "00_popup_button_focus.png";
2225             }
2226          }
2227          part { name: "focus_image";
2228             scale: 1;
2229             mouse_events: 0;
2230             repeat_events: 1;
2231             description { state: "default" 0.0;
2232                visible: 0;
2233                rel1.to : "button_image";
2234                rel2.to : "button_image";
2235                image {
2236                   normal: "00_popup_button_focus.png";
2237                   border: BUTTON_POPUP_BG_BORDER_INC;
2238                   border_scale: 1;
2239                }
2240             }
2241             description { state: "focused" 0.0;
2242                inherit: "default" 0.0;
2243                visible: 1;
2244             }
2245          }
2246          part { name: "padding_left_top";
2247             type: RECT;
2248             scale: 1;
2249             mouse_events: 0;
2250             description { state: "default" 0.0;
2251                align: 0.0 0.0;
2252                rel2.relative: 0.0 0.0;
2253                min: BUTTON_POPUP_PADDING_MIN_INC;
2254                fixed: 1 1;
2255                visible: 0;
2256             }
2257          }
2258          part { name: "padding_right_bottom";
2259             type: RECT;
2260             scale: 1;
2261             description { state: "default" 0.0;
2262                align: 1.0 0.0;
2263                rel1.relative: 1.0 1.0;
2264                min: BUTTON_POPUP_PADDING_MIN_INC;
2265                fixed: 1 1;
2266                visible: 0;
2267             }
2268          }
2269          part { name: "padding_icon_text";
2270             type: RECT;
2271             scale: 1;
2272             description { state: "default" 0.0; //when only icon or no icon is there
2273                align: 0.0 0.0;
2274                rel1 {
2275                   relative: 1.0 0.0;
2276                   to: "elm.swallow.content";
2277                }
2278                rel2.to: "elm.swallow.content";
2279                fixed: 1 0;
2280                min: 0 0;
2281                visible: 0;
2282             }
2283             description { state: "icononly" 0.0;
2284                inherit: "default" 0.0;
2285             }
2286             description { state: "visible" 0.0; //when icon is visible
2287                inherit: "default" 0.0;
2288                min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2289             }
2290          }
2291          part { name: "elm.swallow.content";
2292             type: SWALLOW;
2293             scale: 1;
2294             clip_to: "clipper";
2295             description { state: "default" 0.0;
2296                visible: 0;
2297                align: 0.0 0.5;
2298                rel1 {
2299                   relative: 1.0 1.0;
2300                   to: "padding_left_top";
2301                }
2302                rel2 {
2303                   relative: 1.0 0.0;
2304                   to_x: "padding_left_top";
2305                   to_y: "padding_right_bottom";
2306                }
2307                fixed: 1 0;
2308             }
2309             description { state: "visible" 0.0;
2310                inherit: "default" 0.0;
2311                fixed: 1 0;
2312                visible: 1;
2313                aspect: 1.0 1.0;
2314                aspect_preference: VERTICAL;
2315             }
2316             description { state: "icononly" 0.0;
2317                inherit: "default" 0.0;
2318                min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2319                visible: 1;
2320                align: 0.5 0.5;
2321             }
2322          }
2323          part { name: "elm.text";
2324             type: TEXTBLOCK;
2325             mouse_events: 0;
2326             scale: 1;
2327             clip_to: "clipper";
2328             description { state: "default" 0.0;
2329                visible: 0;
2330                rel1 {
2331                   relative: 1.0 1.0;
2332                   to_x: "padding_icon_text";
2333                   to_y: "padding_left_top";
2334                }
2335                rel2 {
2336                   relative: 0.0 0.0;
2337                   to: "padding_right_bottom";
2338                }
2339                text {
2340                   style: "btn_base_popup_button";
2341                   min: 0 0;
2342                }
2343             }
2344             description { state: "visible" 0.0;
2345                inherit: "default" 0.0;
2346                visible: 1;
2347                min: BUTTON_POPUP_TEXT_MIN_INC;
2348             }
2349             description { state: "clicked" 0.0;
2350                inherit: "default" 0.0;
2351                visible: 1;
2352                text {
2353                   style: "btn_base_popup_button_pressed";
2354                   min: 0 0;
2355                }
2356             }
2357             description { state: "disabled" 0.0;
2358                inherit: "default" 0.0;
2359             }
2360             description { state: "disabled_visible" 0.0;
2361                inherit: "default" 0.0;
2362                visible: 1;
2363                text {
2364                   style: "btn_base_popup_button_dim";
2365                }
2366                min: BUTTON_POPUP_TEXT_MIN_INC;
2367             }
2368             description { state: "focused" 0.0;
2369                inherit: "default" 0.0;
2370                visible: 1;
2371                text {
2372                   style: "btn_base_popup_button_dim";
2373                   min: 0 0;
2374                }
2375             }
2376          }
2377          part { name: "over2";
2378             type: RECT;
2379             repeat_events: 1;
2380             ignore_flags: ON_HOLD;
2381             description { state: "default" 0.0;
2382                color: 0 0 0 0;
2383             }
2384          }
2385          part { name: "over3";
2386             type: RECT;
2387             repeat_events: 1;
2388             description { state: "default" 0.0;
2389                color: 0 0 0 0;
2390             }
2391          }
2392          part { name: "clipper";
2393             type: RECT;
2394             description { state: "default" 0.0;
2395                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2396             }
2397             description { state: "disabled" 0.0;
2398                inherit: "default" 0.0;
2399                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2400             }
2401          }
2402          part { name: "disabler";
2403             type: RECT;
2404             description { state: "default" 0.0;
2405                color: 0 0 0 0;
2406                visible: 0;
2407             }
2408             description { state: "disabled" 0.0;
2409                inherit: "default" 0.0;
2410                visible: 1;
2411             }
2412          }
2413       }
2414       programs {
2415          program { name: "button_click";
2416             signal: "mouse,down,1";
2417             source: "over2";
2418             action: SIGNAL_EMIT "elm,action,press" "";
2419             after: "button_click_anim";
2420          }
2421          program { name: "button_click_anim";
2422             action: STATE_SET "clicked" 0.0;
2423             target: "button_image";
2424             after: "text_clicked";
2425          }
2426          program { name: "text_clicked";
2427             script {
2428                new st[31];
2429                new Float:vl;
2430                get_state(PART:"elm.text", st, 30, vl);
2431                if (!strcmp(st, "visible"))
2432                  set_state(PART:"elm.text", "clicked", 0.0);
2433             }
2434          }
2435          program { name: "button_double_click";
2436             signal: "mouse,down,1,double";
2437             source: "over2";
2438             after: "button_click_anim";
2439          }
2440          program { name: "button_unpress";
2441             action: SIGNAL_EMIT "elm,action,unpress" "";
2442          }
2443          program { name: "button_mouseout_clicked";
2444             signal: "mouse,up,1";
2445             source: "over3";
2446             script {
2447                new st[31];
2448                new Float:vl;
2449                get_state(PART:"elm.swallow.content", st, 30, vl);
2450                if (strcmp(st, "icononly"))
2451                  {
2452                     emit("elm,action,default,text,set", "");
2453                     set_state(PART:"elm.text", "visible", 0.0);
2454                  }
2455                if (get_int(button_state) != BUTTON_STATE_DISABLED)
2456                  set_state(PART:"button_image", "default", 0.0);
2457             }
2458             after: button_unpress;
2459          }
2460          program { name: "touch_snd";
2461             signal: "mouse,clicked,1";
2462             source: "over2";
2463             action: PLAY_SAMPLE "touch_sound" 1.0;
2464             after: button_unclick3;
2465          }
2466          program { name: "button_unclick3";
2467             action: SIGNAL_EMIT "elm,action,click" "";
2468          }
2469          program { name: "text_show";
2470             signal: "elm,state,text,visible";
2471             source: "elm";
2472             script {
2473                new st[31];
2474                new Float:vl;
2475                get_state(PART:"elm.swallow.content", st, 30, vl);
2476                if (!strcmp(st, "icononly"))
2477                  {
2478                     set_state(PART:"elm.swallow.content", "visible", 0.0);
2479                     set_state(PART:"padding_icon_text", "visible", 0.0);
2480                  }
2481                if (get_int(button_state) != BUTTON_STATE_DISABLED)
2482                  set_state(PART:"elm.text", "visible", 0.0);
2483                else
2484                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2485             }
2486          }
2487          program { name: "text_hide";
2488             signal: "elm,state,text,hidden";
2489             source: "elm";
2490             script {
2491                new st[31];
2492                new Float:vl;
2493                get_state(PART:"elm.swallow.content", st, 30, vl);
2494                if (!strcmp(st, "visible"))
2495                  {
2496                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
2497                     set_state(PART:"padding_icon_text", "icononly", 0.0);
2498                  }
2499                set_state(PART:"elm.text", "default", 0.0);
2500             }
2501          }
2502          program { name: "icon_show";
2503             signal: "elm,state,icon,visible";
2504             source: "elm";
2505             script {
2506                new st[31];
2507                new Float:vl;
2508                get_state(PART:"elm.text", st, 30, vl);
2509                if (!strcmp(st, "visible"))
2510                  {
2511                     set_state(PART:"elm.swallow.content", "visible", 0.0);
2512                     set_state(PART:"padding_icon_text", "visible", 0.0);
2513                  }
2514                else
2515                  {
2516                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
2517                     set_state(PART:"padding_icon_text", "icononly", 0.0);
2518                  }
2519             }
2520          }
2521          program { name: "icon_hide";
2522             signal: "elm,state,icon,hidden";
2523             source: "elm";
2524             action: STATE_SET "default" 0.0;
2525             target: "elm.swallow.content";
2526             target: "padding_icon_text";
2527          }
2528          program { name: "disable";
2529             signal: "elm,state,disabled";
2530             source: "elm";
2531             action: STATE_SET "disabled" 0.0;
2532             target: "button_image";
2533             target: "clipper";
2534             target: "disabler";
2535             after: "disable_text";
2536          }
2537          program { name: "disable_text";
2538             script {
2539                new st[31];
2540                new Float:vl;
2541                get_state(PART:"elm.text", st, 30, vl);
2542                if (!strcmp(st, "visible"))
2543                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2544                else
2545                  set_state(PART:"elm.text", "disabled", 0.0);
2546                set_int(button_state, BUTTON_STATE_DISABLED);
2547             }
2548          }
2549          program { name: "enable";
2550             signal: "elm,state,enabled";
2551             source: "elm";
2552             action: STATE_SET "default" 0.0;
2553             target: "button_image";
2554             target: "clipper";
2555             target: "disabler";
2556             after: "enable_text";
2557          }
2558          program { name: "enable_text";
2559             script {
2560                new st[31];
2561                new Float:vl;
2562                get_state(PART:"elm.text", st, 30, vl);
2563                if (!strcmp(st, "disabled_visible"))
2564                  set_state(PART:"elm.text", "visible", 0.0);
2565                else
2566                  set_state(PART:"elm.text", "default", 0.0);
2567                set_int(button_state, BUTTON_STATE_ENABLED);
2568             }
2569          }
2570          program { name: "action_focus";
2571             signal: "elm,action,focus_highlight,show";
2572             source: "elm";
2573             action: STATE_SET "focused" 0.0;
2574             target: "focus_image";
2575          }
2576          program { name: "action_unfocus";
2577             signal: "elm,action,focus_highlight,hide";
2578             source: "elm";
2579             action: STATE_SET "default" 0.0;
2580             target: "focus_image";
2581          }
2582       }
2583    }
2584
2585 ///////////////////////////////////////////////////////////////////////////////////////
2586 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2587    group { name: "elm/button/base/"style_name; \
2588       data { \
2589          item: "focus_highlight" "on"; \
2590       } \
2591       images { \
2592          image: "00_circle_button.png" COMP; \
2593          image: "00_circle_button_press.png" COMP; \
2594          image: "00_circle_button_dim.png" COMP; \
2595          image: image_normal COMP; \
2596          image: image_press COMP; \
2597          image: 00_circle_button_focus.png COMP; \
2598       } \
2599       parts { \
2600          part { name: "button_image"; \
2601             scale: 1; \
2602             description { state: "default" 0.0; \
2603                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2604                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2605                image.normal: "00_circle_button.png"; \
2606             } \
2607             description { \
2608                state: "clicked" 0.0; \
2609                inherit: "default" 0.0; \
2610                image.normal: "00_circle_button_press.png"; \
2611             } \
2612             description { \
2613                state: "disabled" 0.0; \
2614                inherit: "default" 0.0; \
2615                image.normal: "00_circle_button_dim.png"; \
2616             } \
2617          } \
2618          part { name: "left_top_padding"; \
2619             scale: 1; \
2620             type: SPACER; \
2621             description { state: "default" 0.0; \
2622                min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2623                max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2624                fixed: 1 1; \
2625                align: 0.0 0.0; \
2626                rel1.to: "button_image"; \
2627                rel2.to: "button_image"; \
2628             } \
2629          } \
2630          part { name: "right_bottom_padding"; \
2631             scale: 1; \
2632             type: SPACER; \
2633             description { state: "default" 0.0; \
2634                min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2635                max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2636                fixed: 1 1; \
2637                align: 1.0 1.0; \
2638                rel1 { \
2639                   relative: 1.0 1.0; \
2640                   to: "button_image"; \
2641                } \
2642                rel2.to: "button_image"; \
2643             } \
2644          } \
2645          part { name: "button_center_part"; \
2646             scale: 1; \
2647             clip_to: "icon_clipper"; \
2648             description { state: "default" 0.0; \
2649                min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2650                max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2651                image.normal: image_normal; \
2652                rel1 { \
2653                   relative: 1.0 1.0; \
2654                   to: "left_top_padding"; \
2655                } \
2656                rel2 { \
2657                   relative: 0.0 0.0; \
2658                   to: "right_bottom_padding"; \
2659                } \
2660             } \
2661             description { state: "clicked" 0.0; \
2662                inherit: "default"; \
2663                image.normal: image_press; \
2664             } \
2665             description { state: "disabled" 0.0; \
2666                inherit: "default"; \
2667             } \
2668          } \
2669          part { name: "icon_clipper"; \
2670             type: RECT; \
2671             scale: 1; \
2672             description { state: "default" 0.0; \
2673                color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2674             } \
2675             description { state: "clicked" 0.0; \
2676                color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2677             } \
2678             description { state: "disabled" 0.0; \
2679                color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2680             } \
2681          } \
2682          part { name: "focus_image"; \
2683             scale: 1; \
2684             mouse_events: 0; \
2685             repeat_events: 1; \
2686               description { state: "default" 0.0; \
2687                  min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2688                  max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2689                  visible: 0; \
2690                  rel1.to : "button_image"; \
2691                  rel2.to : "button_image"; \
2692                  image { \
2693                   normal: "00_circle_button_focus.png"; \
2694                   border_scale: 1; \
2695                } \
2696             } \
2697             description { state: "focused" 0.0; \
2698                inherit: "default" 0.0; \
2699                visible: 1; \
2700             } \
2701          } \
2702          part { name: "over1"; \
2703             type: RECT; \
2704             ignore_flags: ON_HOLD; \
2705             description { state: "default" 0.0; \
2706                color: 0 0 0 0; \
2707                min: min_width min_height; \
2708             } \
2709          } \
2710          part { name: "over2"; \
2711             type: RECT; \
2712             repeat_events: 1; \
2713             description { state: "default" 0.0; \
2714                color: 0 0 0 0; \
2715             } \
2716          } \
2717          part { name: "disabler"; \
2718             type: RECT; \
2719             description { state: "default" 0.0; \
2720                color: 0 0 0 0; \
2721                visible: 0; \
2722             } \
2723             description { state: "disabled" 0.0; \
2724                inherit: "default" 0.0; \
2725                visible: 1; \
2726             } \
2727          } \
2728       } \
2729       programs { \
2730          program { name: "button_click"; \
2731             signal: "mouse,down,1"; \
2732             source: "over1"; \
2733             action: SIGNAL_EMIT "elm,action,press" ""; \
2734             after: "button_click_anim"; \
2735          } \
2736          program { name: "button_click_anim"; \
2737             action: STATE_SET "clicked" 0.0; \
2738             target: "button_image"; \
2739             target: "button_center_part"; \
2740             target: "icon_clipper"; \
2741          } \
2742          program { name: "button_double_click"; \
2743             signal: "mouse,down,1,double"; \
2744             source: "over1"; \
2745             after: "button_click_anim"; \
2746          } \
2747          program { name: "button_unclick"; \
2748             signal: "mouse,up,1"; \
2749             source: "over2"; \
2750             action: SIGNAL_EMIT "elm,action,unpress" ""; \
2751             after: "button_unclick_anim"; \
2752          } \
2753          program { name: "button_unclick_anim"; \
2754             action: STATE_SET "default" 0.0; \
2755             target: "button_image"; \
2756             target: "button_center_part"; \
2757             target: "icon_clipper"; \
2758          } \
2759          program { name: "touch_snd"; \
2760             signal: "mouse,clicked,1"; \
2761             source: "over1"; \
2762             action: PLAY_SAMPLE "touch_sound" 1.0; \
2763             after: button_unclick3; \
2764          } \
2765          program { name: "button_unclick3"; \
2766             action: SIGNAL_EMIT "elm,action,click" ""; \
2767          } \
2768          program { name: "disable"; \
2769             signal: "elm,state,disabled"; \
2770             source: "elm"; \
2771             action: STATE_SET "disabled" 0.0; \
2772             target: "disabler"; \
2773             target: "button_image"; \
2774             target: "button_center_part"; \
2775             target: "icon_clipper"; \
2776          } \
2777          program { name: "enable"; \
2778             signal: "elm,state,enabled"; \
2779             source: "elm"; \
2780             action: STATE_SET "default" 0.0; \
2781             target: "disabler"; \
2782             target: "button_image"; \
2783             target: "button_center_part"; \
2784             target: "icon_clipper"; \
2785          } \
2786          program { name: "action_focus"; \
2787             signal: "elm,action,focus_highlight,show"; \
2788             source: "elm"; \
2789             action: STATE_SET "focused" 0.0; \
2790             target: "focus_image"; \
2791          } \
2792          program { name: "action_unfocus"; \
2793             signal: "elm,action,focus_highlight,hide"; \
2794             source: "elm"; \
2795             action: STATE_SET "default" 0.0; \
2796             target: "focus_image"; \
2797          } \
2798       } \
2799    }
2800
2801 ///////////////////////////////////////////////////////////////////////////////////////
2802    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)
2803
2804 ///////////////////////////////////////////////////////////////////////////////////////
2805    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)
2806
2807 ///////////////////////////////////////////////////////////////////////////////////////
2808    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)
2809
2810 ///////////////////////////////////////////////////////////////////////////////////////
2811    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)
2812
2813 ///////////////////////////////////////////////////////////////////////////////////////
2814    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)
2815
2816 ///////////////////////////////////////////////////////////////////////////////////////
2817    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)
2818
2819 ///////////////////////////////////////////////////////////////////////////////////////
2820    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)
2821
2822 ///////////////////////////////////////////////////////////////////////////////////////
2823    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)
2824
2825 ///////////////////////////////////////////////////////////////////////////////////////
2826    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)
2827
2828 ///////////////////////////////////////////////////////////////////////////////////////
2829    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)
2830
2831 ///////////////////////////////////////////////////////////////////////////////////////
2832    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)
2833
2834 ///////////////////////////////////////////////////////////////////////////////////////
2835    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)
2836
2837 ///////////////////////////////////////////////////////////////////////////////////////
2838    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)
2839
2840 ///////////////////////////////////////////////////////////////////////////////////////
2841    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)
2842
2843 ///////////////////////////////////////////////////////////////////////////////////////
2844    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)
2845
2846 ///////////////////////////////////////////////////////////////////////////////////////
2847    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)
2848
2849 ///////////////////////////////////////////////////////////////////////////////////////
2850    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)
2851
2852 ///////////////////////////////////////////////////////////////////////////////////////
2853    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)
2854
2855 ///////////////////////////////////////////////////////////////////////////////////////
2856    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)
2857
2858 ///////////////////////////////////////////////////////////////////////////////////////
2859    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)
2860 ///////////////////////////////////////////////////////////////////////////////////////
2861
2862 ///////////////////////////////////////////////////////////////////////////////////////
2863    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)
2864 ///////////////////////////////////////////////////////////////////////////////////////
2865
2866 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2867    group { name: "elm/button/base/"style_name; \
2868       inherit: "elm/button/base/info"; \
2869       images { \
2870          image: "00_circle_button_delete.png" COMP; \
2871          image: "00_circle_button_delete_press.png" COMP; \
2872          image: "00_circle_button_delete_dim.png" COMP; \
2873          image: "00_button_warning.png" COMP; \
2874          image: "00_button_warning_press.png" COMP; \
2875       } \
2876       parts { \
2877          part { name: "button_image"; \
2878             scale: 1; \
2879             description { state: "default" 0.0; \
2880                image.normal: "00_circle_button_delete.png"; \
2881             } \
2882             description { \
2883                state: "clicked" 0.0; \
2884                inherit: "default" 0.0; \
2885                image.normal: "00_circle_button_delete_press.png"; \
2886             } \
2887             description { \
2888                state: "disabled" 0.0; \
2889                inherit: "default" 0.0; \
2890                image.normal: "00_circle_button_delete_dim.png"; \
2891             } \
2892          } \
2893          part { name: "button_center_part"; \
2894             scale: 1; \
2895             clip_to: "icon_clipper"; \
2896             description { state: "default" 0.0; \
2897                image.normal: "00_button_warning.png"; \
2898             } \
2899             description { state: "clicked" 0.0; \
2900                inherit: "default"; \
2901                image.normal: "00_button_warning_press.png"; \
2902             } \
2903             description { state: "disabled" 0.0; \
2904                inherit: "default"; \
2905             } \
2906          } \
2907          part { name: "icon_clipper"; \
2908             type: RECT; \
2909             scale: 1; \
2910             description { state: "default" 0.0; \
2911                color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2912             } \
2913             description { state: "clicked" 0.0; \
2914                color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2915             } \
2916             description { state: "disabled" 0.0; \
2917                color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2918             } \
2919          } \
2920          part { name: "over1"; \
2921             type: RECT; \
2922             ignore_flags: ON_HOLD; \
2923             description { state: "default" 0.0; \
2924                color: 0 0 0 0; \
2925                min: min_width min_height; \
2926             } \
2927          } \
2928       } \
2929    }
2930
2931 ///////////////////////////////////////////////////////////////////////////////////////
2932    BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2933
2934 ///////////////////////////////////////////////////////////////////////////////////////
2935    BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2936
2937 ///////////////////////////////////////////////////////////////////////////////////////
2938    group { name: "elm/button/base/circle/empty";
2939       data {
2940          item: "focus_highlight" "on";
2941       }
2942       images {
2943          image: "00_circle_button.png" COMP;
2944          image: "00_circle_button_press.png" COMP;
2945          image: "00_circle_button_dim.png" COMP;
2946          image: 00_circle_button_focus.png COMP;
2947       }
2948       parts {
2949          part { name: "button_image";
2950             scale: 1;
2951             description { state: "default" 0.0;
2952                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2953                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2954                fixed: 1 1;
2955                image.normal: "00_circle_button.png";
2956             }
2957             description { state: "clicked" 0.0;
2958                inherit: "default" 0.0;
2959                image.normal: "00_circle_button_press.png";
2960             }
2961             description { state: "disabled" 0.0;
2962                inherit: "default" 0.0;
2963                image.normal: "00_circle_button_dim.png";
2964             }
2965          }
2966          part { name: "left_top_padding";
2967             scale: 1;
2968             type: SPACER;
2969             description { state: "default" 0.0;
2970                min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2971                max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2972                fixed: 1 1;
2973                align: 0.0 0.0;
2974                rel1.to: "button_image";
2975                rel2.to: "button_image";
2976             }
2977          }
2978          part { name: "right_bottom_padding";
2979             scale: 1;
2980             type: SPACER;
2981             description { state: "default" 0.0;
2982                min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2983                max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2984                fixed: 1 1;
2985                align: 1.0 1.0;
2986                rel1 {
2987                   relative: 1.0 1.0;
2988                   to: "button_image";
2989                }
2990                rel2.to: "button_image";
2991             }
2992          }
2993          part { name: "elm.swallow.content";
2994             type: SWALLOW;
2995             clip_to: "icon_clipper";
2996             scale: 1;
2997             description { state: "default" 0.0;
2998                fixed: 1 1;
2999                rel1 {
3000                   relative: 1.0 1.0;
3001                   to: "left_top_padding";
3002                }
3003                rel2 {
3004                   relative: 0.0 0.0;
3005                   to: "right_bottom_padding";
3006                }
3007                visible: 0;
3008             }
3009             description { state: "visible" 0.0;
3010                inherit: "default" 0.0;
3011                visible: 1;
3012                min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
3013                max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
3014             }
3015          }
3016          part { name: "icon_clipper";
3017             type: RECT;
3018             scale: 1;
3019             description { state: "default" 0.0;
3020                color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
3021             }
3022             description { state: "clicked" 0.0;
3023                color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
3024             }
3025             description { state: "disabled" 0.0;
3026                color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
3027             }
3028          }
3029          part { name: "focus_image";
3030             scale: 1;
3031             mouse_events: 0;
3032             repeat_events: 1;
3033               description { state: "default" 0.0;
3034                  min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
3035                  max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
3036                  visible: 0;
3037                  rel1.to : "button_image";
3038                  rel2.to : "button_image";
3039                  image {
3040                   normal: "00_circle_button_focus.png";
3041                   border_scale: 1;
3042                }
3043             }
3044             description { state: "focused" 0.0;
3045                inherit: "default" 0.0;
3046                visible: 1;
3047             }
3048          }
3049          part { name: "over1";
3050             type: RECT;
3051             ignore_flags: ON_HOLD;
3052             description { state: "default" 0.0;
3053                color: 0 0 0 0;
3054             }
3055          }
3056          part { name: "over2";
3057             type: RECT;
3058             repeat_events: 1;
3059             description { state: "default" 0.0;
3060                color: 0 0 0 0;
3061             }
3062          }
3063          part { name: "disabler";
3064             type: RECT;
3065             description { state: "default" 0.0;
3066                color: 0 0 0 0;
3067                visible: 0;
3068             }
3069             description { state: "disabled" 0.0;
3070                inherit: "default" 0.0;
3071                visible: 1;
3072             }
3073          }
3074       }
3075       programs {
3076          program { name: "button_click";
3077             signal: "mouse,down,1";
3078             source: "over1";
3079             action: SIGNAL_EMIT "elm,action,press" "";
3080             after: "button_click_anim";
3081          }
3082          program { name: "button_click_anim";
3083             action: STATE_SET "clicked" 0.0;
3084             target: "button_image";
3085             target: "icon_clipper";
3086          }
3087          program { name: "button_double_click";
3088             signal: "mouse,down,1,double";
3089             source: "over1";
3090             after: "button_click_anim";
3091          }
3092          program { name: "touch_snd";
3093             signal: "mouse,clicked,1";
3094             source: "over1";
3095             action: PLAY_SAMPLE "touch_sound" 1.0;
3096             after: button_unclick2;
3097          }
3098          program { name: "button_unclick2";
3099             action: SIGNAL_EMIT "elm,action,click" "";
3100          }
3101          program { name: "button_unclick";
3102             signal: "mouse,up,1";
3103             source: "over2";
3104             action: SIGNAL_EMIT "elm,action,unpress" "";
3105             after: "button_unclick_anim";
3106          }
3107          program { name: "button_unclick_anim";
3108             action: STATE_SET "default" 0.0;
3109             target: "button_image";
3110             target: "icon_clipper";
3111          }
3112          program { name: "disable";
3113             signal: "elm,state,disabled";
3114             source: "elm";
3115             action: STATE_SET "disabled" 0.0;
3116             target: "disabler";
3117             target: "button_image";
3118             target: "icon_clipper";
3119          }
3120          program { name: "enable";
3121             signal: "elm,state,enabled";
3122             source: "elm";
3123             action: STATE_SET "default" 0.0;
3124             target: "disabler";
3125             target: "button_image";
3126             target: "icon_clipper";
3127          }
3128          program { name: "icon_show";
3129             signal: "elm,state,icon,visible";
3130             source: "elm";
3131             action: STATE_SET "visible" 0.0;
3132             target: "elm.swallow.content";
3133          }
3134          program { name: "icon_hide";
3135             signal: "elm,state,icon,hidden";
3136             source: "elm";
3137             action: STATE_SET "default" 0.0;
3138             target: "elm.swallow.content";
3139          }
3140          program { name: "action_focus";
3141             signal: "elm,action,focus_highlight,show";
3142             source: "elm";
3143             action: STATE_SET "focused" 0.0;
3144             target: "focus_image";
3145          }
3146          program { name: "action_unfocus";
3147             signal: "elm,action,focus_highlight,hide";
3148             source: "elm";
3149             action: STATE_SET "default" 0.0;
3150             target: "focus_image";
3151          }
3152       }
3153    }
3154
3155 ///////////////////////////////////////////////////////////////////////////////////////
3156 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
3157    group { name: "elm/button/base/contacts/"style_name; \
3158    alias: "elm/button/base/"style_name; \
3159       data { \
3160          item: "focus_highlight" "on"; \
3161       } \
3162       images { \
3163          image: "00_circle_button.png" COMP; \
3164          image: "00_circle_button_press.png" COMP; \
3165          image: "00_circle_button_dim.png" COMP; \
3166          image: image_normal COMP; \
3167          image: image_press COMP; \
3168          image: 00_circle_button_focus.png COMP;\
3169       } \
3170       parts { \
3171          part { name: "button_image"; \
3172             scale: 1; \
3173             description { state: "default" 0.0; \
3174                min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3175                max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
3176                image.normal: "00_circle_button.png"; \
3177             } \
3178             description { state: "clicked" 0.0; \
3179                inherit: "default" 0.0; \
3180                image.normal: "00_circle_button_press.png"; \
3181             } \
3182             description { state: "disabled" 0.0; \
3183                inherit: "default" 0.0; \
3184                image.normal: "00_circle_button_dim.png"; \
3185             } \
3186          } \
3187          part { name: "button_center_part"; \
3188             mouse_events: 0; \
3189             scale: 1; \
3190             clip_to: "icon_clipper"; \
3191             description { state: "default" 0.0; \
3192                min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3193                max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
3194                image.normal: image_normal; \
3195             } \
3196             description { \
3197                state: "clicked" 0.0; \
3198                inherit: "default" 0.0; \
3199                image.normal: image_press; \
3200             } \
3201             description { state: "disabled" 0.0; \
3202                inherit: "default" 0.0; \
3203             } \
3204          } \
3205          part { name: "focus_image"; \
3206             scale: 1; \
3207             mouse_events: 0; \
3208             repeat_events: 1; \
3209               description { state: "default" 0.0; \
3210                  min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3211                  max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
3212                  visible: 0; \
3213                  rel1.to : "button_image"; \
3214                  rel2.to : "button_image"; \
3215                  image { \
3216                   normal: "00_circle_button_focus.png"; \
3217                   border_scale: 1; \
3218                } \
3219             } \
3220             description { state: "focused" 0.0; \
3221                inherit: "default" 0.0; \
3222                visible: 1; \
3223             } \
3224          } \
3225          part { name: "icon_clipper"; \
3226             scale: 1; \
3227             type: RECT; \
3228             description { state: "default" 0.0; \
3229                color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
3230             } \
3231             description { state: "clicked" 0.0; \
3232                color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
3233             } \
3234             description { state: "disabled" 0.0; \
3235                color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
3236             } \
3237          } \
3238          part { name: "over1"; \
3239             type: RECT; \
3240             repeat_events: 1; \
3241             ignore_flags: ON_HOLD; \
3242             description { state: "default" 0.0; \
3243                color: 0 0 0 0; \
3244                min: min_width min_height; \
3245             } \
3246          } \
3247          part { name: "over2"; \
3248             type: RECT; \
3249             repeat_events: 1; \
3250             description { state: "default" 0.0; \
3251                color: 0 0 0 0; \
3252             } \
3253          } \
3254          part { name: "disabler"; \
3255             type: RECT; \
3256             description { state: "default" 0.0; \
3257                color: 0 0 0 0; \
3258                visible: 0; \
3259             } \
3260             description { state: "disabled" 0.0; \
3261                inherit: "default" 0.0; \
3262                visible: 1; \
3263             } \
3264          } \
3265       } \
3266       programs { \
3267          program { name: "button_click"; \
3268             signal: "mouse,down,1"; \
3269             source: "over1"; \
3270             action: SIGNAL_EMIT "elm,action,press" ""; \
3271             after: "button_click_anim"; \
3272          } \
3273          program { name: "button_click_anim"; \
3274             action: STATE_SET "clicked" 0.0; \
3275             target: "button_image"; \
3276             target: "button_center_part"; \
3277             target: "icon_clipper"; \
3278          } \
3279          program { name: "button_double_click"; \
3280             signal: "mouse,down,1,double"; \
3281             source: "over1"; \
3282             after: "button_click_anim"; \
3283          } \
3284          program { name: "button_unclick"; \
3285             signal: "mouse,up,1"; \
3286             source: "over2"; \
3287             action: SIGNAL_EMIT "elm,action,unpress" ""; \
3288             after: "button_unclick_anim"; \
3289          } \
3290          program { name: "button_unclick_anim"; \
3291             action: STATE_SET "default" 0.0; \
3292             target: "button_image"; \
3293             target: "button_center_part"; \
3294             target: "icon_clipper"; \
3295          } \
3296          program { name: "touch_snd"; \
3297             signal: "mouse,clicked,1"; \
3298             source: "over1"; \
3299             action: PLAY_SAMPLE "touch_sound" 1.0; \
3300             after: button_unclick3; \
3301          } \
3302          program { name: "button_unclick3"; \
3303             action: SIGNAL_EMIT "elm,action,click" ""; \
3304          } \
3305          program { name: "disable"; \
3306             signal: "elm,state,disabled"; \
3307             source: "elm"; \
3308             action: STATE_SET "disabled" 0.0; \
3309             target: "disabler"; \
3310             target: "button_image"; \
3311             target: "button_center_part"; \
3312             target: "icon_clipper"; \
3313          } \
3314          program { name: "enable"; \
3315             signal: "elm,state,enabled"; \
3316             source: "elm"; \
3317             action: STATE_SET "default" 0.0; \
3318             target: "disabler"; \
3319             target: "button_image"; \
3320             target: "button_center_part"; \
3321             target: "icon_clipper"; \
3322          } \
3323          program { name: "action_focus"; \
3324             signal: "elm,action,focus_highlight,show"; \
3325             source: "elm"; \
3326             action: STATE_SET "focused" 0.0; \
3327             target: "focus_image"; \
3328          } \
3329          program { name: "action_unfocus"; \
3330             signal: "elm,action,focus_highlight,hide"; \
3331             source: "elm"; \
3332             action: STATE_SET "default" 0.0; \
3333             target: "focus_image"; \
3334          } \
3335       } \
3336    }
3337 ///////////////////////////////////////////////////////////////////////////////////////
3338    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)
3339
3340 ///////////////////////////////////////////////////////////////////////////////////////
3341    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)
3342
3343 ///////////////////////////////////////////////////////////////////////////////////////
3344    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)
3345
3346 ///////////////////////////////////////////////////////////////////////////////////////
3347    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)
3348
3349 ///////////////////////////////////////////////////////////////////////////////////////
3350    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)
3351
3352 ///////////////////////////////////////////////////////////////////////////////////////
3353    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)
3354
3355 ///////////////////////////////////////////////////////////////////////////////////////
3356
3357 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3358    group { name: "elm/button/base/contacts/"style_name; \
3359       alias: "elm/button/base/"style_name; \
3360       inherit: "elm/button/base/contacts/icon_plus"; \
3361       images { \
3362          image: "00_circle_button_delete.png" COMP; \
3363          image: "00_circle_button_delete_press.png" COMP; \
3364          image: "00_circle_button_delete_dim.png" COMP; \
3365          image: "00_button_delete.png" COMP; \
3366          image: "00_button_delete_press.png" COMP; \
3367       } \
3368       parts { \
3369          part { name: "button_image"; \
3370             scale: 1; \
3371             description { state: "default" 0.0; \
3372                image.normal: "00_circle_button_delete.png"; \
3373             } \
3374             description { state: "clicked" 0.0; \
3375                inherit: "default" 0.0; \
3376                image.normal: "00_circle_button_delete_press.png"; \
3377             } \
3378             description { state: "disabled" 0.0; \
3379                inherit: "default" 0.0; \
3380                image.normal: "00_circle_button_delete_dim.png"; \
3381             } \
3382          } \
3383          part { name: "button_center_part"; \
3384             mouse_events: 0; \
3385             scale: 1; \
3386             clip_to: "icon_clipper"; \
3387             description { state: "default" 0.0; \
3388                image.normal: "00_button_delete.png"; \
3389             } \
3390             description { \
3391                state: "clicked" 0.0; \
3392                inherit: "default" 0.0; \
3393                image.normal: "00_button_delete_press.png"; \
3394             } \
3395             description { state: "disabled" 0.0; \
3396                inherit: "default" 0.0; \
3397             } \
3398          } \
3399          part { name: "icon_clipper"; \
3400             scale: 1; \
3401             type: RECT; \
3402             description { state: "default" 0.0; \
3403                color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3404             } \
3405             description { state: "clicked" 0.0; \
3406                color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3407             } \
3408             description { state: "disabled" 0.0; \
3409                color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3410             } \
3411          } \
3412          part { name: "over1"; \
3413             type: RECT; \
3414             repeat_events: 1; \
3415             ignore_flags: ON_HOLD; \
3416             description { state: "default" 0.0; \
3417                color: 0 0 0 0; \
3418                min: min_width min_height; \
3419             } \
3420          } \
3421       } \
3422    }
3423
3424 ///////////////////////////////////////////////////////////////////////////////////////
3425    BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3426
3427 ///////////////////////////////////////////////////////////////////////////////////////
3428    BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3429
3430 ///////////////////////////////////////////////////////////////////////////////////////
3431 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3432    group { name: "elm/button/base/"style_name; \
3433       data { \
3434          item: "focus_highlight" "on"; \
3435       } \
3436       images { \
3437          image: "00_button_01.png" COMP; \
3438          image: "00_button_01_press.png" COMP; \
3439          image: "00_button_01_dim.png" COMP; \
3440          image: image_normal COMP; \
3441          image: "00_button_01_focus.png" COMP; \
3442       }\
3443       parts { \
3444          part { name: "button_image";\
3445             type: IMAGE; \
3446             scale: 1; \
3447             description { state: "default" 0.0; \
3448                min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3449                image { \
3450                   normal: "00_button_01.png"; \
3451                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3452                   border_scale: 1; \
3453                } \
3454             } \
3455             description { state: "clicked" 0.0; \
3456              inherit: "default" 0.0; \
3457              image.normal: "00_button_01_press.png"; \
3458             } \
3459             description { state: "disabled" 0.0; \
3460                inherit: "default" 0.0; \
3461                image.normal: "00_button_01_dim.png"; \
3462             } \
3463          } \
3464          part { name: "focus_image"; \
3465             scale: 1; \
3466             mouse_events: 0; \
3467             repeat_events: 1; \
3468             description { state: "default" 0.0; \
3469                visible: 0; \
3470                rel1.to : "button_image"; \
3471                rel2.to : "button_image"; \
3472                image { \
3473                   normal: "00_button_01_focus.png"; \
3474                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3475                   border_scale: 1; \
3476                } \
3477             } \
3478             description { state: "focused" 0.0; \
3479                inherit: "default" 0.0; \
3480                visible: 1; \
3481             } \
3482          } \
3483          part { name: "padding_left_top"; \
3484             type: SPACER; \
3485             scale: 1; \
3486             description { state: "default" 0.0; \
3487                align: 0.0 0.0; \
3488                rel2.relative: 0.0 0.0; \
3489                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3490                fixed: 1 1; \
3491             } \
3492          } \
3493          part { name: "padding_right_bottom"; \
3494             type: SPACER; \
3495             scale: 1; \
3496             description { state: "default" 0.0; \
3497                align: 1.0 1.0; \
3498                rel1.relative: 1.0 1.0; \
3499                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3500                fixed: 1 1; \
3501             } \
3502          } \
3503          part { name: "jump_image"; \
3504             type: IMAGE; \
3505             scale: 1; \
3506             description { state: "default" 0.0; \
3507                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3508                max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3509                rel1 { \
3510                   relative: 1.0 0.0; \
3511                   to_x: "padding_left_top"; \
3512                } \
3513                rel2 { \
3514                   relative: 0.0 1.0; \
3515                   to_x: "padding_right_bottom"; \
3516                } \
3517                image.normal: image_normal; \
3518                aspect: 1.0 1.0; \
3519                aspect_preference: VERTICAL; \
3520                color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3521             } \
3522             description { state: "clicked" 0.0; \
3523                inherit: "default" 0.0; \
3524                color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3525             } \
3526             description { state: "disabled" 0.0; \
3527                inherit: "default" 0.0; \
3528                color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3529             } \
3530          } \
3531          part { name: "over1"; \
3532             type: RECT; \
3533             repeat_events: 1; \
3534             ignore_flags: ON_HOLD; \
3535             description { state: "default" 0.0; \
3536                color: 0 0 0 0; \
3537                rel1.relative: 0.0 0.0; \
3538                rel2.relative: 1.0 1.0; \
3539             } \
3540          } \
3541          part { name: "over2"; \
3542             type: RECT; \
3543             repeat_events: 1; \
3544             description { state: "default" 0.0; \
3545                color: 0 0 0 0; \
3546             } \
3547          } \
3548       } \
3549       programs { \
3550          program { name: "button_click"; \
3551             signal: "mouse,down,1"; \
3552             source: "over1"; \
3553             action: SIGNAL_EMIT "elm,action,press" ""; \
3554             after: "button_click_anim"; \
3555          } \
3556          program { name: "button_click_anim"; \
3557             action: STATE_SET "clicked" 0.0; \
3558             target: "button_image"; \
3559             target: "jump_image"; \
3560          } \
3561          program { name: "button_double_click"; \
3562             signal: "mouse,down,1,double"; \
3563             source: "over1"; \
3564             after: "button_click_anim"; \
3565          } \
3566          program { name: "button_unclick"; \
3567             signal: "mouse,up,1"; \
3568             source: "over2"; \
3569             action: SIGNAL_EMIT "elm,action,unpress" ""; \
3570             after: "button_unclick_anim"; \
3571          } \
3572          program { name: "button_unclick_anim"; \
3573             action: STATE_SET "default" 0.0; \
3574             target: "button_image"; \
3575             target: "jump_image"; \
3576          } \
3577          program { name: "touch_snd"; \
3578             signal: "mouse,clicked,1"; \
3579             source: "over1"; \
3580             action: PLAY_SAMPLE "touch_sound" 1.0; \
3581             after: button_unclick3; \
3582          } \
3583          program { name: "button_unclick3"; \
3584             action: SIGNAL_EMIT "elm,action,click" ""; \
3585          } \
3586          program { name: "disable"; \
3587             signal: "elm,state,disabled"; \
3588             source: "elm"; \
3589             action: STATE_SET "disabled" 0.0; \
3590             target: "button_image"; \
3591             target: "jump_image"; \
3592          } \
3593          program { name: "enable"; \
3594             signal: "elm,state,enabled"; \
3595             source: "elm"; \
3596             action: STATE_SET "default" 0.0; \
3597             target: "button_image"; \
3598             target: "jump_image"; \
3599          } \
3600          program { name: "action_focus"; \
3601             signal: "elm,action,focus_highlight,show"; \
3602             source: "elm"; \
3603             action: STATE_SET "focused" 0.0; \
3604             target: "focus_image"; \
3605          } \
3606          program { name: "action_unfocus"; \
3607             signal: "elm,action,focus_highlight,hide"; \
3608             source: "elm"; \
3609             action: STATE_SET "default" 0.0; \
3610             target: "focus_image"; \
3611          } \
3612       } \
3613    }
3614
3615 ////////////////////////////////////////////////////////////////////////
3616 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3617 ////////////////////////////////////////////////////////////////////////
3618 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3619
3620 ////////////////////////////////////////////////////////////////////////
3621    group { name: "elm/button/base/default";
3622       data {
3623          item: "focus_highlight" "on";
3624       }
3625       images {
3626          image: "00_button_01.png" COMP;
3627          image: "00_button_01_press.png" COMP;
3628          image: "00_button_01_dim.png" COMP;
3629          image: "00_button_01_focus.png" COMP;
3630       }
3631       styles{
3632          style { name: "btn_base_default";
3633             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";
3634             tag: "br" "\n";
3635             tag: "ps" "ps";
3636             tag: "tab" "\t";
3637          }
3638          style { name: "btn_base_default_pressed";
3639             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";
3640             tag: "br" "\n";
3641             tag: "ps" "ps";
3642             tag: "tab" "\t";
3643          }
3644          style { name: "btn_base_default_dim";
3645             base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3646             tag: "br" "\n";
3647             tag: "ps" "ps";
3648             tag: "tab" "\t";
3649          }
3650          style { name: "btn_base_default_focus";
3651             base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3652             tag: "br" "\n";
3653             tag: "ps" "ps";
3654             tag: "tab" "\t";
3655          }
3656       }
3657       script {
3658          public button_state = BUTTON_STATE_ENABLED;
3659       }
3660       parts {
3661          part { name: "button_image";
3662             scale: 1;
3663             description { state: "default" 0.0;
3664                min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3665                image {
3666                   normal: "00_button_01.png";
3667                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3668                   border_scale: 1;
3669                }
3670             }
3671             description { state: "clicked" 0.0;
3672                inherit: "default" 0.0;
3673                image.normal: "00_button_01_press.png";
3674             }
3675             description { state: "disabled" 0.0;
3676                inherit: "default" 0.0;
3677                image.normal: "00_button_01_dim.png";
3678             }
3679             description { state: "focused" 0.0;
3680                inherit: "default" 0.0;
3681                image.normal: "00_button_01_press.png";
3682             }
3683          }
3684          part { name: "focus_image";
3685             scale: 1;
3686             mouse_events: 0;
3687             repeat_events: 1;
3688             description { state: "default" 0.0;
3689                visible: 0;
3690                rel1.to : "button_image";
3691                rel2.to : "button_image";
3692                image {
3693                   normal: "00_button_01_focus.png";
3694                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3695                   border_scale: 1;
3696                }
3697             }
3698             description { state: "focused" 0.0;
3699                inherit: "default" 0.0;
3700                visible: 1;
3701             }
3702          }
3703          part { name: "padding_left_top";
3704             type: RECT;
3705             scale: 1;
3706             mouse_events: 0;
3707             description { state: "default" 0.0;
3708                align: 0.0 0.0;
3709                rel2.relative: 0.0 0.0;
3710                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3711                fixed: 1 1;
3712                visible: 0;
3713             }
3714          }
3715          part { name: "padding_right_bottom";
3716             type: RECT;
3717             scale: 1;
3718             mouse_events: 0;
3719             description { state: "default" 0.0;
3720                align: 1.0 1.0;
3721                rel1.relative: 1.0 1.0;
3722                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3723                fixed: 1 1;
3724                visible: 0;
3725             }
3726          }
3727          part { name: "padding_icon_text";
3728             type: RECT;
3729             scale: 1;
3730             mouse_events: 0;
3731             description { state: "default" 0.0; //when only icon or no icon is there
3732                visible: 0;
3733                fixed: 1 0;
3734                min: 0 0;
3735                rel1 {
3736                   relative: 1.0 0.0;
3737                   to: "elm.swallow.content";
3738                }
3739                rel2.to: "elm.swallow.content";
3740                align: 0.0 0.0;
3741             }
3742             description { state: "icononly" 0.0;
3743                inherit: "default" 0.0;
3744             }
3745             description { state: "visible" 0.0; //when icon is visible
3746                inherit: "default" 0.0;
3747                min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3748             }
3749          }
3750          part { name: "elm.swallow.content";
3751             type: SWALLOW;
3752             scale: 1;
3753             clip_to: "disclip";
3754             description { state: "default" 0.0;
3755                visible: 0;
3756                fixed: 1 0;
3757                align: 0.0 0.5;
3758                rel1 {
3759                   relative: 1.0 1.0;
3760                   to: "padding_left_top";
3761                }
3762                rel2 {
3763                   relative: 1.0 0.0;
3764                   to_x: "padding_left_top";
3765                   to_y: "padding_right_bottom";
3766                }
3767             }
3768             description { state: "visible" 0.0;
3769                inherit: "default" 0.0;
3770                visible: 1;
3771                aspect: 1.0 1.0;
3772                aspect_preference: VERTICAL;
3773             }
3774             description { state: "icononly" 0.0;
3775                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3776                rel1 {
3777                   relative: 1.0 0.0;
3778                   to_x: "padding_left_top";
3779                }
3780                rel2 {
3781                   relative: 0.0 1.0;
3782                   to_x: "padding_right_bottom";
3783                }
3784                aspect: 1.0 1.0;
3785                aspect_preference: VERTICAL;
3786             }
3787          }
3788          part { name: "elm.text";
3789             type: TEXTBLOCK;
3790             mouse_events: 0;
3791             scale: 1;
3792             clip_to: "disclip";
3793             description { state: "default" 0.0;
3794                visible: 0;
3795                align: 0.0 0.5;
3796                rel1 {
3797                   relative: 1.0 1.0;
3798                   to_x: "padding_icon_text";
3799                   to_y: "padding_left_top";
3800                }
3801                rel2 {
3802                   relative: 0.0 0.0;
3803                   to: "padding_right_bottom";
3804                }
3805                text {
3806                   style: "btn_base_default";
3807                }
3808             }
3809             description { state: "visible" 0.0;
3810                inherit: "default" 0.0;
3811                visible: 1;
3812                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3813             }
3814             description { state: "clicked" 0.0;
3815                inherit: "default" 0.0;
3816                visible: 1;
3817                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3818                text {
3819                   style: "btn_base_default_pressed";
3820                }
3821             }
3822             description { state: "disabled" 0.0;
3823                inherit: "default" 0.0;
3824             }
3825             description { state: "disabled_visible" 0.0;
3826                inherit: "default" 0.0;
3827                visible: 1;
3828                text {
3829                   style: "btn_base_default_dim";
3830                }
3831                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3832             }
3833             description { state: "focused" 0.0;
3834                inherit: "default" 0.0;
3835                visible: 1;
3836                text {
3837                   style: "btn_base_default_focus";
3838                   min: 0 0;
3839                }
3840             }
3841          }
3842          part { name: "over2";
3843             type: RECT;
3844             repeat_events: 1;
3845             ignore_flags: ON_HOLD;
3846             description { state: "default" 0.0;
3847                color: 0 0 0 0;
3848             }
3849          }
3850          part { name: "over3";
3851             type: RECT;
3852             repeat_events: 1;
3853             description { state: "default" 0.0;
3854                color: 0 0 0 0;
3855             }
3856          }
3857          part { name: "disclip";
3858             type: RECT;
3859             description { state: "default" 0.0;
3860                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3861             }
3862             description { state: "disabled" 0.0;
3863                inherit: "default" 0.0;
3864                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3865             }
3866          }
3867          part { name: "disabler";
3868             type: RECT;
3869             description { state: "default" 0.0;
3870                color: 0 0 0 0;
3871                visible: 0;
3872             }
3873             description { state: "disabled" 0.0;
3874                inherit: "default" 0.0;
3875                visible: 1;
3876             }
3877          }
3878       }
3879       programs {
3880          program { name: "button_click";
3881             signal: "mouse,down,1";
3882             source: "over3";
3883             action: SIGNAL_EMIT "elm,action,press" "";
3884             after: "button_click_anim";
3885          }
3886          program { name: "button_click_anim";
3887             action: STATE_SET "clicked" 0.0;
3888             target: "button_image";
3889             after: "text_clicked";
3890          }
3891          program { name: "text_clicked";
3892             script {
3893                new st[31];
3894                new Float:vl;
3895                get_state(PART:"elm.text", st, 30, vl);
3896                if (!strcmp(st, "visible"))
3897                  set_state(PART:"elm.text", "clicked", 0.0);
3898             }
3899          }
3900          program { name: "button_double_click";
3901             signal: "mouse,down,1,double";
3902             source: "over3";
3903             after: "button_click_anim";
3904          }
3905          program { name: "button_unpress";
3906             action: SIGNAL_EMIT "elm,action,unpress" "";
3907          }
3908          program { name: "button_mouseout_clicked";
3909             signal: "mouse,up,1";
3910             source: "over3";
3911             script {
3912                new st[31];
3913                new Float:vl;
3914                get_state(PART:"elm.swallow.content", st, 30, vl);
3915                if (strcmp(st, "icononly"))
3916                  {
3917                     emit("elm,action,default,text,set", "");
3918                     set_state(PART:"elm.text", "visible", 0.0);
3919                  }
3920                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3921                  set_state(PART:"button_image", "default", 0.0);
3922             }
3923             after: button_unpress;
3924          }
3925          program { name: "touch_snd";
3926             signal: "mouse,clicked,1";
3927             source: "over2";
3928             action: PLAY_SAMPLE "touch_sound" 1.0;
3929             after: button_unclick3;
3930          }
3931          program { name: "button_unclick3";
3932             action: SIGNAL_EMIT "elm,action,click" "";
3933          }
3934          program { name: "text_show";
3935             signal: "elm,state,text,visible";
3936             source: "elm";
3937             script {
3938                new st[31];
3939                new Float:vl;
3940                get_state(PART:"elm.swallow.content", st, 30, vl);
3941                if (!strcmp(st, "icononly"))
3942                  {
3943                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3944                     set_state(PART:"padding_icon_text", "visible", 0.0);
3945                  }
3946                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3947                  set_state(PART:"elm.text", "visible", 0.0);
3948                else
3949                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3950             }
3951          }
3952          program { name: "text_hide";
3953             signal: "elm,state,text,hidden";
3954             source: "elm";
3955             script {
3956                new st[31];
3957                new Float:vl;
3958                get_state(PART:"elm.swallow.content", st, 30, vl);
3959                if (!strcmp(st, "visible"))
3960                  {
3961                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3962                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3963                  }
3964                set_state(PART:"elm.text", "default", 0.0);
3965             }
3966          }
3967          program { name: "icon_show";
3968             signal: "elm,state,icon,visible";
3969             source: "elm";
3970             script {
3971                new st[31];
3972                new Float:vl;
3973                get_state(PART:"elm.text", st, 30, vl);
3974                if (!strcmp(st, "visible"))
3975                  {
3976                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3977                     set_state(PART:"padding_icon_text", "visible", 0.0);
3978                  }
3979                else
3980                  {
3981                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3982                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3983                  }
3984             }
3985          }
3986          program { name: "icon_hide";
3987             signal: "elm,state,icon,hidden";
3988             source: "elm";
3989             action: STATE_SET "default" 0.0;
3990             target: "elm.swallow.content";
3991             target: "padding_icon_text";
3992          }
3993          program { name: "disable";
3994             signal: "elm,state,disabled";
3995             source: "elm";
3996             action: STATE_SET "disabled" 0.0;
3997             target: "button_image";
3998             target: "disabler";
3999             target: "disclip";
4000             after: "disable_text";
4001          }
4002          program { name: "disable_text";
4003             script {
4004                new st[31];
4005                new Float:vl;
4006                get_state(PART:"elm.text", st, 30, vl);
4007                if (!strcmp(st, "visible"))
4008                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4009                else
4010                  set_state(PART:"elm.text", "disabled", 0.0);
4011                set_int(button_state, BUTTON_STATE_DISABLED);
4012             }
4013          }
4014          program { name: "enable";
4015             signal: "elm,state,enabled";
4016             source: "elm";
4017             action: STATE_SET "default" 0.0;
4018             target: "button_image";
4019             target: "disabler";
4020             target: "disclip";
4021             after: "enable_text";
4022          }
4023          program { name: "enable_text";
4024             script {
4025                new st[31];
4026                new Float:vl;
4027                get_state(PART:"elm.text", st, 30, vl);
4028                if (!strcmp(st, "disabled_visible"))
4029                  set_state(PART:"elm.text", "visible", 0.0);
4030                else
4031                  set_state(PART:"elm.text", "default", 0.0);
4032                set_int(button_state, BUTTON_STATE_ENABLED);
4033             }
4034          }
4035          program { name: "action_focus";
4036             signal: "elm,action,focus_highlight,show";
4037             source: "elm";
4038             action: STATE_SET "focused" 0.0;
4039             target: "focus_image";
4040          }
4041          program { name: "action_unfocus";
4042             signal: "elm,action,focus_highlight,hide";
4043             source: "elm";
4044             action: STATE_SET "default" 0.0;
4045             target: "focus_image";
4046          }
4047       }
4048    }
4049
4050 ///////////////////////////////////////////////////////////////////////////////////////
4051    group { name: "elm/button/base/multiline";
4052       alias: "elm/button/base/text_only/multiline";
4053       inherit: "elm/button/base/default";
4054       styles{
4055          style { name: "btn_multiline_style";
4056             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";
4057             tag: "br" "\n";
4058             tag: "ps" "ps";
4059             tag: "tab" "\t";
4060          }
4061       }
4062       parts {
4063          part { name: "button_image";
4064             scale: 1;
4065             description { state: "default" 0.0;
4066                min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
4067                image {
4068                   normal: "00_button_01.png";
4069                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
4070                   border_scale: 1;
4071                }
4072             }
4073             description { state: "clicked" 0.0;
4074                inherit: "default" 0.0;
4075                image.normal: "00_button_01_press.png";
4076             }
4077             description { state: "disabled" 0.0;
4078                inherit: "default" 0.0;
4079                image.normal: "00_button_01_dim.png";
4080             }
4081             description { state: "focused" 0.0;
4082                inherit: "default" 0.0;
4083                image.normal: "00_button_01_press.png";
4084             }
4085          }
4086          part { name: "padding_left_top";
4087             type: RECT;
4088             scale: 1;
4089             mouse_events: 0;
4090             description { state: "default" 0.0;
4091                align: 0.0 0.0;
4092                rel2.relative: 0.0 0.0;
4093                min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
4094                fixed: 1 1;
4095                visible: 0;
4096             }
4097          }
4098          part { name: "padding_right_bottom";
4099             type: RECT;
4100             scale: 1;
4101             mouse_events: 0;
4102             description { state: "default" 0.0;
4103                align: 1.0 1.0;
4104                rel1.relative: 1.0 1.0;
4105                min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
4106                fixed: 1 1;
4107                visible: 0;
4108             }
4109          }
4110          part { name: "elm.text";
4111             type: TEXTBLOCK;
4112             mouse_events: 0;
4113             scale: 1;
4114             clip_to: "disclip";
4115             description { state: "default" 0.0;
4116                visible: 0;
4117                rel1 {
4118                   relative: 1.0 1.0;
4119                   to_x: "padding_icon_text";
4120                   to_y: "padding_left_top";
4121                }
4122                rel2 {
4123                   relative: 0.0 0.0;
4124                   to: "padding_right_bottom";
4125                }
4126                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
4127                text {
4128                   style: "btn_multiline_style";
4129                }
4130             }
4131             description { state: "visible" 0.0;
4132                inherit: "default" 0.0;
4133                visible: 1;
4134                min: 80 0;
4135             }
4136             description { state: "clicked" 0.0;
4137                inherit: "default" 0.0;
4138                visible: 1;
4139                min: 0 0;
4140                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
4141             }
4142             description { state: "disabled" 0.0;
4143                inherit: "default" 0.0;
4144             }
4145             description { state: "disabled_visible" 0.0;
4146                inherit: "default" 0.0;
4147                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4148                visible: 1;
4149                min: 80 0;
4150             }
4151             description { state: "focused" 0.0;
4152                inherit: "default" 0.0;
4153                visible: 1;
4154                min: 0 0;
4155                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
4156             }
4157          }
4158       }
4159    }
4160
4161 ///////////////////////////////////////////////////////////////////////////////////////
4162 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
4163    group { name: "elm/button/base/"style_name; \
4164       data { \
4165          item: "focus_highlight" "on"; \
4166       } \
4167       images { \
4168          image: image_normal COMP; \
4169          image: image_press COMP; \
4170          image: image_dim COMP; \
4171          image: "00_button_01.png" COMP; \
4172          image: "00_button_01_press.png" COMP; \
4173          image: "00_button_01_focus.png" COMP; \
4174       } \
4175       parts { \
4176          part { name: "button_image"; \
4177             scale: 1; \
4178             description { state: "default" 0.0; \
4179                min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4180                max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4181                image { \
4182                   normal: "00_button_01.png"; \
4183                   border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4184                   border_scale: 1; \
4185                } \
4186             } \
4187             description { \
4188                state: "clicked" 0.0; \
4189                inherit: "default" 0.0; \
4190                image.normal: "00_button_01_press.png"; \
4191             } \
4192             description { \
4193                state: "disabled" 0.0; \
4194                inherit: "default" 0.0; \
4195                image.normal: "00_button_01_dim.png"; \
4196             } \
4197             description { \
4198                state: "focused" 0.0; \
4199                inherit: "default" 0.0; \
4200                image.normal: "00_button_01_press.png"; \
4201             } \
4202          } \
4203          part { name: "focus_image"; \
4204             scale: 1; \
4205             mouse_events: 0; \
4206             repeat_events: 1; \
4207             description { state: "default" 0.0; \
4208                min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4209                max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
4210                visible: 0; \
4211                rel1.to : "button_image"; \
4212                rel2.to : "button_image"; \
4213                image { \
4214                   normal: "00_button_01_focus.png"; \
4215                   border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
4216                   border_scale: 1; \
4217                } \
4218             } \
4219             description { state: "focused" 0.0; \
4220                inherit: "default" 0.0; \
4221                visible: 1; \
4222             } \
4223          } \
4224          part { name: "button_center_part"; \
4225             scale: 1; \
4226             clip_to: "icon_clipper"; \
4227             description { state: "default" 0.0; \
4228                min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4229                max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
4230                image.normal: image_normal; \
4231             } \
4232             description { \
4233                state: "clicked" 0.0; \
4234                inherit: "default" 0.0; \
4235                image.normal: image_press; \
4236             } \
4237             description { \
4238                state: "disabled" 0.0; \
4239                inherit: "default" 0.0; \
4240             } \
4241          } \
4242          part { name: "icon_clipper"; \
4243             type: RECT; \
4244             scale: 1; \
4245             description { state: "default" 0.0; \
4246                color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
4247             } \
4248             description { state: "clicked" 0.0; \
4249                color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
4250             } \
4251             description { state: "disabled" 0.0; \
4252                color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
4253             } \
4254          } \
4255          part { name: "over1"; \
4256             type: RECT; \
4257             ignore_flags: ON_HOLD; \
4258             description { state: "default" 0.0; \
4259                color: 0 0 0 0; \
4260             } \
4261          } \
4262          part { name: "over2"; \
4263             type: RECT; \
4264             repeat_events: 1; \
4265             description { state: "default" 0.0; \
4266                color: 0 0 0 0; \
4267             } \
4268          } \
4269          part { name: "disabler"; \
4270             type: RECT; \
4271             description { state: "default" 0.0; \
4272                color: 0 0 0 0; \
4273                visible: 0; \
4274             } \
4275             description { state: "disabled" 0.0; \
4276                inherit: "default" 0.0; \
4277                visible: 1; \
4278             } \
4279          } \
4280       } \
4281       programs { \
4282          program { name: "button_click"; \
4283             signal: "mouse,down,1"; \
4284             source: "over1"; \
4285             action: SIGNAL_EMIT "elm,action,press" ""; \
4286             after: "button_click_anim"; \
4287          } \
4288          program { name: "button_click_anim"; \
4289             action: STATE_SET "clicked" 0.0; \
4290             target: "button_image"; \
4291             target: "button_center_part"; \
4292             target: ""icon_clipper""; \
4293          } \
4294          program { name: "button_double_click"; \
4295             signal: "mouse,down,1,double"; \
4296             source: "over1"; \
4297             after: "button_click_anim"; \
4298          } \
4299          program { name: "button_unclick"; \
4300             signal: "mouse,up,1"; \
4301             source: "over2"; \
4302             action: SIGNAL_EMIT "elm,action,unpress" ""; \
4303             after: "button_unclick_anim"; \
4304          } \
4305          program { name: "button_unclick_anim"; \
4306             action: STATE_SET "default" 0.0; \
4307             target: "button_image"; \
4308             target: "button_center_part"; \
4309             target: ""icon_clipper""; \
4310          } \
4311          program { name: "touch_snd"; \
4312             signal: "mouse,clicked,1"; \
4313             source: "over1"; \
4314             action: PLAY_SAMPLE "touch_sound" 1.0; \
4315             after: button_unclick3; \
4316          } \
4317          program { name: "button_unclick3"; \
4318             action: SIGNAL_EMIT "elm,action,click" ""; \
4319          } \
4320          program { name: "disable"; \
4321             signal: "elm,state,disabled"; \
4322             source: "elm"; \
4323             action: STATE_SET "disabled" 0.0; \
4324             target: "disabler"; \
4325             target: "button_image"; \
4326             target: "button_center_part"; \
4327             target: ""icon_clipper""; \
4328          } \
4329          program { name: "enable"; \
4330             signal: "elm,state,enabled"; \
4331             source: "elm"; \
4332             action: STATE_SET "default" 0.0; \
4333             target: "disabler"; \
4334             target: "button_image"; \
4335             target: "button_center_part"; \
4336             target: ""icon_clipper""; \
4337          } \
4338          program { name: "action_focus"; \
4339             signal: "elm,action,focus_highlight,show"; \
4340             source: "elm"; \
4341             action: STATE_SET "focused" 0.0; \
4342             target: "focus_image"; \
4343          } \
4344          program { name: "action_unfocus"; \
4345             signal: "elm,action,focus_highlight,hide"; \
4346             source: "elm"; \
4347             action: STATE_SET "default" 0.0; \
4348             target: "focus_image"; \
4349          } \
4350       } \
4351    }
4352 ///////////////////////////////////////////////////////////////////////////////////////
4353    BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
4354 ///////////////////////////////////////////////////////////////////////////////////////
4355    BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
4356 ///////////////////////////////////////////////////////////////////////////////////////
4357
4358    group { name: "elm/button/base/multibuttonentry";
4359       alias: "elm/button/base/text_only/multibuttonentry";
4360       data {
4361          item: "focus_highlight" "on";
4362       }
4363       images {
4364          image: "00_contacts_button.png" COMP;
4365          image: "00_contacts_button_press.png" COMP;
4366          image: "00_contacts_button_focus.png" COMP;
4367          image: "00_contacts_button_dim.png" COMP;
4368       }
4369       styles{
4370          style { name: "btn_base_multibuttonentry";
4371             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";
4372             tag: "br" "\n";
4373             tag: "ps" "ps";
4374             tag: "tab" "\t";
4375          }
4376          style { name: "btn_base_multibuttonentry_pressed";
4377             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";
4378             tag: "br" "\n";
4379             tag: "ps" "ps";
4380             tag: "tab" "\t";
4381          }
4382          style { name: "btn_base_multibuttonentry_dim";
4383             base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4384             tag: "br" "\n";
4385             tag: "ps" "ps";
4386             tag: "tab" "\t";
4387          }
4388          style { name: "btn_base_multibuttonentry_focus";
4389             base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4390             tag: "br" "\n";
4391             tag: "ps" "ps";
4392             tag: "tab" "\t";
4393          }
4394       }
4395       script {
4396          public button_state = BUTTON_STATE_ENABLED;
4397       }
4398       parts {
4399          part { name: "button_image";
4400             scale: 1;
4401             description { state: "default" 0.0;
4402                rel1 {
4403                   to_x: "padding.left";
4404                   to_y: "elm.text";
4405                }
4406                rel2 {
4407                   to_x: "padding.right";
4408                   to_y: "elm.text";
4409                }
4410                min: BUTTON_CONTACT_BG_MIN_INC;
4411                image {
4412                   normal: "00_contacts_button.png";
4413                   border: BUTTON_CONTACT_BG_BORDER_INC;
4414                   border_scale: 1;
4415                }
4416             }
4417             description { state: "clicked" 0.0;
4418                inherit: "default" 0.0;
4419                image.normal: "00_contacts_button_press.png";
4420             }
4421             description { state: "disabled" 0.0;
4422                inherit: "default" 0.0;
4423                image.normal: "00_contacts_button_dim.png";
4424             }
4425             description { state: "focused" 0.0;
4426                inherit: "default" 0.0;
4427                image.normal: "00_contacts_button_press.png";
4428             }
4429          }
4430          part { name: "focus_image";
4431             scale: 1;
4432             mouse_events: 0;
4433             repeat_events: 1;
4434             description { state: "default" 0.0;
4435                visible: 0;
4436                rel1.to : "button_image";
4437                rel2.to : "button_image";
4438                image {
4439                   normal: "00_contacts_button_focus.png";
4440                   border: BUTTON_CONTACT_BG_BORDER_INC;
4441                   border_scale: 1;
4442                }
4443             }
4444             description { state: "focused" 0.0;
4445                inherit: "default" 0.0;
4446                visible: 1;
4447             }
4448          }
4449          part { name: "padding.left";
4450             type: RECT;
4451             scale: 1;
4452             description { state: "default" 0.0;
4453                visible: 0;
4454                min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
4455                fixed: 1 0;
4456                color: 0 0 0 0;
4457                rel2 {
4458                   relative: 0.0 1.0;
4459                   to_x: "elm.text";
4460                }
4461                align: 1.0 0.0;
4462             }
4463          }
4464          part { name: "padding.right";
4465             type: RECT;
4466             scale: 1;
4467             description { state: "default" 0.0;
4468                visible: 0;
4469                min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4470                fixed: 1 0;
4471                color: 0 0 0 0;
4472                rel1 {
4473                   relative: 1.0 0.0;
4474                   to_x: "elm.text";
4475                }
4476                align: 0.0 0.0;
4477             }
4478          }
4479          part { name: "elm.text";
4480             type: TEXTBLOCK;
4481             mouse_events: 0;
4482             scale: 1;
4483             description { state: "default" 0.0;
4484                visible: 0;
4485                fixed: 1 1;
4486                text {
4487                   style: "btn_base_multibuttonentry";
4488                   min: 1 1;
4489                }
4490             }
4491             description { state: "visible" 0.0;
4492                inherit: "default" 0.0;
4493                visible: 1;
4494                min: 1 1;
4495             }
4496             description { state: "clicked" 0.0;
4497                inherit: "default" 0.0;
4498                visible: 1;
4499                min: 1 1;
4500                text {
4501                   style: "btn_base_multibuttonentry_pressed";
4502                }
4503             }
4504             description { state: "disabled" 0.0;
4505                inherit: "default" 0.0;
4506             }
4507             description { state: "disabled_visible" 0.0;
4508                inherit: "default" 0.0;
4509                visible: 1;
4510                text {
4511                   style: "btn_base_multibuttonentry_dim";
4512                   min: 1 1;
4513                }
4514             }
4515             description { state: "focused" 0.0;
4516                inherit: "default" 0.0;
4517                visible: 1;
4518                text {
4519                   style: "btn_base_multibuttonentry_focus";
4520                   min: 1 1;
4521                }
4522             }
4523          }
4524          part { name: "over1";
4525             type: RECT;
4526             mouse_events: 0;
4527             description { state: "default" 0.0;
4528                rel2.relative: 1.0 0.5;
4529                color: 0 0 0 0;
4530             }
4531          }
4532          part { name: "over2";
4533             type: RECT;
4534             repeat_events: 1;
4535             ignore_flags: ON_HOLD;
4536             description { state: "default" 0.0;
4537                rel1.to: "button_image";
4538                rel2.to: "button_image";
4539                color: 0 0 0 0;
4540             }
4541          }
4542          part { name: "over3";
4543             type: RECT;
4544             repeat_events: 1;
4545             description { state: "default" 0.0;
4546                rel1.to: "button_image";
4547                rel2.to: "button_image";
4548                color: 0 0 0 0;
4549             }
4550          }
4551          part { name: "disabler";
4552             type: RECT;
4553             description { state: "default" 0.0;
4554                rel1.to: "button_image";
4555                rel2.to: "button_image";
4556                color: 0 0 0 0;
4557                visible: 0;
4558             }
4559             description { state: "disabled" 0.0;
4560                inherit: "default" 0.0;
4561                visible: 1;
4562             }
4563          }
4564       }
4565       programs {
4566          program { name: "button_click";
4567             signal: "mouse,down,1";
4568             source: "over2";
4569             action: SIGNAL_EMIT "elm,action,press" "";
4570             after: "button_click_anim";
4571          }
4572          program { name: "button_click_anim";
4573             action: STATE_SET "clicked" 0.0;
4574             target: "button_image";
4575             target: "elm.text";
4576          }
4577          program { name: "button_double_click";
4578             signal: "mouse,down,1,double";
4579             source: "over2";
4580             after: "button_click_anim";
4581          }
4582          program { name: "button_unpress";
4583             action: SIGNAL_EMIT "elm,action,unpress" "";
4584          }
4585          program { name: "button_mouseout_clicked";
4586             signal: "mouse,up,1";
4587             source: "over3";
4588             script {
4589                new st[31];
4590                new Float:vl;
4591                get_state(PART:"elm.text", st, 30, vl);
4592                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4593                  {
4594                     emit("elm,action,default,text,set", "");
4595                     set_state(PART:"elm.text", "visible", 0.0);
4596                  }
4597                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4598                  set_state(PART:"button_image", "default", 0.0);
4599             }
4600             after: button_unpress;
4601          }
4602          program { name: "touch_snd";
4603             signal: "mouse,clicked,1";
4604             source: "over2";
4605             action: PLAY_SAMPLE "touch_sound" 1.0;
4606             after: button_unclick3;
4607          }
4608          program { name: "button_unclick3";
4609             action: SIGNAL_EMIT "elm,action,click" "";
4610          }
4611          program { name: "text_show";
4612             signal: "elm,state,text,visible";
4613             source: "elm";
4614             script {
4615                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4616                  set_state(PART:"elm.text", "visible", 0.0);
4617                else
4618                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4619             }
4620          }
4621          program { name: "text_hide";
4622             signal: "elm,state,text,hidden";
4623             source: "elm";
4624             action: STATE_SET "default" 0.0;
4625             target: "elm.text";
4626          }
4627          program { name: "disable";
4628             signal: "elm,state,disabled";
4629             source: "elm";
4630             action: STATE_SET "disabled" 0.0;
4631             target: "button_image";
4632             target: "disabler";
4633             after: "disable_text";
4634          }
4635          program { name: "disable_text";
4636             script {
4637                new st[31];
4638                new Float:vl;
4639                get_state(PART:"elm.text", st, 30, vl);
4640                if (!strcmp(st, "visible"))
4641                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4642                else
4643                  set_state(PART:"elm.text", "disabled", 0.0);
4644                set_int(button_state, BUTTON_STATE_DISABLED);
4645             }
4646          }
4647          program { name: "enable";
4648             signal: "elm,state,enabled";
4649             source: "elm";
4650             action: STATE_SET "default" 0.0;
4651             target: "button_image";
4652             target: "disabler";
4653             after: "enable_text";
4654          }
4655          program { name: "enable_text";
4656             script {
4657                new st[31];
4658                new Float:vl;
4659                get_state(PART:"elm.text", st, 30, vl);
4660                if (!strcmp(st, "disabled_visible"))
4661                  set_state(PART:"elm.text", "visible", 0.0);
4662                else
4663                  set_state(PART:"elm.text", "default", 0.0);
4664                set_int(button_state, BUTTON_STATE_ENABLED);
4665             }
4666          }
4667          program { name: "action_focus";
4668             signal: "elm,action,focus_highlight,show";
4669             source: "elm";
4670             action: STATE_SET "focused" 0.0;
4671             target: "focus_image";
4672          }
4673          program { name: "action_unfocus";
4674             signal: "elm,action,focus_highlight,hide";
4675             source: "elm";
4676             action: STATE_SET "default" 0.0;
4677             target: "focus_image";
4678          }
4679       }
4680    }
4681
4682 ///////////////////////////////////////////////////////////////////////////////////////
4683    group { name: "elm/button/base/naviframe/back_btn/default";
4684       alias: "elm/button/base/naviframe/prev_btn/default";
4685       alias: "elm/button/base/naviframe/end_btn/default";
4686       data {
4687          item: "focus_highlight" "on";
4688       }
4689       images {
4690          image: "00_icon_back.png" COMP;
4691          image: "00_icon_SIP_close.png" COMP;
4692          image: "00_icon_focus.png" COMP;
4693       }
4694       parts {
4695          part { name: "button_image";
4696             type: RECT;
4697             scale: 1;
4698             description { state: "default" 0.0;
4699                min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4700                max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4701                visible: 0;
4702             }
4703             description { state: "landscape" 0.0;
4704                min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4705                max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4706                visible: 0;
4707             }
4708          }
4709          part { name: "focus_image";
4710             scale: 1;
4711             mouse_events: 0;
4712             repeat_events: 1;
4713             description { state: "default" 0.0;
4714                visible: 0;
4715                rel1.to : "button_image";
4716                rel2.to : "button_image";
4717                image {
4718                   normal: "00_icon_focus.png";
4719                   border_scale: 1;
4720                }
4721             }
4722             description { state: "focused" 0.0;
4723                inherit: "default" 0.0;
4724                visible: 1;
4725             }
4726          }
4727          part { name: "back_button";
4728             scale: 1;
4729             mouse_events: 0;
4730             clip_to: "back_button.clipper";
4731             description { state: "default" 0.0;
4732                min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4733                max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4734                fixed: 1 1;
4735                rel1.to: "button_image";
4736                rel2.to: "button_image";
4737                image.normal: "00_icon_back.png";
4738             }
4739             description { state: "compress" 0.0;
4740                inherit: "default" 0.0;
4741                image.normal: "00_icon_SIP_close.png";
4742             }
4743          }
4744          part { name: "back_button.clipper";
4745             type: RECT;
4746             description { state: "default" 0.0;
4747                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4748             }
4749             description { state: "clicked" 0.0;
4750                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4751             }
4752             description { state: "disabled" 0.0;
4753                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4754             }
4755          }
4756          part { name: "over2";
4757             type: RECT;
4758             ignore_flags: ON_HOLD;
4759             description { state: "default" 0.0;
4760                color: 0 0 0 0;
4761             }
4762          }
4763          part { name: "over3";
4764             type: RECT;
4765             repeat_events: 1;
4766             description { state: "default" 0.0;
4767                color: 0 0 0 0;
4768             }
4769          }
4770          part { name: "disabler";
4771             type: RECT;
4772             description { state: "default" 0.0;
4773                color: 0 0 0 0;
4774                visible: 0;
4775             }
4776             description { state: "disabled" 0.0;
4777                inherit: "default" 0.0;
4778                visible: 1;
4779             }
4780          }
4781       }
4782       programs {
4783          program { name: "button_click";
4784             signal: "mouse,down,1";
4785             source: "over2";
4786             action: SIGNAL_EMIT "elm,action,press" "";
4787             after: "button_click_anim";
4788          }
4789          program { name: "button_click_anim";
4790             script {
4791                set_state(PART:"back_button.clipper", "clicked", 0.0);
4792             }
4793          }
4794          program { name: "button_double_click";
4795             signal: "mouse,down,1,double";
4796             source: "over2";
4797             after: "button_click_anim";
4798          }
4799          program { name: "button_unclick";
4800             signal: "mouse,up,1";
4801             source: "over3";
4802             action: SIGNAL_EMIT "elm,action,unpress" "";
4803             after: "button_unclick_anim";
4804          }
4805          program { name: "button_unclick_anim";
4806             script {
4807                set_state(PART:"back_button.clipper", "default", 0.0);
4808             }
4809          }
4810          program { name: "touch_snd";
4811             signal: "mouse,clicked,1";
4812             source: "over2";
4813             action: PLAY_SAMPLE "touch_sound" 1.0;
4814             after: button_unclick3;
4815          }
4816          program { name: "button_unclick3";
4817             action: SIGNAL_EMIT "elm,action,click" "";
4818          }
4819          program { name: "disable";
4820             signal: "elm,state,disabled";
4821             source: "elm";
4822             script {
4823                set_state(PART:"back_button.clipper", "disabled", 0.0);
4824             }
4825          }
4826          program { name: "enable";
4827             signal: "elm,state,enabled";
4828             source: "elm";
4829             script {
4830                set_state(PART:"back_button.clipper", "default", 0.0);
4831             }
4832          }
4833          program { name: "change_to_landscape";
4834             signal: "elm,state,landscape";
4835             source: "elm";
4836             action: STATE_SET "landscape" 0.0;
4837             target: "button_image";
4838          }
4839          program { name: "change_to_portrait";
4840             signal: "elm,state,portrait";
4841             source: "elm";
4842             action: STATE_SET "default" 0.0;
4843             target: "button_image";
4844          }
4845          program { name: "landscape_mode";
4846             source: "elm";
4847             signal: "elm,state,orient,90";
4848             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4849          }
4850          program { name: "landscape_mode2";
4851             source: "elm";
4852             signal: "elm,state,orient,270";
4853             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4854          }
4855          program { name: "portrait_mode";
4856             source: "elm";
4857             signal: "elm,state,orient,0";
4858             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4859          }
4860          program { name: "portrait_mode2";
4861             source: "elm";
4862             signal: "elm,state,orient,180";
4863             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4864          }
4865          program { name: "display_compress_mode";
4866             signal: "elm,state,display,compress";
4867             source: "elm";
4868             action: STATE_SET "compress" 0.0;
4869             target: "back_button";
4870          }
4871          program { name: "display_default_mode";
4872             signal: "elm,state,display,default";
4873             source: "elm";
4874             action: STATE_SET "default" 0.0;
4875             target: "back_button";
4876          }
4877          program { name: "action_focus";
4878             signal: "elm,action,focus_highlight,show";
4879             source: "elm";
4880             action: STATE_SET "focused" 0.0;
4881             target: "focus_image";
4882          }
4883          program { name: "action_unfocus";
4884             signal: "elm,action,focus_highlight,hide";
4885             source: "elm";
4886             action: STATE_SET "default" 0.0;
4887             target: "focus_image";
4888          }
4889       }
4890    }
4891
4892 ////////////////////////////////////////////////////////////////////
4893    group { name: "elm/button/base/naviframe/title_icon";
4894       data {
4895          item: "focus_highlight" "on";
4896       }
4897       images {
4898          image: "00_icon_focus.png" COMP;
4899       }
4900       parts {
4901          part { name: "button_image";
4902             type: RECT;
4903             scale: 1;
4904             description { state: "default" 0.0;
4905                visible: 0;
4906                min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4907                max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4908             }
4909             description { state: "landscape" 0.0;
4910                visible: 0;
4911                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4912                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4913             }
4914          }
4915          part { name: "focus_image";
4916             scale: 1;
4917             mouse_events: 0;
4918             repeat_events: 1;
4919             description { state: "default" 0.0;
4920                visible: 0;
4921                rel1.to : "button_image";
4922                rel2.to : "button_image";
4923                image {
4924                   normal: "00_icon_focus.png";
4925                   border_scale: 1;
4926                }
4927             }
4928             description { state: "focused" 0.0;
4929                inherit: "default" 0.0;
4930                visible: 1;
4931             }
4932          }
4933          part { name: "elm.swallow.content";
4934             type: SWALLOW;
4935             scale: 1;
4936             clip_to: "elm.icon.clipper";
4937             description { state: "default" 0.0;
4938                visible: 0;
4939                max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
4940                align: 0.5 0.5;
4941                rel1 { to: "button_image"; }
4942                rel2 { to: "button_image"; }
4943             }
4944             description { state: "visible" 0.0;
4945                inherit: "default" 0.0;
4946                visible: 1;
4947             }
4948          }
4949          part { name: "elm.icon.clipper";
4950             type: RECT;
4951             description { state: "default" 0.0;
4952             }
4953             description { state: "clicked" 0.0;
4954             }
4955             description { state: "disabled" 0.0;
4956                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4957             }
4958          }
4959          part { name: "elm.swallow.content.proxy_shadow";
4960             type: PROXY;
4961             scale: 1;
4962             clip_to: "elm.icon.proxy_shadow.clipper";
4963             description { state: "default" 0.0;
4964                source: "elm.swallow.content";
4965                rel1 { to: "elm.swallow.content"; offset: 0 2; }
4966                rel2 { to: "elm.swallow.content"; offset: -1 1; }
4967             }
4968             description { state: "clicked" 0.0;
4969                inherit: "default" 0.0;
4970                rel1.offset: 0 -2;
4971                rel2.offset: -1 -3;
4972             }
4973             description { state: "disabled" 0.0;
4974                visible: 0;
4975             }
4976          }
4977          part { name: "elm.icon.proxy_shadow.clipper";
4978             type: RECT;
4979             description { state: "default" 0.0;
4980                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_SHADOW_COLOR_INC;
4981             }
4982             description { state: "clicked" 0.0;
4983                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_SHADOW_COLOR_INC;
4984             }
4985             description { state: "disabled" 0.0;
4986                visible: 0;
4987             }
4988          }
4989          part { name: "elm.swallow.content.proxy";
4990             type: PROXY;
4991             scale: 1;
4992             clip_to: "elm.icon.proxy.clipper";
4993             description { state: "default" 0.0;
4994                source: "elm.swallow.content";
4995                rel1 { to: "elm.swallow.content"; }
4996                rel2 { to: "elm.swallow.content"; }
4997             }
4998          }
4999          part { name: "elm.icon.proxy.clipper";
5000             type: RECT;
5001             description { state: "default" 0.0;
5002                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5003             }
5004             description { state: "clicked" 0.0;
5005                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5006             }
5007             description { state: "disabled" 0.0;
5008                visible: 0;
5009             }
5010          }
5011          part { name: "over2";
5012             type: RECT;
5013             ignore_flags: ON_HOLD;
5014             description { state: "default" 0.0;
5015                color: 0 0 0 0;
5016             }
5017          }
5018          part { name: "over3";
5019             type: RECT;
5020             repeat_events: 1;
5021             description { state: "default" 0.0;
5022                color: 0 0 0 0;
5023             }
5024          }
5025          part { name: "disabler";
5026             type: RECT;
5027             description { state: "default" 0.0;
5028                color: 0 0 0 0;
5029                visible: 0;
5030             }
5031             description { state: "disabled" 0.0;
5032                inherit: "default" 0.0;
5033                visible: 1;
5034             }
5035          }
5036       }
5037       programs {
5038          program { name: "button_click";
5039             signal: "mouse,down,1";
5040             source: "over2";
5041             action: SIGNAL_EMIT "elm,action,press" "";
5042             after: "button_click_anim";
5043          }
5044          program { name: "button_click_anim";
5045             script {
5046                set_state(PART:"elm.icon.proxy_shadow.clipper", "clicked", 0.0);
5047                set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5048                set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5049                set_state(PART:"elm.swallow.content.proxy_shadow", "clicked", 0.0);
5050             }
5051          }
5052          program { name: "button_double_click";
5053             signal: "mouse,down,1,double";
5054             source: "over2";
5055             after: "button_click_anim";
5056          }
5057          program { name: "button_unpress";
5058             action: SIGNAL_EMIT "elm,action,unpress" "";
5059          }
5060          program { name: "button_mouseout_clicked";
5061             signal: "mouse,up,1";
5062             source: "over3";
5063             script {
5064                set_state(PART:"elm.icon.proxy_shadow.clipper", "default", 0.0);
5065                set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5066                set_state(PART:"elm.icon.clipper", "default", 0.0);
5067                set_state(PART:"elm.swallow.content.proxy_shadow", "default", 0.0);
5068             }
5069             after: button_unpress;
5070          }
5071          program { name: "touch_snd";
5072             signal: "mouse,clicked,1";
5073             source: "over2";
5074             action: PLAY_SAMPLE "touch_sound" 1.0;
5075             after: button_unclick3;
5076          }
5077          program { name: "button_unclick3";
5078             action: SIGNAL_EMIT "elm,action,click" "";
5079          }
5080          program { name: "icon_show";
5081             signal: "elm,state,icon,visible";
5082             source: "elm";
5083             action: STATE_SET "visible" 0.0;
5084             target: "elm.swallow.content";
5085          }
5086          program { name: "icon_hide";
5087             signal: "elm,state,icon,hidden";
5088             source: "elm";
5089             action: STATE_SET "default" 0.0;
5090             target: "elm.swallow.content";
5091          }
5092          program { name: "disable";
5093             signal: "elm,state,disabled";
5094             source: "elm";
5095             script {
5096                set_state(PART:"disabler", "disabled", 0.0);
5097                set_state(PART:"elm.icon.proxy_shadow.clipper", "disabled", 0.0);
5098                set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5099                set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5100                set_state(PART:"elm.swallow.content.proxy_shadow", "disabled", 0.0);
5101             }
5102          }
5103          program { name: "enable";
5104             signal: "elm,state,enabled";
5105             source: "elm";
5106             script {
5107                set_state(PART:"disabler", "default", 0.0);
5108                set_state(PART:"elm.icon.proxy_shadow.clipper", "default", 0.0);
5109                set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5110                set_state(PART:"elm.icon.clipper", "default", 0.0);
5111                set_state(PART:"elm.swallow.content.proxy_shadow", "default", 0.0);
5112             }
5113          }
5114          program { name: "change_to_landscape";
5115             signal: "elm,state,landscape";
5116             source: "elm";
5117             action: STATE_SET "landscape" 0.0;
5118             target: "button_image";
5119          }
5120          program { name: "change_to_portrait";
5121             signal: "elm,state,portrait";
5122             source: "elm";
5123             action: STATE_SET "default" 0.0;
5124             target: "button_image";
5125          }
5126          program { name: "landscape_mode";
5127             source: "elm";
5128             signal: "elm,state,orient,90";
5129             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5130          }
5131          program { name: "landscape_mode2";
5132             source: "elm";
5133             signal: "elm,state,orient,270";
5134             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5135          }
5136          program { name: "portrait_mode";
5137             source: "elm";
5138             signal: "elm,state,orient,0";
5139             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5140          }
5141          program { name: "portrait_mode2";
5142             source: "elm";
5143             signal: "elm,state,orient,180";
5144             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5145          }
5146          program { name: "action_focus";
5147             signal: "elm,action,focus_highlight,show";
5148             source: "elm";
5149             action: STATE_SET "focused" 0.0;
5150             target: "focus_image";
5151          }
5152          program { name: "action_unfocus";
5153             signal: "elm,action,focus_highlight,hide";
5154             source: "elm";
5155             action: STATE_SET "default" 0.0;
5156             target: "focus_image";
5157          }
5158       }
5159    }
5160
5161 ////////////////////////////////////////////////////////////////////
5162    group { name: "elm/button/base/naviframe/title_text";
5163       images {
5164          image: "00_title_press.png" COMP;
5165       }
5166       script {
5167          public landscape = 0;
5168          public disabled = 0;
5169       }
5170       styles{
5171          style { name: "btn_naviframe_title_text";
5172             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=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5173             tag: "br" "\n";
5174             tag: "ps" "ps";
5175             tag: "tab" "\t";
5176          }
5177          style { name: "btn_naviframe_title_text_disabled";
5178             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5179             tag: "br" "\n";
5180             tag: "ps" "ps";
5181             tag: "tab" "\t";
5182          }
5183          style { name: "btn_naviframe_title_text_pressed";
5184             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5185             tag: "br" "\n";
5186             tag: "ps" "ps";
5187             tag: "tab" "\t";
5188          }
5189       }
5190       parts {
5191          part { name: "button_bg";
5192             type: RECT;
5193             scale: 1;
5194             description { state: "default" 0.0;
5195                visible: 0;
5196                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_INC;
5197                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MAX_INC;
5198             }
5199             description { state: "landscape" 0.0;
5200                visible: 0;
5201                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_INC;
5202                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MAX_INC;
5203             }
5204          }
5205          part { name: "button_image";
5206             type: IMAGE;
5207             scale: 1;
5208             description { state: "default" 0.0;
5209                visible: 0;
5210                rel1 { to: "button_bg"; }
5211                rel2 { to: "button_bg"; }
5212             }
5213             description { state: "clicked" 0.0;
5214                inherit: "default" 0.0;
5215                visible: 1;
5216                image {
5217                   normal: "00_title_press.png";
5218                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
5219                   border_scale: 1;
5220                }
5221             }
5222             description { state: "disabled" 0.0;
5223                inherit: "default" 0.0;
5224             }
5225          }
5226          part { name: "left_padding";
5227             type: RECT;
5228             scale: 1;
5229             description { state: "default" 0.0;
5230                visible: 0;
5231                min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
5232                max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
5233                align: 0.0 0.5;
5234                fixed: 1 0;
5235                rel1 { relative: 0.0 0.0; to: "button_bg"; }
5236                rel2 { relative: 0.0 1.0; to: "button_bg"; }
5237             }
5238          }
5239          part { name: "right_padding";
5240             type: RECT;
5241             scale: 1;
5242             description { state: "default" 0.0;
5243                visible: 0;
5244                min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
5245                max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
5246                align: 1.0 0.5;
5247                fixed: 1 0;
5248                rel1 { relative: 1.0 0.0; to: "button_bg"; }
5249                rel2 { relative: 1.0 1.0; to: "button_bg"; }
5250             }
5251          }
5252          part { name: "elm.text";
5253             type: TEXTBLOCK;
5254             mouse_events: 0;
5255             scale: 1;
5256             description { state: "default" 0.0;
5257                min: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MIN_INC;
5258                max: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MAX_INC;
5259                rel1 { relative: 1.0 0.0; to: "left_padding"; }
5260                rel2 { relative: 0.0 1.0; to: "right_padding"; }
5261                text {
5262                   style: "btn_naviframe_title_text";
5263                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
5264                   min: 1 0;
5265                }
5266             }
5267             description { state: "disabled" 0.0;
5268                inherit: "default" 0.0;
5269                text {
5270                   style: "btn_naviframe_title_text_disabled";
5271                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
5272                   min: 1 0;
5273                }
5274             }
5275             description { state: "pressed" 0.0;
5276                inherit: "default" 0.0;
5277                text {
5278                   style: "btn_naviframe_title_text_pressed";
5279                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
5280                   min: 1 0;
5281                }
5282             }
5283             description { state: "landscape" 0.0;
5284                inherit: "default" 0.0;
5285                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MIN_INC;
5286                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MAX_INC;
5287             }
5288             description { state: "landscape_disabled" 0.0;
5289                inherit: "landscape" 0.0;
5290                text {
5291                   style: "btn_naviframe_title_text_disabled";
5292                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
5293                   min: 1 0;
5294                }
5295             }
5296             description { state: "landscape_pressed" 0.0;
5297                inherit: "landscape" 0.0;
5298                text {
5299                   style: "btn_naviframe_title_text_pressed";
5300                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
5301                   min: 1 0;
5302                }
5303             }
5304          }
5305          part { name: "over2";
5306             type: RECT;
5307             ignore_flags: ON_HOLD;
5308             description { state: "default" 0.0;
5309                color: 0 0 0 0;
5310             }
5311          }
5312          part { name: "over3";
5313             type: RECT;
5314             repeat_events: 1;
5315             description { state: "default" 0.0;
5316                color: 0 0 0 0;
5317             }
5318          }
5319          part { name: "disabler";
5320             type: RECT;
5321             description { state: "default" 0.0;
5322                color: 0 0 0 0;
5323                visible: 0;
5324             }
5325             description { state: "disabled" 0.0;
5326                inherit: "default" 0.0;
5327                visible: 1;
5328             }
5329          }
5330       }
5331       programs {
5332          program { name: "button_click";
5333             signal: "mouse,down,1";
5334             source: "over2";
5335             action: SIGNAL_EMIT "elm,action,press" "";
5336             after: "button_click_anim";
5337          }
5338          program { name: "button_click_anim";
5339             script {
5340                set_state(PART:"button_image", "clicked", 0.0);
5341
5342                if (get_int(landscape))
5343                  set_state(PART:"elm.text", "landscape_pressed", 0.0);
5344                else
5345                  set_state(PART:"elm.text", "pressed", 0.0);
5346             }
5347          }
5348          program { name: "button_double_click";
5349             signal: "mouse,down,1,double";
5350             source: "over2";
5351             after: "button_click_anim";
5352          }
5353          program { name: "button_unclick";
5354             signal: "mouse,up,1";
5355             source: "over3";
5356             action: SIGNAL_EMIT "elm,action,unpress" "";
5357             after: "button_unclick_anim";
5358          }
5359          program { name: "button_unclick_anim";
5360             script {
5361                set_state(PART:"button_image", "default", 0.0);
5362
5363                if (get_int(landscape))
5364                  set_state(PART:"elm.text", "landscape", 0.0);
5365                else
5366                  set_state(PART:"elm.text", "default", 0.0);
5367             }
5368          }
5369          program { name: "touch_snd";
5370             signal: "mouse,clicked,1";
5371             source: "over2";
5372             action: PLAY_SAMPLE "touch_sound" 1.0;
5373             after: "button_unclick3";
5374          }
5375          program { name: "button_unclick3";
5376             action: SIGNAL_EMIT "elm,action,click" "";
5377          }
5378          program { name: "disable";
5379             signal: "elm,state,disabled";
5380             source: "elm";
5381             script {
5382                set_int(disabled, 1);
5383                set_state(PART:"disabler", "disabled", 0.0);
5384                set_state(PART:"button_image", "disabled", 0.0);
5385
5386                if (get_int(landscape))
5387                  set_state(PART:"elm.text", "landscape_disabled", 0.0);
5388                else
5389                  set_state(PART:"elm.text", "disabled", 0.0);
5390             }
5391          }
5392          program { name: "enable";
5393             signal: "elm,state,enabled";
5394             source: "elm";
5395             script {
5396                set_int(disabled, 0);
5397                set_state(PART:"disabler", "default", 0.0);
5398                set_state(PART:"button_image", "default", 0.0);
5399
5400                if (get_int(landscape))
5401                  set_state(PART:"elm.text", "landscape", 0.0);
5402                else
5403                  set_state(PART:"elm.text", "default", 0.0);
5404             }
5405          }
5406          program { name: "change_to_landscape";
5407             signal: "elm,state,landscape";
5408             source: "elm";
5409             script {
5410                set_int(landscape, 1);
5411                set_state(PART:"button_bg", "landscape", 0.0);
5412
5413                if (get_int(disabled))
5414                  set_state(PART:"elm.text", "landscape", 0.0);
5415                else
5416                  set_state(PART:"elm.text", "landscape_disabled", 0.0);
5417             }
5418          }
5419          program { name: "change_to_portrait";
5420             signal: "elm,state,portrait";
5421             source: "elm";
5422             script {
5423                set_int(landscape, 0);
5424                set_state(PART:"button_bg", "default", 0.0);
5425
5426                if (get_int(disabled))
5427                  set_state(PART:"elm.text", "disabled", 0.0);
5428                else
5429                  set_state(PART:"elm.text", "default", 0.0);
5430             }
5431          }
5432          program { name: "landscape_mode";
5433             source: "elm";
5434             signal: "elm,state,orient,90";
5435             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5436          }
5437          program { name: "landscape_mode2";
5438             source: "elm";
5439             signal: "elm,state,orient,270";
5440             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5441          }
5442          program { name: "portrait_mode";
5443             source: "elm";
5444             signal: "elm,state,orient,0";
5445             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5446          }
5447          program { name: "portrait_mode2";
5448             source: "elm";
5449             signal: "elm,state,orient,180";
5450             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5451          }
5452       }
5453    }
5454
5455 /////////////////////////////////////////////////////////////////////////////////////////
5456    group { name: "elm/button/base/naviframe/more/default";
5457       data {
5458          item: "focus_highlight" "on";
5459       }
5460       images {
5461          image: "00_icon_more.png" COMP;
5462          image: "00_icon_focus.png" COMP;
5463       }
5464       parts {
5465          part { name: "button_image";
5466             type: RECT;
5467             scale: 1;
5468             description { state: "default" 0.0;
5469                min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5470                max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5471                visible: 0;
5472             }
5473             description { state: "landscape" 0.0;
5474                min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5475                max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5476                visible: 0;
5477             }
5478          }
5479          part { name: "focus_image";
5480             scale: 1;
5481             mouse_events: 0;
5482             repeat_events: 1;
5483             description { state: "default" 0.0;
5484                visible: 0;
5485                rel1.to : "button_image";
5486                rel2.to : "button_image";
5487                image {
5488                   normal: "00_icon_focus.png";
5489                   border_scale: 1;
5490                }
5491             }
5492             description { state: "focused" 0.0;
5493                inherit: "default" 0.0;
5494                visible: 1;
5495             }
5496          }
5497          part { name: "more_image";
5498             scale: 1;
5499             mouse_events: 0;
5500             clip_to: "more_image.clipper";
5501             description { state: "default" 0.0;
5502                min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5503                max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5504                fixed: 1 1;
5505                rel1.to: "button_image";
5506                rel2.to: "button_image";
5507                image.normal: "00_icon_more.png";
5508             }
5509          }
5510          part { name: "more_image.clipper";
5511             type: RECT;
5512             description { state: "default" 0.0;
5513                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5514             }
5515             description { state: "clicked" 0.0;
5516                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5517             }
5518             description { state: "disabled" 0.0;
5519                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5520             }
5521          }
5522          part { name: "over2";
5523             type: RECT;
5524             ignore_flags: ON_HOLD;
5525             description { state: "default" 0.0;
5526                color: 0 0 0 0;
5527             }
5528          }
5529          part { name: "over3";
5530             type: RECT;
5531             repeat_events: 1;
5532             description { state: "default" 0.0;
5533                color: 0 0 0 0;
5534             }
5535          }
5536          part { name: "disabler";
5537             type: RECT;
5538             description { state: "default" 0.0;
5539                color: 0 0 0 0;
5540                visible: 0;
5541             }
5542             description { state: "disabled" 0.0;
5543                inherit: "default" 0.0;
5544                visible: 1;
5545             }
5546          }
5547       }
5548       programs {
5549          program { name: "button_click";
5550             signal: "mouse,down,1";
5551             source: "over2";
5552             action: SIGNAL_EMIT "elm,action,press" "";
5553             after: "button_click_anim";
5554          }
5555          program { name: "button_click_anim";
5556             script {
5557                set_state(PART:"more_image.clipper", "clicked", 0.0);
5558             }
5559          }
5560          program { name: "button_double_click";
5561             signal: "mouse,down,1,double";
5562             source: "over2";
5563             after: "button_click_anim";
5564          }
5565          program { name: "button_unclick";
5566             signal: "mouse,up,1";
5567             source: "over3";
5568             action: SIGNAL_EMIT "elm,action,unpress" "";
5569             after: "button_unclick_anim";
5570          }
5571          program { name: "button_unclick_anim";
5572             script {
5573                set_state(PART:"more_image.clipper", "default", 0.0);
5574             }
5575          }
5576          program { name: "touch_snd";
5577             signal: "mouse,clicked,1";
5578             source: "over2";
5579             action: PLAY_SAMPLE "touch_sound" 1.0;
5580             after: button_unclick3;
5581          }
5582          program { name: "button_unclick3";
5583             action: SIGNAL_EMIT "elm,action,click" "";
5584          }
5585          program { name: "disable";
5586             signal: "elm,state,disabled";
5587             source: "elm";
5588             script {
5589                set_state(PART:"disabler", "disabled", 0.0);
5590                set_state(PART:"more_image.clipper", "disabled", 0.0);
5591             }
5592          }
5593          program { name: "enable";
5594             signal: "elm,state,enabled";
5595             source: "elm";
5596             script {
5597                set_state(PART:"disabler", "default", 0.0);
5598                set_state(PART:"more_image.clipper", "default", 0.0);
5599             }
5600          }
5601          program { name: "change_to_landscape";
5602             signal: "elm,state,landscape";
5603             source: "elm";
5604             action: STATE_SET "landscape" 0.0;
5605             target: "button_image";
5606          }
5607          program { name: "change_to_portrait";
5608             signal: "elm,state,portrait";
5609             source: "elm";
5610             action: STATE_SET "default" 0.0;
5611             target: "button_image";
5612          }
5613          program { name: "landscape_mode";
5614             source: "elm";
5615             signal: "elm,state,orient,90";
5616             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5617          }
5618          program { name: "landscape_mode2";
5619             source: "elm";
5620             signal: "elm,state,orient,270";
5621             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5622          }
5623          program { name: "portrait_mode";
5624             source: "elm";
5625             signal: "elm,state,orient,0";
5626             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5627          }
5628          program { name: "portrait_mode2";
5629             source: "elm";
5630             signal: "elm,state,orient,180";
5631             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5632          }
5633          program { name: "action_focus";
5634             signal: "elm,action,focus_highlight,show";
5635             source: "elm";
5636             action: STATE_SET "focused" 0.0;
5637             target: "focus_image";
5638          }
5639          program { name: "action_unfocus";
5640             signal: "elm,action,focus_highlight,hide";
5641             source: "elm";
5642             action: STATE_SET "default" 0.0;
5643             target: "focus_image";
5644          }
5645       }
5646    }
5647
5648 ///////////////////////////////////////////////////////////////////////////////////////
5649    group { name: "elm/button/base/expandable_number";
5650       alias: "elm/button/base/text_only/expandable_number";
5651       data {
5652          item: "focus_highlight" "on";
5653       }
5654       images {
5655          image: "00_button_01.png" COMP;
5656          image: "00_button_01_press.png" COMP;
5657          image: "00_button_01_dim.png" COMP;
5658          image: "00_arrow_expand.png" COMP;
5659          image: "00_button_01_focus.png" COMP;
5660       }
5661       styles{
5662          style { name: "btn_base_exapandable_number";
5663             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";
5664             tag: "br" "\n";
5665             tag: "ps" "ps";
5666             tag: "tab" "\t";
5667          }
5668          style { name: "btn_base_exapandable_number_pressed";
5669             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";
5670             tag: "br" "\n";
5671             tag: "ps" "ps";
5672             tag: "tab" "\t";
5673          }
5674          style { name: "btn_base_exapandable_number_dim";
5675             base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_DISABLE_VISIBLE_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5676             tag: "br" "\n";
5677             tag: "ps" "ps";
5678             tag: "tab" "\t";
5679          }
5680          style { name: "btn_base_exapandable_number_focus";
5681             base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5682             tag: "br" "\n";
5683             tag: "ps" "ps";
5684             tag: "tab" "\t";
5685          }
5686       }
5687       script {
5688          public button_state = BUTTON_STATE_ENABLED;
5689       }
5690       parts {
5691          part { name: "button_image";
5692             scale: 1;
5693             description { state: "default" 0.0;
5694                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5695                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5696                image {
5697                   normal: "00_button_01.png";
5698                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5699                   border_scale: 1;
5700                }
5701             }
5702             description { state: "clicked" 0.0;
5703                inherit: "default" 0.0;
5704                image.normal: "00_button_01_press.png";
5705             }
5706             description { state: "disabled" 0.0;
5707                inherit: "default" 0.0;
5708                image.normal: "00_button_01_dim.png";
5709             }
5710             description { state: "focused" 0.0;
5711                inherit: "default" 0.0;
5712                image.normal: "00_button_01_press.png";
5713             }
5714          }
5715          part { name: "focus_image";
5716             scale: 1;
5717             mouse_events: 0;
5718             repeat_events: 1;
5719             description { state: "default" 0.0;
5720                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5721                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5722                visible: 0;
5723                rel1.to : "button_image";
5724                rel2.to : "button_image";
5725                image {
5726                   normal: "00_button_01_focus.png";
5727                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5728                   border_scale: 1;
5729                }
5730             }
5731             description { state: "focused" 0.0;
5732                inherit: "default" 0.0;
5733                visible: 1;
5734             }
5735          }
5736          part { name: "padding_left_top";
5737             type: RECT;
5738             scale: 1;
5739             mouse_events: 0;
5740             description { state: "default" 0.0;
5741                visible: 0;
5742                align: 0.0 0.0;
5743                rel2.relative: 0.0 0.0;
5744                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5745                fixed: 1 1;
5746             }
5747          }
5748          part { name: "padding_right_bottom";
5749             type: RECT;
5750             scale: 1;
5751             mouse_events: 0;
5752             description { state: "default" 0.0;
5753                visible: 0;
5754                align: 1.0 1.0;
5755                rel1.relative: 1.0 1.0;
5756                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5757                fixed: 1 1;
5758             }
5759          }
5760          part { name: "icon_rect";
5761             type: RECT;
5762             scale: 1;
5763             mouse_events: 0;
5764             description { state: "default" 0.0;
5765                visible: 0;
5766                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5767                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5768                fixed: 1 0;
5769                rel1 {
5770                   relative: 0.0 1.0;
5771                   to_x: "padding_right_bottom";
5772                   to_y: "padding_left_top";
5773                }
5774                rel2 {
5775                   relative: 0.0 0.0;
5776                   to: "padding_right_bottom";
5777                }
5778                align: 1.0 0.5;
5779             }
5780          }
5781          part { name: "arrow_expand";
5782             scale: 1;
5783             clip_to: "icon_clipper";
5784             mouse_events: 0;
5785             description { state: "default" 0.0;
5786                align: 0.0 0.5;
5787                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5788                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5789                fixed: 0 0;
5790                rel1.to: "icon_rect";
5791                rel2.to: "icon_rect";
5792                image.normal:"00_arrow_expand.png";
5793             }
5794          }
5795          part { name: "elm.text";
5796             type: TEXTBLOCK;
5797             mouse_events: 0;
5798             scale: 1;
5799             description { state: "default" 0.0;
5800                min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5801                max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5802                fixed:1 0;
5803                rel1 {
5804                   relative: 1.0 1.0;
5805                   to: "padding_left_top";
5806                }
5807                rel2 {
5808                   relative: 1.0 1.0;
5809                   to_x:"padding_left_top";
5810                   to_y:"padding_right_bottom";
5811                }
5812                align: 0.0 0.5;
5813                text {
5814                   style: "btn_base_exapandable_number";
5815                   min: 0 0;
5816                   fit: 1 1;
5817                   size_range: 28 32;
5818                }
5819             }
5820             description { state: "visible" 0.0;
5821                inherit: "default" 0.0;
5822             }
5823             description { state: "clicked" 0.0;
5824                inherit: "default" 0.0;
5825                text {
5826                   style: "btn_base_exapandable_number_pressed";
5827                   min: 0 0;
5828                   fit: 1 1;
5829                   size_range: 28 32;
5830                }
5831             }
5832             description { state: "disabled" 0.0;
5833                inherit: "default" 0.0;
5834             }
5835             description { state: "disabled_visible" 0.0;
5836                inherit: "default" 0.0;
5837                text {
5838                   style: "btn_base_exapandable_number_dim";
5839                }
5840             }
5841             description { state: "focused" 0.0;
5842                inherit: "default" 0.0;
5843                text {
5844                   style: "btn_base_exapandable_number_focus";
5845                }
5846             }
5847          }
5848          part { name: "icon_clipper";
5849             scale: 1;
5850             type: RECT;
5851             description { state: "default" 0.0;
5852                color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
5853             }
5854             description { state: "clicked" 0.0;
5855                color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
5856             }
5857             description { state: "disabled" 0.0;
5858                color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
5859             }
5860          }
5861          part { name: "over2";
5862             type: RECT;
5863             repeat_events: 1;
5864             ignore_flags: ON_HOLD;
5865             description { state: "default" 0.0;
5866                color: 0 0 0 0;
5867             }
5868          }
5869          part { name: "over3";
5870             type: RECT;
5871             repeat_events: 1;
5872             description { state: "default" 0.0;
5873                color: 0 0 0 0;
5874             }
5875          }
5876          part { name: "disabler";
5877             type: RECT;
5878             description { state: "default" 0.0;
5879                color: 0 0 0 0;
5880                visible: 0;
5881             }
5882             description { state: "disabled" 0.0;
5883                inherit: "default" 0.0;
5884                visible: 1;
5885             }
5886          }
5887       }
5888       programs {
5889          program { name: "button_click";
5890             signal: "mouse,down,1";
5891             source: "over2";
5892             action: SIGNAL_EMIT "elm,action,press" "";
5893             after: "button_click_anim";
5894          }
5895          program { name: "button_click_anim";
5896             action: STATE_SET "clicked" 0.0;
5897             target: "button_image";
5898             target: "icon_clipper";
5899             after: "text_clicked";
5900          }
5901          program { name: "text_clicked";
5902             script {
5903                new st[31];
5904                new Float:vl;
5905                get_state(PART:"elm.text", st, 30, vl);
5906                if (!strcmp(st, "visible"))
5907                  set_state(PART:"elm.text", "clicked", 0.0);
5908             }
5909          }
5910          program { name: "button_double_click";
5911             signal: "mouse,down,1,double";
5912             source: "over2";
5913             after: "button_click_anim";
5914          }
5915          program { name: "button_unpress";
5916             action: SIGNAL_EMIT "elm,action,unpress" "";
5917          }
5918          program { name: "button_mouseout_clicked";
5919             signal: "mouse,up,1";
5920             source: "over3";
5921             script {
5922                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5923                  {
5924                     set_state(PART:"button_image", "default", 0.0);
5925                     set_state(PART:"elm.text", "visible", 0.0);
5926                     set_state(PART:"icon_clipper", "default", 0.0);
5927                  }
5928             }
5929             after: button_unpress;
5930          }
5931          program { name: "touch_snd";
5932             signal: "mouse,clicked,1";
5933             source: "over2";
5934             action: PLAY_SAMPLE "touch_sound" 1.0;
5935             after: button_unclick3;
5936          }
5937          program { name: "button_unclick3";
5938             action: SIGNAL_EMIT "elm,action,click" "";
5939          }
5940          program { name: "text_show";
5941             signal: "elm,state,text,visible";
5942             source: "elm";
5943             script {
5944                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5945                  set_state(PART:"elm.text", "visible", 0.0);
5946                else
5947                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5948             }
5949          }
5950          program { name: "text_hide";
5951             signal: "elm,state,text,hidden";
5952             source: "elm";
5953             script {
5954                set_state(PART:"elm.text", "default", 0.0);
5955             }
5956          }
5957          program { name: "disable";
5958             signal: "elm,state,disabled";
5959             source: "elm";
5960             action: STATE_SET "disabled" 0.0;
5961             target: "button_image";
5962             target: "disabler";
5963             target: "icon_clipper";
5964             after: "disable_text";
5965          }
5966          program { name: "disable_text";
5967             script {
5968                new st[31];
5969                new Float:vl;
5970                get_state(PART:"elm.text", st, 30, vl);
5971                if (!strcmp(st, "visible"))
5972                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5973                else
5974                  set_state(PART:"elm.text", "disabled", 0.0);
5975                set_int(button_state, BUTTON_STATE_DISABLED);
5976             }
5977          }
5978          program { name: "enable";
5979             signal: "elm,state,enabled";
5980             source: "elm";
5981             action: STATE_SET "default" 0.0;
5982             target: "button_image";
5983             target: "disabler";
5984             target: "icon_clipper";
5985             after: "enable_text";
5986          }
5987          program { name: "enable_text";
5988             script {
5989                new st[31];
5990                new Float:vl;
5991                get_state(PART:"elm.text", st, 30, vl);
5992                if (!strcmp(st, "disabled_visible"))
5993                  set_state(PART:"elm.text", "visible", 0.0);
5994                else
5995                  set_state(PART:"elm.text", "default", 0.0);
5996                set_int(button_state, BUTTON_STATE_ENABLED);
5997             }
5998          }
5999          program { name: "action_focus";
6000             signal: "elm,action,focus_highlight,show";
6001             source: "elm";
6002             action: STATE_SET "focused" 0.0;
6003             target: "focus_image";
6004          }
6005          program { name: "action_unfocus";
6006             signal: "elm,action,focus_highlight,hide";
6007             source: "elm";
6008             action: STATE_SET "default" 0.0;
6009             target: "focus_image";
6010          }
6011       }
6012    }
6013
6014 //////////////////////////////////////////////////////////////////////////////////////
6015    group { name: "elm/button/base/editfield_clear";
6016       images {
6017          image: "00_edit_field_clear.png" COMP;
6018       }
6019       parts {
6020          part { name: "bg";
6021             type: SPACER;
6022             scale: 1;
6023             mouse_events: 0;
6024             description { state: "default" 0.0;
6025                min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
6026                max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
6027             }
6028          }
6029          part { name: "button_image";
6030             type: RECT;
6031             scale: 1;
6032             description { state: "default" 0.0;
6033                visible: 0;
6034             }
6035             description { state: "clicked" 0.0;
6036                inherit: "default" 0.0;
6037             }
6038             description { state: "disabled" 0.0;
6039                inherit: "default" 0.0;
6040             }
6041             description { state: "focused" 0.0;
6042                inherit: "default" 0.0;
6043             }
6044          }
6045          part { name: "clear_button";
6046             scale: 1;
6047             mouse_events: 0;
6048             clip_to: "clear_button.clipper";
6049             description { state: "default" 0.0;
6050                min: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
6051                max: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
6052                align: 0.5 0.5;
6053                image.normal: "00_edit_field_clear.png";
6054             }
6055          }
6056          part { name: "clear_button.clipper";
6057             type: RECT;
6058             description { state: "default" 0.0;
6059                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
6060             }
6061             description { state: "clicked" 0.0;
6062                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
6063             }
6064             description { state: "disabled" 0.0;
6065                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
6066             }
6067          }
6068          part { name: "over2";
6069             type: RECT;
6070             ignore_flags: ON_HOLD;
6071             description { state: "default" 0.0;
6072                color: 0 0 0 0;
6073             }
6074          }
6075          part { name: "over3";
6076             type: RECT;
6077             repeat_events: 1;
6078             description { state: "default" 0.0;
6079                color: 0 0 0 0;
6080             }
6081          }
6082          part { name: "disabler";
6083             type: RECT;
6084             description { state: "default" 0.0;
6085                color: 0 0 0 0;
6086                visible: 0;
6087             }
6088             description { state: "disabled" 0.0;
6089                inherit: "default" 0.0;
6090                visible: 1;
6091             }
6092          }
6093       }
6094       programs {
6095          program { name: "button_click";
6096             signal: "mouse,down,1";
6097             source: "over2";
6098             action: SIGNAL_EMIT "elm,action,press" "";
6099             after: "button_click_anim";
6100          }
6101          program { name: "button_click_anim";
6102             action: STATE_SET "clicked" 0.0;
6103             target: "button_image";
6104             target: "clear_button.clipper";
6105          }
6106          program { name: "button_double_click";
6107             signal: "mouse,down,1,double";
6108             source: "over1";
6109             after: "button_click_anim";
6110          }
6111          program { name: "button_unclick";
6112             signal: "mouse,up,1";
6113             source: "over3";
6114             action: SIGNAL_EMIT "elm,action,unpress" "";
6115             after: "button_unclick_anim";
6116          }
6117          program { name: "button_unclick_anim";
6118             action: STATE_SET "default" 0.0;
6119             target: "button_image";
6120             target: "clear_button.clipper";
6121          }
6122          program { name: "touch_snd";
6123             signal: "mouse,clicked,1";
6124             source: "over2";
6125             action: PLAY_SAMPLE "touch_sound" 1.0;
6126             after: button_unclick3;
6127          }
6128          program { name: "button_unclick3";
6129             action: SIGNAL_EMIT "elm,action,click" "";
6130          }
6131          program { name: "disable";
6132             signal: "elm,state,disabled";
6133             source: "elm";
6134             action: STATE_SET "disabled" 0.0;
6135             target: "button_image";
6136             target: "disabler";
6137             target: "clear_button.clipper";
6138          }
6139          program { name: "enable";
6140             signal: "elm,state,enabled";
6141             source: "elm";
6142             action: STATE_SET "default" 0.0;
6143             target: "button_image";
6144             target: "disabler";
6145             target: "clear_button.clipper";
6146          }
6147       }
6148    }
6149
6150 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
6151    group { name: "elm/button/base/"style_name; \
6152       data { \
6153          item: "focus_highlight" "on"; \
6154       } \
6155       images { \
6156          image: image_normal COMP; \
6157       } \
6158       parts { \
6159          part { name: "elm.swallow.content"; \
6160             type: SWALLOW; \
6161             scale: 1; \
6162             description { state: "default" 0.0; \
6163             } \
6164          } \
6165          part { name: "focus_image"; \
6166             scale: 1; \
6167             mouse_events: 0; \
6168             repeat_events: 1; \
6169             description { state: "default" 0.0; \
6170                visible: 0; \
6171                image { \
6172                   normal: image_normal; \
6173                   border: 6 6 6 6; \
6174                   border_scale: 1; \
6175                } \
6176             } \
6177             description { state: "focused" 0.0; \
6178                inherit: "default" 0.0; \
6179                visible: 1; \
6180             } \
6181          } \
6182          part { name: "over2"; \
6183             type: RECT; \
6184             repeat_events: 1; \
6185             ignore_flags: ON_HOLD; \
6186             description { state: "default" 0.0; \
6187                color: 0 0 0 0; \
6188             } \
6189          } \
6190          part { name: "over3"; \
6191             type: RECT; \
6192             repeat_events: 1; \
6193             description { state: "default" 0.0; \
6194                color: 0 0 0 0; \
6195             } \
6196          } \
6197       } \
6198       programs { \
6199          program { name: "button_click"; \
6200             signal: "mouse,down,1"; \
6201             source: "over2"; \
6202             action: SIGNAL_EMIT "elm,action,press" ""; \
6203          } \
6204          program { name: "button_unclick"; \
6205             signal: "mouse,up,1"; \
6206             source: "over3"; \
6207             action: SIGNAL_EMIT "elm,action,unpress" ""; \
6208          } \
6209          program { name: "button_click3"; \
6210             signal: "mouse,clicked,1"; \
6211             source: "over2"; \
6212             action: SIGNAL_EMIT "elm,action,click" ""; \
6213          } \
6214          program { name: "action_focus"; \
6215             signal: "elm,action,focus_highlight,show"; \
6216             source: "elm"; \
6217             action: STATE_SET "focused" 0.0; \
6218             target: "focus_image"; \
6219          } \
6220          program { name: "action_unfocus"; \
6221             signal: "elm,action,focus_highlight,hide"; \
6222             source: "elm"; \
6223             action: STATE_SET "default" 0.0; \
6224             target: "focus_image"; \
6225          } \
6226       } \
6227    } \
6228
6229 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
6230 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
6231 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
6232 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
6233
6234    group { name: "elm/button/base/search_clear";
6235       inherit: "elm/button/base/editfield_clear";
6236       images {
6237          image: "00_field_btn_clear.png" COMP;
6238       }
6239       parts {
6240          part { name: "bg";
6241             type: SPACER;
6242             scale: 1;
6243             mouse_events: 0;
6244             description { state: "default" 0.0;
6245                min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
6246                max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
6247             }
6248          }
6249          part { name: "clear_button";
6250             scale: 1;
6251             mouse_events: 0;
6252             clip_to: "clear_button.clipper";
6253             description { state: "default" 0.0;
6254                min: BUTTON_SEARCH_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
6255                max: BUTTON_SEARCH_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
6256                align: 0.5 0.5;
6257                image.normal: "00_field_btn_clear.png";
6258             }
6259          }
6260          part { name: "clear_button.clipper";
6261             type: RECT;
6262             description { state: "default" 0.0;
6263                color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
6264             }
6265             description { state: "clicked" 0.0;
6266                color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
6267             }
6268             description { state: "disabled" 0.0;
6269                color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
6270             }
6271          }
6272       }
6273    }
6274
6275 #undef BUTTON_STATE_ENABLED
6276 #undef BUTTON_STATE_DISABLED
6277 #undef BUTTON_LANDSCAPE_DISABLED
6278 #undef BUTTON_LANDSCAPE_ENABLED