From: Shinwoo Kim Date: Mon, 12 Mar 2012 04:29:43 +0000 (+0900) Subject: [ctxpopup] opensource merge - show,hide effect X-Git-Tag: submit/2.0alpha-wayland/20121130.000903~214^2~3^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c0d8333db65ef043166acd61dbcf551bffc3e48;p=profile%2Fivi%2Fefl-theme-tizen.git [ctxpopup] opensource merge - show,hide effect --- diff --git a/themes/widgets/ctxpopup.edc b/themes/widgets/ctxpopup.edc index cf06c3d..33b698c 100644 --- a/themes/widgets/ctxpopup.edc +++ b/themes/widgets/ctxpopup.edc @@ -627,6 +627,7 @@ type: IMAGE; scale: 1; mouse_events: 0; + clip_to: "ctxpopup_clip"; description { state: "default" 0.0; rel1 { @@ -648,6 +649,7 @@ type: RECT; mouse_events: 0; scale: 1; + clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 40 0; @@ -667,6 +669,7 @@ type: RECT; mouse_events: 0; scale: 1; + clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 40 0; @@ -686,6 +689,7 @@ type: RECT; mouse_events: 0; scale: 1; + clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 0 40; @@ -705,6 +709,7 @@ type: RECT; mouse_events: 0; scale: 1; + clip_to: "ctxpopup_clip"; description { state: "default" 0.0; visible: 0; min: 0 40; @@ -724,6 +729,7 @@ type: SWALLOW; mouse_events: 0; scale: 1; + clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; @@ -740,6 +746,7 @@ type: SWALLOW; mouse_events: 0; scale: 1; + clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; @@ -756,6 +763,7 @@ type: SWALLOW; mouse_events: 0; scale: 1; + clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; @@ -772,6 +780,7 @@ type: SWALLOW; mouse_events: 0; scale: 1; + clip_to: "ctxpopup_clip"; dragable { x: 1 1 0; y: 1 1 0; @@ -880,6 +889,7 @@ type: IMAGE; scale: 1; mouse_events: 0; + clip_to: "ctxpopup_clip"; description { state: "default" 0.0; rel1 {to:"ctxpopup_frame_left_top";} @@ -894,6 +904,7 @@ part { name: "elm.swallow.content"; type: SWALLOW; + clip_to: "ctxpopup_clip"; description { state: "default" 0.0; align: 0 0; @@ -901,6 +912,131 @@ rel2 {to:"ctxpopup_frame_right_bottom"; relative: 0.5 0.5;} } } + part { name: "ctxpopup_clip"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 0; + rel1 { to:"ctxpopup_frame_left_top"; relative: 0.5 0.5; } + rel2 { to:"ctxpopup_frame_right_bottom"; relative: 0.5 0.5; } + } + description { state: "show_up" 0.0; + color: 255 255 255 0; + rel1 { to:"arrow_area_down"; relative: 0 1; } + rel2 { to:"arrow_area_down"; relative: 1 1; } + } + description { state: "show_left" 0.0; + color: 255 255 255 0; + rel1 { to:"arrow_area_right"; relative: 1 0; } + rel2 { to:"arrow_area_right"; relative: 1 1; } + } + description { state: "show_right" 0.0; + color: 255 255 255 0; + rel1 { to:"arrow_area_left"; relative: 0 0; } + rel2 { to:"arrow_area_left"; relative: 0 1; } + } + description { state: "show_down" 0.0; + color: 255 255 255 0; + rel1 { to:"arrow_area_up"; relative: 0 0; } + rel2 { to:"arrow_area_up"; relative: 1 0; } + } + description { state: "hide_up" 0.0; + color: 255 255 255 255; + rel1 { to:"arrow_area_down"; relative: 0 1; } + rel2 { to:"arrow_area_down"; relative: 1 1; } + } + description { state: "hide_left" 0.0; + color: 255 255 255 255; + rel1 { to:"arrow_area_right"; relative: 1 0; } + rel2 { to:"arrow_area_right"; relative: 1 1; } + } + description { state: "hide_right" 0.0; + color: 255 255 255 255; + rel1 { to:"arrow_area_left"; relative: 0 0; } + rel2 { to:"arrow_area_left"; relative: 0 1; } + } + description { state: "hide_down" 0.0; + color: 255 255 255 255; + rel1 { to:"arrow_area_up"; relative: 0 0; } + rel2 { to:"arrow_area_up"; relative: 1 0; } + } + description { state: "visible" 0.0; + color: 255 255 255 255; + rel1 { to_x:"arrow_area_left"; to_y:"arrow_area_up"; } + rel2 { to_x:"arrow_area_right"; to_y:"arrow_area_down"; } + } + } + } + programs { + program { name: "show"; + signal: "elm,state,show"; + source: "elm"; + action: STATE_SET "visible" 0.0; + transition: LINEAR 0.25; + target: "ctxpopup_clip"; + } + program { name: "show_up"; + signal: "elm,state,show,up"; + source: "elm"; + action: STATE_SET "show_up" 0.0; + transition: LINEAR 0.25; + target: "ctxpopup_clip"; + } + program { name: "show_left"; + signal: "elm,state,show,left"; + source: "elm"; + action: STATE_SET "show_left" 0.0; + transition: LINEAR 0.25; + target: "ctxpopup_clip"; + } + program { name: "show_right"; + signal: "elm,state,show,right"; + source: "elm"; + action: STATE_SET "show_right" 0.0; + transition: LINEAR 0.25; + target: "ctxpopup_clip"; + } + program { name: "show_down"; + signal: "elm,state,show,down"; + source: "elm"; + action: STATE_SET "show_down" 0.0; + transition: LINEAR 0.25; + target: "ctxpopup_clip"; + } + program { name: "hide_up"; + signal: "elm,state,hide,up"; + source: "elm"; + action: STATE_SET "hide_up" 0.0; + transition: LINEAR 0.25; + target: "ctxpopup_clip"; + after: "hide_finished"; + } + program { name: "hide_left"; + signal: "elm,state,hide,left"; + source: "elm"; + action: STATE_SET "hide_left" 0.0; + transition: LINEAR 0.25; + target: "ctxpopup_clip"; + after: "hide_finished"; + } + program { name: "hide_right"; + signal: "elm,state,hide,right"; + source: "elm"; + action: STATE_SET "hide_right" 0.0; + transition: LINEAR 0.25; + target: "ctxpopup_clip"; + after: "hide_finished"; + } + program { name: "hide_down"; + signal: "elm,state,hide,down"; + source: "elm"; + action: STATE_SET "hide_down" 0.0; + transition: LINEAR 0.25; + target: "ctxpopup_clip"; + after: "hide_finished"; + } + program { name: "hide_finished"; + action: SIGNAL_EMIT "elm,action,hide,finished" ""; + } } }