Version : 0813
[apps/native/sample/adventure.git] / res / edje / item2.edc
1 #define ITEM_WIDTH 480
2 #define ITEM_HEIGHT 75
3
4 collections {
5    base_scale: 1.8;
6    images {
7       image: "delete_button.png" COMP;
8       image: "other_location_blue.png" COMP;
9       image: "other_location_mint.png" COMP;
10       image: "other location_pink.png" COMP;
11       image: "orange.png" COMP;
12       image: "my_status.png" COMP;
13       image: "result_bar.png" COMP;
14    }
15    group { name: "my_status";
16       parts {
17          part { name: "img";
18             description { state: "default" 0.0;
19                image.normal: "my_status.png";
20             }
21          }
22       }
23    }
24    group { name: "location_pink";
25       parts {
26           part { name: "img";
27              type: IMAGE;
28              description { state: "default";
29                 image.normal: "other location_pink.png";
30             }
31          }
32       }
33    }
34    group { name: "location_mint";
35       parts {
36           part { name: "img";
37              type: IMAGE;
38              description { state: "default";
39                 image.normal: "other_location_mint.png";
40             }
41          }
42       }
43    }
44    group { name: "location_blue";
45       parts {
46           part { name: "img";
47              type: IMAGE;
48              description { state: "default";
49                 image.normal: "other_location_blue.png";
50             }
51          }
52       }
53    }
54    group { name: "location_orange";
55       parts {
56           part { name: "img";
57              type: IMAGE;
58              description { state: "default";
59                 image.normal: "orange.png";
60             }
61          }
62       }
63    }
64    group { name: "item";
65       parts {
66          part { name: "base";
67             type: RECT;
68             scale: 1;
69              description { state: "default";
70                min: 0 ITEM_HEIGHT;
71             }
72          }
73          part { name: "mark";
74             type: SWALLOW;
75             scale: 1;
76              description { state: "default";
77                rel1 { relative: (38/ITEM_WIDTH) 0.5; to: "base"; }
78                rel2 { relative: (38/ITEM_WIDTH) 0.5; to: "base"; }
79                align: 0.5 0.5;
80                min: 20 20;
81                fixed: 1 1;
82             }
83             description { state: "result";
84                inherit: "default";
85                rel1 { relative: (38/ITEM_WIDTH) 0.25; }
86                rel2 { relative: (38/ITEM_WIDTH) 0.25; }
87             }
88          }
89          part { name: "city";
90             type: TEXT;
91             scale: 1;
92             mouse_events: 0;
93              description { state: "default";
94                rel1 { relative: (73/ITEM_WIDTH) 0.5; to: "base"; }
95                rel2 { relative: (400/ITEM_WIDTH) 0.5; to: "base"; }
96                color: 197 191 181 255;
97                text {
98                   text: "Seoul, Korea";
99                   font: "Tizen";
100                   text_class: "tizen";
101                   min: 0 1;
102                   size: 20;
103                   align: 0 1;
104                }
105                align: 0 1;
106             }
107             description { state: "result";
108                rel1 { relative: (73/ITEM_WIDTH) 0.25; to: "base"; }
109                rel2 { relative: (350/ITEM_WIDTH) 0.25; to: "base"; }
110                color: 197 191 181 255;
111                text {
112                   text: "Seoul, Korea";
113                   font: "Tizen";
114                   text_class: "tizen";
115                   min: 0 1;
116                   size: 20;
117                   align: 0 0.5;
118                }
119                align: 0 0.5;
120             }
121          }
122          part { name: "time";
123             type: TEXT;
124             mouse_events: 0;
125             scale: 1;
126              description { state: "default";
127                rel1 { relative: 0.7 0.25; to: "city"; }
128                rel2 { relative: 0.95 0.25; to: "base"; }
129                color: 221 218 213 0;
130                text {
131                   text: "GMT + 8";
132                   font: "Tizen";
133                   text_class: "tizen";
134                   min:  0 1;
135                   size: 20;
136                   align: 1 1;
137                }
138                align: 0 0;
139             }
140             description { state: "result";
141                inherit: "default";
142                color: 221 218 213 255;
143             }
144          }
145          part { name: "gmt";
146             type: TEXT;
147             mouse_events: 0;
148             scale: 1;
149              description { state: "default";
150                rel1 { relative: (73/ITEM_WIDTH) 0.48; to: "base"; }
151                rel2 { relative: (400/ITEM_WIDTH) 0.52; to: "base"; }
152                color: 221 218 213 255;
153                text {
154                   text: "GMT + 8";
155                   font: "Tizen";
156                   text_class: "tizen";
157                   min: 0 1;
158                   size: 20;
159                   align: 0 1;
160                }
161                align: 0 0;
162             }
163             description { state: "result";
164                inherit: "default";
165                color: 221 218 213 0;
166             }
167          }
168          part { name: "bottom_line";
169             type: RECT;
170              description { state: "default";
171                rel1 { relative: 0 1; }
172                rel2 { relative: 1 1; }
173                min: 0 1;
174                align: 0.5 1;
175                fixed: 0 1;
176                color: 197 191 181 255;
177             }
178             description { state: "result";
179                inherit: "default";
180                color: 197 191 181 0;
181             }
182          }
183          part { name: "result_bar";
184             type: IMAGE;
185             scale: 1;
186             clip_to: "graph";
187              description { state: "default";
188                rel1 { relative: (73/ITEM_WIDTH) 0.75; }
189                rel2 { to_x:"base"; relative: 0.95 0.75; }
190                fixed:1 1;
191                min: 0 15;
192                image.normal: "result_bar.png";
193                image.border: 3 3 3 3;
194                image.border_scale: 1;
195             }
196          }
197          part { name: "graph";
198             type: RECT;
199             scale: 1;
200              description { state: "default";
201                rel1 { relative: (73/ITEM_WIDTH) 0.75; }
202                rel2 { to_x:"base"; relative: 0.95 0.75; }
203                min: 0 0;
204                color: 255 255 255 0;
205             }
206             description { state: "result";
207                inherit: "default";
208                min: 0 15;
209                color: 255 255 255 255;               
210             }
211          }         
212          part {name: "delete";
213             type: IMAGE;
214             scale: 1;
215              description { state: "default";
216                rel1 { relative: 0.5 0.5; to: "delete_event"; }
217                rel2 { relative: 0.5 0.5; to: "delete_event"; }
218                align: 0.5 0.5;
219                min: 34 34;
220                fixed: 1 1;
221                image.normal: "delete_button.png";
222             }
223             description { state: "press";
224                inherit: "default";
225                color: 255 255 255 100;
226             }
227             description { state: "result";
228                inherit: "default";
229                color: 255 255 255 0;
230             }
231          }
232          part { name: "delete_event";
233             type: SWALLOW;
234             scale: 1;
235              description { state: "default";
236                rel1 { relative: (444/ITEM_WIDTH) 0.5; to: "base"; }
237                rel2 { relative: 1 0.5; to: "base"; }
238                align: 1 0.5;
239                min: ITEM_HEIGHT ITEM_HEIGHT;
240                fixed: 1 1;
241             }
242             description { state: "result";
243                inherit: "default";
244                visible: 0;
245             }
246          }
247       }
248       programs {
249          program { name: "go_result";
250             signal: "momentic,item,state,result";
251             action: STATE_SET "result" 0.0;
252             target: "delete_event";
253             target: "delete";
254             target: "bottom_line";
255             target: "gmt";
256             target: "time";
257         //    target: "city";
258          //   target: "mark";
259             target: "graph";
260             transition: DECELERATE 0.5;
261          }
262          program { name: "go_default";
263             signal: "momentic,item,state,default";
264             action: STATE_SET "default" 0.0;
265             target: "delete_event";
266             target: "delete";
267             target: "bottom_line";
268             target: "gmt";
269             target: "time";
270      //       target: "city";
271     //        target: "mark";
272             target: "graph";
273             transition: DECELERATE 0.5;
274          }
275       }
276    }
277 }