-/*
- * 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.
- *
- */
-
-group {
- name: "elm/searchbar/base/default";
- images {
- 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{
- visible: 1;
- state: "default" 0.0;
- min: 0 SEARCHBAR_TOP_PADDING_INC;
- fixed: 0 1;
- align: 0 0;
- color: SEARCHBAR_BACKGROUND_COLOR_INC;
- rel2.relative: 1.0 0.0;
- }
- description{
- state: "default_without_bd" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- visible: 0;
- }
- }
- part { name: "bottom_padding_rect";
- type: RECT;
- scale: 1;
- description{
- visible: 1;
- state: "default" 0.0;
- min: 0 SEARCHBAR_BOTTOM_PADDING_INC;
- fixed: 0 1;
- align: 0 1;
- color: SEARCHBAR_BACKGROUND_COLOR_INC;
- rel1.relative: 0.0 1.0;
- }
- description{
- state: "default_without_bd" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- visible: 0;
- }
- }
- part { name: "base_bg";
- type: RECT;
- scale: 1;
- description {
- visible:1;
- min: 0 SEARCHBAR_HEIGHT_INC;
- align: 0 0.5;
- fixed: 0 1;
- state: "default" 0.0;
- rel1 {
- relative: 0.0 10/12;
- to: "top_padding_rect";
- }
- rel2 {
- relative: 1.0 1/6;
- to: "bottom_padding_rect";
- }
- color: 0 0 0 0;
- }
- }
- part { name: "left_padding_rect";
- type: RECT;
- scale: 1;
- description{
- 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;
- }
- description{
- state: "default_without_bd" 0.0;
- inherit: "default" 0.0;
- min: 0 0;
- visible: 0;
- }
- }
- part { name: "right_padding_rect";
- type: RECT;
- scale: 1;
- description{
- 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;
- }
- description{
- state: "default_without_bd" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "right_field_and_btn_padding_rect";
- type: RECT;
- scale: 1;
- description{
- 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;
- }
- description{
- state: "default_without_bd" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "right_btn_padding_rect";
- type: RECT;
- scale: 1;
- description{
- 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;
- }
- description{
- state: "default_without_bd" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
- part { name: "inputfield_rect";
- type: IMAGE;
- scale: 1;
- description {
- visible:1;
- 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;
- rel1 {
- relative: 1.0 0.0;
- to_x: "left_padding_rect";
- to_y: "base_bg";
- }
- rel2 {
- relative: 0.0 1.0;
- to_x: "right_field_and_btn_padding_rect";
- to_y: "base_bg";
- }
- }
- }
- part { name: "left_icon_padding_rect";
- type: RECT;
- scale: 1;
- description{
- 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 {
- visible:1;
- min: SEARCHBAR_ICON_MIN_W_INC SEARCHBAR_ICON_MIN_H_INC;
- fixed: 1 1;
- align: 0 0.5;
- state: "default" 0.0;
- rel1 {
- relative: 1.0 0.5;
- to_x: "left_icon_padding_rect";
- }
- rel2 {
- relative: 1.0 0.5;
- to_x: "left_icon_padding_rect";
- }
- image {
- normal: "00_search_icon.png";
- }
- }
- }
- part { name: "left_padding_search_textfield";
- type: RECT;
- scale: 1;
- description{
- 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{
- 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: SWALLOW;
- mouse_events: 1;
- scale: 1;
- description {
- visible:1;
- state: "default" 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";
- };
- }
- description {
- visible:1;
- state: "in" 0.0;
- min: 0 SEARCHBAR_SEARCH_TEXTFIELD_H_INC;
- 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";
- };
- }
- description {
- state: "down" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "button_cancel";
- type: SWALLOW;
- mouse_events: 1;
- scale: 1;
- description {
- 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 {
- visible:1;
- state: "in" 0.0;
- 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";
- };
- }
- }
- }
- programs {
- program { name: "cancel_in";
- signal: "CANCELIN";
- source: "PROG";
- action: STATE_SET "in" 0.0;
- target: "button_cancel";
- target: "inputfield_rect";
- target: "search_textfield";
- transition: ACCELERATE 0.4;
- }
- program { name: "cancel_out";
- signal: "CANCELOUT";
- source: "PROG";
- action: STATE_SET "default" 0.0;
- target: "button_cancel";
- target: "inputfield_rect";
- target: "search_textfield";
- transition: ACCELERATE 0.4;
- }
- program { name: "cancel_show";
- signal: "CANCELSHOW";
- source: "PROG";
- action: STATE_SET "in" 0.0;
- target: "button_cancel";
- target: "inputfield_rect";
- target: "search_textfield";
- }
- program { name: "cancel_hide";
- signal: "CANCELHIDE";
- source: "PROG";
- action: STATE_SET "default" 0.0;
- target: "button_cancel";
- target: "inputfield_rect";
- target: "search_textfield";
- }
- program { name: "bd_show";
- signal: "BDSHOW";
- source: "PROG";
- action: STATE_SET "default" 0.0;
- target: "top_padding_rect";
- target: "bottom_padding_rect";
- target: "right_padding_rect";
- target: "left_padding_rect";
- target: "right_field_and_btn_padding_rect";
- target: "right_btn_padding_rect";
- }
- program { name: "bd_hide";
- signal: "BDHIDE";
- source: "PROG";
- action: STATE_SET "default_without_bd" 0.0;
- target: "top_padding_rect";
- target: "bottom_padding_rect";
- target: "right_padding_rect";
- target: "left_padding_rect";
- target: "right_field_and_btn_padding_rect";
- target: "right_btn_padding_rect";
- }
- program {
- name: "mouse_up";
- signal: "mouse,up,1";
- source: "search_icon";
- }
- program {
- name: "mouse_click";
- signal: "mouse,clicked,1";
- source: "search_icon";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
-
- } // end program
-} // end group