diff options
author | JinYong Park <j4939.park@samsung.com> | 2017-03-28 12:32:11 +0900 |
---|---|---|
committer | JinYong Park <j4939.park@samsung.com> | 2017-03-28 12:32:11 +0900 |
commit | 176eb42b19be13273101ea473a23e9dc08721df4 (patch) | |
tree | c6b814b13590cf9f678ca7b5033f77ac3ab78121 | |
parent | 74b74fb01e0f0ff47fd62e386e71e8855d76729b (diff) | |
download | efl-theme-tizen-mobile-176eb42b19be13273101ea473a23e9dc08721df4.tar.gz efl-theme-tizen-mobile-176eb42b19be13273101ea473a23e9dc08721df4.tar.bz2 efl-theme-tizen-mobile-176eb42b19be13273101ea473a23e9dc08721df4.zip |
ctxpopup: add visible signal for show ctxpopup after parent resizing
Change-Id: Id3da2a83ce6e7fe1b5830a56dcd77e66e1afe41a
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
-rw-r--r-- | mobile/widgets/ctxpopup.edc | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/mobile/widgets/ctxpopup.edc b/mobile/widgets/ctxpopup.edc index 26a25bf7..1958a2a7 100644 --- a/mobile/widgets/ctxpopup.edc +++ b/mobile/widgets/ctxpopup.edc @@ -62,6 +62,38 @@ group { "elm/ctxpopup/layout/event/default"; source: "elm"; after: "on_show"; } + + /* Program for visible up */ + program { "visible_up"; + signal: "elm,state,visible,up"; + source: "elm"; + after: "on_visible_up"; + } + /* Program for visible down */ + program { "visible_down"; + signal: "elm,state,visible,down"; + source: "elm"; + after: "on_visible_down"; + } + /* Program for visible left */ + program { "visible_left"; + signal: "elm,state,visible,left"; + source: "elm"; + after: "on_visible_left"; + } + /* Program for visible right */ + program { "visible_right"; + signal: "elm,state,visible,right"; + source: "elm"; + after: "on_visible_right"; + } + /* Program for visible event */ + program { "visible"; + signal: "elm,state,visible,*"; + source: "elm"; + after: "on_visible"; + } + /* Program for hide up */ program { "hide_up"; signal: "elm,state,hide,up"; @@ -128,6 +160,12 @@ group { "elm/ctxpopup/bg/event/default"; source: "elm"; after: "on_show"; } + /* Program for visible event */ + program { "visible"; + signal: "elm,state,visible"; + source: "elm"; + after: "on_visible"; + } /* Program for hide event */ program { "hide"; signal: "elm,state,hide"; @@ -281,6 +319,23 @@ group { "elm/ctxpopup/layout/template"; /* Program for show event */ program { "on_show"; } + + /* Program for visible up */ + program { "on_visible_up"; + } + /* Program for visible down */ + program { "on_visible_down"; + } + /* Program for visible left */ + program { "on_visible_left"; + } + /* Program for visible right */ + program { "on_visible_right"; + } + /* Program for visible event */ + program { "on_visible"; + } + /* Program for hide up */ program { "on_hide_up"; } @@ -329,6 +384,9 @@ group { "elm/ctxpopup/bg/template" /* Program for show event */ program { "on_show"; } + /* Program for visible event */ + program { "on_visible"; + } /* Program for hide event */ program { "on_hide"; } @@ -713,6 +771,37 @@ group { "elm/ctxpopup/layout/default"; transition: GLIDE_EASE_OUT(0.1); target: "swallow"; } + + program { "on_visible_up"; + script { + set_state(PART:"swallow", "show_up_visible", 0.0); + set_state(PART:"padding_top", "show_up", 0.0); + } + } + program { "on_visible_down"; + script { + set_state(PART:"swallow", "show_down_visible", 0.0); + set_state(PART:"padding_bottom", "show_down", 0.0); + } + } + program { "on_visible_left"; + script { + set_state(PART:"swallow", "show_left_visible", 0.0); + set_state(PART:"padding_left", "show_left", 0.0); + } + } + program { "on_visible_right"; + script { + set_state(PART:"swallow", "show_right_visible", 0.0); + set_state(PART:"padding_right", "show_right", 0.0); + } + } + program { "on_visible"; + action: STATE_SET "visible"; + target: "layout_clip"; + target: "event_blocker"; + } + program { "on_hide_up"; action: STATE_SET "show_up"; target: "swallow"; @@ -863,6 +952,19 @@ group { "elm/ctxpopup/layout/more/default"; action: STATE_SET "visible"; target: "event_blocker"; } + + program { "on_visible_up"; + script { + set_state(PART:"swallow", "visible", 0.0); + set_state(PART:"clipper", "visible", 0.0); + set_state(PART:"event_blocker", "default", 0.0); + } + } + program { "on_visible"; + action: STATE_SET "visible"; + target: "event_blocker"; + } + program { "on_hide_up"; action: STATE_SET "show_up"; transition: GLIDE_EASE_OUT(0.25); @@ -895,6 +997,12 @@ group { "elm/ctxpopup/layout/more/default"; } program { "on_show_right"; } + program { "on_visible_down"; + } + program { "on_visible_left"; + } + program { "on_visible_right"; + } program { "on_hide_down"; } program { "on_hide_left"; @@ -1038,6 +1146,25 @@ group { "elm/ctxpopup/layout/dropdown/list"; transition: SIN_FAC 0.5 1.7; target: "padding_bottom"; } + + program { "on_visible_up"; + script { + set_state(PART:"swallow", "show_up", 0.0); + set_state(PART:"padding_top", "visible", 0.0); + } + } + program { "on_visible_down"; + script { + set_state(PART:"swallow", "show_down", 0.0); + set_state(PART:"padding_bottom", "visible", 0.0); + } + } + program { "on_visible"; + action: STATE_SET "visible"; + target: "layout_clip"; + target: "event_blocker"; + } + program { "on_hide_up"; action: STATE_SET "show_up"; target: "swallow"; @@ -1085,6 +1212,10 @@ group { "elm/ctxpopup/layout/dropdown/list"; } program { "on_show_right"; } + program { "on_visible_left"; + } + program { "on_visible_right"; + } program { "on_hide_left"; } program { "on_hide_right"; @@ -1148,6 +1279,11 @@ group { "elm/ctxpopup/bg/default"; target: "bg"; target: "event"; } + program { "on_visible"; + action: STATE_SET "visible"; + target: "bg"; + target: "event"; + } program { "on_hide"; action: STATE_SET "default"; target: "bg"; @@ -1200,6 +1336,11 @@ group { "elm/ctxpopup/bg/copypaste"; target: "bg"; target: "event"; } + program { "on_visible"; + action: STATE_SET "visible"; + target: "bg"; + target: "event"; + } program { "on_hide"; action: STATE_SET "default"; target: "bg"; @@ -1259,6 +1400,11 @@ group { "elm/ctxpopup/bg/more/default"; target: "bg"; target: "event"; } + program { "on_visible"; + action: STATE_SET "visible"; + target: "bg"; + target: "event"; + } program { "on_hide"; action: STATE_SET "default"; transition: GLIDE_EASE_OUT(0.25); |