/* * * 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. * */ group{ name: "doodle_editor"; parts{ PART_BG("bg") /* 720 * unknown */ PART_V_PIXEL_RECT("top_margin", 16, "bg", 0.0, 0.0) PART_V_PIXEL_RECT("text.bg", 48, "top_margin", 1.0, 0.0) PART_V_PIXEL_RECT("top_margin2", 10, "text.bg", 1.0, 0.0) PART_RECT("_doodle.bg", 0.0, 1.0, "top_margin2", 1.0, 0.0, "bottom_margin2") PART_V_PIXEL_RECT("bottom_margin2", 108, "bottom_margin", 0.0, 1.0) PART_V_PIXEL_RECT("bottom_margin", 86, "bg", 1.0, 1.0) PART_V_PIXEL_RECT("_bottom_margin", 108, "bg", 1.0, 1.0) PART_V_PIXEL_RECT("tool.bg", IMF_HEIGHT, "bg", 1.0, 1.0) /* layout */ PART_V_PIXEL_RECT("doodle.bg", 700, "_doodle.bg", 0.5, 0.5) PART_COLOR_RECT("doodle.bg.color", "doodle.bg", 255, 255, 255, 255) PART_V_PIXEL_RECT("toolbar.bg", 86, "bg", 1.0, 1.0) PART_V_PIXEL_RECT("toolbar.bg.up", 86, "tool.bg", 0.0, 1.0) PART_V_PIXEL_RECT("comment.bg.up", 108, "tool.bg", 0.0, 1.0) PART_V_PIXEL_RECT("comment.bg", 108, "bottom_margin", 0.0, 1.0) PART_V_PIXEL_RECT("comment.bg.down", 108, "bg", 1.0, 1.0) /* content */ PART_TEXT_GRAY_RIGHT("elm.text.date", 16/720, 0.0, "text.bg", (720-16)/720, 1.0, "text.bg", "date", "SLP:style=Medium", "slp_medium", 32) PART_SWALLOW_REL("elm.swallow.doodle", 16/720, 0.0, "doodle.bg", (720-16)/720, 1.0, "doodle.bg") PART_SWALLOW("elm.swallow.toolbar", "toolbar.bg") PART_SWALLOW("elm.swallow.tool", "tool.bg") PART_SWALLOW("elm.swallow.comment", "comment.bg") }/* end part */ programs { program { name: "init"; signal: "load"; source: ""; script { SCRIPT_CUSTOM_PART("elm.swallow.toolbar"); SCRIPT_CUSTOM_PART("elm.swallow.comment"); SCRIPT_CUSTOM_PART("_doodle.bg"); } } /* end program */ program { name: "abbrev"; signal: "abbrev"; source: "elm"; script { SCRIPT_SET_VISIBLE(elm.swallow.toolbar, 1) SCRIPT_SET_VISIBLE(elm.swallow.comment, 0) SCRIPT_SET_REL(elm.swallow.toolbar, 0.0, 0.0, "toolbar.bg.up", 1.0, 1.0, "toolbar.bg.up"); SCRIPT_SET_REL("_doodle.bg", 0.0, 1.0, "top_margin2", 1.0, 0.0, "bottom_margin2") } } /* end program */ program { name: "expand"; signal: "expand"; source: "elm"; script { SCRIPT_SET_VISIBLE(elm.swallow.toolbar, 1) SCRIPT_SET_VISIBLE(elm.swallow.comment, 1) SCRIPT_SET_REL(elm.swallow.toolbar, 0.0, 0.0, "toolbar.bg", 1.0, 1.0, "toolbar.bg"); SCRIPT_SET_REL(elm.swallow.comment, 0.0, 0.0, "comment.bg", 1.0, 1.0, "comment.bg"); SCRIPT_SET_REL("_doodle.bg", 0.0, 1.0, "top_margin2", 1.0, 0.0, "bottom_margin2") } } /* end program */ program { name: "comment_abbrev"; signal: "abbrev"; source: "comment"; script { SCRIPT_SET_VISIBLE(elm.swallow.toolbar, 0) SCRIPT_SET_VISIBLE(elm.swallow.comment, 1) SCRIPT_SET_REL(elm.swallow.comment, 0.0, 0.0, "comment.bg.up", 1.0, 1.0, "comment.bg.up"); SCRIPT_SET_REL("_doodle.bg", 0.0, 1.0, "top_margin2", 1.0, 0.0, "_bottom_margin") } } /* end program */ program { name: "comment_expand"; signal: "expand"; source: "comment"; script { SCRIPT_SET_VISIBLE(elm.swallow.toolbar, 0) SCRIPT_SET_VISIBLE(elm.swallow.comment, 1) SCRIPT_SET_REL(elm.swallow.comment, 0.0, 0.0, "comment.bg.down", 1.0, 1.0, "comment.bg.down"); SCRIPT_SET_REL("_doodle.bg", 0.0, 1.0, "top_margin2", 1.0, 0.0, "_bottom_margin") } } /* end program */ }/* end programs */ } group{ name: "doodle_comment"; images { image: "00_search_input_field_bg.png" COMP; } parts{ PART_BG("bg") /* 720 * 67 */ PART_COLOR_RECT("bg.color", "bg", 30, 25, 22, 255) PART_RECT("image.bg", 16/720, 8/67, "bg", (720-16)/720, (67-9)/67, "bg") PART_BORDER_IMAGE("image", "image.bg", "00_search_input_field_bg.png", 6, 6, 7, 5) PART_V_PIXEL_RECT("editfield.bg", 50, "image.bg", 0.5, 0.5) PART_SWALLOW_REL("elm.swallow.editfield", 10/460, 0.0, "editfield.bg", (460-10)/460, 1.0, "editfield.bg") }/* end parts */ }/* end group */