/* * 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. */ group{ name: "phlock.view.input.complex"; images{ image: "B07_button_ok_normal_left.png" COMP; image: "B07_button_ok_normal_center.png" COMP; image: "B07_button_ok_normal_right.png" COMP; image: "B07_button_ok_press_left.png" COMP; image: "B07_button_ok_press_center.png" COMP; image: "B07_button_ok_press_right.png" COMP; } parts{ part{ name: "background"; type: RECT; mouse_events: 0; description{ state: "default" 0.0; color: 0 0 0 0; } } part{ name: "button.r.padding"; type: RECT; mouse_events: 0; scale: 1; description{ state: "default" 0.0; align: 1.0 0.0; min: 17 0; fixed: 1 1; rel1{ relative: 1.0 0.0; to: "background"; } rel2{ relative: 1.0 1.0; to: "background"; } color: 0 0 0 0; } } part{ name: "button"; type: RECT; mouse_events: 1; description{ state: "default" 0.0; min: 72 0; fixed: 1 1; rel1{ relative: 0.0 0.0; to: "text.l.padding"; } rel2{ relative: 1.0 1.0; to: "text.r.padding"; } color: 0 0 0 0; } } part{ name: "button.l.padding"; type: RECT; mouse_events: 0; scale: 1; description{ state: "default" 0.0; align: 1.0 0.0; min: 10 0; fixed: 1 1; rel1{ relative: 0.0 0.0; to: "button"; } rel2{ relative: 0.0 1.0; to: "button"; } color: 0 0 0 0; } } part{ name: "image.button.left"; type: IMAGE; scale: 1; mouse_events: 0; description{ state: "default" 0.0; visible: 1; min: 3 0; fixed: 1 1; rel1{ relative: 0.0 0.0; to: "text.l.padding"; } rel2{ relative: 0.0 1.0; to: "text.l.padding"; } image.normal: "B07_button_ok_normal_left.png"; } description{ state: "press" 0.0; inherit: "default" 0.0; image.normal: "B07_button_ok_press_left.png"; } } part{ name: "image.button.right"; type: IMAGE; scale: 1; mouse_events: 0; description{ state: "default" 0.0; visible: 1; min: 3 0; align: 1.0 0.0; fixed: 1 1; rel1{ relative: 1.0 0.0; to: "text.r.padding"; } rel2{ relative: 1.0 1.0; to: "text.r.padding"; } image.normal: "B07_button_ok_normal_right.png"; } description{ state: "press" 0.0; inherit: "default" 0.0; image.normal: "B07_button_ok_press_right.png"; } } part{ name: "image.button.center"; type: IMAGE; scale: 1; mouse_events: 0; description{ state: "default" 0.0; visible: 1; rel1{ relative: 1.0 0.0; to: "image.button.left"; } rel2{ relative: 0.0 1.0; to: "image.button.right"; } image.normal: "B07_button_ok_normal_center.png"; } description{ state: "press" 0.0; inherit: "default" 0.0; image.normal: "B07_button_ok_press_center.png"; } } part{ name: "text.l.padding"; type: RECT; mouse_events: 0; scale: 1; description{ state: "default" 0.0; align: 1.0 0.0; min: 25 0; fixed: 1 1; rel1{ relative: 0.0 0.0; to_x: "swallow.button"; to_y: "background"; } rel2{ relative: 0.0 1.0; to_x: "swallow.button"; to_y: "background"; } color: 0 0 0 0; } } part{ name: "text.r.padding"; type: RECT; mouse_events: 0; scale: 1; description{ state: "default" 0.0; align: 1.0 0.0; min: 36 0; fixed: 1 1; rel1{ relative: 0.0 0.0; to: "button.r.padding"; } rel2{ relative: 0.0 1.0; to: "button.r.padding"; } color: 0 0 0 0; } } part{ name: "swallow.button"; type: SWALLOW; scale: 1; mouse_events: 0; description{ state: "default" 0.0; align: 1.0 0.5; fixed: 1 1; min: 76 0; /* If language is not English, the sring of "OK" button in complex lock screen is cut */ rel1{ relative: 0.0 0.5; to: "text.r.padding"; } rel2{ relative: 0.0 0.5; to: "text.r.padding"; } } } part{ name: "inputarea"; type: RECT; mouse_events: 1; description{ state: "default" 0.0; color: 0 0 0 128; fixed: 1 0; min: 10 72; rel1{ relative: (13/480) 0.0; to: "background"; } rel2{ relative: 0.0 1.0; to: "button.l.padding"; } } } part{ name: "password.l.padding"; type: RECT; scale: 1; mouse_events: 1; description{ state: "default" 0.0; align: 0.0 0.0; fixed: 1 1; min: 30 0; rel1{ to: "inputarea"; } rel2{ relative: 0.0 1.0; to: "inputarea"; } color: 0 0 0 0; } } part{ name: "swallow.text"; type: SWALLOW; scale: 1; mouse_events: 1; description{ state: "default" 0.0; align: 0.0 0.5; fixed: 0 1; rel1{ relative: 1.0 0.0; to: "password.l.padding"; } rel2{ to: "inputarea"; } } } } programs{ program{ name: "press.button"; signal: "press"; source: "button"; action: STATE_SET "press" 0.0; target: "image.button.left"; target: "image.button.center"; target: "image.button.right"; } program{ name: "release.button"; signal: "release"; source: "button"; action: STATE_SET "default" 0.0; target: "image.button.left"; target: "image.button.center"; target: "image.button.right"; } } }