[ug-wifi-direct]Sync with Tizen 2.4
[apps/native/ug-wifi-direct.git] / ug-wifidirect / resources / wfd_ug.edc
1 #define RENAME_POPUP_ENTRY_2BUTTON_BG_MIN 0 374
2 #define TOOLBAR_H 108
3 #define INDICATOR_H 32
4 #define TITLE_P_H 65
5 #define TITLE_L_H 30
6 #define TOOLBAR_H 108
7 #define POPUP_WITH_2_GL_ITEMS 200
8
9 #define RESOURCE_IMAGE( FILE_NAME ) \
10    group { \
11       name: FILE_NAME; \
12       images.image: FILE_NAME COMP; \
13       parts { \
14          part { name: "image"; \
15             description { \
16                state: "default" 0.0; \
17                image.normal: FILE_NAME; \
18                aspect: 1 1; \
19                aspect_preference: BOTH; \
20             } \
21             repeat_events: 1; \
22          } \
23       } \
24    }
25
26 #define RESOURCE_IMAGE_MORE( FILE_NAME ) \
27    group { \
28       name: FILE_NAME; \
29       images.image: FILE_NAME COMP; \
30       parts { \
31          part { name: "image"; \
32             description { \
33                state: "default" 0.0; \
34                image.normal: FILE_NAME; \
35                            fixed: 1 1; \
36                            min: 60 60; \
37                            max: 60 60; \
38             } \
39          } \
40       } \
41    }
42
43 #define IMG_SELECT_ALL  "icon_select_all.png"
44
45 images {
46         image: IMG_SELECT_ALL COMP;
47 }
48
49 collections {
50         RESOURCE_IMAGE("A09_device_computer.png");
51         RESOURCE_IMAGE("A09_device_input_device.png");
52         RESOURCE_IMAGE("A09_device_printer.png");
53         RESOURCE_IMAGE("A09_device_camera.png");
54         RESOURCE_IMAGE("A09_device_storage.png");
55         RESOURCE_IMAGE("A09_device_network_infrastructure.png");
56         RESOURCE_IMAGE("A09_device_display.png");
57         RESOURCE_IMAGE("A09_device_multimedia.png");
58         RESOURCE_IMAGE("A09_device_gaming.png");
59         RESOURCE_IMAGE("A09_device_telephone.png");
60         RESOURCE_IMAGE("A09_device_headset.png");
61         RESOURCE_IMAGE("A09_device_unknown.png");
62
63         RESOURCE_IMAGE("U04_device_BD.png");
64         RESOURCE_IMAGE("U04_device_Dongle.png");
65         RESOURCE_IMAGE("U04_device_Home_Theater.png");
66         RESOURCE_IMAGE("U04_device_STB.png");
67
68         RESOURCE_IMAGE("A09_device_headphone.png");
69         RESOURCE_IMAGE("A09_device_Medical.png");
70         RESOURCE_IMAGE("A09_device_mouse.png");
71
72         base_scale: 1.8;
73
74         styles{
75                 style {
76                         name: "textblock_style";
77                         base: "font=Tizen tyle=Regular font_size=32 align=left color=#808080 linesize=38 wrap=word";
78                         tag:  "br" "\n";
79                         tag:  "hilight" "+ font_weight=Bold";
80                         tag:  "b" "+ font_weight=Bold";
81                         tag:  "tab" "\t";
82                 }
83         }
84
85         group {
86         name: "icon.select_all";
87         images { image: IMG_SELECT_ALL COMP; }
88         parts {
89                 part { name: "icon";
90                         type: IMAGE;
91                         mouse_events: 0;
92                         description {
93                                 state: "default" 0.0;
94                                 aspect: 1.0 1.0;
95                                 aspect_preference: BOTH;
96                                 image.normal: IMG_SELECT_ALL;
97                         }
98                 }
99         }
100 }
101
102         group {
103                 name: "genlist_button";
104                 parts {
105                         part {
106                                 name: "base";
107                                 type: RECT;
108                                 description {
109                                         state: "default" 0.0;
110                                         align: 0.5 0.5;
111                                         color: 0 0 0 0;
112                                 }
113                         }
114
115                         part {
116                                 name: "elm.swallow.icon";
117                                 type: SWALLOW;
118                                 description {
119                                         state: "default" 0.0;
120                                         min: 0 72;
121                                         fixed: 0 1;
122                                         rel1 {
123                                                 relative: 0.1 0.1; to: "base";
124                                         }
125                                         rel2 {
126                                                 relative: 0.9 0.9; to: "base";
127                                         }
128                                 }
129                         }
130                 }
131         }
132         group {
133                 name: "main_rename_device_ly";
134                 parts {
135                         part {
136                                 name:"pad_t";
137                                 type: SPACER;
138                                 scale: 1;
139                                 description {
140                                         state: "default" 0.0;
141                                         min: 0 0;
142                                         align: 0.5 0.0;
143                                         fixed: 0 1;
144                                         rel2.relative: 1.0 0.0;
145                                 }
146                         }
147                         part {
148                                 name:"elm.swallow.layout";
149                                 type: SWALLOW;
150                                 scale: 1;
151                                 mouse_events: 1;
152                                 repeat_events: 1;
153                                 description {
154                                         state: "default" 0.0;
155                                         min: 0 POPUP_WITH_2_GL_ITEMS;
156                                         align: 0.5 1.0;
157                                         fixed: 1 0;
158                                         rel1 {
159                                                 relative: 1.0 1.0;
160                                                 to_x: "pad_l";
161                                                 to_y: "pad_t";
162                                         }
163                                         rel2 {
164                                                 relative: 0.0 0.0;
165                                                 to_x: "pad_r";
166                                                 to_y: "pad_b";
167                                         }
168                                 }
169                         }
170
171                         part {
172                                 name:"pad_b";
173                                 type: SPACER;
174                                 scale: 1;
175                                 description {
176                                         state: "default" 0.0;
177                                         align: 0.5 1.0;
178                                         min: 0 0;
179                                         fixed: 0 1;
180                                         rel1.relative: 0.0 1.0;
181                                 }
182                         }
183
184                         part {
185                                 name: "pad_l";
186                                 type: SPACER;
187                                 scale: 1;
188                                 description {
189                                         state: "default" 0.0;
190                                         min: 0 0;
191                                         fixed: 0 0;
192                                         align: 0.0 0.0;
193                                         rel1 {
194                                                 relative: 0.0 0.0;
195                                         }
196                                         rel2 {
197                                                 relative: 0.0 1.0;
198                                         }
199                                  }
200                         }
201
202                         part {
203                                 name: "pad_r";
204                                 type: SPACER;
205                                 scale: 1;
206                                 description {
207                                         state: "default" 0.0;
208                                         min: 0 0;
209                                         fixed: 0 0;
210                                         align: 1.0 0.0;
211                                         rel1 {
212                                                 relative: 1.0 0.0;
213                                         }
214                                         rel2 {
215                                                 relative: 1.0 1.0;
216                                         }
217                                 }
218                         }
219                 }
220         }
221
222         group {
223                 name: "help_layout";
224                 parts{
225                         part
226                         {
227                                 name: "left_pad";
228                                 type: RECT;
229                                 scale: 1;
230                                 description
231                                 {
232                                         state: "default" 0.0;
233                                         color : 0 0 0 0;
234                                         min: 38 32;
235                                         max: 38 32;
236                                         fixed: 1 1;
237                                         rel1 {relative: 0 0;}
238                                         align: 0 0;
239                                 }
240                         }
241                         part
242                         {
243                                 name: "right_pad";
244                                 type: RECT;
245                                 scale: 1;
246                                 description
247                                 {
248                                         state: "default" 0.0;
249                                         color : 0 0 0 0;
250                                         min: 30 32;
251                                         max: 30 32;
252                                         fixed: 1 1;
253                                         rel2 {relative: 1 1;}
254                                         align: 1 1;
255                                 }
256                         }
257                         part
258                         {
259                                 name: "entry_part";
260                                 type: SWALLOW;
261                                 mouse_events: 1;
262                                 scale:1;
263
264                                 description
265                                 {
266                                         state: "default" 0.0;
267                                         align: 0 0;
268                                         fixed: 1 1;
269                                         rel1 {relative: 1 1; to: "left_pad";}
270                                         rel2 {relative: 0 0; to: "right_pad";}
271                                 }
272                         }
273                 }
274         }
275
276         group { name: "main_layout";
277                 parts {
278                         part { name: "bg";
279                                 type: RECT;
280                                 scale: 1;
281                                 description { state: "default" 0.0;
282                                 rel1 { relative: 0.0 0.0;}
283                                 rel2 { relative: 1.0 1.0; }
284                                 color: 0 0 0 0;
285                                 }
286                                 description { state: "horizontal" 0.0;
287                                         rel1 { relative: 0.0 0.0;}
288                                         rel2 { relative: 1.0 1.0; }
289                                         color: 0 0 0 0;
290                                 }
291                         }
292                         part {
293                                 name: "button_bg";
294                                 type: RECT;
295                                 scale: 1;
296                                 description {
297                                         state: "default" 0.0;
298                                         min: 400 TOOLBAR_H;
299                                         max: -1 TOOLBAR_H;
300                                         fixed: 0 0;
301                                         rel1 {
302                                                 relative: 0.0 1.0;
303                                                 offset: 0 -TOOLBAR_H;
304                                         }
305                                         rel2 {
306                                                 relative: 1.0 1.0;
307                                                 offset: 0 0;
308                                         }
309                                         color_class: "B062";
310                                 }
311                         }
312                         part {
313                                 name: "button.big";
314                                 type: SWALLOW;
315                                 scale: 1;
316                                 description {
317                                         state: "default" 0.0;
318                                         min: 0 74;
319                                         max: -1 TOOLBAR_H;
320                                         fixed: 0 0;
321                                         rel1 {
322                                                 relative: 0.0 1.0;
323                                                 offset: 21 -TOOLBAR_H;
324                                         }
325                                         rel2 {
326                                                 relative: 1.0 1.0;
327                                                 offset: -21 0;
328                                         }
329                                 }
330                                 description { state: "horizontal" 0.0;
331                                         inherit: "default" 0.0;
332                                 }
333                         }
334                         part {
335                                 name: "button.prev";
336                                 type: SWALLOW;
337                                 scale: 1;
338                                 description {
339                                         state: "default" 0.0;
340                                         min: 0 74;
341                                         max: -1 TOOLBAR_H;
342                                         fixed: 0 0;
343                                         rel1 {
344                                                 relative: 0.0 1.0;
345                                                 offset: 21 -TOOLBAR_H;
346                                         }
347                                         rel2 {
348                                                 relative: 0.5 1.0;
349                                                 offset: -6 0;
350                                         }
351                                 }
352                                 description { state: "horizontal" 0.0;
353                                         inherit: "default" 0.0;
354                                 }
355                         }
356                         part {
357                                 name: "button.next";
358                                 type: SWALLOW;
359                                 scale: 1;
360                                 description {
361                                         state: "default" 0.0;
362                                         min: 0 74;
363                                         max: -1 TOOLBAR_H;
364                                         fixed: 0 0;
365                                         rel1 {
366                                                 relative: 0.5 1.0;
367                                                 offset: 6 -TOOLBAR_H;
368                                         }
369                                         rel2 {
370                                                 relative: 1.0 1.0;
371                                                 offset: -21 0;
372                                         }
373                                 }
374                                 description { state: "horizontal" 0.0;
375                                         inherit: "default" 0.0;
376                                 }
377                         }
378                         part { name: "genlist-bg";
379                                 type: RECT;
380                                 scale: 1;
381                                 description { state: "default" 0.0;
382                                         rel1 {
383                                                 relative: 0.0 0.0;
384                                                 to: "bg";
385                                         }
386                                         rel2 {
387                                                 to: "bg";
388                                                 offset: 0 -TOOLBAR_H;
389                                         }
390                                         color_class: "B041";
391                                 }
392                                 description { state: "horizontal" 0.0;
393                                         rel1 {
394                                                 relative: 0.0 0.0;
395                                                 to: "bg";
396                                         }
397                                         rel2 {
398                                                 to: "bg";
399                                                 offset: 0 -TOOLBAR_H;
400                                         }
401                                         color_class: "B041";
402                                 }
403                         }
404                         part { name: "elm.swallow.content";
405                                 type: SWALLOW;
406                                 scale: 1;
407                                 description { state: "default" 0.0;
408                                         fixed: 0 0;
409                                         rel1 {
410                                                 relative: 0.0 0.0;
411                                                 to: "bg";
412                                         }
413                                         rel2 {
414                                                 to: "bg";
415                                                 offset: 0 -TOOLBAR_H;
416                                         }
417                                 }
418                                 description { state: "horizontal" 0.0;
419                                         fixed: 0 0;
420                                         rel1 {
421                                                 relative: 0.0 0.0;
422                                                 to: "bg";
423                                         }
424                                         rel2 {
425                                                 to: "bg";
426                                                 offset: 0 -TOOLBAR_H;
427                                         }
428                                 }
429                         }
430                 }
431         }
432
433         //this is for custom genlist item
434         group { name: "elm/genlist/item/custom.multiview.subtitle/default";
435
436            data.item: "stacking" "above";
437            data.item: "selectraise" "on";
438            data.item: "texts" "elm.text";
439            data.item: "contents" "elm.icon";
440
441         parts {
442                 part {
443                         name: "base";
444                         type: RECT;
445                         mouse_events: 0;
446                         scale: 1;
447                         description {
448                                 state: "default" 0.0;
449                                 color: 255 255 255 0;
450                                 min: 0 76;
451                         }
452                 }
453                 part {
454                         name: "left_padding";
455                         type: SPACER;
456                         scale: 1;
457                         description {
458                                 state: "default" 0.0;
459                                 min: 28 0;
460                                 fixed: 1 0;
461                                 align: 0.0 0.0;
462                                 rel1 {
463                                         relative: 0.0 0.0;
464                                 }
465                                 rel2 {
466                                         relative: 0.0 1.0;
467                                 }
468                         }
469                 }
470                 part {
471                         name: "elm.text";
472                         scale: 1;
473                         type: TEXT;
474                         mouse_events: 0;
475                         description {
476                                 state: "default" 0.0;
477                                 align: 0.0 0.0;
478                                 min: 360 0;
479                                 fixed: 1 0;
480                                 color_class: "T027";
481                                 rel1 {
482                                         relative: 1.0 0.0; to: "left_padding";
483                                 }
484                                 rel2 {
485                                         relative: 1.0 1.0; to: "left_padding";
486                                 }
487                                 text {
488                                         align: 0.0 0.5;
489                                         min: 0 1;
490                                         font: "Tizen:style=Regular";
491                                         size: 32;
492                                         text_class: "list_item";
493                                 }
494                         }
495                 }
496                 part {
497                         name: "elm.icon";
498                         scale: 0;
499                         type: SWALLOW;
500                         description {
501                                 state: "default" 0.0;
502                                 align: 1.0 0.0;
503                                 fixed: 1 1;
504                                 rel1 {
505                                         relative: 1.0 23/76; to: "base";
506                                 }
507                                 rel2 {
508                                         relative: 1.0 59/76; to: "base"; offset: -26 0;
509                                 }
510                                 min: 36 36;
511                                 max: 36 36;
512                         }
513                 }
514
515                 part { name: "bottom_line";
516                         scale: 1;
517                         type: RECT;
518                         description {
519                                 state: "default" 0.0;
520                                 min: 0 4;
521                                 color_class: "W021L2";
522                                 fixed: 0 1;
523                                 align: 0.5 1.0;
524                                 rel1 {
525                                         relative: 0.0 1.0; to_x: "base"; to_y: "elm.icon"; offset: 4 13;
526                                 }
527                                 rel2 {
528                                         relative: 1.0 1.0; to_x: "base"; to_y: "elm.icon"; offset: -5 17;
529                                 }
530                                 visible: 1;
531                         }
532                 }
533             }
534         }
535 }