/* * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved * * PROPRIETARY/CONFIDENTIAL * * This software is the confidential and proprietary information of SAMSUNG * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this * software is owned by Samsung and you shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the license * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no * representations or warranties about the suitability of the software, either * express or implied, including but not limited to the implied warranties of * merchantability, fitness for a particular purpose, or non-infringement. * SAMSUNG shall not be liable for any damages suffered by licensee arising out * of or releated to this software. * */ /*************************************************/ /* elm_layout -> fundamental template style */ /*************************************************/ group { name: "elm/layout/application/default"; parts { part { name: "elm.swallow.bg"; type: SWALLOW; scale: 1; description { state: "default" 0.0; } } part { name: "indicator"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 LAYOUT_INDICATOR_HEIGHT_INC; max: 999999 LAYOUT_INDICATOR_HEIGHT_INC; fixed: 0 1; align: 0.5 0; color: LAYOUT_INDICATOR_COLOR_INC; } } part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1.to_y: "indicator"; rel1.relative: 0.0 1.0; } } part { name: "elm.swallow.controlbar"; type: SWALLOW; description { state: "default" 0.0; visible: 0; } } } } /*************************************************************/ /* elm_layout -> fundamental template style but no indicator */ /*************************************************************/ group { name: "elm/layout/application/noindicator"; parts { part { name: "elm.swallow.bg"; type: SWALLOW; scale: 1; description { state: "default" 0.0; } } part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; description { state: "default" 0.0; } } part { name: "elm.swallow.controlbar"; type: SWALLOW; description { state: "default" 0.0; visible: 0; } } } } /************************************************************/ /* elm_layout -> fundamental template style with controlbar */ /************************************************************/ group { name: "elm/layout/application/controlbar"; parts { part { name: "elm.swallow.bg"; type: SWALLOW; scale: 1; description { state: "default" 0.0; } } part { name: "indicator"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 LAYOUT_INDICATOR_HEIGHT_INC; max: 999999 LAYOUT_INDICATOR_HEIGHT_INC; fixed: 0 1; align: 0.5 0; color: LAYOUT_INDICATOR_COLOR_INC; } } part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1.to_y: "indicator"; rel1.relative: 0.0 1.0; rel2.relative: 1.0 0.0; rel2.to: "elm.swallow.controlbar"; } } part { name: "elm.swallow.controlbar"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: 0 CONTROLBAR_LARGE_HEIGHT_INC; fixed: 0 1; rel1 { relative: 0.0 1.0; } rel2 { relative: 1.0 1.0; } align: 0.5 1.0; } } } } /************************************************************/ /* elm_layout -> fundamental template style with tabbar */ /************************************************************/ group { name: "elm/layout/application/tabbar"; parts { part { name: "elm.swallow.bg"; type: SWALLOW; scale: 1; description { state: "default" 0.0; } } part { name: "indicator"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 LAYOUT_INDICATOR_HEIGHT_INC; max: 999999 LAYOUT_INDICATOR_HEIGHT_INC; fixed: 0 1; align: 0.5 0; color: LAYOUT_INDICATOR_COLOR_INC; } } part { name: "elm.swallow.tabbar"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: 0 CONTROLBAR_LARGE_HEIGHT_INC; fixed: 0 1; rel1 { relative: 0.0 1.0; to_y: "indicator";} rel2 { relative: 1.0 1.0; to_y: "indicator";} align: 0.5 0.0; } } part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1.to_y: "elm.swallow.tabbar"; rel1.relative: 0.0 1.0; } } } } /*************************************************/ /* elm_layout -> tabbar template style */ /*************************************************/ group { name: "elm/layout/tabbar/default"; parts { part { name: "elm.swallow.bg"; type: SWALLOW; scale: 1; description { state: "default" 0.0; } } part { name: "elm.swallow.tabbar"; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: 0 CONTROLBAR_LARGE_HEIGHT_INC; fixed: 0 1; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 0.0; } align: 0.5 0.0; } } part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; description { state: "default" 0.0; rel1.relative: 0.0 1.0; rel1.to: "elm.swallow.tabbar"; } } } } /*************************************************/ /* elm_layout -> searchbar style */ /*************************************************/ group { name: "elm/layout/application/searchbar_base"; parts { part { name: "elm.swallow.bg"; type: SWALLOW; scale: 1; description { state: "default" 0.0; } } part { name: "searchbar"; type: SWALLOW; mouse_events: 1; scale: 1; description { state: "default" 0.0; min: 0 SEARCHBAR_H_INC; fixed: 0 1; align: 0.0 1.0; rel2 { relative: 1.0 0.0; } } description { state: "visible" 0.0; inherit: "default" 0.0; align: 0.0 0.0; } } part { name: "elm.swallow.content"; type: SWALLOW; mouse_events: 1; scale: 1; description { state: "default" 0.0; align: 0.0 0.0; rel1 { relative: 0.0 1.0; to: "searchbar"; } } } } programs { program { name: "show_searchbar"; signal: "elm,state,show,searchbar"; source: "elm"; action: STATE_SET "visible" 0.0; target: "searchbar"; } program { name: "show_searchbar_with_animation"; signal: "elm,state,show,searchbar,animation"; source: "elm"; action: STATE_SET "visible" 0.0; transition: DECELERATE 0.3; target: "searchbar"; } program { name: "hide_searchbar"; signal: "elm,state,hide,searchbar"; source: "elm"; action: STATE_SET "default" 0.0; target: "searchbar"; } program { name: "hide_searchbar_with_animation"; signal: "elm,state,hide,searchbar,animation"; source: "elm"; action: STATE_SET "default" 0.0; transition: ACCELERATE 0.3; target: "searchbar"; } } } /*************************************************/ /* elm_layout -> integrated style (deprecated) */ /*************************************************/ group { name: "elm/standard/window/integration"; parts { /* for event blocking */ part { name: "base_event"; type: RECT; repeat_events: 0; description { state: "default" 0.0; visible: 1; color: 0 0 0 0; } description { state: "block_events" 0.0; inherit: "default" 0.0; } description { state: "repeat_events" 0.0; inherit: "default" 0.0; visible: 0; } } part { name: "base"; type: RECT; mouse_events: 1; repeat_events: 1; description { state: "default" 0.0; color: LAYOUT_BG_COLOR_INC; } description { state: "white_bg" 0.0; color: 255 255 255 255; } description { state: "black_bg" 0.0; color: 0 0 0 255; } description { state: "beige_bg" 0.0; color: 246 245 237 255; } description { state: "group_list_bg" 0.0; color: LAYOUT_GROUP_LIST_BG_COLOR_INC; } description { state: "transparent_bg" 0.0; color: 0 0 0 0; } description { state: "edit_mode" 0.0; color: LAYOUT_EDIT_MODE_BG_COLOR_INC; } } part { name: "elm.swallow.content"; type: SWALLOW; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } description { state: "show" 0.0; inherit: "default" 0.0; visible: 1; } description { state: "show_with_navi_bar" 0.0; inherit: "default" 0.0; rel1 { relative: 0.0 1.0; to_y: "elm.swallow.navi_bar"; } visible: 1; } description { state: "show" 1.0; inherit: "default" 0.0; rel2 { relative: 1.0 0.0; to_y: "elm.swallow.controlbar"; } visible: 1; } description { state: "show_with_navi_bar" 1.0; inherit: "default" 0.0; rel1 { relative: 0.0 1.0; to_y: "elm.swallow.navi_bar"; } rel2 { relative: 1.0 0.0; to_y: "elm.swallow.controlbar"; } visible: 1; } } part { name: "elm.swallow.navi_bar"; type: SWALLOW; scale: 1; description { state: "default" 0.0; visible: 0; min: 0 NAVIFRAME_TITLE_H_INC; fixed: 0 1; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 0.0; } align: 0.5 0; } description { state: "show" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.swallow.controlbar"; type: SWALLOW; scale: 1; description { state: "default" 0.0; visible: 0; min: 0 CONTROLBAR_LARGE_HEIGHT_INC; fixed: 0 1; rel1 { relative: 0.0 1.0; } rel2 { relative: 1.0 1.0; } align: 0.5 1.0; } description { state: "show" 0.0; inherit: "default" 0.0; visible: 1; } } } programs { program { name: "block_events"; signal: "elm,base_event,block_events"; source: "elm"; action: STATE_SET "block_events" 0.0; target: "base_event"; } program { name: "repeat_events"; signal: "elm,base_event,repeat_events"; source: "elm"; action: STATE_SET "repeat_events" 0.0; target: "base_event"; } program { name: "show_default_bg"; signal: "elm,bg,show,default"; source: "elm"; script { set_state(PART:"base", "default", 0.0); } } program { name: "show_black_bg"; signal: "elm,bg,show,black"; source: "elm"; script { set_state(PART:"base", "black_bg", 0.0); } } program { name: "show_white_bg"; signal: "elm,bg,show,white"; source: "elm"; script { set_state(PART:"base", "white_bg", 0.0); } } program { name: "show_beige_bg"; signal: "elm,bg,show,beige"; source: "elm"; script { set_state(PART:"base", "beige_bg", 0.0); } } program { name: "show_group_list_bg"; signal: "elm,bg,show,group_list"; source: "elm"; script { set_state(PART:"base", "group_list_bg", 0.0); } } program { name: "show_transparent_bg"; signal: "elm,bg,show,transparent"; source: "elm"; script { set_state(PART:"base", "transparent_bg", 0.0); } } program { name: "show_edit_mode_bg"; signal: "elm,bg,show,edit_mode"; source: "elm"; script { set_state(PART:"base", "edit_mode", 0.0); } } program { name: "show_navi_bar"; signal: "elm,state,show,navi_bar"; source: "elm"; script { set_state(PART:"elm.swallow.navi_bar", "show", 0.0); run_program(PROGRAM:"check_location"); } } program { name: "hide_navi_bar"; signal: "elm,state,hide,navi_bar"; source: "elm"; script { set_state(PART:"elm.swallow.navi_bar", "default", 0.0); run_program(PROGRAM:"check_location"); } } program { name: "show_content"; signal: "elm,state,show,content"; source: "elm"; script { set_state(PART:"elm.swallow.content", "show", 0.0); run_program(PROGRAM:"check_location"); } } program { name: "hide_content"; signal: "elm,state,hide,content"; source: "elm"; script { set_state(PART:"elm.swallow.content", "hide", 0.0); run_program(PROGRAM:"check_location"); } } program { name: "show_controlbar"; signal: "elm,state,show,controlbar"; source: "elm"; script { set_state(PART:"elm.swallow.controlbar", "show", 0.0); run_program(PROGRAM:"check_location"); } } program { name: "hide_controlbar"; signal: "elm,state,hide,controlbar"; source: "elm"; script { set_state(PART:"elm.swallow.controlbar", "default", 0.0); run_program(PROGRAM:"check_location"); } } program { name: "check_location"; script { new st[30]; new Float:vl; new navi_bar = 0, content = 0, controlbar = 0; get_state(PART:"elm.swallow.navi_bar", st, 30, vl) if (!strncmp(st, "show", 4)) navi_bar = 1; get_state(PART:"elm.swallow.content", st, 30, vl) if (!strncmp(st, "show", 4)) content = 1; get_state(PART:"elm.swallow.controlbar", st, 30, vl) if (!strncmp(st, "show", 4)) controlbar = 1; // set navi bar if (navi_bar == 1) { set_state(PART:"elm.swallow.navi_bar", "show", 0.0) } // set content if (content == 1) { if (navi_bar == 1) { set_state(PART:"elm.swallow.content", "show_with_navi_bar", 0.0) } else { set_state(PART:"elm.swallow.content", "show", 0.0) } get_state(PART:"elm.swallow.content", st, 30, vl) if (controlbar == 1) { set_state(PART:"elm.swallow.content", st, 1.0) } } } } } } group { name: "elm/layout/editfield/default"; images { image: "00_EditField_clear.png" COMP; image: "00_EditField_clear_press.png" COMP; } parts { part { name: "base"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; min: 0 EDITFIELD_DEFAULT_MINH_INC; color: 0 0 0 0; } } part { name: "top1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_DEFAULT_TOP1_SINGLE_INC; fixed: 1 1; rel1.relative: 0.0 0.0; rel2.relative: 1.0 0.0; align: 0.5 0; } } part { name: "top2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_DEFAULT_TOP2_INC; fixed: 1 1; rel1.relative: 0.0 0.0; rel2.relative: 1.0 0.0; align: 0.5 0; } } part { name: "left1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_LEFT1_INC 0; fixed: 1 1; align: 0 0; rel1.relative : 0.0 0.0; rel2.relative : 0.0 1.0; } } part { name: "left2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_LEFT2_INC 0; fixed: 1 1; align: 0 0; rel1.relative : 0.0 0.0; rel2.relative : 0.0 1.0; } } part { name: "right1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0; fixed: 1 1; align: 1 0; rel1.relative : 1.0 0.0; rel2.relative : 1.0 1.0; } } part { name: "right2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_RIGHT2_INC 0; fixed: 1 1; align: 1 0; rel1.relative : 1.0 0.0; rel2.relative : 1.0 1.0; } } part { name: "bottom1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC; fixed: 1 1; align: 0 1; rel1.relative: 0.0 1.0; } } part { name: "bottom2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_DEFAULT_BOTTOM2_SINGLE_INC; fixed: 0 1; rel1.relative: 0.0 1.0; align: 0 1; } } part { name: "elm.guidetext"; type: TEXT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; align: 0.0 0.0; fixed: 1 1; rel1.to: "elm.swallow.content"; rel2.to: "elm.swallow.content"; color: EDITFIELD_GUIDE_TEXT_COLOR_INC; text { font: "SLP:style=Roman"; size: ENTRY_TEXT_SIZE_INC; min: 0 0; align: 0.0 0.5; text_class: "slp_roman"; } } description { state: "hidden" 0.0; inherit: "default" 0.0; visible: 0; } } part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; min: 0 40; rel1 { relative : 1.0 1.0; to_x: "left1"; to_y: "top1"; } rel2 { relative : 0.0 0.0; to_x: "right1"; to_y: "bottom1"; } align: 0.0 0.5; } } part { name: "eraser_image"; scale: 1; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC; fixed: 1 1; align: 1 0.5; rel1 { relative: 0.0 0.5; to_x : "right2"; } rel2 { relative: 0.0 0.5; to_x : "right2"; } } description { state: "elm.eraser.show" 0.0; inherit: "default" 0.0; visible: 1; image { normal: "00_EditField_clear.png"; border: 10 10 10 10; border_scale: 1; } } description { state: "elm.eraser.pressed" 0.0; inherit: "default" 0.0; visible: 1; image { normal: "00_EditField_clear_press.png"; border: 8 8 8 8; border_scale: 1; } } } part { name: "eraser"; type: RECT; scale: 1; mouse_events: 1; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_ERASER_EVENT_MINW_INC EDITFIELD_DEFAULT_ERASER_EVENT_MINH_INC; fixed: 1 1; align: 1 0.5; color: 0 0 0 0; rel1 { relative: 0.0 0.5; to_x : "right2"; } rel2 { relative: 0.0 0.5; to_x : "right2"; } } description { state: "elm.eraser.show" 0.0; inherit: "default" 0.0; visible: 1; } } } programs { program { name: "guidetext_show"; signal: "elm,state,guidetext,show"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.guidetext"; } program { name: "guidetext_hide"; signal: "elm,state,guidetext,hide"; source: "elm"; action: STATE_SET "hidden" 0.0; target: "elm.guidetext"; } program { name: "eraser_show"; signal: "elm,state,eraser,show"; source: "elm"; action: STATE_SET "elm.eraser.show" 0.0; target: "eraser_image"; target: "eraser"; } program { name: "eraser_hide"; signal: "elm,state,eraser,hide"; source: "elm"; action: STATE_SET "default" 0.0; target: "eraser_image"; target: "eraser"; } program { name: "eraser_clicked"; signal: "mouse,clicked,1"; source: "eraser"; action: SIGNAL_EMIT "elm,eraser,clicked" "elm"; } program { name: "eraser_pressed"; signal: "mouse,down,1"; source: "eraser"; action: STATE_SET "elm.eraser.pressed" 0.0; target: "eraser_image"; } program { name: "eraser_unpressed"; signal: "mouse,up,1"; source: "eraser"; action: STATE_SET "elm.eraser.show" 0.0; target: "eraser_image"; } } } group { name: "elm/layout/editfield/title"; images { image: "00_EditField_clear.png" COMP; image: "00_EditField_clear_press.png" COMP; } parts { part { name: "base"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; min: 0 EDITFIELD_TITLE_MINH_INC; color: 0 0 0 0; } } part { name: "top1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_DEFAULT_TOP1_MULTI_INC; fixed: 1 1; rel1.relative: 0.0 0.0; rel2.relative: 1.0 0.0; align: 0.5 0; } } part { name: "top2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_DEFAULT_TOP2_INC; fixed: 1 1; rel1.relative: 0.0 0.0; rel2.relative: 1.0 0.0; align: 0.5 0; } } part { name: "left1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_LEFT1_INC 0; fixed: 1 1; align: 0 0; rel1.relative : 0.0 0.0; rel2.relative : 0.0 1.0; } } part { name: "left2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_LEFT2_INC 0; fixed: 1 1; align: 0 0; rel1.relative : 0.0 0.0; rel2.relative : 0.0 1.0; } } part { name: "right1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0; fixed: 1 1; align: 1 0; rel1.relative : 1.0 0.0; rel2.relative : 1.0 1.0; } } part { name: "right2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_RIGHT2_INC 0; fixed: 1 1; align: 1 0; rel1.relative : 1.0 0.0; rel2.relative : 1.0 1.0; } } part { name: "bottom1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_DEFAULT_BOTTOM1_MULTI_INC; fixed: 1 1; align: 0 1; rel1.relative: 0.0 1.0; } } part { name: "bottom2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_DEFAULT_BOTTOM2_MULTI_INC; fixed: 0 1; rel1.relative: 0.0 1.0; align: 0 1; } } part { name: "eraser_base"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 1.0; to_y: "top1"; } } } part { name: "elm.text"; type: TEXT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; align: 0.0 0.0; min: 0 34; fixed: 1 1; rel1 { relative: 1.0 1.0; to_x: "left2"; to_y: "top2"; } rel2 { relative: 1.0 1.0; to_x: "left2"; to_y: "top2"; } color: EDITFIELD_TITLE_COLOR_INC; text { font: "SLP:style=Medium"; size: EDITFIELD_TITLE_SIZE_INC; min: 1 1; align: 0.0 0.0; text_class: "slp_medium"; } } } part { name: "elm.guidetext"; type: TEXT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; align: 0.0 0.0; fixed: 1 1; rel1.to: "elm.swallow.content"; rel2.to: "elm.swallow.content"; color: EDITFIELD_GUIDE_TEXT_COLOR_INC; text { font: "SLP:style=Roman"; size: ENTRY_TEXT_SIZE_INC; min: 0 0; align: 0.0 0.5; text_class: "slp_roman"; } } description { state: "hidden" 0.0; inherit: "default" 0.0; visible: 0; } } part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; min: 0 40; rel1 { relative : 1.0 1.0; to_x: "left1"; to_y: "top1"; } rel2 { relative : 0.0 0.0; to_x: "right1"; to_y: "bottom1"; } align: 0.0 0.5; } } part { name: "eraser_image"; scale: 1; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC; fixed: 1 1; align: 1 0.5; rel1 { relative: 0.0 0.5; to_x : "right2"; to_y : "eraser_base"; } rel2 { relative: 0.0 0.5; to_x : "right2"; to_y : "eraser_base"; } } description { state: "elm.eraser.show" 0.0; inherit: "default" 0.0; visible: 1; image { normal: "00_EditField_clear.png"; border: 10 10 10 10; border_scale: 1; } } description { state: "elm.eraser.pressed" 0.0; inherit: "default" 0.0; visible: 1; image { normal: "00_EditField_clear_press.png"; border: 8 8 8 8; border_scale: 1; } } } part { name: "eraser"; type: RECT; scale: 1; mouse_events: 1; description { state: "default" 0.0; visible: 0; min: EDITFIELD_DEFAULT_ERASER_EVENT_MINW_INC EDITFIELD_DEFAULT_ERASER_EVENT_MINH_INC; fixed: 1 1; align: 1 0.5; color: 0 0 0 0; rel1 { relative: 0.0 0.5; to_x : "right2"; to_y : "eraser_base"; } rel2 { relative: 0.0 0.5; to_x : "right2"; to_y : "eraser_base"; } } description { state: "elm.eraser.show" 0.0; inherit: "default" 0.0; visible: 1; } } } programs { program { name: "guidetext_show"; signal: "elm,state,guidetext,show"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.guidetext"; } program { name: "guidetext_hide"; signal: "elm,state,guidetext,hide"; source: "elm"; action: STATE_SET "hidden" 0.0; target: "elm.guidetext"; } program { name: "eraser_show"; signal: "elm,state,eraser,show"; source: "elm"; action: STATE_SET "elm.eraser.show" 0.0; target: "eraser_image"; target: "eraser"; } program { name: "eraser_hide"; signal: "elm,state,eraser,hide"; source: "elm"; action: STATE_SET "default" 0.0; target: "eraser_image"; target: "eraser"; } program { name: "eraser_clicked"; signal: "mouse,clicked,1"; source: "eraser"; action: SIGNAL_EMIT "elm,eraser,clicked" "elm"; } program { name: "eraser_pressed"; signal: "mouse,down,1"; source: "eraser"; action: STATE_SET "elm.eraser.pressed" 0.0; target: "eraser_image"; } program { name: "eraser_unpressed"; signal: "mouse,up,1"; source: "eraser"; action: STATE_SET "elm.eraser.show" 0.0; target: "eraser_image"; } } } group { name: "elm/layout/searchbar/default"; images { image: "00_EditField_clear.png" COMP; image: "00_EditField_clear_press.png" COMP; image: "00_search_input_field_bg.png" COMP; image: "00_search_icon.png" COMP; } parts { part { name: "inputfield_rect"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: 0 SEARCHBAR_HEIGHT_INC; align: 0.0 0.5; image { normal: "00_search_input_field_bg.png"; border: SEARCHBAR_INPUTFIELD_BORDER_INC; } } } part { name: "left_icon_padding_rect"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: SEARCHBAR_LEFT_ICON_PADDING_INC 0; fixed: 1 0; align: 0 0; rel1.to: "inputfield_rect"; rel2 { relative: 0.0 1.0; to: "inputfield_rect"; } } } part { name: "search_icon"; type: IMAGE; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; min: SEARCHBAR_ICON_MIN_W_INC SEARCHBAR_ICON_MIN_H_INC; fixed: 1 1; align: 0 0.5; rel1 { relative: 1.0 0.5; to_x: "left_icon_padding_rect"; to_y: "inputfield_rect"; } rel2 { relative: 1.0 0.5; to_x: "left_icon_padding_rect"; to_y: "inputfield_rect"; } image.normal: "00_search_icon.png"; } } part { name: "left_padding_search_textfield"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: SEARCHBAR_LEFT_PADDING_SEARCHFIELD_INC 0; fixed: 1 0; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to_x: "search_icon"; to_y: "inputfield_rect"; } rel2 { relative: 1.0 1.0; to_x: "search_icon"; to_y: "inputfield_rect"; } } } part { name: "right_padding_search_textfield"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: SEARCHBAR_RIGHT_PADDING_SEARCHFIELD_INC 0; fixed: 1 0; align: 1.0 0.5; rel1 { relative: 1.0 0.0; to: "inputfield_rect"; } rel2 { relative: 1.0 1.0; to: "inputfield_rect"; } } } part { name: "search_textfield"; type: RECT; mouse_events: 1; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; color: 0 0 0 0; min: 0 SEARCHBAR_SEARCH_TEXTFIELD_H_INC; fixed: 0 1; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to: "left_padding_search_textfield"; } rel2 { relative: 0.0 1.0; to: "right_padding_search_textfield"; } } } part { name: "top1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC; fixed: 1 1; rel1 { relative: 0.0 0.0; to: "search_textfield"; } rel2 { relative: 1.0 0.0; to: "search_textfield"; } align: 0.5 0; } description { state: "elm.text.show" 0.0; inherit: "default" 0.0; min: 0 EDITFIELD_SEARCHBAR_TOP1_MULTI_INC; } } part { name: "top2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_SEARCHBAR_TOP2_INC; fixed: 1 1; rel1 { relative: 0.0 0.0; to: "search_textfield"; } rel2 { relative: 1.0 0.0; to: "search_textfield"; } align: 0.5 0; } } part { name: "left1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_LEFT1_INC 0; fixed: 1 1; align: 0 0; rel1 { relative: 0.0 0.0; to: "search_textfield"; } rel2 { relative: 0.0 1.0; to: "search_textfield"; } } } part { name: "left2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_LEFT2_INC 0; fixed: 1 1; align: 0 0; rel1 { relative: 0.0 0.0; to: "search_textfield"; } rel2 { relative: 0.0 1.0; to: "search_textfield"; } } } part { name: "right1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_RIGHT1_ERASER_SHOW_INC 0; fixed: 1 1; align: 1 0; rel1 { relative: 1.0 0.0; to: "search_textfield"; } rel2.to: "search_textfield"; } } part { name: "right2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_RIGHT2_INC 0; fixed: 1 1; align: 1 0; rel1 { relative: 1.0 0.0; to: "search_textfield"; } rel2.to: "search_textfield"; } } part { name: "bottom1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC; fixed: 1 1; align: 0 1; rel1 { relative: 0.0 1.0; to: "search_textfield"; } } description { state: "elm.text.show" 0.0; inherit: "default" 0.0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC; } } part { name: "bottom2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC; fixed: 0 1; rel1 { relative: 0.0 1.0; to: "search_textfield"; } align: 0 1; } description { state: "elm.text.show" 0.0; inherit: "default" 0.0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC; } } part { name: "bottom3"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC; fixed: 0 1; rel1 { relative: 0.0 1.0; to: "search_textfield"; } align: 0 1; } description { state: "elm.text.show" 0.0; inherit: "default" 0.0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC; } } part { name: "elm.text"; type: TEXT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; align: 0.0 0.0; min: 0 34; fixed: 1 1; rel1 { relative: 1.0 1.0; to_x: "left2"; to_y: "top2"; } rel2 { relative: 1.0 1.0; to_x: "left2"; to_y: "top2"; } color: EDITFIELD_TITLE_COLOR_INC; text { font: "SLP:style=Medium"; size: EDITFIELD_TITLE_SIZE_INC; min: 1 1; align: 0.0 0.0; text_class: "slp_medium"; } } description { state: "elm.text.show" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.guidetext"; type: TEXT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; align: 0.0 0.0; fixed: 1 1; rel1.to: "elm.swallow.content"; rel2.to: "elm.swallow.content"; color: EDITFIELD_GUIDE_TEXT_COLOR_INC; text { font: "SLP:style=Roman"; size: ENTRY_TEXT_SIZE_INC; min: 0 0; align: 0.0 0.5; text_class: "slp_roman"; } } description { state: "hidden" 0.0; inherit: "default" 0.0; visible: 0; } } part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; min: 0 40; rel1 { relative : 1.0 1.0; to_x: "left1"; to_y: "top1"; } rel2 { relative : 0.0 0.0; to_x: "right1"; to_y: "bottom1"; } align: 0.0 0.5; } } part { name: "eraser_image"; scale: 1; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_ERASER_MINW_INC EDITFIELD_SEARCHBAR_ERASER_MINH_INC; fixed: 1 1; align: 1 0.5; rel1 { relative: 0.0 0.5; to_x : "right2"; } rel2 { relative: 0.0 0.5; to_x : "right2"; } } description { state: "elm.eraser.show" 0.0; inherit: "default" 0.0; visible: 1; image { normal: "00_EditField_clear.png"; border: 10 10 10 10; border_scale: 1; } } description { state: "elm.eraser.pressed" 0.0; inherit: "default" 0.0; visible: 1; image { normal: "00_EditField_clear_press.png"; border: 8 8 8 8; border_scale: 1; } } } part { name: "eraser"; type: RECT; scale: 1; mouse_events: 1; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_ERASER_EVENT_MINW_INC EDITFIELD_SEARCHBAR_ERASER_EVENT_MINH_INC; fixed: 1 1; align: 1 0.5; color: 0 0 0 0; rel1 { relative: 0.0 0.5; to_x : "right2"; } rel2 { relative: 0.0 0.5; to_x : "right2"; } } description { state: "elm.eraser.show" 0.0; inherit: "default" 0.0; visible: 1; } } } programs { program { name: "guidetext_show"; signal: "elm,state,guidetext,show"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.guidetext"; } program { name: "guidetext_hide"; signal: "elm,state,guidetext,hide"; source: "elm"; action: STATE_SET "hidden" 0.0; target: "elm.guidetext"; } program { name: "eraser_show"; signal: "elm,state,eraser,show"; source: "elm"; action: STATE_SET "elm.eraser.show" 0.0; target: "eraser_image"; target: "eraser"; } program { name: "eraser_hide"; signal: "elm,state,eraser,hide"; source: "elm"; action: STATE_SET "default" 0.0; target: "eraser_image"; target: "eraser"; } program { name: "label_show"; signal: "elm,state,title,show"; source: "elm"; action: STATE_SET "elm.text.show" 0.0; target: "elm.text"; target: "top1"; target: "bottom1"; target: "bottom2"; target: "bottom3"; } program { name: "label_hide"; signal: "elm,state,title,hide"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.text"; target: "top1"; target: "bottom1"; target: "bottom2"; target: "bottom3"; } program { name: "eraser_clicked"; signal: "mouse,clicked,1"; source: "eraser"; action: SIGNAL_EMIT "elm,eraser,clicked" "elm"; } program { name: "bg_clicked"; signal: "mouse,clicked,1"; source: "search_textfield"; action: SIGNAL_EMIT "elm,bg,clicked" "elm"; } program { name: "mouse_click"; signal: "mouse,clicked,1"; source: "search_icon"; action: SIGNAL_EMIT "elm,action,click" ""; } program { name: "eraser_pressed"; signal: "mouse,down,1"; source: "eraser"; action: STATE_SET "elm.eraser.pressed" 0.0; target: "eraser_image"; } program { name: "eraser_unpressed"; signal: "mouse,up,1"; source: "eraser"; action: STATE_SET "elm.eraser.show" 0.0; target: "eraser_image"; } } } group { name: "elm/layout/searchbar/cancel_button"; images { image: "00_EditField_clear.png" COMP; image: "00_EditField_clear_press.png" COMP; image: "00_search_input_field_bg.png" COMP; image: "00_search_icon.png" COMP; } parts { part { name: "top_padding_rect"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 1; min: 0 SEARCHBAR_TOP_PADDING_INC; fixed: 0 1; align: 0 0; color: SEARCHBAR_BACKGROUND_COLOR_INC; rel2.relative: 1.0 0.0; } } part { name: "bottom_padding_rect"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 1; min: 0 SEARCHBAR_BOTTOM_PADDING_INC; fixed: 0 1; align: 0 1; color: SEARCHBAR_BACKGROUND_COLOR_INC; rel1.relative: 0.0 1.0; } } part { name: "base_bg"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: 0 SEARCHBAR_HEIGHT_INC; align: 0 0.5; fixed: 0 1; rel1 { relative: 0.0 1.0; to: "top_padding_rect"; } rel2 { relative: 1.0 0.0; to: "bottom_padding_rect"; } } } part { name: "left_padding_rect"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 1; min: SEARCHBAR_LEFT_PADDING_INC 0; fixed: 1 0; align: 0 0; rel2.relative: 0.0 1.0; color: SEARCHBAR_BACKGROUND_COLOR_INC; } } part { name: "right_padding_rect"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 1; min: SEARCHBAR_RIGHT_PADDING_INC 0; fixed: 1 0; align: 1 0; rel1.relative: 1.0 0.0; color: SEARCHBAR_BACKGROUND_COLOR_INC; } } part { name: "right_field_and_btn_padding_rect"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 1; min: SEARCHBAR_CANCEL_BUTTON_WITH_DOUBLE_PADDING_W_INC 0; fixed: 1 0; align: 1 0; rel1.relative: 1.0 0.0; color: SEARCHBAR_BACKGROUND_COLOR_INC; } } part { name: "right_btn_padding_rect"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 1; min: SEARCHBAR_CANCEL_BUTTON_WITH_PADDING_W_INC 0; fixed: 1 0; align: 1 0; rel1.relative: 1.0 0.0; color: SEARCHBAR_BACKGROUND_COLOR_INC; } } part { name: "inputfield_rect"; type: IMAGE; scale: 1; description { state: "default" 0.0; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to_x: "left_padding_rect"; to_y: "base_bg"; } rel2 { relative: 0.0 1.0; to_x: "right_padding_rect"; to_y: "base_bg"; } image { normal: "00_search_input_field_bg.png"; border: SEARCHBAR_INPUTFIELD_BORDER_INC; } } description { state: "in" 0.0; inherit: "default" 0.0; rel2.to_x: "right_field_and_btn_padding_rect"; } } part { name: "left_icon_padding_rect"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: SEARCHBAR_LEFT_ICON_PADDING_INC 0; fixed: 1 0; align: 0 0; rel1.to: "inputfield_rect"; rel2 { relative: 0.0 1.0; to: "inputfield_rect"; } } } part { name: "search_icon"; type: IMAGE; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; min: SEARCHBAR_ICON_MIN_W_INC SEARCHBAR_ICON_MIN_H_INC; fixed: 1 1; align: 0 0.5; rel1 { relative: 1.0 0.5; to_x: "left_icon_padding_rect"; to_y: "inputfield_rect"; } rel2 { relative: 1.0 0.5; to_x: "left_icon_padding_rect"; to_y: "inputfield_rect"; } image.normal: "00_search_icon.png"; } } part { name: "left_padding_search_textfield"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: SEARCHBAR_LEFT_PADDING_SEARCHFIELD_INC 0; fixed: 1 0; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to_x: "search_icon"; to_y: "inputfield_rect"; } rel2 { relative: 1.0 1.0; to_x: "search_icon"; to_y: "inputfield_rect"; } } } part { name: "right_padding_search_textfield"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: SEARCHBAR_RIGHT_PADDING_SEARCHFIELD_INC 0; fixed: 1 0; align: 1.0 0.5; rel1 { relative: 1.0 0.0; to: "inputfield_rect"; } rel2 { relative: 1.0 1.0; to: "inputfield_rect"; } } } part { name: "search_textfield"; type: RECT; mouse_events: 1; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; color: 0 0 0 0; min: 0 SEARCHBAR_SEARCH_TEXTFIELD_H_INC; fixed: 0 1; align: 0.0 0.5; rel1 { relative: 1.0 0.0; to: "left_padding_search_textfield"; } rel2 { relative: 0.0 1.0; to: "right_padding_search_textfield"; } } } part { name: "button_cancel"; type: SWALLOW; mouse_events: 1; scale: 1; description { state: "default" 0.0; visible: 0; fixed: 1 1; min: SEARCHBAR_CANCEL_BUTTON_W_INC 0; align: 0.0 0.5; state: "default" 0.0; rel1 { relative: 1.0 1.0; to_x: "base_bg"; to_y: "top_padding_rect"; } rel2 { relative: 1.0 0.0; to_x: "base_bg"; to_y: "bottom_padding_rect"; } } description { state: "in" 0.0; visible:1; min: SEARCHBAR_CANCEL_BUTTON_W_INC 0; align: 1.0 0.5; rel1 { relative: 0.0 1.0; to_x: "right_btn_padding_rect"; to_y: "top_padding_rect"; } rel2 { relative: 0.0 0.0; to_x: "right_padding_rect"; to_y: "bottom_padding_rect"; } } } part { name: "top1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC; fixed: 1 1; rel1 { relative: 0.0 0.0; to: "search_textfield"; } rel2 { relative: 1.0 0.0; to: "search_textfield"; } align: 0.5 0; } description { state: "elm.text.show" 0.0; inherit: "default" 0.0; min: 0 EDITFIELD_SEARCHBAR_TOP1_MULTI_INC; } } part { name: "top2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_SEARCHBAR_TOP2_INC; fixed: 1 1; rel1 { relative: 0.0 0.0; to: "search_textfield"; } rel2 { relative: 1.0 0.0; to: "search_textfield"; } align: 0.5 0; } } part { name: "left1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_LEFT1_INC 0; fixed: 1 1; align: 0 0; rel1 { relative: 0.0 0.0; to: "search_textfield"; } rel2 { relative: 0.0 1.0; to: "search_textfield"; } } } part { name: "left2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_LEFT2_INC 0; fixed: 1 1; align: 0 0; rel1 { relative: 0.0 0.0; to: "search_textfield"; } rel2 { relative: 0.0 1.0; to: "search_textfield"; } } } part { name: "right1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_RIGHT1_ERASER_SHOW_INC 0; fixed: 1 1; align: 1 0; rel1 { relative: 1.0 0.0; to: "search_textfield"; } rel2.to: "search_textfield"; } } part { name: "right2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_RIGHT2_INC 0; fixed: 1 1; align: 1 0; rel1 { relative: 1.0 0.0; to: "search_textfield"; } rel2.to: "search_textfield"; } } part { name: "bottom1"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC; fixed: 1 1; align: 0 1; rel1 { relative: 0.0 1.0; to: "search_textfield"; } rel2.to: "search_textfield"; } description { state: "elm.text.show" 0.0; inherit: "default" 0.0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC; } } part { name: "bottom2"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC; fixed: 0 1; rel1 { relative: 0.0 1.0; to: "search_textfield"; } rel2.to: "search_textfield"; align: 0 1; } description { state: "elm.text.show" 0.0; inherit: "default" 0.0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC; } } part { name: "bottom3"; type: RECT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC; fixed: 0 1; rel1 { relative: 0.0 1.0; to: "search_textfield"; } rel2.to: "search_textfield"; align: 0 1; } description { state: "elm.text.show" 0.0; inherit: "default" 0.0; min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC; } } part { name: "elm.text"; type: TEXT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; visible: 0; align: 0.0 0.0; min: 0 34; fixed: 1 1; rel1 { relative: 1.0 1.0; to_x: "left2"; to_y: "top2"; } rel2 { relative: 1.0 1.0; to_x: "left2"; to_y: "top2"; } color: EDITFIELD_TITLE_COLOR_INC; text { font: "SLP:style=Medium"; size: EDITFIELD_TITLE_SIZE_INC; min: 1 1; align: 0.0 0.0; text_class: "slp_medium"; } } description { state: "elm.text.show" 0.0; inherit: "default" 0.0; visible: 1; } } part { name: "elm.guidetext"; type: TEXT; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; align: 0.0 0.0; fixed: 1 1; rel1.to: "elm.swallow.content"; rel2.to: "elm.swallow.content"; color: EDITFIELD_GUIDE_TEXT_COLOR_INC; text { font: "SLP:style=Roman"; size: ENTRY_TEXT_SIZE_INC; min: 0 0; align: 0.0 0.5; text_class: "slp_roman"; } } description { state: "hidden" 0.0; inherit: "default" 0.0; visible: 0; } } part { name: "elm.swallow.content"; type: SWALLOW; scale: 1; ignore_flags: ON_HOLD; description { state: "default" 0.0; min: 0 40; rel1 { relative : 1.0 1.0; to_x: "left1"; to_y: "top1"; } rel2 { relative : 0.0 0.0; to_x: "right1"; to_y: "bottom1"; } align: 0.0 0.5; } } part { name: "eraser_image"; scale: 1; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_ERASER_MINW_INC EDITFIELD_SEARCHBAR_ERASER_MINH_INC; fixed: 1 1; align: 1 0.5; rel1 { relative: 0.0 0.5; to_x : "right2"; } rel2 { relative: 0.0 0.5; to_x : "right2"; } } description { state: "elm.eraser.show" 0.0; inherit: "default" 0.0; visible: 1; image { normal: "00_EditField_clear.png"; border: 10 10 10 10; border_scale: 1; } } description { state: "elm.eraser.pressed" 0.0; inherit: "default" 0.0; visible: 1; image { normal: "00_EditField_clear_press.png"; border: 8 8 8 8; border_scale: 1; } } } part { name: "eraser"; type: RECT; scale: 1; mouse_events: 1; description { state: "default" 0.0; visible: 0; min: EDITFIELD_SEARCHBAR_ERASER_EVENT_MINW_INC EDITFIELD_SEARCHBAR_ERASER_EVENT_MINH_INC; fixed: 1 1; align: 1 0.5; color: 0 0 0 0; rel1 { relative: 0.0 0.5; to_x : "right2"; } rel2 { relative: 0.0 0.5; to_x : "right2"; } } description { state: "elm.eraser.show" 0.0; inherit: "default" 0.0; visible: 1; } } } programs { program { name: "guidetext_show"; signal: "elm,state,guidetext,show"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.guidetext"; } program { name: "guidetext_hide"; signal: "elm,state,guidetext,hide"; source: "elm"; action: STATE_SET "hidden" 0.0; target: "elm.guidetext"; } program { name: "eraser_show"; signal: "elm,state,eraser,show"; source: "elm"; action: STATE_SET "elm.eraser.show" 0.0; target: "eraser_image"; target: "eraser"; } program { name: "eraser_hide"; signal: "elm,state,eraser,hide"; source: "elm"; action: STATE_SET "default" 0.0; target: "eraser_image"; target: "eraser"; } program { name: "label_show"; signal: "elm,state,title,show"; source: "elm"; action: STATE_SET "elm.text.show" 0.0; target: "elm.text"; target: "top1"; target: "bottom1"; target: "bottom2"; target: "bottom3"; } program { name: "label_hide"; signal: "elm,state,title,hide"; source: "elm"; action: STATE_SET "default" 0.0; target: "elm.text"; target: "top1"; target: "bottom1"; target: "bottom2"; target: "bottom3"; } program { name: "eraser_clicked"; signal: "mouse,clicked,1"; source: "eraser"; action: SIGNAL_EMIT "elm,eraser,clicked" "elm"; } program { name: "bg_clicked"; signal: "mouse,clicked,1"; source: "search_textfield"; action: SIGNAL_EMIT "elm,bg,clicked" "elm"; } program { name: "cancel_in"; signal: "cancel,in"; source: ""; action: STATE_SET "in" 0.0; target: "button_cancel"; target: "inputfield_rect"; transition: ACCELERATE 0.4; } program { name: "cancel_out"; signal: "cancel,out"; source: ""; action: STATE_SET "default" 0.0; target: "button_cancel"; target: "inputfield_rect"; transition: ACCELERATE 0.4; } program { name: "cancel_show"; signal: "cancel,show"; source: ""; action: STATE_SET "in" 0.0; target: "button_cancel"; target: "inputfield_rect"; } program { name: "cancel_hide"; signal: "cancel,hide"; source: ""; action: STATE_SET "default" 0.0; target: "button_cancel"; target: "inputfield_rect"; } program { name: "mouse_click"; signal: "mouse,clicked,1"; source: "search_icon"; action: SIGNAL_EMIT "elm,action,click" ""; } program { name: "eraser_pressed"; signal: "mouse,down,1"; source: "eraser"; action: STATE_SET "elm.eraser.pressed" 0.0; target: "eraser_image"; } program { name: "eraser_unpressed"; signal: "mouse,up,1"; source: "eraser"; action: STATE_SET "elm.eraser.show" 0.0; target: "eraser_image"; } } } group { name: "elm/layout/nocontents/full"; alias: "elm/nocontents/base/full"; alias: "elm/nocontents/base/default"; styles{ style { name: "nocontent_style"; base: "font=SLP:style=Roman font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=slp_roman"; tag: "br" "\n"; tag: "hilight" "+ font=SLP:style=Bold"; tag: "b" "+ font=SLP:style=Bold"; tag: "tab" "\t"; } } images { image: "00_winset_NoContents_image.png" COMP; } parts { part { name: "bg"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 1; min: 200 200; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } color: NOCONTENT_BG_COLOR_INC; } } part { name: "nocontents.image"; description { state: "default" 0.0; visible: 1; align: 0.5 0.0; rel1 { relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; to: "bg"; } rel2 { relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; to: "bg"; } image { normal: "00_winset_NoContents_image.png"; border: 1 1 1 1; border_scale: 1; } aspect: 1.0 1.0; aspect_preference: BOTH; } } part { name: "middle.padding"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: 1 NOCONTENT_MIDDLE_PADDING_INC; max: 1 NOCONTENT_MIDDLE_PADDING_INC; align: 0.5 0.0; rel1 { relative: 0.0 1.0; to_y: "nocontents.image"; } } } part { name: "elm.text"; type: TEXTBLOCK; scale: 1; description { state: "default" 0.0; min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; fixed: 0 1; align: 0.5 0.5; visible: 1; rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "middle.padding"; } rel2 { relative: 1.0 1.0; to_x: "bg"; to_y: "middle.padding"; } color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; text { style: "nocontent_style"; align: 0.5 0.5; min: 0 0; max: 0 1; } } } } } group { name: "elm/layout/nocontents/multimedia"; alias: "elm/nocontents/base/multimedia"; images { image: "00_winset_NoContents_multimedia.png" COMP; } parts { part { name: "bg"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 1; min: 200 200; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } color: 0 0 0 0; } } part { name: "nocontents.image"; description { state: "default" 0.0; visible: 1; align: 0.5 0.0; rel1 { relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; to: "bg"; } rel2 { relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; to: "bg"; } image { normal: "00_winset_NoContents_multimedia.png"; border: 1 1 1 1; border_scale: 1; } aspect: 1.0 1.0; aspect_preference: BOTH; } } part { name: "middle.padding"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: 1 NOCONTENT_MIDDLE_PADDING_INC; max: 1 NOCONTENT_MIDDLE_PADDING_INC; align: 0.5 0.0; rel1 { relative: 0.0 1.0; to_y: "nocontents.image"; } } } part { name: "elm.text"; type: TEXTBLOCK; scale: 1; description { state: "default" 0.0; min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; fixed: 0 1; align: 0.5 0.5; visible: 1; rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "middle.padding"; } rel2 { relative: 1.0 1.0; to_x: "bg"; to_y: "middle.padding"; } color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; text { style: "nocontent_style"; align: 0.5 0.5; min: 0 0; max: 0 1; } } } } } group { name: "elm/layout/nocontents/text"; alias: "elm/nocontents/base/text"; images { image: "00_winset_NoContents_text.png" COMP; } parts { part { name: "bg"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 1; min: 200 200; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } color: 0 0 0 0; } } part { name: "nocontents.image"; description { state: "default" 0.0; visible: 1; align: 0.5 0.0; rel1 { relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; to: "bg"; } rel2 { relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; to: "bg"; } image { normal: "00_winset_NoContents_text.png"; border: 1 1 1 1; border_scale: 1; } aspect: 1.0 1.0; aspect_preference: BOTH; } } part { name: "middle.padding"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: 1 NOCONTENT_MIDDLE_PADDING_INC; max: 1 NOCONTENT_MIDDLE_PADDING_INC; align: 0.5 0.0; rel1 { relative: 0.0 1.0; to_y: "nocontents.image"; } } } part { name: "elm.text"; type: TEXTBLOCK; scale: 1; description { state: "default" 0.0; min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; fixed: 0 1; align: 0.5 0.5; visible: 1; rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "middle.padding"; } rel2 { relative: 1.0 1.0; to_x: "bg"; to_y: "middle.padding"; } color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; text { style: "nocontent_style"; align: 0.5 0.5; min: 0 0; max: 0 1; } } } } } group { name: "elm/layout/nocontents/unnamed"; alias: "elm/nocontents/base/unnamed"; images { image: "00_winset_NoContents_unnamed.png" COMP; } parts { part { name: "bg"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 1; min: 200 200; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } color: 0 0 0 0; } } part { name: "nocontents.image"; description { state: "default" 0.0; visible: 1; align: 0.5 0.0; rel1 { relative: NOCONTENT_IMAGE_REL1_WIDTH_HEIGHT_INC; to: "bg"; } rel2 { relative: NOCONTENT_IMAGE_REL2_WIDTH_HEIGHT_INC; to: "bg"; } image { normal: "00_winset_NoContents_unnamed.png"; border: 1 1 1 1; border_scale: 1; } aspect: 1.0 1.0; aspect_preference: BOTH; } } part { name: "middle.padding"; type: RECT; scale: 1; description { state: "default" 0.0; visible: 0; min: 1 NOCONTENT_MIDDLE_PADDING_INC; max: 1 NOCONTENT_MIDDLE_PADDING_INC; align: 0.5 0.0; rel1 { relative: 0.0 1.0; to_y: "nocontents.image"; } } } part { name: "elm.text"; type: TEXTBLOCK; scale: 1; description { state: "default" 0.0; min: NOCONTENT_TEXT_STYLE_BG_MIN_INC; fixed: 0 1; align: 0.5 0.5; visible: 1; rel1 { relative: 0.0 1.0; to_x: "bg"; to_y: "middle.padding"; } rel2 { relative: 1.0 1.0; to_x: "bg"; to_y: "middle.padding"; } color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; text { style: "nocontent_style"; align: 0.5 0.5; min: 0 0; max: 0 1; } } } } } group { name: "elm/layout/nocontents/search"; alias: "elm/nocontents/base/search"; parts { part { name: "bg"; mouse_events: 0; type: RECT; description { state: "default" 0.0; visible: 1; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } color: 0 0 0 0; } } part { name: "top_padding"; mouse_events: 0; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC; fixed: 0 1; align: 0 0; visible: 1; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 0.0; } color: 0 0 0 0; } } part { name: "elm.text"; mouse_events: 0; type: TEXT; scale: 1; description { state: "default" 0.0; //min: 0 30; fixed: 0 1; align: 0 0; visible: 1; rel1 { relative: 0.0 1.0; to:"top_padding"; } rel2 { relative: 1.0 1.0; to:"top_padding"; } color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC; text { font: "SLP:style=Roman"; size: 30; text: ""; align: 0.5 0.5; text_class: "slp_roman"; } } } part { name: "text_bottom_padding"; mouse_events: 0; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC; fixed: 0 1; align: 0 0; visible: 0; rel1 { relative: 0.0 1.0; to:"elm.text"; } rel2 { relative: 1.0 1.0; to:"elm.text"; } } } part { name: "custom"; mouse_events: 1; type: SWALLOW; scale: 1; description { state: "default" 0.0; min: 0 0; fixed: 0 1; align: 0 0; visible: 1; rel1 { relative: 0.0 1.0; to:"text_bottom_padding"; } rel2 { relative: 1.0 1.0; to:"text_bottom_padding"; } } } } }