hermet pushed a commit to branch master.

commit 4fba9c657394b30491544e7921cfcec45a8ed6d1
Author: ChunEon Park <[email protected]>
Date:   Mon Jul 22 20:40:13 2013 +0900

    theme/dark - +ctxpopup
---
 edje/dark.edc                     |   2 +-
 edje/edc/elm/ctxpopup.edc         | 446 ++++++++++++++++++++++++++++++++++++++
 edje/img/ctxpopup_arrow_down.png  | Bin 0 -> 683 bytes
 edje/img/ctxpopup_arrow_left.png  | Bin 0 -> 704 bytes
 edje/img/ctxpopup_arrow_right.png | Bin 0 -> 803 bytes
 edje/img/ctxpopup_arrow_up.png    | Bin 0 -> 581 bytes
 6 files changed, 447 insertions(+), 1 deletion(-)

diff --git a/edje/dark.edc b/edje/dark.edc
index 25ae9c2..d681461 100644
--- a/edje/dark.edc
+++ b/edje/dark.edc
@@ -35,7 +35,7 @@ collections {
 //#include "edc/elm/inwin.edc"
 #include "edc/elm/slideshow.edc"
 #include "edc/elm/diskselector.edc"
-//#include "edc/elm/ctxpopup.edc"
+#include "edc/elm/ctxpopup.edc"
 //#include "edc/elm/multibuttonentry.edc"
 //#include "edc/elm/daysel.edc"
 //#include "edc/elm/actionslider.edc"
diff --git a/edje/edc/elm/ctxpopup.edc b/edje/edc/elm/ctxpopup.edc
new file mode 100644
index 0000000..026e1ed
--- /dev/null
+++ b/edje/edc/elm/ctxpopup.edc
@@ -0,0 +1,446 @@
+///////////////////////////////////////////////////////////////////////////////
+group { name: "elm/ctxpopup/bg/noblock";
+   parts {
+      part { name: "ctxpopup_bg";
+         type: RECT;
+         mouse_events: 0;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+         }
+      }
+   }
+}
+group { name: "elm/ctxpopup/bg/default";
+   parts {
+      part { name: "ctxpopup_bg";
+         type: RECT;
+         mouse_events: 1;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            color: 0 0 0 100;
+         }
+      }
+   }
+   programs {
+      program { name: "clicked_event";
+         signal: "mouse,clicked,1";
+         source: "ctxpopup_bg";
+         action: SIGNAL_EMIT "elm,action,click" "";
+      }
+      program { name: "show";
+         signal: "elm,state,show";
+         source: "elm";
+         action: STATE_SET "visible" 0.0;
+         target: "ctxpopup_bg";
+         transition: LINEAR 0.25;
+      }
+      program { name: "hide";
+         signal: "elm,state,hide";
+         source: "elm";
+         action: STATE_SET "default" 0.0;
+         target: "ctxpopup_bg";
+         transition: LINEAR 0.25;
+      }
+   }
+}
+///////////////////////////////////////////////////////////////////////////////
+group { name: "elm/ctxpopup/base/default";
+   images {
+      image: "vgrad_med_darker.png" COMP;
+      image: "led_square_shading.png" COMP;
+      image: "led_square_shadow.png" COMP;
+   }
+   parts {
+      part { name: "arrow_area_left";
+         type: RECT;
+         mouse_events: 0;
+         clip_to: "ctxpopup_clip";
+         description { state: "default" 0.0;
+            visible: 0;
+            min: 20 0;
+            fixed: 1 0;
+            align: 1 0.5;
+            rel1 {
+               to_y: "base";
+            }
+            rel2 {
+               relative:0 1;
+               to:"base";
+            }
+         }
+      }
+      part { name: "arrow_area_right";
+         type: RECT;
+         mouse_events: 0;
+         clip_to: "ctxpopup_clip";
+         description { state: "default" 0.0;
+            visible: 0;
+            min: 20 0;
+            fixed: 1 1;
+            align: 0 0.5;
+            rel1 {
+               relative: 1 0;
+               to:"base";
+            }
+            rel2 {
+               to_y: "base";
+            }
+         }
+      }
+      part { name: "arrow_area_up";
+         type: RECT;
+         mouse_events: 0;
+         clip_to: "ctxpopup_clip";
+         description { state: "default" 0.0;
+            visible: 0;
+            min: 0 20;
+            fixed: 1 1;
+            align: 0.5 1;
+            rel1 {
+               to_x: "base";
+            }
+            rel2 {
+               relative: 1 0;
+               to:"base";
+            }
+         }
+      }
+      part { name: "arrow_area_down";
+         type: RECT;
+         mouse_events: 0;
+         clip_to: "ctxpopup_clip";
+         description { state: "default" 0.0;
+            visible: 0;
+            min: 0 20;
+            fixed: 1 1;
+            align: 0.5 0;
+            rel1 {
+               relative: 0 1;
+               to:"base";
+            }
+            rel2 {
+               to_x: "base";
+            }
+         }
+      }
+      part { name: "shadow";
+         scale: 1;
+         clip_to: "ctxpopup_clip";
+         description { state: "default" 0.0;
+            rel1.offset: 0 0;
+            rel2.offset: 7 7;
+            image { normal: "led_square_shadow.png";
+               border: 7 7 7 7;
+            }
+         }
+      }
+      part { name: "elm.swallow.arrow_up";
+         type: SWALLOW;
+         mouse_events: 0;
+         scale: 1;
+         clip_to: "ctxpopup_clip";
+         dragable {
+            x: 1 1 0;
+            y: 1 1 0;
+            confine: "arrow_area_up";
+         }
+         description { state: "default" 0.0;
+            min: 36 20;
+            fixed: 1 1;
+            visible: 1;
+         }
+      }
+      part { name: "elm.swallow.arrow_down";
+         type: SWALLOW;
+         mouse_events: 0;
+         scale: 1;
+         clip_to: "ctxpopup_clip";
+         dragable {
+            x: 1 1 0;
+            y: 1 1 0;
+            confine: "arrow_area_down";
+         }
+         description { state: "default" 0.0;
+            min: 36 20;
+            fixed: 1 1;
+            visible: 1;
+         }
+      }
+      part { name: "elm.swallow.arrow_left";
+         type: SWALLOW;
+         mouse_events: 0;
+         scale: 1;
+         clip_to: "ctxpopup_clip";
+         dragable {
+            x: 1 1 0;
+            y: 1 1 0;
+            confine: "arrow_area_left";
+         }
+         description { state: "default" 0.0;
+            min: 20 36;
+            fixed: 1 1;
+            visible: 1;
+         }
+      }
+      part { name: "elm.swallow.arrow_right";
+         type: SWALLOW;
+         mouse_events: 0;
+         scale: 1;
+         clip_to: "ctxpopup_clip";
+         dragable {
+            x: 1 1 0;
+            y: 1 1 0;
+            confine: "arrow_area_right";
+         }
+         description { state: "default" 0.0;
+            min: 20 36;
+            fixed: 1 1;
+            visible: 1;
+         }
+      }
+      part { name: "base";
+         scale: 1;
+         clip_to: "ctxpopup_clip";
+         description { state: "default" 0.0;
+            image { normal: "vgrad_med_darker.png";
+               border: 7 7 7 7;
+            }
+         }
+      }
+      part { name: "over";
+         scale: 1;
+         clip_to: "ctxpopup_clip";
+         description { state: "default" 0.0;
+            rel1.to: "base";
+            rel2.to: "base";
+            rel1.offset: -4 -4;
+            rel2.offset: 2 2;
+            image { normal: "led_square_shading.png";
+               border: 7 7 7 7;
+            }
+         }
+      }
+      part { name: "elm.swallow.content";
+         type: SWALLOW;
+         clip_to: "ctxpopup_clip";
+         description { state: "default" 0.0;
+            rel1 { to:"base"; offset: 4 4; }
+            rel2 { to:"base"; offset: -5 -5; }
+         }
+      }
+      part { name: "event_blocker";
+         type: RECT;
+         description { state: "default" 0.0;
+            color: 0 0 0 0;
+            visible: 1;
+         }
+         description { state: "visible" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
+      }
+      part { name: "ctxpopup_clip";
+         type: RECT;
+         description { state: "default" 0.0;
+            rel1 { to:"base"; relative: 0 0; }
+            rel2 { to:"base"; relative: 0 1; }
+         }
+         description { state: "show_up" 0.0;
+            rel1 { to:"arrow_area_down"; relative: 0 1; }
+            rel2 { to:"arrow_area_down"; relative: 1 1; }
+         }
+         description { state: "show_left" 0.0;
+            rel1 { to:"arrow_area_right"; relative: 1 0; }
+            rel2 { to:"arrow_area_right"; relative: 1 1; }
+         }
+         description { state: "show_right" 0.0;
+            rel1 { to:"arrow_area_left"; relative: 0 0; }
+            rel2 { to:"arrow_area_left"; relative: 0 1; }
+         }
+         description { state: "show_down" 0.0;
+            rel1 { to:"arrow_area_up"; relative: 0 0; }
+            rel2 { to:"arrow_area_up"; relative: 1 0; }
+         }
+         description { state: "hide_up" 0.0;
+            rel1 { to:"arrow_area_down"; relative: 0 1; }
+            rel2 { to:"arrow_area_down"; relative: 1 1; }
+         }
+         description { state: "hide_left" 0.0;
+            rel1 { to:"arrow_area_right"; relative: 1 0; }
+            rel2 { to:"arrow_area_right"; relative: 1 1; }
+         }
+         description { state: "hide_right" 0.0;
+            rel1 { to:"arrow_area_left"; relative: 0 0; }
+            rel2 { to:"arrow_area_left"; relative: 0 1; }
+         }
+         description { state: "hide_down" 0.0;
+            rel1 { to:"arrow_area_up"; relative: 0 0; }
+            rel2 { to:"arrow_area_up"; relative: 1 0; }
+         }
+         description { state: "visible" 0.0;
+            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;
+         target: "ctxpopup_clip";
+         target: "event_blocker";
+         transition: LINEAR 0.25;
+      }
+      program { name: "hide";
+         signal: "elm,state,hide";
+         source: "elm";
+         action: STATE_SET "default" 0.0;
+         target: "event_blocker";
+      }
+      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" "";
+      }
+
+   }
+}
+///////////////////////////////////////////////////////////////////////////////
+group { name: "elm/ctxpopup/arrow/default";
+   images {
+      image: "ctxpopup_arrow_left.png" COMP;
+      image: "ctxpopup_arrow_right.png" COMP;
+      image: "ctxpopup_arrow_up.png" COMP;
+      image: "ctxpopup_arrow_down.png" COMP;
+   }
+   parts {
+      part { name: "ctxpopup_arrow";
+         type: IMAGE;
+         scale: 1;
+         description {
+            state: "default" 0.0;
+            min: 36 36;
+            fixed: 1 1;
+            visible: 0;
+            align: 0.5 0.5;
+         }
+         description {
+            state: "left" 0.0;
+            min: 20 36;
+            fixed: 1 1;
+            align: 0.0 0.5;
+            rel1 { offset: 0 4; }
+            image { normal: "ctxpopup_arrow_left.png"; }
+         }
+         description { state: "right" 0.0;
+            min: 20 36;
+            fixed: 1 1;
+            align: 1.0 0.5;
+            rel1 { offset: 4 4; }
+            image { normal: "ctxpopup_arrow_right.png"; }
+         }
+         description { state: "top" 0.0;
+            min: 36 20;
+            fixed: 1 1;
+            align: 0.5 0.0;
+            rel1 { offset: 2 0; }
+            image { normal: "ctxpopup_arrow_up.png"; }
+         }
+         description { state: "bottom" 0.0;
+            min: 36 20;
+            fixed: 1 1;
+            align: 0.5 1.0;
+            rel1 { offset: 2 0; }
+            image { normal: "ctxpopup_arrow_down.png"; }
+         }
+      }
+   }
+   programs {
+      program { name: "enable_left_arrow";
+         signal: "elm,state,left";
+         source: "elm";
+         action: STATE_SET "left" 0.0;
+         target: "ctxpopup_arrow";
+      }
+      program { name: "enable_right_arrow";
+         signal: "elm,state,right";
+         source: "elm";
+         action: STATE_SET "right" 0.0;
+         target: "ctxpopup_arrow";
+      }
+      program { name: "enable_top_arrow";
+         signal: "elm,state,top";
+         source: "elm";
+         action: STATE_SET "top" 0.0;
+         target: "ctxpopup_arrow";
+      }
+      program { name: "enable_bottom_arrow";
+         signal: "elm,state,bottom";
+         source: "elm";
+         action: STATE_SET "bottom" 0.0;
+         target: "ctxpopup_arrow";
+      }
+   }
+}
diff --git a/edje/img/ctxpopup_arrow_down.png b/edje/img/ctxpopup_arrow_down.png
new file mode 100644
index 0000000..c650cf4
Binary files /dev/null and b/edje/img/ctxpopup_arrow_down.png differ
diff --git a/edje/img/ctxpopup_arrow_left.png b/edje/img/ctxpopup_arrow_left.png
new file mode 100644
index 0000000..5a9615f
Binary files /dev/null and b/edje/img/ctxpopup_arrow_left.png differ
diff --git a/edje/img/ctxpopup_arrow_right.png 
b/edje/img/ctxpopup_arrow_right.png
new file mode 100644
index 0000000..f33ee29
Binary files /dev/null and b/edje/img/ctxpopup_arrow_right.png differ
diff --git a/edje/img/ctxpopup_arrow_up.png b/edje/img/ctxpopup_arrow_up.png
new file mode 100644
index 0000000..7f4a279
Binary files /dev/null and b/edje/img/ctxpopup_arrow_up.png differ

-- 

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

Reply via email to