/* * * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.0 (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. */ // 720 x 855 #ifndef _RATIO_ #define _RATIO_ #define R_X (480.0/720.0) #define R_Y (800.0/1280.0) #endif //for month view #define W (720.0*R_X) #define H (855.0*R_Y) #define H_WEEK (105.0*R_Y) #define H_GAP (2.0*R_Y) #define H_LINE (3.0*R_Y) #define HEIGHT_OF_LIST_INDEX (48.0) #define WIDTH_OF_LIST_INDEX (720.0) #define WIDTH_OF_LIST_ICON (24.0) #define HEIGHT_OF_LIST_ICON (24.0) #define LIST_ICON_RIGHT_OFFSET (14.0) #define HEIGHT_OF_CONTENT (915) #define WIDTH_OF_LIST_INDEX_AREA (52) #define HEIGHT_OF_LIST_EXPAND_AREA (69) #define WIDTH_OF_LIST_EXPAND_AREA (93) #define WIDTH_OF_LIST_EXPAND_ICON (74) #define HEIGHT_OF_MONTH_VIEW (920.0*R_Y) #define HEIGHT_OF_CALENDAR_SW (690.0*R_Y) #define HEIGHT_OF_WEEK (105.0*R_Y) group { name, "main/month/weekly"; images { image: CALENDAR_LIST_INDEX_OPEN COMP; image: CALENDAR_LIST_INDEX_CLOSE COMP; image: CALENDAR_LIST_INDEX_BG COMP; image: CALENDAR_LIST_INDEX_BG_PRESS COMP; } parts { part { name, "base"; type, RECT; description { state, "default" 0.0; color, 248 246 239 255; } } part { name, "cal/sw"; type, SWALLOW; clip_to, "cal/clip"; description { state, "default" 0.0; rel1 { relative, 0.0 0.0; to, "base"; } rel2 { relative, 1.0 1.0; to, "base"; } } description { state, "default" 0.1; rel1 { relative, 0.0 0.0; to, "base"; } rel2 { relative, 1.0 (HEIGHT_OF_CALENDAR_SW/HEIGHT_OF_MONTH_VIEW); to, "base"; } } description { state, "default" 0.2; rel1.to, "base"; rel2 { relative, 1.0 ((HEIGHT_OF_CALENDAR_SW-HEIGHT_OF_WEEK-HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_MONTH_VIEW); to, "base"; } } description { state, "default" 0.3; rel1.to, "base"; rel2 { relative, 1.0 ((HEIGHT_OF_CALENDAR_SW-2*HEIGHT_OF_WEEK-2*HEIGHT_OF_WEEK_LINE)/HEIGHT_OF_MONTH_VIEW); to, "base"; } } } part { name, "cal/sw/left"; type, SWALLOW; clip_to, "cal/clip"; description { state, "default" 0.0; rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; } rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";} } } part { name, "cal/sw/right"; type, SWALLOW; clip_to, "cal/clip"; description { state, "default" 0.0; rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; } rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";} } } part { name, "cal/clip"; type, RECT; description { state, "default" 0.0; rel1.to, "cal/sw"; rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; } } description { state, "default" 1.0; rel1.to, "cal/sw"; rel2 { relative, 1.0 ((H-H_WEEK-H_GAP)/H); offset: 0 0; to, "cal/sw"; } } description { state, "default" 0.5; rel1.to, "cal/sw"; rel2 { relative, 1.0 ((H-2*H_WEEK-2*H_GAP)/H); offset: 0 0; to, "cal/sw"; } } } part { name, "list/base"; type, SWALLOW; description { state, "default" 0.0; rel1 { relative, 0.0 1.0; to, "cal/sw"; } rel2 { relative, 1.0 1.0; to, "base"; } color, 0 0 0 0; } } part { name, "list/sw"; type, SWALLOW; description { state, "default" 0.0; rel1{ relative, 0.0 0.0; to, "list/base";} rel2.to, "list/base"; } } part { name, "list/line"; type, RECT; description { state, "default" 0.0; rel1 { to, "list/base"; } rel2 { relative, 1.0 0.0; offset, 0 HEIGHT_OF_BOTTOM_LINE; to, "list/base"; } color, COLOR_OF_LIST_LINE_FOR_MONTH; } } } programs { program { name, "cal/line5"; signal, "go,line5"; source, "prog"; action, STATE_SET "default" 1.0; target, "cal/clip"; } program { name, "cal/line6"; signal, "go,line6"; source, "prog"; action, STATE_SET "default" 0.0; target, "cal/clip"; } program { name, "cal/line4"; signal, "go,line4"; source, "prog"; action, STATE_SET "default" 0.5; target, "cal/clip"; } } } group { name, "main/month/weekly/l"; parts { part { name, "base"; type, RECT; description { state, "default" 0.0; color, 248 246 239 255; } } part { name, "cal/sw"; type, SWALLOW; clip_to, "cal/clip"; description { state, "default" 0.0; rel1 { relative, 0.0 0.0; offset, 0 0; to, "base"; } rel2 { relative, 1.0 1.0; offset, 0 0; to, "base"; } } } part { name, "cal/sw/left"; type, SWALLOW; clip_to, "cal/clip"; description { state, "default" 0.0; rel1 { relative, -1.0 0.0; to_x, "base"; to_y, "cal/sw"; } rel2 { relative, 0.0 1.0; to_x, "base"; to_y, "cal/sw";} } } part { name, "cal/sw/right"; type, SWALLOW; clip_to, "cal/clip"; description { state, "default" 0.0; rel1 { relative, 1.0 0.0; to_x, "base"; to_y, "cal/sw"; } rel2 { relative, 2.0 1.0; to_x, "base"; to_y, "cal/sw";} } } part { name, "cal/clip"; type, RECT; description { state, "default" 0.0; rel1.to, "cal/sw"; rel2 { relative, 1.0 1.0; offset, 0 0; to, "cal/sw"; } } } } }