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