From 77fb0606c93905a29e8c62e16d24ea4ff421bd58 Mon Sep 17 00:00:00 2001 From: shilpa singh Date: Fri, 17 Feb 2012 15:12:00 +0530 Subject: [PATCH] [elm_searchbar]:searchbar + editfield edc merged. Change-Id: I8901ba55b97485e2a90880c867d71912f4ffcf70 --- themes/widgets/layout.edc | 1224 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 1222 insertions(+), 2 deletions(-) diff --git a/themes/widgets/layout.edc b/themes/widgets/layout.edc index 82d9342..a75e1c0 100644 --- a/themes/widgets/layout.edc +++ b/themes/widgets/layout.edc @@ -158,9 +158,9 @@ } /*************************************************/ /* elm_layout -> searchbar style */ + /* Below style will be deprecated soon */ /*************************************************/ - group { name: "elm/layout/searchbar/default"; - alias: "elm/layout/application/searchbar"; //consider to remove + group { name: "elm/layout/application/searchbar"; parts { part { name: "elm.swallow.bg"; type: SWALLOW; @@ -232,6 +232,78 @@ } } } + + /*************************************************/ + /* elm_layout -> searchbar style */ + /*************************************************/ + group { name: "elm/layout/searchbar/default"; + 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) */ /*************************************************/ @@ -487,3 +559,1151 @@ } } } + +group { name: "elm/layout/searchbar_normal/default"; + images { + image: "00_EditField_clear.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; + } + description { state: "edit" 0.0; + inherit: "default" 0.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; + } + } + 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; + } + } + 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; + } + description { state: "no_edit" 0.0; + inherit: "default" 0.0; + visible: 0; + } + description { state: "edit" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + 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 1; + rel1 { + relative: 0.0 0.0; + to_x : "right2"; + to_y : "bottom2"; + } + rel2 { + relative: 0.0 0.0; + to_x : "right2"; + to_y : "bottom2"; + } + image { + normal: "00_EditField_clear.png"; + border: 10 10 10 10; + border_scale: 1; + } + } + description { state: "elm.eraser.show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "eraser"; + mouse_events: 1; + ignore_flags: ON_HOLD; + description { state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + rel1 { + relative: 0.0 0.0; + to_x : "eraser_image"; + to_y : "bottom3"; + } + rel2.to: "search_textfield"; + } + 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" ""; + } + } +} + +group { name: "elm/layout/searchbar_cancel/default"; + images { + image: "00_EditField_clear.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; + } + description { state: "edit" 0.0; + inherit: "default" 0.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; + } + } + 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; + } + } + 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; + } + description { state: "no_edit" 0.0; + inherit: "default" 0.0; + visible: 0; + } + description { state: "edit" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + 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 1; + rel1 { + relative: 0.0 0.0; + to_x : "right2"; + to_y : "bottom2"; + } + rel2 { + relative: 0.0 0.0; + to_x : "right2"; + to_y : "bottom2"; + } + image { + normal: "00_EditField_clear.png"; + border: 10 10 10 10; + border_scale: 1; + } + } + description { state: "elm.eraser.show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "eraser"; + mouse_events: 1; + ignore_flags: ON_HOLD; + description { state: "default" 0.0; + visible: 0; + color: 0 0 0 0; + rel1 { + relative: 0.0 0.0; + to_x : "eraser_image"; + to_y : "bottom3"; + } + rel2.to: "search_textfield"; + } + 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" ""; + } + } +} + -- 2.7.4