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