Implement flexible popup depend on text length
[platform/framework/web/wrt.git] / data / Wrt.edc
1 collections {
2     group {
3         name: "web-application";
4         parts {
5             part {
6                 name: "base";
7                 scale: 1;
8                 type: RECT;
9                 description {
10                     state: "default" 0.0;
11                     fixed: 1 1;
12                     rel1 { relative: 0 0; offset: 0 0; }
13                     rel2 { relative: 1 1; offset: -1 -1; }
14                     color: 255 255 255 255;
15                 }
16             }
17             part {
18                 name: "elm.swallow.content";
19                 scale: 1;
20                 type: SWALLOW;
21                 description {
22                     state: "default" 0.0;
23                     fixed: 1 1;
24                     rel1 { relative: 0.0 0.0; to: base; }
25                     rel2 { relative: 1.0 1.0; to: base; }
26                     align: 0.0 0.0;
27                 }
28             }
29             part {
30                 name: "elm.swallow.progress";
31                 scale: 1;
32                 type: SWALLOW;
33                 description {
34                     state: "default" 0.0;
35                     visible: 0;
36                     fixed: 0 1;
37                     rel1 { relative: 0.0 0.0; }
38                     rel2 { relative: 1.0 0.0; }
39                     align: 0.5 0.0;
40                 }
41                 description {
42                     state: "visible" 0.0;
43                     inherit: "default" 0.0;
44                     visible: 1;
45                 }
46             }
47         }//end of parts
48         programs {
49             program { name: "show,progress";
50                 signal: "show,progress,signal";
51                 action: STATE_SET "visible" 0.0;
52                 target: "elm.swallow.progress";
53             }
54             program { name: "hide,progress";
55                 signal: "hide,progress,signal";
56                 action: STATE_SET "default" 0.0;
57                 target: "elm.swallow.progress";
58             }
59         }//end of programs
60     }//end of group
61
62     group {
63         name: "popupWithCheck";
64         parts {
65             part {
66                 name: "pad_t";
67                 type: SPACER;
68                 scale: 1;
69                 description {
70                     state: "default" 0.0;
71                     align: 0.5 0.0;
72                     min: 0 32;
73                     fixed: 0 1;
74                     rel1 { relative: 1.0 0.0;to_x: "pad_l"; }
75                     rel2 { relative: 0.0 0.0;to_x: "pad_r"; }
76                 }
77             }
78             part {
79                 name: "pad_l";
80                 type: SPACER;
81                 scale: 1;
82                 description {
83                     state: "default" 0.0;
84                     min: 26 0;
85                     max: 26 0;
86                     fixed: 1 0;
87                     rel1 { relative: 0.0 0.0; }
88                     rel2 { relative: 0.0 1.0; }
89                     align: 0.0 0.0;
90                 }
91             }
92             part {
93                 name: "pad_r";
94                 type: SPACER;
95                 scale: 1;
96                 description {
97                     state: "default" 0.0;
98                     min: 26 0;
99                     max: 26 0;
100                     fixed: 1 0;
101                     rel1 { relative: 1.0 0.0; }
102                     rel2 { relative: 1.0 1.0; }
103                     align: 1.0 0.0;
104                 }
105             }
106             part {
107                 name:"elm.swallow.label";
108                 type: SWALLOW;
109                 scale : 1;
110                 description {
111                     state: "default" 0.0;
112                     fixed: 1 0;
113                     rel1 {
114                         relative: 1.0 1.0;
115                         to_x: "pad_l";
116                         to_y: "pad_t";
117                     }
118                     rel2 {
119                         relative: 0.0 0.0;
120                         to_x: "pad_r";
121                         to_y: "pad_b";
122                     }
123                 }
124             }
125             part {
126                 name: "bottom_pad";
127                 type: SPACER;
128                 scale: 1;
129                 description {
130                     state: "default" 0.0;
131                     align: 0.0 1.0;
132                     min: 0 32;
133                     fixed: 0 1;
134                     rel1 { relative: 1.0 1.0; to_x: "pad_l"; }
135                     rel2 { relative: 0.0 1.0; to_x: "pad_r"; }
136                 }
137             }
138             part {
139                 name: "pad_b";
140                 type: SPACER;
141                 scale: 1;
142                 description {
143                     state: "default" 0.0;
144                     align: 0.0 1.0;
145                     min: 0 84;
146                     fixed: 0 1;
147                     rel1 { relative: 0.0 0.0; to: "bottom_pad"; }
148                     rel2 { relative: 1.0 0.0; to: "bottom_pad"; }
149                 }
150             }
151             part {
152                 name: "end_field";
153                 type: SPACER;
154                 scale: 1;
155                 description {
156                     state: "default" 0.0;
157                     align: 0.0 1.0;
158                     min: 0 63;
159                     fixed: 0 1;
160                     rel1 { relative: 0.0 1.0; to: "pad_b"; }
161                     rel2 { relative: 0.0 1.0; to: "pad_b"; }
162                 }
163             }
164             part {
165                 name: "elm.swallow.checkbox";
166                 type: SWALLOW;
167                 scale: 1;
168                 description {
169                     state: "default" 0.0;
170                     fixed: 1 1;
171                     align: 0.0 0.5;
172                     rel1.to: "end_field";
173                     rel2.to: "end_field";
174                 }
175             }
176         } //end of parts
177     } //end of group
178
179     group {
180         name: "authChallengePopup";
181         parts {
182             part {
183                 name : "bg";
184                 type : RECT;
185                 scale : 1;
186                 description {
187                     state : "default" 0.0;
188                     align : 0.0 0.0;
189                     min :  0 450;
190                     color : 0 0 0 0;
191                     rel1 { relative: 0.0 0.0; }
192                     rel2 { relative: 1.0 1.0; }
193                 }
194             }
195             part{
196                 name :"elm.swallow.label";
197                 scale : 1;
198                 type : SWALLOW;
199                 description {
200                     state : "default" 0.0;
201                     align : 0.0 0.0;
202                     rel1 { relative: 0.0 0.0; to: "bg"; }
203                     rel2 { relative: 1.0 0.0; to: "bg"; }
204                 }
205             }
206             part {
207                 name: "pad_m";
208                 scale : 1;
209                 description {
210                     state: "default" 0.0;
211                     align: 0.0 0.0;
212                     min: 250 30;
213                     fixed: 0 1;
214                     rel1 { relative: 0.0 1.0; to: "elm.swallow.label"; }
215                     rel2 { relative: 1.0 1.0; to: "elm.swallow.label"; }
216                 }
217             }
218             part {
219                 name:"spacet_to_idfield";
220                 type: RECT;
221                 scale : 1;
222                 description {
223                     state: "default" 0.0;
224                     color: 0 0 0 0;
225                     min: 200 40;
226                     align: 0.0 0.0;
227                     rel1 { relative: 0.0 1.0; to: "pad_m"; }
228                     rel2 { relative: 1.0 1.0; to: "pad_m"; }
229                 }
230             }
231             part {
232                 name:"idfield_text";
233                 type: TEXT;
234                 scale : 1;
235                 description {
236                     state: "default" 0.0;
237                     color: 168 168 168 255;
238                     text {
239                         font: "Tizen:style=Medium";
240                         size: 35;
241                         align: 0.0 0.0;
242                     }
243                     min: 200 40;
244                     align: 0.0 0.0;
245                     rel1 { relative: 0.0 1.0; to: "pad_m"; }
246                     rel2 { relative: 0.4 1.0; to: "pad_m"; }
247                 }
248             }
249             part{
250                 name:"elm.swallow.idfield";
251                 type: SWALLOW;
252                 scale : 1;
253                 description {
254                     state: "default" 0.0;
255                     min: 200 40;
256                     align: 0.0 0.0;
257                     rel1 { relative: 0.35 0.38; to: "pad_m"; }
258                     rel2 { relative: 1.0 0.38; to: "pad_m"; }
259                 }
260             }
261             part {
262                 name: "pad_text";
263                 scale : 1;
264                 description {
265                     state: "default" 0.0;
266                     align: 0.0 0.0;
267                     min: 250 38;
268                     fixed: 0 1;
269                     rel1 { relative: 0.0 1.0; to: "spacet_to_idfield"; }
270                     rel2 { relative: 1.0 1.0; to: "spacet_to_idfield"; }
271                 }
272             }
273             part{
274                 name:"passwdfield_text";
275                 type: TEXT;
276                 scale : 1;
277                 description {
278                     state: "default" 0.0;
279                     color: 168 168 168 255;
280                     text {
281                         font: "Tizen:style=Medium";
282                         size: 35;
283                         align: 0.0 1.0;
284                     }
285                     min: 200 40;
286                     align: 0.0 0.0;
287                     fixed: 0 0;
288                     rel1 { relative: 0.0 1.0; to: "pad_text"; }
289                     rel2 { relative: 0.4 1.0; to: "pad_text"; }
290                 }
291             }
292             part {
293                 name: "elm.swallow.passwdfield";
294                 type: SWALLOW;
295                 scale: 1;
296                 description {
297                     state: "default" 0.0;
298                     min: 250 40;
299                     align: 0.0 0.0;
300                     fixed: 0 0;
301                     rel1 { relative: 0.35 0.25; to: "pad_text"; }
302                     rel2 { relative: 1.0 0.25; to: "pad_text"; }
303                 }
304             }
305             part {
306                 name: "pad_b";
307                 scale : 1;
308                 description {
309                     state: "default" 0.0;
310                     align: 0.0 1.0;
311                     min: 0 5;
312                     fixed: 0 1;
313                     rel1 { relative: 0.0 1.0; to: "bg"; }
314                     rel2 { relative: 1.0 1.0; to: "bg"; }
315                 }
316             }
317         }
318     }
319 }//end of collection