[misc] Sycn with master branch.
[apps/core/preloaded/calendar.git] / data / edc / layout / inc.main.month.weekly.edc
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.1 (the "License");
6   *  you may not use this file except in compliance with the License.
7   *  You may obtain a copy of the License at
8   *
9   *       http://floralicense.org/license/
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   */
17
18
19 // 720 x 855
20 #ifndef _RATIO_
21 #define _RATIO_
22 #define R_X (480.0/720.0)
23 #define R_Y (800.0/1280.0)
24 #endif
25
26 //for month view
27 #define W (720.0*R_X)
28 #define H (855.0*R_Y)
29 #define H_WEEK (105.0*R_Y)
30 #define H_GAP (2.0*R_Y)
31 #define H_LINE (3.0*R_Y)
32
33 #define HEIGHT_OF_LIST_INDEX (48.0)
34 #define WIDTH_OF_LIST_INDEX (720.0)
35 #define WIDTH_OF_LIST_ICON (24.0)
36 #define HEIGHT_OF_LIST_ICON (24.0)
37 #define LIST_ICON_RIGHT_OFFSET (14.0)
38 #define HEIGHT_OF_CONTENT (915)
39 #define WIDTH_OF_LIST_INDEX_AREA (52)
40
41 #define HEIGHT_OF_LIST_EXPAND_AREA (69)
42 #define WIDTH_OF_LIST_EXPAND_AREA (93)
43 #define WIDTH_OF_LIST_EXPAND_ICON (74)
44
45 #define HEIGHT_OF_MONTH_VIEW (920.0*R_Y)
46 #define HEIGHT_OF_CALENDAR_SW (690.0*R_Y)
47 #define HEIGHT_OF_WEEK (105.0*R_Y)
48
49 group { name, "main/month/weekly";
50         images {
51                 image: CALENDAR_LIST_INDEX_OPEN COMP;
52                 image: CALENDAR_LIST_INDEX_CLOSE COMP;
53                 image: CALENDAR_LIST_INDEX_BG COMP;
54                 image: CALENDAR_LIST_INDEX_BG_PRESS COMP;
55         }
56
57         parts {
58                 part { name, "base";
59                         type, RECT;
60                         description {
61                                 state, "default" 0.0;
62                                 color, 248 246 239 255;
63                         }
64                 }
65                 part { name, "cal/sw";
66                         type, SWALLOW;
67                         clip_to, "cal/clip";
68                         description {
69                                 state, "default" 0.0;
70                                 rel1 { relative, 0.0 0.0; to, "base"; }
71                                 rel2 { relative, 1.0 1.0; to, "base"; }
72                         }
73                         description {
74                                 state, "default" 0.1;
75                                 rel1 { relative, 0.0 0.0; to, "base"; }
76                                 rel2 { relative, 1.0 (HEIGHT_OF_CALENDAR_SW/HEIGHT_OF_MONTH_VIEW); to, "base"; }
77                         }
78                         description {
79                                 state, "default" 0.2;
80                                 rel1.to, "base";
81                                 rel2 { relative, 1.0 ((HEIGHT_OF_CALENDAR_SW-HEIGHT_OF_WEEK-HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_MONTH_VIEW); to, "base"; }
82                         }
83                         description {
84                                 state, "default" 0.3;
85                                 rel1.to, "base";
86                                 rel2 { relative, 1.0 ((HEIGHT_OF_CALENDAR_SW-2*HEIGHT_OF_WEEK-2*HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_MONTH_VIEW); to, "base"; }
87                         }
88                 }
89
90                 part { name, "cal/sw/left";
91                         type, SWALLOW;
92                         clip_to, "cal/clip";
93                         description {
94                                 state, "default" 0.0;
95                                 rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
96                                 rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";}
97                         }
98                 }
99
100                 part { name, "cal/sw/right";
101                         type, SWALLOW;
102                         clip_to, "cal/clip";
103                         description {
104                                 state, "default" 0.0;
105                                 rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
106                                 rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";}
107                         }
108                 }
109
110                 part { name, "cal/clip";
111                         type, RECT;
112                         description {
113                                 state, "default" 0.0;
114                                 rel1.to, "cal/sw";
115                                 rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; }
116                         }
117                         description {
118                                 state, "default" 1.0;
119                                 rel1.to, "cal/sw";
120                                 rel2 { relative, 1.0 ((H-H_WEEK-H_GAP)/H); offset: 0 0; to, "cal/sw"; }
121                         }
122                         description {
123                                 state, "default" 0.5;
124                                 rel1.to, "cal/sw";
125                                 rel2 { relative, 1.0 ((H-2*H_WEEK-2*H_GAP)/H); offset: 0 0; to, "cal/sw"; }
126                         }
127                 }
128                 part { name, "list/base";
129                         type, SWALLOW;
130                         description {
131                                 state, "default" 0.0;
132                                 rel1 {
133                                         relative, 0.0 1.0;
134                                         to, "cal/sw";
135                                 }
136                                 rel2 {
137                                         relative, 1.0 1.0;
138                                         to, "base";
139                                 }
140                                 color, 0 0 0 0;
141                         }
142                 }
143                 part { name, "list/sw";
144                         type, SWALLOW;
145                         description {
146                                 state, "default" 0.0;
147                                 rel1{ relative, 0.0 0.0; to, "list/base";}
148                                 rel2.to, "list/base";
149                         }
150                 }
151                 part { name, "list/line";
152                         type, RECT;
153                         description {
154                                 state, "default" 0.0;
155                                 rel1 { to, "list/base"; }
156                                 rel2 { relative, 1.0 0.0; offset, 0 HEIGHT_OF_BOTTOM_LINE; to, "list/base"; }
157                                 color, COLOR_OF_LIST_LINE_FOR_MONTH;
158                         }
159                 }
160
161         }
162
163         programs {
164                 program { name, "cal/line5";
165                         signal, "go,line5";
166                         source, "prog";
167                         action, STATE_SET "default" 1.0;
168                         target, "cal/clip";
169                 }
170                 program { name, "cal/line6";
171                         signal, "go,line6";
172                         source, "prog";
173                         action, STATE_SET "default" 0.0;
174                         target, "cal/clip";
175                 }
176                 program { name, "cal/line4";
177                         signal, "go,line4";
178                         source, "prog";
179                         action, STATE_SET "default" 0.5;
180                         target, "cal/clip";
181                 }
182         }
183 }
184
185 group { name, "main/month/weekly/l";
186
187         parts {
188                 part { name, "base";
189                         type, RECT;
190                         description {
191                                 state, "default" 0.0;
192                                 color, 248 246 239 255;
193                         }
194                 }
195
196                 part { name, "cal/sw";
197                         type, SWALLOW;
198                         clip_to, "cal/clip";
199                         description {
200                                 state, "default" 0.0;
201                                 rel1 { relative, 0.0 0.0; offset, 0 0; to, "base"; }
202                                 rel2 { relative, 1.0 1.0; offset, 0 0; to, "base"; }
203                         }
204                 }
205
206                 part { name, "cal/sw/left";
207                         type, SWALLOW;
208                         clip_to, "cal/clip";
209                         description {
210                                 state, "default" 0.0;
211                                 rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
212                                 rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";}
213                         }
214                 }
215
216                 part { name, "cal/sw/right";
217                         type, SWALLOW;
218                         clip_to, "cal/clip";
219                         description {
220                                 state, "default" 0.0;
221                                 rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
222                                 rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";}
223                         }
224                 }
225
226                 part { name, "cal/clip";
227                         type, RECT;
228                         description {
229                                 state, "default" 0.0;
230                                 rel1.to, "cal/sw";
231                                 rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; }
232                         }
233                 }
234         }
235 }
236