Tizen souce update
[apps/core/preloaded/calendar.git] / data / edc / layout / inc.main.day.tb.edc
1 /*
2 #define ANI_TIME 0.3
3
4 #define TIMEBLOCK(_pos, _prev, _alpha) \
5         part { name, "tb/base/"_pos; \
6                 type, RECT; \
7                 scale, 1; \
8                 description { \
9                         state, "default" 0.0; \
10                         min, 0 140; \
11                         fixed, 0 1; \
12                         rel1 { \
13                                 relative, 0.0 1.0; \
14                                 to_x, "base"; to_y, "tb/base/"_prev; \
15                         } \
16                         rel2 { \
17                                 relative, 1.0 1.0; \
18                                 to_x, "base"; to_y, "tb/base/"_prev; \
19                         } \
20                         color, 0 0 0 0; \
21                         align, 0.5 0.0; \
22                 } \
23                 description { \
24                         state, "shrink" 0.0; \
25                         inherit, "default" 0.0; \
26                         min, 0 10; \
27                 } \
28         } \
29         part { name, "tb/bg/"_pos; \
30                 type, RECT; \
31                 description { \
32                         state, "default" 0.0; \
33                         rel1.to, "tb/base/"_pos; \
34                         rel2.to, "tb/base/"_pos; \
35                         color, 0 0 0 _alpha; \
36                 } \
37         } \
38         part { name, "tb/text/base/"_pos; \
39                 type, RECT; \
40                 scale, 1; \
41                 description { \
42                         state, "default" 0.0; \
43                         min, 130 0; \
44                         fixed, 1 0; \
45                         rel1.to, "tb/base/"_pos; \
46                         rel2 { relative, 0.0 1.0; to, "tb/base/"_pos; } \
47                         align, 0.0 0.5; \
48                         color, 0 0 0 0; \
49                 } \
50         } \
51         part { name, "tb/text/"_pos; \
52                 type, TEXT; \
53                 scale, 1; \
54                 description { \
55                         state, "default" 0.0; \
56                         rel1.to, "tb/text/base/"_pos; \
57                         rel2.to, "tb/text/base/"_pos; \
58                         text { \
59                                 font, "SLP:style=Medium"; \
60                                 size, 30; \
61                                 align, 0.6 0.0; \
62                         } \
63                         color, 0 0 0 255; \
64                 } \
65                 description { \
66                         state, "shrink" 0.0; \
67                         inherit, "default" 0.0; \
68                         visible, 0; \
69                 } \
70         } \
71         part { name, "tb/line/hori/"_pos; \
72                 type, RECT; \
73                 description { \
74                         state, "default" 0.0; \
75                         min, 0 1; \
76                         fixed, 0 1; \
77                         rel1 { \
78                                 relative, 0.0 1.0; offset, 0 -1; \
79                                 to, "tb/base/"_pos; \
80                         } \
81                         rel2.to, "tb/base/"_pos; \
82                         color, COLOR_OF_BASE_OF_LINE_FOR_TAB; \
83                         align, 0.5 0.0; \
84                 } \
85         } \
86         part { name, "tb/line/vert/"_pos; \
87                 type, RECT; \
88                 description { \
89                         state, "default" 0.0; \
90                         min, 1 0; \
91                         fixed, 1 0; \
92                         rel1 { \
93                                 relative, 1.0 0.0; \
94                                 to, "tb/text/base/"_pos; \
95                         } \
96                         rel2 { \
97                                 relative, 1.0 1.0; \
98                                 to, "tb/text/base/"_pos; \
99                         } \
100                         color, COLOR_OF_BASE_OF_LINE_FOR_TAB; \
101                         align, 1.0 0.5; \
102                 } \
103         } \
104         part { name, "tb/sel/"_pos; \
105                 mouse_events, 0; \
106                 scale, 1; \
107                 description { \
108                         state, "default" 0.0; \
109                         rel1 { \
110                                 relative, 1.0 0.0; \
111                                 to_x, "tb/text/base/"_pos; to_y, "tb/base/"_pos; \
112                         } \
113                         rel2.to, "tb/base/"_pos; \
114                         image { \
115                                 normal, CALENDAR_SELSECTED; \
116                                 border, 3 3 3 3; \
117                                 border_scale, 1; \
118                         } \
119                         visible, 0; \
120                 } \
121                 description { \
122                         state, "selected" 0.0; \
123                         inherit, "default" 0.0; \
124                         visible, 1; \
125                 } \
126         } \
127         part { name, "tb/evtbase/"_pos; \
128                 type, RECT; \
129                 description { \
130                         state, "default" 0.0; \
131                         rel1 { \
132                                 relative, 1.0 0.0; \
133                                 to_x, "tb/text/base/"_pos; to_y, "tb/base/"_pos; \
134                         } \
135                         rel2 { relative, 1.0 0.5; to, "tb/base/"_pos; } \
136                         color, 0 0 0 0; \
137                 } \
138         } \
139         part { name, "tb/evt/"_pos; \
140                 type, RECT; \
141                 description { \
142                         state, "default" 0.0; \
143                         rel1.to, "tb/base/"_pos; \
144                         rel2.to, "tb/base/"_pos; \
145                         color, 0 0 0 0; \
146                 } \
147                 description { \
148                         state, "shrink" 0.0; \
149                         inherit, "default" 0.0; \
150                         color, 0 0 0 0; \
151                         visible, 0; \
152                 } \
153         } \
154         programs { \
155                 program { name, "base/extend/"_pos; \
156                         signal, "extend,"_pos; \
157                         source, "prog"; \
158                         action, STATE_SET "default" 0.0; \
159                         transition, SINUSOIDAL ANI_TIME; \
160                         target, "tb/base/"_pos; \
161                         target, "tb/text/"_pos; \
162                         target, "tb/evt/"_pos; \
163                 } \
164                 program { name, "base/shrink/"_pos; \
165                         signal, "shrink,"_pos; \
166                         source, "prog"; \
167                         action, STATE_SET "shrink" 0.0; \
168                         transition, SINUSOIDAL ANI_TIME; \
169                         target, "tb/base/"_pos; \
170                         target, "tb/text/"_pos; \
171                         target, "tb/evt/"_pos; \
172                 } \
173                 program { name, "tb/down/"_pos; \
174                         signal, "mouse,down,1"; \
175                         source, "tb/evt/"_pos; \
176                         action, SIGNAL_EMIT "dn,"#_pos "edj"; \
177                 } \
178                 program { name, "tb/up/"_pos; \
179                         signal, "mouse,up,1"; \
180                         source, "tb/evt/"_pos; \
181                         action, SIGNAL_EMIT "up,"#_pos "edj"; \
182                 } \
183                 program { name, "tb/select/"_pos; \
184                         signal, "select,"_pos; \
185                         source, "prog"; \
186                         action, STATE_SET "selected" 0.0; \
187                         target, "tb/sel/"_pos; \
188                 } \
189                 program { name, "tb/unselect/"_pos; \
190                         signal, "unselect,"_pos; \
191                         source, "prog"; \
192                         action, STATE_SET "default" 0.0; \
193                         target, "tb/sel/"_pos; \
194                 } \
195         }
196
197 #define TBASE_DESC(_h) \
198         description { \
199                 state, "height/"_h 0.0; \
200                 inherit, "default" 0.0; \
201                 min, 0 (130 * _h); \
202         }
203
204 #define TBASE_PROG(_h) \
205         program { name, "base/"_h; \
206                 signal, "go,"_h; \
207                 source, "prog"; \
208                 action, STATE_SET "height/"_h 0.0; \
209                 transition, SINUSOIDAL ANI_TIME; \
210                 target, "base"; \
211                 after, "base/end"; \
212         }
213
214 group { name, "main/day/tb/layout";
215
216         images {
217                 image, "calendar_selected.png" COMP;
218         }
219
220         parts {
221                 part { name, "base";
222                         type, RECT;
223                         scale, 1;
224                         description {
225                                 state, "default" 0.0;
226                                 min, 0 (130 * 24);
227                                 color, 0 0 0 0;
228                         }
229                         TBASE_DESC( 1) TBASE_DESC( 2) TBASE_DESC( 3) TBASE_DESC( 4)
230                         TBASE_DESC( 5) TBASE_DESC( 6) TBASE_DESC( 7) TBASE_DESC( 8)
231                         TBASE_DESC( 9) TBASE_DESC(10) TBASE_DESC(11) TBASE_DESC(12)
232                         TBASE_DESC(13) TBASE_DESC(14) TBASE_DESC(15) TBASE_DESC(16)
233                         TBASE_DESC(17) TBASE_DESC(18) TBASE_DESC(19) TBASE_DESC(20)
234                         TBASE_DESC(21) TBASE_DESC(22) TBASE_DESC(23) TBASE_DESC(24)
235                 }
236                 programs {
237                         TBASE_PROG( 1) TBASE_PROG( 2) TBASE_PROG( 3) TBASE_PROG( 4)
238                         TBASE_PROG( 5) TBASE_PROG( 6) TBASE_PROG( 7) TBASE_PROG( 8)
239                         TBASE_PROG( 9) TBASE_PROG(10) TBASE_PROG(11) TBASE_PROG(12)
240                         TBASE_PROG(13) TBASE_PROG(14) TBASE_PROG(15) TBASE_PROG(16)
241                         TBASE_PROG(17) TBASE_PROG(18) TBASE_PROG(19) TBASE_PROG(20)
242                         TBASE_PROG(21) TBASE_PROG(22) TBASE_PROG(23) TBASE_PROG(24)
243
244                         program { name, "base/end";
245                                 action, SIGNAL_EMIT "end,animation" "edj";
246                         }
247                 }
248
249                 part { name, "tb/base/99";
250                         type, RECT;
251                         description {
252                                 state, "default" 0.0;
253                                 rel1.to, "base";
254                                 rel2 { relative, 1.0 0.0; to, "base"; }
255                                 color, 0 0 0 0;
256                         }
257                 }
258
259                 TIMEBLOCK( 0, 99,  0)
260                 TIMEBLOCK( 1,  0,  0)
261                 TIMEBLOCK( 2,  1,  0)
262                 TIMEBLOCK( 3,  2,  0)
263                 TIMEBLOCK( 4,  3,  0)
264                 TIMEBLOCK( 5,  4,  0)
265                 TIMEBLOCK( 6,  5,  0)
266                 TIMEBLOCK( 7,  6,  0)
267                 TIMEBLOCK( 8,  7,  0)
268                 TIMEBLOCK( 9,  8,  0)
269                 TIMEBLOCK(10,  9,  0)
270                 TIMEBLOCK(11, 10,  0)
271                 TIMEBLOCK(12, 11, 10)
272                 TIMEBLOCK(13, 12, 10)
273                 TIMEBLOCK(14, 13, 10)
274                 TIMEBLOCK(15, 14, 10)
275                 TIMEBLOCK(16, 15, 10)
276                 TIMEBLOCK(17, 16, 10)
277                 TIMEBLOCK(18, 17, 10)
278                 TIMEBLOCK(19, 18, 10)
279                 TIMEBLOCK(20, 19, 10)
280                 TIMEBLOCK(21, 20, 10)
281                 TIMEBLOCK(22, 21, 10)
282                 TIMEBLOCK(23, 22, 10)
283         }
284 }
285 */
286
287 group { name, "main/day/tb";
288
289         parts {
290                 part { name, "base";
291                         type, RECT;
292                         description {
293                                 state, "default" 0.0;
294                                 color, 0 0 0 0;
295                         }
296                 }
297                 part { name, "sw";
298                         type, SWALLOW;
299                         clip_to, "clip";
300                         description {
301                                 state, "default" 0.0;
302                                 rel1.to, "base";
303                                 rel2.to, "base";
304                         }
305                 }
306                 part { name, "clip";
307                         type, RECT;
308                         description {
309                                 state, "default" 0.0;
310                                 rel1.to, "sw";
311                                 rel2.to, "sw";
312                         }
313                 }
314         }
315 }
316
317
318 group { name, "main/day/tb/block";
319
320         images {
321                 image, "calendar_selected.png" COMP;
322                 image, DAY_CURRENT_TIME COMP;
323                 image, NOSCHEDULE COMP;
324         }
325
326         parts {
327                 part { name, "base";
328                         type, RECT;
329                         repeat_events, 1;
330                         description {
331                                 state, "default" 0.0;
332                                 color, 0 0 0 0;
333                         }
334                 }
335                 part { name, "bg/ampm";
336                         type, RECT;
337                         mouse_events, 0;
338                         description {
339                                 state, "default" 0.0;
340                                 rel1.to, "base";
341                                 rel2.to, "base";
342                                 color, 0 0 0 0;
343                         }
344                         description {
345                                 state, "pm" 0.0;
346                                 inherit, "default" 0.0;
347                                 color, 0 0 0 10;
348                         }
349                 }
350                 part { name, "bg/sel";
351                         mouse_events, 0;
352                         scale, 1;
353                         description {
354                                 state, "default" 0.0;
355                                 rel1 {
356                                         relative, 1.0 0.0;
357                                         to_x, "text/base"; to_y, "base";
358                                 }
359                                 rel2.to, "base";
360                                 image {
361                                         normal, "calendar_selected.png";
362                                         border, 3 3 3 3;
363                                         border_scale, 1;
364                                 }
365                                 visible, 0;
366                         }
367                         description {
368                                 state, "selected" 0.0;
369                                 inherit, "default" 0.0;
370                                 visible, 1;
371                         }
372                 }
373                 part { name, "text/base";
374                         type, RECT;
375                         scale, 1;
376                         mouse_events, 0;
377                         description {
378                                 state, "default" 0.0;
379                                 min, 130 0;
380                                 fixed, 1 0;
381                                 rel1.to, "base";
382                                 rel2 { relative, 0.0 1.0; to, "base"; }
383                                 align, 0.0 0.5;
384                                 color, 0 0 0 0;
385                         }
386                 }
387                 part { name, "text";
388                         type, TEXT;
389                         scale, 1;
390                         mouse_events, 0;
391                         description {
392                                 state, "default" 0.0;
393                                 rel1.to, "text/base";
394                                 rel2.to, "text/base";
395                                 text {
396                                         font, "SLP:style=Medium";
397                                         size, 30;
398                                         align, 0.6 0.0;
399                                 }
400                                 color, 0 0 0 255;
401                         }
402                         description {
403                                 state, "hide" 0.0;
404                                 inherit, "default" 0.0;
405                                 visible, 0;
406                         }
407                 }
408                 part { name, "line/hori";
409                         type, RECT;
410                         mouse_events, 0;
411                         description {
412                                 state, "default" 0.0;
413                                 min, 0 1;
414                                 fixed, 0 1;
415                                 rel1 {
416                                         relative, 1.0 1.0; offset, 0 -1;
417                                         to_x, "text/base"; to_y, "base";
418                                 }
419                                 rel2.to, "base";
420                                 color, COLOR_OF_HORIZEN_LINE_FOR_TAB;
421                                 align, 0.5 0.0;
422                         }
423                 }
424                 part { name, "line/hori_mid";
425                         type, RECT;
426                         mouse_events, 0;
427                         description {
428                                 state, "default" 0.0;
429                                 min, 0 1;
430                                 fixed, 0 1;
431                                 rel1 {
432                                         relative, 1.0 0.5; offset, 0 -1;
433                                         to_x, "text/base"; to_y, "base";
434                                 }
435                                 rel2{
436                                         relative, 1.0 0.5;
437                                         to, "base";
438                                 }
439                                 color, COLOR_OF_MIDDLE_LINE_FOR_TAB;
440                                 align, 0.5 0.0;
441                         }
442                 }
443                 part { name, "line/vert";
444                         type, RECT;
445                         mouse_events, 0;
446                         description {
447                                 state, "default" 0.0;
448                                 min, 1 0;
449                                 fixed, 1 0;
450                                 rel1 { relative, 1.0 0.0; to, "text/base"; }
451                                 rel2 { relative, 1.0 1.0; to, "text/base"; }
452                                 color, COLOR_OF_VERT_LINE_FOR_TAB;
453                                 align, 1.0 0.5;
454                         }
455                 }
456                 part { name, "evtbase/top";
457                         type, RECT;
458                         mouse_events, 0;
459                         description {
460                                 state, "default" 0.0;
461                                 rel1 {
462                                         relative, 1.0 0.0;
463                                         to_x, "text/base"; to_y, "base";
464                                 }
465                                 rel2 { relative, 1.0 0.5; to, "base"; }
466                                 color, 0 0 0 0;
467                         }
468                 }
469                 part { name, "evtbase/bottom";
470                         type, RECT;
471                         mouse_events, 0;
472                         description {
473                                 state, "default" 0.0;
474                                 rel1 {
475                                         relative, 1.0 0.5;
476                                         to_x, "text/base"; to_y, "base";
477                                 }
478                                 rel2.to, "base";
479                                 color, 0 0 0 0;
480                         }
481                 }
482                 part { name, "bg/contracted";
483                         mouse_events, 0;
484                         scale, 1;
485                         description {
486                                 state, "default" 0.0;
487                                 min, 0 62;
488                                 fixed, 0 1;
489                                 rel1 {
490                                         relative, 1.0 0.0; offset, 0 10;
491                                         to_x, "text/base"; to_y, "base";
492                                 }
493                                 rel2 {
494                                         relative, 1.0 1.0;offset, 0 -12;
495                                         to_x, "base"; to_y, "base";
496                                 }
497                                 image {
498                                         normal, "P01_noschedule.png";
499                                         border, 3 3 3 3;
500                                         border_scale, 1;
501                                 }
502                                 align, 0.5 0.0;
503                                 visible, 0;
504                         }
505                         description {
506                                 state, "contracted" 0.0;
507                                 inherit, "default" 0.0;
508                                 visible, 1;
509                         }
510                 }
511                 part { name, "line/on_time";
512                         type, RECT;
513                         mouse_events, 0;
514                         description {
515                                 state, "default" 0.0;
516                                 min, 0 4;
517                                 fixed, 0 1;
518                                 rel1 {
519                                         relative, 1.0 0.5; offset, 0 -2;
520                                         to_x, "text/base"; to_y, "base";
521                                 }
522                                 rel2{
523                                         relative, 1.0 0.5;
524                                         to, "base";
525                                 }
526                                 color, COLOR_OF_ON_TIME_LINE_FOR_TAB;
527                                 align, 0.5 0.0;
528                                 visible, 0;
529                         }
530                         description {
531                                 state, "show" 0.0;
532                                 inherit, "default" 0.0;
533                                 visible, 1;
534                         }
535                 }
536                 part { name, "line/on_time/img";
537                         scale, 1;
538                         mouse_events, 0;
539                         description {
540                                 state, "default" 0.0;
541                                 min, 9 18;
542                                 fixed, 1 1;
543                                 rel1 {
544                                         relative, 1.0 0.5;
545                                         to_x, "text/base"; to_y, "base";
546                                 }
547                                 rel2{
548                                         relative, 1.0 0.5;
549                                         to_x, "text/base"; to_y, "base";
550                                 }
551                                 align, 1.0 0.5;
552                                 image.normal, "P01_day_current_time.png";
553                                 visible, 0;
554                         }
555                         description {
556                                 state, "show" 0.0;
557                                 inherit, "default" 0.0;
558                                 visible, 1;
559                         }
560                 }
561         }
562         programs {
563                 program { name, "tb/down";
564                         signal, "mouse,down,1";
565                         source, "base";
566                         action, SIGNAL_EMIT "dn" "edj";
567                 }
568                 program { name, "tb/up";
569                         signal, "mouse,up,1";
570                         source, "base";
571                         action, SIGNAL_EMIT "up" "edj";
572                 }
573                 program { name, "tb/select";
574                         signal, "select";
575                         source, "prog";
576                         action, STATE_SET "selected" 0.0;
577                         target, "bg/sel";
578                 }
579                 program { name, "tb/unselect";
580                         signal, "unselect";
581                         source, "prog";
582                         action, STATE_SET "default" 0.0;
583                         target, "bg/sel";
584                 }
585                 program { name, "tb/am";
586                         signal, "am";
587                         source, "prog";
588                         action, STATE_SET "default" 0.0;
589                         target, "bg/ampm";
590                 }
591                 program { name, "tb/pm";
592                         signal, "pm";
593                         source, "prog";
594                         action, STATE_SET "pm" 0.0;
595                         target, "bg/ampm";
596                 }
597                 program { name, "tb/text/show";
598                         signal, "show,text";
599                         source, "prog";
600                         action, STATE_SET "default" 0.0;
601                         target, "text";
602                 }
603                 program { name, "tb/text/hide";
604                         signal, "hide,text";
605                         source, "prog";
606                         action, STATE_SET "hide" 0.0;
607                         target, "text";
608                 }
609                 program { name, "tb/on_time/show";
610                         signal, "show,line";
611                         source, "prog";
612                         action, STATE_SET "show" 0.0;
613                         target, "line/on_time";
614                 }
615                 program { name, "tb/on_time/show/img";
616                         signal, "show,img";
617                         source, "prog";
618                         action, STATE_SET "show" 0.0;
619                         target, "line/on_time/img";
620                 }
621                 program { name, "tb/on_time/hide";
622                         signal, "hide,line";
623                         source, "prog";
624                         action, STATE_SET "default" 0.0;
625                         target, "line/on_time";
626                 }
627                 program { name, "tb/on_time/hide/img";
628                         signal, "hide,img";
629                         source, "prog";
630                         action, STATE_SET "default" 0.0;
631                         target, "line/on_time/img";
632                 }
633                 program { name, "tb/contracted";
634                         signal, "contracted";
635                         source, "prog";
636                         action, STATE_SET "contracted" 0.0;
637                         target, "bg/contracted";
638                 }
639                 program { name, "tb/uncontracted";
640                         signal, "uncontracted";
641                         source, "prog";
642                         action, STATE_SET "default" 0.0;
643                         target, "bg/contracted";
644                 }
645         }
646 }
647
648
649
650 group { name, "main/day/tb/event";
651
652         images {
653                 image, CALENDAR_EVENT_BG_1 COMP;
654                 image, CALENDAR_EVENT_BG_2 COMP;
655                 image, CALENDAR_EVENT_BG_3 COMP;
656                 image, CALENDAR_EVENT_BG_4 COMP;
657         }
658
659         styles {
660                 style { name, "event_textblock";
661                         base, "font=SLP:style=Roman font_size=30 color=#FFFFFFFF wrap=mixed ellipsis=1";
662                         tag,  "br" "\n";
663                         tag,  "ps" "ps";
664                         tag,  "hilight" "+ font=SLP:style=Bold";
665                         tag,  "b" "+ font=SLP:style=Bold";
666                         tag,  "tab" "\t";
667                 }
668                 style { name, "event_textblock_p";
669                         base, "font=SLP:style=Roman font_size=30 color=#000000FF wrap=word";
670                         tag,  "br" "\n";
671                         tag,  "ps" "ps";
672                         tag,  "hilight" "+ font=SLP:style=Bold";
673                         tag,  "b" "+ font=SLP:style=Bold";
674                         tag,  "tab" "\t";
675                 }
676         }
677
678         parts {
679                 part { name, "base";
680                         type, RECT;
681                         scale, 1;
682                         mouse_events, 0;
683                         description {
684                                 state, "default" 0.0;
685                                 min, 0 65;
686                                 fixed, 0 1;
687                                 color, 0 0 0 0;
688                         }
689                 }
690                 part { name, "bg/top";
691                         type, RECT;
692                         scale, 1;
693                         mouse_events, 0;
694                         description {
695                                 state, "default" 0.0;
696                                 min, 0 5;
697                                 fixed, 0 1;
698                                 rel1.to, "base";
699                                 rel2 { relative, 1.0 0.0; to, "base"; }
700                                 color, 0 0 0 0;
701                                 align, 0.5 0.0;
702                         }
703                 }
704                 part { name, "bg/bottom";
705                         type, RECT;
706                         scale, 1;
707                         mouse_events, 0;
708                         description {
709                                 state, "default" 0.0;
710                                 min, 0 5;
711                                 fixed, 0 1;
712                                 rel1 { relative, 0.0 1.0; to, "base"; }
713                                 rel2.to, "base";
714                                 color, 0 0 0 0;
715                                 align, 0.5 1.0;
716                         }
717                 }
718                 part { name, "bg/left";
719                         type, RECT;
720                         scale, 1;
721                         mouse_events, 0;
722                         description {
723                                 state, "default" 0.0;
724                                 min, 2 0;
725                                 fixed, 1 0;
726                                 rel1.to, "base";
727                                 rel2 { relative, 0.0 1.0; to, "base"; }
728                                 color, 0 0 0 0;
729                                 align, 0.0 0.5;
730                         }
731                 }
732                 part { name, "bg/right";
733                         type, RECT;
734                         scale, 1;
735                         mouse_events, 0;
736                         description {
737                                 state, "default" 0.0;
738                                 min, 2 0;
739                                 fixed, 1 0;
740                                 rel1 { relative, 1.0 0.0; to, "base"; }
741                                 rel2.to, "base";
742                                 color, 0 0 0 0;
743                                 align, 1.0 0.5;
744                         }
745                 }
746                 part { name, "bg";
747                         scale, 1;
748                         mouse_events, 0;
749                         description {
750                                 state, "default" 0.0;
751                                 rel1 {
752                                         relative, 1.0 1.0;
753                                         to_x, "bg/left"; to_y, "bg/top";
754                                 }
755                                 rel2 {
756                                         relative, 0.0 0.0;
757                                         to_x, "bg/right"; to_y, "bg/bottom";
758                                 }
759                                 image {
760                                         border, 4 4 4 4;
761                                         border_scale, 1;
762                                         normal, "57_calendar_event(1)_bg.png";
763                                 }
764                                 color, 255 255 255 200;
765                         }
766                         description {
767                                 state, "bg2" 0.0;
768                                 inherit, "default" 0.0;
769                                 image.normal, "57_calendar_event(2)_bg.png";
770                         }
771                         description {
772                                 state, "bg3" 0.0;
773                                 inherit, "default" 0.0;
774                                 image.normal, "57_calendar_event(3)_bg.png";
775                         }
776                         description {
777                                 state, "bg4" 0.0;
778                                 inherit, "default" 0.0;
779                                 image.normal, "57_calendar_event(4)_bg.png";
780                         }
781                 }
782                 part { name, "text/top";
783                         type, RECT;
784                         scale, 1;
785                         mouse_events, 0;
786                         description {
787                                 state, "default" 0.0;
788                                 min, 0 10;
789                                 fixed, 0 1;
790                                 rel1.to, "base";
791                                 rel2 { relative, 1.0 0.0; to, "base"; }
792                                 color, 0 0 0 0;
793                                 align, 0.5 0.0;
794                         }
795                 }
796                 part { name, "text/bottom";
797                         type, RECT;
798                         scale, 1;
799                         mouse_events, 0;
800                         description {
801                                 state, "default" 0.0;
802                                 min, 0 10;
803                                 fixed, 0 1;
804                                 rel1 { relative, 0.0 1.0; to, "base"; }
805                                 rel2.to, "base";
806                                 color, 0 0 0 0;
807                                 align, 0.5 1.0;
808                         }
809                 }
810                 part { name, "text/left";
811                         type, RECT;
812                         scale, 1;
813                         mouse_events, 0;
814                         description {
815                                 state, "default" 0.0;
816                                 min, 16 0;
817                                 fixed, 1 0;
818                                 rel1.to, "base";
819                                 rel2 { relative, 0.0 1.0; to, "base"; }
820                                 color, 0 0 0 0;
821                                 align, 0.0 0.5;
822                         }
823                 }
824                 part { name, "text/right";
825                         type, RECT;
826                         scale, 1;
827                         mouse_events, 0;
828                         description {
829                                 state, "default" 0.0;
830                                 min, 16 0;
831                                 fixed, 1 0;
832                                 rel1 { relative, 1.0 0.0; to, "base"; }
833                                 rel2.to, "base";
834                                 color, 0 0 0 0;
835                                 align, 1.0 0.5;
836                         }
837                 }
838                 part { name, "text";
839                         type, TEXTBLOCK;
840                         scale, 1;
841                         multiline, 0;
842                         mouse_events, 0;
843                         description {
844                                 state, "default" 0.0;
845                                 rel1 {
846                                         relative, 1.0 1.0;
847                                         to_x, "text/left"; to_y, "text/top";
848                                 }
849                                 rel2 {
850                                         relative, 0.0 0.0;
851                                         to_x, "text/right"; to_y, "text/bottom";
852                                 }
853                                 text.style, "event_textblock";
854                         }
855                         description {
856                                 state, "down" 0.0;
857                                 inherit, "default" 0.0;
858                                 text.style, "event_textblock_p";
859                         }
860                 }
861                 part { name, "evt";
862                         type, RECT;
863                         repeat_events, 1;
864                         description {
865                                 state, "default" 0.0;
866                                 rel1.to, "base";
867                                 rel2.to, "base";
868                                 color, 0 0 0 0;
869                         }
870                         description {
871                                 state, "longpressed" 0.0;
872                                 inherit, "default" 0.0;
873                                 color, 255 0 0 50;
874                         }
875                 }
876         }
877
878         programs {
879                 program { name, "bg/1";
880                         signal, "bg,color0";
881                         source, "prog";
882                         action, STATE_SET "default" 0.0;
883                         target, "bg";
884                 }
885                 program { name, "bg/2";
886                         signal, "bg,color1";
887                         source, "prog";
888                         action, STATE_SET "bg2" 0.0;
889                         target, "bg";
890                 }
891                 program { name, "bg/3";
892                         signal, "bg,color2";
893                         source, "prog";
894                         action, STATE_SET "bg3" 0.0;
895                         target, "bg";
896                 }
897                 program { name, "bg/4";
898                         signal, "bg,color3";
899                         source, "prog";
900                         action, STATE_SET "bg4" 0.0;
901                         target, "bg";
902                 }
903                 program { name, "evt/down";
904                         signal, "mouse,down,1";
905                         source, "evt";
906                         action, SIGNAL_EMIT "dn" "edj";
907                 }
908                 program { name, "evt/up";
909                         signal, "mouse,up,1";
910                         source, "evt";
911                         action, SIGNAL_EMIT "up" "edj";
912                 }
913                 program { name, "evt/sel";
914                         signal, "select";
915                         source, "prog";
916                         action, STATE_SET "down" 0.0;
917                         target, "text";
918                 }
919                 program { name, "evt/unsel";
920                         signal, "unselect";
921                         source, "prog";
922                         action, STATE_SET "default" 0.0;
923                         target, "text";
924                 }
925                 program { name, "longpress/on";
926                         signal, "longpress,on";
927                         source, "prog";
928                         action, STATE_SET "longpressed" 0.0;
929                         target, "evt";
930                 }
931                 program { name, "longpress/off";
932                         signal, "longpress,off";
933                         source, "prog";
934                         action, STATE_SET "default" 0.0;
935                         target, "evt";
936                 }
937         }
938 }