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