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