[popup] modified block event part to pass events to below window to launch quick...
authorAmit Kamboj <amit.kamboj@samsung.com>
Mon, 13 May 2013 11:08:49 +0000 (16:38 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 11:24:45 +0000 (20:24 +0900)
Change-Id: I4360692c45615a0cd95758952b4495ffd8705863

themes/widgets/popup.edc

index 03d4acf..d8787c2 100644 (file)
@@ -221,6 +221,7 @@ group { name: "elm/notify/block_events/popup";
       part { name: "block_events";
          type: IMAGE;
          scale: 1;
+         repeat_events: 1;
          description { state: "default" 0.0;
             image.normal: "00_popup_dim_lighting.png";
             fill.smooth: 0;
@@ -232,10 +233,34 @@ group { name: "elm/notify/block_events/popup";
             inherit: "default" 0.0;
          }
       }
+      part {name: "popup_indicator";
+         type: RECT;
+         scale: 1;
+         repeat_events: 1;
+         description {  state: "default" 0.0;
+            fixed: 0 1;
+            align: 0.5 0.0;
+            min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+            rel2.relative: 1.0 0.0;
+            color: POPUP_DIM_BG_DEFAULT_COLOR_INC;
+         }
+         description { state: "show" 0.0;
+            inherit: "default" 0.0;
+            color: POPUP_DIM_BG_COLOR_INC;
+         }
+         description { state: "clicked" 0.0;
+            inherit: "default" 0.0;
+            color: POPUP_DIM_BG_COLOR_INC;
+         }
+      }
       part { name: "block_events_color";
          type: RECT;
          scale: 1;
          description { state: "default" 0.0;
+            rel1 {
+               relative: 0.0 1.0;
+               to: "popup_indicator";
+            }
             color: POPUP_DIM_BG_DEFAULT_COLOR_INC;
          }
          description { state: "show" 0.0;
@@ -249,12 +274,13 @@ group { name: "elm/notify/block_events/popup";
       }
    }
    programs {
-       program { name: "show";
-           signal: "elm,action,show";
-           source: "elm";
-           action: STATE_SET "default" 0.0;
-           target: "block_events";
-           target: "block_events_color";
+      program { name: "show";
+          signal: "elm,action,show";
+          source: "elm";
+          action: STATE_SET "default" 0.0;
+          target: "block_events";
+          target: "block_events_color";
+          target: "popup_indicator";
        }
       program { name: "show1";
          signal: "show";
@@ -262,6 +288,7 @@ group { name: "elm/notify/block_events/popup";
          transition: SIN_FAC 0.33 0.5;
          target: "block_events";
          target: "block_events_color";
+         target: "popup_indicator";
       }
       program { name: "block_clicked";
          signal: "mouse,clicked,1";
@@ -269,11 +296,18 @@ group { name: "elm/notify/block_events/popup";
          action: SIGNAL_EMIT "elm,action,click" "elm";
          after: "deeper_block_color";
       }
+      program { name: "indicator_clicked";
+         signal: "mouse,clicked,1";
+         source: "popup_indicator";
+         action: SIGNAL_EMIT "elm,action,click" "elm";
+         after: "deeper_block_color";
+      }
       program {
          name: "deeper_block_color";
          action: STATE_SET "clicked" 0.0;
          target: "block_events";
-         source: "block_events_color";
+         target: "block_events_color";
+         target: "popup_indicator";
          transition: LINEAR 0.2;
          after: "default_block_color";
       }
@@ -282,6 +316,7 @@ group { name: "elm/notify/block_events/popup";
          action: STATE_SET "show" 0.0;
          target: "block_events";
          target: "block_events_color";
+         target: "popup_indicator";
          transition: LINEAR 0.2;
       }
    }
@@ -298,12 +333,33 @@ group { name: "elm/notify/block_events/transparent";
    alias: "elm/notify/block_events/volumebarstyle_text_transparent";
    alias: "elm/notify/block_events/content_expand_transparent";
    parts {
+      part {name: "popup_indicator";
+         type: RECT;
+         scale: 1;
+         repeat_events: 1;
+         description {  state: "default" 0.0;
+            fixed: 0 1;
+            align: 0.5 0.0;
+            min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+            rel2.relative: 1.0 0.0;
+            color: POPUP_DIM_BG_TRANS_COLOR_INC;
+         }
+         description { state: "clicked" 0.0;
+            inherit: "default" 0.0;
+            color: POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC;
+         }
+      }
       part { name: "block_events";
          type: RECT;
          description { state: "default" 0.0;
+            rel1 {
+               relative: 0.0 1.0;
+               to: "popup_indicator";
+            }
             color: POPUP_DIM_BG_TRANS_COLOR_INC;
          }
          description { state: "clicked" 0.0;
+            inherit: "default" 0.0;
             color: POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC;
          }
       }
@@ -315,10 +371,17 @@ group { name: "elm/notify/block_events/transparent";
          action: SIGNAL_EMIT "elm,action,click" "elm";
          after: "deeper_block_color";
       }
+      program { name: "indicator_clicked";
+         signal: "mouse,clicked,1";
+         source: "popup_indicator";
+         action: SIGNAL_EMIT "elm,action,click" "elm";
+         after: "deeper_block_color";
+      }
       program {
          name: "deeper_block_color";
          action: STATE_SET "clicked" 0.0;
          target: "block_events";
+         target: "popup_indicator";
          transition: LINEAR 0.2;
          after: "default_block_color";
       }
@@ -326,6 +389,7 @@ group { name: "elm/notify/block_events/transparent";
          name: "default_block_color";
          action: STATE_SET "default" 0.0;
          target: "block_events";
+         target: "popup_indicator";
          transition: LINEAR 0.2;
       }
    }
@@ -334,12 +398,33 @@ group { name: "elm/notify/block_events/transparent";
 group { name: "elm/notify/block_events/dimrect";
    inherit: "elm/notify/block_events/transparent";
    parts {
+      part {name: "popup_indicator";
+         type: RECT;
+         scale: 1;
+         repeat_events: 1;
+         description {  state: "default" 0.0;
+            fixed: 0 1;
+            align: 0.5 0.0;
+            min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+            rel2.relative: 1.0 0.0;
+            color: POPUP_DIM_BG_COLOR_INC;
+         }
+         description { state: "clicked" 0.0;
+            inherit: "default" 0.0;
+            color: POPUP_DIM_BG_COLOR_INC;
+         }
+      }
       part { name: "block_events";
          type: RECT;
          description { state: "default" 0.0;
+            rel1 {
+               relative: 0.0 1.0;
+               to: "popup_indicator";
+            }
             color: POPUP_DIM_BG_COLOR_INC;
          }
          description { state: "clicked" 0.0;
+            inherit: "default" 0.0;
             color: POPUP_DIM_BG_COLOR_INC;
          }
       }