[Coding Style] Polish map.c
[apps/native/sample/adventure.git] / res / edje / main_view.edc
1 #include "conf.h"
2
3 collections {
4         base_scale: 1.8;
5         group {
6                 name: "main";
7
8                 styles {
9                         style {
10                                 name: "description_style";
11                                 base: "font=Tizen:style=Bold font_size=26 color=#ffffff align=center text_class=tizen";
12                                 tag:  "br" "\n";
13                                 tag:  "hilight" "+ font_weight=Bold";
14                                 tag:  "b" "+ font_weight=Bold";
15                                 tag:  "tab" "\t";
16                         }
17                 }
18
19                 parts {
20                         part {
21                                 name: "bg";
22                                 type: RECT;
23                                 description {
24                                         state: "default" 0.0;
25                                         rel1 { relative: 0.0 0.0; }
26                                         rel2 { relative: 1.0 1.0; }
27                                         color: 246 243 243 255;
28                                         visible: 1;
29                                 }
30                         }
31                         part {
32                                 name: "map_area";
33                                 type: RECT;
34                                 scale: 1;
35                                 mouse_events: 0;
36                                 description {
37                                         state: "default" 0.0;
38                                         rel1 { relative: 0.0 1.0; to: "entry"; }
39                                         rel2 { relative: 1.0 1.0; to: "entry"; }
40                                         align: 0.5 0.0;
41                                         color: 246 243 243 255;
42                                         min: 0 410;
43                                         visible: 1;
44                                 }
45                         }
46                         part {
47                                 name: "map";
48                                 type: SWALLOW;
49                                 scale: 1;
50                                 mouse_events: 0;
51                                 description {
52                                         state: "default" 0.0;
53                                         rel1 { relative: 0.5 242/410; to: "map_area"; }
54                                         rel2 { relative: 0.5 242/410; to: "map_area"; }
55                                         align: 0.5 0.5;
56                                         visible: 1;
57                                 }
58                         }
59                         part {
60                                 name: "result_button";
61                                 type: SWALLOW;
62                                 description {
63                                         state: "default" 0.0;
64                                         rel1 { relative: 0.5 1.0; to: "map"; }
65                                         rel2 { relative: 0.5 1.0; to: "map"; }
66                                         align: 0.5 0.0;
67                                         visible: 1;
68                                 }
69                                 description {
70                                         state: "hide" 0.0;
71                                         inherit: "default" 0.0;
72                                         visible: 0;
73                                 }
74                         }
75                         part {
76                                 name: "title";
77                                 type: TEXT;
78                                 scale: 1;
79                                 description {
80                                         state: "default" 0.0;
81                                         rel1 { relative: 0.0 0.0; to: "map"; }
82                                         rel2 { relative: 1.0 1.0; to: "map"; }
83                                         color: 0 0 0 255;
84                                         align: 0.5 0.0;
85                                         min: 0 50;
86                                         visible: 1;
87                                         text {
88                                                 text: "";
89                                                 font: "Tizen:style=Bold";
90                                                 text_class: "tizen";
91                                                 min: 0 0;
92                                                 size: 32;
93                                                 align: 0.5 0.5;
94                                         }
95                                 }
96                                 description {
97                                         state: "hide" 0.0;
98                                         inherit: "default" 0.0;
99                                         visible: 0;
100                                 }
101                         }
102                         part {
103                                 name: "description";
104                                 type: TEXTBLOCK;
105                                 scale: 1;
106                                 description {
107                                         state: "default" 0.0;
108                                         rel1 { relative: 0.0 0.0; to: "title"; }
109                                         rel2 { relative: 1.0 1.0; to: "title"; }
110                                         align: 0.5 0.0;
111                                         min: 0 100;
112                                         visible: 1;
113                                         text {
114                                                 text: "";
115                                                 style: "description_style";
116                                         }
117                                 }
118                                 description {
119                                         state: "hide" 0.0;
120                                         inherit: "default" 0.0;
121                                         visible: 0;
122                                 }
123                         }
124                         part {
125                                 name: "selected_scroller";
126                                 type: SWALLOW;
127                                 scale: 1;
128                                 mouse_events: 1;
129                                 description {
130                                         state: "default" 0.0;
131                                         rel1 { relative: 0.5 0.5; to: "bg"; }
132                                         rel2 { relative: 0.5 0.5; to: "bg"; }
133                                         align: 0.5 0.0;
134                                         min: 480 400;
135                                         fixed: 1 1;
136                                         visible: 1;
137                                 }
138                                 description {
139                                         state: "hide" 0.0;
140                                         inherit: "default" 0.0;
141                                         visible: 0;
142                                 }
143                         }
144                         part {
145                                 name: "result_scroller";
146                                 type: SWALLOW;
147                                 scale: 1;
148                                 mouse_events: 1;
149                                 description {
150                                         state: "default" 0.0;
151                                         rel1 { relative: 0.5 0.5; to: "bg"; }
152                                         rel2 { relative: 0.5 0.5; to: "bg"; }
153                                         align: 0.5 0.0;
154                                         min: 480 400;
155                                         fixed: 1 1;
156                                         visible: 1;
157                                 }
158                                 description {
159                                         state: "hide" 0.0;
160                                         inherit: "default" 0.0;
161                                         visible: 0;
162                                 }
163                         }
164
165                         part {
166                                 name: "entry_result";
167                                 type: SWALLOW;
168                                 scale: 1;
169                                 mouse_events: 1;
170                                 description {
171                                         state: "default" 0.0;
172                                         rel1 { relative: 0.5 0.5; to: "entry"; }
173                                         rel2 { relative: 0.5 0.5; to: "entry"; }
174                                         align: 0.5 0.0;
175                                         min: (ENTRY_WIDTH - 5) ENTRY_RESULT_HEIGHT;
176                                         fixed: 1 1;
177                                         visible: 1;
178                                 }
179                                 description {
180                                         state: "hide" 0.0;
181                                         inherit: "default" 0.0;
182                                         visible: 0;
183                                 }
184                         }
185                         part {
186                                 name: "entry";
187                                 type: SWALLOW;
188                                 scale: 1;
189                                 mouse_events: 1;
190                                 description {
191                                         state: "default" 0.0;
192                                         rel1 { relative: 0.5 26/800; to: "bg"; }
193                                         rel2 { relative: 0.5 26/800; to: "bg"; }
194                                         align: 0.5 0.5;
195                                         min: ENTRY_WIDTH ENTRY_HEIGHT;
196                                         fixed: 1 1;
197                                         visible: 1;
198                                 }
199                                 description {
200                                         state: "hide" 0.0;
201                                         inherit: "default" 0.0;
202                                         align: 0.5 1.0;
203                                 }
204                         }
205                         part {
206                                 name: "group_scroller";
207                                 type: SWALLOW;
208                                 scale: 1;
209                                 mouse_events: 1;
210                                 description {
211                                         state: "default" 0.0;
212                                         rel1 { relative: 0.5 0.5; to: "bg"; }
213                                         rel2 { relative: 0.5 0.5; to: "bg"; }
214                                         align: 0.5 0.0;
215                                         min: 480 400;
216                                         fixed: 1 1;
217                                         visible: 1;
218                                 }
219                                 description {
220                                         state: "hide" 0.0;
221                                         inherit: "default" 0.0;
222                                         visible: 0;
223                                 }
224                         }
225
226
227                         part {
228                                 name: "popup";
229                                 type: SWALLOW;
230                                 scale: 1;
231                                 description {
232                                         state: "default" 0.0;
233                                         rel1 { relative: 0.0 0.0; }
234                                         rel2 { relative: 1.0 1.0; }
235                                         visible: 1;
236                                 }
237                         }
238                 }
239                 programs {
240                         program {
241                                 signal: "hide";
242                                 source: "entry";
243                                 action: STATE_SET "hide" 0.0;
244                                 target: "entry";
245                         }
246                         program {
247                                 signal: "show";
248                                 source: "entry";
249                                 action: STATE_SET "default" 0.0;
250                                 target: "entry";
251                         }
252
253                         program {
254                                 signal: "hide";
255                                 source: "entry_result";
256                                 action: STATE_SET "hide" 0.0;
257                                 target: "entry_result";
258                         }
259                         program {
260                                 signal: "show";
261                                 source: "entry_result";
262                                 action: STATE_SET "default" 0.0;
263                                 target: "entry_result";
264                         }
265
266                         program {
267                                 signal: "hide";
268                                 source: "text";
269                                 action: STATE_SET "hide" 0.0;
270                                 target: "title";
271                                 target: "description";
272                         }
273                         program {
274                                 signal: "show";
275                                 source: "text";
276                                 action: STATE_SET "default" 0.0;
277                                 target: "title";
278                                 target: "description";
279                         }
280
281                         program {
282                                 signal: "hide";
283                                 source: "selected_scroller";
284                                 action: STATE_SET "hide" 0.0;
285                                 target: "selected_scroller";
286                         }
287                         program {
288                                 signal: "show";
289                                 source: "selected_scroller";
290                                 action: STATE_SET "default" 0.0;
291                                 target: "selected_scroller";
292                         }
293
294                         program {
295                                 signal: "hide";
296                                 source: "result_scroller";
297                                 action: STATE_SET "hide" 0.0;
298                                 target: "result_scroller";
299                         }
300                         program {
301                                 signal: "show";
302                                 source: "result_scroller";
303                                 action: STATE_SET "default" 0.0;
304                                 target: "result_scroller";
305                         }
306
307                         program {
308                                 signal: "hide";
309                                 source: "group_scroller";
310                                 action: STATE_SET "hide" 0.0;
311                                 target: "group_scroller";
312                         }
313                         program {
314                                 signal: "show";
315                                 source: "group_scroller";
316                                 action: STATE_SET "default" 0.0;
317                                 target: "group_scroller";
318                         }
319                 }
320         }
321 }