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