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