4 #define TIMEBLOCK(_pos, _prev, _alpha) \
5 part { name, "tb/base/"_pos; \
9 state, "default" 0.0; \
14 to_x, "base"; to_y, "tb/base/"_prev; \
18 to_x, "base"; to_y, "tb/base/"_prev; \
24 state, "shrink" 0.0; \
25 inherit, "default" 0.0; \
29 part { name, "tb/bg/"_pos; \
32 state, "default" 0.0; \
33 rel1.to, "tb/base/"_pos; \
34 rel2.to, "tb/base/"_pos; \
35 color, 0 0 0 _alpha; \
38 part { name, "tb/text/base/"_pos; \
42 state, "default" 0.0; \
45 rel1.to, "tb/base/"_pos; \
46 rel2 { relative, 0.0 1.0; to, "tb/base/"_pos; } \
51 part { name, "tb/text/"_pos; \
55 state, "default" 0.0; \
56 rel1.to, "tb/text/base/"_pos; \
57 rel2.to, "tb/text/base/"_pos; \
59 font, "SLP:style=Medium"; \
66 state, "shrink" 0.0; \
67 inherit, "default" 0.0; \
71 part { name, "tb/line/hori/"_pos; \
74 state, "default" 0.0; \
78 relative, 0.0 1.0; offset, 0 -1; \
81 rel2.to, "tb/base/"_pos; \
82 color, COLOR_OF_BASE_OF_LINE_FOR_TAB; \
86 part { name, "tb/line/vert/"_pos; \
89 state, "default" 0.0; \
94 to, "tb/text/base/"_pos; \
98 to, "tb/text/base/"_pos; \
100 color, COLOR_OF_BASE_OF_LINE_FOR_TAB; \
104 part { name, "tb/sel/"_pos; \
108 state, "default" 0.0; \
111 to_x, "tb/text/base/"_pos; to_y, "tb/base/"_pos; \
113 rel2.to, "tb/base/"_pos; \
115 normal, CALENDAR_SELSECTED; \
122 state, "selected" 0.0; \
123 inherit, "default" 0.0; \
127 part { name, "tb/evtbase/"_pos; \
130 state, "default" 0.0; \
133 to_x, "tb/text/base/"_pos; to_y, "tb/base/"_pos; \
135 rel2 { relative, 1.0 0.5; to, "tb/base/"_pos; } \
139 part { name, "tb/evt/"_pos; \
142 state, "default" 0.0; \
143 rel1.to, "tb/base/"_pos; \
144 rel2.to, "tb/base/"_pos; \
148 state, "shrink" 0.0; \
149 inherit, "default" 0.0; \
155 program { name, "base/extend/"_pos; \
156 signal, "extend,"_pos; \
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; \
164 program { name, "base/shrink/"_pos; \
165 signal, "shrink,"_pos; \
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; \
173 program { name, "tb/down/"_pos; \
174 signal, "mouse,down,1"; \
175 source, "tb/evt/"_pos; \
176 action, SIGNAL_EMIT "dn,"#_pos "edj"; \
178 program { name, "tb/up/"_pos; \
179 signal, "mouse,up,1"; \
180 source, "tb/evt/"_pos; \
181 action, SIGNAL_EMIT "up,"#_pos "edj"; \
183 program { name, "tb/select/"_pos; \
184 signal, "select,"_pos; \
186 action, STATE_SET "selected" 0.0; \
187 target, "tb/sel/"_pos; \
189 program { name, "tb/unselect/"_pos; \
190 signal, "unselect,"_pos; \
192 action, STATE_SET "default" 0.0; \
193 target, "tb/sel/"_pos; \
197 #define TBASE_DESC(_h) \
199 state, "height/"_h 0.0; \
200 inherit, "default" 0.0; \
204 #define TBASE_PROG(_h) \
205 program { name, "base/"_h; \
208 action, STATE_SET "height/"_h 0.0; \
209 transition, SINUSOIDAL ANI_TIME; \
214 group { name, "main/day/tb/layout";
217 image, "calendar_selected.png" COMP;
225 state, "default" 0.0;
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)
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)
244 program { name, "base/end";
245 action, SIGNAL_EMIT "end,animation" "edj";
249 part { name, "tb/base/99";
252 state, "default" 0.0;
254 rel2 { relative, 1.0 0.0; to, "base"; }
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)
287 group { name, "main/day/tb";
293 state, "default" 0.0;
301 state, "default" 0.0;
309 state, "default" 0.0;
318 group { name, "main/day/tb/block";
321 image, "calendar_selected.png" COMP;
322 image, DAY_CURRENT_TIME COMP;
323 image, NOSCHEDULE COMP;
331 state, "default" 0.0;
335 part { name, "bg/ampm";
339 state, "default" 0.0;
346 inherit, "default" 0.0;
350 part { name, "bg/sel";
354 state, "default" 0.0;
357 to_x, "text/base"; to_y, "base";
361 normal, "calendar_selected.png";
368 state, "selected" 0.0;
369 inherit, "default" 0.0;
373 part { name, "text/base";
378 state, "default" 0.0;
382 rel2 { relative, 0.0 1.0; to, "base"; }
392 state, "default" 0.0;
393 rel1.to, "text/base";
394 rel2.to, "text/base";
396 font, "SLP:style=Medium";
404 inherit, "default" 0.0;
408 part { name, "line/hori";
412 state, "default" 0.0;
416 relative, 1.0 1.0; offset, 0 -1;
417 to_x, "text/base"; to_y, "base";
420 color, COLOR_OF_HORIZEN_LINE_FOR_TAB;
424 part { name, "line/hori_mid";
428 state, "default" 0.0;
432 relative, 1.0 0.5; offset, 0 -1;
433 to_x, "text/base"; to_y, "base";
439 color, COLOR_OF_MIDDLE_LINE_FOR_TAB;
443 part { name, "line/vert";
447 state, "default" 0.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;
456 part { name, "evtbase/top";
460 state, "default" 0.0;
463 to_x, "text/base"; to_y, "base";
465 rel2 { relative, 1.0 0.5; to, "base"; }
469 part { name, "evtbase/bottom";
473 state, "default" 0.0;
476 to_x, "text/base"; to_y, "base";
482 part { name, "bg/contracted";
486 state, "default" 0.0;
490 relative, 1.0 0.0; offset, 0 10;
491 to_x, "text/base"; to_y, "base";
494 relative, 1.0 1.0;offset, 0 -12;
495 to_x, "base"; to_y, "base";
498 normal, "P01_noschedule.png";
506 state, "contracted" 0.0;
507 inherit, "default" 0.0;
511 part { name, "line/on_time";
515 state, "default" 0.0;
519 relative, 1.0 0.5; offset, 0 -2;
520 to_x, "text/base"; to_y, "base";
526 color, COLOR_OF_ON_TIME_LINE_FOR_TAB;
532 inherit, "default" 0.0;
536 part { name, "line/on_time/img";
540 state, "default" 0.0;
545 to_x, "text/base"; to_y, "base";
549 to_x, "text/base"; to_y, "base";
552 image.normal, "P01_day_current_time.png";
557 inherit, "default" 0.0;
563 program { name, "tb/down";
564 signal, "mouse,down,1";
566 action, SIGNAL_EMIT "dn" "edj";
568 program { name, "tb/up";
569 signal, "mouse,up,1";
571 action, SIGNAL_EMIT "up" "edj";
573 program { name, "tb/select";
576 action, STATE_SET "selected" 0.0;
579 program { name, "tb/unselect";
582 action, STATE_SET "default" 0.0;
585 program { name, "tb/am";
588 action, STATE_SET "default" 0.0;
591 program { name, "tb/pm";
594 action, STATE_SET "pm" 0.0;
597 program { name, "tb/text/show";
600 action, STATE_SET "default" 0.0;
603 program { name, "tb/text/hide";
606 action, STATE_SET "hide" 0.0;
609 program { name, "tb/on_time/show";
612 action, STATE_SET "show" 0.0;
613 target, "line/on_time";
615 program { name, "tb/on_time/show/img";
618 action, STATE_SET "show" 0.0;
619 target, "line/on_time/img";
621 program { name, "tb/on_time/hide";
624 action, STATE_SET "default" 0.0;
625 target, "line/on_time";
627 program { name, "tb/on_time/hide/img";
630 action, STATE_SET "default" 0.0;
631 target, "line/on_time/img";
633 program { name, "tb/contracted";
634 signal, "contracted";
636 action, STATE_SET "contracted" 0.0;
637 target, "bg/contracted";
639 program { name, "tb/uncontracted";
640 signal, "uncontracted";
642 action, STATE_SET "default" 0.0;
643 target, "bg/contracted";
650 group { name, "main/day/tb/event";
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;
660 style { name, "event_textblock";
661 base, "font=SLP:style=Roman font_size=30 color=#FFFFFFFF wrap=word";
664 tag, "hilight" "+ font=SLP:style=Bold";
665 tag, "b" "+ font=SLP:style=Bold";
668 style { name, "event_textblock_p";
669 base, "font=SLP:style=Roman font_size=30 color=#000000FF wrap=word";
672 tag, "hilight" "+ font=SLP:style=Bold";
673 tag, "b" "+ font=SLP:style=Bold";
684 state, "default" 0.0;
690 part { name, "bg/top";
695 state, "default" 0.0;
699 rel2 { relative, 1.0 0.0; to, "base"; }
704 part { name, "bg/bottom";
709 state, "default" 0.0;
712 rel1 { relative, 0.0 1.0; to, "base"; }
718 part { name, "bg/left";
723 state, "default" 0.0;
727 rel2 { relative, 0.0 1.0; to, "base"; }
732 part { name, "bg/right";
737 state, "default" 0.0;
740 rel1 { relative, 1.0 0.0; to, "base"; }
750 state, "default" 0.0;
753 to_x, "bg/left"; to_y, "bg/top";
757 to_x, "bg/right"; to_y, "bg/bottom";
762 normal, "57_calendar_event(1)_bg.png";
764 color, 255 255 255 200;
768 inherit, "default" 0.0;
769 image.normal, "57_calendar_event(2)_bg.png";
773 inherit, "default" 0.0;
774 image.normal, "57_calendar_event(3)_bg.png";
778 inherit, "default" 0.0;
779 image.normal, "57_calendar_event(4)_bg.png";
782 part { name, "text/top";
787 state, "default" 0.0;
791 rel2 { relative, 1.0 0.0; to, "base"; }
796 part { name, "text/bottom";
801 state, "default" 0.0;
804 rel1 { relative, 0.0 1.0; to, "base"; }
810 part { name, "text/left";
815 state, "default" 0.0;
819 rel2 { relative, 0.0 1.0; to, "base"; }
824 part { name, "text/right";
829 state, "default" 0.0;
832 rel1 { relative, 1.0 0.0; to, "base"; }
844 state, "default" 0.0;
847 to_x, "text/left"; to_y, "text/top";
851 to_x, "text/right"; to_y, "text/bottom";
853 text.style, "event_textblock";
857 inherit, "default" 0.0;
858 text.style, "event_textblock_p";
865 state, "default" 0.0;
871 state, "longpressed" 0.0;
872 inherit, "default" 0.0;
879 program { name, "bg/1";
882 action, STATE_SET "default" 0.0;
885 program { name, "bg/2";
888 action, STATE_SET "bg2" 0.0;
891 program { name, "bg/3";
894 action, STATE_SET "bg3" 0.0;
897 program { name, "bg/4";
900 action, STATE_SET "bg4" 0.0;
903 program { name, "evt/down";
904 signal, "mouse,down,1";
906 action, SIGNAL_EMIT "dn" "edj";
908 program { name, "evt/up";
909 signal, "mouse,up,1";
911 action, SIGNAL_EMIT "up" "edj";
913 program { name, "evt/sel";
916 action, STATE_SET "down" 0.0;
919 program { name, "evt/unsel";
922 action, STATE_SET "default" 0.0;
925 program { name, "longpress/on";
926 signal, "longpress,on";
928 action, STATE_SET "longpressed" 0.0;
931 program { name, "longpress/off";
932 signal, "longpress,off";
934 action, STATE_SET "default" 0.0;