/* * Copyright (c) 2014 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. * */ #define UP_SWALLOW_BTN(_to_part, _visibility) \ part { \ name: "btn.up"; \ type: SWALLOW; \ scale: 1; \ description { state: "default" 0.0; \ align: 0.5 0.0; \ min: 84 92; \ max: 84 92; \ fixed: 1 1; \ visible: _visibility; \ rel1 { \ to: _to_part; \ } \ rel2 { \ to: _to_part; \ } \ } \ } #define DOWN_SWALLOW_BTN(_to_part, _visibility) \ part { \ name: "btn.down"; \ type: SWALLOW; \ scale: 1; \ description { state: "default" 0.0; \ align: 0.5 1.0; \ min: 84 92; \ max: 84 92; \ fixed: 1 1; \ visible: _visibility; \ rel1 { \ to: _to_part; \ } \ rel2 { \ to: _to_part; \ } \ } \ } group { name: "setting/picker/layout"; parts { part { name: "bg"; type: SPACER; scale: 1; description { state: "default" 0.0; min: 360 290; max: 360 290; } } UP_SWALLOW_BTN(field0.padding, 1) part { name: "field0.padding"; type: SPACER; scale: 1; description { state: "default" 0.0; min: 84 0; max: 84 -1; rel1.to: "bg"; rel2 { relative: 1.0 1.0; to: "bg"; } align: 0.5 0.5; } } part { name: "date"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: 0 106; max: -1 106; fixed: 0 1; rel1.to: "field0.padding"; rel2.to: "field0.padding"; } } DOWN_SWALLOW_BTN(field0.padding, 1) } } group { name: "setting/limit_picker/layout"; parts { part { name: "bg"; type: SPACER; scale: 1; description { state: "default" 0.0; min: 360 290; max: 360 290; } } UP_SWALLOW_BTN(field0.padding, 1) part { name: "field0.padding"; type: SPACER; scale: 1; description { state: "default" 0.0; min: 164 0; max: 164 -1; rel1.to: "bg"; rel2 { relative: 1.0 1.0; to: "bg"; } align: 0.25 0.5; } } part { name: "size"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: 0 106; max: -1 106; fixed: 0 1; rel1.to: "field0.padding"; rel2.to: "field0.padding"; } } DOWN_SWALLOW_BTN(field0.padding, 1) part { name: "field.padding0"; type: SPACER; scale: 1; description { state: "default" 0.0; fixed: 1 0; min: 8 0; rel1 { relative: 1.0 0.0; to: "field0.padding"; } rel2 { relative: 1.0 1.0; to: "field0.padding"; } align: 0.0 0.5; } } part { name: "field1.padding"; type: SPACER; scale: 1; description { state: "default" 0.0; min: 94 0; rel1 { relative: 1.0 0.0; to: "field.padding0"; } rel2 { relative: 1.0 1.0; to: "field.padding0"; } align: 0.0 0.5; } } part { name: "unit"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: 0 106; max: -1 106; fixed: 0 1; rel1.to: "field1.padding"; rel2.to: "field1.padding"; } } } }