Tickernoti "clicked" signal emission on clicking the area other than the button
authorRajeev Ranjan <rajeev.r@samsung.com>
Fri, 9 Sep 2011 03:48:41 +0000 (12:48 +0900)
committerRajeev Ranjan <rajeev.r@samsung.com>
Fri, 9 Sep 2011 03:48:41 +0000 (12:48 +0900)
Change-Id: I35620efaf430820b95009c47fc6ffec5beeb667a

themes/groups/tickernoti.edc

index d98f370..ce702e1 100644 (file)
@@ -31,7 +31,6 @@
       }
       parts {
          part { name: "base";
-            mouse_events: 0;
             type: RECT;
             scale: 1;
             description { state: "default" 0.0;
             name: "icon";
             type: SWALLOW;
             scale: 1;
-            mouse_events: 0;
+            mouse_events: 1;
             description {
                state: "default" 0.0;
                fixed: 1 0;
                }
             }
          }
+         part {
+            name: "event";
+            mouse_events: 1;
+            repeat_events: 1;
+            description {state: "default" 0.0;
+               color: 0 0 0 0;
+               rel1 {
+                  to: "bg";
+               }
+               rel2 {
+                  to: "bg";
+               }
+            }
+         }
       }
       programs {
          program {
          }
          program {
             name: "other_click";
-            signal: "mouse,down,1";
+            signal: "mouse,clicked,1";
             source: "bg";
+            action: SIGNAL_EMIT "clicked" "";
+            after: "effect_hide";
+         }
+         program {
+            name: "effect_hide";
             action: STATE_SET "default" "0.0";
             transition: DECEL 0.4;
             target: "bg";
       }
       parts {
          part {
-            name: "bg";
-            mouse_events: 0;
+            name: "base";
             type: RECT;
             scale: 1;
             description { state: "default" 0.0;
             }
          }
          part {
-            name: "bg_2line";
+            name: "bg";
             mouse_events: 1;
             type: RECT;
-            clip_to: "bg";
+            clip_to: "base";
             scale: 1;
             description { state: "default" 0.0;
                visible: 1;
                align: 0.5 0.0;
                rel1 {
                   relative: 0.0 -1.0;
-                  to: "bg";
+                  to: "base";
                }
                rel2 {
                   relative: 1.0 0.0;
-                  to: "bg";
+                  to: "base";
                }
                color: 0 0 0 0;
             }
                inherit: "default" 0.0;
                rel1 {
                   relative: 0.0 0.0;
-                  to: "bg";
+                  to: "base";
                }
                rel2 {
                   relative: 1.0 1.0;
-                  to: "bg";
+                  to: "base";
                }
             }
          }
          part {
-            name: "bg_2line_img";
+            name: "bg_img";
             mouse_events: 0;
             type: IMAGE;
             scale: 1;
                visible: 1;
                rel1 {
                   relative: 0.0 0.0;
-                  to: "bg_2line";
+                  to: "bg";
                }
                rel2 {
                   relative: 1.0 1.0;
-                  to: "bg_2line";
+                  to: "bg";
                }
                image.normal: "00_winset_notification_bg.png";
             }
                align: 0.0 0.0;
                rel1 {
                   relative: 0.0 0.0;
-                  to: "bg_2line";
+                  to: "bg";
                }
                rel2 {
                   relative: 0.0 0.0;
-                  to: "bg_2line";
+                  to: "bg";
                }
             }
          }
                align: 1.0 1.0;
                rel1 {
                   relative: 1.0 1.0;
-                  to: "bg_2line";
+                  to: "bg";
                }
                rel2 {
                   relative: 1.0 1.0;
-                  to: "bg_2line";
+                  to: "bg";
                }
             }
          }
                }
             }
          }
+         /* Text */
+         part {
+            name: "text_rect";
+            type: RECT;
+            scale: 1;
+            mouse_events: 0;
+            description {
+               state: "default" 0.0;
+               visible: 0;
+               align: 0.0 0.5;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to: "padding_icon_right";
+               }
+               rel2 {
+                  relative: 0.0 0.0;
+                  to_x: "padding_button_left";
+                  to_y: "padding_right_bottom";
+               }
+            }
+         }
+         part {
+            name: "elm.text";
+            type: TEXTBLOCK;
+            scale: 1;
+            mouse_events: 0;
+            description {
+               state: "default" 0.0;
+               rel1 {
+                  relative: 0.0 0.0;
+                  to: "text_rect";
+               }
+               rel2 {
+                  relative: 1.0 1.0;
+                  to: "text_rect";
+               }
+               align: 0.0 0.5;
+               text {
+                  style: "style_text";
+                  max: 0 1;
+               }
+            }
+         }
+         part {
+            name: "event";
+            mouse_events: 1;
+            repeat_events: 1;
+            description {state: "default" 0.0;
+               color: 0 0 0 0;
+               rel1 {
+                  to: "bg";
+               }
+               rel2 {
+                  to: "bg";
+               }
+            }
+         }
          // Button
          part {
             name: "button";
                }
             }
          }
-         /* Text */
-         part {
-            name: "text_rect";
-            type: RECT;
-            scale: 1;
-            mouse_events: 1;
-            description {
-               state: "default" 0.0;
-               visible: 0;
-               align: 0.0 0.5;
-               rel1 {
-                  relative: 1.0 0.0;
-                  to: "padding_icon_right";
-               }
-               rel2 {
-                  relative: 0.0 0.0;
-                  to_x: "padding_button_left";
-                  to_y: "padding_right_bottom";
-               }
-            }
-         }
-         part {
-            name: "elm.text";
-            type: TEXTBLOCK;
-            scale: 1;
-            mouse_events: 1;
-            description {
-               state: "default" 0.0;
-               rel1 {
-                  relative: 0.0 0.0;
-                  to: "text_rect";
-               }
-               rel2 {
-                  relative: 1.0 1.0;
-                  to: "text_rect";
-               }
-               align: 0.0 0.5;
-               text {
-                  style: "style_text";
-                  max: 0 1;
-               }
-            }
-         }
       }
       programs {
          program {
             in: 0.1 0.0;
             action: STATE_SET "show" "0.0";
             transition: ACCEL 0.4;
-            target: "bg_2line";
+            target: "bg";
+         }
+         program {
+            name: "clicked";
+            signal: "mouse,clicked,1";
+            source: "event";
+            action: SIGNAL_EMIT "clicked" "";
+            after: "effect_hide";
          }
          program {
             name: "effect_hide";
             source: "elm";
             action: STATE_SET "default" "0.0";
             transition: DECEL 0.4;
-            target: "bg_2line";
+            target: "bg";
             after: "hide";
          }
          program {