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