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