[Popup] changed MACRO for popup-volumebar and popup-ringtone
[profile/ivi/efl-theme-tizen.git] / themes / widgets / popup.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of SAMSUNG
7  * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8  * software is owned by Samsung and you shall not disclose such Confidential
9  * Information and shall use it only in accordance with the terms of the license
10  * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11  * representations or warranties about the suitability of the software, either
12  * express or implied, including but not limited to the implied warranties of
13  * merchantability, fitness for a particular purpose, or non-infringement.
14  * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15  * of or releated to this software.
16  *
17  */
18
19 #define POPUP_ITEM_STATE_ENABLED  0
20 #define POPUP_ITEM_STATE_DISABLED 1
21
22 /*popup widget specific notify style style*/
23 group { name: "elm/notify/center/popup";
24    parts {
25        part { name: "base";
26            type: RECT;
27            scale : 1;
28            mouse_events: 0;
29            repeat_events: 1;
30            description { state: "default" 0.0;
31                color: 0 0 0 0;
32                rel1.relative: 0.0 0.0;
33                rel2.relative: 1.0 1.0;
34            }
35        }
36       part { name: "persp";
37         type: RECT;
38         description { state: "default" 0.0;
39            min: 32 32;
40            max: 32 32;
41            align: 0.5 0.5;
42            color: 0 0 0 0;
43            visible: 1;
44            perspective {
45               zplane: -200;
46               focal: 1000;
47            }
48         }
49      }
50      part { name: "persp1";
51         type: RECT;
52         description { state: "default" 0.0;
53            min: 32 32;
54            max: 32 32;
55            align: 0.5 0.5;
56            visible: 1;
57            color: 0 0 0 0;
58            perspective {
59               zplane: 0;
60               focal: 1000;
61            }
62         }
63      }
64        part { name: "pop";
65            scale : 1;
66            mouse_events: 1;
67            description { state: "default" 0.0;
68                rel1.to: "elm.swallow.content";
69                rel2.to: "elm.swallow.content";
70                image {
71                      middle: DEFAULT;
72                      border_scale: 0;
73                }
74            }
75        }
76        part { name: "elm.swallow.content";
77            type: SWALLOW;
78            scale : 1;
79            description { state: "default" 0.0;
80                rel1.to: "base";
81                rel2.to: "base";
82                map {
83                   on: 1;
84                   backface_cull: 1;
85                   perspective: "persp";
86                }
87            }
88            description { state: "visible" 0.0;
89                rel1.to: "base";
90                rel2.to: "base";
91                map {
92                   on: 1;
93                   backface_cull: 1;
94                   perspective: "persp1";
95                }
96            }
97            description { state: "end" 0.0;
98                rel1.to: "base";
99                rel2.to: "base";
100                map {
101                   on: 0;
102                }
103            }
104        }
105    }
106    programs {
107        program { name: "show";
108            signal: "elm,action,show";
109            source: "elm";
110            action: STATE_SET "default" 0.0;
111            target: "elm.swallow.content";
112        }
113        program { name: "show_2";
114             signal: "show";
115             action: STATE_SET "visible" 0.0;
116             target: "elm.swallow.content";
117             transition: LINEAR 0.2;
118             after: "end";
119        }
120        program { name: "end";
121            action: STATE_SET "end" 0.0;
122            target: "elm.swallow.content";
123        }
124        program { name: "hide";
125            signal: "elm,action,hide";
126            source: "elm";
127            action: STATE_SET "default" 0.0;
128            target: "elm.swallow.content";
129        }
130    }
131 }
132
133 group { name: "elm/notify/block_events/popup";
134    parts {
135       part { name: "block_events";
136          type: RECT;
137          description { state: "default" 0.0;
138             color: POPUP_DIM_BG_COLOR_INC;
139          }
140          description { state: "clicked" 0.0;
141             color: POPUP_DIM_BG_CLICKED_COLOR_INC;
142          }
143       }
144    }
145    programs {
146       program { name: "block_clicked";
147          signal: "mouse,clicked,1";
148          source: "block_events";
149          action: SIGNAL_EMIT "elm,action,click" "elm";
150          after: "deeper_block_color";
151       }
152       program {
153          name: "deeper_block_color";
154          action: STATE_SET "clicked" 0.0;
155          target: "block_events";
156          transition: LINEAR 0.2;
157          after: "default_block_color";
158       }
159       program {
160          name: "default_block_color";
161          action: STATE_SET "default" 0.0;
162          target: "block_events";
163          transition: LINEAR 0.2;
164       }
165    }
166 }
167
168 group { name: "elm/notify/block_events/transparent";
169    parts {
170       part { name: "block_events";
171          type: RECT;
172          description { state: "default" 0.0;
173             color: POPUP_DIM_BG_TRANS_COLOR_INC;
174          }
175          description { state: "clicked" 0.0;
176             color: POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC;
177          }
178       }
179    }
180    programs {
181       program { name: "block_clicked";
182          signal: "mouse,clicked,1";
183          source: "block_events";
184          action: SIGNAL_EMIT "elm,action,click" "elm";
185          after: "deeper_block_color";
186       }
187       program {
188          name: "deeper_block_color";
189          action: STATE_SET "clicked" 0.0;
190          target: "block_events";
191          transition: LINEAR 0.2;
192          after: "default_block_color";
193       }
194       program {
195          name: "default_block_color";
196          action: STATE_SET "default" 0.0;
197          target: "block_events";
198          transition: LINEAR 0.2;
199       }
200    }
201 }
202
203 group { name: "elm/label/base/popup/default";
204    alias: "elm/label/base/popup/verticalbuttonstyle";
205    alias: "elm/label/base/popup/content_expand";
206    styles
207      {
208         style { name: "popup_desc_style";
209            base: "font=SLP:style=Roman font_size="POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC" align=center color="POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC" text_class=slp_roman";
210            tag:  "br" "\n";
211            tag:  "ps" "ps";
212            tag:  "whitecolor" "+ color=#ffffff";
213            tag:  "tab" "\t";
214         }
215      }
216    parts {
217       part { name: "elm.text";
218          type: TEXTBLOCK;
219          mouse_events: 0;
220          scale: 1;
221          description { state: "default" 0.0;
222             min: POPUP_DESCRIPTION_DEFAULT_TEXT_MIN_INC;
223             text {
224                style: "popup_desc_style";
225                min: 0 1;
226                max: 0 1;
227             }
228          }
229       }
230    }
231 }
232
233 group { name: "elm/popup/base/default";
234    images {
235       image: "00_popup_title_bg.png" COMP;
236       image: "00_popup_bottom_bg.png" COMP;
237       image: "00_popup_bg.png" COMP;
238    }
239    styles {
240       style { name: "popup_title_style";
241          base: "font=SLP:style=Medium font_size="POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=slp_medium";
242          tag:  "br" "\n";
243          tag:  "tab" "\t";
244       }
245    }
246    parts {
247       part { name: "base";
248          type: IMAGE;
249          scale : 1;
250          description { state: "default" 0.0;
251             min: POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC;
252             max: POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC;
253             image {
254                normal: "00_popup_bg.png";
255                border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
256                border_scale: 1;
257             }
258             align: 0.0 0.0;
259          }
260       }
261       part { name: "elm.bg.title";
262          type: IMAGE;
263          scale : 1;
264          description { state: "default" 0.0;
265             min: POPUP_BASE_DEFAULT_TITLE_DEFAULT_MIN_INC;
266             fixed : 1 1;
267             align: 0.5 0.0;
268             visible: 0;
269             image.normal: "00_popup_title_bg.png";
270             image.border: POPUP_BASE_DEFAULT_TITLE_DEFAULT_IMAGE_BORDER_INC;
271             image.border_scale: 1;
272             rel1 {
273                relative: 0.5 0.0;
274                to: "base";
275             }
276             rel2 {
277                relative: 0.5 0.0;
278                to: "base";
279             }
280          }
281          description { state: "visible" 0.0;
282             inherit: "default" 0.0;
283             visible: 1;
284          }
285       }
286       part { name: "left_pad";
287          type: RECT;
288          scale: 1;
289          description { state: "default" 0.0;
290             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
291             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
292             fixed: 1 1;
293             align: 0.0 0.0;
294             visible: 0;
295             rel1.to: "elm.bg.title";
296          }
297       }
298       part { name: "right_pad";
299          type: RECT;
300          scale: 1;
301          description { state: "default" 0.0;
302             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
303             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
304             fixed: 1 1;
305             align: 1.0 1.0;
306             visible: 0;
307             rel2.to: "elm.bg.title";
308          }
309       }
310       part { name: "elm.swallow.title.icon";
311          type: SWALLOW;
312          scale: 1;
313          description { state: "default" 0.0;
314             min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
315             max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
316             fixed: 1 1;
317             align: 0.0 0.5;
318             rel1 {
319                to: "left_pad";
320                relative: 1.0 0.0;
321             }
322             rel2 {
323                to: "right_pad";
324                relative: 0.0 1.0;
325             }
326             visible: 0;
327          }
328          description { state: "visible" 0.0;
329             inherit: "default" 0.0;
330             visible: 1;
331          }
332       }
333       part { name: "elm.text.title";
334          type: TEXTBLOCK;
335          scale:1;
336          description { state: "default" 0.0;
337             fixed: 1 1;
338             text {
339               style: "popup_title_style";
340               min: 0 0;
341               max: 0 1;
342               align: 0.5 0.0;
343             }
344             color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC;
345             visible:0;
346             rel1 {
347                relative: 1.0 0.0;
348                to: "left_pad";
349             }
350             rel2 {
351                relative: 0.0 1.0;
352                to: "right_pad";
353             }
354          }
355          description { state: "visible" 0.0;
356             inherit: "default" 0.0;
357             visible: 1;
358          }
359       }
360       part { name: "elm.swallow.content";
361          type: SWALLOW;
362          scale : 1;
363          description { state: "default" 0.0;
364             min: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
365             fixed: 1 0;
366             rel1 {
367                relative: 0.5 0.0;
368                to: "base";
369             }
370             rel2 {
371                relative: 0.5 1.0;
372                to: "base";
373             }
374          }
375          description { state: "show_title_area" 0.0;
376             inherit: "default" 0.0;
377             rel1 {
378                relative: 0.5 1.0;
379                to: "elm.bg.title";
380             }
381          }
382          description { state: "show_action_area" 0.0;
383             inherit: "default" 0.0;
384             rel2 {
385                relative: 0.5 0.0;
386                to: "elm.bg.action_area";
387             }
388          }
389          description { state: "show_action_title_area" 0.0;
390             inherit: "default" 0.0;
391             rel1 {
392                relative: 0.5 1.0;
393                to: "elm.bg.title";
394             }
395             rel2 {
396                relative: 0.5 0.0;
397                to: "elm.bg.action_area";
398             }
399          }
400       }
401       part { name: "elm.bg.action_area";
402          type: IMAGE;
403          scale : 1;
404          description { state: "default" 0.0;
405             min: POPUP_BASE_DEFAULT_BUTTON_BG_DEFAULT_MIN_INC;
406             fixed : 1 1;
407             align: 0.5 1.0;
408             visible: 0;
409             image.normal: "00_popup_bottom_bg.png";
410             image.border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC;
411             image.border_scale: 1;
412             rel1 {
413                relative: 0.0 1.0;
414                to: "base";
415             }
416             rel2.to: "base";
417          }
418          description { state: "visible" 0.0;
419             inherit: "default" 0.0;
420             visible: 1;
421          }
422       }
423       part { name: "elm.swallow.action_area";
424          type: SWALLOW;
425          scale : 1;
426          description { state: "default" 0.0;
427             align: 0.0 0.0;
428             rel1.to: "elm.bg.action_area";
429             rel2.to: "elm.bg.action_area";
430          }
431       }
432    }
433    programs {
434       program { name: show_title_icon;
435          signal: "elm,state,title,icon,visible";
436          source: "elm";
437          action: STATE_SET "visible" 0.0;
438          target: "elm.swallow.title.icon";
439       }
440       program { name: hide_title_icon;
441          signal: "elm,state,title,icon,hidden";
442          source: "elm";
443          action: STATE_SET "default" 0.0;
444          target: "elm.swallow.title.icon";
445       }
446       program { name: show_title_text;
447          signal: "elm,state,title,text,visible";
448          source: "elm";
449          action: STATE_SET "visible" 0.0;
450          target: "elm.text.title";
451       }
452       program { name: hide_title_text;
453          signal: "elm,state,title,text,hidden";
454          source: "elm";
455          action: STATE_SET "default" 0.0;
456          target: "elm.text.title";
457       }
458       program { name: show_title_area;
459          signal: "elm,state,title_area,visible";
460          source: "elm";
461          script {
462             new st[31];
463             new Float:vl;
464             get_state(PART:"elm.swallow.action_area", st, 30, vl);
465             if (!strcmp(st, "visible"))
466               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
467             else
468               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
469             set_state(PART:"elm.bg.title", "visible", 0.0);
470          }
471       }
472       program { name: hide_title_area;
473          signal: "elm,state,title_area,hidden";
474          source: "elm";
475          action: STATE_SET "default" 0.0;
476          script {
477             new st[31];
478             new Float:vl;
479             get_state(PART:"elm.swallow.action_area", st, 30, vl);
480             if (!strcmp(st, "visible"))
481               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
482             else
483               set_state(PART:"elm.swallow.content", "default", 0.0);
484             set_state(PART:"elm.bg.title", "default", 0.0);
485          }
486       }
487       program { name: show_action_area;
488          signal: "elm,state,action_area,visible";
489          source: "elm";
490          script {
491             new st[31];
492             new Float:vl;
493             get_state(PART:"elm.bg.title", st, 30, vl);
494             if (!strcmp(st, "visible"))
495               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
496             else
497               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
498             set_state(PART:"elm.bg.action_area", "visible", 0.0);
499          }
500       }
501       program { name: hide_action_area;
502          signal: "elm,state,action_area,hidden";
503          source: "elm";
504          action: STATE_SET "default" 0.0;
505          script {
506             new st[31];
507             new Float:vl;
508             get_state(PART:"elm.bg.title", st, 30, vl);
509             if (!strcmp(st, "visible"))
510               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
511             else
512               set_state(PART:"elm.swallow.content", "default", 0.0);
513             set_state(PART:"elm.bg.action_area", "default", 0.0);
514          }
515       }
516    } /* end of programs */
517 }
518
519 group { name: "elm/popup/content/default";
520    parts{
521       part { name: "pad_t";
522          type: RECT;
523          scale : 1;
524          mouse_events: 0;
525          description { state: "default" 0.0;
526             align: 0.5 0.0;
527             min: POPUP_CONTENT_DEFAULT_PADDING_TOP_MIN_INC;
528             fixed: 0 1;
529             visible: 0;
530             rel1 {
531                relative: 1.0 0.0;
532                to_x: "pad_l";
533             }
534             rel2 {
535                relative: 0.0 0.0;
536                to_x: "pad_r";
537             }
538          }
539       }
540       part { name: "pad_l";
541          type: RECT;
542          scale: 1;
543          description { state: "default" 0.0;
544             min : POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC;
545             fixed: 1 0;
546             rel2.relative: 0.0 1.0;
547             visible: 0;
548             align: 0.0 0.0;
549          }
550       }
551       part { name: "pad_r";
552          type: RECT;
553          scale: 1;
554          description { state: "default" 0.0;
555             min : POPUP_CONTENT_DEFAULT_PADDING_RIGHT_MIN_INC;
556             fixed: 1 0;
557             rel1.relative: 1.0 0.0;
558             visible: 0;
559             align: 1.0 0.0;
560          }
561       }
562       part{ name:"elm.swallow.content";
563          type: SWALLOW;
564          scale : 1;
565          description { state: "default" 0.0;
566             min: POPUP_CONTENT_DEFAULT_CONTENT_DEFAULT_MIN_INC;
567             fixed: 1 0;
568             rel1 {
569                relative: 0.5 1.0;
570                to: "pad_t";
571             }
572             rel2 {
573                relative: 0.5 0.0;
574                to: "pad_b";
575             }
576          }
577       }
578       part { name: "pad_b";
579          type: RECT;
580          scale : 1;
581          mouse_events: 0;
582          description { state: "default" 0.0;
583             align: 0.5 1.0;
584             min: POPUP_CONTENT_DEFAULT_PADDING_BOTTOM_MIN_INC;
585             fixed: 0 1;
586             visible: 0;
587             rel1 {
588                relative: 0.0 1.0;
589                to_x: "pad_l";
590             }
591             rel2.to_x: "pad_r";
592          }
593       }
594    }
595 }
596
597 ///////////////////////////////////////////////////////////////////////////////
598 group {
599    name: "elm/popup/item/default";
600    script {
601       public item_state = POPUP_ITEM_STATE_ENABLED;
602    }
603    parts {
604       part { name: "event_blocker";
605          description { state: "default" 0.0;
606          }
607       }
608       part { name: "bg";
609          mouse_events: 0;
610          type: RECT;
611          description { state: "default" 0.0;
612             color: 240 240 240 255;
613             min: 0 71;
614             align: 0.5 0.0;
615          }
616          description { state: "clicked" 0.0;
617             color: 190 170 150 255;
618          }
619       }
620       part { name: "padding_left_top";
621          type: RECT;
622          scale: 1;
623          mouse_events: 0;
624          description { state: "default" 0.0;
625             align: 0.0 0.0;
626             rel2.relative: 0.0 0.0;
627             min: 10 10;
628             fixed: 1 1;
629             visible: 0;
630          }
631       }
632       part { name: "padding_right_bottom";
633          type: RECT;
634          scale: 1;
635          mouse_events: 0;
636          description { state: "default" 0.0;
637             align: 1.0 1.0;
638             rel1.relative: 1.0 1.0;
639             min: 10 10;
640             fixed: 1 1;
641             visible: 0;
642          }
643       }
644       part { name: "separator";
645          mouse_events: 0;
646          type: RECT;
647          scale: 1;
648          description { state: "dafault" 0.0;
649             color: 180 180 180 255;
650             align: 0.5 1.0;
651             min: 0 1;
652             max: 999999 1;
653          }
654       }
655       part { name: "padding_icon_text";
656          type: RECT;
657          scale: 1;
658          mouse_events: 0;
659          description { state: "default" 0.0; //when only icon or no icon is there
660             align: 0.0 0.0;
661             rel1 {
662                relative: 1.0 0.0;
663                to: "elm.swallow.content";
664             }
665             rel2.to: "elm.swallow.content";
666             fixed: 1 0;
667             min: 0 0;
668             visible: 0;
669          }
670          description { state: "visible" 0.0; //when icon is visible
671             inherit: "default" 0.0;
672             min: 10 0;
673          }
674          description { state: "icononly" 0.0;
675             inherit: "default" 0.0;
676          }
677       }
678       part { name: "elm.swallow.content";
679          type: SWALLOW;
680          scale: 1;
681          description { state: "default" 0.0;
682             visible: 0;
683             align: 0.0 0.5;
684             rel1 {
685                relative: 1.0 1.0;
686                to: "padding_left_top";
687             }
688             rel2 {
689                relative: 1.0 0.0;
690                to_x: "padding_left_top";
691                to_y: "padding_right_bottom";
692             }
693             fixed: 1 0;
694          }
695          description { state: "visible" 0.0;
696             fixed: 1 0;
697             min: 40 40;
698             max: 40 40;
699             align: 0.0 0.5;
700             rel1 {
701                relative: 1.0 1.0;
702                to: "padding_left_top";
703             }
704             rel2 {
705                relative: 1.0 0.0;
706                to_x: "padding_left_top";
707                to_y: "padding_right_bottom";
708             }
709             aspect: 1.0 1.0;
710             aspect_preference: VERTICAL;
711          }
712          description { state: "icononly" 0.0;
713             min: 40 40;
714             max: 40 40;
715             rel1 {
716                relative: 1.0 1.0;
717                to: "padding_left_top";
718             }
719             rel2 {
720                relative: 0.0 0.0;
721                to: "padding_right_bottom";
722             }
723             aspect: 1.0 1.0;
724             aspect_preference: VERTICAL;
725          }
726       }
727       part { name: "elm.text";
728          type: TEXT;
729          mouse_events: 0;
730          scale: 1;
731          description { state: "default" 0.0;
732             visible: 0;
733             rel1 {
734                relative: 1.0 1.0;
735                to_x: "padding_icon_text";
736                to_y: "padding_left_top";
737             }
738             rel2 {
739                relative: 0.0 0.0;
740                to:"padding_right_bottom";
741             }
742             align: 0.0 0.5;
743             color: 0 0 0 255;
744             text {
745                font: "SLP:style=Bold";
746                size: 20;
747                min:  0 0;
748                align: 0.0 0.5;
749                text: "slp";
750             }
751          }
752          description { state: "visible" 0.0;
753             inherit: "default" 0.0;
754             visible: 1;
755             min: 90 40;
756          }
757          description { state: "clicked" 0.0;
758             inherit: "default" 0.0;
759             visible: 1;
760             min: 0 0;
761             color: 255 255 255 255;
762          }
763          description { state: "disabled" 0.0;
764             inherit: "default" 0.0;
765             color: 128 128 128 255;
766          }
767          description { state: "disabled_visible" 0.0;
768             inherit: "default" 0.0;
769             color: 128 128 128 255;
770             visible: 1;
771             min: 90 40;
772          }
773       }
774       part { name: "over1";
775          repeat_events: 1;
776          ignore_flags: ON_HOLD;
777          description { state: "default" 0.0;
778          }
779       }
780       part { name: "over2";
781          repeat_events: 1;
782          description { state: "default" 0.0;
783          }
784       }
785       part { name: "disclip";
786          type: RECT;
787          description { state: "default" 0.0;
788             visible: 0;
789          }
790          description { state: "disabled" 0.0;
791             color: 87 87 87 128;
792          }
793       }
794    }
795    programs {
796       program { name: "item_unclick";
797          signal: "mouse,up,1";
798          source: "over1";
799          action: SIGNAL_EMIT "elm,action,click" "";
800       }
801       program { name: "disable";
802          signal: "elm,state,item,disabled";
803          source: "elm";
804          action: STATE_SET "disabled" 0.0;
805          target: "disclip";
806          after: "disable_text";
807       }
808       program { name: "enable";
809          signal: "elm,state,item,enabled";
810          source: "elm";
811          action: STATE_SET "default" 0.0;
812          target: "disclip";
813          after: "enable_text";
814       }
815       program { name: "item_click2";
816          signal: "mouse,down,1";
817          source: "over2";
818          script {
819             new st[31];
820             new Float:vl;
821             get_state(PART:"elm.text", st, 30, vl);
822             if (!strcmp(st, "visible"))
823               set_state(PART:"elm.text", "clicked", 0.0);
824             set_state(PART:"bg", "clicked", 0.0);
825          }
826       }
827       program { name: "item_unclick2";
828          signal: "mouse,up,1";
829          source: "over2";
830          script {
831             new st[31];
832             new Float:vl;
833             get_state(PART:"elm.text", st, 30, vl);
834             if (!strcmp(st, "clicked"))
835               set_state(PART:"elm.text", "visible", 0.0);
836             set_state(PART:"bg", "default", 0.0);
837          }
838       }
839       program { name: "disable_text";
840          script {
841             new st[31];
842             new Float:vl;
843             get_state(PART:"elm.text", st, 30, vl);
844             if (!strcmp(st, "visible"))
845               set_state(PART:"elm.text", "disabled_visible", 0.0);
846             else
847               set_state(PART:"elm.text", "disabled", 0.0);
848             set_int(item_state, POPUP_ITEM_STATE_DISABLED);
849          }
850       }
851       program { name: "enable_text";
852          script {
853             new st[31];
854             new Float:vl;
855             get_state(PART:"elm.text", st, 30, vl);
856             if (!strcmp(st, "disabled_visible"))
857               set_state(PART:"elm.text", "visible", 0.0);
858             else
859               set_state(PART:"elm.text", "default", 0.0);
860             set_int(item_state, POPUP_ITEM_STATE_ENABLED);
861          }
862       }
863       program { name: "text_show";
864          signal: "elm,state,item,text,visible";
865          source: "elm";
866          script {
867             new st[31];
868             new Float:vl;
869             get_state(PART:"elm.swallow.content", st, 30, vl);
870             if (!strcmp(st, "icononly")) {
871                set_state(PART:"elm.swallow.content", "visible", 0.0);
872                set_state(PART:"padding_icon_text", "visible", 0.0);
873             }
874             if(get_int(item_state) != POPUP_ITEM_STATE_DISABLED)
875               set_state(PART:"elm.text", "visible", 0.0);
876             else
877               set_state(PART:"elm.text", "disabled_visible", 0.0);
878          }
879       }
880       program { name: "text_hide";
881          signal: "elm,state,item,text,hidden";
882          source: "elm";
883          script {
884             new st[31];
885             new Float:vl;
886             get_state(PART:"elm.swallow.content", st, 30, vl);
887             if (!strcmp(st, "visible")) {
888                set_state(PART:"elm.swallow.content", "icononly", 0.0);
889                set_state(PART:"padding_icon_text", "icononly", 0.0);
890             }
891             set_state(PART:"elm.text", "default", 0.0);
892          }
893       }
894       program { name: "icon_show";
895          signal: "elm,state,item,icon,visible";
896          source: "elm";
897          script {
898             new st[31];
899             new Float:vl;
900             get_state(PART:"elm.text", st, 30, vl);
901             if (!strcmp(st, "visible")) {
902                set_state(PART:"elm.swallow.content", "visible", 0.0);
903                set_state(PART:"padding_icon_text", "visible", 0.0);
904             }
905             else {
906                set_state(PART:"elm.swallow.content", "icononly", 0.0);
907                set_state(PART:"padding_icon_text", "icononly", 0.0);
908             }
909          }
910       }
911       program { name: "icon_hide";
912          signal: "elm,state,item,icon,hidden";
913          source: "elm";
914          action:  STATE_SET "default" 0.0;
915          target: "elm.swallow.content";
916       }
917    }
918 }
919
920 group { name: "elm/popup/base/verticalbuttonstyle";
921    images {
922       image: "00_popup_title_bg.png" COMP;
923       image: "00_popup_bottom_bg.png" COMP;
924       image: "00_popup_bg.png" COMP;
925    }
926    parts {
927       part { name: "base";
928          type: IMAGE;
929          scale : 1;
930          description { state: "default" 0.0;
931             min: POPUP_BASE_VERTICAL_BUTTON_BASE_MIN_INC;
932             max: POPUP_BASE_VERTICAL_BUTTON_BASE_MAX_INC;
933             image {
934                normal: "00_popup_bg.png";
935                border: POPUP_BASE_VERTICAL_BUTTON_BG_IMAGE_BORDER_INC;
936                border_scale: 1;
937             }
938             align: 0.0 0.0;
939          }
940       }
941       part { name: "elm.bg.title";
942          type: IMAGE;
943          scale : 1;
944          description { state: "default" 0.0;
945             min: POPUP_BASE_VERTICAL_BUTTON_TITLE_DEFAULT_MIN_INC;
946             fixed : 1 1;
947             align: 0.5 0.0;
948             visible: 0;
949             image.normal: "00_popup_title_bg.png";
950             image.border: POPUP_BASE_VERTICAL_BUTTON_TITLE_IMAGE_BORDER_MIN_INC;
951             image.border_scale: 1;
952             rel1 {
953                relative: 0.5 0.0;
954                to: "base";
955             }
956             rel2 {
957                relative: 0.5 0.0;
958                to: "base";
959             }
960          }
961          description { state: "visible" 0.0;
962             inherit: "default" 0.0;
963             visible: 1;
964          }
965       }
966       part { name: "elm.swallow.title.icon";
967          type: SWALLOW;
968          scale: 1;
969          description { state: "default" 0.0;
970             min: POPUP_BASE_VERTICAL_BUTTON_TITLE_ICON_MIN_MAX_INC;
971             max: POPUP_BASE_VERTICAL_BUTTON_TITLE_ICON_MIN_MAX_INC;
972             fixed: 1 1;
973             align: 0.0 0.5;
974             rel1.to: "elm.bg.title";
975             rel2.to: "elm.bg.title";
976             visible: 0;
977          }
978          description { state: "visible" 0.0;
979             inherit: "default" 0.0;
980             visible: 1;
981          }
982       }
983       part { name: "elm.text.title";
984          type: TEXTBLOCK;
985          scale:1;
986          description { state: "default" 0.0;
987             text {
988               style: "popup_title_style";
989               min: 0 0;
990               max: 0 1;
991               align: 0.5 0.0;
992             }
993             color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC;
994             visible:0;
995             rel1.to:"elm.bg.title";
996             rel2.to: "elm.bg.title";
997          }
998          description { state: "visible" 0.0;
999             inherit: "default" 0.0;
1000             visible: 1;
1001          }
1002       }
1003       part { name: "elm.swallow.content";
1004          type: SWALLOW;
1005          scale : 1;
1006          description { state: "default" 0.0;
1007             min: POPUP_BASE_VERTICAL_BUTTON_CONTENT_DEFAULT_MIN_INC;
1008             fixed: 1 0;
1009             rel1 {
1010                relative: 0.5 0.0;
1011                to: "base";
1012             }
1013             rel2 {
1014                relative: 0.5 1.0;
1015                to: "base";
1016             }
1017          }
1018          description { state: "show_title_area" 0.0;
1019             inherit: "default" 0.0;
1020             rel1 {
1021                relative: 0.5 1.0;
1022                to: "elm.bg.title";
1023             }
1024          }
1025          description { state: "show_action_area" 0.0;
1026             inherit: "default" 0.0;
1027             rel2 {
1028                relative: 0.5 0.0;
1029                to: "elm.swallow.action_area";
1030             }
1031          }
1032          description { state: "show_action_title_area" 0.0;
1033             inherit: "default" 0.0;
1034             rel1 {
1035                relative: 0.5 1.0;
1036                to: "elm.bg.title";
1037             }
1038             rel2 {
1039                relative: 0.5 0.0;
1040                to: "elm.swallow.action_area";
1041             }
1042          }
1043       }
1044       part { name: "elm.swallow.action_area";
1045          type: SWALLOW;
1046          scale : 1;
1047          description { state: "default" 0.0;
1048             align: 0.5 1.0;
1049             fixed: 0 1;
1050             min: POPUP_BASE_VERTICAL_BUTTON_BUTTONAREA_DEFAULT_MIN_INC;
1051             visible: 1;
1052             rel1 {
1053                relative: 0.0 1.0;
1054                to: "base";
1055             }
1056             rel2.to: "base";
1057          }
1058       }
1059    }
1060    programs {
1061       program { name: show_title_icon;
1062          signal: "elm,state,title,icon,visible";
1063          source: "elm";
1064          action: STATE_SET "visible" 0.0;
1065          target: "elm.swallow.title.icon";
1066       }
1067       program { name: hide_title_icon;
1068          signal: "elm,state,title,icon,hidden";
1069          source: "elm";
1070          action: STATE_SET "default" 0.0;
1071          target: "elm.swallow.title.icon";
1072       }
1073       program { name: show_title_text;
1074          signal: "elm,state,title,text,visible";
1075          source: "elm";
1076          action: STATE_SET "visible" 0.0;
1077          target: "elm.text.title";
1078       }
1079       program { name: hide_title_text;
1080          signal: "elm,state,title,text,hidden";
1081          source: "elm";
1082          action: STATE_SET "default" 0.0;
1083          target: "elm.text.title";
1084       }
1085       program { name: show_title_area;
1086          signal: "elm,state,title_area,visible";
1087          source: "elm";
1088          script {
1089             new st[31];
1090             new Float:vl;
1091             get_state(PART:"elm.swallow.action_area", st, 30, vl);
1092             if (!strcmp(st, "visible"))
1093               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
1094             else
1095               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
1096             set_state(PART:"elm.bg.title", "visible", 0.0);
1097          }
1098       }
1099       program { name: hide_title_area;
1100          signal: "elm,state,title_area,hidden";
1101          source: "elm";
1102          action: STATE_SET "default" 0.0;
1103          script {
1104             new st[31];
1105             new Float:vl;
1106             get_state(PART:"elm.swallow.action_area", st, 30, vl);
1107             if (!strcmp(st, "visible"))
1108               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
1109             else
1110               set_state(PART:"elm.swallow.content", "default", 0.0);
1111             set_state(PART:"elm.bg.title", "default", 0.0);
1112          }
1113       }
1114       program { name: show_action_area;
1115          signal: "elm,state,action_area,visible";
1116          source: "elm";
1117          script {
1118             new st[31];
1119             new Float:vl;
1120             get_state(PART:"elm.bg.title", st, 30, vl);
1121             if (!strcmp(st, "visible"))
1122               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
1123             else
1124               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
1125          }
1126       }
1127       program { name: hide_action_area;
1128          signal: "elm,state,action_area,hidden";
1129          source: "elm";
1130          action: STATE_SET "default" 0.0;
1131          script {
1132             new st[31];
1133             new Float:vl;
1134             get_state(PART:"elm.bg.title", st, 30, vl);
1135             if (!strcmp(st, "visible"))
1136               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
1137             else
1138               set_state(PART:"elm.swallow.content", "default", 0.0);
1139          }
1140       }
1141    } /* end of programs */
1142 }
1143
1144 group { name: "elm/popup/buttons3/verticalbuttonstyle";
1145    data.item: "action_area_height" POPUP_BUTTON_VERTICAL_ACTION_AREA_HEIGHT;
1146    parts{
1147       part { name: "elm.swallow.buttonArea.Background";
1148          type: IMAGE;
1149          scale : 1;
1150          description { state: "default" 0.0;
1151             align: 0.5 0.0;
1152             image.normal: "00_popup_bottom_bg.png";
1153             image.border: POPUP_BUTTON3_VERTICAL_BUTTON_BG_IMAGE_BORDER_INC;
1154             image.border_scale: 1;
1155             rel1 {
1156                relative: 0.0 0.0;
1157             }
1158             rel2 {
1159                relative: 1.0 1.0;
1160             }
1161          }
1162       }
1163       part { name: "elm.rect.pad_btn_top";
1164          type: RECT;
1165          scale : 1;
1166          description { state: "default" 0.0;
1167             min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_TOP_MIN_INC;
1168             fixed : 0 1;
1169             align: 0.0 0.0;
1170             color: 0 0 0 0;
1171             rel1 {
1172                relative: 0.0 0.0;
1173             }
1174             rel2 {
1175                relative: 1.0 0.0;
1176             }
1177          }
1178       }
1179       part{ name:"actionbtn1";
1180          type: SWALLOW;
1181          scale : 1;
1182          description { state: "default" 0.0;
1183             min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1184             max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1185             fixed : 1 1;
1186             align: 0.5 0.0;
1187             rel1 {
1188                relative: 0.0 1.0; to_y: "elm.rect.pad_btn_top";
1189             }
1190          }
1191       }
1192       part { name: "elm.rect.pad_btn";
1193          type: RECT;
1194          scale : 1;
1195          description { state: "default" 0.0;
1196             min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MIN_INC;
1197             max: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MAX_INC;
1198             fixed : 1 1;
1199             align: 0.5 0.0;
1200             color: 0 0 0 0;
1201             rel1 {
1202                relative: 0.0 1.0; to: "actionbtn1";
1203             }
1204             rel2 {
1205                relative: 1.0 1.0; to: "actionbtn1";
1206             }
1207          }
1208       }
1209       part{ name:"actionbtn2";
1210          type: SWALLOW;
1211          scale : 1;
1212          description { state: "default" 0.0;
1213             min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1214             max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1215             fixed : 1 1;
1216             align: 0.5 0.0;
1217             rel1 { relative: 0 1.0; to_y: "elm.rect.pad_btn"; }
1218          }
1219       }
1220       part { name: "elm.rect.pad_btn2";
1221          type: RECT;
1222          scale : 1;
1223          description { state: "default" 0.0;
1224             min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MIN_INC;
1225             max: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MAX_INC;
1226             fixed : 1 1;
1227             align: 0.5 0.0;
1228             color: 0 0 0 0;
1229             rel1 {
1230                relative: 0.0 1.0; to: "actionbtn2";
1231             }
1232             rel2 {
1233                relative: 1.0 1.0; to: "actionbtn2";
1234             }
1235          }
1236       }
1237       part{ name:"actionbtn3";
1238          type: SWALLOW;
1239          scale : 1;
1240          description { state: "default" 0.0;
1241             min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1242             max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1243             fixed : 1 1;
1244             align: 0.5 0.0;
1245             rel1 {
1246                relative: 0.0 1.0; to_y: "elm.rect.pad_btn2";
1247             }
1248          }
1249       }
1250    }
1251 }
1252
1253 group { name: "elm/popup/content/menustyle";
1254    parts{
1255       part { name: "left_padding";
1256          type: RECT;
1257          scale: 1;
1258          description { state: "default" 0.0;
1259             fixed: 1 0;
1260             visible: 0;
1261             align: 0.0 0.5;
1262             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1263             rel1 {
1264                relative: 0.0 0.0;
1265             }
1266             rel2 {
1267                relative: 0.0 1.0;
1268             }
1269          }
1270       }
1271       part{ name:"elm.swallow.content";
1272          type: SWALLOW;
1273          scale : 1;
1274          description { state: "default" 0.0;
1275             min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1276             align: 0.5 0.5;
1277             fixed: 1 0;
1278             rel1 {
1279                relative: 1.0 0.0;
1280                to:"left_padding";
1281             }
1282             rel2 {
1283                relative: 0.0 1.0;
1284                to:"right_padding";
1285             }
1286          }
1287       }
1288       part { name: "right_padding";
1289          type: RECT;
1290          scale: 1;
1291          description { state: "default" 0.0;
1292             fixed: 1 0;
1293             visible: 0;
1294             align: 1.0 0.5;
1295             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1296             rel1 {
1297                relative: 1.0 0.0;
1298             }
1299             rel2 {
1300                relative: 1.0 1.0;
1301             }
1302          }
1303       }
1304    }
1305 }
1306
1307 group { name: "elm/popup/content/min_menustyle";
1308    parts{
1309       part { name: "left_padding";
1310          type: RECT;
1311          scale: 1;
1312          description { state: "default" 0.0;
1313             fixed: 1 0;
1314             visible: 0;
1315             align: 0.0 0.5;
1316             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1317             rel1 {
1318                relative: 0.0 0.0;
1319             }
1320             rel2 {
1321                relative: 0.0 1.0;
1322             }
1323          }
1324       }
1325       part{ name:"elm.swallow.content";
1326          type: SWALLOW;
1327          scale : 1;
1328          description { state: "default" 0.0;
1329             min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC;
1330             align: 0.5 0.5;
1331             fixed: 1 0;
1332             rel1 {
1333                relative: 1.0 0.0;
1334                to:"left_padding";
1335             }
1336             rel2 {
1337                relative: 0.0 1.0;
1338                to:"right_padding";
1339             }
1340          }
1341       }
1342       part { name: "right_padding";
1343          type: RECT;
1344          scale: 1;
1345          description { state: "default" 0.0;
1346             fixed: 1 0;
1347             visible: 0;
1348             align: 1.0 0.5;
1349             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1350             rel1 {
1351                relative: 1.0 0.0;
1352             }
1353             rel2 {
1354                relative: 1.0 1.0;
1355             }
1356          }
1357       }
1358    }
1359 }
1360
1361 group { name: "elm/popup/content/liststyle";
1362    parts{
1363       part { name: "left_top_padding";
1364          type: RECT;
1365          scale: 1;
1366          description { state: "default" 0.0;
1367             fixed: 1 1;
1368             visible: 0;
1369             align: 0.0 0.0;
1370             min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1371             max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1372          }
1373       }
1374       part{ name:"elm.swallow.content";
1375          type: SWALLOW;
1376          scale : 1;
1377          description { state: "default" 0.0;
1378             min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1379             align: 0.5 0.5;
1380             fixed: 1 0;
1381             rel1 {
1382                relative: 1.0 1.0;
1383                to:"left_top_padding";
1384             }
1385             rel2 {
1386                relative: 0.0 1.0;
1387                to:"right_padding";
1388             }
1389          }
1390       }
1391       part { name: "right_padding";
1392          type: RECT;
1393          scale: 1;
1394          description { state: "default" 0.0;
1395             fixed: 1 0;
1396             visible: 0;
1397             align: 1.0 0.5;
1398             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1399             rel1 {
1400                relative: 1.0 0.0;
1401             }
1402             rel2 {
1403                relative: 1.0 1.0;
1404             }
1405          }
1406       }
1407    }
1408 }
1409
1410 group { name: "elm/popup/content/min_liststyle";
1411    parts{
1412       part { name: "left_top_padding";
1413          type: RECT;
1414          scale: 1;
1415          description { state: "default" 0.0;
1416             fixed: 1 1;
1417             visible: 0;
1418             align: 0.0 0.0;
1419             min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1420             max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1421          }
1422       }
1423       part{ name:"elm.swallow.content";
1424          type: SWALLOW;
1425          scale : 1;
1426          description { state: "default" 0.0;
1427             min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC;
1428             align: 0.5 0.5;
1429             fixed: 1 0;
1430             rel1 {
1431                relative: 1.0 1.0;
1432                to:"left_top_padding";
1433             }
1434             rel2 {
1435                relative: 0.0 1.0;
1436                to:"right_padding";
1437             }
1438          }
1439       }
1440       part { name: "right_padding";
1441          type: RECT;
1442          scale: 1;
1443          description { state: "default" 0.0;
1444             fixed: 1 0;
1445             visible: 0;
1446             align: 1.0 0.5;
1447             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1448             rel1 {
1449                relative: 1.0 0.0;
1450             }
1451             rel2 {
1452                relative: 1.0 1.0;
1453             }
1454          }
1455       }
1456    }
1457 }
1458
1459 group { name: "elm/popup/base/customstyle";
1460    images {
1461       image: "00_popup_bottom_bg.png" COMP;
1462       image: "00_popup_bg.png" COMP;
1463    }
1464    styles {
1465       style { name: "popup_title_custom_style";
1466          base: "font=SLP:style=Medium font_size="POPUP_BASE_CUSTOMSTYLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=slp_medium";
1467          tag:  "br" "\n";
1468          tag:  "tab" "\t";
1469       }
1470    }
1471    parts {
1472       part { name: "base";
1473          type: IMAGE;
1474          scale : 1;
1475          description { state: "default" 0.0;
1476             min: POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MIN_INC;
1477             max: POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MAX_INC;
1478             image {
1479                normal: "00_popup_bg.png";
1480                border: POPUP_BASE_CUSTOMSTYLE_BG_DEFAULT_IMAGE_BORDER_INC;
1481                border_scale: 1;
1482             }
1483             align: 0.0 0.0;
1484          }
1485       }
1486       part { name: "elm.bg.title";
1487          type: IMAGE;
1488          scale : 1;
1489          description { state: "default" 0.0;
1490             min: POPUP_BASE_CUSTOMSTYLE_TITLE_DEFAULT_MIN_INC;
1491             fixed : 1 1;
1492             align: 0.5 0.0;
1493             visible: 0;
1494             rel1 {
1495                relative: 0.5 0.0;
1496                to: "base";
1497             }
1498             rel2 {
1499                relative: 0.5 0.0;
1500                to: "base";
1501             }
1502          }
1503          description { state: "visible" 0.0;
1504             inherit: "default" 0.0;
1505             visible: 1;
1506          }
1507       }
1508       part { name: "elm.rect.title.bottom.line";
1509          type: RECT;
1510          description { state: "default" 0.0;
1511             min: POPUP_BASE_CUSTOMSTYLE_TITLE_BOTTOM_LINE_MIN_INC;
1512             fixed : 0 1;
1513             align: 0.5 0.0;
1514             visible: 0;
1515             color: POPUP_CUSTOMSTYLE_TITLE_BOTTOM_LINE_COLOR_INC;
1516             rel1 {
1517                relative: 0.0 1.0;
1518                to: "elm.bg.title";
1519             }
1520             rel2 {
1521                to: "elm.bg.title";
1522                offset: 0 1;
1523             }
1524          }
1525          description { state: "visible" 0.0;
1526             inherit: "default" 0.0;
1527             visible: 1;
1528          }
1529       }
1530       part { name: "elm.swallow.title.icon";
1531          type: SWALLOW;
1532          scale: 1;
1533          description { state: "default" 0.0;
1534             min: POPUP_BASE_CUSTOMSTYLE_TITLE_ICON_DEFAULT_MIN_MAX_INC;
1535             max: POPUP_BASE_CUSTOMSTYLE_TITLE_ICON_DEFAULT_MIN_MAX_INC;
1536             fixed: 1 1;
1537             align: 0.0 0.5;
1538             rel1.to: "elm.bg.title";
1539             rel2.to: "elm.bg.title";
1540             visible: 0;
1541          }
1542          description { state: "visible" 0.0;
1543             inherit: "default" 0.0;
1544             visible: 1;
1545          }
1546       }
1547       part { name: "elm.text.title";
1548          type: TEXTBLOCK;
1549          scale:1;
1550          description { state: "default" 0.0;
1551             text {
1552               style: "popup_title_custom_style";
1553               min: 0 0;
1554               max: 0 1;
1555               align: 0.5 0.0;
1556             }
1557             color: POPUP_CUSTOMSTYLE_TITLE_TEXT_COLOR_INC;
1558             visible:0;
1559             rel1.to: "elm.bg.title";
1560             rel2.to: "elm.bg.title";
1561          }
1562          description { state: "visible" 0.0;
1563             inherit: "default" 0.0;
1564             visible: 1;
1565          }
1566       }
1567       part { name: "elm.swallow.content";
1568          type: SWALLOW;
1569          scale : 1;
1570          description { state: "default" 0.0;
1571             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_DEFAULT_MIN_INC;
1572             fixed: 1 0;
1573             rel1 {
1574                relative: 0.5 0.0;
1575                to: "base";
1576             }
1577             rel2 {
1578                relative: 0.5 1.0;
1579                to: "base";
1580             }
1581          }
1582          description { state: "show_title_area" 0.0;
1583             inherit: "default" 0.0;
1584             rel1 {
1585                relative: 0.5 1.0;
1586                to: "elm.rect.title.bottom.line";
1587             }
1588          }
1589          description { state: "show_action_area" 0.0;
1590             inherit: "default" 0.0;
1591             rel2 {
1592                relative: 0.5 0.0;
1593                to: "elm.swallow.action_area";
1594             }
1595          }
1596          description { state: "show_action_title_area" 0.0;
1597             inherit: "default" 0.0;
1598             rel1 {
1599                relative: 0.5 1.0;
1600                to: "elm.rect.title.bottom.line";
1601             }
1602             rel2 {
1603                relative: 0.5 0.0;
1604                to: "elm.bg.action_area";
1605             }
1606          }
1607       }
1608       part { name: "elm.bg.action_area";
1609          type: IMAGE;
1610          scale : 1;
1611          description { state: "default" 0.0;
1612             min: POPUP_BASE_CUSTOMSTYLE_BUTTONAREA_BG_DEFAULT_MIN_INC;
1613             fixed : 1 1;
1614             align: 0.5 1.0;
1615             visible: 0;
1616             image.normal: "00_popup_bottom_bg.png";
1617             image.border: POPUP_BASE_CUSTOMSTYLE_BUTTONAREA_BG_IMAGE_BORDER_INC;
1618             image.border_scale: 1;
1619             rel1 {
1620                relative: 0.0 1.0;
1621                to: "base";
1622             }
1623             rel2.to: "base";
1624          }
1625          description { state: "visible" 0.0;
1626             inherit: "default" 0.0;
1627             visible: 1;
1628          }
1629       }
1630       part { name: "elm.swallow.action_area";
1631          type: SWALLOW;
1632          scale : 1;
1633          description { state: "default" 0.0;
1634             align: 0.0 0.0;
1635             rel1.to: "elm.bg.action_area";
1636             rel2.to: "elm.bg.action_area";
1637          }
1638       }
1639    }
1640    programs {
1641       program { name: show_title_icon;
1642          signal: "elm,state,title,icon,visible";
1643          source: "elm";
1644          action: STATE_SET "visible" 0.0;
1645          target: "elm.swallow.title.icon";
1646       }
1647       program { name: hide_title_icon;
1648          signal: "elm,state,title,icon,hidden";
1649          source: "elm";
1650          action: STATE_SET "default" 0.0;
1651          target: "elm.swallow.title.icon";
1652       }
1653       program { name: show_title_text;
1654          signal: "elm,state,title,text,visible";
1655          source: "elm";
1656          action: STATE_SET "visible" 0.0;
1657          target: "elm.text.title";
1658       }
1659       program { name: hide_title_text;
1660          signal: "elm,state,title,text,hidden";
1661          source: "elm";
1662          action: STATE_SET "default" 0.0;
1663          target: "elm.text.title";
1664       }
1665       program { name: show_title_area;
1666          signal: "elm,state,title_area,visible";
1667          source: "elm";
1668          script {
1669             new st[31];
1670             new Float:vl;
1671             get_state(PART:"elm.swallow.action_area", st, 30, vl);
1672             if (!strcmp(st, "visible"))
1673               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
1674             else
1675               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
1676             set_state(PART:"elm.bg.title", "visible", 0.0);
1677             set_state(PART:"elm.rect.title.bottom.line", "visible", 0.0);
1678
1679          }
1680       }
1681       program { name: hide_title_area;
1682          signal: "elm,state,title_area,hidden";
1683          source: "elm";
1684          action: STATE_SET "default" 0.0;
1685          script {
1686             new st[31];
1687             new Float:vl;
1688             get_state(PART:"elm.swallow.action_area", st, 30, vl);
1689             if (!strcmp(st, "visible"))
1690               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
1691             else
1692               set_state(PART:"elm.swallow.content", "default", 0.0);
1693             set_state(PART:"elm.bg.title", "default", 0.0);
1694             set_state(PART:"elm.rect.title.bottom.line", "default", 0.0);
1695          }
1696       }
1697       program { name: show_action_area;
1698          signal: "elm,state,action_area,visible";
1699          source: "elm";
1700          script {
1701             new st[31];
1702             new Float:vl;
1703             get_state(PART:"elm.bg.title", st, 30, vl);
1704             if (!strcmp(st, "visible"))
1705               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
1706             else
1707               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
1708             set_state(PART:"elm.bg.action_area", "visible", 0.0);
1709          }
1710       }
1711       program { name: hide_action_area;
1712          signal: "elm,state,action_area,hidden";
1713          source: "elm";
1714          action: STATE_SET "default" 0.0;
1715          script {
1716             new st[31];
1717             new Float:vl;
1718             get_state(PART:"elm.bg.title", st, 30, vl);
1719             if (!strcmp(st, "visible"))
1720               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
1721             else
1722               set_state(PART:"elm.swallow.content", "default", 0.0);
1723             set_state(PART:"elm.bg.action_area", "default", 0.0);
1724          }
1725       }
1726    } /* end of programs */
1727 }
1728
1729 group { name: "elm/popup/content/customstyle";
1730    parts{
1731       part{ name:"elm.swallow.content";
1732          type: SWALLOW;
1733          scale : 1;
1734          description { state: "default" 0.0;
1735             min: POPUP_CONTENT_CUSTOMSTYLE_DEFAULT_MIN_INC;
1736          }
1737       }
1738    }
1739 }
1740
1741 group { name: "elm/popup/buttons1/default";
1742    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1743    parts{
1744       part{ name:"actionbtn1";
1745          type: SWALLOW;
1746          scale : 1;
1747          description { state: "default" 0.0;
1748             min: POPUP_BUTTON1_DEFAULT_BUTTON1_DEFAULT_MIN_MAX_INC;
1749             max: POPUP_BUTTON1_DEFAULT_BUTTON1_DEFAULT_MIN_MAX_INC;
1750             fixed : 1 1;
1751             rel1.relative: 0.5 0.0;
1752             rel2.relative: 0.5 1.0;
1753          }
1754       }
1755    }
1756 }
1757
1758 group { name: "elm/popup/buttons2/default";
1759    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1760    parts{
1761       part{ name:"actionbtn1";
1762          type: SWALLOW;
1763          scale : 1;
1764          description { state: "default" 0.0;
1765             min: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1766             max: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1767             fixed : 1 1;
1768             align: 1.0 0.5;
1769             rel1.to: "elm.rect.pad_btn";
1770             rel2 {
1771                relative: 0.0 1.0;
1772                to: "elm.rect.pad_btn";
1773             }
1774          }
1775       }
1776       part { name: "elm.rect.pad_btn";
1777          type: RECT;
1778          scale : 1;
1779          description { state: "default" 0.0;
1780             min: POPUP_BUTTON2_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1781             max: POPUP_BUTTON2_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1782             fixed : 1 1;
1783             visible: 0;
1784             rel1.relative: 0.5 0.0;
1785             rel2.relative: 0.5 1.0;
1786          }
1787       }
1788       part{ name:"actionbtn2";
1789          type: SWALLOW;
1790          scale : 1;
1791          description { state: "default" 0.0;
1792             min: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1793             max: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1794             fixed : 1 1;
1795             align: 0.0 0.5;
1796             rel1 {
1797                relative: 1.0 0.0;
1798                to: "elm.rect.pad_btn";
1799             }
1800             rel2.to: "elm.rect.pad_btn";
1801          }
1802       }
1803    }
1804 }
1805
1806 group { name: "elm/popup/buttons3/default";
1807    alias: "elm/popup/buttons3/menustyle";
1808    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1809    parts{
1810       part{ name:"actionbtn1";
1811          type: SWALLOW;
1812          scale : 1;
1813          description { state: "default" 0.0;
1814             min: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1815             max: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1816             fixed : 1 1;
1817             align: 1.0 0.5;
1818             rel1.to: "elm.rect.pad_btn";
1819             rel2 {
1820                relative: 0.0 1.0;
1821                to: "elm.rect.pad_btn";
1822             }
1823          }
1824       }
1825       part { name: "elm.rect.pad_btn";
1826          type: RECT;
1827          scale : 1;
1828          description { state: "default" 0.0;
1829             min: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1830             max: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1831             fixed : 1 1;
1832             visible: 0;
1833             rel1.to: "actionbtn2";
1834             rel2 {
1835                relative: 0.0 1.0;
1836                to: "actionbtn2";
1837             }
1838          }
1839       }
1840       part{ name:"actionbtn2";
1841          type: SWALLOW;
1842          scale : 1;
1843          description { state: "default" 0.0;
1844             min: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1845             max: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1846             fixed : 1 1;
1847             rel1.relative: 0.5 0.0;
1848             rel2.relative: 0.5 1.0;
1849          }
1850       }
1851       part { name: "elm.rect.pad_btn2";
1852          type: RECT;
1853          scale : 1;
1854          description { state: "default" 0.0;
1855             min: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1856             max: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1857             fixed : 1 1;
1858             visible: 0;
1859             rel1 {
1860                relative: 1.0 0.0;
1861                to: "actionbtn2";
1862             }
1863             rel2.to: "actionbtn2";
1864          }
1865       }
1866       part{ name:"actionbtn3";
1867          type: SWALLOW;
1868          scale : 1;
1869          description { state: "default" 0.0;
1870             min: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1871             max: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1872             fixed : 1 1;
1873             align: 0.0 0.5;
1874             rel1 {
1875                relative: 1.0 0.0;
1876                to: "elm.rect.pad_btn2";
1877             }
1878             rel2.to: "elm.rect.pad_btn2";
1879          }
1880       }
1881    }
1882 }
1883
1884 group { name: "elm/popup/base/volumebarstyle";
1885    images {
1886       image: "00_popup_title_bg.png" COMP;
1887       image: "00_popup_bottom_bg.png" COMP;
1888       image: "00_popup_bg.png" COMP;
1889    }
1890    parts {
1891       part { name: "base";
1892          type: IMAGE;
1893          scale : 1;
1894          description { state: "default" 0.0;
1895             min: POPUP_BASE_VOLUMEBAR_STYLE_BASE_DEFAULT_MIN_INC;
1896             max: POPUP_BASE_VOLUMEBAR_STYLE_BASE_DEFAULT_MAX_INC;
1897             image {
1898                normal: "00_popup_bg.png";
1899                border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
1900                border_scale: 1;
1901             }
1902             align: 0.0 0.0;
1903          }
1904       }
1905       part { name: "elm.bg.title";
1906          type: IMAGE;
1907          scale : 1;
1908          description { state: "default" 0.0;
1909             min: POPUP_BASE_DEFAULT_TITLE_VOLUMEBAR_MIN_INC;
1910             fixed : 1 1;
1911             align: 0.5 0.0;
1912             visible: 0;
1913             image.normal: "00_popup_title_bg.png";
1914             image.border: POPUP_BASE_VOLUMEBAR_STYLE_TITLE_DEFAULT_IMAGE_BORDER_INC;
1915             image.border_scale: 1;
1916             rel1 {
1917                relative: 0.5 0.0;
1918                to: "base";
1919             }
1920             rel2 {
1921                relative: 0.5 0.0;
1922                to: "base";
1923             }
1924          }
1925          description { state: "visible" 0.0;
1926             inherit: "default" 0.0;
1927             visible: 1;
1928          }
1929       }
1930       part { name: "left_pad";
1931          type: RECT;
1932          scale: 1;
1933          description { state: "default" 0.0;
1934             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
1935             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
1936             fixed: 1 1;
1937             align: 0.0 0.0;
1938             visible: 0;
1939             rel1.to: "elm.bg.title";
1940          }
1941       }
1942       part { name: "right_pad";
1943          type: RECT;
1944          scale: 1;
1945          description { state: "default" 0.0;
1946             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
1947             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
1948             fixed: 1 1;
1949             align: 1.0 1.0;
1950             visible: 0;
1951             rel2.to: "elm.bg.title";
1952          }
1953       }
1954       part { name: "elm.swallow.title.icon";
1955          type: SWALLOW;
1956          scale: 1;
1957          description { state: "default" 0.0;
1958             min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
1959             max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
1960             fixed: 1 1;
1961             align: 0.0 0.5;
1962             rel1 {
1963                to: "left_pad";
1964                relative: 1.0 0.0;
1965             }
1966             rel2 {
1967                to: "right_pad";
1968                relative: 0.0 1.0;
1969             }
1970             visible: 0;
1971          }
1972          description { state: "visible" 0.0;
1973             inherit: "default" 0.0;
1974             visible: 1;
1975          }
1976       }
1977       part { name: "elm.text.title";
1978          type: TEXTBLOCK;
1979          scale:1;
1980          description { state: "default" 0.0;
1981             text {
1982               style: "popup_title_style";
1983               min: 0 0;
1984               max: 0 1;
1985               align: 0.5 0.0;
1986             }
1987             color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC;
1988             visible:0;
1989             rel1 {
1990                relative: 1.0 0.0;
1991                to: "left_pad";
1992             }
1993             rel2 {
1994                relative: 0.0 1.0;
1995                to: "right_pad";
1996             }
1997          }
1998          description { state: "visible" 0.0;
1999             inherit: "default" 0.0;
2000             visible: 1;
2001          }
2002       }
2003       part { name: "elm.swallow.content";
2004          type: SWALLOW;
2005          scale : 1;
2006          description { state: "default" 0.0;
2007             min: POPUP_BASE_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC;
2008             fixed: 1 0;
2009             rel1 {
2010                relative: 0.5 0.0;
2011                to: "base";
2012             }
2013             rel2 {
2014                relative: 0.5 1.0;
2015                to: "base";
2016             }
2017          }
2018          description { state: "show_title_area" 0.0;
2019             inherit: "default" 0.0;
2020             rel1 {
2021                relative: 0.5 1.0;
2022                to: "elm.bg.title";
2023             }
2024          }
2025          description { state: "show_action_area" 0.0;
2026             inherit: "default" 0.0;
2027             rel2 {
2028                relative: 0.5 0.0;
2029                to: "elm.bg.action_area";
2030             }
2031          }
2032          description { state: "show_action_title_area" 0.0;
2033             inherit: "default" 0.0;
2034             rel1 {
2035                relative: 0.5 1.0;
2036                to: "elm.bg.title";
2037             }
2038             rel2 {
2039                relative: 0.5 0.0;
2040                to: "elm.bg.action_area";
2041             }
2042          }
2043       }
2044       part { name: "elm.bg.action_area";
2045          type: IMAGE;
2046          scale : 1;
2047          description { state: "default" 0.0;
2048             min: POPUP_BASE_VOLUMEBAR_STYLE_BUTTONAREA_BG_DEFAULT_MIN_INC;
2049             fixed : 1 1;
2050             align: 0.5 1.0;
2051             visible: 0;
2052             image.normal: "00_popup_bottom_bg.png";
2053             image.border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC;
2054             image.border_scale: 1;
2055             rel1 {
2056                relative: 0.0 1.0;
2057                to: "base";
2058             }
2059             rel2.to: "base";
2060          }
2061          description { state: "visible" 0.0;
2062             inherit: "default" 0.0;
2063             visible: 1;
2064          }
2065       }
2066       part { name: "elm.swallow.action_area";
2067          type: SWALLOW;
2068          scale : 1;
2069          description { state: "default" 0.0;
2070             align: 0.0 0.0;
2071             rel1.to: "elm.bg.action_area";
2072             rel2.to: "elm.bg.action_area";
2073          }
2074       }
2075    }
2076    programs {
2077       program { name: show_title_icon;
2078          signal: "elm,state,title,icon,visible";
2079          source: "elm";
2080          action: STATE_SET "visible" 0.0;
2081          target: "elm.swallow.title.icon";
2082       }
2083       program { name: hide_title_icon;
2084          signal: "elm,state,title,icon,hidden";
2085          source: "elm";
2086          action: STATE_SET "default" 0.0;
2087          target: "elm.swallow.title.icon";
2088       }
2089       program { name: show_title_text;
2090          signal: "elm,state,title,text,visible";
2091          source: "elm";
2092          action: STATE_SET "visible" 0.0;
2093          target: "elm.text.title";
2094       }
2095       program { name: hide_title_text;
2096          signal: "elm,state,title,text,hidden";
2097          source: "elm";
2098          action: STATE_SET "default" 0.0;
2099          target: "elm.text.title";
2100       }
2101       program { name: show_title_area;
2102          signal: "elm,state,title_area,visible";
2103          source: "elm";
2104          script {
2105             new st[31];
2106             new Float:vl;
2107             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2108             if (!strcmp(st, "visible"))
2109               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2110             else
2111               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2112             set_state(PART:"elm.bg.title", "visible", 0.0);
2113          }
2114       }
2115       program { name: hide_title_area;
2116          signal: "elm,state,title_area,hidden";
2117          source: "elm";
2118          action: STATE_SET "default" 0.0;
2119          script {
2120             new st[31];
2121             new Float:vl;
2122             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2123             if (!strcmp(st, "visible"))
2124               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2125             else
2126               set_state(PART:"elm.swallow.content", "default", 0.0);
2127             set_state(PART:"elm.bg.title", "default", 0.0);
2128          }
2129       }
2130       program { name: show_action_area;
2131          signal: "elm,state,action_area,visible";
2132          source: "elm";
2133          script {
2134             new st[31];
2135             new Float:vl;
2136             get_state(PART:"elm.bg.title", st, 30, vl);
2137             if (!strcmp(st, "visible"))
2138               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2139             else
2140               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2141             set_state(PART:"elm.bg.action_area", "visible", 0.0);
2142          }
2143       }
2144       program { name: hide_action_area;
2145          signal: "elm,state,action_area,hidden";
2146          source: "elm";
2147          action: STATE_SET "default" 0.0;
2148          script {
2149             new st[31];
2150             new Float:vl;
2151             get_state(PART:"elm.bg.title", st, 30, vl);
2152             if (!strcmp(st, "visible"))
2153               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2154             else
2155               set_state(PART:"elm.swallow.content", "default", 0.0);
2156             set_state(PART:"elm.bg.action_area", "default", 0.0);
2157          }
2158       }
2159    } /* end of programs */
2160 }
2161
2162 group { name: "elm/popup/content/volumebarstyle";
2163    parts{
2164       part { name: "pad_t";
2165          type: RECT;
2166          scale : 1;
2167          mouse_events: 0;
2168          repeat_events: 1;
2169          description { state: "default" 0.0;
2170             align: 0.5 0.0;
2171             min: POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_TOP_MIN_INC;
2172             fixed: 0 1;
2173             color: 0 0 0 0;
2174             rel1 {
2175                relative: 1.0 0.0;to_x: "pad_l";
2176             }
2177             rel2 {
2178                relative: 0.0 0.0;to_x: "pad_r";
2179             }
2180          }
2181       }
2182       part { name: "pad_l";
2183          type: RECT;
2184          scale: 1;
2185          description { state: "default" 0.0;
2186             min : POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_LEFT_MIN_INC;
2187             fixed: 1 0;
2188             rel1 {
2189                relative: 0.0 0.0; 
2190             }
2191             rel2 {
2192                relative: 0.0 1.0;
2193             }
2194             color: 0 0 0 0;
2195             align: 0.0 0.0;
2196          }
2197       }
2198       part { name: "pad_r";
2199          type: RECT;
2200          scale: 1;
2201          description { state: "default" 0.0;
2202             min : POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_RIGHT_MIN_INC;
2203             fixed: 1 0;
2204             rel1 {
2205                relative: 1.0 0.0;
2206             }
2207             rel2 {
2208                relative: 1.0 1.0;
2209             }
2210             color: 0 0 0 0;
2211             align: 1.0 0.0;
2212          }
2213       } 
2214       part{ name:"elm.swallow.content";
2215          type: SWALLOW;
2216          scale : 1;
2217          description { state: "default" 0.0;
2218             min: POPUP_CONTENT_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC;
2219             align: 0.5 0.5;
2220             fixed: 1 0;
2221             rel1 {
2222                relative: 0.5 1.0;
2223                to: "pad_t";
2224             }
2225             rel2 {
2226                relative: 0.5 0.0;
2227                to: "pad_b";
2228             }
2229          }
2230       }
2231       part { name: "pad_b";
2232          type: RECT;
2233          scale : 1;
2234          mouse_events: 0;
2235          repeat_events: 1;
2236          description { state: "default" 0.0;
2237             align: 0.5 1.0;
2238             min: POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_BOTTOM_MIN_INC;
2239             fixed: 0 1;
2240             color: 0 0 0 0;
2241             rel1 {
2242                relative: 0.0 1.0;to_x: "pad_l";
2243             }
2244             rel2 {
2245                relative: 1.0 1.0;to_x: "pad_r";
2246             }
2247          }
2248       }
2249    }
2250 }
2251
2252 group { name: "elm/layout/popup/entrypasswordview";
2253    images {
2254       image : "00_search_input_field_bg.png" COMP;
2255    }
2256    parts{
2257       part { name: "base";
2258          scale: 1;
2259          description { state: "default" 0.0;
2260             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_WIDTH_INC POPUP_BASE_CUSTOMSTYLE_CONTENT_HEIGHT_INC;
2261             fixed: 1 0;
2262             align: 0.5 0.5;
2263             rel1 { relative: 0.0 0.0; }
2264             rel2 { relative: 1.0 1.0; }
2265          }
2266       }
2267       part { name: "pad_l";
2268          scale: 1;
2269          description { state: "default" 0.0;
2270             min : POPUP_BASE_CUSTOMSTYLE_CONTENT_SIDE_PADDING_INC 0;
2271             fixed: 1 0;
2272             rel1 {
2273                relative: 0.0 0.0; to: "base";
2274             }
2275             rel2 {
2276                relative: 0.0 1.0; to: "base";
2277             }
2278             align: 0.0 0.0;
2279          }
2280       }
2281       part { name: "elm.image1";
2282          type: IMAGE;
2283          scale: 1;
2284          description { state: "default" 0.0;
2285             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2286             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2287             fixed: 1 1;
2288             align: 0.0 0.5;
2289             rel1 { relative: 1.0 0.0; to_x: "pad_l"; to_y: "base"; }
2290             rel2 { relative: 1.0 1.0; to: "base"; }
2291             image { normal: "00_search_input_field_bg.png";
2292                border: 3 3 3 3;
2293                border_scale: 1;
2294             }
2295          }
2296       }
2297       part { name: "elm.entry1";
2298          type: SWALLOW;
2299          scale: 1;
2300          description { state: "default" 0.0;
2301              rel1.to: "elm.image1";
2302              rel2.to: "elm.image1";
2303          }
2304       }
2305       part { name: "pad_n";
2306          scale: 1;
2307          description { state: "default" 0.0;
2308             min : POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 0;
2309             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 9999;
2310             fixed: 1 0;
2311             rel1 {
2312                relative: 1.0 0.0; to_x: "elm.image1"; to_y: "base";
2313             }
2314             rel2 {
2315                relative: 1.0 1.0; to: "base";
2316             }
2317             align: 0.0 0.0;
2318          }
2319       }
2320       part { name: "elm.image2";
2321          type: IMAGE;
2322          scale: 1;
2323          description { state: "default" 0.0;
2324             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2325             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2326             fixed: 1 1;
2327             align: 0.0 0.5;
2328             rel1 { relative: 1.0 0.0; to_x: "pad_n"; to_y: "base"; }
2329             rel2 { relative: 1.0 1.0; to: "base"; }
2330             image { normal: "00_search_input_field_bg.png";
2331                border: 3 3 3 3;
2332                border_scale: 1;
2333             }
2334          }
2335       }
2336       part { name: "elm.entry2";
2337          type: SWALLOW;
2338          scale: 1;
2339          description { state: "default" 0.0;
2340              rel1.to: "elm.image2";
2341              rel2.to: "elm.image2";
2342          }
2343       }
2344       part { name: "pad_n2";
2345          scale: 1;
2346          description { state: "default" 0.0;
2347             min : POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 0;
2348             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 9999;
2349             fixed: 1 0;
2350             rel1 {
2351                relative: 1.0 0.0; to_x: "elm.image2"; to_y: "base";
2352             }
2353             rel2 {
2354                relative: 1.0 1.0; to: "base";
2355             }
2356             align: 0.0 0.0;
2357          }
2358       }
2359       part { name: "elm.image3";
2360          type: IMAGE;
2361          scale: 1;
2362          description { state: "default" 0.0;
2363             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2364             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2365             fixed: 1 1;
2366             align: 0.0 0.5;
2367             rel1 { relative: 1.0 0.0; to_x: "pad_n2"; to_y: "base"; }
2368             rel2 { relative: 1.0 1.0; to: "base"; }
2369             image { normal: "00_search_input_field_bg.png";
2370                border: 3 3 3 3;
2371                border_scale: 1;
2372             }
2373          }
2374       }
2375       part { name: "elm.entry3";
2376          type: SWALLOW;
2377          scale: 1;
2378          description { state: "default" 0.0;
2379              rel1.to: "elm.image3";
2380              rel2.to: "elm.image3";
2381          }
2382       }
2383       part { name: "pad_n3";
2384          scale: 1;
2385          description { state: "default" 0.0;
2386             min : POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 0;
2387             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 9999;
2388             fixed: 1 0;
2389             rel1 {
2390                relative: 1.0 0.0; to_x: "elm.image3"; to_y: "base";
2391             }
2392             rel2 {
2393                relative: 1.0 1.0; to: "base";
2394             }
2395             align: 0.0 0.0;
2396          }
2397       }
2398       part { name: "elm.image4";
2399          type: IMAGE;
2400          scale: 1;
2401          description { state: "default" 0.0;
2402             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2403             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2404             fixed: 1 1;
2405             align: 0.0 0.5;
2406             rel1 { relative: 1.0 0.0; to_x: "pad_n3"; to_y: "base"; }
2407             rel2 { relative: 1.0 1.0; to: "base"; }
2408             image { normal: "00_search_input_field_bg.png";
2409                border: 3 3 3 3;
2410                border_scale: 1;
2411             }
2412          }
2413       }
2414       part { name: "elm.entry4";
2415          type: SWALLOW;
2416          scale: 1;
2417          description { state: "default" 0.0;
2418              rel1.to: "elm.image4";
2419              rel2.to: "elm.image4";
2420          }
2421       }
2422    }
2423 }
2424
2425 group { name: "elm/popup/base/content_expand";
2426    images {
2427       image: "00_popup_title_bg.png" COMP;
2428       image: "00_popup_bottom_bg.png" COMP;
2429       image: "00_popup_bg.png" COMP;
2430    }
2431    parts {
2432       part { name: "base";
2433          type: IMAGE;
2434          scale : 1;
2435          description { state: "default" 0.0;
2436             rel1.to_x: "elm.swallow.content";
2437             rel2.to_x: "elm.swallow.content";
2438             image {
2439                normal: "00_popup_bg.png";
2440                border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
2441                border_scale: 1;
2442             }
2443             align: 0.0 0.0;
2444          }
2445       }
2446       part { name: "elm.bg.title";
2447          type: IMAGE;
2448          scale : 1;
2449          description { state: "default" 0.0;
2450             min: 0 64;
2451             fixed : 0 1;
2452             align: 0.5 0.0;
2453             visible: 0;
2454             image.normal: "00_popup_title_bg.png";
2455             image.border: POPUP_BASE_DEFAULT_TITLE_DEFAULT_IMAGE_BORDER_INC;
2456             image.border_scale: 1;
2457             rel1.to_x: "base";
2458             rel2 {
2459                relative: 1.0 0.0;
2460                to_x: "base";
2461             }
2462          }
2463          description { state: "visible" 0.0;
2464             inherit: "default" 0.0;
2465             visible: 1;
2466          }
2467       }
2468       part { name: "left_pad";
2469          type: RECT;
2470          scale: 1;
2471          description { state: "default" 0.0;
2472             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2473             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2474             fixed: 1 1;
2475             align: 0.0 0.0;
2476             visible: 0;
2477             rel1.to: "elm.bg.title";
2478          }
2479       }
2480       part { name: "right_pad";
2481          type: RECT;
2482          scale: 1;
2483          description { state: "default" 0.0;
2484             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2485             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2486             fixed: 1 1;
2487             align: 1.0 1.0;
2488             visible: 0;
2489             rel2.to: "elm.bg.title";
2490          }
2491       }
2492       part { name: "elm.swallow.title.icon";
2493          type: SWALLOW;
2494          scale: 1;
2495          description { state: "default" 0.0;
2496             min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
2497             max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
2498             fixed: 1 1;
2499             align: 0.0 0.5;
2500             rel1 {
2501                to: "left_pad";
2502                relative: 1.0 0.0;
2503             }
2504             rel2 {
2505                to: "right_pad";
2506                relative: 0.0 1.0;
2507             }
2508             visible: 0;
2509          }
2510          description { state: "visible" 0.0;
2511             inherit: "default" 0.0;
2512             visible: 1;
2513          }
2514       }
2515       part { name: "elm.text.title";
2516          type: TEXTBLOCK;
2517          scale:1;
2518          description { state: "default" 0.0;
2519             text {
2520               style: "popup_title_style";
2521               min: 0 0;
2522               max: 0 1;
2523               align: 0.5 0.0;
2524             }
2525             color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC;
2526             visible:0;
2527             rel1 {
2528                relative: 1.0 0.0;
2529                to: "left_pad";
2530             }
2531             rel2 {
2532                relative: 0.0 1.0;
2533                to: "right_pad";
2534             }
2535          }
2536          description { state: "visible" 0.0;
2537             inherit: "default" 0.0;
2538             visible: 1;
2539          }
2540       }
2541       part { name: "elm.swallow.content";
2542          type: SWALLOW;
2543          scale : 1;
2544          description { state: "default" 0.0;
2545             fixed: 1 0;
2546             rel1.relative: 0.5 0.0;
2547             rel2.relative: 0.5 1.0;
2548          }
2549          description { state: "show_title_area" 0.0;
2550             inherit: "default" 0.0;
2551             rel1 {
2552                relative: 0.5 1.0;
2553                to_y: "elm.bg.title";
2554             }
2555          }
2556          description { state: "show_action_area" 0.0;
2557             inherit: "default" 0.0;
2558             rel2 {
2559                relative: 0.5 0.0;
2560                to_y: "elm.bg.action_area";
2561             }
2562          }
2563          description { state: "show_action_title_area" 0.0;
2564             inherit: "default" 0.0;
2565             rel1 {
2566                relative: 0.5 1.0;
2567                to_y: "elm.bg.title";
2568             }
2569             rel2 {
2570                relative: 0.5 0.0;
2571                to_y: "elm.bg.action_area";
2572             }
2573          }
2574       }
2575       part { name: "elm.bg.action_area";
2576          type: IMAGE;
2577          scale : 1;
2578          description { state: "default" 0.0;
2579             min: 0 96;
2580             fixed : 0 1;
2581             align: 0.5 1.0;
2582             visible: 0;
2583             image.normal: "00_popup_bottom_bg.png";
2584             image.border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC;
2585             image.border_scale: 1;
2586             rel1 {
2587                relative: 0.0 1.0;
2588                to_x: "base";
2589             }
2590             rel2.to_x: "base";
2591          }
2592          description { state: "visible" 0.0;
2593             inherit: "default" 0.0;
2594             visible: 1;
2595          }
2596       }
2597       part { name: "elm.swallow.action_area";
2598          type: SWALLOW;
2599          scale : 1;
2600          description { state: "default" 0.0;
2601             rel1.to: "elm.bg.action_area";
2602             rel2.to: "elm.bg.action_area";
2603          }
2604       }
2605    }
2606    programs {
2607       program { name: show_title_icon;
2608          signal: "elm,state,title,icon,visible";
2609          source: "elm";
2610          action: STATE_SET "visible" 0.0;
2611          target: "elm.swallow.title.icon";
2612       }
2613       program { name: hide_title_icon;
2614          signal: "elm,state,title,icon,hidden";
2615          source: "elm";
2616          action: STATE_SET "default" 0.0;
2617          target: "elm.swallow.title.icon";
2618       }
2619       program { name: show_title_text;
2620          signal: "elm,state,title,text,visible";
2621          source: "elm";
2622          action: STATE_SET "visible" 0.0;
2623          target: "elm.text.title";
2624       }
2625       program { name: hide_title_text;
2626          signal: "elm,state,title,text,hidden";
2627          source: "elm";
2628          action: STATE_SET "default" 0.0;
2629          target: "elm.text.title";
2630       }
2631       program { name: show_title_area;
2632          signal: "elm,state,title_area,visible";
2633          source: "elm";
2634          script {
2635             new st[31];
2636             new Float:vl;
2637             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2638             if (!strcmp(st, "visible"))
2639               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2640             else
2641               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2642             set_state(PART:"elm.bg.title", "visible", 0.0);
2643          }
2644       }
2645       program { name: hide_title_area;
2646          signal: "elm,state,title_area,hidden";
2647          source: "elm";
2648          action: STATE_SET "default" 0.0;
2649          script {
2650             new st[31];
2651             new Float:vl;
2652             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2653             if (!strcmp(st, "visible"))
2654               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2655             else
2656               set_state(PART:"elm.swallow.content", "default", 0.0);
2657             set_state(PART:"elm.bg.title", "default", 0.0);
2658          }
2659       }
2660       program { name: show_action_area;
2661          signal: "elm,state,action_area,visible";
2662          source: "elm";
2663          script {
2664             new st[31];
2665             new Float:vl;
2666             get_state(PART:"elm.bg.title", st, 30, vl);
2667             if (!strcmp(st, "visible"))
2668               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2669             else
2670               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2671             set_state(PART:"elm.bg.action_area", "visible", 0.0);
2672          }
2673       }
2674       program { name: hide_action_area;
2675          signal: "elm,state,action_area,hidden";
2676          source: "elm";
2677          action: STATE_SET "default" 0.0;
2678          script {
2679             new st[31];
2680             new Float:vl;
2681             get_state(PART:"elm.bg.title", st, 30, vl);
2682             if (!strcmp(st, "visible"))
2683               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2684             else
2685               set_state(PART:"elm.swallow.content", "default", 0.0);
2686             set_state(PART:"elm.bg.action_area", "default", 0.0);
2687          }
2688       }
2689    }
2690 }
2691
2692 group { name: "elm/popup/buttons1/content_expand";
2693    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2694    parts{
2695       part{ name:"actionbtn1";
2696          type: SWALLOW;
2697          scale : 1;
2698          description { state: "default" 0.0;
2699             rel1.relative: 0.2 0.1;
2700             rel2.relative: 0.8 0.9;
2701          }
2702       }
2703    }
2704 }
2705
2706 group { name: "elm/popup/buttons2/content_expand";
2707    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2708    parts{
2709       part{ name:"actionbtn1";
2710          type: SWALLOW;
2711          scale : 1;
2712          description { state: "default" 0.0;
2713             align: 0.0 0.5;
2714             rel1.relative: 0.1 0.1;
2715             rel2.relative: 0.45 0.9;
2716          }
2717       }
2718       part{ name:"actionbtn2";
2719          type: SWALLOW;
2720          scale : 1;
2721          description { state: "default" 0.0;
2722             align: 0.0 0.5;
2723             rel1.relative: 0.55 0.1;
2724             rel2.relative: 0.9 0.9;
2725          }
2726       }
2727    }
2728 }
2729
2730 group { name: "elm/popup/buttons3/content_expand";
2731    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2732    parts{
2733       part{ name:"actionbtn1";
2734          type: SWALLOW;
2735          scale : 1;
2736          description { state: "default" 0.0;
2737             align: 0.0 0.5;
2738             rel1.relative: 0.05 0.1;
2739             rel2.relative: 0.3 0.9;
2740          }
2741       }
2742       part{ name:"actionbtn2";
2743          type: SWALLOW;
2744          scale : 1;
2745          description { state: "default" 0.0;
2746             align: 0.0 0.5;
2747             rel1.relative: 0.375 0.1;
2748             rel2.relative: 0.625 0.9;
2749          }
2750       }
2751       part{ name:"actionbtn3";
2752          type: SWALLOW;
2753          scale : 1;
2754          description { state: "default" 0.0;
2755             align: 0.0 0.5;
2756             rel1.relative: 0.7 0.1;
2757             rel2.relative: 0.95 0.9;
2758          }
2759       }
2760    }
2761 }
2762
2763 group { name: "elm/popup/item/content_expand";
2764    inherit: "elm/popup/item/default";
2765    script {
2766       public item_state = POPUP_ITEM_STATE_ENABLED;
2767    }
2768    parts {
2769       part { name: "bg";
2770          mouse_events: 0;
2771          type: RECT;
2772          description { state: "default" 0.0;
2773             color: 240 240 240 255;
2774             min: 620 71;
2775             align: 0.5 0.0;
2776          }
2777          description { state: "clicked" 0.0;
2778             color: 190 170 150 255;
2779          }
2780       }
2781    }
2782 }
2783
2784 group { name: "elm/popup/content/content_expand";
2785    parts{
2786       part{ name:"elm.swallow.content";
2787          type: SWALLOW;
2788          scale : 1;
2789          description { state: "default" 0.0;
2790          }
2791       }
2792    }
2793 }
2794
2795 #undef POPUP_ITEM_STATE_ENABLED
2796 #undef POPUP_ITEM_STATE_DISABLED