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