tizen 2.3.1 release
[apps/home/b2-clocksetting.git] / data / changeable / groups / setting_picker.edc
1 /*
2  *  Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  *  Licensed under the Flora License, Version 1.0 (the License);
5  *  you may not use this file except in compliance with the License.
6  *  You may obtain a copy of the License at
7  *
8  *      http://floralicense.org/license/
9  *
10  *  Unless required by applicable law or agreed to in writing, software
11  *  distributed under the License is distributed on an AS IS BASIS,
12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *  See the License for the specific language governing permissions and
14  *  limitations under the License.
15  *
16  */
17 #define UP_SWALLOW_BTN(_to_part, _visibility) \
18    part { \
19       name: "btn.up"; \
20       type: SWALLOW; \
21       scale: 1; \
22       description { state: "default" 0.0; \
23          align: 0.5 0.0; \
24          min: 84 92; \
25          max: 84 92; \
26          fixed: 1 1; \
27          visible: _visibility; \
28          rel1 { \
29             to: _to_part; \
30          } \
31          rel2 { \
32             to: _to_part; \
33          } \
34       } \
35    }
36
37 #define DOWN_SWALLOW_BTN(_to_part, _visibility) \
38    part { \
39       name: "btn.down"; \
40       type: SWALLOW; \
41       scale: 1; \
42       description { state: "default" 0.0; \
43          align: 0.5 1.0; \
44          min: 84 92; \
45          max: 84 92; \
46          fixed: 1 1; \
47          visible: _visibility; \
48          rel1 { \
49             to: _to_part; \
50          } \
51          rel2 { \
52             to: _to_part; \
53          } \
54       } \
55    }
56
57
58 group { name: "setting/picker/layout";
59     parts {
60       part { name: "bg";
61          type: SPACER;
62          scale: 1;
63          description { state: "default" 0.0;
64             min: 360 290;
65                         max: 360 290;
66          }
67       }
68       UP_SWALLOW_BTN(field0.padding, 1)
69       part { name: "field0.padding";
70          type: SPACER;
71          scale: 1;
72          description { state: "default" 0.0;
73             min: 84 0;
74                         max: 84 -1;
75             rel1.to: "bg";
76             rel2 {
77                relative: 1.0 1.0;
78                to: "bg";
79             }
80             align: 0.5 0.5;
81          }
82       }
83       part { name: "date";
84          type: SWALLOW;
85          scale: 1;
86          description { state: "default" 0.0;
87             min: 0 106;
88             max: -1 106;
89             fixed: 0 1;
90             rel1.to: "field0.padding";
91             rel2.to: "field0.padding";
92          }
93       }
94       DOWN_SWALLOW_BTN(field0.padding, 1)
95    }
96 }
97
98 group { name: "setting/limit_picker/layout";
99     parts {
100       part { name: "bg";
101          type: SPACER;
102          scale: 1;
103          description { state: "default" 0.0;
104             min: 360 290;
105                         max: 360 290;
106          }
107       }
108       UP_SWALLOW_BTN(field0.padding, 1)
109       part { name: "field0.padding";
110          type: SPACER;
111          scale: 1;
112          description { state: "default" 0.0;
113             min: 164 0;
114                         max: 164 -1;
115             rel1.to: "bg";
116             rel2 {
117                relative: 1.0 1.0;
118                to: "bg";
119             }
120             align: 0.25 0.5;
121          }
122       }
123       part { name: "size";
124          type: SWALLOW;
125          scale: 1;
126          description { state: "default" 0.0;
127             min: 0 106;
128             max: -1 106;
129             fixed: 0 1;
130             rel1.to: "field0.padding";
131             rel2.to: "field0.padding";
132          }
133       }
134       DOWN_SWALLOW_BTN(field0.padding, 1)
135
136       part { name: "field.padding0";
137          type: SPACER;
138          scale: 1;
139          description { state: "default" 0.0;
140             fixed: 1 0;
141             min: 8 0;
142             rel1 {
143                relative: 1.0 0.0;
144                to: "field0.padding";
145             }
146             rel2 {
147                relative: 1.0 1.0;
148                to: "field0.padding";
149             }
150             align: 0.0 0.5;
151          }
152       }
153
154           part { name: "field1.padding";
155          type: SPACER;
156          scale: 1;
157          description { state: "default" 0.0;
158             min: 94 0;
159             rel1 {
160                relative: 1.0 0.0;
161                to: "field.padding0";
162             }
163             rel2 {
164                relative: 1.0 1.0;
165                to: "field.padding0";
166             }
167             align: 0.0 0.5;
168          }
169       }
170       part { name: "unit";
171          type: SWALLOW;
172          scale: 1;
173          description { state: "default" 0.0;
174             min: 0 106;
175             max: -1 106;
176             fixed: 0 1;
177             rel1.to: "field1.padding";
178             rel2.to: "field1.padding";
179          }
180       }
181
182    }
183 }