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