[Searchbar]: touch sound not working when clicked on search icon fix.
[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       data { \
2397          item: "focus_highlight" "on"; \
2398       } \
2399       images { \
2400          image: "00_circle_button.png" COMP; \
2401          image: "00_circle_button_press.png" COMP; \
2402          image: "00_circle_button_dim.png" COMP; \
2403          image: image_normal COMP; \
2404          image: image_press COMP; \
2405          image: 00_circle_button_focus.png COMP; \
2406       } \
2407       parts { \
2408          part { name: "button_image"; \
2409             scale: 1; \
2410             description { state: "default" 0.0; \
2411                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2412                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2413                image.normal: "00_circle_button.png"; \
2414             } \
2415             description { \
2416                state: "clicked" 0.0; \
2417                inherit: "default" 0.0; \
2418                image.normal: "00_circle_button_press.png"; \
2419             } \
2420             description { \
2421                state: "disabled" 0.0; \
2422                inherit: "default" 0.0; \
2423                image.normal: "00_circle_button_dim.png"; \
2424             } \
2425          } \
2426          part { name: "left_top_padding"; \
2427             scale: 1; \
2428             type: SPACER; \
2429             description { state: "default" 0.0; \
2430                min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2431                max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2432                fixed: 1 1; \
2433                align: 0.0 0.0; \
2434                rel1.to: "button_image"; \
2435                rel2.to: "button_image"; \
2436             } \
2437          } \
2438          part { name: "right_bottom_padding"; \
2439             scale: 1; \
2440             type: SPACER; \
2441             description { state: "default" 0.0; \
2442                min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2443                max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2444                fixed: 1 1; \
2445                align: 1.0 1.0; \
2446                rel1 { \
2447                   relative: 1.0 1.0; \
2448                   to: "button_image"; \
2449                } \
2450                rel2.to: "button_image"; \
2451             } \
2452          } \
2453          part { name: "button_center_part"; \
2454             scale: 1; \
2455             clip_to: "icon_clipper"; \
2456             description { state: "default" 0.0; \
2457                min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2458                max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2459                image.normal: image_normal; \
2460                rel1 { \
2461                   relative: 1.0 1.0; \
2462                   to: "left_top_padding"; \
2463                } \
2464                rel2 { \
2465                   relative: 0.0 0.0; \
2466                   to: "right_bottom_padding"; \
2467                } \
2468             } \
2469             description { state: "clicked" 0.0; \
2470                inherit: "default"; \
2471                image.normal: image_press; \
2472             } \
2473             description { state: "disabled" 0.0; \
2474                inherit: "default"; \
2475             } \
2476          } \
2477          part { name: "icon_clipper"; \
2478             type: RECT; \
2479             scale: 1; \
2480             description { state: "default" 0.0; \
2481                color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2482             } \
2483             description { state: "clicked" 0.0; \
2484                color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2485             } \
2486             description { state: "disabled" 0.0; \
2487                color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2488             } \
2489          } \
2490          part { name: "focus_image"; \
2491             scale: 1; \
2492             mouse_events: 0; \
2493             repeat_events: 1; \
2494               description { state: "default" 0.0; \
2495                  min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2496                  max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2497                  visible: 0; \
2498                  rel1.to : "button_image"; \
2499                  rel2.to : "button_image"; \
2500                  image { \
2501                   normal: "00_circle_button_focus.png"; \
2502                   border_scale: 1; \
2503                } \
2504             } \
2505             description { state: "focused" 0.0; \
2506                inherit: "default" 0.0; \
2507                visible: 1; \
2508             } \
2509          } \
2510          part { name: "over1"; \
2511             type: RECT; \
2512             ignore_flags: ON_HOLD; \
2513             description { state: "default" 0.0; \
2514                color: 0 0 0 0; \
2515                min: min_width min_height; \
2516             } \
2517          } \
2518          part { name: "over2"; \
2519             type: RECT; \
2520             repeat_events: 1; \
2521             description { state: "default" 0.0; \
2522                color: 0 0 0 0; \
2523             } \
2524          } \
2525          part { name: "disabler"; \
2526             type: RECT; \
2527             description { state: "default" 0.0; \
2528                color: 0 0 0 0; \
2529                visible: 0; \
2530             } \
2531             description { state: "disabled" 0.0; \
2532                inherit: "default" 0.0; \
2533                visible: 1; \
2534             } \
2535          } \
2536       } \
2537       programs { \
2538          program { name: "button_click"; \
2539             signal: "mouse,down,1"; \
2540             source: "over1"; \
2541             action: SIGNAL_EMIT "elm,action,press" ""; \
2542             after: "button_click_anim"; \
2543          } \
2544          program { name: "button_click_anim"; \
2545             action: STATE_SET "clicked" 0.0; \
2546             target: "button_image"; \
2547             target: "button_center_part"; \
2548             target: "icon_clipper"; \
2549          } \
2550          program { name: "button_double_click"; \
2551             signal: "mouse,down,1,double"; \
2552             source: "over1"; \
2553             after: "button_click_anim"; \
2554          } \
2555          program { name: "button_unclick"; \
2556             signal: "mouse,up,1"; \
2557             source: "over2"; \
2558             action: SIGNAL_EMIT "elm,action,unpress" ""; \
2559             after: "button_unclick_anim"; \
2560          } \
2561          program { name: "button_unclick_anim"; \
2562             action: STATE_SET "default" 0.0; \
2563             target: "button_image"; \
2564             target: "button_center_part"; \
2565             target: "icon_clipper"; \
2566          } \
2567          program { name: "touch_snd"; \
2568             signal: "mouse,clicked,1"; \
2569             source: "over1"; \
2570             action: PLAY_SAMPLE "touch_sound" 1.0; \
2571             after: button_unclick3; \
2572          } \
2573          program { name: "button_unclick3"; \
2574             action: SIGNAL_EMIT "elm,action,click" ""; \
2575          } \
2576          program { name: "disable"; \
2577             signal: "elm,state,disabled"; \
2578             source: "elm"; \
2579             action: STATE_SET "disabled" 0.0; \
2580             target: "disabler"; \
2581             target: "button_image"; \
2582             target: "button_center_part"; \
2583             target: "icon_clipper"; \
2584          } \
2585          program { name: "enable"; \
2586             signal: "elm,state,enabled"; \
2587             source: "elm"; \
2588             action: STATE_SET "default" 0.0; \
2589             target: "disabler"; \
2590             target: "button_image"; \
2591             target: "button_center_part"; \
2592             target: "icon_clipper"; \
2593          } \
2594          program { name: "action_focus"; \
2595             signal: "elm,action,focus_highlight,show"; \
2596             source: "elm"; \
2597             action: STATE_SET "focused" 0.0; \
2598             target: "focus_image"; \
2599          } \
2600          program { name: "action_unfocus"; \
2601             signal: "elm,action,focus_highlight,hide"; \
2602             source: "elm"; \
2603             action: STATE_SET "default" 0.0; \
2604             target: "focus_image"; \
2605          } \
2606       } \
2607    }
2608
2609 ///////////////////////////////////////////////////////////////////////////////////////
2610    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)
2611
2612 ///////////////////////////////////////////////////////////////////////////////////////
2613    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)
2614
2615 ///////////////////////////////////////////////////////////////////////////////////////
2616    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)
2617
2618 ///////////////////////////////////////////////////////////////////////////////////////
2619    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)
2620
2621 ///////////////////////////////////////////////////////////////////////////////////////
2622    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)
2623
2624 ///////////////////////////////////////////////////////////////////////////////////////
2625    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)
2626
2627 ///////////////////////////////////////////////////////////////////////////////////////
2628    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)
2629
2630 ///////////////////////////////////////////////////////////////////////////////////////
2631    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)
2632
2633 ///////////////////////////////////////////////////////////////////////////////////////
2634    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)
2635
2636 ///////////////////////////////////////////////////////////////////////////////////////
2637    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)
2638
2639 ///////////////////////////////////////////////////////////////////////////////////////
2640    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)
2641
2642 ///////////////////////////////////////////////////////////////////////////////////////
2643    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)
2644
2645 ///////////////////////////////////////////////////////////////////////////////////////
2646    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)
2647
2648 ///////////////////////////////////////////////////////////////////////////////////////
2649    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)
2650
2651 ///////////////////////////////////////////////////////////////////////////////////////
2652    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)
2653
2654 ///////////////////////////////////////////////////////////////////////////////////////
2655    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)
2656
2657 ///////////////////////////////////////////////////////////////////////////////////////
2658    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)
2659
2660 ///////////////////////////////////////////////////////////////////////////////////////
2661    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)
2662
2663 ///////////////////////////////////////////////////////////////////////////////////////
2664    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)
2665
2666 ///////////////////////////////////////////////////////////////////////////////////////
2667    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)
2668 ///////////////////////////////////////////////////////////////////////////////////////
2669
2670 ///////////////////////////////////////////////////////////////////////////////////////
2671    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)
2672 ///////////////////////////////////////////////////////////////////////////////////////
2673
2674 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2675    group { name: "elm/button/base/"style_name; \
2676       inherit: "elm/button/base/info"; \
2677       images { \
2678          image: "00_circle_button_delete.png" COMP; \
2679          image: "00_circle_button_delete_press.png" COMP; \
2680          image: "00_circle_button_delete_dim.png" COMP; \
2681          image: "00_button_warning.png" COMP; \
2682          image: "00_button_warning_press.png" COMP; \
2683       } \
2684       parts { \
2685          part { name: "button_image"; \
2686             scale: 1; \
2687             description { state: "default" 0.0; \
2688                image.normal: "00_circle_button_delete.png"; \
2689             } \
2690             description { \
2691                state: "clicked" 0.0; \
2692                inherit: "default" 0.0; \
2693                image.normal: "00_circle_button_delete_press.png"; \
2694             } \
2695             description { \
2696                state: "disabled" 0.0; \
2697                inherit: "default" 0.0; \
2698                image.normal: "00_circle_button_delete_dim.png"; \
2699             } \
2700          } \
2701          part { name: "button_center_part"; \
2702             scale: 1; \
2703             clip_to: "icon_clipper"; \
2704             description { state: "default" 0.0; \
2705                image.normal: "00_button_warning.png"; \
2706             } \
2707             description { state: "clicked" 0.0; \
2708                inherit: "default"; \
2709                image.normal: "00_button_warning_press.png"; \
2710             } \
2711             description { state: "disabled" 0.0; \
2712                inherit: "default"; \
2713             } \
2714          } \
2715          part { name: "icon_clipper"; \
2716             type: RECT; \
2717             scale: 1; \
2718             description { state: "default" 0.0; \
2719                color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2720             } \
2721             description { state: "clicked" 0.0; \
2722                color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2723             } \
2724             description { state: "disabled" 0.0; \
2725                color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2726             } \
2727          } \
2728          part { name: "over1"; \
2729             type: RECT; \
2730             ignore_flags: ON_HOLD; \
2731             description { state: "default" 0.0; \
2732                color: 0 0 0 0; \
2733                min: min_width min_height; \
2734             } \
2735          } \
2736       } \
2737    }
2738
2739 ///////////////////////////////////////////////////////////////////////////////////////
2740    BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2741
2742 ///////////////////////////////////////////////////////////////////////////////////////
2743    BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2744
2745 ///////////////////////////////////////////////////////////////////////////////////////
2746    group { name: "elm/button/base/circle/empty";
2747       images {
2748          image: "00_circle_button.png" COMP;
2749          image: "00_circle_button_press.png" COMP;
2750          image: "00_circle_button_dim.png" COMP;
2751       }
2752       parts {
2753          part { name: "button_image";
2754             scale: 1;
2755             description { state: "default" 0.0;
2756                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2757                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2758                fixed: 1 1;
2759                image.normal: "00_circle_button.png";
2760             }
2761             description { state: "clicked" 0.0;
2762                inherit: "default" 0.0;
2763                image.normal: "00_circle_button_press.png";
2764             }
2765             description { state: "disabled" 0.0;
2766                inherit: "default" 0.0;
2767                image.normal: "00_circle_button_dim.png";
2768             }
2769          }
2770          part { name: "left_top_padding";
2771             scale: 1;
2772             type: SPACER;
2773             description { state: "default" 0.0;
2774                min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2775                max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2776                fixed: 1 1;
2777                align: 0.0 0.0;
2778                rel1.to: "button_image";
2779                rel2.to: "button_image";
2780             }
2781          }
2782          part { name: "right_bottom_padding";
2783             scale: 1;
2784             type: SPACER;
2785             description { state: "default" 0.0;
2786                min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2787                max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2788                fixed: 1 1;
2789                align: 1.0 1.0;
2790                rel1 {
2791                   relative: 1.0 1.0;
2792                   to: "button_image";
2793                }
2794                rel2.to: "button_image";
2795             }
2796          }
2797          part { name: "elm.swallow.content";
2798             type: SWALLOW;
2799             clip_to: "icon_clipper";
2800             scale: 1;
2801             description { state: "default" 0.0;
2802                fixed: 1 1;
2803                rel1 {
2804                   relative: 1.0 1.0;
2805                   to: "left_top_padding";
2806                }
2807                rel2 {
2808                   relative: 0.0 0.0;
2809                   to: "right_bottom_padding";
2810                }
2811                visible: 0;
2812             }
2813             description { state: "visible" 0.0;
2814                inherit: "default" 0.0;
2815                visible: 1;
2816                min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2817                max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2818             }
2819          }
2820          part { name: "icon_clipper";
2821             type: RECT;
2822             scale: 1;
2823             description { state: "default" 0.0;
2824                color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2825             }
2826             description { state: "clicked" 0.0;
2827                color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2828             }
2829             description { state: "disabled" 0.0;
2830                color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2831             }
2832          }
2833          part { name: "over1";
2834             type: RECT;
2835             ignore_flags: ON_HOLD;
2836             description { state: "default" 0.0;
2837                color: 0 0 0 0;
2838             }
2839          }
2840          part { name: "over2";
2841             type: RECT;
2842             repeat_events: 1;
2843             description { state: "default" 0.0;
2844                color: 0 0 0 0;
2845             }
2846          }
2847          part { name: "disabler";
2848             type: RECT;
2849             description { state: "default" 0.0;
2850                color: 0 0 0 0;
2851                visible: 0;
2852             }
2853             description { state: "disabled" 0.0;
2854                inherit: "default" 0.0;
2855                visible: 1;
2856             }
2857          }
2858       }
2859       programs {
2860          program { name: "button_click";
2861             signal: "mouse,down,1";
2862             source: "over1";
2863             action: SIGNAL_EMIT "elm,action,press" "";
2864             after: "button_click_anim";
2865          }
2866          program { name: "button_click_anim";
2867             action: STATE_SET "clicked" 0.0;
2868             target: "button_image";
2869             target: "icon_clipper";
2870          }
2871          program { name: "button_double_click";
2872             signal: "mouse,down,1,double";
2873             source: "over1";
2874             after: "button_click_anim";
2875          }
2876          program { name: "touch_snd";
2877             signal: "mouse,clicked,1";
2878             source: "over1";
2879             action: PLAY_SAMPLE "touch_sound" 1.0;
2880             after: button_unclick2;
2881          }
2882          program { name: "button_unclick2";
2883             action: SIGNAL_EMIT "elm,action,click" "";
2884          }
2885          program { name: "button_unclick";
2886             signal: "mouse,up,1";
2887             source: "over2";
2888             action: SIGNAL_EMIT "elm,action,unpress" "";
2889             after: "button_unclick_anim";
2890          }
2891          program { name: "button_unclick_anim";
2892             action: STATE_SET "default" 0.0;
2893             target: "button_image";
2894             target: "icon_clipper";
2895          }
2896          program { name: "disable";
2897             signal: "elm,state,disabled";
2898             source: "elm";
2899             action: STATE_SET "disabled" 0.0;
2900             target: "disabler";
2901             target: "button_image";
2902             target: "icon_clipper";
2903          }
2904          program { name: "enable";
2905             signal: "elm,state,enabled";
2906             source: "elm";
2907             action: STATE_SET "default" 0.0;
2908             target: "disabler";
2909             target: "button_image";
2910             target: "icon_clipper";
2911          }
2912          program { name: "icon_show";
2913             signal: "elm,state,icon,visible";
2914             source: "elm";
2915             action: STATE_SET "visible" 0.0;
2916             target: "elm.swallow.content";
2917          }
2918          program { name: "icon_hide";
2919             signal: "elm,state,icon,hidden";
2920             source: "elm";
2921             action: STATE_SET "default" 0.0;
2922             target: "elm.swallow.content";
2923          }
2924       }
2925    }
2926
2927 ///////////////////////////////////////////////////////////////////////////////////////
2928 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2929    group { name: "elm/button/base/contacts/"style_name; \
2930    alias: "elm/button/base/"style_name; \
2931       images { \
2932          image: "00_circle_button.png" COMP; \
2933          image: "00_circle_button_press.png" COMP; \
2934          image: "00_circle_button_dim.png" COMP; \
2935          image: edit_normal COMP; \
2936          image: edit_press COMP; \
2937       } \
2938       parts { \
2939          part { name: "button_image"; \
2940             scale: 1; \
2941             description { state: "default" 0.0; \
2942                min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2943                max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2944                image.normal: "00_circle_button.png"; \
2945             } \
2946             description { state: "clicked" 0.0; \
2947                inherit: "default" 0.0; \
2948                image.normal: "00_circle_button_press.png"; \
2949             } \
2950             description { state: "disabled" 0.0; \
2951                inherit: "default" 0.0; \
2952                image.normal: "00_circle_button_dim.png"; \
2953             } \
2954          } \
2955          part { name: "button_center_part"; \
2956             mouse_events: 0; \
2957             scale: 1; \
2958             clip_to: "icon_clipper"; \
2959             description { state: "default" 0.0; \
2960                min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2961                max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2962                image.normal: image_normal; \
2963             } \
2964             description { \
2965                state: "clicked" 0.0; \
2966                inherit: "default" 0.0; \
2967                image.normal: image_press; \
2968             } \
2969             description { state: "disabled" 0.0; \
2970                inherit: "default" 0.0; \
2971             } \
2972          } \
2973          part { name: "icon_clipper"; \
2974             scale: 1; \
2975             type: RECT; \
2976             description { state: "default" 0.0; \
2977                color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2978             } \
2979             description { state: "clicked" 0.0; \
2980                color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2981             } \
2982             description { state: "disabled" 0.0; \
2983                color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2984             } \
2985          } \
2986          part { name: "over1"; \
2987             type: RECT; \
2988             repeat_events: 1; \
2989             ignore_flags: ON_HOLD; \
2990             description { state: "default" 0.0; \
2991                color: 0 0 0 0; \
2992                min: min_width min_height; \
2993             } \
2994          } \
2995          part { name: "over2"; \
2996             type: RECT; \
2997             repeat_events: 1; \
2998             description { state: "default" 0.0; \
2999                color: 0 0 0 0; \
3000             } \
3001          } \
3002          part { name: "disabler"; \
3003             type: RECT; \
3004             description { state: "default" 0.0; \
3005                color: 0 0 0 0; \
3006                visible: 0; \
3007             } \
3008             description { state: "disabled" 0.0; \
3009                inherit: "default" 0.0; \
3010                visible: 1; \
3011             } \
3012          } \
3013       } \
3014       programs { \
3015          program { name: "button_click"; \
3016             signal: "mouse,down,1"; \
3017             source: "over1"; \
3018             action: SIGNAL_EMIT "elm,action,press" ""; \
3019             after: "button_click_anim"; \
3020          } \
3021          program { name: "button_click_anim"; \
3022             action: STATE_SET "clicked" 0.0; \
3023             target: "button_image"; \
3024             target: "button_center_part"; \
3025             target: "icon_clipper"; \
3026          } \
3027          program { name: "button_double_click"; \
3028             signal: "mouse,down,1,double"; \
3029             source: "over1"; \
3030             after: "button_click_anim"; \
3031          } \
3032          program { name: "button_unclick"; \
3033             signal: "mouse,up,1"; \
3034             source: "over2"; \
3035             action: SIGNAL_EMIT "elm,action,unpress" ""; \
3036             after: "button_unclick_anim"; \
3037          } \
3038          program { name: "button_unclick_anim"; \
3039             action: STATE_SET "default" 0.0; \
3040             target: "button_image"; \
3041             target: "button_center_part"; \
3042             target: "icon_clipper"; \
3043          } \
3044          program { name: "touch_snd"; \
3045             signal: "mouse,clicked,1"; \
3046             source: "over1"; \
3047             action: PLAY_SAMPLE "touch_sound" 1.0; \
3048             after: button_unclick3; \
3049          } \
3050          program { name: "button_unclick3"; \
3051             action: SIGNAL_EMIT "elm,action,click" ""; \
3052          } \
3053          program { name: "disable"; \
3054             signal: "elm,state,disabled"; \
3055             source: "elm"; \
3056             action: STATE_SET "disabled" 0.0; \
3057             target: "disabler"; \
3058             target: "button_image"; \
3059             target: "button_center_part"; \
3060             target: "icon_clipper"; \
3061          } \
3062          program { name: "enable"; \
3063             signal: "elm,state,enabled"; \
3064             source: "elm"; \
3065             action: STATE_SET "default" 0.0; \
3066             target: "disabler"; \
3067             target: "button_image"; \
3068             target: "button_center_part"; \
3069             target: "icon_clipper"; \
3070          } \
3071       } \
3072    }
3073 ///////////////////////////////////////////////////////////////////////////////////////
3074    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)
3075
3076 ///////////////////////////////////////////////////////////////////////////////////////
3077    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)
3078
3079 ///////////////////////////////////////////////////////////////////////////////////////
3080    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)
3081
3082 ///////////////////////////////////////////////////////////////////////////////////////
3083    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)
3084
3085 ///////////////////////////////////////////////////////////////////////////////////////
3086    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)
3087
3088 ///////////////////////////////////////////////////////////////////////////////////////
3089    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)
3090
3091 ///////////////////////////////////////////////////////////////////////////////////////
3092
3093 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3094    group { name: "elm/button/base/contacts/"style_name; \
3095       alias: "elm/button/base/"style_name; \
3096       inherit: "elm/button/base/contacts/icon_plus"; \
3097       images { \
3098          image: "00_circle_button_delete.png" COMP; \
3099          image: "00_circle_button_delete_press.png" COMP; \
3100          image: "00_circle_button_delete_dim.png" COMP; \
3101          image: "00_button_delete.png" COMP; \
3102          image: "00_button_delete_press.png" COMP; \
3103       } \
3104       parts { \
3105          part { name: "button_image"; \
3106             scale: 1; \
3107             description { state: "default" 0.0; \
3108                image.normal: "00_circle_button_delete.png"; \
3109             } \
3110             description { state: "clicked" 0.0; \
3111                inherit: "default" 0.0; \
3112                image.normal: "00_circle_button_delete_press.png"; \
3113             } \
3114             description { state: "disabled" 0.0; \
3115                inherit: "default" 0.0; \
3116                image.normal: "00_circle_button_delete_dim.png"; \
3117             } \
3118          } \
3119          part { name: "button_center_part"; \
3120             mouse_events: 0; \
3121             scale: 1; \
3122             clip_to: "icon_clipper"; \
3123             description { state: "default" 0.0; \
3124                image.normal: "00_button_delete.png"; \
3125             } \
3126             description { \
3127                state: "clicked" 0.0; \
3128                inherit: "default" 0.0; \
3129                image.normal: "00_button_delete_press.png"; \
3130             } \
3131             description { state: "disabled" 0.0; \
3132                inherit: "default" 0.0; \
3133             } \
3134          } \
3135          part { name: "icon_clipper"; \
3136             scale: 1; \
3137             type: RECT; \
3138             description { state: "default" 0.0; \
3139                color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3140             } \
3141             description { state: "clicked" 0.0; \
3142                color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3143             } \
3144             description { state: "disabled" 0.0; \
3145                color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3146             } \
3147          } \
3148          part { name: "over1"; \
3149             type: RECT; \
3150             repeat_events: 1; \
3151             ignore_flags: ON_HOLD; \
3152             description { state: "default" 0.0; \
3153                color: 0 0 0 0; \
3154                min: min_width min_height; \
3155             } \
3156          } \
3157       } \
3158    }
3159
3160 ///////////////////////////////////////////////////////////////////////////////////////
3161    BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3162
3163 ///////////////////////////////////////////////////////////////////////////////////////
3164    BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3165
3166 ///////////////////////////////////////////////////////////////////////////////////////
3167 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3168    group { name: "elm/button/base/"style_name; \
3169       images { \
3170          image: "00_button_01.png" COMP; \
3171          image: "00_button_01_press.png" COMP; \
3172          image: "00_button_01_dim.png" COMP; \
3173          image: image_normal COMP; \
3174       }\
3175       parts { \
3176          part { name: "button_image";\
3177             type: IMAGE; \
3178             scale: 1; \
3179             description { state: "default" 0.0; \
3180                min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3181                image { \
3182                   normal: "00_button_01.png"; \
3183                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3184                   border_scale: 1; \
3185                } \
3186             } \
3187             description { state: "clicked" 0.0; \
3188              inherit: "default" 0.0; \
3189              image.normal: "00_button_01_press.png"; \
3190             } \
3191             description { state: "disabled" 0.0; \
3192                inherit: "default" 0.0; \
3193                image.normal: "00_button_01_dim.png"; \
3194             } \
3195          } \
3196          part { name: "padding_left_top"; \
3197             type: SPACER; \
3198             scale: 1; \
3199             description { state: "default" 0.0; \
3200                align: 0.0 0.0; \
3201                rel2.relative: 0.0 0.0; \
3202                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3203                fixed: 1 1; \
3204             } \
3205          } \
3206          part { name: "padding_right_bottom"; \
3207             type: SPACER; \
3208             scale: 1; \
3209             description { state: "default" 0.0; \
3210                align: 1.0 1.0; \
3211                rel1.relative: 1.0 1.0; \
3212                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3213                fixed: 1 1; \
3214             } \
3215          } \
3216          part { name: "jump_image"; \
3217             type: IMAGE; \
3218             scale: 1; \
3219             description { state: "default" 0.0; \
3220                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3221                max: 45 45; \
3222                rel1 { \
3223                   relative: 1.0 0.0; \
3224                   to_x: "padding_left_top"; \
3225                } \
3226                rel2 { \
3227                   relative: 0.0 1.0; \
3228                   to_x: "padding_right_bottom"; \
3229                } \
3230                image.normal: image_normal; \
3231                aspect: 1.0 1.0; \
3232                aspect_preference: VERTICAL; \
3233                color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3234             } \
3235             description { state: "clicked" 0.0; \
3236                inherit: "default" 0.0; \
3237                color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3238             } \
3239             description { state: "disabled" 0.0; \
3240                inherit: "default" 0.0; \
3241                color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3242             } \
3243          } \
3244          part { name: "over1"; \
3245             type: RECT; \
3246             repeat_events: 1; \
3247             ignore_flags: ON_HOLD; \
3248             description { state: "default" 0.0; \
3249                color: 0 0 0 0; \
3250                rel1.relative: 0.0 0.0; \
3251                rel2.relative: 1.0 1.0; \
3252             } \
3253          } \
3254          part { name: "over2"; \
3255             type: RECT; \
3256             repeat_events: 1; \
3257             description { state: "default" 0.0; \
3258                color: 0 0 0 0; \
3259             } \
3260          } \
3261       } \
3262       programs { \
3263          program { name: "button_click"; \
3264             signal: "mouse,down,1"; \
3265             source: "over1"; \
3266             action: SIGNAL_EMIT "elm,action,press" ""; \
3267             after: "button_click_anim"; \
3268          } \
3269          program { name: "button_click_anim"; \
3270             action: STATE_SET "clicked" 0.0; \
3271             target: "button_image"; \
3272             target: "jump_image"; \
3273          } \
3274          program { name: "button_double_click"; \
3275             signal: "mouse,down,1,double"; \
3276             source: "over1"; \
3277             after: "button_click_anim"; \
3278          } \
3279          program { name: "button_unclick"; \
3280             signal: "mouse,up,1"; \
3281             source: "over2"; \
3282             action: SIGNAL_EMIT "elm,action,unpress" ""; \
3283             after: "button_unclick_anim"; \
3284          } \
3285          program { name: "button_unclick_anim"; \
3286             action: STATE_SET "default" 0.0; \
3287             target: "button_image"; \
3288             target: "jump_image"; \
3289          } \
3290          program { name: "touch_snd"; \
3291             signal: "mouse,clicked,1"; \
3292             source: "over1"; \
3293             action: PLAY_SAMPLE "touch_sound" 1.0; \
3294             after: button_unclick3; \
3295          } \
3296          program { name: "button_unclick3"; \
3297             action: SIGNAL_EMIT "elm,action,click" ""; \
3298          } \
3299          program { name: "disable"; \
3300             signal: "elm,state,disabled"; \
3301             source: "elm"; \
3302             action: STATE_SET "disabled" 0.0; \
3303             target: "button_image"; \
3304             target: "jump_image"; \
3305          } \
3306          program { name: "enable"; \
3307             signal: "elm,state,enabled"; \
3308             source: "elm"; \
3309             action: STATE_SET "default" 0.0; \
3310             target: "button_image"; \
3311             target: "jump_image"; \
3312          } \
3313       } \
3314    }
3315
3316 ////////////////////////////////////////////////////////////////////////
3317 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3318 ////////////////////////////////////////////////////////////////////////
3319 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3320
3321 ////////////////////////////////////////////////////////////////////////
3322    group { name: "elm/button/base/default";
3323       images {
3324          image: "00_button_01.png" COMP;
3325          image: "00_button_01_press.png" COMP;
3326          image: "00_button_01_dim.png" COMP;
3327       }
3328       script {
3329          public button_state = BUTTON_STATE_ENABLED;
3330       }
3331       parts {
3332          part { name: "button_image";
3333             scale: 1;
3334             description { state: "default" 0.0;
3335                min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3336                image {
3337                   normal: "00_button_01.png";
3338                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3339                   border_scale: 1;
3340                }
3341             }
3342             description { state: "clicked" 0.0;
3343                inherit: "default" 0.0;
3344                image.normal: "00_button_01_press.png";
3345             }
3346             description { state: "disabled" 0.0;
3347                inherit: "default" 0.0;
3348                image.normal: "00_button_01_dim.png";
3349             }
3350             description { state: "focused" 0.0;
3351                inherit: "default" 0.0;
3352                image.normal: "00_button_01_press.png";
3353             }
3354          }
3355          part { name: "padding_left_top";
3356             type: RECT;
3357             scale: 1;
3358             mouse_events: 0;
3359             description { state: "default" 0.0;
3360                align: 0.0 0.0;
3361                rel2.relative: 0.0 0.0;
3362                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3363                fixed: 1 1;
3364                visible: 0;
3365             }
3366          }
3367          part { name: "padding_right_bottom";
3368             type: RECT;
3369             scale: 1;
3370             mouse_events: 0;
3371             description { state: "default" 0.0;
3372                align: 1.0 1.0;
3373                rel1.relative: 1.0 1.0;
3374                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3375                fixed: 1 1;
3376                visible: 0;
3377             }
3378          }
3379          part { name: "padding_icon_text";
3380             type: RECT;
3381             scale: 1;
3382             mouse_events: 0;
3383             description { state: "default" 0.0; //when only icon or no icon is there
3384                visible: 0;
3385                fixed: 1 0;
3386                min: 0 0;
3387                rel1 {
3388                   relative: 1.0 0.0;
3389                   to: "elm.swallow.content";
3390                }
3391                rel2.to: "elm.swallow.content";
3392                align: 0.0 0.0;
3393             }
3394             description { state: "icononly" 0.0;
3395                inherit: "default" 0.0;
3396             }
3397             description { state: "visible" 0.0; //when icon is visible
3398                inherit: "default" 0.0;
3399                min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3400             }
3401          }
3402          part { name: "elm.swallow.content";
3403             type: SWALLOW;
3404             scale: 1;
3405             clip_to: "disclip";
3406             description { state: "default" 0.0;
3407                visible: 0;
3408                fixed: 1 0;
3409                align: 0.0 0.5;
3410                rel1 {
3411                   relative: 1.0 1.0;
3412                   to: "padding_left_top";
3413                }
3414                rel2 {
3415                   relative: 1.0 0.0;
3416                   to_x: "padding_left_top";
3417                   to_y: "padding_right_bottom";
3418                }
3419             }
3420             description { state: "visible" 0.0;
3421                inherit: "default" 0.0;
3422                visible: 1;
3423                aspect: 1.0 1.0;
3424                aspect_preference: VERTICAL;
3425             }
3426             description { state: "icononly" 0.0;
3427                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3428                rel1 {
3429                   relative: 1.0 0.0;
3430                   to_x: "padding_left_top";
3431                }
3432                rel2 {
3433                   relative: 0.0 1.0;
3434                   to_x: "padding_right_bottom";
3435                }
3436                aspect: 1.0 1.0;
3437                aspect_preference: VERTICAL;
3438             }
3439          }
3440          part { name: "elm.text";
3441             type: TEXT;
3442             mouse_events: 0;
3443             scale: 1;
3444             clip_to: "disclip";
3445             effect: SHADOW BOTTOM;
3446             description { state: "default" 0.0;
3447                visible: 0;
3448                align: 0.0 0.5;
3449                rel1 {
3450                   relative: 1.0 1.0;
3451                   to_x: "padding_icon_text";
3452                   to_y: "padding_left_top";
3453                }
3454                rel2 {
3455                   relative: 0.0 0.0;
3456                   to: "padding_right_bottom";
3457                }
3458                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3459                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3460                text {
3461                   font: "Tizen:style=Regular";
3462                   size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3463                   min: 0 0;
3464                   text_class: "tizen";
3465                }
3466             }
3467             description { state: "visible" 0.0;
3468                inherit: "default" 0.0;
3469                visible: 1;
3470                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3471             }
3472             description { state: "clicked" 0.0;
3473                inherit: "default" 0.0;
3474                visible: 1;
3475                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3476                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3477             }
3478             description { state: "disabled" 0.0;
3479                inherit: "default" 0.0;
3480             }
3481             description { state: "disabled_visible" 0.0;
3482                inherit: "default" 0.0;
3483                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3484                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3485                visible: 1;
3486                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3487             }
3488             description { state: "focused" 0.0;
3489                inherit: "default" 0.0;
3490                visible: 1;
3491                min: 0 0;
3492                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3493             }
3494          }
3495          part { name: "over2";
3496             type: RECT;
3497             repeat_events: 1;
3498             ignore_flags: ON_HOLD;
3499             description { state: "default" 0.0;
3500                color: 0 0 0 0;
3501             }
3502          }
3503          part { name: "over3";
3504             type: RECT;
3505             repeat_events: 1;
3506             description { state: "default" 0.0;
3507                color: 0 0 0 0;
3508             }
3509          }
3510          part { name: "disclip";
3511             type: RECT;
3512             description { state: "default" 0.0;
3513                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3514             }
3515             description { state: "disabled" 0.0;
3516                inherit: "default" 0.0;
3517                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3518             }
3519          }
3520          part { name: "disabler";
3521             type: RECT;
3522             description { state: "default" 0.0;
3523                color: 0 0 0 0;
3524                visible: 0;
3525             }
3526             description { state: "disabled" 0.0;
3527                inherit: "default" 0.0;
3528                visible: 1;
3529             }
3530          }
3531       }
3532       programs {
3533          program { name: "button_click";
3534             signal: "mouse,down,1";
3535             source: "over3";
3536             action: SIGNAL_EMIT "elm,action,press" "";
3537             after: "button_click_anim";
3538          }
3539          program { name: "button_click_anim";
3540             action: STATE_SET "clicked" 0.0;
3541             target: "button_image";
3542             after: "text_clicked";
3543          }
3544          program { name: "text_clicked";
3545             script {
3546                new st[31];
3547                new Float:vl;
3548                get_state(PART:"elm.text", st, 30, vl);
3549                if (!strcmp(st, "visible"))
3550                  set_state(PART:"elm.text", "clicked", 0.0);
3551             }
3552          }
3553          program { name: "button_double_click";
3554             signal: "mouse,down,1,double";
3555             source: "over3";
3556             after: "button_click_anim";
3557          }
3558          program { name: "button_unpress";
3559             action: SIGNAL_EMIT "elm,action,unpress" "";
3560          }
3561          program { name: "button_mouseout_clicked";
3562             signal: "mouse,up,1";
3563             source: "over3";
3564             script {
3565                new st[31];
3566                new Float:vl;
3567                get_state(PART:"elm.swallow.content", st, 30, vl);
3568                if (strcmp(st, "icononly"))
3569                  {
3570                     emit("elm,action,default,text,set", "");
3571                     set_state(PART:"elm.text", "visible", 0.0);
3572                  }
3573                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3574                  set_state(PART:"button_image", "default", 0.0);
3575             }
3576             after: button_unpress;
3577          }
3578          program { name: "touch_snd";
3579             signal: "mouse,clicked,1";
3580             source: "over2";
3581             action: PLAY_SAMPLE "touch_sound" 1.0;
3582             after: button_unclick3;
3583          }
3584          program { name: "button_unclick3";
3585             action: SIGNAL_EMIT "elm,action,click" "";
3586          }
3587          program { name: "text_show";
3588             signal: "elm,state,text,visible";
3589             source: "elm";
3590             script {
3591                new st[31];
3592                new Float:vl;
3593                get_state(PART:"elm.swallow.content", st, 30, vl);
3594                if (!strcmp(st, "icononly"))
3595                  {
3596                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3597                     set_state(PART:"padding_icon_text", "visible", 0.0);
3598                  }
3599                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3600                  set_state(PART:"elm.text", "visible", 0.0);
3601                else
3602                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3603             }
3604          }
3605          program { name: "text_hide";
3606             signal: "elm,state,text,hidden";
3607             source: "elm";
3608             script {
3609                new st[31];
3610                new Float:vl;
3611                get_state(PART:"elm.swallow.content", st, 30, vl);
3612                if (!strcmp(st, "visible"))
3613                  {
3614                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3615                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3616                  }
3617                set_state(PART:"elm.text", "default", 0.0);
3618             }
3619          }
3620          program { name: "icon_show";
3621             signal: "elm,state,icon,visible";
3622             source: "elm";
3623             script {
3624                new st[31];
3625                new Float:vl;
3626                get_state(PART:"elm.text", st, 30, vl);
3627                if (!strcmp(st, "visible"))
3628                  {
3629                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3630                     set_state(PART:"padding_icon_text", "visible", 0.0);
3631                  }
3632                else
3633                  {
3634                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3635                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3636                  }
3637             }
3638          }
3639          program { name: "icon_hide";
3640             signal: "elm,state,icon,hidden";
3641             source: "elm";
3642             action: STATE_SET "default" 0.0;
3643             target: "elm.swallow.content";
3644             target: "padding_icon_text";
3645          }
3646          program { name: "disable";
3647             signal: "elm,state,disabled";
3648             source: "elm";
3649             action: STATE_SET "disabled" 0.0;
3650             target: "button_image";
3651             target: "disabler";
3652             target: "disclip";
3653             after: "disable_text";
3654          }
3655          program { name: "disable_text";
3656             script {
3657                new st[31];
3658                new Float:vl;
3659                get_state(PART:"elm.text", st, 30, vl);
3660                if (!strcmp(st, "visible"))
3661                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3662                else
3663                  set_state(PART:"elm.text", "disabled", 0.0);
3664                set_int(button_state, BUTTON_STATE_DISABLED);
3665             }
3666          }
3667          program { name: "enable";
3668             signal: "elm,state,enabled";
3669             source: "elm";
3670             action: STATE_SET "default" 0.0;
3671             target: "button_image";
3672             target: "disabler";
3673             target: "disclip";
3674             after: "enable_text";
3675          }
3676          program { name: "enable_text";
3677             script {
3678                new st[31];
3679                new Float:vl;
3680                get_state(PART:"elm.text", st, 30, vl);
3681                if (!strcmp(st, "disabled_visible"))
3682                  set_state(PART:"elm.text", "visible", 0.0);
3683                else
3684                  set_state(PART:"elm.text", "default", 0.0);
3685                set_int(button_state, BUTTON_STATE_ENABLED);
3686             }
3687          }
3688          program { name: "focused";
3689             //signal: "elm,action,focus";
3690             //source: "elm";
3691             action: STATE_SET "focused" 0.0;
3692             target: "button_image";
3693             target: "elm.text";
3694          }
3695          program { name: "unfocused";
3696             //signal: "elm,action,unfocus";
3697             //source: "elm";
3698             action: STATE_SET "default" 0.0;
3699             target: "button_image";
3700             after: "unfocus_text";
3701          }
3702          program { name: "unfocus_text";
3703             action: STATE_SET "visible" 0.0;
3704             target: "elm.text";
3705          }
3706       }
3707    }
3708
3709 ///////////////////////////////////////////////////////////////////////////////////////
3710    group { name: "elm/button/base/multiline";
3711       alias: "elm/button/base/text_only/multiline";
3712       inherit: "elm/button/base/default";
3713       styles{
3714          style { name: "btn_multiline_style";
3715             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";
3716             tag: "br" "\n";
3717             tag: "ps" "ps";
3718             tag: "tab" "\t";
3719          }
3720       }
3721       parts {
3722          part { name: "button_image";
3723             scale: 1;
3724             description { state: "default" 0.0;
3725                min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3726                image {
3727                   normal: "00_button_01.png";
3728                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3729                   border_scale: 1;
3730                }
3731             }
3732             description { state: "clicked" 0.0;
3733                inherit: "default" 0.0;
3734                image.normal: "00_button_01_press.png";
3735             }
3736             description { state: "disabled" 0.0;
3737                inherit: "default" 0.0;
3738                image.normal: "00_button_01_dim.png";
3739             }
3740             description { state: "focused" 0.0;
3741                inherit: "default" 0.0;
3742                image.normal: "00_button_01_press.png";
3743             }
3744          }
3745          part { name: "padding_left_top";
3746             type: RECT;
3747             scale: 1;
3748             mouse_events: 0;
3749             description { state: "default" 0.0;
3750                align: 0.0 0.0;
3751                rel2.relative: 0.0 0.0;
3752                min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3753                fixed: 1 1;
3754                visible: 0;
3755             }
3756          }
3757          part { name: "padding_right_bottom";
3758             type: RECT;
3759             scale: 1;
3760             mouse_events: 0;
3761             description { state: "default" 0.0;
3762                align: 1.0 1.0;
3763                rel1.relative: 1.0 1.0;
3764                min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3765                fixed: 1 1;
3766                visible: 0;
3767             }
3768          }
3769          part { name: "elm.text";
3770             type: TEXTBLOCK;
3771             mouse_events: 0;
3772             scale: 1;
3773             clip_to: "disclip";
3774             description { state: "default" 0.0;
3775                visible: 0;
3776                rel1 {
3777                   relative: 1.0 1.0;
3778                   to_x: "padding_icon_text";
3779                   to_y: "padding_left_top";
3780                }
3781                rel2 {
3782                   relative: 0.0 0.0;
3783                   to: "padding_right_bottom";
3784                }
3785                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3786                text {
3787                   style: "btn_multiline_style";
3788                }
3789             }
3790             description { state: "visible" 0.0;
3791                inherit: "default" 0.0;
3792                visible: 1;
3793                min: 80 0;
3794             }
3795             description { state: "clicked" 0.0;
3796                inherit: "default" 0.0;
3797                visible: 1;
3798                min: 0 0;
3799                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3800             }
3801             description { state: "disabled" 0.0;
3802                inherit: "default" 0.0;
3803             }
3804             description { state: "disabled_visible" 0.0;
3805                inherit: "default" 0.0;
3806                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3807                visible: 1;
3808                min: 80 0;
3809             }
3810             description { state: "focused" 0.0;
3811                inherit: "default" 0.0;
3812                visible: 1;
3813                min: 0 0;
3814                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3815             }
3816          }
3817       }
3818    }
3819
3820 ///////////////////////////////////////////////////////////////////////////////////////
3821 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3822    group { name: "elm/button/base/"style_name; \
3823       images { \
3824          image: image_normal COMP; \
3825          image: image_press COMP; \
3826          image: image_dim COMP; \
3827          image: "00_button_01.png" COMP; \
3828          image: "00_button_01_press.png" COMP; \
3829       } \
3830       parts { \
3831          part { name: "button_image"; \
3832             scale: 1; \
3833             description { state: "default" 0.0; \
3834                min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3835                max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3836                image { \
3837                   normal: "00_button_01.png"; \
3838                   border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3839                   border_scale: 1; \
3840                } \
3841             } \
3842             description { \
3843                state: "clicked" 0.0; \
3844                inherit: "default" 0.0; \
3845                image.normal: "00_button_01_press.png"; \
3846             } \
3847             description { \
3848                state: "disabled" 0.0; \
3849                inherit: "default" 0.0; \
3850                image.normal: "00_button_01_dim.png"; \
3851             } \
3852             description { \
3853                state: "focused" 0.0; \
3854                inherit: "default" 0.0; \
3855                image.normal: "00_button_01_press.png"; \
3856             } \
3857          } \
3858          part { name: "button_center_part"; \
3859             scale: 1; \
3860             clip_to: "icon_clipper"; \
3861             description { state: "default" 0.0; \
3862                min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3863                max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3864                image.normal: image_normal; \
3865             } \
3866             description { \
3867                state: "clicked" 0.0; \
3868                inherit: "default" 0.0; \
3869                image.normal: image_press; \
3870             } \
3871             description { \
3872                state: "disabled" 0.0; \
3873                inherit: "default" 0.0; \
3874             } \
3875          } \
3876          part { name: "icon_clipper"; \
3877             type: RECT; \
3878             scale: 1; \
3879             description { state: "default" 0.0; \
3880                color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
3881             } \
3882             description { state: "clicked" 0.0; \
3883                color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
3884             } \
3885             description { state: "disabled" 0.0; \
3886                color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
3887             } \
3888          } \
3889          part { name: "over1"; \
3890             type: RECT; \
3891             ignore_flags: ON_HOLD; \
3892             description { state: "default" 0.0; \
3893                color: 0 0 0 0; \
3894             } \
3895          } \
3896          part { name: "over2"; \
3897             type: RECT; \
3898             repeat_events: 1; \
3899             description { state: "default" 0.0; \
3900                color: 0 0 0 0; \
3901             } \
3902          } \
3903          part { name: "disabler"; \
3904             type: RECT; \
3905             description { state: "default" 0.0; \
3906                color: 0 0 0 0; \
3907                visible: 0; \
3908             } \
3909             description { state: "disabled" 0.0; \
3910                inherit: "default" 0.0; \
3911                visible: 1; \
3912             } \
3913          } \
3914       } \
3915       programs { \
3916          program { name: "button_click"; \
3917             signal: "mouse,down,1"; \
3918             source: "over1"; \
3919             action: SIGNAL_EMIT "elm,action,press" ""; \
3920             after: "button_click_anim"; \
3921          } \
3922          program { name: "button_click_anim"; \
3923             action: STATE_SET "clicked" 0.0; \
3924             target: "button_image"; \
3925             target: "button_center_part"; \
3926             target: ""icon_clipper""; \
3927          } \
3928          program { name: "button_double_click"; \
3929             signal: "mouse,down,1,double"; \
3930             source: "over1"; \
3931             after: "button_click_anim"; \
3932          } \
3933          program { name: "button_unclick"; \
3934             signal: "mouse,up,1"; \
3935             source: "over2"; \
3936             action: SIGNAL_EMIT "elm,action,unpress" ""; \
3937             after: "button_unclick_anim"; \
3938          } \
3939          program { name: "button_unclick_anim"; \
3940             action: STATE_SET "default" 0.0; \
3941             target: "button_image"; \
3942             target: "button_center_part"; \
3943             target: ""icon_clipper""; \
3944          } \
3945          program { name: "touch_snd"; \
3946             signal: "mouse,clicked,1"; \
3947             source: "over1"; \
3948             action: PLAY_SAMPLE "touch_sound" 1.0; \
3949             after: button_unclick3; \
3950          } \
3951          program { name: "button_unclick3"; \
3952             action: SIGNAL_EMIT "elm,action,click" ""; \
3953          } \
3954          program { name: "disable"; \
3955             signal: "elm,state,disabled"; \
3956             source: "elm"; \
3957             action: STATE_SET "disabled" 0.0; \
3958             target: "disabler"; \
3959             target: "button_image"; \
3960             target: "button_center_part"; \
3961             target: ""icon_clipper""; \
3962          } \
3963          program { name: "enable"; \
3964             signal: "elm,state,enabled"; \
3965             source: "elm"; \
3966             action: STATE_SET "default" 0.0; \
3967             target: "disabler"; \
3968             target: "button_image"; \
3969             target: "button_center_part"; \
3970             target: ""icon_clipper""; \
3971          } \
3972       } \
3973    }
3974 ///////////////////////////////////////////////////////////////////////////////////////
3975    BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3976 ///////////////////////////////////////////////////////////////////////////////////////
3977    BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3978 ///////////////////////////////////////////////////////////////////////////////////////
3979
3980    group { name: "elm/button/base/multibuttonentry";
3981       alias: "elm/button/base/text_only/multibuttonentry";
3982       images {
3983          image: "00_contacts_button.png" COMP;
3984          image: "00_contacts_button_press.png" COMP;
3985       }
3986       script {
3987          public button_state = BUTTON_STATE_ENABLED;
3988       }
3989       parts {
3990          part { name: "button_image";
3991             scale: 1;
3992             description { state: "default" 0.0;
3993                rel1 {
3994                   to_x: "padding.left";
3995                   to_y: "elm.text";
3996                }
3997                rel2 {
3998                   to_x: "padding.right";
3999                   to_y: "elm.text";
4000                }
4001                min: BUTTON_CONTACT_BG_MIN_INC;
4002                image {
4003                   normal: "00_contacts_button.png";
4004                   border: BUTTON_CONTACT_BG_BORDER_INC;
4005                   border_scale: 1;
4006                }
4007             }
4008             description { state: "clicked" 0.0;
4009                inherit: "default" 0.0;
4010                image.normal: "00_contacts_button_press.png";
4011             }
4012             description { state: "disabled" 0.0;
4013                inherit: "default" 0.0;
4014             }
4015             description { state: "focused" 0.0;
4016                inherit: "default" 0.0;
4017                image.normal: "00_contacts_button_press.png";
4018             }
4019          }
4020          part { name: "padding.left";
4021             type: RECT;
4022             scale: 1;
4023             description { state: "default" 0.0;
4024                visible: 0;
4025                min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
4026                fixed: 1 0;
4027                color: 0 0 0 0;
4028                rel2 {
4029                   relative: 0.0 1.0;
4030                   to_x: "elm.text";
4031                }
4032                align: 1.0 0.0;
4033             }
4034          }
4035          part { name: "padding.right";
4036             type: RECT;
4037             scale: 1;
4038             description { state: "default" 0.0;
4039                visible: 0;
4040                min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4041                fixed: 1 0;
4042                color: 0 0 0 0;
4043                rel1 {
4044                   relative: 1.0 0.0;
4045                   to_x: "elm.text";
4046                }
4047                align: 0.0 0.0;
4048             }
4049          }
4050          part {   name: "elm.text";
4051             type: TEXT;
4052             mouse_events: 0;
4053             scale: 1;
4054             description { state: "default" 0.0;
4055                visible: 0;
4056                fixed: 1 1;
4057                color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
4058                text {
4059                   font: "Tizen:style=Regular";
4060                   size: BUTTON_CONTACT_FONT_SIZE_INC;
4061                   min: 1 1;
4062                   text_class: "tizen";
4063                }
4064             }
4065             description { state: "visible" 0.0;
4066                inherit: "default" 0.0;
4067                visible: 1;
4068                min: 1 1;
4069             }
4070             description { state: "clicked" 0.0;
4071                inherit: "default" 0.0;
4072                visible: 1;
4073                min: 1 1;
4074                color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
4075             }
4076             description { state: "disabled" 0.0;
4077                inherit: "default" 0.0;
4078             }
4079             description { state: "disabled_visible" 0.0;
4080                inherit: "default" 0.0;
4081                color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4082                visible: 1;
4083                min: 1 1;
4084             }
4085             description { state: "focused" 0.0;
4086                inherit: "default" 0.0;
4087                visible: 1;
4088                min: 1 1;
4089                color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4090             }
4091          }
4092          part { name: "over1";
4093             type: RECT;
4094             mouse_events: 0;
4095             description { state: "default" 0.0;
4096                rel2.relative: 1.0 0.5;
4097                color: 0 0 0 0;
4098             }
4099          }
4100          part { name: "over2";
4101             type: RECT;
4102             repeat_events: 1;
4103             ignore_flags: ON_HOLD;
4104             description { state: "default" 0.0;
4105                rel1.to: "button_image";
4106                rel2.to: "button_image";
4107                color: 0 0 0 0;
4108             }
4109          }
4110          part { name: "over3";
4111             type: RECT;
4112             repeat_events: 1;
4113             description { state: "default" 0.0;
4114                rel1.to: "button_image";
4115                rel2.to: "button_image";
4116                color: 0 0 0 0;
4117             }
4118          }
4119          part { name: "disabler";
4120             type: RECT;
4121             description { state: "default" 0.0;
4122                rel1.to: "button_image";
4123                rel2.to: "button_image";
4124                color: 0 0 0 0;
4125                visible: 0;
4126             }
4127             description { state: "disabled" 0.0;
4128                inherit: "default" 0.0;
4129                visible: 1;
4130             }
4131          }
4132       }
4133       programs {
4134          program { name: "button_click";
4135             signal: "mouse,down,1";
4136             source: "over2";
4137             action: SIGNAL_EMIT "elm,action,press" "";
4138             after: "button_click_anim";
4139          }
4140          program { name: "button_click_anim";
4141             action: STATE_SET "clicked" 0.0;
4142             target: "button_image";
4143             target: "elm.text";
4144          }
4145          program { name: "button_double_click";
4146             signal: "mouse,down,1,double";
4147             source: "over2";
4148             after: "button_click_anim";
4149          }
4150          program { name: "button_unpress";
4151             action: SIGNAL_EMIT "elm,action,unpress" "";
4152          }
4153          program { name: "button_mouseout_clicked";
4154             signal: "mouse,up,1";
4155             source: "over3";
4156             script {
4157                new st[31];
4158                new Float:vl;
4159                get_state(PART:"elm.text", st, 30, vl);
4160                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4161                  {
4162                     emit("elm,action,default,text,set", "");
4163                     set_state(PART:"elm.text", "visible", 0.0);
4164                  }
4165                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4166                  set_state(PART:"button_image", "default", 0.0);
4167             }
4168             after: button_unpress;
4169          }
4170          program { name: "touch_snd";
4171             signal: "mouse,clicked,1";
4172             source: "over2";
4173             action: PLAY_SAMPLE "touch_sound" 1.0;
4174             after: button_unclick3;
4175          }
4176          program { name: "button_unclick3";
4177             action: SIGNAL_EMIT "elm,action,click" "";
4178          }
4179          program { name: "text_show";
4180             signal: "elm,state,text,visible";
4181             source: "elm";
4182             script {
4183                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4184                  set_state(PART:"elm.text", "visible", 0.0);
4185                else
4186                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4187             }
4188          }
4189          program { name: "text_hide";
4190             signal: "elm,state,text,hidden";
4191             source: "elm";
4192             action: STATE_SET "default" 0.0;
4193             target: "elm.text";
4194          }
4195          program { name: "disable";
4196             signal: "elm,state,disabled";
4197             source: "elm";
4198             action: STATE_SET "disabled" 0.0;
4199             target: "button_image";
4200             target: "disabler";
4201             after: "disable_text";
4202          }
4203          program { name: "disable_text";
4204             script {
4205                new st[31];
4206                new Float:vl;
4207                get_state(PART:"elm.text", st, 30, vl);
4208                if (!strcmp(st, "visible"))
4209                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4210                else
4211                  set_state(PART:"elm.text", "disabled", 0.0);
4212                set_int(button_state, BUTTON_STATE_DISABLED);
4213             }
4214          }
4215          program { name: "enable";
4216             signal: "elm,state,enabled";
4217             source: "elm";
4218             action: STATE_SET "default" 0.0;
4219             target: "button_image";
4220             target: "disabler";
4221             after: "enable_text";
4222          }
4223          program { name: "enable_text";
4224             script {
4225                new st[31];
4226                new Float:vl;
4227                get_state(PART:"elm.text", st, 30, vl);
4228                if (!strcmp(st, "disabled_visible"))
4229                  set_state(PART:"elm.text", "visible", 0.0);
4230                else
4231                  set_state(PART:"elm.text", "default", 0.0);
4232                set_int(button_state, BUTTON_STATE_ENABLED);
4233             }
4234          }
4235          program { name: "focused";
4236             //signal: "elm,action,focus";
4237             //source: "elm";
4238             action: STATE_SET "focused" 0.0;
4239             target: "button_image";
4240             target: "elm.text";
4241          }
4242          program { name: "unfocused";
4243             //signal: "elm,action,unfocus";
4244             //source: "elm";
4245             action: STATE_SET "default" 0.0;
4246             target: "button_image";
4247             action: STATE_SET "visible" 0.0;
4248             target: "elm.text";
4249          }
4250       }
4251    }
4252
4253 ///////////////////////////////////////////////////////////////////////////////////////
4254    group { name: "elm/button/base/naviframe/back_btn/default";
4255       alias: "elm/button/base/naviframe/prev_btn/default";
4256       alias: "elm/button/base/naviframe/end_btn/default";
4257       images {
4258          image: "00_icon_back.png" COMP;
4259          image: "00_icon_SIP_close.png" COMP;
4260       }
4261       parts {
4262          part { name: "button_image";
4263             type: RECT;
4264             scale: 1;
4265             description { state: "default" 0.0;
4266                min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4267                max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4268                visible: 0;
4269             }
4270             description { state: "landscape" 0.0;
4271                min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4272                max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4273                visible: 0;
4274             }
4275          }
4276          part { name: "back_button";
4277             scale: 1;
4278             mouse_events: 0;
4279             clip_to: "back_button.clipper";
4280             description { state: "default" 0.0;
4281                min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4282                max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4283                fixed: 1 1;
4284                rel1.to: "button_image";
4285                rel2.to: "button_image";
4286                image.normal: "00_icon_back.png";
4287             }
4288             description { state: "compress" 0.0;
4289                inherit: "default" 0.0;
4290                image.normal: "00_icon_SIP_close.png";
4291             }
4292          }
4293          part { name: "back_button.clipper";
4294             type: RECT;
4295             description { state: "default" 0.0;
4296                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4297             }
4298             description { state: "clicked" 0.0;
4299                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4300             }
4301             description { state: "disabled" 0.0;
4302                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4303             }
4304          }
4305          part { name: "over2";
4306             type: RECT;
4307             ignore_flags: ON_HOLD;
4308             description { state: "default" 0.0;
4309                color: 0 0 0 0;
4310             }
4311          }
4312          part { name: "over3";
4313             type: RECT;
4314             repeat_events: 1;
4315             description { state: "default" 0.0;
4316                color: 0 0 0 0;
4317             }
4318          }
4319          part { name: "disabler";
4320             type: RECT;
4321             description { state: "default" 0.0;
4322                color: 0 0 0 0;
4323                visible: 0;
4324             }
4325             description { state: "disabled" 0.0;
4326                inherit: "default" 0.0;
4327                visible: 1;
4328             }
4329          }
4330       }
4331       programs {
4332          program { name: "button_click";
4333             signal: "mouse,down,1";
4334             source: "over2";
4335             action: SIGNAL_EMIT "elm,action,press" "";
4336             after: "button_click_anim";
4337          }
4338          program { name: "button_click_anim";
4339             script {
4340                set_state(PART:"back_button.clipper", "clicked", 0.0);
4341             }
4342          }
4343          program { name: "button_double_click";
4344             signal: "mouse,down,1,double";
4345             source: "over2";
4346             after: "button_click_anim";
4347          }
4348          program { name: "button_unclick";
4349             signal: "mouse,up,1";
4350             source: "over3";
4351             action: SIGNAL_EMIT "elm,action,unpress" "";
4352             after: "button_unclick_anim";
4353          }
4354          program { name: "button_unclick_anim";
4355             script {
4356                set_state(PART:"back_button.clipper", "default", 0.0);
4357             }
4358          }
4359          program { name: "touch_snd";
4360             signal: "mouse,clicked,1";
4361             source: "over2";
4362             action: PLAY_SAMPLE "touch_sound" 1.0;
4363             after: button_unclick3;
4364          }
4365          program { name: "button_unclick3";
4366             action: SIGNAL_EMIT "elm,action,click" "";
4367          }
4368          program { name: "disable";
4369             signal: "elm,state,disabled";
4370             source: "elm";
4371             script {
4372                set_state(PART:"back_button.clipper", "disabled", 0.0);
4373             }
4374          }
4375          program { name: "enable";
4376             signal: "elm,state,enabled";
4377             source: "elm";
4378             script {
4379                set_state(PART:"back_button.clipper", "default", 0.0);
4380             }
4381          }
4382          program { name: "change_to_landscape";
4383             signal: "elm,state,landscape";
4384             source: "elm";
4385             action: STATE_SET "landscape" 0.0;
4386             target: "button_image";
4387          }
4388          program { name: "change_to_portrait";
4389             signal: "elm,state,portrait";
4390             source: "elm";
4391             action: STATE_SET "default" 0.0;
4392             target: "button_image";
4393          }
4394          program { name: "landscape_mode";
4395             source: "elm";
4396             signal: "elm,state,orient,90";
4397             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4398          }
4399          program { name: "landscape_mode2";
4400             source: "elm";
4401             signal: "elm,state,orient,270";
4402             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4403          }
4404          program { name: "portrait_mode";
4405             source: "elm";
4406             signal: "elm,state,orient,0";
4407             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4408          }
4409          program { name: "portrait_mode2";
4410             source: "elm";
4411             signal: "elm,state,orient,180";
4412             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4413          }
4414          program { name: "display_compress_mode";
4415             signal: "elm,state,display,compress";
4416             source: "elm";
4417             action: STATE_SET "compress" 0.0;
4418             target: "back_button";
4419          }
4420          program { name: "display_default_mode";
4421             signal: "elm,state,display,default";
4422             source: "elm";
4423             action: STATE_SET "default" 0.0;
4424             target: "back_button";
4425          }
4426       }
4427    }
4428
4429 //////////////////////////////////////////////////////////////
4430    group { name: "elm/button/base/naviframe/toolbar/default";
4431       alias: "elm/button/base/naviframe/title/default";
4432       images {
4433          image: "00_toolbar_button.png" COMP;
4434          image: "00_toolbar_button_press.png" COMP;
4435          image: "00_toolbar_button_dim.png" COMP;
4436       }
4437       styles{
4438          style { name: "btn_naviframe_toolbar";
4439             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";
4440             tag: "br" "\n";
4441             tag: "ps" "ps";
4442             tag: "tab" "\t";
4443          }
4444          style { name: "btn_naviframe_toolbar_pressed";
4445             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";
4446             tag: "br" "\n";
4447             tag: "ps" "ps";
4448             tag: "tab" "\t";
4449          }
4450          style { name: "btn_naviframe_toolbar_disabled";
4451             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";
4452             tag: "br" "\n";
4453             tag: "ps" "ps";
4454             tag: "tab" "\t";
4455          }
4456       }
4457       script {
4458          public button_state = BUTTON_STATE_ENABLED;
4459          public landscape_state = BUTTON_LANDSCAPE_DISABLED;
4460       }
4461       parts {
4462          part { name: "button_bg";
4463             type: SPACER;
4464             scale: 1;
4465             description { state: "default" 0.0;
4466                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4467                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4468                fixed: 1 1;
4469                rel1.to: "padding_text_left_top";
4470                rel2.to: "padding_text_right_bottom";
4471             }
4472             description { state: "landscape" 0.0;
4473                inherit: "default" 0.0;
4474                min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4475                max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4476             }
4477          }
4478          part { name: "button_image";
4479             scale: 1;
4480             description { state: "default" 0.0;
4481                rel1.to: "button_bg";
4482                rel2.to: "button_bg";
4483                image {
4484                   normal: "00_toolbar_button.png";
4485                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4486                   border_scale: 1;
4487                }
4488             }
4489             description { state: "clicked" 0.0;
4490                inherit: "default" 0.0;
4491                image.normal: "00_toolbar_button_press.png";
4492             }
4493             description { state: "disabled" 0.0;
4494                inherit: "default" 0.0;
4495                image.normal: "00_toolbar_button_dim.png";
4496             }
4497             description { state: "focused" 0.0;
4498                inherit: "default" 0.0;
4499                image.normal: "00_toolbar_button_press.png";
4500             }
4501          }
4502          part { name: "padding_left_top";
4503             type: RECT;
4504             scale: 1;
4505             mouse_events: 0;
4506             description { state: "default" 0.0;
4507                visible: 0;
4508                align: 0.0 0.0;
4509                rel2.relative: 0.0 0.0;
4510                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4511                fixed: 1 1;
4512             }
4513          }
4514          part { name: "padding_right_bottom";
4515             type: RECT;
4516             scale: 1;
4517             mouse_events: 0;
4518             description { state: "default" 0.0;
4519                align: 1.0 1.0;
4520                rel1.relative: 1.0 1.0;
4521                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4522                fixed: 1 1;
4523                visible: 0;
4524             }
4525          }
4526          part { name: "padding_text_left_top";
4527             type: RECT;
4528             scale: 1;
4529             mouse_events: 0;
4530             description { state: "default" 0.0;
4531                visible: 0;
4532                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4533                fixed: 1 1;
4534                rel1.to: "elm.text";
4535                rel2 {
4536                   relative: 0.0 0.0;
4537                   to: "elm.text";
4538                }
4539                align: 1.0 1.0;
4540             }
4541          }
4542          part { name: "padding_text_right_bottom";
4543             type: RECT;
4544             scale: 1;
4545             mouse_events: 0;
4546             description { state: "default" 0.0;
4547                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4548                fixed: 1 1;
4549                visible: 0;
4550                rel1 {
4551                   relative: 1.0 1.0;
4552                   to: "elm.text";
4553                }
4554                rel2.to: "elm.text";
4555                align: 0.0 0.0;
4556             }
4557          }
4558          part { name: "elm.text";
4559             type: TEXTBLOCK;
4560             clip_to: "disclip";
4561             mouse_events: 0;
4562             scale: 1;
4563             description { state: "default" 0.0;
4564                visible: 0;
4565                fixed: 1 1;
4566                min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4567                rel1 {
4568                   relative: 1.0 1.0;
4569                   to: "padding_left_top";
4570                }
4571                rel2 {
4572                   relative: 0.0 0.0;
4573                   to: "padding_right_bottom";
4574                }
4575                text {
4576                   min: 0 1;
4577                   max: 1 1;
4578                   align: 0.5 0.54;
4579                   style: "btn_naviframe_toolbar";
4580                }
4581             }
4582             description { state: "landscape" 0.0;
4583                inherit: "default" 0.0;
4584                min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
4585             }
4586             description { state: "visible" 0.0;
4587                inherit: "default" 0.0;
4588                visible: 1;
4589             }
4590             description { state: "landscape_visible" 0.0;
4591                inherit: "landscape" 0.0;
4592                visible: 1;
4593             }
4594             description { state: "clicked" 0.0;
4595                inherit: "default" 0.0;
4596                visible: 1;
4597                text {
4598                   style: "btn_naviframe_toolbar_pressed";
4599                }
4600             }
4601             description { state: "landscape_clicked" 0.0;
4602                inherit: "landscape" 0.0;
4603                visible: 1;
4604                text {
4605                   style: "btn_naviframe_toolbar_pressed";
4606                }
4607             }
4608             description { state: "disabled" 0.0;
4609                inherit: "default" 0.0;
4610             }
4611             description { state: "landscape_disabled" 0.0;
4612                inherit: "landscape" 0.0;
4613             }
4614             description { state: "disabled_visible" 0.0;
4615                inherit: "default" 0.0;
4616                visible: 1;
4617                text {
4618                   style: "btn_naviframe_toolbar_disabled";
4619                }
4620             }
4621             description { state: "landscape_disabled_visible" 0.0;
4622                inherit: "landscape" 0.0;
4623                visible: 1;
4624                text {
4625                   style: "btn_naviframe_toolbar_disabled";
4626                }
4627             }
4628             description { state: "focused" 0.0;
4629                inherit: "default" 0.0;
4630                visible: 1;
4631                text {
4632                   style: "btn_naviframe_toolbar_pressed";
4633                }
4634             }
4635             description { state: "landscape_focused" 0.0;
4636                inherit: "landscape" 0.0;
4637                visible: 1;
4638                text {
4639                   style: "btn_naviframe_toolbar_pressed";
4640                }
4641             }
4642          }
4643          part { name: "disclip";
4644             type: RECT;
4645             description { state: "default" 0.0;
4646                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4647             }
4648             description { state: "disabled" 0.0;
4649                inherit: "default" 0.0;
4650                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4651             }
4652          }
4653          part { name: "over2";
4654             type: RECT;
4655             repeat_events: 1;
4656             ignore_flags: ON_HOLD;
4657             description { state: "default" 0.0;
4658                rel1.to: "button_image";
4659                rel2.to: "button_image";
4660                color: 0 0 0 0;
4661             }
4662          }
4663          part { name: "over3";
4664             type: RECT;
4665             repeat_events: 1;
4666             description { state: "default" 0.0;
4667                rel1.to: "button_image";
4668                rel2.to: "button_image";
4669                color: 0 0 0 0;
4670             }
4671          }
4672          part { name: "disabler";
4673             type: RECT;
4674             description { state: "default" 0.0;
4675                rel1.to: "button_image";
4676                rel2.to: "button_image";
4677                color: 0 0 0 0;
4678                visible: 0;
4679             }
4680             description { state: "disabled" 0.0;
4681                inherit: "default" 0.0;
4682                visible: 1;
4683             }
4684          }
4685       }
4686       programs {
4687          program { name: "button_click";
4688             signal: "mouse,down,1";
4689             source: "over2";
4690             action: SIGNAL_EMIT "elm,action,press" "";
4691             after: "button_click_anim";
4692          }
4693          program { name: "button_click_anim";
4694             script {
4695                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4696                   set_state(PART:"elm.text", "landscape_clicked", 0.0);
4697                else
4698                   set_state(PART:"elm.text", "clicked", 0.0);
4699                set_state(PART:"button_image", "clicked", 0.0);
4700             }
4701          }
4702          program { name: "button_double_click";
4703             signal: "mouse,down,1,double";
4704             source: "over2";
4705             after: "button_click_anim";
4706          }
4707          program { name: "button_unpress";
4708             action: SIGNAL_EMIT "elm,action,unpress" "";
4709          }
4710          program { name: "button_mouseout_clicked";
4711             signal: "mouse,up,1";
4712             source: "over3";
4713             script {
4714                new st[31];
4715                new Float:vl;
4716                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4717                  {
4718                     get_state(PART:"elm.text", st, 30, vl);
4719                     if (!strcmp(st, "landscape_clicked") || !strcmp(st, "landscape_focused"))
4720                       {
4721                          emit("elm,action,default,text,set", "");
4722                          set_state(PART:"elm.text", "landscape_visible", 0.0);
4723                       }
4724                  }
4725                else
4726                  {
4727                     get_state(PART:"elm.text", st, 30, vl);
4728                     if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4729                       {
4730                          emit("elm,action,default,text,set", "");
4731                          set_state(PART:"elm.text", "visible", 0.0);
4732                       }
4733                  }
4734                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4735                  set_state(PART:"button_image", "default", 0.0);
4736             }
4737             after: button_unpress;
4738          }
4739          program { name: "touch_snd";
4740             signal: "mouse,clicked,1";
4741             source: "over2";
4742             action: PLAY_SAMPLE "touch_sound" 1.0;
4743             after: button_unclick3;
4744          }
4745          program { name: "button_unclick3";
4746             action: SIGNAL_EMIT "elm,action,click" "";
4747          }
4748          program { name: "text_show";
4749             signal: "elm,state,text,visible";
4750             source: "elm";
4751             script {
4752                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4753                  {
4754                     if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4755                       set_state(PART:"elm.text", "landscape_visible", 0.0);
4756                     else
4757                       set_state(PART:"elm.text", "visible", 0.0);
4758                  }
4759                else
4760                  {
4761                     if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4762                       set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4763                     else
4764                       set_state(PART:"elm.text", "disabled_visible", 0.0);
4765                  }
4766             }
4767          }
4768          program { name: "text_hide";
4769             signal: "elm,state,text,hidden";
4770             source: "elm";
4771             script {
4772                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4773                  set_state(PART:"elm.text", "landscape", 0.0);
4774                else
4775                  set_state(PART:"elm.text", "default", 0.0);
4776             }
4777          }
4778          program { name: "disable";
4779             signal: "elm,state,disabled";
4780             source: "elm";
4781             action: STATE_SET "disabled" 0.0;
4782             target: "button_image";
4783             target: "disclip";
4784             target: "disabler";
4785             after: "disable_text";
4786          }
4787          program { name: "disable_text";
4788             script {
4789                new st[31];
4790                new Float:vl;
4791                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4792                  {
4793                     get_state(PART:"elm.text", st, 30, vl);
4794                     if (!strcmp(st, "landscape_visible"))
4795                       set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4796                     else
4797                       set_state(PART:"elm.text", "landscape_disabled", 0.0);
4798                  }
4799                else
4800                  {
4801                     get_state(PART:"elm.text", st, 30, vl);
4802                     if (!strcmp(st, "visible"))
4803                       set_state(PART:"elm.text", "disabled_visible", 0.0);
4804                     else
4805                       set_state(PART:"elm.text", "disabled", 0.0);
4806                  }
4807                set_int(button_state, BUTTON_STATE_DISABLED);
4808             }
4809          }
4810          program { name: "enable";
4811             signal: "elm,state,enabled";
4812             source: "elm";
4813             action: STATE_SET "default" 0.0;
4814             target: "button_image";
4815             target: "disclip";
4816             target: "disabler";
4817             after: "enable_text";
4818          }
4819          program { name: "enable_text";
4820             script {
4821                new st[31];
4822                new Float:vl;
4823                if (get_int(landscape_state) != BUTTON_LANDSCAPE_DISABLED)
4824                  {
4825                     get_state(PART:"elm.text", st, 30, vl);
4826                     if (!strcmp(st, "landscape_disabled"))
4827                       set_state(PART:"elm.text", "landscape", 0.0);
4828                     else
4829                       set_state(PART:"elm.text", "landscape_visible", 0.0);
4830                  }
4831                else
4832                  {
4833                     get_state(PART:"elm.text", st, 30, vl);
4834                     if (!strcmp(st, "disabled"))
4835                       set_state(PART:"elm.text", "default", 0.0);
4836                     else
4837                       set_state(PART:"elm.text", "visible", 0.0);
4838                  }
4839                set_int(button_state, BUTTON_STATE_ENABLED);
4840             }
4841          }
4842          program { name: "change_to_landscape";
4843             signal: "elm,state,landscape";
4844             source: "elm";
4845             script {
4846                new st[31];
4847                new Float:vl;
4848                set_int(landscape_state, BUTTON_LANDSCAPE_ENABLED);
4849                get_state(PART:"elm.text", st, 30, vl);
4850                if (!strcmp(st, "default"))
4851                  set_state(PART:"elm.text", "landscape", 0.0);
4852                else if (!strcmp(st, "clicked"))
4853                  set_state(PART:"elm.text", "landscape_clicked", 0.0);
4854                else if (!strcmp(st, "disabled"))
4855                  set_state(PART:"elm.text", "landscape_disabled", 0.0);
4856                else if (!strcmp(st, "disabled_visible"))
4857                  set_state(PART:"elm.text", "landscape_disabled_visible", 0.0);
4858                else
4859                  set_state(PART:"elm.text", "landscape_visible", 0.0);
4860                set_state(PART:"button_bg", "landscape", 0.0);
4861             }
4862          }
4863          program { name: "change_to_portrait";
4864             signal: "elm,state,portrait";
4865             source: "elm";
4866             script {
4867                new st[31];
4868                new Float:vl;
4869                set_int(landscape_state, BUTTON_LANDSCAPE_DISABLED);
4870                get_state(PART:"elm.text", st, 30, vl);
4871                if (!strcmp(st, "landscape"))
4872                  set_state(PART:"elm.text", "default", 0.0);
4873                else if (!strcmp(st, "landscape_clicked"))
4874                  set_state(PART:"elm.text", "clicked", 0.0);
4875                else if (!strcmp(st, "landscape_disabled"))
4876                  set_state(PART:"elm.text", "disabled", 0.0);
4877                else if (!strcmp(st, "landscape_disabled_visible"))
4878                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4879                else
4880                  set_state(PART:"elm.text", "visible", 0.0);
4881                set_state(PART:"button_bg", "default", 0.0);
4882             }
4883          }
4884          program { name: "landscape_mode";
4885             source: "elm";
4886             signal: "elm,state,orient,90";
4887             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4888          }
4889          program { name: "landscape_mode2";
4890             source: "elm";
4891             signal: "elm,state,orient,270";
4892             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4893          }
4894          program { name: "portrait_mode";
4895             source: "elm";
4896             signal: "elm,state,orient,0";
4897             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4898          }
4899          program { name: "portrait_mode2";
4900             source: "elm";
4901             signal: "elm,state,orient,180";
4902             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4903          }
4904          program { name: "focused";
4905             //signal: "elm,action,focus";
4906             //source: "elm";
4907             action: STATE_SET "focused" 0.0;
4908             target: "button_image";
4909             target: "elm.text";
4910          }
4911          program { name: "unfocused";
4912             //signal: "elm,action,unfocus";
4913             //source: "elm";
4914             action: STATE_SET "default" 0.0;
4915             target: "button_image";
4916             action: STATE_SET "visible" 0.0;
4917             target: "elm.text";
4918          }
4919       }
4920    }
4921
4922 //////////////////////////////////////////////////////////////
4923    group { name: "elm/button/base/naviframe/toolbar/left";
4924       inherit: "elm/button/base/naviframe/toolbar/default";
4925       parts {
4926          part { name: "button_bg";
4927             type: SPACER;
4928             scale: 1;
4929             description { state: "default" 0.0;
4930                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4931                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4932                fixed: 1 1;
4933                rel1.to: "padding_text_left_top";
4934                rel2.to: "padding_text_right_bottom";
4935                align: 1.0 0.5;
4936             }
4937             description { state: "landscape" 0.0;
4938                inherit: "default" 0.0;
4939                min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4940                max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
4941             }
4942          }
4943          part { name: "elm.text";
4944             type: TEXTBLOCK;
4945             clip_to: "disclip";
4946             mouse_events: 0;
4947             scale: 1;
4948             description { state: "default" 0.0;
4949                visible: 0;
4950                fixed: 1 1;
4951                min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4952                rel1 {
4953                   relative: 1.0 1.0;
4954                   to: "padding_left_top";
4955                }
4956                rel2 {
4957                   relative: 0.0 0.0;
4958                   to: "padding_right_bottom";
4959                }
4960                align: 1.0 0.5;
4961                text {
4962                   min: 0 1;
4963                   max: 1 1;
4964                   align: 0.5 0.54;
4965                   style: "btn_naviframe_toolbar";
4966                }
4967             }
4968             description { state: "landscape" 0.0;
4969                inherit: "default" 0.0;
4970                min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
4971             }
4972             description { state: "visible" 0.0;
4973                inherit: "default" 0.0;
4974                visible: 1;
4975             }
4976             description { state: "landscape_visible" 0.0;
4977                inherit: "landscape" 0.0;
4978                visible: 1;
4979             }
4980             description { state: "clicked" 0.0;
4981                inherit: "default" 0.0;
4982                visible: 1;
4983                text {
4984                   style: "btn_naviframe_toolbar_pressed";
4985                }
4986             }
4987             description { state: "landscape_clicked" 0.0;
4988                inherit: "landscape" 0.0;
4989                visible: 1;
4990                text {
4991                   style: "btn_naviframe_toolbar_pressed";
4992                }
4993             }
4994             description { state: "disabled" 0.0;
4995                inherit: "default" 0.0;
4996             }
4997             description { state: "landscape_disabled" 0.0;
4998                inherit: "landscape" 0.0;
4999             }
5000             description { state: "disabled_visible" 0.0;
5001                inherit: "default" 0.0;
5002                visible: 1;
5003                text {
5004                   style: "btn_naviframe_toolbar_disabled";
5005                }
5006             }
5007             description { state: "landscape_disabled_visible" 0.0;
5008                inherit: "landscape" 0.0;
5009                visible: 1;
5010                text {
5011                   style: "btn_naviframe_toolbar_disabled";
5012                }
5013             }
5014             description { state: "focused" 0.0;
5015                inherit: "default" 0.0;
5016                visible: 1;
5017                text {
5018                   style: "btn_naviframe_toolbar_pressed";
5019                }
5020             }
5021             description { state: "landscape_focused" 0.0;
5022                inherit: "landscape" 0.0;
5023                visible: 1;
5024                text {
5025                   style: "btn_naviframe_toolbar_pressed";
5026                }
5027             }
5028          }
5029       }
5030    }
5031
5032 //////////////////////////////////////////////////////////////
5033    group { name: "elm/button/base/naviframe/toolbar/right";
5034       inherit: "elm/button/base/naviframe/toolbar/default";
5035       parts {
5036          part { name: "button_bg";
5037             type: SPACER;
5038             scale: 1;
5039             description { state: "default" 0.0;
5040                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
5041                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
5042                fixed: 1 1;
5043                rel1.to: "padding_text_left_top";
5044                rel2.to: "padding_text_right_bottom";
5045                align: 0.0 0.5;
5046             }
5047             description { state: "landscape" 0.0;
5048                inherit: "default" 0.0;
5049                min: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5050                max: BUTTON_NAVIFRAME_TITLE_TEXT_LANDSCAPE_BG_NORMAL_MAX_INC;
5051             }
5052          }
5053          part { name: "elm.text";
5054             type: TEXTBLOCK;
5055             clip_to: "disclip";
5056             mouse_events: 0;
5057             scale: 1;
5058             description { state: "default" 0.0;
5059                visible: 0;
5060                fixed: 1 1;
5061                min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
5062                rel1 {
5063                   relative: 1.0 1.0;
5064                   to: "padding_left_top";
5065                }
5066                rel2 {
5067                   relative: 0.0 0.0;
5068                   to: "padding_right_bottom";
5069                }
5070                align: 0.0 0.5;
5071                text {
5072                   min: 0 1;
5073                   max: 1 1;
5074                   align: 0.5 0.54;
5075                   style: "btn_naviframe_toolbar";
5076                }
5077             }
5078             description { state: "landscape" 0.0;
5079                inherit: "default" 0.0;
5080                min: BUTTON_NAVIFRAME_TITLE_LANDSCAPE_TEXTBLOCK_MIN_INC;
5081             }
5082             description { state: "visible" 0.0;
5083                inherit: "default" 0.0;
5084                visible: 1;
5085             }
5086             description { state: "landscape_visible" 0.0;
5087                inherit: "landscape" 0.0;
5088                visible: 1;
5089             }
5090             description { state: "clicked" 0.0;
5091                inherit: "default" 0.0;
5092                visible: 1;
5093                text {
5094                   style: "btn_naviframe_toolbar_pressed";
5095                }
5096             }
5097             description { state: "landscape_clicked" 0.0;
5098                inherit: "landscape" 0.0;
5099                visible: 1;
5100                text {
5101                   style: "btn_naviframe_toolbar_pressed";
5102                }
5103             }
5104             description { state: "disabled" 0.0;
5105                inherit: "default" 0.0;
5106             }
5107             description { state: "landscape_disabled" 0.0;
5108                inherit: "landscape" 0.0;
5109             }
5110             description { state: "disabled_visible" 0.0;
5111                inherit: "default" 0.0;
5112                visible: 1;
5113                text {
5114                   style: "btn_naviframe_toolbar_disabled";
5115                }
5116             }
5117             description { state: "landscape_disabled_visible" 0.0;
5118                inherit: "landscape" 0.0;
5119                visible: 1;
5120                text {
5121                   style: "btn_naviframe_toolbar_disabled";
5122                }
5123             }
5124             description { state: "focused" 0.0;
5125                inherit: "default" 0.0;
5126                visible: 1;
5127                text {
5128                   style: "btn_naviframe_toolbar_pressed";
5129                }
5130             }
5131             description { state: "landscape_focused" 0.0;
5132                inherit: "landscape" 0.0;
5133                visible: 1;
5134                text {
5135                   style: "btn_naviframe_toolbar_pressed";
5136                }
5137             }
5138          }
5139       }
5140    }
5141
5142 ////////////////////////////////////////////////////////////////////
5143    group { name: "elm/button/base/toolbar/segmentedcontrol";
5144       images {
5145          image: "00_toolbar_button.png" COMP;
5146          image: "00_toolbar_button_press.png" COMP;
5147          image: "00_toolbar_button_dim.png" COMP;
5148          image: "00_button_icon_arrow.png" COMP;
5149          image: "00_button_icon_arrow_press.png" COMP;
5150       }
5151       styles{
5152          style { name: "btn_toolbar_segmentedcontrol";
5153             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";
5154             tag: "br" "\n";
5155             tag: "ps" "ps";
5156             tag: "tab" "\t";
5157          }
5158       }
5159       script {
5160          public button_state = BUTTON_STATE_ENABLED;
5161       }
5162       parts {
5163          part { name: "button_image";
5164             scale: 1;
5165             description { state: "default" 0.0;
5166                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
5167                max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
5168                fixed: 1 1;
5169                rel1.to: "padding_text_left_top";
5170                rel2.to: "padding_text_right_bottom";
5171                image {
5172                   normal: "00_toolbar_button.png";
5173                   border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
5174                   border_scale: 1;
5175                }
5176             }
5177             description { state: "clicked" 0.0;
5178                inherit: "default" 0.0;
5179                image.normal: "00_toolbar_button_press.png";
5180             }
5181             description { state: "disabled" 0.0;
5182                inherit: "default" 0.0;
5183                image.normal: "00_toolbar_button_dim.png";
5184             }
5185             description { state: "focused" 0.0;
5186                inherit: "default" 0.0;
5187                image.normal: "00_toolbar_button_press.png";
5188             }
5189          }
5190          part { name: "padding_left_top";
5191             type: RECT;
5192             scale: 1;
5193             mouse_events: 0;
5194             description { state: "default" 0.0;
5195                visible: 0;
5196                align: 0.0 0.0;
5197                rel2.relative: 0.0 0.0;
5198                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5199                fixed: 1 1;
5200             }
5201          }
5202          part { name: "padding_right_bottom";
5203             type: RECT;
5204             scale: 1;
5205             mouse_events: 0;
5206             description { state: "default" 0.0;
5207                align: 1.0 1.0;
5208                rel1.relative: 1.0 1.0;
5209                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5210                fixed: 1 1;
5211                visible: 0;
5212             }
5213          }
5214          part { name: "padding_text_left_top";
5215             type: RECT;
5216             scale: 1;
5217             mouse_events: 0;
5218             description { state: "default" 0.0;
5219                visible: 0;
5220                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
5221                fixed: 1 1;
5222                rel1.to: "elm.text";
5223                rel2 {
5224                   relative: 0.0 0.0;
5225                   to: "elm.text";
5226                }
5227                align: 1.0 0.0;
5228             }
5229          }
5230          part { name: "padding_text_right_bottom";
5231             type: RECT;
5232             scale: 1;
5233             mouse_events: 0;
5234             description { state: "default" 0.0;
5235                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
5236                fixed: 1 1;
5237                visible: 0;
5238                rel1 {
5239                   relative: 1.0 1.0;
5240                   to_x: "icon";
5241                   to_y: "elm.text";
5242                }
5243                rel2 {
5244                   relative: 1.0 1.0;
5245                   to_x: "icon";
5246                   to_y: "elm.text";
5247                }
5248                align: 0.0 0.0;
5249             }
5250          }
5251          part { name: "elm.text";
5252             type: TEXTBLOCK;
5253             clip_to: "disclip";
5254             mouse_events: 0;
5255             effect: FAR_SHADOW BOTTOM;
5256             scale: 1;
5257             description { state: "default" 0.0;
5258                visible: 0;
5259                fixed: 1 1;
5260                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5261                rel1 {
5262                   relative: 1.0 1.0;
5263                   to: "padding_left_top";
5264                }
5265                rel2 {
5266                   relative: 0.0 0.0;
5267                   to: "padding_right_bottom";
5268                }
5269                color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
5270                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5271                text {
5272                   min: 0 1;
5273                   max: 1 1;
5274                   style: "btn_toolbar_segmentedcontrol";
5275                }
5276             }
5277             description { state: "visible" 0.0;
5278                inherit: "default" 0.0;
5279                visible: 1;
5280             }
5281             description { state: "clicked" 0.0;
5282                inherit: "default" 0.0;
5283                visible: 1;
5284                color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
5285             }
5286             description { state: "disabled" 0.0;
5287                inherit: "default" 0.0;
5288             }
5289             description { state: "disabled_visible" 0.0;
5290                inherit: "default" 0.0;
5291                color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
5292                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5293                visible: 1;
5294             }
5295             description { state: "focused" 0.0;
5296                inherit: "default" 0.0;
5297                visible: 1;
5298                color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
5299             }
5300          }
5301          part { name: "icon_padding";
5302             scale: 1;
5303             type: RECT;
5304             description { state: "default" 0.0;
5305                min: 6 5;
5306                fixed: 1 1;
5307                align: 0.0 0.5;
5308                rel1 {
5309                   relative: 1.0 0.0;
5310                   to: "elm.text";
5311                }
5312                visible: 0;
5313                rel2.to: "elm.text";
5314             }
5315          }
5316          part { name: "icon";
5317             scale: 1;
5318             clip_to: "icon_clipper";
5319             description { state: "default" 0.0;
5320                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5321                max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5322                fixed: 1 1;
5323                align: 0.0 0.5;
5324                rel1 {
5325                   relative: 1.0 0.0;
5326                   to_x: "icon_padding";
5327                   to_y: "elm.text";
5328                   offset: 0 6;
5329                }
5330                rel2 {
5331                   relative: 1.0 1.0;
5332                   to_x: "icon_padding";
5333                   to_y: "elm.text";
5334                }
5335                image.normal: "00_button_icon_arrow.png";
5336             }
5337             description { state: "clicked" 0.0;
5338                inherit: "default" 0.0;
5339                image.normal: "00_button_icon_arrow_press.png";
5340             }
5341          }
5342          part { name: "icon_clipper";
5343             type: RECT;
5344             description { state: "default" 0.0;
5345                color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5346             }
5347             description { state: "clicked" 0.0;
5348                inherit: "default" 0.0;
5349                color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5350             }
5351          }
5352          part { name: "disclip";
5353             type: RECT;
5354             description { state: "default" 0.0;
5355                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5356             }
5357             description { state: "disabled" 0.0;
5358                inherit: "default" 0.0;
5359                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5360             }
5361          }
5362          part { name: "over2";
5363             type: RECT;
5364             repeat_events: 1;
5365             ignore_flags: ON_HOLD;
5366             description { state: "default" 0.0;
5367                rel1.to: "button_image";
5368                rel2.to: "button_image";
5369                color: 0 0 0 0;
5370             }
5371          }
5372          part { name: "over3";
5373             type: RECT;
5374             repeat_events: 1;
5375             description { state: "default" 0.0;
5376                rel1.to: "button_image";
5377                rel2.to: "button_image";
5378                color: 0 0 0 0;
5379             }
5380          }
5381          part { name: "disabler";
5382             type: RECT;
5383             description { state: "default" 0.0;
5384                rel1.to: "button_image";
5385                rel2.to: "button_image";
5386                color: 0 0 0 0;
5387                visible: 0;
5388             }
5389             description { state: "disabled" 0.0;
5390                inherit: "default" 0.0;
5391                visible: 1;
5392             }
5393          }
5394       }
5395       programs {
5396          program { name: "button_click";
5397             signal: "mouse,down,1";
5398             source: "over2";
5399             action: SIGNAL_EMIT "elm,action,press" "";
5400             after: "button_click_anim";
5401          }
5402          program { name: "button_click_anim";
5403             action: STATE_SET "clicked" 0.0;
5404             target: "button_image";
5405             target: "elm.text";
5406             target: "icon";
5407             target: "icon_clipper";
5408          }
5409          program { name: "button_double_click";
5410             signal: "mouse,down,1,double";
5411             source: "over2";
5412             after: "button_click_anim";
5413          }
5414          program { name: "button_unpress";
5415             action: SIGNAL_EMIT "elm,action,unpress" "";
5416          }
5417          program { name: "button_mouseout_clicked";
5418             signal: "mouse,up,1";
5419             source: "over3";
5420             script {
5421                new st[31];
5422                new Float:vl;
5423                get_state(PART:"elm.text", st, 30, vl);
5424                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5425                  {
5426                     emit("elm,action,default,text,set", "");
5427                     set_state(PART:"elm.text", "visible", 0.0);
5428                  }
5429                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5430                  set_state(PART:"button_image", "default", 0.0);
5431                set_state(PART:"icon", "default", 0.0);
5432                set_state(PART:"icon_clipper", "default", 0.0);
5433             }
5434             after: button_unpress;
5435          }
5436          program { name: "touch_snd";
5437             signal: "mouse,clicked,1";
5438             source: "over2";
5439             action: PLAY_SAMPLE "touch_sound" 1.0;
5440             after: button_unclick3;
5441          }
5442          program { name: "button_unclick3";
5443             action: SIGNAL_EMIT "elm,action,click" "";
5444          }
5445          program { name: "text_show";
5446             signal: "elm,state,text,visible";
5447             source: "elm";
5448             script {
5449                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5450                  set_state(PART:"elm.text", "visible", 0.0);
5451                else
5452                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5453             }
5454          }
5455          program { name: "text_hide";
5456             signal: "elm,state,text,hidden";
5457             source: "elm";
5458             action: STATE_SET "default" 0.0;
5459             target: "elm.text";
5460          }
5461          program { name: "disable";
5462             signal: "elm,state,disabled";
5463             source: "elm";
5464             action: STATE_SET "disabled" 0.0;
5465             target: "button_image";
5466             target: "disclip";
5467             target: "disabler";
5468             after: "disable_text";
5469          }
5470          program { name: "disable_text";
5471             script {
5472                new st[31];
5473                new Float:vl;
5474                get_state(PART:"elm.text", st, 30, vl);
5475                if (!strcmp(st, "visible"))
5476                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5477                else
5478                  set_state(PART:"elm.text", "disabled", 0.0);
5479                set_int(button_state, BUTTON_STATE_DISABLED);
5480             }
5481          }
5482          program { name: "enable";
5483             signal: "elm,state,enabled";
5484             source: "elm";
5485             action: STATE_SET "default" 0.0;
5486             target: "button_image";
5487             target: "disclip";
5488             target: "disabler";
5489             after: "enable_text";
5490          }
5491          program { name: "enable_text";
5492             script {
5493                new st[31];
5494                new Float:vl;
5495                get_state(PART:"elm.text", st, 30, vl);
5496                if (!strcmp(st, "disabled_visible"))
5497                  set_state(PART:"elm.text", "visible", 0.0);
5498                else
5499                  set_state(PART:"elm.text", "default", 0.0);
5500                set_int(button_state, BUTTON_STATE_ENABLED);
5501             }
5502          }
5503          program { name: "focused";
5504             //signal: "elm,action,focus";
5505             //source: "elm";
5506             action: STATE_SET "focused" 0.0;
5507             target: "button_image";
5508             target: "elm.text";
5509          }
5510          program { name: "unfocused";
5511             //signal: "elm,action,unfocus";
5512             //source: "elm";
5513             action: STATE_SET "default" 0.0;
5514             target: "button_image";
5515             action: STATE_SET "visible" 0.0;
5516             target: "elm.text";
5517          }
5518       }
5519    }
5520
5521 ////////////////////////////////////////////////////////////////////
5522    group { name: "elm/button/base/naviframe/title_icon";
5523       parts {
5524          part { name: "button_image";
5525             type: RECT;
5526             scale: 1;
5527             description { state: "default" 0.0;
5528                visible: 0;
5529                min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5530                max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5531             }
5532             description { state: "landscape" 0.0;
5533                visible: 0;
5534                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5535                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5536             }
5537          }
5538          part { name: "top_padding";
5539             type: RECT;
5540             scale: 1;
5541             description { state: "default" 0.0;
5542                visible: 0;
5543                min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5544                fixed: 0 1;
5545                align: 0 0;
5546                rel1 { relative: 0.0 0.0; to: "button_image"; }
5547                rel2 { relative: 1.0 0.0; to: "button_image"; }
5548             }
5549             description { state: "landscape" 0.0;
5550                inherit: "default" 0.0;
5551                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5552             }
5553          }
5554          part { name: "elm.swallow.content";
5555             type: SWALLOW;
5556             scale: 1;
5557             clip_to: "elm.icon.clipper";
5558             description { state: "default" 0.0;
5559                visible: 0;
5560                max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5561                fixed: 1 1;
5562                align: 0.5 0.0;
5563                rel1 { relative: 0.0 1.0; to: "top_padding"; }
5564                rel2 { relative: 1.0 1.0; to: "button_image"; }
5565             }
5566             description { state: "visible" 0.0;
5567                inherit: "default" 0.0;
5568                visible: 1;
5569             }
5570          }
5571          part { name: "elm.swallow.icon.proxy";
5572             type: PROXY;
5573             scale: 1;
5574             clip_to: "elm.icon.proxy.clipper";
5575             description { state: "default" 0.0;
5576                 source: "elm.swallow.content";
5577                 rel1.to: "elm.swallow.content";
5578                 rel1.offset: 0 -2;
5579                 rel2.to: "elm.swallow.content";
5580                 rel2.offset: 0 -2;
5581             }
5582          }
5583          part { name: "elm.icon.proxy.clipper";
5584             type: RECT;
5585             description { state: "default" 0.0;
5586                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5587             }
5588             description { state: "clicked" 0.0;
5589                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5590             }
5591             description { state: "disabled" 0.0;
5592                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5593             }
5594          }
5595          part { name: "elm.icon.clipper";
5596             type: RECT;
5597             description { state: "default" 0.0;
5598                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5599             }
5600             description { state: "clicked" 0.0;
5601                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5602             }
5603             description { state: "disabled" 0.0;
5604                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5605             }
5606          }
5607          part { name: "over2";
5608             type: RECT;
5609             ignore_flags: ON_HOLD;
5610             description { state: "default" 0.0;
5611                color: 0 0 0 0;
5612             }
5613          }
5614          part { name: "over3";
5615             type: RECT;
5616             repeat_events: 1;
5617             description { state: "default" 0.0;
5618                color: 0 0 0 0;
5619             }
5620          }
5621          part { name: "disabler";
5622             type: RECT;
5623             description { state: "default" 0.0;
5624                color: 0 0 0 0;
5625                visible: 0;
5626             }
5627             description { state: "disabled" 0.0;
5628                inherit: "default" 0.0;
5629                visible: 1;
5630             }
5631          }
5632       }
5633       programs {
5634          program { name: "button_click";
5635             signal: "mouse,down,1";
5636             source: "over2";
5637             action: SIGNAL_EMIT "elm,action,press" "";
5638             after: "button_click_anim";
5639          }
5640          program { name: "button_click_anim";
5641             script {
5642                set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5643                set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5644             }
5645          }
5646          program { name: "button_double_click";
5647             signal: "mouse,down,1,double";
5648             source: "over2";
5649             after: "button_click_anim";
5650          }
5651          program { name: "button_unpress";
5652             action: SIGNAL_EMIT "elm,action,unpress" "";
5653          }
5654          program { name: "button_mouseout_clicked";
5655             signal: "mouse,up,1";
5656             source: "over3";
5657             action: STATE_SET "default" 0.0;
5658             target: "elm.icon.clipper";
5659             target: "elm.icon.proxy.clipper";
5660             after: button_unpress;
5661          }
5662          program { name: "touch_snd";
5663             signal: "mouse,clicked,1";
5664             source: "over2";
5665             action: PLAY_SAMPLE "touch_sound" 1.0;
5666             after: button_unclick3;
5667          }
5668          program { name: "button_unclick3";
5669             action: SIGNAL_EMIT "elm,action,click" "";
5670          }
5671          program { name: "icon_show";
5672             signal: "elm,state,icon,visible";
5673             source: "elm";
5674             action: STATE_SET "visible" 0.0;
5675             target: "elm.swallow.content";
5676          }
5677          program { name: "icon_hide";
5678             signal: "elm,state,icon,hidden";
5679             source: "elm";
5680             action: STATE_SET "default" 0.0;
5681             target: "elm.swallow.content";
5682          }
5683          program { name: "disable";
5684             signal: "elm,state,disabled";
5685             source: "elm";
5686             script {
5687                set_state(PART:"disabler", "disabled", 0.0);
5688                set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5689                set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5690             }
5691          }
5692          program { name: "enable";
5693             signal: "elm,state,enabled";
5694             source: "elm";
5695             script {
5696                set_state(PART:"disabler", "default", 0.0);
5697                set_state(PART:"elm.icon.clipper", "default", 0.0);
5698                set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5699             }
5700          }
5701          program { name: "change_to_landscape";
5702             signal: "elm,state,landscape";
5703             source: "elm";
5704             action: STATE_SET "landscape" 0.0;
5705             target: "button_image";
5706             target: "top_padding";
5707          }
5708          program { name: "change_to_portrait";
5709             signal: "elm,state,portrait";
5710             source: "elm";
5711             action: STATE_SET "default" 0.0;
5712             target: "button_image";
5713             target: "top_padding";
5714          }
5715 /*         program { name: "landscape_mode";
5716             source: "elm";
5717             signal: "elm,state,orient,90";
5718             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5719          }
5720          program { name: "landscape_mode2";
5721             source: "elm";
5722             signal: "elm,state,orient,270";
5723             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5724          }
5725          program { name: "portrait_mode";
5726             source: "elm";
5727             signal: "elm,state,orient,0";
5728             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5729          }
5730          program { name: "portrait_mode2";
5731             source: "elm";
5732             signal: "elm,state,orient,180";
5733             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5734          } */
5735       }
5736    }
5737
5738 /////////////////////////////////////////////////////////////////////////////////////////
5739    group { name: "elm/button/base/naviframe/more/default";
5740       images {
5741          image: "00_icon_more.png" COMP;
5742       }
5743       parts {
5744          part { name: "button_image";
5745             type: RECT;
5746             scale: 1;
5747             description { state: "default" 0.0;
5748                min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5749                max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5750                visible: 0;
5751             }
5752             description { state: "landscape" 0.0;
5753                min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5754                max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5755                visible: 0;
5756             }
5757          }
5758          part { name: "more_image";
5759             scale: 1;
5760             mouse_events: 0;
5761             clip_to: "more_image.clipper";
5762             description { state: "default" 0.0;
5763                min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5764                max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5765                fixed: 1 1;
5766                rel1.to: "button_image";
5767                rel2.to: "button_image";
5768                image.normal: "00_icon_more.png";
5769             }
5770          }
5771          part { name: "more_image.clipper";
5772             type: RECT;
5773             description { state: "default" 0.0;
5774                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5775             }
5776             description { state: "clicked" 0.0;
5777                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5778             }
5779             description { state: "disabled" 0.0;
5780                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5781             }
5782          }
5783          part { name: "over2";
5784             type: RECT;
5785             ignore_flags: ON_HOLD;
5786             description { state: "default" 0.0;
5787                color: 0 0 0 0;
5788             }
5789          }
5790          part { name: "over3";
5791             type: RECT;
5792             repeat_events: 1;
5793             description { state: "default" 0.0;
5794                color: 0 0 0 0;
5795             }
5796          }
5797          part { name: "disabler";
5798             type: RECT;
5799             description { state: "default" 0.0;
5800                color: 0 0 0 0;
5801                visible: 0;
5802             }
5803             description { state: "disabled" 0.0;
5804                inherit: "default" 0.0;
5805                visible: 1;
5806             }
5807          }
5808       }
5809       programs {
5810          program { name: "button_click";
5811             signal: "mouse,down,1";
5812             source: "over2";
5813             action: SIGNAL_EMIT "elm,action,press" "";
5814             after: "button_click_anim";
5815          }
5816          program { name: "button_click_anim";
5817             script {
5818                set_state(PART:"more_image.clipper", "clicked", 0.0);
5819             }
5820          }
5821          program { name: "button_double_click";
5822             signal: "mouse,down,1,double";
5823             source: "over2";
5824             after: "button_click_anim";
5825          }
5826          program { name: "button_unclick";
5827             signal: "mouse,up,1";
5828             source: "over3";
5829             action: SIGNAL_EMIT "elm,action,unpress" "";
5830             after: "button_unclick_anim";
5831          }
5832          program { name: "button_unclick_anim";
5833             script {
5834                set_state(PART:"more_image.clipper", "default", 0.0);
5835             }
5836          }
5837          program { name: "touch_snd";
5838             signal: "mouse,clicked,1";
5839             source: "over2";
5840             action: PLAY_SAMPLE "touch_sound" 1.0;
5841             after: button_unclick3;
5842          }
5843          program { name: "button_unclick3";
5844             action: SIGNAL_EMIT "elm,action,click" "";
5845          }
5846          program { name: "disable";
5847             signal: "elm,state,disabled";
5848             source: "elm";
5849             script {
5850                set_state(PART:"disabler", "disabled", 0.0);
5851                set_state(PART:"more_image.clipper", "disabled", 0.0);
5852             }
5853          }
5854          program { name: "enable";
5855             signal: "elm,state,enabled";
5856             source: "elm";
5857             script {
5858                set_state(PART:"disabler", "default", 0.0);
5859                set_state(PART:"more_image.clipper", "default", 0.0);
5860             }
5861          }
5862          program { name: "change_to_landscape";
5863             signal: "elm,state,landscape";
5864             source: "elm";
5865             action: STATE_SET "landscape" 0.0;
5866             target: "button_image";
5867          }
5868          program { name: "change_to_portrait";
5869             signal: "elm,state,portrait";
5870             source: "elm";
5871             action: STATE_SET "default" 0.0;
5872             target: "button_image";
5873          }
5874          program { name: "landscape_mode";
5875             source: "elm";
5876             signal: "elm,state,orient,90";
5877             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5878          }
5879          program { name: "landscape_mode2";
5880             source: "elm";
5881             signal: "elm,state,orient,270";
5882             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5883          }
5884          program { name: "portrait_mode";
5885             source: "elm";
5886             signal: "elm,state,orient,0";
5887             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5888          }
5889          program { name: "portrait_mode2";
5890             source: "elm";
5891             signal: "elm,state,orient,180";
5892             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5893          }
5894       }
5895    }
5896
5897 ///////////////////////////////////////////////////////////////////////////////////////
5898    group { name: "elm/button/base/tickernoti";
5899       images {
5900          image: "00_notification_button.png" COMP;
5901          image: "00_notification_button_press.png" COMP;
5902          image: "00_notification_button_dim.png" COMP;
5903       }
5904       script {
5905          public button_state = BUTTON_STATE_ENABLED;
5906       }
5907       parts {
5908          part { name: "button_image";
5909             scale: 1;
5910             description { state: "default" 0.0;
5911                min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5912                max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5913                image {
5914                   normal: "00_notification_button.png";
5915                   border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5916                   border_scale: 1;
5917                }
5918             }
5919             description { state: "clicked" 0.0;
5920                inherit: "default" 0.0;
5921                image.normal: "00_notification_button_press.png";
5922             }
5923             description { state: "disabled" 0.0;
5924                inherit: "default" 0.0;
5925                image.normal: "00_notification_button_dim.png";
5926             }
5927             description { state: "focused" 0.0;
5928                inherit: "default" 0.0;
5929                image.normal: "00_notification_button_press.png";
5930             }
5931          }
5932          part { name: "padding_left_top";
5933             type: RECT;
5934             scale: 1;
5935             mouse_events: 0;
5936             description { state: "default" 0.0;
5937                visible: 0;
5938                align: 0.0 0.0;
5939                rel2.relative: 0.0 0.0;
5940                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5941                fixed: 1 1;
5942             }
5943          }
5944          part { name: "bg";
5945             type: RECT;
5946             scale: 1;
5947             mouse_events: 0;
5948             description { state: "default" 0.0;
5949                min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5950                visible: 0;
5951             }
5952             description { state: "visible" 0.0;
5953                inherit: "default" 0.0;
5954             }
5955             description { state: "icononly" 0.0;
5956                inherit: "default" 0.0;
5957             }
5958          }
5959          part { name: "padding_right_bottom";
5960             type: RECT;
5961             scale: 1;
5962             mouse_events: 0;
5963             description { state: "default" 0.0;
5964                align: 1.0 1.0;
5965                rel1.relative: 1.0 1.0;
5966                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5967                fixed: 1 1;
5968                visible: 0;
5969             }
5970          }
5971          part { name: "icon_rect";
5972             type: RECT;
5973             scale: 1;
5974             mouse_events: 0;
5975             description { state: "default" 0.0;
5976                visible: 0;
5977                min: 0 0;
5978                fixed: 1 0;
5979                rel1 {
5980                   relative: 1.0 1.0;
5981                   to: "padding_left_top";
5982                }
5983                rel2 {
5984                   relative: 1.0 0.0;
5985                   to_x: "padding_left_top";
5986                   to_y: "padding_right_bottom";
5987                }
5988                align: 0.0 0.5;
5989             }
5990             description { state: "visible" 0.0;
5991                inherit: "default" 0.0;
5992                min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5993                max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5994             }
5995             description { state: "icononly" 0.0;
5996                inherit: "default" 0.0;
5997             }
5998          }
5999          part { name: "padding_after_icon";
6000             type: RECT;
6001             scale: 1;
6002             mouse_events: 0;
6003             description { state: "default" 0.0; //when only icon or no icon is there
6004                visible: 0;
6005                fixed: 1 0;
6006                min: 0 0;
6007                align: 0.0 0.0;
6008                rel1 {
6009                   relative: 1.0 0.0;
6010                   to: "icon_rect";
6011                }
6012                rel2.to: "icon_rect";
6013             }
6014             description { state: "visible" 0.0;
6015                inherit: "default" 0.0;
6016                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6017             }
6018             description { state: "icononly" 0.0;
6019                inherit: "default" 0.0;
6020             }
6021          }
6022          part { name: "padding_before_text";
6023             type: RECT;
6024             scale: 1;
6025             mouse_events: 0;
6026             description { state: "default" 0.0; //when only icon or no icon is there
6027                visible: 0;
6028                align: 1.0 0.5;
6029                fixed: 1 0;
6030                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6031                rel1 {
6032                   relative: 0.0 1.0;
6033                   to_x: "elm.text";
6034                   to_y: "padding_left_top";
6035                }
6036                rel2 {
6037                   relative: 0.0 0.0;
6038                   to_x: "elm.text";
6039                   to_y: "padding_right_bottom";
6040                }
6041             }
6042          }
6043          part { name: "elm.swallow.content";
6044             type: SWALLOW;
6045             scale: 1;
6046             clip_to: "clipper";
6047             description { state: "default" 0.0;
6048                visible: 0;
6049                fixed: 1 0;
6050                align: 0.0 0.5;
6051                rel1 {
6052                   relative: 1.0 1.0;
6053                   to: "padding_left_top";
6054                }
6055                rel2 {
6056                   relative: 1.0 0.0;
6057                   to_x: "padding_left_top";
6058                   to_y: "padding_right_bottom";
6059                }
6060             }
6061             description { state: "visible" 0.0;
6062                fixed: 1 0;
6063                min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6064                max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6065                align: 1.0 0.5;
6066                rel1 {
6067                   relative: 0.0 1.0;
6068                   to_x: "padding_before_text";
6069                   to_y: "padding_left_top";
6070                }
6071                rel2 {
6072                   relative: 0.0 0.0;
6073                   to_x: "padding_before_text";
6074                   to_y: "padding_right_bottom";
6075                }
6076             }
6077             description { state: "icononly" 0.0;
6078                min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6079                max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6080             }
6081          }
6082          part { name: "elm.text";
6083             type: TEXT;
6084             mouse_events: 0;
6085             effect: FAR_SHADOW BOTTOM;
6086             scale: 1;
6087             clip_to: "clipper";
6088             description { state: "default" 0.0;
6089                visible: 0;
6090                rel1 {
6091                   relative: 1.0 1.0;
6092                   to_x: "padding_after_icon";
6093                   to_y: "padding_left_top";
6094                }
6095                rel2 {
6096                   relative: 0.0 0.0;
6097                   to: "padding_right_bottom";
6098                }
6099                color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6100                color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6101                text {
6102                   font: "Tizen:style=Regular";
6103                   size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6104                   text_class: "tizen";
6105                }
6106             }
6107             description { state: "visible" 0.0;
6108                inherit: "default" 0.0;
6109                visible: 1;
6110             }
6111             description { state: "clicked" 0.0;
6112                inherit: "default" 0.0;
6113                visible: 1;
6114                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6115             }
6116             description { state: "disabled" 0.0;
6117                inherit: "default" 0.0;
6118             }
6119             description { state: "disabled_visible" 0.0;
6120                inherit: "default" 0.0;
6121                color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6122                color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6123                visible: 1;
6124             }
6125             description { state: "focused" 0.0;
6126                inherit: "default" 0.0;
6127                visible: 1;
6128                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6129             }
6130          }
6131          part { name: "over2";
6132             type: RECT;
6133             repeat_events: 1;
6134             ignore_flags: ON_HOLD;
6135             description { state: "default" 0.0;
6136                color: 0 0 0 0;
6137             }
6138          }
6139          part { name: "over3";
6140             type: RECT;
6141             repeat_events: 1;
6142             description { state: "default" 0.0;
6143                color: 0 0 0 0;
6144             }
6145          }
6146          part { name: "clipper";
6147             type: RECT;
6148             description { state: "default" 0.0;
6149                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6150             }
6151             description { state: "disabled" 0.0;
6152                inherit: "default" 0.0;
6153                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6154             }
6155          }
6156          part { name: "disabler";
6157             type: RECT;
6158             description { state: "default" 0.0;
6159                color: 0 0 0 0;
6160                visible: 0;
6161             }
6162             description { state: "disabled" 0.0;
6163                inherit: "default" 0.0;
6164                visible: 1;
6165             }
6166          }
6167       }
6168       programs {
6169          program { name: "button_click";
6170             signal: "mouse,down,1";
6171             source: "over2";
6172             action: SIGNAL_EMIT "elm,action,press" "";
6173             after: "button_click_anim";
6174          }
6175          program { name: "button_click_anim";
6176             action: STATE_SET "clicked" 0.0;
6177             target: "button_image";
6178             after: "text_clicked";
6179          }
6180          program { name: "text_clicked";
6181             script {
6182                new st[31];
6183                new Float:vl;
6184                get_state(PART:"elm.text", st, 30, vl);
6185                if (!strcmp(st, "visible"))
6186                  set_state(PART:"elm.text", "clicked", 0.0);
6187             }
6188          }
6189          program { name: "button_double_click";
6190             signal: "mouse,down,1,double";
6191             source: "over2";
6192             after: "button_click_anim";
6193          }
6194          program { name: "button_unpress";
6195             action: SIGNAL_EMIT "elm,action,unpress" "";
6196          }
6197          program { name: "button_mouseout_clicked";
6198             signal: "mouse,up,1";
6199             source: "over3";
6200             script {
6201                new st[31];
6202                new Float:vl;
6203                get_state(PART:"elm.swallow.content", st, 30, vl);
6204                if (strcmp(st, "icononly"))
6205                  {
6206                     emit("elm,action,default,text,set", "");
6207                     set_state(PART:"elm.text", "visible", 0.0);
6208                  }
6209                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6210                  set_state(PART:"button_image", "default", 0.0);
6211             }
6212             after: button_unpress;
6213          }
6214          program { name: "touch_snd";
6215             signal: "mouse,clicked,1";
6216             source: "over2";
6217             action: PLAY_SAMPLE "touch_sound" 1.0;
6218             after: button_unclick3;
6219          }
6220          program { name: "button_unclick3";
6221             action: SIGNAL_EMIT "elm,action,click" "";
6222          }
6223          program { name: "text_show";
6224             signal: "elm,state,text,visible";
6225             source: "elm";
6226             script {
6227                new st[31];
6228                new Float:vl;
6229                get_state(PART:"elm.swallow.content", st, 30, vl);
6230                if (!strcmp(st, "icononly"))
6231                  {
6232                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6233                     set_state(PART:"icon_rect", "visible", 0.0);
6234                     set_state(PART:"padding_after_icon", "visible", 0.0);
6235                     set_state(PART:"bg", "visible", 0.0);
6236                  }
6237                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6238                  set_state(PART:"elm.text", "visible", 0.0);
6239                else
6240                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6241             }
6242          }
6243          program { name: "text_hide";
6244             signal: "elm,state,text,hidden";
6245             source: "elm";
6246             script {
6247                new st[31];
6248                new Float:vl;
6249                get_state(PART:"elm.swallow.content", st, 30, vl);
6250                if (!strcmp(st, "visible"))
6251                  {
6252                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6253                     set_state(PART:"icon_rect", "icononly", 0.0);
6254                     set_state(PART:"padding_after_icon", "icononly", 0.0);
6255                     set_state(PART:"bg", "icononly", 0.0);
6256                  }
6257                set_state(PART:"elm.text", "default", 0.0);
6258             }
6259          }
6260          program { name: "icon_show";
6261             signal: "elm,state,icon,visible";
6262             source: "elm";
6263             script {
6264                new st[31];
6265                new Float:vl;
6266                get_state(PART:"elm.text", st, 30, vl);
6267                if (!strcmp(st, "visible"))
6268                  {
6269                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6270                     set_state(PART:"icon_rect", "visible", 0.0);
6271                     set_state(PART:"padding_after_icon", "visible", 0.0);
6272                     set_state(PART:"bg", "visible", 0.0);
6273                  }
6274                else
6275                  {
6276                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6277                     set_state(PART:"icon_rect", "icononly", 0.0);
6278                     set_state(PART:"padding_after_icon", "icononly", 0.0);
6279                     set_state(PART:"bg", "icononly", 0.0);
6280                  }
6281             }
6282          }
6283          program { name: "icon_hide";
6284             signal: "elm,state,icon,hidden";
6285             source: "elm";
6286             action: STATE_SET "default" 0.0;
6287             target: "elm.swallow.content";
6288             target: "padding_after_icon";
6289             target: "icon_rect";
6290             target: "bg";
6291          }
6292          program { name: "disable";
6293             signal: "elm,state,disabled";
6294             source: "elm";
6295             action: STATE_SET "disabled" 0.0;
6296             target: "button_image";
6297             target: "disabler";
6298             target: "clipper";
6299             after: "disable_text";
6300          }
6301          program { name: "disable_text";
6302             script {
6303                new st[31];
6304                new Float:vl;
6305                get_state(PART:"elm.text", st, 30, vl);
6306                if (!strcmp(st, "visible"))
6307                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6308                else
6309                  set_state(PART:"elm.text", "disabled", 0.0);
6310                set_int(button_state, BUTTON_STATE_DISABLED);
6311             }
6312          }
6313          program { name: "enable";
6314             signal: "elm,state,enabled";
6315             source: "elm";
6316             action: STATE_SET "default" 0.0;
6317             target: "button_image";
6318             target: "disabler";
6319             target: "clipper";
6320             after: "enable_text";
6321          }
6322          program { name: "enable_text";
6323             script {
6324                new st[31];
6325                new Float:vl;
6326                get_state(PART:"elm.text", st, 30, vl);
6327                if (!strcmp(st, "disabled_visible"))
6328                  set_state(PART:"elm.text", "visible", 0.0);
6329                else
6330                  set_state(PART:"elm.text", "default", 0.0);
6331                set_int(button_state, BUTTON_STATE_ENABLED);
6332             }
6333          }
6334          program { name: "focused";
6335             //signal: "elm,action,focus";
6336             //source: "elm";
6337             action: STATE_SET "focused" 0.0;
6338             target: "button_image";
6339             target: "elm.text";
6340          }
6341          program { name: "unfocused";
6342             //signal: "elm,action,unfocus";
6343             //source: "elm";
6344             action: STATE_SET "default" 0.0;
6345             target: "button_image";
6346             after: "unfocus_text";
6347          }
6348          program { name: "unfocus_text";
6349             action: STATE_SET "visible" 0.0;
6350             target: "elm.text";
6351          }
6352       }
6353    }
6354
6355 ///////////////////////////////////////////////////////////////////////////////////////
6356    group { name: "elm/button/base/expandable_number";
6357       alias: "elm/button/base/text_only/expandable_number";
6358       images {
6359          image: "00_button_01.png" COMP;
6360          image: "00_button_01_press.png" COMP;
6361          image: "00_button_01_dim.png" COMP;
6362          image: "00_arrow_expand.png" COMP;
6363       }
6364       script {
6365          public button_state = BUTTON_STATE_ENABLED;
6366       }
6367       parts {
6368          part { name: "button_image";
6369             scale: 1;
6370             description { state: "default" 0.0;
6371                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6372                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6373                image {
6374                   normal: "00_button_01.png";
6375                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6376                   border_scale: 1;
6377                }
6378             }
6379             description { state: "clicked" 0.0;
6380                inherit: "default" 0.0;
6381                image.normal: "00_button_01_press.png";
6382             }
6383             description { state: "disabled" 0.0;
6384                inherit: "default" 0.0;
6385                image.normal: "00_button_01_dim.png";
6386             }
6387             description { state: "focused" 0.0;
6388                inherit: "default" 0.0;
6389                image.normal: "00_button_01_press.png";
6390             }
6391          }
6392          part { name: "padding_left_top";
6393             type: RECT;
6394             scale: 1;
6395             mouse_events: 0;
6396             description { state: "default" 0.0;
6397                visible: 0;
6398                align: 0.0 0.0;
6399                rel2.relative: 0.0 0.0;
6400                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6401                fixed: 1 1;
6402             }
6403          }
6404          part { name: "padding_right_bottom";
6405             type: RECT;
6406             scale: 1;
6407             mouse_events: 0;
6408             description { state: "default" 0.0;
6409                visible: 0;
6410                align: 1.0 1.0;
6411                rel1.relative: 1.0 1.0;
6412                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6413                fixed: 1 1;
6414             }
6415          }
6416          part { name: "icon_rect";
6417             type: RECT;
6418             scale: 1;
6419             mouse_events: 0;
6420             description { state: "default" 0.0;
6421                visible: 0;
6422                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6423                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6424                fixed: 1 0;
6425                rel1 {
6426                   relative: 0.0 1.0;
6427                   to_x: "padding_right_bottom";
6428                   to_y: "padding_left_top";
6429                }
6430                rel2 {
6431                   relative: 0.0 0.0;
6432                   to: "padding_right_bottom";
6433                }
6434                align: 1.0 0.5;
6435             }
6436          }
6437          part { name: "arrow_expand";
6438             scale: 1;
6439             clip_to: "icon_clipper";
6440             mouse_events: 0;
6441             description { state: "default" 0.0;
6442                align: 0.0 0.5;
6443                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6444                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6445                fixed: 0 0;
6446                rel1.to: "icon_rect";
6447                rel2.to: "icon_rect";
6448                image.normal:"00_arrow_expand.png";
6449             }
6450          }
6451          part { name: "elm.text";
6452             type: TEXT;
6453             mouse_events: 0;
6454             effect: SHADOW BOTTOM;
6455             scale: 1;
6456             description { state: "default" 0.0;
6457                min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6458                max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6459                fixed:1 0;
6460                rel1 {
6461                   relative: 1.0 1.0;
6462                   to: "padding_left_top";
6463                }
6464                rel2 {
6465                   relative: 1.0 1.0;
6466                   to_x:"padding_left_top";
6467                   to_y:"padding_right_bottom";
6468                }
6469                align: 0.0 0.5;
6470                color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6471                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6472                text {
6473                   font: "Tizen:style=Regular";
6474                   size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6475                   min: 0 0;
6476                   fit: 1 1;
6477                   size_range: 28 32;
6478                   text_class: "tizen";
6479                }
6480             }
6481             description { state: "visible" 0.0;
6482                inherit: "default" 0.0;
6483             }
6484             description { state: "clicked" 0.0;
6485                inherit: "default" 0.0;
6486                color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6487             }
6488             description { state: "disabled" 0.0;
6489                inherit: "default" 0.0;
6490             }
6491             description { state: "disabled_visible" 0.0;
6492                inherit: "default" 0.0;
6493                color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6494                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6495             }
6496             description { state: "focused" 0.0;
6497                inherit: "default" 0.0;
6498                color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6499             }
6500          }
6501          part { name: "icon_clipper";
6502             scale: 1;
6503             type: RECT;
6504             description { state: "default" 0.0;
6505                color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6506             }
6507             description { state: "clicked" 0.0;
6508                color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6509             }
6510             description { state: "disabled" 0.0;
6511                color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6512             }
6513          }
6514          part { name: "over2";
6515             type: RECT;
6516             repeat_events: 1;
6517             ignore_flags: ON_HOLD;
6518             description { state: "default" 0.0;
6519                color: 0 0 0 0;
6520             }
6521          }
6522          part { name: "over3";
6523             type: RECT;
6524             repeat_events: 1;
6525             description { state: "default" 0.0;
6526                color: 0 0 0 0;
6527             }
6528          }
6529          part { name: "disabler";
6530             type: RECT;
6531             description { state: "default" 0.0;
6532                color: 0 0 0 0;
6533                visible: 0;
6534             }
6535             description { state: "disabled" 0.0;
6536                inherit: "default" 0.0;
6537                visible: 1;
6538             }
6539          }
6540       }
6541       programs {
6542          program { name: "button_click";
6543             signal: "mouse,down,1";
6544             source: "over2";
6545             action: SIGNAL_EMIT "elm,action,press" "";
6546             after: "button_click_anim";
6547          }
6548          program { name: "button_click_anim";
6549             action: STATE_SET "clicked" 0.0;
6550             target: "button_image";
6551             target: "icon_clipper";
6552             after: "text_clicked";
6553          }
6554          program { name: "text_clicked";
6555             script {
6556                new st[31];
6557                new Float:vl;
6558                get_state(PART:"elm.text", st, 30, vl);
6559                if (!strcmp(st, "visible"))
6560                  set_state(PART:"elm.text", "clicked", 0.0);
6561             }
6562          }
6563          program { name: "button_double_click";
6564             signal: "mouse,down,1,double";
6565             source: "over2";
6566             after: "button_click_anim";
6567          }
6568          program { name: "button_unpress";
6569             action: SIGNAL_EMIT "elm,action,unpress" "";
6570          }
6571          program { name: "button_mouseout_clicked";
6572             signal: "mouse,up,1";
6573             source: "over3";
6574             script {
6575                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6576                  {
6577                     set_state(PART:"button_image", "default", 0.0);
6578                     set_state(PART:"elm.text", "visible", 0.0);
6579                     set_state(PART:"icon_clipper", "default", 0.0);
6580                  }
6581             }
6582             after: button_unpress;
6583          }
6584          program { name: "touch_snd";
6585             signal: "mouse,clicked,1";
6586             source: "over2";
6587             action: PLAY_SAMPLE "touch_sound" 1.0;
6588             after: button_unclick3;
6589          }
6590          program { name: "button_unclick3";
6591             action: SIGNAL_EMIT "elm,action,click" "";
6592          }
6593          program { name: "text_show";
6594             signal: "elm,state,text,visible";
6595             source: "elm";
6596             script {
6597                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6598                  set_state(PART:"elm.text", "visible", 0.0);
6599                else
6600                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6601             }
6602          }
6603          program { name: "text_hide";
6604             signal: "elm,state,text,hidden";
6605             source: "elm";
6606             script {
6607                set_state(PART:"elm.text", "default", 0.0);
6608             }
6609          }
6610          program { name: "disable";
6611             signal: "elm,state,disabled";
6612             source: "elm";
6613             action: STATE_SET "disabled" 0.0;
6614             target: "button_image";
6615             target: "disabler";
6616             target: "icon_clipper";
6617             after: "disable_text";
6618          }
6619          program { name: "disable_text";
6620             script {
6621                new st[31];
6622                new Float:vl;
6623                get_state(PART:"elm.text", st, 30, vl);
6624                if (!strcmp(st, "visible"))
6625                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6626                else
6627                  set_state(PART:"elm.text", "disabled", 0.0);
6628                set_int(button_state, BUTTON_STATE_DISABLED);
6629             }
6630          }
6631          program { name: "enable";
6632             signal: "elm,state,enabled";
6633             source: "elm";
6634             action: STATE_SET "default" 0.0;
6635             target: "button_image";
6636             target: "disabler";
6637             target: "icon_clipper";
6638             after: "enable_text";
6639          }
6640          program { name: "enable_text";
6641             script {
6642                new st[31];
6643                new Float:vl;
6644                get_state(PART:"elm.text", st, 30, vl);
6645                if (!strcmp(st, "disabled_visible"))
6646                  set_state(PART:"elm.text", "visible", 0.0);
6647                else
6648                  set_state(PART:"elm.text", "default", 0.0);
6649                set_int(button_state, BUTTON_STATE_ENABLED);
6650             }
6651          }
6652          program { name: "focused";
6653             //signal: "elm,action,focus";
6654             //source: "elm";
6655             action: STATE_SET "focused" 0.0;
6656             target: "button_image";
6657             target: "elm.text";
6658          }
6659          program { name: "unfocused";
6660             //signal: "elm,action,unfocus";
6661             //source: "elm";
6662             action: STATE_SET "default" 0.0;
6663             target: "button_image";
6664             after: "unfocus_text";
6665          }
6666          program { name: "unfocus_text";
6667             action: STATE_SET "visible" 0.0;
6668             target: "elm.text";
6669          }
6670       }
6671    }
6672
6673 ////////////////////////////////////////////////////////////////////////
6674    group { name: "elm/button/base/bubble_sent";
6675       inherit: "elm/button/base/style1";
6676       images {
6677          image: "00_messagebubble_button_sent.png" COMP;
6678          image: "00_messagebubble_button_sent_press.png" COMP;
6679          image: "00_messagebubble_button_sent_dim.png" COMP;
6680       }
6681       parts {
6682          part { name: "button_image";
6683             scale: 1;
6684             description { state: "default" 0.0;
6685                image {
6686                   normal: "00_messagebubble_button_sent.png";
6687                   border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6688                   border_scale: 1;
6689                }
6690             }
6691             description { state: "clicked" 0.0;
6692                inherit: "default" 0.0;
6693                image.normal: "00_messagebubble_button_sent_press.png";
6694             }
6695             description { state: "disabled" 0.0;
6696                inherit: "default" 0.0;
6697                image.normal: "00_messagebubble_button_sent_dim.png";
6698             }
6699             description { state: "focused" 0.0;
6700                inherit: "default" 0.0;
6701                image.normal: "00_messagebubble_button_sent_press.png";
6702             }
6703          }
6704          part { name: "elm.text";
6705             type: TEXT;
6706             mouse_events: 0;
6707             effect: FAR_SHADOW BOTTOM;
6708             scale: 1;
6709             clip_to: "clipper";
6710             description { state: "default" 0.0;
6711                visible: 0;
6712                rel1 {
6713                   relative: 1.0 1.0;
6714                   to_x: "padding_after_icon";
6715                   to_y: "padding_left_top";
6716                }
6717                rel2 {
6718                   relative: 0.0 0.0;
6719                   to: "padding_right_bottom";
6720                }
6721                color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6722                color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6723                text {
6724                   font: "Tizen:style=Regular";
6725                   size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6726                   min: 0 0;
6727                   max: 1 0;
6728                   text_class: "tizen";
6729                }
6730             }
6731             description { state: "visible" 0.0;
6732                inherit: "default" 0.0;
6733                visible: 1;
6734             }
6735             description { state: "clicked" 0.0;
6736                inherit: "default" 0.0;
6737                visible: 1;
6738                color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6739             }
6740             description { state: "disabled" 0.0;
6741                inherit: "default" 0.0;
6742             }
6743             description { state: "disabled_visible" 0.0;
6744                inherit: "default" 0.0;
6745                color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6746                visible: 1;
6747             }
6748             description { state: "focused" 0.0;
6749                inherit: "default" 0.0;
6750                visible: 1;
6751                color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6752             }
6753          }
6754       }
6755    }
6756
6757 ////////////////////////////////////////////////////////////////////////
6758    group { name: "elm/button/base/bubble_sent/multiline";
6759       inherit: "elm/button/base/bubble_sent";
6760       styles{
6761          style { name: "bubble_sent_multiline";
6762             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";
6763             tag: "br" "\n";
6764             tag: "ps" "ps";
6765             tag: "tab" "\t";
6766          }
6767       }
6768       parts {
6769          part { name: "elm.text";
6770             type: TEXTBLOCK;
6771             mouse_events: 0;
6772             effect: FAR_SHADOW BOTTOM;
6773             scale: 1;
6774             clip_to: "clipper";
6775             description { state: "default" 0.0;
6776                visible: 0;
6777                fixed: 1 1;
6778                rel1 {
6779                   relative: 1.0 1.0;
6780                   to_x: "padding_after_icon";
6781                   to_y: "padding_left_top";
6782                }
6783                rel2 {
6784                   relative: 0.0 0.0;
6785                   to: "padding_right_bottom";
6786                }
6787                color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6788                color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6789                text {
6790                    style: "bubble_sent_multiline";
6791                }
6792             }
6793             description { state: "visible" 0.0;
6794                inherit: "default" 0.0;
6795                visible: 1;
6796             }
6797             description { state: "clicked" 0.0;
6798                inherit: "default" 0.0;
6799                visible: 1;
6800                color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6801             }
6802             description { state: "disabled" 0.0;
6803                inherit: "default" 0.0;
6804             }
6805             description { state: "disabled_visible" 0.0;
6806                inherit: "default" 0.0;
6807                color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6808                visible: 1;
6809             }
6810             description { state: "focused" 0.0;
6811                inherit: "default" 0.0;
6812                visible: 1;
6813                color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6814             }
6815          }
6816       }
6817    }
6818
6819 ///////////////////////////////////////////////////////////////////////
6820    group { name: "elm/button/base/bubble_receive";
6821       inherit: "elm/button/base/style1";
6822       images {
6823          image: "00_messagebubble_button_receive.png" COMP;
6824          image: "00_messagebubble_button_receive_press.png" COMP;
6825          image: "00_messagebubble_button_receive_dim.png" COMP;
6826       }
6827       parts {
6828          part { name: "button_image";
6829             scale: 1;
6830             description { state: "default" 0.0;
6831                image {
6832                   normal: "00_messagebubble_button_receive.png";
6833                   border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6834                   border_scale: 1;
6835                }
6836             }
6837             description { state: "clicked" 0.0;
6838                inherit: "default" 0.0;
6839                image.normal: "00_messagebubble_button_receive_press.png";
6840             }
6841             description { state: "disabled" 0.0;
6842                inherit: "default" 0.0;
6843                image.normal: "00_messagebubble_button_receive_dim.png";
6844             }
6845             description { state: "focused" 0.0;
6846                inherit: "default" 0.0;
6847                image.normal: "00_messagebubble_button_receive_press.png";
6848             }
6849          }
6850          part { name: "elm.text";
6851             type: TEXT;
6852             mouse_events: 0;
6853             effect: SHADOW BOTTOM;
6854             scale: 1;
6855             clip_to: "clipper";
6856             description { state: "default" 0.0;
6857                visible: 0;
6858                rel1 {
6859                   relative: 1.0 1.0;
6860                   to_x: "padding_after_icon";
6861                   to_y: "padding_left_top";
6862                }
6863                rel2 {
6864                   relative: 0.0 0.0;
6865                   to: "padding_right_bottom";
6866                }
6867                color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6868                color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6869                text {
6870                   font: "Tizen:style=Regular";
6871                   size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6872                   min: 0 0;
6873                   max: 1 0;
6874                   text_class: "tizen";
6875                }
6876             }
6877             description { state: "visible" 0.0;
6878                inherit: "default" 0.0;
6879                visible: 1;
6880             }
6881             description { state: "clicked" 0.0;
6882                inherit: "default" 0.0;
6883                visible: 1;
6884                color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6885             }
6886             description { state: "disabled" 0.0;
6887                inherit: "default" 0.0;
6888             }
6889             description { state: "disabled_visible" 0.0;
6890                inherit: "default" 0.0;
6891                color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6892                visible: 1;
6893             }
6894             description { state: "focused" 0.0;
6895                inherit: "default" 0.0;
6896                visible: 1;
6897                color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6898             }
6899          }
6900       }
6901    }
6902
6903 ///////////////////////////////////////////////////////////////////////
6904    group { name: "elm/button/base/bubble_receive/multiline";
6905       inherit: "elm/button/base/bubble_receive";
6906       styles{
6907          style { name: "bubble_receive_multiline";
6908             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";
6909             tag: "br" "\n";
6910             tag: "ps" "ps";
6911             tag: "tab" "\t";
6912          }
6913       }
6914       parts {
6915          part { name: "elm.text";
6916             type: TEXTBLOCK;
6917             mouse_events: 0;
6918             effect: SHADOW BOTTOM;
6919             scale: 1;
6920             clip_to: "clipper";
6921             description { state: "default" 0.0;
6922                visible: 0;
6923                fixed: 1 1;
6924                rel1 {
6925                   relative: 1.0 1.0;
6926                   to_x: "padding_after_icon";
6927                   to_y: "padding_left_top";
6928                }
6929                rel2 {
6930                   relative: 0.0 0.0;
6931                   to: "padding_right_bottom";
6932                }
6933                color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6934                color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6935                text {
6936                    style: "btn_style1_multiline";
6937                }
6938             }
6939             description { state: "visible" 0.0;
6940                inherit: "default" 0.0;
6941                visible: 1;
6942             }
6943             description { state: "clicked" 0.0;
6944                inherit: "default" 0.0;
6945                visible: 1;
6946                color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6947             }
6948             description { state: "disabled" 0.0;
6949                inherit: "default" 0.0;
6950             }
6951             description { state: "disabled_visible" 0.0;
6952                inherit: "default" 0.0;
6953                color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6954                visible: 1;
6955             }
6956             description { state: "focused" 0.0;
6957                inherit: "default" 0.0;
6958                visible: 1;
6959                color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6960             }
6961          }
6962       }
6963    }
6964
6965 ///////////////////////////////////////////////////////////////////////
6966 group { name: "elm/button/base/bubble_circle/receive";
6967       images {
6968          image: "00_messagebubble_circle_receive.png" COMP;
6969          image: "00_messagebubble_circle_receive_press.png" COMP;
6970          image: "00_messagebubble_circle_receive_dim.png" COMP;
6971          image: "00_button_right.png" COMP;
6972          image: "00_button_right_press.png" COMP;
6973       }
6974       parts {
6975          part { name: "button_image";
6976             scale: 1;
6977             description { state: "default" 0.0;
6978                min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6979                max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6980                image.normal: "00_messagebubble_circle_receive.png";
6981             }
6982             description {
6983                state: "clicked" 0.0;
6984                inherit: "default" 0.0;
6985                image.normal: "00_messagebubble_circle_receive_press.png";
6986             }
6987             description {
6988                state: "disabled" 0.0;
6989                inherit: "default" 0.0;
6990                image.normal: "00_messagebubble_circle_receive_dim.png";
6991             }
6992          }
6993          part { name: "image";
6994             scale: 1;
6995             clip_to: "icon_clipper";
6996             description { state: "default" 0.0;
6997                min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6998                max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6999                image.normal: "00_button_right.png";
7000             }
7001             description {
7002                state: "clicked" 0.0;
7003                inherit: "default" 0.0;
7004                image.normal: "00_button_right_press.png";
7005             }
7006             description {
7007                state: "disabled" 0.0;
7008                inherit: "default" 0.0;
7009             }
7010          }
7011          part { name: "icon_clipper";
7012             type: RECT;
7013             scale: 1;
7014             description { state: "default" 0.0;
7015                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
7016             }
7017             description { state: "clicked" 0.0;
7018                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
7019             }
7020             description { state: "disabled" 0.0;
7021                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
7022             }
7023          }
7024          part { name: "over1";
7025             type: RECT;
7026             ignore_flags: ON_HOLD;
7027             description { state: "default" 0.0;
7028                color: 0 0 0 0;
7029             }
7030          }
7031          part { name: "over2";
7032             type: RECT;
7033             repeat_events: 1;
7034             description { state: "default" 0.0;
7035                color: 0 0 0 0;
7036             }
7037          }
7038          part { name: "disabler";
7039             type: RECT;
7040             description { state: "default" 0.0;
7041                color: 0 0 0 0;
7042                visible: 0;
7043             }
7044             description { state: "disabled" 0.0;
7045                inherit: "default" 0.0;
7046                visible: 1;
7047             }
7048          }
7049       }
7050       programs {
7051          program { name: "button_click";
7052             signal: "mouse,down,1";
7053             source: "over1";
7054             action: SIGNAL_EMIT "elm,action,press" "";
7055             after: "button_click_anim";
7056          }
7057          program { name: "button_click_anim";
7058             action: STATE_SET "clicked" 0.0;
7059             target: "button_image";
7060             target: "image";
7061             target: "icon_clipper";
7062          }
7063          program { name: "button_double_click";
7064             signal: "mouse,down,1,double";
7065             source: "over1";
7066             after: "button_click_anim";
7067          }
7068          program { name: "button_unclick";
7069             signal: "mouse,up,1";
7070             source: "over2";
7071             action: SIGNAL_EMIT "elm,action,unpress" "";
7072             after: "button_unclick_anim";
7073          }
7074          program { name: "button_unclick_anim";
7075             action: STATE_SET "default" 0.0;
7076             target: "button_image";
7077             target: "image";
7078             target: "icon_clipper";
7079          }
7080          program { name: "touch_snd";
7081             signal: "mouse,clicked,1";
7082             source: "over1";
7083             action: PLAY_SAMPLE "touch_sound" 1.0;
7084             after: button_unclick3;
7085          }
7086          program { name: "button_unclick3";
7087             action: SIGNAL_EMIT "elm,action,click" "";
7088          }
7089          program { name: "disable";
7090             signal: "elm,state,disabled";
7091             source: "elm";
7092             action: STATE_SET "disabled" 0.0;
7093             target: "disabler";
7094             target: "button_image";
7095             target: "icon_clipper";
7096             
7097          }
7098          program { name: "enable";
7099             signal: "elm,state,enabled";
7100             source: "elm";
7101             action: STATE_SET "default" 0.0;
7102             target: "disabler";
7103             target: "button_image";
7104             target: "icon_clipper";
7105          }
7106       }
7107    }
7108
7109 ///////////////////////////////////////////////////////////////////////
7110 group { name: "elm/button/base/bubble_circle/sent";
7111       images {
7112          image: "00_messagebubble_circle_sent.png" COMP;
7113          image: "00_messagebubble_circle_sent_press.png" COMP;
7114          image: "00_messagebubble_circle_sent_dim.png" COMP;
7115          image: "00_button_right.png" COMP;
7116          image: "00_button_right_press.png" COMP;
7117       }
7118       parts {
7119          part { name: "button_image";
7120             scale: 1;
7121             description { state: "default" 0.0;
7122                min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7123                max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7124                image.normal: "00_messagebubble_circle_sent.png";
7125             }
7126             description {
7127                state: "clicked" 0.0;
7128                inherit: "default" 0.0;
7129                image.normal: "00_messagebubble_circle_sent_press.png";
7130             }
7131             description {
7132                state: "disabled" 0.0;
7133                inherit: "default" 0.0;
7134                image.normal: "00_messagebubble_circle_sent_dim.png";
7135             }
7136          }
7137          part { name: "image";
7138             scale: 1;
7139             clip_to: "icon_clipper";
7140             description { state: "default" 0.0;
7141                min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7142                max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7143                image.normal: "00_button_right.png";
7144             }
7145             description {
7146                state: "clicked" 0.0;
7147                inherit: "default" 0.0;
7148                image.normal: "00_button_right_press.png";
7149             }
7150             description {
7151                state: "disabled" 0.0;
7152                inherit: "default" 0.0;
7153             }
7154          }
7155          part { name: "icon_clipper";
7156             type: RECT;
7157             scale: 1;
7158             description { state: "default" 0.0;
7159                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7160             }
7161             description { state: "clicked" 0.0;
7162                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7163             }
7164             description { state: "disabled" 0.0;
7165                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7166             }
7167          }
7168          part { name: "over1";
7169             type: RECT;
7170             ignore_flags: ON_HOLD;
7171             description { state: "default" 0.0;
7172                color: 0 0 0 0;
7173             }
7174          }
7175          part { name: "over2";
7176             type: RECT;
7177             repeat_events: 1;
7178             description { state: "default" 0.0;
7179                color: 0 0 0 0;
7180             }
7181          }
7182          part { name: "disabler";
7183             type: RECT;
7184             description { state: "default" 0.0;
7185                color: 0 0 0 0;
7186                visible: 0;
7187             }
7188             description { state: "disabled" 0.0;
7189                inherit: "default" 0.0;
7190                visible: 1;
7191             }
7192          }
7193       }
7194       programs {
7195          program { name: "button_click";
7196             signal: "mouse,down,1";
7197             source: "over1";
7198             action: SIGNAL_EMIT "elm,action,press" "";
7199             after: "button_click_anim";
7200          }
7201          program { name: "button_click_anim";
7202             action: STATE_SET "clicked" 0.0;
7203             target: "button_image";
7204             target: "image";
7205             target: "icon_clipper";
7206          }
7207          program { name: "button_double_click";
7208             signal: "mouse,down,1,double";
7209             source: "over1";
7210             after: "button_click_anim";
7211          }
7212          program { name: "button_unclick";
7213             signal: "mouse,up,1";
7214             source: "over2";
7215             action: SIGNAL_EMIT "elm,action,unpress" "";
7216             after: "button_unclick_anim";
7217          }
7218          program { name: "button_unclick_anim";
7219             action: STATE_SET "default" 0.0;
7220             target: "button_image";
7221             target: "image";
7222             target: "icon_clipper";
7223          }
7224          program { name: "touch_snd";
7225             signal: "mouse,clicked,1";
7226             source: "over1";
7227             action: PLAY_SAMPLE "touch_sound" 1.0;
7228             after: button_unclick3;
7229          }
7230          program { name: "button_unclick3";
7231             action: SIGNAL_EMIT "elm,action,click" "";
7232          }
7233          program { name: "disable";
7234             signal: "elm,state,disabled";
7235             source: "elm";
7236             action: STATE_SET "disabled" 0.0;
7237             target: "disabler";
7238             target: "button_image";
7239             target: "icon_clipper";
7240          }
7241          program { name: "enable";
7242             signal: "elm,state,enabled";
7243             source: "elm";
7244             action: STATE_SET "default" 0.0;
7245             target: "disabler";
7246             target: "button_image";
7247             target: "icon_clipper";
7248          }
7249       }
7250    }
7251
7252 //////////////////////////////////////////////////////////////////////////////////////
7253    group { name: "elm/button/base/editfield_rename";
7254       images {
7255          image: "00_edit_field_rename.png" COMP;
7256       }
7257       parts {
7258          part { name: "button_image";
7259             type: RECT;
7260             scale: 1;
7261             description { state: "default" 0.0;
7262                visible: 0;
7263             }
7264             description { state: "clicked" 0.0;
7265                inherit: "default" 0.0;
7266             }
7267             description { state: "disabled" 0.0;
7268                inherit: "default" 0.0;
7269             }
7270             description { state: "focused" 0.0;
7271                inherit: "default" 0.0;
7272             }
7273          }
7274          part { name: "rename_button";
7275             scale: 1;
7276             mouse_events: 0;
7277             clip_to: "rename_button.clipper";
7278             description { state: "default" 0.0;
7279                min: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7280                max: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7281                fixed: 1 1;
7282                align: 0.0 0.5;
7283                image.normal: "00_edit_field_rename.png";
7284             }
7285          }
7286          part { name: "rename_button.clipper";
7287             type: RECT;
7288             description { state: "default" 0.0;
7289                color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7290             }
7291             description { state: "clicked" 0.0;
7292                color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7293             }
7294             description { state: "disabled" 0.0;
7295                color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7296             }
7297          }
7298          part { name: "over2";
7299             type: RECT;
7300             ignore_flags: ON_HOLD;
7301             description { state: "default" 0.0;
7302                color: 0 0 0 0;
7303             }
7304          }
7305          part { name: "over3";
7306             type: RECT;
7307             repeat_events: 1;
7308             description { state: "default" 0.0;
7309                color: 0 0 0 0;
7310             }
7311          }
7312          part { name: "disabler";
7313             type: RECT;
7314             description { state: "default" 0.0;
7315                color: 0 0 0 0;
7316                visible: 0;
7317             }
7318             description { state: "disabled" 0.0;
7319                inherit: "default" 0.0;
7320                visible: 1;
7321             }
7322          }
7323       }
7324       programs {
7325          program { name: "button_click";
7326             signal: "mouse,down,1";
7327             source: "over2";
7328             action: SIGNAL_EMIT "elm,action,press" "";
7329             after: "button_click_anim";
7330          }
7331          program { name: "button_click_anim";
7332             action: STATE_SET "clicked" 0.0;
7333             target: "button_image";
7334             target: "rename_button.clipper";
7335          }
7336          program { name: "button_double_click";
7337             signal: "mouse,down,1,double";
7338             source: "over1";
7339             after: "button_click_anim";
7340          }
7341          program { name: "button_unclick";
7342             signal: "mouse,up,1";
7343             source: "over3";
7344             action: SIGNAL_EMIT "elm,action,unpress" "";
7345             after: "button_unclick_anim";
7346          }
7347          program { name: "button_unclick_anim";
7348             action: STATE_SET "default" 0.0;
7349             target: "button_image";
7350             target: "rename_button.clipper";
7351          }
7352          program { name: "touch_snd";
7353             signal: "mouse,clicked,1";
7354             source: "over2";
7355             action: PLAY_SAMPLE "touch_sound" 1.0;
7356             after: "button_unclick3";
7357          }
7358          program { name: "button_unclick3";
7359             action: SIGNAL_EMIT "elm,action,click" "";
7360          }
7361          program { name: "disable";
7362             signal: "elm,state,disabled";
7363             source: "elm";
7364             action: STATE_SET "disabled" 0.0;
7365             target: "button_image";
7366             target: "disabler";
7367             target: "rename_button.clipper";
7368          }
7369          program { name: "enable";
7370             signal: "elm,state,enabled";
7371             source: "elm";
7372             action: STATE_SET "default" 0.0;
7373             target: "button_image";
7374             target: "disabler";
7375             target: "rename_button.clipper";
7376          }
7377       }
7378    }
7379    group { name: "elm/button/base/editfield_clear";
7380       images {
7381          image: "00_edit_field_clear.png" COMP;
7382       }
7383       parts {
7384          part { name: "button_image";
7385             type: RECT;
7386             scale: 1;
7387             description { state: "default" 0.0;
7388                visible: 0;
7389             }
7390             description { state: "clicked" 0.0;
7391                inherit: "default" 0.0;
7392             }
7393             description { state: "disabled" 0.0;
7394                inherit: "default" 0.0;
7395             }
7396             description { state: "focused" 0.0;
7397                inherit: "default" 0.0;
7398             }
7399          }
7400          part { name: "clear_button";
7401             scale: 1;
7402             mouse_events: 0;
7403             clip_to: "clear_button.clipper";
7404             description { state: "default" 0.0;
7405                min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7406                max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7407                fixed: 1 1;
7408                align: 0.0 0.5;
7409                image.normal: "00_edit_field_clear.png";
7410             }
7411          }
7412          part { name: "clear_button.clipper";
7413             type: RECT;
7414             description { state: "default" 0.0;
7415                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7416             }
7417             description { state: "clicked" 0.0;
7418                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7419             }
7420             description { state: "disabled" 0.0;
7421                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7422             }
7423          }
7424          part { name: "over2";
7425             type: RECT;
7426             ignore_flags: ON_HOLD;
7427             description { state: "default" 0.0;
7428                color: 0 0 0 0;
7429             }
7430          }
7431          part { name: "over3";
7432             type: RECT;
7433             repeat_events: 1;
7434             description { state: "default" 0.0;
7435                color: 0 0 0 0;
7436             }
7437          }
7438          part { name: "disabler";
7439             type: RECT;
7440             description { state: "default" 0.0;
7441                color: 0 0 0 0;
7442                visible: 0;
7443             }
7444             description { state: "disabled" 0.0;
7445                inherit: "default" 0.0;
7446                visible: 1;
7447             }
7448          }
7449       }
7450       programs {
7451          program { name: "button_click";
7452             signal: "mouse,down,1";
7453             source: "over2";
7454             action: SIGNAL_EMIT "elm,action,press" "";
7455             after: "button_click_anim";
7456          }
7457          program { name: "button_click_anim";
7458             action: STATE_SET "clicked" 0.0;
7459             target: "button_image";
7460             target: "clear_button.clipper";
7461          }
7462          program { name: "button_double_click";
7463             signal: "mouse,down,1,double";
7464             source: "over1";
7465             after: "button_click_anim";
7466          }
7467          program { name: "button_unclick";
7468             signal: "mouse,up,1";
7469             source: "over3";
7470             action: SIGNAL_EMIT "elm,action,unpress" "";
7471             after: "button_unclick_anim";
7472          }
7473          program { name: "button_unclick_anim";
7474             action: STATE_SET "default" 0.0;
7475             target: "button_image";
7476             target: "clear_button.clipper";
7477          }
7478          program { name: "touch_snd";
7479             signal: "mouse,clicked,1";
7480             source: "over2";
7481             action: PLAY_SAMPLE "touch_sound" 1.0;
7482             after: button_unclick3;
7483          }
7484          program { name: "button_unclick3";
7485             action: SIGNAL_EMIT "elm,action,click" "";
7486          }
7487          program { name: "disable";
7488             signal: "elm,state,disabled";
7489             source: "elm";
7490             action: STATE_SET "disabled" 0.0;
7491             target: "button_image";
7492             target: "disabler";
7493             target: "clear_button.clipper";
7494          }
7495          program { name: "enable";
7496             signal: "elm,state,enabled";
7497             source: "elm";
7498             action: STATE_SET "default" 0.0;
7499             target: "button_image";
7500             target: "disabler";
7501             target: "clear_button.clipper";
7502          }
7503       }
7504    }
7505
7506 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
7507    group { name: "elm/button/base/"style_name; \
7508       data { \
7509          item: "focus_highlight" "on"; \
7510       } \
7511       images { \
7512          image: image_normal COMP; \
7513       } \
7514       parts { \
7515          part { name: "elm.swallow.content"; \
7516             type: SWALLOW; \
7517             scale: 1; \
7518             description { state: "default" 0.0; \
7519             } \
7520          } \
7521          part { name: "focus_image"; \
7522             scale: 1; \
7523             mouse_events: 0; \
7524             repeat_events: 1; \
7525             description { state: "default" 0.0; \
7526                visible: 0; \
7527                image { \
7528                   normal: image_normal; \
7529                   border: 6 6 6 6; \
7530                   border_scale: 1; \
7531                } \
7532             } \
7533             description { state: "focused" 0.0; \
7534                inherit: "default" 0.0; \
7535                visible: 1; \
7536             } \
7537          } \
7538          part { name: "over2"; \
7539             type: RECT; \
7540             repeat_events: 1; \
7541             ignore_flags: ON_HOLD; \
7542             description { state: "default" 0.0; \
7543                color: 0 0 0 0; \
7544             } \
7545          } \
7546          part { name: "over3"; \
7547             type: RECT; \
7548             repeat_events: 1; \
7549             description { state: "default" 0.0; \
7550                color: 0 0 0 0; \
7551             } \
7552          } \
7553       } \
7554       programs { \
7555          program { name: "button_click"; \
7556             signal: "mouse,down,1"; \
7557             source: "over2"; \
7558             action: SIGNAL_EMIT "elm,action,press" ""; \
7559          } \
7560          program { name: "button_unclick"; \
7561             signal: "mouse,up,1"; \
7562             source: "over3"; \
7563             action: SIGNAL_EMIT "elm,action,unpress" ""; \
7564          } \
7565          program { name: "button_click3"; \
7566             signal: "mouse,clicked,1"; \
7567             source: "over2"; \
7568             action: SIGNAL_EMIT "elm,action,click" ""; \
7569          } \
7570          program { name: "action_focus"; \
7571             signal: "elm,action,focus_highlight,show"; \
7572             source: "elm"; \
7573             action: STATE_SET "focused" 0.0; \
7574             target: "focus_image"; \
7575          } \
7576          program { name: "action_unfocus"; \
7577             signal: "elm,action,focus_highlight,hide"; \
7578             source: "elm"; \
7579             action: STATE_SET "default" 0.0; \
7580             target: "focus_image"; \
7581          } \
7582       } \
7583    } \
7584
7585 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
7586 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
7587 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
7588 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
7589
7590    group { name: "elm/button/base/search_icon";
7591       images {
7592          image: "00_search_icon.png" COMP;
7593       }
7594       parts {
7595          part { name: "search_icon";
7596             scale: 1;
7597             mouse_events: 0;
7598             clip_to: "search_icon.clipper";
7599             description { state: "default" 0.0;
7600                min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7601                max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
7602                fixed: 1 1;
7603                align: 0.5 0.5;
7604                image.normal: "00_search_icon.png";
7605             }
7606          }
7607          part { name: "search_icon.clipper";
7608             type: RECT;
7609             description { state: "default" 0.0;
7610                color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
7611             }
7612             description { state: "disabled" 0.0;
7613                color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
7614             }
7615          }
7616          part { name: "over2";
7617             type: RECT;
7618             ignore_flags: ON_HOLD;
7619             description { state: "default" 0.0;
7620                color: 0 0 0 0;
7621             }
7622          }
7623          part { name: "over3";
7624             type: RECT;
7625             repeat_events: 1;
7626             description { state: "default" 0.0;
7627                color: 0 0 0 0;
7628             }
7629          }
7630          part { name: "disabler";
7631             type: RECT;
7632             description { state: "default" 0.0;
7633                color: 0 0 0 0;
7634                visible: 0;
7635             }
7636             description { state: "disabled" 0.0;
7637                inherit: "default" 0.0;
7638                visible: 1;
7639             }
7640          }
7641       }
7642       programs {
7643          program { name: "button_click";
7644             signal: "mouse,down,1";
7645             source: "over2";
7646             action: SIGNAL_EMIT "elm,action,press" "";
7647          }
7648          program { name: "button_double_click";
7649             signal: "mouse,down,1,double";
7650             source: "over1";
7651          }
7652          program { name: "button_unclick";
7653             signal: "mouse,up,1";
7654             source: "over3";
7655             action: SIGNAL_EMIT "elm,action,unpress" "";
7656          }
7657          program { name: "touch_snd";
7658             signal: "mouse,clicked,1";
7659             source: "over2";
7660             action: PLAY_SAMPLE "touch_sound" 1.0;
7661             after: "button_unclick3";
7662          }
7663          program { name: "button_unclick3";
7664             action: SIGNAL_EMIT "elm,action,click" "";
7665          }
7666          program { name: "disable";
7667             signal: "elm,state,disabled";
7668             source: "elm";
7669             action: STATE_SET "disabled" 0.0;
7670             target: "disabler";
7671             target: "search_icon.clipper";
7672          }
7673          program { name: "enable";
7674             signal: "elm,state,enabled";
7675             source: "elm";
7676             action: STATE_SET "default" 0.0;
7677             target: "disabler";
7678             target: "search_icon.clipper";
7679          }
7680       }
7681    }
7682    group { name: "elm/button/base/search_rename";
7683       inherit: "elm/button/base/editfield_rename";
7684       parts {
7685          part { name: "rename_button";
7686             scale: 1;
7687             mouse_events: 0;
7688             clip_to: "rename_button.clipper";
7689             description { state: "default" 0.0;
7690                min: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
7691                max: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
7692                fixed: 1 1;
7693                align: 0.5 0.5;
7694                image.normal: "00_edit_field_rename.png";
7695             }
7696          }
7697       }
7698    }
7699
7700    group { name: "elm/button/base/search_clear";
7701       inherit: "elm/button/base/editfield_clear";
7702       parts {
7703          part { name: "clear_button";
7704             scale: 1;
7705             mouse_events: 0;
7706             clip_to: "clear_button.clipper";
7707             description { state: "default" 0.0;
7708                min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7709                max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7710                fixed: 1 1;
7711                align: 0.5 0.5;
7712                image.normal: "00_edit_field_clear.png";
7713             }
7714          }
7715       }
7716    }
7717
7718 #undef BUTTON_STATE_ENABLED
7719 #undef BUTTON_STATE_DISABLED
7720 #undef BUTTON_LANDSCAPE_DISABLED
7721 #undef BUTTON_LANDSCAPE_ENABLED