/* * Copyright 2017 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. */ #define CS_SWL_NUMBER_BUTTON(_name, _x1, _y1, _x2, _y2) \ swallow { _name; \ scale; \ desc { "default"; \ rel1 { relative: CS_REL_X(_x1) CS_REL_Y(_y1); } \ rel2 { relative: CS_REL_X(_x2) CS_REL_Y(_y2); } \ } \ } \ styles { style { name: "keypad_guide"; base: "font=Tizen font_weight=Normal font_width=Condensed font_size=30 align=center valign=center color=#ffffffff wrap=mixed ellipsis=1.0"; } } group { "elm/layout/callsetting/fake_access_object"; data.item: "access_highlight" "on"; } group { "elm/layout/callsetting/page_content"; parts { swallow { "elm.swallow.content"; desc { "default"; } } swallow { "callsetting.swallow.more_options"; desc { "default"; } } swallow { "callsetting.swallow.circle_object"; desc { "default"; } } } } group { "elm/layout/callsetting/proccessing"; parts { rect { "bg"; norepeat; desc { "default"; color: CS_COLOR_TRANSPARENT; } desc { "visible"; color: CS_COLOR_BLACK; } } spacer { "pad.bottom"; scale; desc { "default"; align: 0.5 1.0; min: 0 131; rel1 { relative: 0.0 1.0; } } } textblock { "elm.text"; scale; desc { "default"; hid; text.style: "popup_graphic_toast_style"; text.min: 1 1; max: 300 84; rel1 { relative: 0.5 0.0; to_y: "pad.bottom"; } rel2 { relative: 0.5 0.0; to_y: "pad.bottom"; } } desc { "visible"; inherit: "default"; vis; } } spacer { "elm.text.pad.top"; scale; desc { "default"; min: 0 16; align: 0.5 1.0; rel1 { relative: 0.0 0.0; to: "elm.text"; } rel2 { relative: 1.0 0.0; to: "elm.text"; } } } swallow { "callsetting.swallow.progress"; desc { "default"; hid; min: 82 82; max: 82 82; align: 0.5 1.0; rel1 { relative: 0.5 0.0; to_y: "elm.text.pad.top"; } rel2 { relative: 0.5 0.0; to_y: "elm.text.pad.top"; } } desc { "visible"; inherit: "default"; vis; } } } programs { program { "callsetting,show"; signal: "callsetting,show"; source: ""; action: STATE_SET "visible"; targets: "bg" "callsetting.swallow.progress" "elm.text"; } program { "callsetting,show,bg"; signal: "callsetting,show,bg"; source: ""; action: STATE_SET "visible"; target: "bg"; } program { "callsetting,hide,progress"; signal: "callsetting,hide,progress"; source: ""; action: STATE_SET "default"; targets: "callsetting.swallow.progress" "elm.text"; } } } group { "elm/layout/callsetting/popup_icon"; images.image: "check_18.png" COMP; parts { image { "check"; scale; desc { "default"; hid; image.normal: "check_18.png"; aspect: 1 1; aspect_preference: BOTH; } desc { "visible"; inherit: "default"; vis; min: 82 82; max: 82 82; } desc { "clipped"; inherit: "visible"; clip_to: "check_mask"; } } spacer { "check_left_pad"; scale; desc { "default"; align: 0.0 0.5; fixed: 1 1; min: 8 0; rel1.to: "check"; rel2.to: "check"; rel1.relative: 0.0 0.0; rel2.relative: 0.0 1.0; } } spacer { "check_right_pad"; scale; desc { "default"; align: 1.0 0.5; fixed: 1 1; min: 6 0; rel1.to: "check"; rel2.to: "check"; rel1.relative: 1.0 0.0; rel2.relative: 1.0 1.0; } } rect { "check_mask"; desc { "default"; hid; fixed: 1 1; } desc { "anim_state_0"; vis; rel1.to: "check_left_pad"; rel2.to: "check_left_pad"; rel1.relative: 1.0 0.0; rel2.relative: 1.0 1.0; } desc { "anim_state_1"; inherit: "anim_state_0"; rel2.to: "check_right_pad"; rel2.relative: 0.0 1.0; } } } programs { program { "callsetting,animate,check"; signal: "callsetting,animate,check"; source: ""; sequence { action: STATE_SET "clipped"; target: "check"; action: STATE_SET "anim_state_0"; target: "check_mask"; action: STATE_SET "anim_state_1"; target: "check_mask"; transition: CUBIC_BEZIER 0.3 0.46 0.03 0.52 0.95; action: STATE_SET "default"; target: "check_mask"; action: STATE_SET "visible"; target: "check"; } } } } group { "elm/layout/callsetting/keypad"; images { image: "dialer_button_bg.png" COMP; image: "dialer_fadeout.#.png" COMP; } parts { image { "image.bg"; scale; desc { "default"; color: CS_COLOR_KEYPAD_BG; image.normal: "dialer_button_bg.png"; } } spacer { "spacer.number.left"; scale; desc { "default"; fixed: 1 0; min: 70 0; align: 0.0 0.5; rel2.relative: 0.0 1.0; } } spacer { "spacer.number.right"; scale; desc { "default"; fixed: 1 0; min: 70 0; align: 1.0 0.5; rel1.relative: 1.0 0.0; } } swallow { "swl.entry"; scale; clip: "clipper.number"; desc { "default"; fixed: 0 1; min: 208 39; max: 208 39; hid; } desc { "visible"; inherit: "default"; vis; } } image { "clipper.number"; scale; desc { "default"; rel.to: "swl.entry"; image.normal: "dialer_fadeout.#.png"; hid; } desc { "visible"; inherit: "default"; vis; } } textblock { "txt.guide"; scale; desc { "default"; fixed: 1 1; min: 208 78; max: 208 78; text { align: 0.5 0.5; min: 0 1; style: "keypad_guide"; } } desc { "hide"; inherit: "default"; hid; } } CS_SWL_NUMBER_BUTTON("swl.btn.0", 125, 0, 235, 102) CS_SWL_NUMBER_BUTTON("swl.btn.1", 206, 9, 325, 131) CS_SWL_NUMBER_BUTTON("swl.btn.2", 247, 75, 360, 179) CS_SWL_NUMBER_BUTTON("swl.btn.3", 247, 181, 360, 285) CS_SWL_NUMBER_BUTTON("swl.btn.4", 206, 229, 325, 351) CS_SWL_NUMBER_BUTTON("swl.btn.5", 125, 258, 235, 360) CS_SWL_NUMBER_BUTTON("swl.btn.6", 35, 229, 154, 351) CS_SWL_NUMBER_BUTTON("swl.btn.7", 0, 181, 113, 285) CS_SWL_NUMBER_BUTTON("swl.btn.8", 0, 75, 113, 179) CS_SWL_NUMBER_BUTTON("swl.btn.9", 35, 9, 154, 131) spacer { "swl.confirm.pad.top"; scale; desc { "default"; fixed: 0 1; align: 0.5 0.0; rel2 { relative: 1.0 0.0; } min: 0 82; } } swallow { "swl.confirm"; scale; desc { "default"; fixed: 1 1; align: 0.5 0.0; rel1 { relative: 0.5 1.0; to_y: "swl.confirm.pad.top"; } rel2 { relative: 0.5 1.0; to_y: "swl.confirm.pad.top"; } } } spacer { "swl.backspace.pad.bottom"; scale; desc { "default"; fixed: 0 1; align: 0.5 1.0; rel1 { relative: 0.0 1.0; } min: 0 83; } } swallow { "swl.backspace"; scale; desc { "default"; fixed: 1 1; align: 0.5 1.0; rel1 { relative: 0.5 0.0; to_y: "swl.backspace.pad.bottom"; } rel2 { relative: 0.5 0.0; to_y: "swl.backspace.pad.bottom"; } } } rect { "ao.entry"; scale; mouse; desc { "default"; fixed: 1 1; rel.to: "txt.guide"; color: CS_COLOR_TRANSPARENT; } desc { "entry_size"; inherit: "default"; rel.to: "swl.entry"; color: CS_COLOR_TRANSPARENT; } } } programs { program { signal: "guide.txt.show"; source: "keypad"; sequence { action: STATE_SET "default"; target: "txt.guide"; action: STATE_SET "default"; targets: "swl.entry" "clipper.number"; action: STATE_SET "default"; target: "ao.entry"; } } program { signal: "guide.txt.hide"; source: "keypad"; sequence { action: STATE_SET "hide"; target: "txt.guide"; action: STATE_SET "visible"; targets: "swl.entry" "clipper.number"; action: STATE_SET "entry_size"; target: "ao.entry"; } } } }