0db59a7dd3a725908de4a94c7c01d844bf3ce1d5
[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: "entry_result";
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: "entry"; }
152                                         rel2 { relative: 0.5 0.5; to: "entry"; }
153                                         align: 0.5 0.0;
154                                         min: (ENTRY_WIDTH - 5) ENTRY_RESULT_HEIGHT;
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                         part {
165                                 name: "entry";
166                                 type: SWALLOW;
167                                 scale: 1;
168                                 mouse_events: 1;
169                                 description {
170                                         state: "default" 0.0;
171                                         rel1 { relative: 0.5 26/800; to: "bg"; }
172                                         rel2 { relative: 0.5 26/800; to: "bg"; }
173                                         align: 0.5 0.5;
174                                         min: ENTRY_WIDTH ENTRY_HEIGHT;
175                                         fixed: 1 1;
176                                         visible: 1;
177                                 }
178                                 description {
179                                         state: "hide" 0.0;
180                                         inherit: "default" 0.0;
181                                         align: 0.5 1.0;
182                                 }
183                         }
184                 }
185                 programs {
186                         program {
187                                 signal: "hide";
188                                 source: "entry";
189                                 action: STATE_SET "hide" 0.0;
190                                 target: "entry";
191                         }
192                         program {
193                                 signal: "show";
194                                 source: "entry";
195                                 action: STATE_SET "default" 0.0;
196                                 target: "entry";
197                         }
198
199                         program {
200                                 signal: "hide";
201                                 source: "entry_result";
202                                 action: STATE_SET "hide" 0.0;
203                                 target: "entry_result";
204                         }
205                         program {
206                                 signal: "show";
207                                 source: "entry_result";
208                                 action: STATE_SET "default" 0.0;
209                                 target: "entry_result";
210                         }
211
212                         program {
213                                 signal: "hide";
214                                 source: "text";
215                                 action: STATE_SET "hide" 0.0;
216                                 target: "title";
217                                 target: "description";
218                         }
219                         program {
220                                 signal: "show";
221                                 source: "text";
222                                 action: STATE_SET "default" 0.0;
223                                 target: "title";
224                                 target: "description";
225                         }
226
227                         program {
228                                 signal: "hide";
229                                 source: "selected_scroller";
230                                 action: STATE_SET "hide" 0.0;
231                                 target: "selected_scroller";
232                         }
233                         program {
234                                 signal: "show";
235                                 source: "selected_scroller";
236                                 action: STATE_SET "default" 0.0;
237                                 target: "selected_scroller";
238                         }
239                 }
240         }
241 }