[Request]Update Flora license version
[apps/home/clock.git] / alarm / res / edc / alarm.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "alarm-hd.inc"
18
19 images {
20         image: "P03_alarm_no contents.png" COMP;
21 }
22
23 collections {
24     group {//main
25         name: "main";
26         min: MAIN_W MAIN_H;
27
28         parts {
29             part { name: "background";
30                 type: RECT;
31                 mouse_events: 1;
32                 scale: 1;
33                 description {
34                     state: "default" 0.0;
35                     rel1 { relative: 0.0 0.0;}
36                     rel2 { relative: 1.0 1.0;}
37                     color: 255 255 255 0;
38                 }
39             }
40
41             part { name: "txt_title";
42                 type: TEXT;
43                 mouse_events: 0;
44                 scale: 1;
45                 description {
46                     state: "default" 0.0;
47                     rel1 { relative: 0.0 0.0; to: background;}
48                     rel2 { relative: 1.0 0.5; to: background;}
49                     text { text_class: "tc_default"; align: 0.5 0.5;}
50                     color: 255 255 255 255;
51                 }
52             }
53
54             part { name: "txt_mesg";
55                 type: TEXT;
56                 mouse_events: 0;
57                 scale: 1;
58                 description {
59                     state: "default" 0.0;
60                     rel1 { relative: 0.0 0.5; to: background;}
61                     rel2 { relative: 1.0 1.0; to: background;}
62                     text { text_class: "tc_default"; align: 0.5 0.5;}
63                     color: 255 255 255 255;
64                 }
65             }
66         }
67
68         programs {
69             program {
70                 name: "click_exit";
71                 source: "background";
72                 signal: "mouse,clicked,1";
73                 action: SIGNAL_EMIT "EXIT" "EDJ";
74             }
75         }
76     }//main
77     group {//page/genlist
78         name: "page/genlist";
79
80         parts {
81             part {
82                 name: "background";
83                 type: RECT;
84                 mouse_events: 1;
85                 scale: 1;
86                 description {
87                     state: "default" 0.0;
88                     rel1 { relative: 0.0 0.0;}
89                     rel2 { relative: 1.0 1.0;}
90                     color: 255 255 255 0;
91                 }
92             }
93             part {
94                 name: "swl/genlist";
95                 type: SWALLOW;
96                 mouse_events: 1;
97                 scale: 1;
98                 description {
99                     state: "default" 0.0;
100                     rel1 { relative: 0.0 0.0;  to: "background";}
101                     rel2 { relative: 1.0 1.0;  to: "background";}
102                     color: 255 255 255 0;
103                 }
104             }
105
106         }
107     }//page/genlist
108     group {//page/delete
109         name: "page/delete";
110         /*------------------------- Group page/delete start -------------------------*/
111         parts {
112             part {
113                 name: "background";
114                 type: RECT;
115                 mouse_events: 1;
116                 scale: 1;
117                 description {
118                     state: "default" 0.0;
119                     rel1 { relative: 0.0 0.0;}
120                     rel2 { relative: 1.0 1.0;}
121                     color: 255 255 255 0;
122                 }
123             }
124             part {
125                 name: "swl/selectall";
126                 type: SWALLOW;
127                 mouse_events: 1;
128                 scale: 1;
129                 description {
130                     state: "default" 0.0;
131                     rel1 { relative: 0.0 0.0;  to: "background";}
132                     rel2 { relative: 1.0 DELETE_SELECTALL_H/800;  to: "background";}
133                     color: 255 255 255 0;
134                 }
135             }
136             part {
137                 name: "swl/genlist";
138                 type: SWALLOW;
139                 mouse_events: 1;
140                 scale: 1;
141                 description {
142                     state: "default" 0.0;
143                     rel1 { relative: 0.0 (DELETE_SELECTALL_H)/800;  to: "background";}
144                     rel2 { relative: 1.0 1.0;  to: "background";}
145                     color: 255 255 255 0;
146                 }
147             }
148         }
149
150         /*------------------------- Group page/delete end -------------------------*/
151     }//page/delete
152     group {//page/setting
153         name: "page/setting";
154         parts {
155             part {
156                 name: "background";
157                 type: RECT;
158                 mouse_events: 1;
159                 scale: 1;
160                 description {
161                     state: "default" 0.0;
162                     rel1 { relative: 0.0 0.0;}
163                     rel2 { relative: 1.0 1.0;}
164                     color: 248 246 239 255;
165                 }
166             }
167             part {
168                 name: "swl/genlist";
169                 type: SWALLOW;
170                 mouse_events: 1;
171                 scale: 1;
172                 description {
173                     state: "default" 0.0;
174                     rel1 { relative: 0.0 0.0;  to: "background";}
175                     rel2 { relative: 1.0 1.0;  to: "background";}
176                     color: 255 255 255 255;
177                 }
178             }
179         }
180     }//page/setting
181     group {//selectall
182         name: "selectall";
183
184         parts {
185             part {
186                 name: "bg_rect";
187                 type: RECT;
188                 mouse_events: 1;
189                 scale: 1;
190                 description {
191                     state: "default" 0.0;
192                     rel1 { relative: 0.0 0.0;}
193                     rel2 { relative: 1.0 1.0;}
194                     color: COLOR_DLETE_SELECTALL;
195                 }
196             }
197             GENLIST_PART_BG_IMAGE
198             GENLIST_PART_BOTTOM_LINE
199
200             part {
201                 name: "text";
202                 type: TEXT;
203                 mouse_events: 0;
204                 scale: 1;
205                 description
206                 {
207                     state: "default" 0.0;
208                      rel1 { relative: 1.0  0.0; to_x:"checkbox";}
209                     rel2 { relative: 1.0 1.0;}
210                     align: 0.0 0.5;
211                     color: 72 72 72 255;
212                     TEXT_FONT_GENLIST_NAME()
213                 }
214                 description { state: "selected" 0.0;
215                                                 inherit: "default" 0.0;
216                                                 color: 249 249 249 255;
217                                 }
218             }
219
220             part{
221                 name: "checkbox";
222                 type: SWALLOW;
223                 scale: 1;
224                 mouse_events:   0;
225                 description
226                 {
227                     state: "default" 0.0;
228                     fixed: 1 1;
229                     rel1 { relative: DELETE_CHECK_X/480 35/DELETE_SELECTALL_H;}
230                     rel2 { relative: (DELETE_CHECK_X+DELETE_CHECK_W)/480 (35+44)/DELETE_SELECTALL_H;}
231                 }
232             }
233             GENLIST_PART_DISCLIP
234         }
235
236         programs
237         {
238             program
239             {
240                 name:    "go_active";
241                 signal:  "mouse,down,*";
242                 source:  "bg_rect";
243                 action:  STATE_SET "selected" 0.0;
244                 target:  "text";
245                 target:  "bg_image";
246             }
247             program
248             {
249                 name:    "go_passive";
250                 signal:  "mouse,up,*";
251                 source:  "bg_rect";
252                 action:  STATE_SET "default" 0.0;
253                 target:  "text";
254                 target:  "bg_image";
255             }
256         }
257     }//selectall
258
259     //for timeset
260     group { name: "datefield";
261         parts {
262                 part { name: "base";
263                     type: RECT;
264                     repeat_events: 1;
265                     scale: 1;
266                     description { state: "default" 0.0;
267                        min: 0 ALARM_VIEW_EDIT_ITEM_HEIGHT_DATEFILED;
268                        color: 255 255 255 0;
269                     }
270                  }
271
272
273             //GENLIST_PART_BOTTOM_LINE
274             GENLIST_PART_PADDING_TOP( GENLIST_PADDING_10_INC )
275             GENLIST_PART_PADDING_BOTTOM( GENLIST_PADDING_10_INC )
276             #GENLIST_PART_PADDING_LEFT( GENLIST_PADDING_10_INC )
277             GENLIST_PART_PADDING_LEFT( 0)
278             GENLIST_PART_PADDING_RIGHT( GENLIST_PADDING_10_INC )
279
280
281             part { name: "top.text";
282                 type: TEXT;
283                 mouse_events: 0;
284                 scale: 1;
285                 description { state: "default" 0.0;
286                     min: 0 GENLIST_SIZE_38_INC;
287                     fixed: 0 1;
288                     align: 0 0;
289                     rel1 {
290                         relative: 1.0 1.0;
291                         to_x: "elm.padding.left";
292                         to_y: "elm.padding.top";
293                     }
294                     rel2 {
295                         relative: 0.0 1.0;
296
297                         to_x: "elm.padding.right";
298                         to_y: "elm.padding.top";
299                     }
300                     color: GENLIST_PART_TEXT_COLOR_INC;
301                     text {
302                         font: "SLP:style=Regular";
303                         text_class: "slp_regular";
304                         size: GENLIST_FONT_28_INC;
305                         min: 0 1;
306                         align: 0.0 0.5;
307                     }
308                 }
309                 description { state: "selected" 0.0;
310                     inherit: "default" 0.0;
311                     color: GENLIST_PART_TEXT_SELECTED_COLOR_INC;
312                 }
313             }
314             part { name: "content";
315                 type: SWALLOW;
316                 scale: 1;
317                 repeat_events: 0;
318                 description {
319                     state: "default" 0.0;
320                     align: 0.0 0.5;
321                     fixed: 1 1;
322                     rel1 {relative: (18+120)/480 46/136;}
323                     rel2 {relative: (480-120)/480 122/136;}
324                 }
325             }
326         }
327     }//for timeset
328
329         group {//alarm/noctent
330                 name: "alarm/nocontent";
331                 parts {
332                         part {
333                                 name: "background";
334                                 type: RECT;
335                                 mouse_events: 1;
336                                 scale: 1;
337                                 description {
338                                         state: "default" 0.0;
339                                         rel1 { relative: 0.0 0.0;}
340                                         rel2 { relative: 1.0 1.0;}
341                                         color: 248 246 239 255;
342                                 }
343                         }
344                         part {
345                                 name: "alarm_icon";
346                                 type: IMAGE;
347                                 mouse_events: 1;
348                                 scale: 1;
349                                 description {
350                                         state: "default" 0.0;
351                                         rel1 { relative: (260/720) (289/999);}
352                                         rel2 { relative: (460/720) (489/999);}
353                                         image {
354                                                 normal: "P03_alarm_no contents.png";
355                                         }
356                                 }
357                         }
358                         part {
359                                 name: "no_alarms";
360                                 type: TEXT;
361                                 scale: 1;
362                                 mouse_events: 0;
363                                 description {
364                                         state: "default" 0.0;
365                                         rel1 { relative: 0.0 (509/999); }
366                                         rel2 { relative: 1.0 (551/999); }
367                                         text { font: FONT_SLP_ROM; size: 42; align: 0.5 0.5;text: "No alarms";}
368                                         color: 115 115 115 255;
369                                 }
370                         }
371                         part {
372                                 name: "guide_text.1";
373                                 type: SWALLOW;
374                                 scale: 1;
375                                 mouse_events: 0;
376                                 description {
377                                         state: "default" 0.0;
378                                         fixed: 0 1;
379                                         rel1 { relative: 0.08 ((999-117)/999); }
380                                         rel2 { relative: 0.92 ((999-37)/999); }
381                                         //text { font: FONT_SLP_ROM; size: 34; align: 0.5 0.5;text: "Tap create alarm to set";}
382                                         //color: 100 100 100 255;
383                                 }
384                         }
385                 }
386         }//alarm/noctent
387 }//collections
388
389