4 #define R_X (480.0/720.0)
5 #define R_Y (800.0/1280.0)
11 #define H_WEEK (105.0*R_Y)
12 #define H_GAP (2.0*R_Y)
13 #define H_LINE (3.0*R_Y)
15 #define HEIGHT_OF_LIST_INDEX (48.0)
16 #define WIDTH_OF_LIST_INDEX (720.0)
17 #define WIDTH_OF_LIST_ICON (24.0)
18 #define HEIGHT_OF_LIST_ICON (24.0)
19 #define LIST_ICON_RIGHT_OFFSET (14.0)
20 #define HEIGHT_OF_CONTENT (915)
21 #define WIDTH_OF_LIST_INDEX_AREA (52)
23 group { name, "main/month/weekly";
25 image: CALENDAR_LIST_INDEX_OPEN COMP;
26 image: CALENDAR_LIST_INDEX_OPEN_PRESS COMP;
27 image: CALENDAR_LIST_INDEX_CLOSE COMP;
28 image: CALENDAR_LIST_INDEX_CLOSE_PRESS COMP;
29 image: CALENDAR_LIST_INDEX_BG COMP;
41 part { name, "cal/sw";
46 rel1 { relative, 0.0 0.0; offset, 0 0; to, "base"; }
47 rel2 { relative, 1.0 ((HEIGHT_OF_CONTENT-HEIGHT_OF_LIST_INDEX)/HEIGHT_OF_CONTENT); offset, 0 0; to, "base"; }
51 part { name, "cal/sw/left";
56 rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
57 rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";}
61 part { name, "cal/sw/right";
66 rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
67 rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";}
71 part { name, "cal/clip";
76 rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; }
81 rel2 { relative, 1.0 ((H-H_WEEK-H_GAP)/H); offset: 0 0; to, "cal/sw"; }
86 rel2 { relative, 1.0 ((H-2*H_WEEK-2*H_GAP)/H); offset: 0 0; to, "cal/sw"; }
90 part { name, "list/base";
96 to_x, "base"; to_y, "cal/clip";
103 part { name, "list/line";
106 state, "default" 0.0;
107 rel1 { to, "list/base"; }
108 rel2 { relative, 1.0 0.0; offset, 0 HEIGHT_OF_BOTTOM_LINE; to, "list/base"; }
109 color, COLOR_OF_LIST_LINE_FOR_MONTH;
113 part { name, "list/index";
117 state, "default" 0.0;
118 rel1{ relative, 0.0 0.0; offset, 0 2; to, "list/base"; }
119 rel2{ relative, 1.0 1.0; offset, 0 0; to, "list/base"; }
122 normal, CALENDAR_LIST_INDEX_BG;
128 part { name, "list/icon/rect";
132 state, "default" 0.0;
133 rel1{ relative, ((WIDTH_OF_LIST_INDEX-WIDTH_OF_LIST_INDEX_AREA)/WIDTH_OF_LIST_INDEX) 0.0; to, "list/index"; }
134 rel2{ relative,1.0 1.0; to, "list/index"; }
139 part { name, "list/icon";
143 state, "default" 0.0;
144 rel1{ relative, ((WIDTH_OF_LIST_INDEX-LIST_ICON_RIGHT_OFFSET-WIDTH_OF_LIST_ICON)/WIDTH_OF_LIST_INDEX) ((HEIGHT_OF_LIST_INDEX-HEIGHT_OF_LIST_ICON)/2/HEIGHT_OF_LIST_INDEX); to, "list/index"; }
145 rel2{ relative, ((WIDTH_OF_LIST_INDEX-LIST_ICON_RIGHT_OFFSET)/WIDTH_OF_LIST_INDEX) (1-((HEIGHT_OF_LIST_INDEX-HEIGHT_OF_LIST_ICON)/2/HEIGHT_OF_LIST_INDEX)); to, "list/index"; }
146 image.normal: CALENDAR_LIST_INDEX_CLOSE;
148 description { state: "down" 0.0;
149 inherit: "default" 0.0;
150 image.normal: CALENDAR_LIST_INDEX_CLOSE_PRESS;
157 program { name, "cal/line5";
160 action, STATE_SET "default" 1.0;
162 transition, SINUSOIDAL 0.0;
164 program { name, "cal/line6";
167 action, STATE_SET "default" 0.0;
169 transition, SINUSOIDAL 0.0;
171 program { name, "cal/line4";
174 action, STATE_SET "default" 0.5;
176 transition, SINUSOIDAL 0.0;
178 program { name, "icon/down";
179 signal, "mouse,down,1";
180 source, "list/icon/rect";
181 action, STATE_SET "down" 0.0;
184 program { name, "icon/up";
185 signal, "mouse,up,1";
186 source, "list/icon/rect";
187 action, STATE_SET "default" 0.0;
190 program { name, "icon/clicked";
191 signal, "mouse,clicked,1";
192 source, "list/icon/rect";
193 action, SIGNAL_EMIT "close" "cal";
198 group { name, "main/month/weekly/l";
204 state, "default" 0.0;
209 part { name, "cal/sw";
213 state, "default" 0.0;
214 rel1 { relative, 0.0 0.0; offset, 0 0; to, "base"; }
215 rel2 { relative, 1.0 1.0; offset, 0 0; to, "base"; }
219 part { name, "cal/sw/left";
223 state, "default" 0.0;
224 rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
225 rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";}
229 part { name, "cal/sw/right";
233 state, "default" 0.0;
234 rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
235 rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";}
239 part { name, "cal/clip";
242 state, "default" 0.0;
244 rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; }