[Genlist] Now, BG part is used for receiving events.
authorTae-Hwan Kim <the81.kim@samsung.com>
Thu, 28 Mar 2013 14:46:05 +0000 (23:46 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Fri, 29 Mar 2013 07:36:31 +0000 (16:36 +0900)
So if other parts (include padding part) can not receive events.

Change-Id: Id093bcb5fd283ef29c680aed9cd913c0667f74f5

themes/widgets/genlist/genlist_macro.edc

index 7b45b74..85fafa8 100755 (executable)
 //****************************************************************************//
 #define GENLIST_PART_BG(DEFAULT_COLOR, SELECT_COLOR, DISABLE_COLOR) \
       GENLIST_PART_RECT("bg_clip", \
-         mouse_events: 0; \
          description { state: "default" 0.0; \
          } \
          description { state: "decorate" 0.0; \
          } \
       ) \
       GENLIST_PART_RECT("bg",  \
-         mouse_events: 0; \
          clip_to: "bg_clip"; \
          description { state: "default" 0.0; \
             color: GENLIST_LIST_BG_COLOR; \
    GENLIST_PART_IMAGE("bg_dialogue", \
       insert_after: "base"; \
       clip_to: "bg_dialogue_clip"; \
-      mouse_events: 0; \
       GENLIST_DESCRIPTION_LR("bg_dialogue_left", "bg_dialogue_right", \
          image { \
             normal: "00_list_group_bg.png"; \
 #define GENLIST_PART_BASE \
          part { name: "base"; \
             type: RECT; \
-            repeat_events: 1; \
+            mouse_events: 0; \
             scale: 1; \
             description { state: "default" 0.0; \
                align: 0.5 0.5; \
          )
 
 #define GENLIST_PART_EDITBTN \
-   GENLIST_PART_ICON("elm.icon.edit", \
-      GENLIST_DESCRIPTION_R("elm.padding.edit.right", \
-         fixed: 1 1; \
-         visible: 0; \
-         min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
-         max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
-      ) \
-      description { state: "editmode" 0.0; \
-         inherit: "default" 0.0; \
-         visible: 1; \
-      } \
-   ) \
    GENLIST_PART_SPACER("elm.padding.edit.right", \
       description { state: "default" 0.0; \
          fixed: 1 0; \
          min: GENLIST_PADDING_SIZE_RIGHT 0; \
          max: GENLIST_PADDING_SIZE_RIGHT -1; \
       } \
+   ) \
+   GENLIST_PART_ICON("elm.icon.edit", \
+      GENLIST_DESCRIPTION_R("elm.padding.edit.right", \
+         visible: 0; \
+      ) \
+      description { state: "editmode" 0.0; \
+         inherit: "default" 0.0; \
+         visible: 1; \
+         fixed: 1 1; \
+         min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
+         max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
+      } \
    )
 
 #define GENLIST_PART_PADDING_RIGHT \
             GENLIST_DESCRIPTION_REORDER_PADDING \
          )
 
+// FIXME: Use RECT instead of SPACER if this group is used on layout
+// for blocking events
 #define GENLIST_PART_PADDING_RIGHT_EDIT \
+         GENLIST_PART_SPACER("elm.padding.right", \
+            GENLIST_DESCRIPTION_R("elm.padding.right.edit", \
+               min: DIALOGUE_PADDING_SIZE_RIGHT 0; \
+               max: DIALOGUE_PADDING_SIZE_RIGHT -1; \
+               fixed: 1 0; \
+            ) \
+            GENLIST_DESCRIPTION_DECORATE_PADDING \
+            GENLIST_DESCRIPTION_REORDER_PADDING \
+         ) \
          GENLIST_PART_SPACER("elm.padding.right.edit", \
             description { state: "default" 0.0; \
                min:0 0; \
                max: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_MEDIUM_SIZE) -1; \
             } \
          ) \
-         GENLIST_PART_SPACER("elm.padding.right", \
-            GENLIST_DESCRIPTION_R("elm.padding.right.edit", \
-               min: DIALOGUE_PADDING_SIZE_RIGHT 0; \
-               max: DIALOGUE_PADDING_SIZE_RIGHT -1; \
-               fixed: 1 0; \
-            ) \
-            GENLIST_DESCRIPTION_DECORATE_PADDING \
-            GENLIST_DESCRIPTION_REORDER_PADDING \
-         ) \
          GENLIST_PART_EDITBTN
 
 #define GENLIST_PART_PADDING_TOP \
          target: "bottom_line2"; \
          target: "bg_reorder"; \
       ) \
-      GENLIST_PROGRAM_SOUND("base") \
+      GENLIST_PROGRAM_SOUND("bg") \
       GENLIST_PROGRAM_EXPAND_FADE( TARGET \
          target: "bg"; \
          target: "bottom_line"; \
          action: STATE_SET "2depth" 0.0; \
          target: "bg_dialogue_clip"; \
       } \
-      GENLIST_PROGRAM_SOUND("base") \
+      GENLIST_PROGRAM_SOUND("bg_dialogue") \
       GENLIST_PROGRAM_EXPAND_FADE( TARGET \
          target: "bg_dialogue"; \
       ) \
          target: "bg_reorder"; \
          TARGET \
       ) \
-      GENLIST_PROGRAM_SOUND("base") \
+      GENLIST_PROGRAM_SOUND("bg") \
       GENLIST_PROGRAM_EXPAND_FADE( \
          target: "bg"; \
          target: "bottom_line"; \