group { name: "elm/layout/searchbar/default";
images {
- image: "00_edit_field_clear.png" COMP;
image: "00_search_edit_field_bg.png" COMP;
- image: "00_search_icon.png" COMP;
}
parts {
part { name: "inputfield_base";
rel2 { relative: 0.0 0.0; to: "bottom_right_padding"; }
}
}
- 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;
- clip_to: "image.clipper";
- 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: "image.clipper";
- type: RECT;
- description { state: "default" 0.0;
- color: SEARCHBAR_ICON_COLOR_INC;
- }
- }
part { name: "left_padding_search_textfield";
type: RECT;
scale: 1;
fixed: 1 0;
align: 0.0 0.5;
rel1 {
- relative: 1.0 0.0;
- to_x: "search_icon";
- to_y: "inputfield_rect";
+ relative: 0.0 0.0;
+ to: "inputfield_rect";
}
rel2 {
- relative: 1.0 1.0;
- to_x: "search_icon";
- to_y: "inputfield_rect";
+ relative: 0.0 1.0;
+ to: "inputfield_rect";
}
}
}
}
}
}
- 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;
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: "Tizen:style=Roman";
- size: ENTRY_TEXT_SIZE_INC;
- min: 0 0;
- align: 0.0 0.5;
- text_class: "tizen";
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
part {
name: "elm.swallow.content";
type: SWALLOW;
}
rel2 {
relative : 0.0 0.0;
- to_x: "right1";
+ to_x: "right2";
to_y: "bottom1";
}
align: 0.0 0.5;
}
}
- part { name: "eraser_image";
- scale: 1;
- clip_to: "eraser_image.clipper";
- 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";
- }
- image.normal: "00_edit_field_clear.png";
- }
- description { state: "elm.eraser.show" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "eraser_image.clipper";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- description { state: "elm.eraser.show" 0.0;
- color: EDITFIELD_ERASER_DEFAULT_COLOR_INC;
- }
- description { state: "elm.eraser.pressed" 0.0;
- color: EDITFIELD_ERASER_PRESSED_COLOR_INC;
- }
- }
- 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_image.clipper";
- target: "eraser";
- }
- program {
- name: "eraser_hide";
- signal: "elm,state,eraser,hide";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "eraser_image";
- target: "eraser_image.clipper";
- target: "eraser";
- }
- program {
name: "label_show";
signal: "elm,state,title,show";
source: "elm";
target: "bottom3";
}
program {
- name: "eraser_clicked";
- signal: "mouse,clicked,1";
- source: "eraser";
- action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
- after: "eraser_sound";
- }
- program {
- name: "eraser_sound";
- action: PLAY_SAMPLE "touch_sound" 1.0;
- }
- program {
name: "bg_clicked";
signal: "mouse,clicked,1";
source: "search_textfield";
source: "elm.text";
action: PLAY_SAMPLE "touch_sound" 1.0;
}
- 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.clipper";
- }
- program {
- name: "eraser_unpressed";
- signal: "mouse,up,1";
- source: "eraser";
- action: STATE_SET "elm.eraser.show" 0.0;
- target: "eraser_image.clipper";
- }
}
}
group { name: "elm/layout/searchbar/cancel_button";
images {
- image: "00_edit_field_clear.png" COMP;
image: "00_search_edit_field_bg.png" COMP;
image: "00_search_edit_field_bg_focus.png" COMP;
- image: "00_search_icon.png" COMP;
}
parts {
part { name: "top_padding_rect";
}
}
}
- part { name: "search_icon";
- type: IMAGE;
- scale: 1;
- ignore_flags: ON_HOLD;
- clip_to: "image.clipper";
- 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: "image.clipper";
- type: RECT;
- description { state: "default" 0.0;
- color: SEARCHBAR_ICON_COLOR_INC;
- }
- }
part { name: "left_padding_search_textfield";
type: RECT;
scale: 1;
fixed: 1 0;
align: 0.0 0.5;
rel1 {
- relative: 1.0 0.0;
- to_x: "search_icon";
- to_y: "inputfield_rect";
+ relative: 0.0 0.0;
+ to: "inputfield_rect";
}
rel2 {
- relative: 1.0 1.0;
- to_x: "search_icon";
- to_y: "inputfield_rect";
+ relative: 0.0 1.0;
+ to: "inputfield_rect";
}
}
}
}
}
}
- 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;
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: "Tizen:style=Roman";
- size: ENTRY_TEXT_SIZE_INC;
- min: 0 0;
- align: 0.0 0.5;
- text_class: "tizen";
- }
- }
- description { state: "hidden" 0.0;
- inherit: "default" 0.0;
- visible: 0;
- }
- }
part {
name: "elm.swallow.content";
type: SWALLOW;
}
rel2 {
relative : 0.0 0.0;
- to_x: "right1";
+ to_x: "right2";
to_y: "bottom1";
}
align: 0.0 0.5;
}
}
- part { name: "eraser_image";
- scale: 1;
- clip_to: "eraser_image.clipper";
- 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";
- }
- image.normal: "00_edit_field_clear.png";
- }
- description { state: "elm.eraser.show" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- part { name: "eraser_image.clipper";
- type: RECT;
- description { state: "default" 0.0;
- color: 0 0 0 0;
- }
- description { state: "elm.eraser.show" 0.0;
- color: EDITFIELD_ERASER_DEFAULT_COLOR_INC;
- }
- description { state: "elm.eraser.pressed" 0.0;
- color: EDITFIELD_ERASER_PRESSED_COLOR_INC;
- }
- }
- 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_image.clipper";
- target: "eraser";
- }
- program {
- name: "eraser_hide";
- signal: "elm,state,eraser,hide";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "eraser_image";
- target: "eraser_image.clipper";
- target: "eraser";
- }
- program {
name: "label_show";
signal: "elm,state,title,show";
source: "elm";
target: "bottom2";
target: "bottom3";
}
- program {
- name: "eraser_clicked";
- signal: "mouse,clicked,1";
- source: "eraser";
- action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
- after: "eraser_sound";
- }
- program {
- name: "eraser_sound";
- action: PLAY_SAMPLE "touch_sound" 1.0;
- }
program {
name: "sound_play";
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.clipper";
- }
- program {
- name: "eraser_unpressed";
- signal: "mouse,up,1";
- source: "eraser";
- action: STATE_SET "elm.eraser.show" 0.0;
- target: "eraser_image.clipper";
- }
}
}