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