7a75871edc40389c108df1bfd26b899e82ff6b1a
[apps/core/preloaded/calendar.git] / data / edc / layout / inc.main.month.weekly.edc
1 // 720 x 855
2 #ifndef _RATIO_
3 #define _RATIO_
4 #define R_X (480.0/720.0)
5 #define R_Y (800.0/1280.0)
6 #endif
7
8 //for month view
9 #define W (720.0*R_X)
10 #define H (855.0*R_Y)
11 #define H_WEEK (105.0*R_Y)
12 #define H_GAP (2.0*R_Y)
13 #define H_LINE (3.0*R_Y)
14
15 group { name, "main/month/weekly";
16
17         parts {
18                 part { name, "base";
19                         type, RECT;
20                         description {
21                                 state, "default" 0.0;
22                                 color, 0 0 0 0;
23                         }
24                 }
25
26                 part { name, "cal/sw";
27                         type, SWALLOW;
28                         clip_to, "cal/clip";
29                         description {
30                                 state, "default" 0.0;
31                                 rel1 { relative, 0.0 0.0; offset, 0 0; to, "base"; }
32                                 rel2 { relative, 1.0 0.0; offset, 0 H; to, "base"; }
33                         }
34                 }
35
36                 part { name, "cal/sw/left";
37                         type, SWALLOW;
38                         clip_to, "cal/clip";
39                         description {
40                                 state, "default" 0.0;
41                                 rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
42                                 rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";}
43                         }
44                 }
45
46                 part { name, "cal/sw/right";
47                         type, SWALLOW;
48                         clip_to, "cal/clip";
49                         description {
50                                 state, "default" 0.0;
51                                 rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; }
52                                 rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";}
53                         }
54                 }
55
56                 part { name, "cal/clip";
57                         type, RECT;
58                         description {
59                                 state, "default" 0.0;
60                                 rel1.to, "cal/sw";
61                                 rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; }
62                         }
63                         description {
64                                 state, "default" 1.0;
65                                 rel1.to, "cal/sw";
66                                 rel2 { relative, 1.0 ((H-H_WEEK-H_GAP)/H); offset: 0 0; to, "cal/sw"; }
67                         }
68                         description {
69                                 state, "default" 0.5;
70                                 rel1.to, "cal/sw";
71                                 rel2 { relative, 1.0 ((H-2*H_WEEK-2*H_GAP)/H); offset: 0 0; to, "cal/sw"; }
72                         }
73                 }
74                 part { name, "list/line";
75                         type, RECT;
76                         description {
77                                 state, "default" 0.0;
78                                 rel1 { relative, 0.0 1.0; offset, 0 0; to, "cal/clip";  }
79                                 rel2 { relative, 1.0 1.0; offset, 0 H_LINE; to, "cal/clip"; }
80                                 color, COLOR_OF_LIST_LINE_FOR_MONTH;
81                         }
82                 }
83         }
84
85         programs {
86                 program { name, "cal/line5";
87                         signal, "go,line5";
88                         source, "prog";
89                         action, STATE_SET "default" 1.0;
90                         target, "cal/clip";
91                         transition, SINUSOIDAL 0.0;
92                 }
93                 program { name, "cal/line6";
94                         signal, "go,line6";
95                         source, "prog";
96                         action, STATE_SET "default" 0.0;
97                         target, "cal/clip";
98                         transition, SINUSOIDAL 0.0;
99                 }
100                 program { name, "cal/line4";
101                         signal, "go,line4";
102                         source, "prog";
103                         action, STATE_SET "default" 0.5;
104                         target, "cal/clip";
105                         transition, SINUSOIDAL 0.0;
106                 }
107         }
108 }