/* * * 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://www.tizenopensource.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. * */ #define EDIT_VIEW_HEIGHT (HEIGHT-INDICATOR_H-NAVIGATION_BAR_H) #define EDIT_SELECT_ALL_H (SELECTALL_H/EDIT_VIEW_HEIGHT) #define EDIT_TOOL_BAR_H (86/EDIT_VIEW_HEIGHT) group { name: "edit_layout"; parts { /* background */ part { name: "edit/bg"; type: RECT; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } color: 0 0 0 255; } } /* select all swallow */ part { name: "edit/sel_all"; type: SWALLOW; mouse_events: 1; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 EDIT_SELECT_ALL_H; } } } /* genlist swallow */ part { name: "edit/genlist"; type: SWALLOW; mouse_events: 1; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; to: edit/sel_all;} //rel2 { relative: 1.0 1.0; } rel2 { relative: 1.0 ((EDIT_VIEW_HEIGHT-CONTROL_BAR_H)/EDIT_VIEW_HEIGHT); } } } /* controlbar */ part { name: "edit/controlbar"; type: RECT; scale: 1; description { state: "default" 0.0; visible : 0; rel1 { relative: 0.0 ((EDIT_VIEW_HEIGHT-CONTROL_BAR_H)/EDIT_VIEW_HEIGHT); } rel2 { relative: 1.0 1.0; } } } } // end of parts } group { name: "edit_layout2"; parts { /* background */ part { name: "edit/bg"; type: RECT; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } color: 0 0 0 255; } } /* select all swallow */ part { name: "edit/sel_all"; type: SWALLOW; mouse_events: 1; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 EDIT_SELECT_ALL_H; } } } /* genlist swallow */ part { name: "edit/genlist"; type: SWALLOW; mouse_events: 1; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 1.0; to: "edit/sel_all";} //rel2 { relative: 1.0 0.0; to: "edit/tool_bar";} rel2 { relative: 1.0 1.0; to: "edit/bg";} } } part { name: "edit/tool_bar"; type: SWALLOW; mouse_events: 1; scale: 1; description { state: "default" 0.0; min: 480 66; fixed: 1 1; align: 0.0 0.0; rel1 { relative: 0.0 1.0; offset: 0 -86; to: "edit/bg";} rel2 { relative: 1.0 1.0; to: "edit/bg";} } } part { name: "edit/delete_btn"; type: SWALLOW; mouse_events: 1; scale: 1; description { state: "default" 0.0; fixed: 1 1; align: 0.0 0.0; rel1 { relative: (1.0-EDIT_TOOL_BAR_H) 0.0; to: "edit/tool_bar";} rel2 { relative: 1.0 1.0; to: "edit/tool_bar";} } } } // end of parts }