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