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