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