From 5613bc985254697bb11582e23f73087a3b53ce8f Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Wed, 22 Feb 2012 20:12:23 +0900 Subject: [PATCH] [*][removing editfield] add a layout for supporting editfield similar environment --- themes/widgets/layout.edc | 629 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 629 insertions(+) diff --git a/themes/widgets/layout.edc b/themes/widgets/layout.edc index fdb0d90..03edb6b 100644 --- a/themes/widgets/layout.edc +++ b/themes/widgets/layout.edc @@ -560,6 +560,635 @@ } } +group { name: "elm/layout/editfield/default"; + images { + image: "00_EditField_clear.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; + } + 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_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: "bottom3"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM3_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; + } + } + 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_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_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"; + } + } + 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"; + } + } +} + +group { name: "elm/layout/editfield/title"; + images { + image: "00_EditField_clear.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_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; + } + 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_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: "bottom3"; + type: RECT; + scale: 1; + ignore_flags: ON_HOLD; + description { + state: "default" 0.0; + visible: 0; + min: 0 EDITFIELD_DEFAULT_BOTTOM3_MULTI_INC; + fixed: 0 1; + rel1.relative: 0.0 1.0; + align: 0 1; + } + } + 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; + } + } + } + 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_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_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"; + } + } + 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"; + } + } +} + group { name: "elm/layout/searchbar/default"; images { image: "00_EditField_clear.png" COMP; -- 2.7.4