tizen 2.3 release
[apps/home/b2-clocksetting.git] / data / changeable / groups / setting_picker.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
12 #define UP_SWALLOW_BTN(_to_part, _visibility) \
13    part { \
14       name: "btn.up"; \
15       type: SWALLOW; \
16       scale: 1; \
17       description { state: "default" 0.0; \
18          align: 0.5 0.0; \
19          min: 84 92; \
20          max: 84 92; \
21          fixed: 1 1; \
22          visible: _visibility; \
23          rel1 { \
24             to: _to_part; \
25          } \
26          rel2 { \
27             to: _to_part; \
28          } \
29       } \
30    }
31
32 #define DOWN_SWALLOW_BTN(_to_part, _visibility) \
33    part { \
34       name: "btn.down"; \
35       type: SWALLOW; \
36       scale: 1; \
37       description { state: "default" 0.0; \
38          align: 0.5 1.0; \
39          min: 84 92; \
40          max: 84 92; \
41          fixed: 1 1; \
42          visible: _visibility; \
43          rel1 { \
44             to: _to_part; \
45          } \
46          rel2 { \
47             to: _to_part; \
48          } \
49       } \
50    }
51
52
53 group { name: "setting/picker/layout";
54     parts {
55       part { name: "bg";
56          type: SPACER;
57          scale: 1;
58          description { state: "default" 0.0;
59             min: 360 290;
60                         max: 360 290;
61          }
62       }
63       UP_SWALLOW_BTN(field0.padding, 1)
64       part { name: "field0.padding";
65          type: SPACER;
66          scale: 1;
67          description { state: "default" 0.0;
68             min: 84 0;
69                         max: 84 -1;
70             rel1.to: "bg";
71             rel2 {
72                relative: 1.0 1.0;
73                to: "bg";
74             }
75             align: 0.5 0.5;
76          }
77       }
78       part { name: "date";
79          type: SWALLOW;
80          scale: 1;
81          description { state: "default" 0.0;
82             min: 0 106;
83             max: -1 106;
84             fixed: 0 1;
85             rel1.to: "field0.padding";
86             rel2.to: "field0.padding";
87          }
88       }
89       DOWN_SWALLOW_BTN(field0.padding, 1)
90    }
91 }
92
93 group { name: "setting/limit_picker/layout";
94     parts {
95       part { name: "bg";
96          type: SPACER;
97          scale: 1;
98          description { state: "default" 0.0;
99             min: 360 290;
100                         max: 360 290;
101          }
102       }
103       UP_SWALLOW_BTN(field0.padding, 1)
104       part { name: "field0.padding";
105          type: SPACER;
106          scale: 1;
107          description { state: "default" 0.0;
108             min: 164 0;
109                         max: 164 -1;
110             rel1.to: "bg";
111             rel2 {
112                relative: 1.0 1.0;
113                to: "bg";
114             }
115             align: 0.25 0.5;
116          }
117       }
118       part { name: "size";
119          type: SWALLOW;
120          scale: 1;
121          description { state: "default" 0.0;
122             min: 0 106;
123             max: -1 106;
124             fixed: 0 1;
125             rel1.to: "field0.padding";
126             rel2.to: "field0.padding";
127          }
128       }
129       DOWN_SWALLOW_BTN(field0.padding, 1)
130
131       part { name: "field.padding0";
132          type: SPACER;
133          scale: 1;
134          description { state: "default" 0.0;
135             fixed: 1 0;
136             min: 8 0;
137             rel1 {
138                relative: 1.0 0.0;
139                to: "field0.padding";
140             }
141             rel2 {
142                relative: 1.0 1.0;
143                to: "field0.padding";
144             }
145             align: 0.0 0.5;
146          }
147       }
148
149           part { name: "field1.padding";
150          type: SPACER;
151          scale: 1;
152          description { state: "default" 0.0;
153             min: 94 0;
154             rel1 {
155                relative: 1.0 0.0;
156                to: "field.padding0";
157             }
158             rel2 {
159                relative: 1.0 1.0;
160                to: "field.padding0";
161             }
162             align: 0.0 0.5;
163          }
164       }
165       part { name: "unit";
166          type: SWALLOW;
167          scale: 1;
168          description { state: "default" 0.0;
169             min: 0 106;
170             max: -1 106;
171             fixed: 0 1;
172             rel1.to: "field1.padding";
173             rel2.to: "field1.padding";
174          }
175       }
176
177    }
178 }