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