tizen 2.3 release
[apps/home/b2-clocksetting.git] / data / groups / volumn_popup.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics, Inc.
3  * All rights reserved.
4  *
5  * This software is a confidential and proprietary information
6  * of Samsung Electronics, Inc. ("Confidential Information").  You
7  * shall not disclose such Confidential Information and shall use
8  * it only in accordance with the terms of the license agreement
9  * you entered into with Samsung Electronics.
10  */
11 group { name: "setting/2finger_popup/default";
12   styles{
13       style { name: "custom_style";
14          base: "font=Tizen:style=Regular font_size="36" align=center color=""#FFFFFF"" wtext_class=tizen";
15          tag:  "br" "\n";
16          tag:  "hilight" "+ font_weight=Bold";
17          tag:  "b" "+ font_weight=Bold";
18          tag:  "tab" "\t";
19       }
20       style { name: "outdoor_style";
21          base: "font=Tizen:style=Regular font_size="25" align=center color=#FF9100 text_class=tizen";
22          tag:  "br" "\n";
23          tag:  "hilight" "+ font_weight=Bold";
24          tag:  "b" "+ font_weight=Bold";
25          tag:  "tab" "\t";
26       }
27   }
28   parts {
29     part { name: "bg";
30       type: RECT;
31       scale: 1;
32       description { state: "default";
33         color: 0 0 0 255;
34         rel1.relative: 0.0 0.0;
35         rel2.relative: 1.0 1.0;
36       }
37     }
38     part { name: "top_padding";
39        type: SPACER;
40        scale: 1;
41        description { state: "default" 0.0;
42           min: 0 10;
43           max: -1 10;
44           fixed: 0 1;
45           align: 0.5 0.0;
46           rel2.relative: 1.0 0.0;
47        }
48     }
49     part { name: "bottom_padding";
50        type: SPACER;
51        scale: 1;
52        description { state: "default" 0.0;
53           min: 0 28;
54           max: -1 28;
55           fixed: 0 1;
56           align: 0.5 1.0;
57           rel1.relative: 0.0 1.0;
58        }
59     }
60     part { name: "left_padding";
61        type: SPACER;
62        scale: 1;
63        description { state: "default" 0.0;
64           min: 16 0;
65           max: 16 -1;
66           fixed: 1 0;
67           align: 0.0 0.5;
68           rel2.relative: 0.0 1.0;
69        }
70     }
71     part { name: "right_padding";
72        type: SPACER;
73        scale: 1;
74        description { state: "default" 0.0;
75           min: 16 0;
76           max: 16 -1;
77           fixed: 1 0;
78           align: 1.0 0.5;
79           rel1.relative: 1.0 0.0;
80        }
81     }
82     part { name: "elm.icon.left_top";
83       type: SWALLOW;
84       scale: 1;
85       description { state: "default" 0.0;
86          min: 60 60;
87          max: 60 60;
88          fixed: 1 1;
89          align: 0 0;
90          rel1 {
91            to_x: "left_padding";
92            to_y: "top_padding";
93            relative: 1 1;
94          }
95          rel2 {
96            to_x: "left_padding";
97            to_y: "top_padding";
98            relative: 1 1;
99          }
100       }
101     }
102     part { name: "elm.icon.right_top";
103       type: SWALLOW;
104       scale: 1;
105       description { state: "default" 0.0;
106          min: 60 60;
107          max: 60 60;
108          fixed: 1 1;
109          align: 1 0;
110          rel1 {
111            to_x: "right_padding";
112            to_y: "top_padding";
113            relative: 0 1;
114          }
115          rel2 {
116            to_x: "right_padding";
117            to_y: "top_padding";
118            relative: 0 1;
119          }
120       }
121     }
122     part { name: "elm.text";
123        type: TEXTBLOCK;
124        scale: 1;
125        description { state: "default" 0.0;
126           align: 1 0;
127           rel1 {
128              to_x: "elm.icon.right_top";
129              to_y: "top_padding";
130              relative: 0 1;
131           }
132           rel2 {
133              to_x: "elm.icon.right_top";
134              to_y: "top_padding";
135              relative: 0 1;
136           }
137           text {
138              style: "custom_style";
139              align: 0 0.5;
140              min: 1 1;
141           }
142        }
143     }
144     part { name: "v_padding1";
145        type: SPACER;
146        scale: 1;
147        description { state: "default" 0.0;
148           min: 0 18;
149           max: -1 18;
150           fixed: 0 1;
151           align: 0.5 0;
152           rel1 {
153             to_y: "elm.text";
154             relative: 0.0 1.0;
155           }
156           rel1 {
157             to_y: "elm.text";
158             relative: 1.0 1.0;
159           }
160        }
161     }
162     part { name: "left_body_padding";
163        type: SPACER;
164        scale: 1;
165        description { state: "default" 0.0;
166           min: 18 0;
167           max: 18 -1;
168           fixed: 1 0;
169           align: 0.0 0.5;
170           rel2.relative: 0.0 1.0;
171        }
172     }
173     part { name: "right_body_padding";
174        type: SPACER;
175        scale: 1;
176        description { state: "default" 0.0;
177           min: 18 0;
178           max: 18 -1;
179           fixed: 1 0;
180           align: 1.0 0.5;
181           rel1.relative: 1.0 0.0;
182        }
183     }
184     part { name: "elm.icon.1";
185       type: SWALLOW;
186       scale: 1;
187       description { state: "default" 0.0;
188          min: 0 80;
189          fixed: 1 1;
190          align: 0.5 0.5;
191          rel1 {
192            to_x: "left_body_padding";
193            to_y: "v_padding1";
194            relative: 1 1;
195            offset: 0 52;
196          }
197          rel2 {
198            to_x: "right_body_padding";
199            to_y: "v_padding1";
200            relative: 0 1;
201          }
202       }
203     }
204     part { name: "v_padding2";
205        type: SPACER;
206        scale: 1;
207        description { state: "default" 0.0;
208           min: 0 10;
209           max: -1 10;
210           fixed: 0 1;
211           align: 0.5 0;
212           rel1 {
213             to_y: "elm.icon.1";
214             relative: 0.0 1.0;
215           }
216           rel1 {
217             to_y: "elm.icon.1";
218             relative: 1.0 1.0;
219           }
220        }
221     }
222     part { name: "elm.text.2";
223       type: TEXTBLOCK;
224       scale: 1;
225       description { state: "default" 0.0;
226          min: 0 40;
227          fixed: 1 1;
228          align: 0.5 0;
229          visible: 1;
230          rel1 {
231            to_x: "left_body_padding";
232            to_y: "v_padding2";
233            relative: 1 1;
234            offset: 0 5;
235          }
236          rel2 {
237            to_x: "right_body_padding";
238            to_y: "v_padding2";
239            relative: 0 1;
240            offset: 0 35;
241          }
242          text {
243                 style: "outdoor_style";
244             align: 0.5 0.5;
245             min: 1 1;
246          }
247       }
248       description { state: "visible" 0.0;
249         inherit: "default" 0.0;
250         visible: 1;
251       }
252     }
253     programs {
254      program {
255         signal: "elm,state,outdoor.visible";
256         source: "*";
257         action: STATE_SET "visible" 0.0;
258         target: "elm.text.2";
259      }
260     }
261   }
262 }
263
264
265 group { name: "setting/2finger_popup/default2";
266   parts {
267     part { name: "bg";
268       type: RECT;
269       scale: 1;
270       description { state: "default";
271         rel1 { relative: 0.0 0.0; }
272         rel2 { relative: 1.0 1.0; }
273         color: 0 0 0 255;
274       }
275     }
276     part { name: "top_padding";
277        type: SPACER;
278        scale: 1;
279        description { state: "default" 0.0;
280           min: 0 5;
281           max: -1 5;
282           fixed: 0 1;
283           align: 0.5 0.0;
284           rel2.relative: 1.0 0.0;
285        }
286     }
287     part { name: "bottom_padding";
288        type: SPACER;
289        scale: 1;
290        description { state: "default" 0.0;
291           min: 0 28;
292           max: -1 28;
293           fixed: 0 1;
294           align: 0.5 1.0;
295           rel1.relative: 0.0 1.0;
296        }
297     }
298     part { name: "left_padding";
299        type: SPACER;
300        scale: 1;
301        description { state: "default" 0.0;
302           min: 16 0;
303           max: 16 -1;
304           fixed: 1 0;
305           align: 0.0 0.5;
306           rel2.relative: 0.0 1.0;
307        }
308     }
309     part { name: "right_padding";
310        type: SPACER;
311        scale: 1;
312        description { state: "default" 0.0;
313           min: 16 0;
314           max: 16 -1;
315           fixed: 1 0;
316           align: 1.0 0.5;
317           rel1.relative: 1.0 0.0;
318        }
319     }
320     part { name: "elm.icon.left_top";
321       type: SWALLOW;
322       scale: 1;
323       description { state: "default" 0.0;
324          min: 60 60;
325          max: 60 60;
326          fixed: 1 1;
327          align: 0 0;
328          rel1 {
329            to_x: "left_padding";
330            to_y: "top_padding";
331            relative: 1 1;
332          }
333          rel2 {
334            to_x: "left_padding";
335            to_y: "top_padding";
336            relative: 1 1;
337          }
338       }
339     }
340     part { name: "elm.icon.right_top";
341       type: SWALLOW;
342       scale: 1;
343       description { state: "default" 0.0;
344          min: 60 60;
345          max: 60 60;
346          fixed: 1 1;
347          align: 1 0;
348          rel1 {
349            to_x: "right_padding";
350            to_y: "top_padding";
351            relative: 0 1;
352          }
353          rel2 {
354            to_x: "right_padding";
355            to_y: "top_padding";
356            relative: 0 1;
357          }
358       }
359     }
360     part { name: "elm.text";
361        type: TEXTBLOCK;
362        scale: 1;
363        description { state: "default" 0.0;
364           align: 1 0;
365           max: 0 0;
366           rel1 {
367              to_x: "elm.icon.right_top";
368              to_y: "top_padding";
369              relative: 0 1;
370           }
371           rel2 {
372              to_x: "elm.icon.right_top";
373              to_y: "top_padding";
374              relative: 0 1;
375           }
376           text {
377              style: "custom_style";
378              align: 0 0.5;
379              min: 1 1;
380           }
381        }
382     }
383     part { name: "v_padding1";
384        type: SPACER;
385        scale: 1;
386        description { state: "default" 0.0;
387           min: 0 0;
388           max: -1 0;
389           fixed: 0 1;
390           align: 0.5 0;
391           rel1 {
392             to_y: "elm.text";
393             relative: 0.0 1.0;
394           }
395           rel1 {
396             to_y: "elm.text";
397             relative: 1.0 1.0;
398           }
399        }
400     }
401     part { name: "left_body_padding";
402        type: SPACER;
403        scale: 1;
404        description { state: "default" 0.0;
405           min: 18 0;
406           max: 18 -1;
407           fixed: 1 0;
408           align: 0.0 0.5;
409           rel2.relative: 0.0 1.0;
410        }
411     }
412     part { name: "right_body_padding";
413        type: SPACER;
414        scale: 1;
415        description { state: "default" 0.0;
416           min: 18 0;
417           max: 18 -1;
418           fixed: 1 0;
419           align: 1.0 0.5;
420           rel1.relative: 1.0 0.0;
421        }
422     }
423     part { name: "elm.icon.1";
424       type: SWALLOW;
425       scale: 1;
426       description { 
427                 state: "default" 0.0;
428          min: 0 80;
429          fixed: 1 1;
430          align: 0.5 0.0;
431          rel1 {
432            to_x: "left_body_padding";
433            to_y: "v_padding1";
434            relative: 1 1;
435            //offset: 0 52; // CHANGE
436            offset: 0 10;
437          }
438          rel2 {
439            to_x: "right_body_padding";
440            to_y: "v_padding1";
441            relative: 0 1;
442          }
443                 }
444       description { 
445                 state: "default_long" 0.0;
446          min: 0 80;
447          fixed: 1 1;
448          align: 0.5 0.0;
449          rel1 {
450            to_x: "left_body_padding";
451            to_y: "v_padding1";
452            relative: 1 1;
453            offset: 0 65; // CHANGE
454            //offset: 0 10;
455          }
456          rel2 {
457            to_x: "right_body_padding";
458            to_y: "v_padding1";
459            relative: 0 1;
460          }
461       }
462         } 
463     part { name: "v_padding2";
464        type: SPACER;
465        scale: 1;
466        description { state: "default" 0.0;
467           min: 0 18;
468           max: -1 18;
469           fixed: 0 1;
470           align: 0.5 0;
471           rel1 {
472             to_y: "elm.icon.1";
473             relative: 0.0 1.0;
474           }
475           rel1 {
476             to_y: "elm.icon.1";
477             relative: 1.0 1.0;
478           }
479        }
480     }
481     part { name: "elm.text.2";
482       type: TEXTBLOCK;
483       scale: 1;
484       description { state: "default" 0.0;
485          min: 0 30;
486          fixed: 1 1;
487          align: 0.5 0;
488          visible: 1;
489          rel1 {
490            to_x: "left_body_padding";
491            to_y: "v_padding2";
492            relative: 1 1;
493            offset: 0 0;
494          }
495          rel2 {
496            to_x: "right_body_padding";
497            to_y: "v_padding2";
498            relative: 0 1;
499          }
500          text {
501                 style: "outdoor_style";
502             align: 0.5 0.0;
503             min: 1 1;
504          }
505       }
506       description { state: "visible" 0.0;
507         inherit: "default" 0.0;
508         visible: 1;
509       }
510     }
511     
512     part { name: "lt_padding";
513         type: SPACER;
514         scale: 1;
515         description { state: "default" 0.0;
516           min: 3 3;
517           fixed: 1 1;
518           align: 0.0 0.0;
519           rel1 {
520                 relative: 0.0 0.0;
521                 offset: 0.0 180;
522           }
523           rel2.relative: 0.0 0.0;
524         }
525       }
526       part { name: "rb_padding";
527         type: SPACER;
528         scale: 1;
529         description { state: "default" 0.0;
530           min: 3 3;
531           fixed: 1 1;
532           align: 1.0 1.0;
533           rel1.relative: 1.0 1.0;
534         }
535       }
536       part { name: "c_padding";
537         type: SPACER;
538         scale: 1;
539         description { state: "default" 0.0;
540           min: 1 0;
541           max: 1 -1;
542           fixed: 1 0;
543           align: 0.5 0.5;
544         }
545       }
546       part{ name:"actionbtn1";
547          type: SWALLOW;
548          scale: 1;
549          description { state: "default" 0.0;
550                 max: 300 76;
551             rel1 {
552               to: "lt_padding";
553               relative: 1.0 1.0;
554             }
555             rel2 {
556               to_x: "c_padding";
557               to_y: "rb_padding";
558               relative: 0.0 0.0;
559             }
560          }
561       }
562       part{ name:"actionbtn2";
563          type: SWALLOW;
564          scale: 1;
565          description { state: "default" 0.0;
566                 max: 300 76;
567             rel1 {
568               to_x: "c_padding";
569               to_y: "lt_padding";
570               relative: 1.0 1.0;
571             }
572             rel2 {
573               to: "rb_padding";
574               relative: 0.0 0.0;
575             }
576          }
577       }
578     
579        part { name: "btn1";
580          type: SWALLOW;
581          scale: 1;
582          description { state: "default" 0.0;
583             fixed: 1 1;
584             rel1 {
585                relative: 0.0 1.0;
586             }
587             rel2 {
588                to_x: "padding";
589                relative: 0.0 1.0;
590             }
591             min: 0 76;
592             align: 0.5 1;
593          }
594       }
595       part { name: "padding";
596          type: SPACER;
597          scale: 1;
598          mouse_events: 0;
599          description { state: "default" 0.0;
600             rel1 {
601                relative: 0.5 1.0;
602             }
603             rel2 {
604                relative: 0.5 1.0;
605             }
606             align: 0.5 1.0;
607             min: 1 0;
608             max: 1 0;
609             fixed: 1 0;
610          }
611       }
612       part { name: "btn2";
613          type: SWALLOW;
614          scale: 1;
615          description { state: "default" 0.0;
616             fixed: 1 1;
617             rel1 {
618                to_x: "padding";
619                relative: 1.0 1.0;
620             }
621             rel2 {
622                relative: 1.0 1.0;
623             }
624             min: 0 76;
625             align: 0.5 1;
626          }
627       }
628    
629     
630     programs {
631      program {
632         signal: "elm,state,outdoor.visible";
633         source: "*";
634         action: STATE_SET "visible" 0.0;
635         target: "elm.text.2";
636      }
637
638                 program { 
639                                 name: "show_normal_popup";
640                                 signal: "set,popup,small";
641                                 source: "*";
642                                 action: STATE_SET "default" 0.0;
643                                 target: "elm.icon.1";
644                         }
645                         program { 
646                                 name: "show_long_popup";
647                                 signal: "set,popup,long";
648                                 source: "*";
649                                 action: STATE_SET "default_long" 0.0;
650                                 target: "elm.icon.1";
651                         }
652     }
653   }
654 }