[ctxpopup] opensource merge - show,hide effect
authorShinwoo Kim <cinoo.kim@samsung.com>
Mon, 12 Mar 2012 04:29:43 +0000 (13:29 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 12 Mar 2012 04:29:43 +0000 (13:29 +0900)
themes/widgets/ctxpopup.edc

index cf06c3d..33b698c 100644 (file)
                                type: IMAGE;
                                scale: 1;
                                mouse_events: 0;
+                               clip_to: "ctxpopup_clip";
                                description {
                                        state: "default" 0.0;
                                        rel1 {
                                type: RECT;
                                mouse_events: 0;
                                scale: 1;
+                               clip_to: "ctxpopup_clip";
                                description { state: "default" 0.0;
                                        visible: 0;
                                        min: 40 0;
                                type: RECT;
                                mouse_events: 0;
                                scale: 1;
+                               clip_to: "ctxpopup_clip";
                                description { state: "default" 0.0;
                                        visible: 0;
                                        min: 40 0;
                                type: RECT;
                                mouse_events: 0;
                                scale: 1;
+                               clip_to: "ctxpopup_clip";
                                description { state: "default" 0.0;
                                        visible: 0;
                                        min: 0 40;
                                type: RECT;
                                mouse_events: 0;
                                scale: 1;
+                               clip_to: "ctxpopup_clip";
                                description { state: "default" 0.0;
                                        visible: 0;
                                        min: 0 40;
                                type: SWALLOW;
                                mouse_events: 0;
                                scale: 1;
+                               clip_to: "ctxpopup_clip";
                                dragable {
                                        x: 1 1 0;
                                        y: 1 1 0;
                                type: SWALLOW;
                                mouse_events: 0;
                                scale: 1;
+                               clip_to: "ctxpopup_clip";
                                dragable {
                                        x: 1 1 0;
                                        y: 1 1 0;
                                type: SWALLOW;
                                mouse_events: 0;
                                scale: 1;
+                               clip_to: "ctxpopup_clip";
                                dragable {
                                        x: 1 1 0;
                                        y: 1 1 0;
                                type: SWALLOW;
                                mouse_events: 0;
                                scale: 1;
+                               clip_to: "ctxpopup_clip";
                                dragable {
                                        x: 1 1 0;
                                        y: 1 1 0;
                                type: IMAGE;
                                scale: 1;
                                mouse_events: 0;
+                               clip_to: "ctxpopup_clip";
                                description {
                                        state: "default" 0.0;
                                        rel1 {to:"ctxpopup_frame_left_top";}
                        part {
                                name: "elm.swallow.content";
                                type: SWALLOW;
+                               clip_to: "ctxpopup_clip";
                                description {
                                        state: "default" 0.0;
                                        align: 0 0;
                                        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" "";
+                       }
                }
        }