/* * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0 * * 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. */ #include "../../include/defs.h" group { name, GRP_USER; parts { part { name, "bg"; type, RECT; scale, 1; description { state, "default" 0.0; color, 0 0 0 150; } } part { name, "pad.text"; type, RECT; scale, 1; description { state, "default" 0.0; rel1.relative, 0.5 1.0; rel2.relative, 0.5 1.0; min, 0 388; align, 0.5 1.0; fixed, 1 1; visible, 0; } } part { name, "text"; type, TEXT; scale, 1; description { state, "default" 0.0; rel1.to, "pad.text"; rel2 { to, "pad.text"; relative, 0.0 0.0; } min, 200 34; fixed, 1 1; align, 0.5 1.0; text { text, "Switch User"; font, "TizenSans"; size, 34; } color, 0 0 0 0; color2, 0 0 0 255; } description { state, "show" 0.0; inherit, "default" 0.0; color, 255 255 255 178; } } part { name, "pad.list"; type, RECT; scale, 1; description { state, "default" 0.0; rel1 { to, "text"; relative, 0.5 1.0; } rel2 { to, "text"; relative, 0.5 1.0; } min, 0 42; align, 0.5 0.0; fixed, 1 1; visible, 0; } } part { name, "clip"; type, RECT; scale, 1; description { state, "default" 0.0; color, 0 0 0 0; } description { state, "show" 0.0; inherit, "default" 0.0; color, 255 255 255 255; } } part { name, PART_USER_BAR; type, SWALLOW; scale, 1; clip_to, "clip"; description { state, "default" 0.0; rel1 { to, "pad.list"; relative, 1.0 1.0; } rel2 { to, "pad.list"; relative, 1.0 1.0; } min, 0 228; align, 0.5 0.0; fixed, 1 1; } description { state, "show" 0.0; inherit, "default" 0.0; min, 1422 228; } } } programs { program { name, "sig,show"; signal, SIG_SHOW; source, SRC_PROG; action, STATE_SET "show" 0.0; transition, TRANSITION_DECEL; target, "clip"; target, PART_USER_BAR; target, "text"; after, "sig,show,done"; } program { name, "sig,show,done"; action, SIGNAL_EMIT SIG_SHOW_DONE SRC_EDJE; } program { name, "sig,hide"; signal, SIG_HIDE; source, SRC_PROG; action, STATE_SET "default" 0.0; transition, TRANSITION_DECEL; target, "clip"; target, PART_USER_BAR; target, "text"; after, "sig,hide,done"; } program { name, "sig,hide,done"; action, SIGNAL_EMIT SIG_HIDE_DONE SRC_EDJE; } } } group { name, GRP_USER_ITEM; inherit, GRP_BAR_ITEM; data.item, TITLE_WIDTH "130"; images { image, "btn_navigation_down.png" COMP; } parts { part { name, "bg"; type, RECT; scale, 1; description { state, "default" 0.0; min, 158 228; visible, 0; } } part { name, "pad.icon"; type, RECT; scale, 1; description { state, "default" 0.0; min, 0 26; rel1.relative, 0.5 0.0; rel2.relative, 0.5 0.0; align, 0.5 0.0; fixed, 1 1; visible, 0; } } part { name, PART_BAR_ITEM_ICON; type, SWALLOW; scale, 1; description { state, "default" 0.0; min, 70 70; rel1 { to, "pad.icon"; relative, 1.0 1.0; } rel2 { to, "pad.icon"; relative, 1.0 1.0; } align, 0.5 0.0; fixed, 1 1; } } part { name, "pad.text"; type, RECT; scale, 1; description { state, "default" 0.0; min, 0 12; rel1 { to, PART_BAR_ITEM_ICON; relative, 0.5 1.0; } rel2 { to, PART_BAR_ITEM_ICON; relative, 0.5 1.0; } align, 0.5 0.0; fixed, 1 1; visible, 0; } } part { name, PART_BAR_ITEM_TITLE; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { to, "pad.text"; relative, 1.0 1.0; } rel2 { to, "pad.text"; relative, 1.0 1.0; } align, 0.5 0.0; fixed, 1 1; min, 130 22; } } part { name, PART_BAR_ITEM_TITLE_FOCUS; type, SWALLOW; scale, 1; clip_to, "clip"; description { state, "default" 0.0; rel1.to, PART_BAR_ITEM_TITLE; rel2.to, PART_BAR_ITEM_TITLE; } } part { name, "pad.lock"; type, RECT; scale, 1; description { state, "default" 0.0; min, 16 18; rel1.relative, 1.0 0.0; rel2.relative, 1.0 0.0; align, 1.0 0.0; fixed, 1 1; visible, 0; } } part { name, PART_BAR_ITEM_LOCK; type, SWALLOW; scale, 1; description { state, "default" 0.0; min, 30 30; rel1 { to, "pad.lock"; relative, 0.0 1.0; } rel2 { to, "pad.lock"; relative, 0.0 1.0; } align, 1.0 0.0; fixed, 1 1; } } part { name, PART_BAR_ITEM_LOCK_FOCUS; type, SWALLOW; scale, 1; clip_to, "clip"; description { state, "default" 0.0; rel1.to, PART_BAR_ITEM_LOCK; rel2.to, PART_BAR_ITEM_LOCK; } } part { name, "text"; type, TEXT; scale, 1; description { state, "default" 0.0; min, 158 50; rel1 { to, "pad"; relative, 0.5 1.0; } rel2 { to, "pad"; relative, 0.5 1.0; } align, 0.5 0.0; fixed, 1 1; text { size, 26; font, "TizenSans"; text, "Edit"; } color, 255 255 255 178; visible, 0; } description { state, "focus"; inherit, "default" 0.0; visible, 1; } } part { name, "arrow"; type, IMAGE; scale, 1; description { state, "default" 0.0; min, 86 30; rel1.relative, 0.5 1.0; rel2.relative, 0.5 1.0; image.normal, "btn_navigation_down.png"; align, 0.5 1.0; fixed, 1 1; visible, 0; } description { state, "focus"; inherit, "default" 0.0; visible, 1; } } } programs { program { name, "sig,show,arrow"; signal, SIG_SHOW_ARROW; source, SRC_PROG; action, STATE_SET "focus"; target, "text"; target, "arrow"; } program { name, "sig,hide,arrow"; signal, SIG_HIDE_ARROW; source, SRC_PROG; action, STATE_SET "default"; target, "text"; target, "arrow"; } program { name, "arrow,clicked"; source, "arrow"; signal, "mouse,clicked,1"; action, SIGNAL_EMIT SIG_CLICK_ARROW SRC_EDJE; } } }