Initialize Tizen 2.3
[apps/connectivity/bt-connection-popup.git] / edc / bt-connection-popup.edc
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://www.tizenopensource.org/license
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18 #include "bt-connection.edc"
19
20 collections {
21 RESOURCE_IMAGE("b_connectivity_dot_pair.png");
22 RESOURCE_IMAGE("b_connectivity_bluetooth_paired.png");
23 RESOURCE_IMAGE("b_connectivity_bluetooth_phone.png");
24 RESOURCE_IMAGE("b_connectivity_bluetooth_unpaired.png");
25 RESOURCE_IMAGE("b_connectivity_bluetooth_watch.png");
26
27         group {
28                 name: "connect_popup";
29                 parts{
30                         part {
31                                 name: "background";
32                                 type: RECT;
33                                 mouse_events: 1;
34                                 scale: 1;
35                                 description {
36                                         state: "default" 0;
37                                         min: HOR_SIZE VER_SIZE;
38                                         max: HOR_SIZE VER_SIZE;
39                                         fixed: 1 1;
40                                         color: 0 0 0 255;
41                                 }
42                         }
43                         part {
44                                 name: "scroller";
45                                 type: SWALLOW;
46                                 scale: 1;
47                                 description {
48                                         state: "default" 0.0;
49                                         rel1 {
50                                                 relative: 0.0 0.0;
51                                                 to:"background";
52                                         }
53                                         rel2 {
54                                                 relative: 1.0 0.0;
55                                                 to:"btn";
56                                         }
57                                         align: 0.0 0.0;
58                                 }
59                         }
60                         part {
61                                 name: "btn";
62                                 type: SWALLOW;
63                                 scale: 1;
64                                 description {
65                                         state: "default" 0.0;
66                                         fixed: 1 1;
67                                         rel1 {
68                                                 relative: 0.0 1.0;
69                                         }
70                                         rel2 {
71                                                 relative: 1.0 1.0;
72                                         }
73                                         min: 0 BUTTON_HEIGHT;
74                                         align: 0.5 1;
75                                 }
76                         }
77                 }
78         }
79
80         group {
81                 name: "connect_popup_scroller";
82                 parts{
83                         part {
84                                 name: "background";
85                                 type: RECT;
86                                 mouse_events: 1;
87                                 description {
88                                         state: "default" 0;
89                                         color: 0 0 0 255;
90                                 }
91                         }
92                         part {
93                                 name: "elm.swallow.img.watch";
94                                 type: SWALLOW;
95                                 scale: 1;
96                                 description {
97                                         state: "default" 0;
98                                         visible: 1;
99                                         fixed: 1 1;
100                                         min: WTCH_WIDTH WTCH_HEIGHT;
101                                         max: WTCH_WIDTH WTCH_HEIGHT;
102                                         rel1 {
103                                                 relative: 0 0;
104                                                 offset: CONNECTING_WTCH_PAD_LEFT CONNECTING_WTCH_PAD_TOP;
105                                                 to:"background";
106                                         }
107                                         rel2 {
108                                                 relative: 0 0;
109                                                 offset: (CONNECTING_WTCH_PAD_LEFT+WTCH_WIDTH) (CONNECTING_WTCH_PAD_TOP+WTCH_HEIGHT);
110                                                 to:"background";
111                                         }
112                                 }
113                         }
114                         part {
115                                 name: "elm.swallow.img.phone";
116                                 type: SWALLOW;
117                                 scale: 1;
118                                 description {
119                                         state: "default" 0;
120                                         visible: 1;
121                                         fixed: 1 1;
122                                         min: PHN_WIDTH PHN_HEIGHT;
123                                         max: PHN_WIDTH PHN_HEIGHT;
124                                         rel1 {
125                                                 relative: 0.0 0.0;
126                                                 offset: CONNECTING_PHN_PAD_LEFT CONNECTING_PHN_PAD_TOP;
127                                                 to:"background";
128                                         }
129                                         rel2 {
130                                                 relative: 0.0 0.0;
131                                                 offset: (CONNECTING_PHN_PAD_LEFT+PHN_WIDTH) (CONNECTING_PHN_PAD_TOP+PHN_HEIGHT);
132                                                 to:"background";
133                                         }
134                                 }
135                         }
136                         part {
137                                 name: "elm.swallow.img.icon";
138                                 type: IMAGE;
139                                 scale: 1;
140                                 description {
141                                         state: "default" 0.0;
142                                         visible: 1;
143                                         fixed: 1 1;
144                                         min: UNPAIRED_ICON_WIDTH UNPAIRED_ICON_HEIGHT;
145                                         max: UNPAIRED_ICON_WIDTH UNPAIRED_ICON_HEIGHT;
146                                         image.normal: "b_connectivity_bluetooth_unpaired.png";
147                                         rel1 {
148                                                 relative: 0.0 0.0;
149                                                 offset: CONNECTING_UNPAIRED_PAD_LEFT CONNECTING_UNPAIRED_PAD_TOP;
150                                                 to:"background";
151                                         }
152                                         rel2 {
153                                                 relative: 0.0 0.0;
154                                                 offset: (CONNECTING_UNPAIRED_PAD_LEFT+UNPAIRED_ICON_WIDTH) (CONNECTING_UNPAIRED_PAD_TOP+UNPAIRED_ICON_HEIGHT);
155                                                 to:"background";
156                                         }
157                                         map {
158                                                 on: 1;
159                                                 smooth: 0;
160                                                 rotation {
161                                                         z:0;
162                                                 }
163                                         }
164                                 }
165                                 description {
166                                         state: "state1" 0.1;
167                                         inherit: "default" 0.0;
168                                         map {
169                                                 on: 1;
170                                                 smooth: 0;
171                                                 rotation {
172                                                         z:180;
173                                                 }
174                                         }
175                                 }
176                                 description {
177                                         state: "state2" 0.2;
178                                         inherit: "default" 0.0;
179                                         map {
180                                                 on: 1;
181                                                 smooth: 0;
182                                                 rotation {
183                                                         z:360;
184                                                 }
185                                         }
186                                 }
187                         }
188                         part {
189                                 name: "elm.text.block";
190                                 type: SWALLOW;
191                                 scale: 1;
192                                 description {
193                                         state: "default" 0.0;
194                                         rel1 {
195                                                 relative: 0.0 0.0;
196                                                 offset: LABEL_PAD_LEFT CONNECTING_LABEL_PAD_TOP;
197                                                 to:"background";
198                                         }
199                                         rel2 {
200                                                 relative: 1.0 1.0;
201                                                 to:"background";
202                                         }
203                                         align: 0.0 0.0;
204                                 }
205                         }
206                 }
207                 programs {
208                         program {
209                                 signal: "load";
210                                 source: "";
211                                 in: 0.0 0.0;
212                                 after: "animation";
213                         }
214                         program {
215                                 name: "animation";
216                                 action: STATE_SET "default" 0.0;
217                                 target: "elm.swallow.img.icon";
218                                 transition: LINEAR 0.0;
219                                 after: "animation1";
220                         }
221                         program {
222                                 name: "animation1";
223                                 action: STATE_SET "state1" 0.1;
224                                 target: "elm.swallow.img.icon";
225                                 transition: LINEAR 0.7;
226                                 after: "animation2";
227                         }
228                         program {
229                                 name: "animation2";
230                                 action: STATE_SET "state2" 0.2;
231                                 target: "elm.swallow.img.icon";
232                                 transition: LINEAR 0.7;
233                                 after: "animation";
234                         }
235                 }
236         }
237
238         group {
239                 name: "connected_popup";
240                 parts{
241                         part {
242                                 name: "background";
243                                 type: RECT;
244                                 mouse_events: 1;
245                                 scale: 1;
246                                 description {
247                                         state: "default" 0;
248                                         min: HOR_SIZE VER_SIZE;
249                                         max: HOR_SIZE VER_SIZE;
250                                         fixed: 1 1;
251                                         color: 0 0 0 255;
252                                 }
253                         }
254                         part {
255                                 name: "scroller";
256                                 type: SWALLOW;
257                                 scale: 1;
258                                 description {
259                                         state: "default" 0.0;
260                                         rel1 {
261                                                 relative: 0.0 0.0;
262                                                 to:"background";
263                                         }
264                                         rel2 {
265                                                 relative: 1.0 1.0;
266                                                 to:"background";
267                                         }
268                                         align: 0.0 0.0;
269                                 }
270                         }
271                 }
272         }
273
274         group {
275                 name: "connected_popup_scroller";
276                 parts{
277                         part {
278                                 name: "background";
279                                 type: RECT;
280                                 mouse_events: 1;
281                                 description {
282                                         state: "default" 0;
283                                         color: 0 0 0 255;
284                                 }
285                         }
286                         part {
287                                 name: "elm.swallow.img.watch";
288                                 type: SWALLOW;
289                                 scale: 1;
290                                 description {
291                                         state: "default" 0;
292                                         visible: 1;
293                                         fixed: 1 1;
294                                         min: WTCH_WIDTH WTCH_HEIGHT;
295                                         max: WTCH_WIDTH WTCH_HEIGHT;
296                                         rel1 {
297                                                 relative: 0.0 0.0;
298                                                 offset: CONNECTED_WTCH_PAD_LEFT CONNECTED_WTCH_PAD_TOP;
299                                                 to:"background";
300                                         }
301                                         rel2 {
302                                                 relative: 0.0 0.0;
303                                                 offset: (CONNECTED_WTCH_PAD_LEFT+WTCH_WIDTH) (CONNECTED_WTCH_PAD_TOP+WTCH_HEIGHT);
304                                                 to:"background";
305                                         }
306                                 }
307                         }
308                         part {
309                                 name: "elm.swallow.img.phone";
310                                 type: SWALLOW;
311                                 scale: 1;
312                                 description {
313                                         state: "default" 0;
314                                         visible: 1;
315                                         fixed: 1 1;
316                                         min: PHN_WIDTH PHN_HEIGHT;
317                                         max: PHN_WIDTH PHN_HEIGHT;
318                                         rel1 {
319                                                 relative: 0.0 0.0;
320                                                 offset: CONNECTED_PHN_PAD_LEFT CONNECTED_PHN_PAD_TOP;
321                                                 to:"background";
322                                         }
323                                         rel2 {
324                                                 relative: 0.0 0.0;
325                                                 offset: CONNECTED_PHN_PAD_LEFT+PHN_WIDTH (CONNECTED_PHN_PAD_TOP+PHN_HEIGHT);
326                                                 to:"background";
327                                         }
328                                 }
329                         }
330                         part {
331                                 name: "elm.swallow.img.icon";
332                                 type: SWALLOW;
333                                 scale: 1;
334                                 description {
335                                         state: "default" 0;
336                                         visible: 1;
337                                         fixed: 1 1;
338                                         min: PAIRED_ICON_WIDTH PAIRED_ICON_HEIGHT;
339                                         max: PAIRED_ICON_WIDTH PAIRED_ICON_HEIGHT;
340                                         rel1 {
341                                                 relative: 0.0 0.0;
342                                                 offset: CONNECTED_PAIRED_ICON_PAD_LEFT CONNECTED_PAIRED_ICON_PAD_TOP;
343                                                 to:"background";
344                                         }
345                                         rel2 {
346                                                 relative: 0.0 0.0;
347                                                 offset: (CONNECTED_PAIRED_ICON_PAD_LEFT+PAIRED_ICON_WIDTH) (CONNECTED_PAIRED_ICON_PAD_TOP+PAIRED_ICON_HEIGHT);
348                                                 to:"background";
349                                         }
350                                 }
351                         }
352                         part {
353                                 name: "elm.swallow.img.dot1";
354                                 type: SWALLOW;
355                                 scale: 1;
356                                 description {
357                                         state: "default" 0;
358                                         visible: 1;
359                                         fixed: 1 1;
360                                         min: DOT_WIDTH DOT_HEIGHT;
361                                         max: DOT_WIDTH DOT_HEIGHT;
362                                         rel1 {
363                                                 relative: 0.0 0.0;
364                                                 offset: CONNECTED_PAIRED_DOT_PAD_LEFT CONNECTED_PAIRED_DOT_PAD_TOP;
365                                                 to:"background";
366                                         }
367                                         rel2 {
368                                                 relative: 0.0 0.0;
369                                                 offset: (CONNECTED_PAIRED_DOT_PAD_LEFT+DOT_WIDTH) (CONNECTED_PAIRED_DOT_PAD_TOP+DOT_HEIGHT);
370                                                 to:"background";
371                                         }
372                                 }
373                         }
374                         part {
375                                 name: "elm.swallow.img.dot2";
376                                 type: SWALLOW;
377                                 scale: 1;
378                                 description {
379                                         state: "default" 0;
380                                         visible: 1;
381                                         fixed: 1 1;
382                                         min: DOT_WIDTH DOT_HEIGHT;
383                                         max: DOT_WIDTH DOT_HEIGHT;
384                                         rel1 {
385                                                 relative: 0.0 0.0;
386                                                 offset: CONNECTED_PAIRED_DOT_PAD_RIGHT CONNECTED_PAIRED_DOT_PAD_TOP;
387                                                 to:"background";
388                                         }
389                                         rel2 {
390                                                 relative: 0.0 0.0;
391                                                 offset: (CONNECTED_PAIRED_DOT_PAD_RIGHT+DOT_WIDTH) (CONNECTED_PAIRED_DOT_PAD_TOP+DOT_HEIGHT);
392                                                 to:"background";
393                                         }
394                                 }
395                         }
396                         part {
397                                 name: "elm.text.block";
398                                 type: SWALLOW;
399                                 scale: 1;
400                                 description {
401                                         state: "default" 0.0;
402                                         rel1 {
403                                                 relative: 0.0 0.0;
404                                                 offset: LABEL_PAD_LEFT CONNECTED_LABEL_PAD_TOP;
405                                                 to:"background";
406                                         }
407                                         rel2 {
408                                                 relative: 1.0 1.0;
409                                                 to:"background";
410                                         }
411                                         align: 0.0 0.0;
412                                 }
413                         }
414                 }
415         }
416 }