f01f73d0a341702759ad0d416c44c7200ce29303
[apps/core/preloaded/calendar.git] / data / edc / layout / inc.main.month.edc
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.0 (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 //HD size 720x1280
19 #define HEIGHT_OF_MONTH_VIEW (920.0*R_Y)
20 #define HEIGHT_OF_CALENDAR_SW (690.0*R_Y)
21 #define HEIGHT_OF_WEEK_LINE (2.0*R_Y)
22 #define HEIGHT_OF_WEEK (105.0*R_Y)
23 #define HEIGHT_OF_WEEK_LITTLE (15.0*R_Y)
24 #define HEIGHT_OF_WEEK_5 (125.0*R_Y)
25 #define HEIGHT_OF_WEEK_4 (135.0*R_Y)
26 #define HEIGHT_OF_VIEW (690.0*R_Y)
27 #define HEIGHT_OF_BOTTOM_LINE (3.0*R_Y)
28
29 #define HEIGHT_OF_LIST_INDEX (48.0)
30 #define WIDTH_OF_LIST_INDEX (720.0)
31 #define WIDTH_OF_LIST_ICON (24.0)
32 #define HEIGHT_OF_LIST_ICON (24.0)
33 #define LIST_ICON_RIGHT_OFFSET (14.0)
34 #define WIDTH_OF_LIST_INDEX_AREA (52)
35
36 #define HEIGHT_OF_LIST_EXPAND_AREA (60)
37 #define WIDTH_OF_LIST_EXPAND_AREA (93)
38 #define WIDTH_OF_LIST_EXPAND_ICON (74)
39
40 #define EXPAND_BUTTON_BOTTOM_OFFSET -14
41 group { name, "main/month";
42         images {
43                 image: CALENDAR_CIRCLE_BUTTON COMP;
44                 image: CALENDAR_CIRCLE_BUTTON_PRESS COMP;
45                 image: CALENDAR_LIST_INDEX_OPEN COMP;
46                 image: CALENDAR_LIST_INDEX_CLOSE COMP;
47                 image: CALENDAR_LIST_INDEX_BG COMP;
48                 image: CALENDAR_LIST_INDEX_BG_PRESS COMP;
49         }
50
51         parts {
52                 part { name, "base";
53                         type, RECT;
54                         description {
55                                 state, "default" 0.0;
56                                 color, 248 246 239 255;
57                                 rel1 { relative, 0.0 0.0; }
58                                 rel2 { relative, 1.0 1.0; }
59                         }
60                 }
61
62                 part { name, "cal/sw";
63                         type, SWALLOW;
64                         clip_to, "cal/clip";
65                         description {
66                                 state, "default" 0.0;
67                                 rel1 { relative, 0.0 0.0; to, "base"; }
68                                 rel2 { relative, 1.0 (HEIGHT_OF_CALENDAR_SW/HEIGHT_OF_MONTH_VIEW); to, "base"; }
69                         }
70                         description {
71                                 state, "default" 0.1;
72                                 rel1 { relative, 0.0 0.0; to, "base"; }
73                                 rel2 { relative, 1.0 1.0; to, "base"; }
74                         }
75
76                         description {
77                                 state, "default" 0.2;
78                                 rel1.to, "base";
79                                 rel2 { relative, 1.0 ((HEIGHT_OF_VIEW+HEIGHT_OF_WEEK_5+HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_VIEW); to, "base"; }
80                         }
81                         description {
82                                 state, "default" 0.3;
83                                 rel1.to, "base";
84                                 rel2 { relative, 1.0 ((HEIGHT_OF_VIEW+2*HEIGHT_OF_WEEK_4+2*HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_VIEW); to, "base"; }
85                         }
86                 }
87
88                 part { name, "cal/sw/left";
89                         type, SWALLOW;
90                         clip_to, "cal/clip";
91                         description {
92                                 state, "default" 0.0;
93                                 rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
94                                 rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";}
95                         }
96                 }
97
98                 part { name, "cal/sw/right";
99                         type, SWALLOW;
100                         clip_to, "cal/clip";
101                         description {
102                                 state, "default" 0.0;
103                                 rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
104                                 rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";}
105                         }
106                 }
107
108                 part { name, "cal/clip";
109                         type, RECT;
110                         description {
111                                 state, "default" 0.0;
112                                 rel1.to, "cal/sw";
113                                 rel2 { relative, 1.0 1.0; offset, 0 -2.0; to, "cal/sw"; }
114                         }
115                         description {
116                                 state, "default" 1.0;
117                                 rel1.to, "cal/sw";
118                                 rel2 { relative, 1.0 ((HEIGHT_OF_VIEW-HEIGHT_OF_WEEK)/HEIGHT_OF_VIEW); offset, 0 -3.0; to, "cal/sw"; }
119                         }
120                         description {
121                                 state, "default" 0.5;
122                                 rel1.to, "cal/sw";
123                                 rel2 { relative, 1.0 ((HEIGHT_OF_VIEW-2*HEIGHT_OF_WEEK-2*HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_CALENDAR_SW); offset, 0 -2.0; to, "cal/sw"; }
124                         }
125                 }
126
127                 part { name, "list/base";
128                         type, SWALLOW;
129                         mouse_events, 0;
130                         description {
131                                 state, "default" 0.0;
132                                 rel1 {
133                                         relative, 0.0 1.0; offset, 0 30;
134                                         to_x, "base"; to_y, "cal/clip";
135                                 }
136                                 rel2.to, "base";
137                                 color, 0 0 0 0;
138                         }
139                         description {
140                                 state, "default" 0.1;
141                                 rel1 {
142                                         relative, 0.0 ((HEIGHT_OF_VIEW-4*HEIGHT_OF_WEEK-HEIGHT_OF_WEEK_LITTLE)/HEIGHT_OF_CALENDAR_SW);offset, 0 40;
143                                         to_x, "base"; to_y, "cal/sw";
144                                 }
145                                 rel2.to, "base";
146                                 color, 0 0 0 0;
147                         }
148                 }
149
150                 part { name, "list/sw";
151                         type, SWALLOW;
152                         description {
153                                 state, "default" 0.0;
154                                 rel1{ relative, 0.0 0.0; to, "list/base";}
155                                 rel2.to, "list/base";
156                         }
157                 }
158
159                 part { name, "list/line";
160                         type, RECT;
161                         description {
162                                 state, "default" 0.0;
163                                 rel1 { to, "list/base"; }
164                                 rel2 { relative, 1.0 0.0; offset, 0 HEIGHT_OF_BOTTOM_LINE; to, "list/base"; }
165                                 color, COLOR_OF_LIST_LINE_FOR_MONTH;
166                         }
167                 }
168
169         }
170
171         programs {
172                 program { name, "cal/line5";
173                         signal, "go,line5";
174                         source, "prog";
175                         action, STATE_SET "default" 1.0;
176                         target, "cal/clip";
177                 }
178                 program { name, "cal/line6";
179                         signal, "go,line6";
180                         source, "prog";
181                         action, STATE_SET "default" 0.0;
182                         target, "cal/clip";
183                 }
184                 program { name, "cal/line4";
185                         signal, "go,line4";
186                         source, "prog";
187                         action, STATE_SET "default" 0.5;
188                         target, "cal/clip";
189                 }
190         }
191 }