/* * * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.1 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://floralicense.org/license/ * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ group { name, "main/day/time"; parts { part { name, "base"; type, RECT; description { state, "default" 0.0; color, 0 0 0 0; } } part { name, "sw"; type, SWALLOW; clip_to, "clip"; description { state, "default" 0.0; rel1.to, "base"; rel2.to, "base"; } } part { name, "clip"; type, RECT; description { state, "default" 0.0; rel1.to, "sw"; rel2.to, "sw"; } } } } group { name, "main/day/time/timeblock"; images { image, "calendar_selected.png" COMP; image, DAY_CURRENT_TIME COMP; image, NOSCHEDULE COMP; } parts { part { name, "base"; type, RECT; repeat_events, 1; description { state, "default" 0.0; color, 0 0 0 0; } } part { name, "bg/ampm"; type, RECT; mouse_events, 0; description { state, "default" 0.0; rel1.to, "base"; rel2.to, "base"; color, 0 0 0 0; } description { state, "pm" 0.0; inherit, "default" 0.0; color, 0 0 0 10; } } part { name, "bg/sel"; mouse_events, 0; scale, 1; description { state, "default" 0.0; rel1 { relative, 1.0 0.0; to_x, "text/base"; to_y, "base"; } rel2.to, "base"; image { normal, "calendar_selected.png"; border, 3 3 3 3; border_scale, 1; } visible, 0; } description { state, "selected" 0.0; inherit, "default" 0.0; visible, 1; } } part { name, "text/base"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 42 0; fixed, 1 0; rel1.to, "base"; rel2 { relative, 0.0 1.0; to, "base"; } align, 0.0 0.0; color, 0 0 0 0; } } part { name, "text"; type, TEXT; scale, 1; mouse_events, 0; description { state, "default" 0.0; rel1 { relative, 0.0 0.0; to, "text/base"; } rel2 { relative, 1.0 0.25; to, "text/base"; } text { font, "SLP:style=Regular"; size, 24; align, 0.5 0.0; } color, 171 171 171 255; } description { state, "hide" 0.0; inherit, "default" 0.0; visible, 0; } } part { name, "AM"; type, TEXT; scale, 1; mouse_events, 0; description { state, "default" 0.0; rel1 { relative, 0.0 0.25; to, "text/base"; } rel2 { relative, 1.0 0.6; to, "text/base"; } visible, 0; } description { state, "default" 0.1; rel1 { relative, 0.0 0.25; to, "text/base"; } rel2 { relative, 1.0 0.6; to, "text/base"; } text { font, "SLP:style=Regular"; size, 20; align, 0.5 0.0; } color, 171 171 171 255; visible, 1; } } part { name, "PM"; type, TEXT; scale, 1; mouse_events, 0; description { state, "default" 0.0; rel1 { relative, 0.0 0.25; to, "text/base"; } rel2 { relative, 1.0 0.6; to, "text/base"; } visible, 0; } description { state, "default" 0.1; rel1 { relative, 0.0 0.25; to, "text/base"; } rel2 { relative, 1.0 0.6; to, "text/base"; } text { font, "SLP:style=Regular"; size, 20; align, 0.5 0.0; } color, 171 171 171 255; visible, 1; } } part { name, "line/hori"; type, RECT; mouse_events, 0; description { state, "default" 0.0; min, 0 1; fixed, 0 1; rel1 { relative, 1.0 1.0; offset, 0 -1; to_x, "text/base"; to_y, "base"; } rel2.to, "base"; color, COLOR_OF_HORIZEN_LINE_FOR_TAB; align, 0.5 0.0; } } part { name, "line/hori_mid"; type, RECT; mouse_events, 0; description { state, "default" 0.0; min, 0 1; fixed, 0 1; rel1 { relative, 1.0 0.5; offset, 0 -1; to_x, "text/base"; to_y, "base"; } rel2{ relative, 1.0 0.5; to, "base"; } color, COLOR_OF_MIDDLE_LINE_FOR_TAB; align, 0.5 0.0; } } part { name, "line/vert"; type, RECT; mouse_events, 0; description { state, "default" 0.0; min, 1 0; fixed, 1 0; rel1 { relative, 1.0 0.0; to, "text/base"; } rel2 { relative, 1.0 1.0; to, "text/base"; } color, COLOR_OF_VERT_LINE_FOR_TAB; align, 1.0 0.5; } } part { name, "evtbase/top"; type, RECT; mouse_events, 0; description { state, "default" 0.0; rel1 { relative, 1.0 0.0; to_x, "text/base"; to_y, "base"; } rel2 { relative, 1.0 0.5; to, "base"; } color, 0 0 0 0; } } part { name, "evtbase/bottom"; type, RECT; mouse_events, 0; description { state, "default" 0.0; rel1 { relative, 1.0 0.5; to_x, "text/base"; to_y, "base"; } rel2.to, "base"; color, 0 0 0 0; } } part { name, "bg/contracted"; mouse_events, 0; scale, 1; description { state, "default" 0.0; min, 0 62; fixed, 0 1; rel1 { relative, 1.0 0.0; offset, 0 10; to_x, "text/base"; to_y, "base"; } rel2 { relative, 1.0 1.0;offset, 0 -12; to_x, "base"; to_y, "base"; } image { normal, "P01_noschedule.png"; border, 3 3 3 3; border_scale, 1; } align, 0.5 0.0; visible, 0; } description { state, "contracted" 0.0; inherit, "default" 0.0; visible, 1; } } part { name, "line/on_time"; type, RECT; mouse_events, 0; description { state, "default" 0.0; min, 0 2; fixed, 0 1; rel1 { relative, 1.0 0.5; offset, 0 -2; to_x, "text/base"; to_y, "base"; } rel2{ relative, 1.0 0.5; to, "base"; } color, COLOR_OF_ON_TIME_LINE_FOR_TAB; align, 0.5 0.0; visible, 0; } description { state, "show" 0.0; inherit, "default" 0.0; visible, 1; } } part { name, "line/on_time/img"; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 9 16; fixed, 1 1; rel1 { relative, 1.0 0.5; to_x, "text/base"; to_y, "base"; } rel2{ relative, 1.0 0.5; to_x, "text/base"; to_y, "base"; } align, 1.0 0.5; image.normal, "P01_day_current_time.png"; visible, 0; } description { state, "show" 0.0; inherit, "default" 0.0; visible, 1; } } } programs { program { name, "tb/down"; signal, "mouse,down,1"; source, "base"; action, SIGNAL_EMIT "dn" "edj"; } program { name, "tb/up"; signal, "mouse,up,1"; source, "base"; action, SIGNAL_EMIT "up" "edj"; } program { name, "tb/select"; signal, "select"; source, "prog"; action, STATE_SET "selected" 0.0; target, "bg/sel"; } program { name, "tb/unselect"; signal, "unselect"; source, "prog"; action, STATE_SET "default" 0.0; target, "bg/sel"; } program { name, "tb/am"; signal, "am"; source, "prog"; action, STATE_SET "default" 0.0; target, "bg/ampm"; } program { name, "tb/pm"; signal, "pm"; source, "prog"; action, STATE_SET "pm" 0.0; target, "bg/ampm"; } program { name, "tb/text/show"; signal, "show,text"; source, "prog"; action, STATE_SET "default" 0.0; target, "text"; } program { name, "tb/text/hide"; signal, "hide,text"; source, "prog"; action, STATE_SET "hide" 0.0; target, "text"; } program { name, "tb/on_time/show"; signal, "show,line"; source, "prog"; action, STATE_SET "show" 0.0; target, "line/on_time"; } program { name, "tb/on_time/show/img"; signal, "show,img"; source, "prog"; action, STATE_SET "show" 0.0; target, "line/on_time/img"; } program { name, "tb/on_time/hide"; signal, "hide,line"; source, "prog"; action, STATE_SET "default" 0.0; target, "line/on_time"; } program { name, "tb/on_time/hide/img"; signal, "hide,img"; source, "prog"; action, STATE_SET "default" 0.0; target, "line/on_time/img"; } program { name, "tb/contracted"; signal, "contracted"; source, "prog"; action, STATE_SET "contracted" 0.0; target, "bg/contracted"; } program { name, "tb/uncontracted"; signal, "uncontracted"; source, "prog"; action, STATE_SET "default" 0.0; target, "bg/contracted"; } program { name, "show am"; signal, "show,AM"; source, "prog"; action, STATE_SET "default" 0.1; target, "AM"; } program { name, "hide am"; signal, "hide,AM"; source, "prog"; action, STATE_SET "default" 0.0; target, "AM"; } program { name, "show pm"; signal, "show,PM"; source, "prog"; action, STATE_SET "default" 0.1; target, "PM"; } program { name, "hide pm"; signal, "hide,PM"; source, "prog"; action, STATE_SET "default" 0.0; target, "PM"; } } } group { name, "main/day/time/eventblock"; images { image, CALENDAR_EVENT_BG_1 COMP; image, CALENDAR_EVENT_BG_2 COMP; image, CALENDAR_EVENT_BG_3 COMP; image, CALENDAR_EVENT_BG_4 COMP; image, "P01_day_event_bg_02_strok.png" COMP; } styles { style { name, "event_textblock"; base, "font=SLP:style=Regular font_size=24 color=#855A1DEF wrap=mixed ellipsis=1"; tag, "br" "\n"; tag, "ps" "ps"; tag, "hilight" "+ font=SLP:style=Regular"; tag, "b" "+ font=SLP:style=Regular"; tag, "tab" "\t"; } style { name, "event_textblock_p"; base, "font=SLP:style=Regular font_size=24 color=#237A99EF wrap=word"; tag, "br" "\n"; tag, "ps" "ps"; tag, "hilight" "+ font=SLP:style=Regular"; tag, "b" "+ font=SLP:style=Regular"; tag, "tab" "\t"; } } parts { part { name, "base"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 0 79; fixed, 0 1; color, 0 0 0 0; } } part { name, "bg/top"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 0 7; fixed, 0 1; rel1.to, "base"; rel2 { relative, 1.0 0.0; to, "base"; } color, 0 0 0 0; align, 0.5 0.0; } } part { name, "bg/bottom"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 0 7; fixed, 0 1; rel1 { relative, 0.0 1.0; to, "base"; } rel2.to, "base"; color, 0 0 0 0; align, 0.5 1.0; } } part { name, "bg/left"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 5 0; fixed, 1 0; rel1.to, "base"; rel2 { relative, 0.0 1.0; to, "base"; } color, 0 0 0 0; align, 0.0 0.5; } description { state, "longpressed" 0.0; min, 10 0; fixed, 1 0; rel1.to, "base"; rel2 { relative, 0.0 1.0; to, "base"; } color, 0 0 0 0; align, 0.0 0.5; } } part { name, "bg/right"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 5 0; fixed, 1 0; rel1 { relative, 1.0 0.0; to, "base"; } rel2.to, "base"; color, 0 0 0 0; align, 1.0 0.5; } description { state, "longpressed" 0.0; min, 10 0; fixed, 1 0; rel1 { relative, 1.0 0.0; to, "base"; } rel2.to, "base"; color, 0 0 0 0; align, 0.0 0.5; } } part { name, "bg"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; rel1 { relative, 1.0 1.0; to_x, "bg/left"; to_y, "bg/top"; } rel2 { relative, 0.0 0.0; to_x, "bg/right"; to_y, "bg/bottom"; } color, 0 0 0 0; } } part { name, "text/top"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 0 10; fixed, 0 1; rel1.to, "base"; rel2 { relative, 1.0 0.0; to, "base"; } color, 0 0 0 0; align, 0.5 0.0; } } part { name, "text/bottom"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 0 9; fixed, 0 1; rel1 { relative, 0.0 1.0; to, "base"; } rel2.to, "base"; color, 0 0 0 0; align, 0.5 1.0; } } part { name, "text/left"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 10 0; fixed, 1 0; rel1.to, "base"; rel2 { relative, 0.0 1.0; to, "base"; } color, 0 0 0 0; align, 0.0 0.5; } } part { name, "text/right"; type, RECT; scale, 1; mouse_events, 0; description { state, "default" 0.0; min, 10 0; fixed, 1 0; rel1 { relative, 1.0 0.0; to, "base"; } rel2.to, "base"; color, 0 0 0 0; align, 1.0 0.5; } } part { name, "evt"; type, RECT; repeat_events, 1; description { state, "default" 0.0; rel1 { relative, 1.0 1.0; to_x, "bg/left"; to_y, "bg/top"; } rel2 { relative, 0.0 0.0; to_x, "bg/right"; to_y, "bg/bottom"; } } description { state, "longpressed" 0.0; rel1 { relative, 1.0 1.0; to_x, "bg/left"; to_y, "bg/top"; } rel2 { relative, 0.0 0.0; to_x, "bg/right"; to_y, "bg/bottom"; } visible, 0; } } part { name, "text"; type, TEXTBLOCK; scale, 1; multiline, 0; mouse_events, 0; description { state, "default" 0.0; rel1 { relative, 1.0 1.0; to_x, "text/left"; to_y, "text/top"; } rel2 { relative, 0.0 0.0; to_x, "text/right"; to_y, "text/bottom"; } text.style, "event_textblock"; } description { state, "down" 0.0; inherit, "default" 0.0; text.style, "event_textblock_p"; } } part { name, "bg_barder"; scale, 1; mouse_events, 0; description { state, "default" 0.0; rel1 { relative, 0.0 0.0; to_x, "bg/left"; to_y, "bg/top"; } rel2 { relative, 1.0 1.0; to_x, "bg/right"; to_y, "bg/bottom"; } image { border_scale, 1; border, 15 15 15 15; normal, "P01_day_event_bg_02_strok.png"; } visible, 0; } description { state, "longpressed" 0.0; inherit, "default" 0.0; visible, 1; } } part { name, "bg/magnify/bottom"; type, RECT; scale, 1; repeat_events, 1; description { state, "default" 0.0; min, 0 20; fixed, 0 1; rel1 { relative, 1.0 0.0; to_x, "bg/left"; to_y, "bg/bottom"; } rel2 { relative, 0.0 0.0; to_x, "bg/right"; to_y, "bg/bottom"; } color, 0 0 0 0; align, 0.5 1.0; } } part { name, "bg/magnify/top"; type, RECT; scale, 1; repeat_events, 1; description { state, "default" 0.0; min, 0 20; fixed, 0 1; rel1 { relative, 1.0 1.0; to_x, "bg/left"; to_y, "bg/top"; } rel2 { relative, 0.0 1.0; to_x, "bg/right"; to_y, "bg/top"; } color, 0 0 0 0; align, 0.5 0.0; } } } programs { program { name, "bg/1"; signal, "bg,color0"; source, "prog"; action, STATE_SET "default" 0.0; target, "bg"; } program { name, "bg/2"; signal, "bg,color1"; source, "prog"; action, STATE_SET "bg2" 0.0; target, "bg"; } program { name, "bg/3"; signal, "bg,color2"; source, "prog"; action, STATE_SET "bg3" 0.0; target, "bg"; } program { name, "bg/4"; signal, "bg,color3"; source, "prog"; action, STATE_SET "bg4" 0.0; target, "bg"; } program { name, "evt/down"; signal, "mouse,down,1"; source, "evt"; action, SIGNAL_EMIT "dn" "edj"; } program { name, "evt/up"; signal, "mouse,up,1"; source, "evt"; action, SIGNAL_EMIT "up" "edj"; } program { name, "evt/sel"; signal, "select"; source, "prog"; action, STATE_SET "down" 0.0; target, "text"; } program { name, "evt/unsel"; signal, "unselect"; source, "prog"; action, STATE_SET "default" 0.0; target, "text"; } program { name, "longpress/on"; signal, "longpress,on"; source, "prog"; action, STATE_SET "longpressed" 0.0; target, "bg/left"; target, "bg/right"; target, "bg_barder"; } program { name, "longpress/border"; signal, "longpress,border"; source, "prog"; action, STATE_SET "longpressed" 0.0; target, "bg/left"; target, "bg/right"; target, "bg_barder"; target, "evt"; } program { name, "longpress/off"; signal, "longpress,off"; source, "prog"; action, STATE_SET "default" 0.0; target, "bg/left"; target, "bg/right"; target, "bg_barder"; } program { name, "bg/magnify/bottom/down"; signal, "mouse,down,1"; source, "bg/magnify/bottom"; action, SIGNAL_EMIT "mg,bottom,dn" "edj"; } program { name, "bg/magnify/bottom/up"; signal, "mouse,up,1"; source, "bg/magnify/bottom"; action, SIGNAL_EMIT "mg,bottom,up" "edj"; } program { name, "bg/magnify/top/down"; signal, "mouse,down,1"; source, "bg/magnify/top"; action, SIGNAL_EMIT "mg,top,dn" "edj"; } program { name, "bg/magnify/top/up"; signal, "mouse,up,1"; source, "bg/magnify/top"; action, SIGNAL_EMIT "mg,top,up" "edj"; } } }