2.0 alpha
[apps/core/preloaded/calendar.git] / data / edc / layout / inc.main.title.edc
1 #define WIDTH_OF_TITLE (1280)
2 #define HEIGHT_OF_TITLE (108)
3 #define WIDTH_OF_TITLE_INC (90)
4 #define WIDTH_OF_TITLE_INC_RECT (100)
5 #define HEIGHT_OF_TITLE_INC_RECT (50)
6 #define OFFSET_WIDTH_OF_TITLE_INC (20)
7 #define OFFSET_HEIGHT_OF_TITLE_INC (10)
8 #define OFFSET_OF_TITLE_INC (71)
9
10 // 462 x 632
11 group { name, "main/title";
12
13         images {
14                 image, CALENDAR_SPIN_ICON_1 COMP;
15                 image, CALENDAR_SPIN_ICON_2 COMP;
16         }
17
18         styles {
19                 style { name, "main/title";
20                         base, "font=SLP:style=Medium font_size=40 align=center color=#000000ff wrap=none";
21                         tag, "br" "\n";
22                         tag, "hilight" "+ color=#ffff";
23                         tag, "b" "+ color=#ffff";
24                         tag, "g38" "+ color=#879E19 font="FONT_LIG" font_size=38";
25                         tag, "tab" "\t";
26                 }
27         }
28
29         parts {
30                 part { name, "base";
31                         type, RECT;
32                         description {
33                                 state, "default" 0.0;
34                                 color, 0 0 0 0;
35                         }
36                 }
37
38                 part { name, "title/text";
39                         type, TEXTBLOCK;
40                         scale, 1;
41                         mouse_events, 0;
42                         description {
43                                 state, "default" 0.0;
44                                 fixed, 0 1;
45                                 rel1 { relative, 1.0 0.5; to_x, "title/left"; to_y, "base"; }
46                                 rel2 { relative, 0.0 0.5; to_x, "title/right"; to_y, "base"; }
47                                 text {
48                                         style, "main/title";
49                                         min, 0 1;
50                                 }
51                         }
52                 }
53
54                 part { name, "title/left";
55                         type, RECT;
56                         scale, 1;
57                         description {
58                                 state, "default" 0.0;
59                                 min, 58 0;
60                                 fixed, 1 0;
61                                 rel1.to, "base";
62                                 rel2 {
63                                         relative, 0.0 1.0;
64                                         to, "base";
65                                 }
66                                 align, 0.0 0.5;
67                                 color, 0 0 0 0;
68                         }
69                 }
70
71                 part { name, "title/left/img";
72                         scale, 1;
73                         mouse_events, 0;
74                         description {
75                                 state, "default" 0.0;
76                                 min, 12 24;
77                                 fixed, 1 1;
78                                 rel1 { relative, 0.5 0.5; to, "title/left"; }
79                                 rel2 { relative, 0.5 0.5; to, "title/left"; }
80                                 align, 0.5 0.5;
81                                 image.normal, "57_calendar_spin_01_icon.png";
82                         }
83                 }
84
85                 part { name, "title/right";
86                         type, RECT;
87                         scale, 1;
88                         description {
89                                 state, "default" 0.0;
90                                 min, 58 0;
91                                 fixed, 1 0;
92                                 rel1 {
93                                         relative, 1.0 0.0;
94                                         to, "base";
95                                 }
96                                 rel2.to, "base";
97                                 align, 1.0 0.5;
98                                 color, 0 0 0 0;
99                         }
100                 }
101
102                 part { name, "title/right/img";
103                         scale, 1;
104                         mouse_events, 0;
105                         description {
106                                 state, "default" 0.0;
107                                 min, 12 24;
108                                 fixed, 1 1;
109                                 rel1 { relative, 0.5 0.5; to, "title/right"; }
110                                 rel2 { relative, 0.5 0.5; to, "title/right"; }
111                                 align, 0.5 0.5;
112                                 image.normal, "57_calendar_spin_02_icon.png";
113                         }
114                 }
115         }
116
117         programs {
118                 program { name, "title/left/down";
119                         signal, "mouse,down,1";
120                         source, "title/left";
121                         action, SIGNAL_EMIT "start,dec" "title";
122                 }
123
124                 program { name, "title/left/up";
125                         signal, "mouse,up,1";
126                         source, "title/left";
127                         action, SIGNAL_EMIT "stop,dec" "title";
128                 }
129
130                 program { name, "title/right/down";
131                         signal, "mouse,down,1";
132                         source, "title/right";
133                         action, SIGNAL_EMIT "start,inc" "title";
134                 }
135
136                 program { name, "title/right/up";
137                         signal, "mouse,up,1";
138                         source, "title/right";
139                         action, SIGNAL_EMIT "stop,inc" "title";
140                 }
141         }
142 }
143
144 group { name, "main/title/l";
145
146         images {
147                 image, "P01_title_right.png" COMP;
148                 image, "P01_title_right_press.png" COMP;
149                 image, "P01_title_left.png" COMP;
150                 image, "P01_title_left_press.png" COMP;
151         }
152
153         styles {
154                 style { name, "main/title/l";
155                         base, "font=SLP:style=Medium font_size=40 align=center color=#ffffffff wrap=none";
156                         tag, "br" "\n";
157                         tag, "hilight" "+ color=#ffff";
158                         tag, "b" "+ color=#ffff";
159                         tag, "g38" "+ color=#879E19 font="FONT_LIG" font_size=18";
160                         tag, "tab" "\t";
161                 }
162         }
163
164         parts {
165                 part { name, "base";
166                         type, RECT;
167                         description {
168                                 state, "default" 0.0;
169                                 color, 0 0 0 0;
170                         }
171                 }
172
173                 part { name, "title/text";
174                         type, TEXTBLOCK;
175                         scale, 1;
176                         mouse_events, 0;
177                         description {
178                                 state, "default" 0.0;
179                                 fixed, 0 1;
180                                 rel1 { relative, 1.0 0.5; to_x, "title/left"; to_y, "base"; }
181                                 rel2 { relative, 0.0 0.5; to_x, "title/right"; to_y, "base"; }
182                                 text {
183                                         style, "main/title/l";
184                                         min, 0 1;
185                                 }
186                         }
187                 }
188
189                 part { name, "title/left/padding";
190                         type, RECT;
191                         scale, 1;
192                         description {
193                                 state, "default" 0.0;
194                                 rel1.to, "base";
195                                 rel2 {
196                                         relative, (OFFSET_OF_TITLE_INC/WIDTH_OF_TITLE/2) 1.0;
197                                         to, "base";
198                                 }
199                                 color, 0 0 0 0;
200                         }
201                 }
202
203                 part { name, "title/left";
204                         type, RECT;
205                         scale, 1;
206                         description {
207                                 state, "default" 0.0;
208                                 rel1 { relative, 1.0 (HEIGHT_OF_TITLE-HEIGHT_OF_TITLE_INC_RECT)/2/HEIGHT_OF_TITLE; to, "title/left/padding"; }
209                                 rel2 { relative, ((OFFSET_OF_TITLE_INC+WIDTH_OF_TITLE_INC_RECT)/WIDTH_OF_TITLE/2) ((HEIGHT_OF_TITLE-HEIGHT_OF_TITLE_INC_RECT)/2+HEIGHT_OF_TITLE_INC_RECT)/HEIGHT_OF_TITLE; to, "base";}
210                                 color, 0 0 0 0;
211                         }
212                 }
213                 part { name, "title/left/img";
214                         scale, 1;
215                         mouse_events, 0;
216                         description {
217                                 state, "default" 0.0;
218                                 rel1 { relative, (OFFSET_WIDTH_OF_TITLE_INC/WIDTH_OF_TITLE_INC_RECT) (OFFSET_HEIGHT_OF_TITLE_INC/HEIGHT_OF_TITLE_INC_RECT); to, "title/left"; }
219                                 rel2 { relative, (1-( OFFSET_WIDTH_OF_TITLE_INC/WIDTH_OF_TITLE_INC_RECT)) (1-(OFFSET_HEIGHT_OF_TITLE_INC/HEIGHT_OF_TITLE_INC_RECT)); to, "title/left";}
220                                 align, 0.5 0.5;
221                                 image.normal, "57_calendar_spin_01_icon.png";
222                         }
223                         description {
224                                 state, "default" 0.1;
225                                 inherit: "default" 0.0;
226                                 image.normal, "57_calendar_spin_01_icon.png";
227                         }
228                 }
229
230                 part { name, "title/right/padding";
231                         type, RECT;
232                         scale, 1;
233                         description {
234                                 state, "default" 0.0;
235                                 rel1 {
236                                         relative, (1 - (OFFSET_OF_TITLE_INC/WIDTH_OF_TITLE/2)) 0.0;
237                                         to, "base";
238                                 }
239                                 rel2.to, "base";
240                                 color, 0 0 0 0;
241                         }
242                 }
243
244                 part { name, "title/right";
245                         type, RECT;
246                         scale, 1;
247                         description {
248                                 state, "default" 0.0;
249                                 rel1 { relative, (1-((OFFSET_OF_TITLE_INC+WIDTH_OF_TITLE_INC_RECT)/WIDTH_OF_TITLE/2)) (HEIGHT_OF_TITLE-HEIGHT_OF_TITLE_INC_RECT)/2/HEIGHT_OF_TITLE; to, "base"; }
250                                 rel2 { relative, 0.0 ((HEIGHT_OF_TITLE-HEIGHT_OF_TITLE_INC_RECT)/2+HEIGHT_OF_TITLE_INC_RECT)/HEIGHT_OF_TITLE; to, "title/right/padding"; }
251                                 color, 0 0 0 0;
252                         }
253                 }
254                 part { name, "title/right/img";
255                         scale, 1;
256                         mouse_events, 0;
257                         description {
258                                 state, "default" 0.0;
259                                 min, 12 24;
260                                 fixed, 1 1;
261                                 rel1 { relative, (OFFSET_WIDTH_OF_TITLE_INC/WIDTH_OF_TITLE_INC_RECT) (OFFSET_HEIGHT_OF_TITLE_INC/HEIGHT_OF_TITLE_INC_RECT); to, "title/right"; }
262                                 rel2 { relative, (1-( OFFSET_WIDTH_OF_TITLE_INC/WIDTH_OF_TITLE_INC_RECT)) (1-(OFFSET_HEIGHT_OF_TITLE_INC/HEIGHT_OF_TITLE_INC_RECT)); to, "title/right";}
263                                 align, 0.5 0.5;
264                                 image.normal, "57_calendar_spin_02_icon.png";
265                         }
266                         description {
267                                 state, "default" 0.1;
268                                 inherit: "default" 0.0;
269                                 image.normal, "57_calendar_spin_02_icon.png";
270                         }
271                 }
272         }
273
274         programs {
275                 program { name, "title/left/down";
276                         signal, "mouse,down,1";
277                         source, "title/left";
278                         action, SIGNAL_EMIT "start,dec" "title";
279                 }
280
281                 program { name, "title/left/mouse_down";
282                         signal, "mouse,down,1";
283                         source, "title/left";
284                         action, STATE_SET "default" 0.1;
285                         target, "title/left/img";
286                 }
287
288                 program { name, "title/left/up";
289                         signal, "mouse,up,1";
290                         source, "title/left";
291                         action, SIGNAL_EMIT "stop,dec" "title";
292                 }
293
294                 program { name, "title/left/mouse_up";
295                         signal, "mouse,up,1";
296                         source, "title/left";
297                         action, STATE_SET "default" 0.0;
298                         target, "title/left/img";
299                 }
300
301                 program { name, "title/right/down";
302                         signal, "mouse,down,1";
303                         source, "title/right";
304                         action, SIGNAL_EMIT "start,inc" "title";
305                 }
306
307                 program { name, "title/right/mouse_down";
308                         signal, "mouse,down,1";
309                         source, "title/right";
310                         action, STATE_SET "default" 0.1;
311                         target, "title/right/img";
312                 }
313
314                 program { name, "title/right/up";
315                         signal, "mouse,up,1";
316                         source, "title/right";
317                         action, SIGNAL_EMIT "stop,inc" "title";
318                 }
319
320                 program { name, "title/right/mouse_up";
321                         signal, "mouse,up,1";
322                         source, "title/right";
323                         action, STATE_SET "default" 0.0;
324                         target, "title/right/img";
325                 }
326         }
327 }
328