//**************************************************************************//
// if size is different for each theme, split it into each theme inc.
-#define GENLIST_HEIGHT_1LINE 112
+#define GENLIST_HEIGHT_1LINE 110 // (114 - top/bottom padding)
#define GENLIST_HEIGHT_2LINE_MAIN 54
#define GENLIST_HEIGHT_2LINE_SUB 42
#define GENLIST_HEIGHT_MULTILINE_SUB 38
#define DIALOGUE_PADDING_SIZE_LEFT 16+20
#define DIALOGUE_PADDING_SIZE_RIGHT 16+20
-#define GENLIST_ICON_BIG_SIZE 72
#define GENLIST_ICON_SMALL_SIZE 45
#define GENLIST_ICON_STAR_SIZE 45
-#define GENLIST_ICON_THUMBNAIL1_SIZE 104
+#define GENLIST_ICON_MEDIUM_SIZE 72
+#define GENLIST_ICON_LARGE_SIZE 99
+
+#define GENLIST_ICON_MEDIUM_MASK_SIZE 84
+#define GENLIST_ICON_LARGE_MASK_SIZE 108
+
#define GENLIST_BTN_01_HEIGHT 74
#define GENLIST_BTN_02_SIZE 72
#define GENLIST_ICON_ONOFF_WIDTH 132
GENLIST_PART_FLIP \
}
+#define GENLIST_INHERIT_THUMB_CIRCLE(SIZE_PREFIX, MASK_SIZE, PARENT) \
+ images { \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_normal.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_press.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_dim.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png" COMP; \
+ } \
+ parts { \
+ GENLIST_PART_RECT("elm.thumb.clip", \
+ description { state: "default"; \
+ } \
+ description { state: "flipped"; \
+ color: 0 0 0 0; \
+ } \
+ ) \
+ GENLIST_PART_IMAGE("elm.thumb", \
+ clip_to: "elm.thumb.clip"; \
+ GENLIST_DESCRIPTION_ENVELOP(PARENT, \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_normal.png"; \
+ min: MASK_SIZE MASK_SIZE; \
+ max: MASK_SIZE MASK_SIZE; \
+ fixed:1 1; \
+ ) \
+ description { state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_press.png"; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_dim.png"; \
+ } \
+ description { state: "reorder" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png"; \
+ } \
+ description { state: "reorder_selected" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png"; \
+ } \
+ description { state: "reorder_disabled" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_circle_icon_bg_dim.png"; \
+ } \
+ description { state: "decorate" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "reorder" 0.0; \
+ } \
+ ) \
+ GENLIST_PART_FLIP \
+ }
+
+#define GENLIST_INHERIT_THUMB_SQUARE(SIZE_PREFIX, MASK_SIZE, PARENT) \
+ images { \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_normal.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_press.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_dim.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png" COMP; \
+ } \
+ parts { \
+ GENLIST_PART_RECT("elm.thumb.clip", \
+ description { state: "default"; \
+ } \
+ description { state: "flipped"; \
+ color: 0 0 0 0; \
+ } \
+ ) \
+ GENLIST_PART_IMAGE("elm.thumb", \
+ clip_to: "elm.thumb.clip"; \
+ GENLIST_DESCRIPTION_ENVELOP(PARENT, \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_normal.png"; \
+ min: MASK_SIZE MASK_SIZE; \
+ max: MASK_SIZE MASK_SIZE; \
+ fixed:1 1; \
+ ) \
+ description { state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_press.png"; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_dim.png"; \
+ } \
+ description { state: "reorder" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png"; \
+ } \
+ description { state: "reorder_selected" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png"; \
+ } \
+ description { state: "reorder_disabled" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_list_square_icon_bg_dim.png"; \
+ } \
+ description { state: "decorate" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "reorder" 0.0; \
+ } \
+ ) \
+ GENLIST_PART_FLIP \
+ }
+
+
+#define GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE(SIZE_PREFIX, MASK_SIZE, PARENT) \
+ images { \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_dim.png" COMP; \
+ } \
+ parts { \
+ GENLIST_PART_RECT("elm.thumb.clip", \
+ description { state: "default"; \
+ } \
+ description { state: "flipped"; \
+ color: 0 0 0 0; \
+ } \
+ ) \
+ GENLIST_PART_IMAGE("elm.thumb", \
+ clip_to: "elm.thumb.clip"; \
+ GENLIST_DESCRIPTION_ENVELOP(PARENT, \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png"; \
+ min: MASK_SIZE MASK_SIZE; \
+ max: MASK_SIZE MASK_SIZE; \
+ fixed:1 1; \
+ ) \
+ description { state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png"; \
+ } \
+ description { state: "reorder" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_normal.png"; \
+ } \
+ description { state: "reorder_selected" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_circle_icon_bg_press.png"; \
+ } \
+ description { state: "decorate" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "reorder" 0.0; \
+ } \
+ ) \
+ }
+
+#define GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE(SIZE_PREFIX, MASK_SIZE, PARENT) \
+ images { \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png" COMP; \
+ image: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_dim.png" COMP; \
+ } \
+ parts { \
+ GENLIST_PART_RECT("elm.thumb.clip", \
+ description { state: "default"; \
+ } \
+ description { state: "flipped"; \
+ color: 0 0 0 0; \
+ } \
+ ) \
+ GENLIST_PART_IMAGE("elm.thumb", \
+ clip_to: "elm.thumb.clip"; \
+ GENLIST_DESCRIPTION_ENVELOP(PARENT, \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png"; \
+ min: MASK_SIZE MASK_SIZE; \
+ max: MASK_SIZE MASK_SIZE; \
+ fixed:1 1; \
+ ) \
+ description { state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png"; \
+ } \
+ description { state: "reorder" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_normal.png"; \
+ } \
+ description { state: "reorder_selected" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "Content_views/icon_masking/"SIZE_PREFIX"/00_dialogue_square_icon_bg_press.png"; \
+ } \
+ description { state: "decorate" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "reorder" 0.0; \
+ } \
+ ) \
+ }
+
+#define GENLIST_INHERIT_THUMB_CIRCLE_MEDIUM(PARENT) \
+ GENLIST_INHERIT_THUMB_CIRCLE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
+
+#define GENLIST_INHERIT_THUMB_SQUARE_MEDIUM(PARENT) \
+ GENLIST_INHERIT_THUMB_SQUARE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
+
+#define GENLIST_INHERIT_THUMB_CIRCLE_LARGE(PARENT) \
+ GENLIST_INHERIT_THUMB_CIRCLE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
+
+#define GENLIST_INHERIT_THUMB_SQUARE_LARGE(PARENT) \
+ GENLIST_INHERIT_THUMB_SQUARE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
+
+
+#define GENLIST_INHERIT_THUMB_CIRCLE_MEDIUM_DIALOGUE(PARENT) \
+ GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
+
+#define GENLIST_INHERIT_THUMB_SQUARE_MEDIUM_DIALOGUE(PARENT) \
+ GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("72x72", GENLIST_ICON_MEDIUM_MASK_SIZE, PARENT)
+
+#define GENLIST_INHERIT_THUMB_CIRCLE_LARGE_DIALOGUE(PARENT) \
+ GENLIST_INHERIT_THUMB_CIRCLE_DIALOGUE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
+
+#define GENLIST_INHERIT_THUMB_SQUARE_LARGE_DIALOGUE(PARENT) \
+ GENLIST_INHERIT_THUMB_SQUARE_DIALOGUE("99x99", GENLIST_ICON_LARGE_MASK_SIZE, PARENT)
+
//****************************************************************************//
// ****************************** BG Image **********************************//
//****************************************************************************//
-#define GENLIST_PART_BG(DEFAULT_COLOR, SELECT_COLOR, DISABLE_COLOR) \
+#define GENLIST_PART_BG_NORMAL \
GENLIST_PART_RECT("bg_clip", \
- mouse_events: 0; \
description { state: "default" 0.0; \
+ color: 255 255 255 255; \
} \
description { state: "decorate" 0.0; \
inherit: "default" 0.0; \
inherit: "default" 0.0; \
color: 0 0 0 0; \
} \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
) \
GENLIST_PART_RECT("bg", \
- mouse_events: 0; \
clip_to: "bg_clip"; \
description { state: "default" 0.0; \
color: GENLIST_LIST_BG_COLOR; \
} \
description { state: "selected" 0.0; \
inherit: "default" 0.0; \
- color: SELECT_COLOR; \
+ color: GENLIST_LIST_PRESS_COLOR; \
} \
description { state: "disabled" 0.0; \
inherit: "default" 0.0; \
- color: DISABLE_COLOR; \
+ color: GENLIST_LIST_DIM_COLOR; \
+ } \
+ ) \
+ GENLIST_PART_RECT("bg_reorder_clip", \
+ description { state: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "reorder" 0.0; \
+ inherit: "default" 0.0; \
+ color: 255 255 255 255; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "default" 0.0; \
} \
description { state: "decorate" 0.0; \
inherit: "default" 0.0; \
+ } \
+ description { state: "reorder_flip" 0.0; \
+ inherit: "default" 0.0; \
+ } \
+ ) \
+ GENLIST_PART_SPACER("bg_reorder_left", \
+ description { state: "default" 0.0; \
+ min: 16 0; \
+ max: 16 -1; \
+ fixed: 1 0; \
+ align: 0 0.5; \
+ rel2.relative: 0 1; \
+ } \
+ ) \
+ GENLIST_PART_SPACER("bg_reorder_right", \
+ description { state: "default" 0.0; \
+ min: 16 0; \
+ max: 16 -1; \
+ fixed: 1 0; \
+ align: 1.0 0.5; \
+ rel1.relative: 1 0; \
+ } \
+ ) \
+ GENLIST_PART_IMAGE("bg_reorder", \
+ clip_to: "bg_reorder_clip"; \
+ GENLIST_DESCRIPTION_LR("bg_reorder_left", "bg_reorder_right", \
+ image { \
+ normal: "00_list_group_bg.png"; \
+ border: 17 17 8 8; \
+ border_scale: 1; \
+ } \
+ ) \
+ description { state: "selected" 0.0; \
+ inherit: "default"; \
+ image { \
+ normal: "00_list_group_bg_press.png"; \
+ border: 17 17 8 8; \
+ border_scale: 1; \
+ } \
+ } \
+ description { state: "flipped" 0.0; \
+ inherit: "default"; \
visible: 0; \
} \
- GENLIST_DESCRIPTION_FADE \
)
-#define GENLIST_PART_BG_NORMAL \
- GENLIST_PART_BG(GENLIST_LIST_BG_COLOR, \
- GENLIST_LIST_PRESS_COLOR, \
- GENLIST_LIST_DIM_COLOR \
- ) \
- GENLIST_PART_BG_REORDER
-
#define GENLIST_PART_BG_NORMAL_OFF \
- GENLIST_PART_BG_OFF \
- GENLIST_PART_BG_REORDER_OFF
-
-#define GENLIST_PART_BG_OFF \
- GENLIST_PART_RECT("bg", \
- mouse_events: 0; \
+ GENLIST_PART_RECT("bg_clip", \
description { state: "default" 0.0; \
visible: 0; \
} \
- description { state: "selected" 0.0; \
- visible: 0; \
- } \
- description { state: "disabled" 0.0; \
- visible: 0; \
- } \
description { state: "decorate" 0.0; \
+ inherit: "default" 0.0; \
visible: 0; \
} \
- )
-
-#define GENLIST_PART_BG_REORDER \
- GENLIST_PART_RECT("bg_reorder_clip", \
- description { state: "default" 0.0; \
- color: 0 0 0 0; \
- } \
description { state: "reorder" 0.0; \
inherit: "default" 0.0; \
- color: 255 255 255 255; \
+ visible: 0; \
} \
- description { state: "flip" 0.0; \
+ description { state: "decorate_reorder" 0.0; \
inherit: "default" 0.0; \
- color: 0 0 0 0; \
+ visible: 0; \
} \
) \
- GENLIST_PART_SPACER("bg_reorder_left", \
+ GENLIST_PART_RECT("bg", \
+ mouse_events: 0; \
description { state: "default" 0.0; \
- min: 16 0; \
- max: 16 -1; \
- fixed: 1 0; \
- align: 0 0.5; \
- rel2.relative: 0 1; \
+ visible: 0; \
} \
- ) \
- GENLIST_PART_SPACER("bg_reorder_right", \
- description { state: "default" 0.0; \
- min: 16 0; \
- max: 16 -1; \
- fixed: 1 0; \
- align: 1.0 0.5; \
- rel1.relative: 1 0; \
+ description { state: "selected" 0.0; \
+ visible: 0; \
+ } \
+ description { state: "disabled" 0.0; \
+ visible: 0; \
} \
) \
- GENLIST_PART_IMAGE("bg_reorder", \
- clip_to: "bg_reorder_clip"; \
- mouse_events: 0; \
- GENLIST_DESCRIPTION_LR("bg_reorder_left", "bg_reorder_right", \
- image { \
- normal: "00_list_group_bg.png"; \
- border: 17 17 8 8; \
- border_scale: 1; \
+ GENLIST_PART_RECT("bg_reorder_clip", \
+ description { state: "default" 0.0; \
+ visible: 0; \
} \
- ) \
- description { state: "selected" 0.0; \
- inherit: "default"; \
- image { \
- normal: "00_list_group_bg_press.png"; \
- border: 17 17 8 8; \
- border_scale: 1; \
+ description { state: "reorder" 0.0; \
+ visible: 0; \
} \
- } \
- GENLIST_DESCRIPTION_FADE \
- )
-
-#define GENLIST_PART_BG_REORDER_OFF \
+ description { state: "decorate_reorder" 0.0; \
+ visible: 0; \
+ } \
+ description { state: "decorate" 0.0; \
+ visible: 0; \
+ } \
+ description { state: "reorder_flip" 0.0; \
+ visible: 0; \
+ } \
+ ) \
GENLIST_PART_IMAGE("bg_reorder", \
description {state: "default" 0.0;\
visible: 0;\
}\
description { state: "selected" 0.0; {\
- inherit: "default" 0.0; \
visible: 0; \
} \
- ) \
+ description { state: "flipped" 0.0; {\
+ visible: 0; \
+ } \
+ )
#define GENLIST_PART_BG_DIALOGUE \
GENLIST_PART_RECT("bg_dialogue_clip", \
} \
description { state: "editmode" 0.0; \
inherit: "default" 0.0; \
- min: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_BIG_SIZE) 0; \
- max: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_BIG_SIZE) 0; \
+ min: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_MEDIUM_SIZE) 0; \
+ max: (GENLIST_PADDING_SIZE_DEFAULT*2+GENLIST_ICON_MEDIUM_SIZE) 0; \
} \
) \
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"; \
border_scale: 1; \
} \
} \
- GENLIST_DESCRIPTION_FADE \
)
//****************************************************************************//
// ****************************** BASE ********************************//
//****************************************************************************//
-#define GENLIST_PART_BASE \
+#define GENLIST_PART_BASE_SIZE(HEIGHT) \
part { name: "base"; \
type: RECT; \
- repeat_events: 1; \
+ mouse_events: 0; \
scale: 1; \
description { state: "default" 0.0; \
- align: 0.5 0.5; \
color: 0 0 0 0; \
+ min: 0 HEIGHT; \
+ } \
+ description { state: "disabled" 0.0; \
+ inherit: "default"; \
} \
} \
- GENLIST_PART_PERSPECTIVE_POINT
-
-#define GENLIST_PART_BASE_SIZE(HEIGHT) \
- part { name: "base"; \
+ part { name: "state"; \
type: RECT; \
- repeat_events: 1; \
+ mouse_events: 0; \
scale: 1; \
description { state: "default" 0.0; \
- align: 0.5 0.5; \
color: 0 0 0 0; \
- min: 0 HEIGHT; \
} \
+ description { state: "decorate" 0.0; \
+ inherit: "default"; \
+ } \
+ description { state: "reorder" 0.0; \
+ inherit: "default"; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "default"; \
+ } \
+ }
+
+#define GENLIST_PART_BASE \
+ GENLIST_PART_BASE_SIZE(0)
+
+
+#define GENLIST_PART_FOCUS \
+ GENLIST_PART_IMAGE("focus_part", \
+ mouse_events: 0; \
+ description { state: "default" 0.0; \
+ visible: 0; \
+ image { \
+ normal: "00_focus.png"; \
+ border: 7 7 7 7; \
} \
- GENLIST_PART_PERSPECTIVE_POINT
+ } \
+ description { state: "focused" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ } \
+ )
//****************************************************************************//
// ****************************** LINE ********************************//
//****************************************************************************//
#define GENLIST_PART_BOTTOM_LINE \
GENLIST_PART_RECT("bottom_line_clip", \
- mouse_events: 0; \
description { state: "default" 0.0; \
- visible: 1; \
+ color: 255 255 255 255; \
} \
description { state: "decorate" 0.0; \
- visible: 0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
} \
description { state: "reorder" 0.0; \
- visible: 0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
+ } \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "default" 0.0; \
+ color: 0 0 0 0; \
} \
) \
GENLIST_PART_RECT("bottom_line", \
inherit: "default" 0.0; \
color: GENLIST_LIST_DIM_COLOR; \
} \
- description { state: "decorate" 0.0; \
+ description { state: "flipped" 0.0; \
inherit: "default" 0.0; \
visible: 0; \
} \
- GENLIST_DESCRIPTION_FADE \
) \
GENLIST_PART_RECT("bottom_line2", \
mouse_events: 0; \
inherit: "default" 0.0; \
color: GENLIST_LIST_DIM_COLOR; \
} \
- description { state: "decorate" 0.0; \
+ description { state: "flipped" 0.0; \
inherit: "default" 0.0; \
visible: 0; \
} \
- GENLIST_DESCRIPTION_FADE \
)
#define GENLIST_PART_BOTTOM_LINE_OFF \
GENLIST_PART_RECT("bottom_line", \
mouse_events: 0; \
description { state: "default" 0.0; \
- visible: 0; \
+ color: 0 0 0 0; \
} \
description { state: "selected" 0.0; \
- visible: 0; \
+ color: 0 0 0 0; \
} \
description { state: "disabled" 0.0; \
- visible: 0; \
+ color: 0 0 0 0; \
} \
description { state: "decorate" 0.0; \
- visible: 0; \
+ color: 0 0 0 0; \
} \
) \
GENLIST_PART_RECT("bottom_line2", \
mouse_events: 0; \
description { state: "default" 0.0; \
- visible: 0; \
+ color: 0 0 0 0; \
} \
description { state: "selected" 0.0; \
- visible: 0; \
+ color: 0 0 0 0; \
} \
description { state: "disabled" 0.0; \
- visible: 0; \
+ color: 0 0 0 0; \
} \
description { state: "decorate" 0.0; \
- visible: 0; \
+ color: 0 0 0 0; \
} \
)
rel2.offset: 0 0; \
color: GENLIST_LIST_DIVIDER1_COLOR; \
) \
- GENLIST_DESCRIPTION_FADE \
) \
GENLIST_PART_RECT("elm.divider2", \
mouse_events: 0; \
rel2.offset: 0 0; \
color: GENLIST_LIST_DIVIDER2_COLOR; \
) \
- GENLIST_DESCRIPTION_FADE \
)
#define GENLIST_PART_DIVIDER_R(RIGHT) \
rel1.offset: -1 0;\
color: GENLIST_LIST_DIVIDER1_COLOR; \
) \
- GENLIST_DESCRIPTION_FADE \
) \
GENLIST_PART_RECT("elm.divider2", \
mouse_events: 0; \
rel1.offset: -1 0;\
color: GENLIST_LIST_DIVIDER2_COLOR; \
) \
- GENLIST_DESCRIPTION_FADE \
)
#define GENLIST_PART_CENTER_LINE_LT(LEFT, TOP) \
fixed: 0 1; \
color: GENLIST_LIST_DIVIDER1_COLOR; \
) \
- GENLIST_DESCRIPTION_FADE \
) \
GENLIST_PART_RECT("center_line2", \
GENLIST_DESCRIPTION_LRT("elm.padding.divider.left", "elm.padding.divider.right", "center_line", \
fixed: 0 1; \
color: GENLIST_LIST_DIVIDER2_COLOR; \
) \
- GENLIST_DESCRIPTION_FADE \
)
#define GENLIST_PART_COLORBAR \
rel1.relative: 0 1; \
rel2.relative: 0 0; \
) \
- GENLIST_DESCRIPTION_FADE \
+ )
+
+#define GENLIST_PART_COLORBAR_DIALOGUE \
+ GENLIST_PART_SPACER("elm.padding.colorbar.top", \
+ GENLIST_DESCRIPTION_ENVELOP("base", \
+ align: 0.5 0; \
+ fixed: 0 1; \
+ min: 0 4; \
+ max: -1 4; \
+ rel2.relative: 1 0; \
+ ) \
+ ) \
+ GENLIST_PART_SPACER("elm.padding.colorbar.bottom", \
+ GENLIST_DESCRIPTION_ENVELOP("base", \
+ align: 0.5 1; \
+ fixed: 0 1; \
+ min: 0 4; \
+ max: -1 4; \
+ rel1.relative: 0 1; \
+ ) \
+ ) \
+ GENLIST_PART_SPACER("elm.padding.colorbar.left", \
+ description{ state: "default" 0.0; \
+ min: 19 0; \
+ max: 19 -1; \
+ fixed: 1 0; \
+ align: 0 0.5; \
+ rel1.to: "base"; \
+ rel2.to: "base"; \
+ rel2.relative: 0 1; \
+ } \
+ ) \
+ GENLIST_PART_ICON("elm.swallow.colorbar", \
+ GENLIST_DESCRIPTION_LTB("elm.padding.colorbar.left","elm.padding.colorbar.top", "elm.padding.colorbar.bottom", \
+ min: GENLIST_ICON_COLORBAR_SIZE 0; \
+ max: GENLIST_ICON_COLORBAR_SIZE -1; \
+ fixed: 1 0; \
+ ) \
)
//****************************************************************************//
max: 0 0; \
}
+#define GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
+ description { state: "decorate_reorder" 0.0; \
+ inherit: "default" 0.0; \
+ min: 0 0; \
+ max: 0 0; \
+ }
+
#define GENLIST_DESCRIPTION_REORDER_PADDING \
description { state: "reorder" 0.0; \
inherit: "default" 0.0; \
) \
GENLIST_DESCRIPTION_DECORATE_PADDING \
GENLIST_DESCRIPTION_REORDER_PADDING \
+ GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
)
#define GENLIST_PART_PADDING_LEFT_SIZE( SIZE ) \
) \
GENLIST_DESCRIPTION_DECORATE_PADDING \
GENLIST_DESCRIPTION_REORDER_PADDING \
+ GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
)
#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_BIG_SIZE GENLIST_ICON_BIG_SIZE; \
- max: GENLIST_ICON_BIG_SIZE GENLIST_ICON_BIG_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_DECORATE_PADDING \
GENLIST_DESCRIPTION_REORDER_PADDING \
+ GENLIST_DESCRIPTION_DECORATE_REORDER_PADDING \
)
#define GENLIST_PART_PADDING_RIGHT_SIZE( SIZE ) \
} \
GENLIST_DESCRIPTION_DECORATE_PADDING \
GENLIST_DESCRIPTION_REORDER_PADDING \
+ GENLIST_DESCRIPTION_DECORATE_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_DESCRIPTION_DECORATE_REORDER_PADDING \
+ ) \
GENLIST_PART_SPACER("elm.padding.right.edit", \
description { state: "default" 0.0; \
min:0 0; \
} \
description { state: "editmode" 0.0; \
inherit: "default" 0.0; \
- min: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_BIG_SIZE) 0; \
- max: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_BIG_SIZE) -1; \
+ min: (GENLIST_PADDING_SIZE_DEFAULT+GENLIST_ICON_MEDIUM_SIZE) 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 \
rel2 { \
relative: 1 1; \
to: TOP; \
- } \
- } \
- )
-
-#define GENLIST_PART_PADDING_B_SIZE( NAME, BOTTOM, SIZE ) \
- GENLIST_PART_SPACER(NAME, \
- description { state: "default" 0.0; \
- min: 0 SIZE; \
- max: -1 SIZE; \
- fixed: 0 1; \
- align: 0.5 1; \
- rel1 { \
- relative: 0.5 0; \
- to: BOTTOM; \
- } \
- rel2 { \
- relative: 0.5 0; \
- to: BOTTOM; \
- } \
- } \
- )
-
-#define GENLIST_PART_PERSPECTIVE_POINT \
- GENLIST_PART_RECT("point", \
- description { \
- state: "default" 0.0; \
- color: 0 0 0 0; \
- rel1 { relative: 0.0 0.0; } \
- rel2 { relative: 1.0 0.0; } \
- } \
- )
-
-#define GENLIST_DESCRIPTION_ROTATE( param_x, param_y, param_z ) \
- description { state: "map_contracted" 0.0; \
- inherit: "default" 0.0; \
- map { \
- perspective: "point"; \
- on: 1; \
- smooth: 1; \
- perspective_on: 1; \
- backface_cull: 1; \
- rotation { \
- center: "point"; \
- x: param_x; \
- y: param_y; \
- z: param_z; \
- } \
- } \
- } \
- description { state: "map_expanded" 0.0; \
- inherit: "default" 0.0; \
- map { \
- perspective: "point"; \
- on: 1; \
- smooth: 1; \
- perspective_on: 1; \
- backface_cull: 1; \
- rotation { \
- center: "point"; \
- x: 0; \
- y: 0; \
- z: 0; \
- } \
- } \
- } \
- description { \
- state: "hide" 0.0; \
- inherit: "default" 0.0; \
- visible: 0; \
- }
-
-// Genlist expandable rotation
-#define GENLIST_PROGRAM_ROTATE( TARGET ) \
- program { name: "map_expand_start"; \
- signal: "flip_item"; \
- action: STATE_SET "map_contracted" 0.0; \
- target: "bg"; \
- TARGET \
- after: "map_expanding"; \
- } \
- program { name: "map_expanding"; \
- action: STATE_SET "hide" 0.0; \
- transition: LINEAR 0.2; \
- target: "bg"; \
- TARGET \
- after: "map_expand_end"; \
- } \
- program { name: "map_expand_end"; \
- action: STATE_SET "default" 0.0; \
- target: "bg"; \
- TARGET \
- } \
- program { name: "map_contract_start"; \
- signal: "elm,state,contract_flip"; \
- action: STATE_SET "map_expanded" 0.0; \
- target: "bg"; \
- TARGET \
- after: "map_contracting"; \
- } \
- program { name: "map_contracting"; \
- action: STATE_SET "map_contracted" 0.0; \
- transition: LINEAR 0.3; \
- target: "bg"; \
- TARGET \
- after: "map_contract_end"; \
- } \
- program { name: "map_contract_end"; \
- action: STATE_SET "hide" 0.0; \
- target: "bg"; \
- TARGET \
- }
-
-// FIXME: swallow part cannot be fade out ???
-#define GENLIST_DESCRIPTION_FADE_ICON \
- description { state: "fadeout" 0.0; \
- inherit: "default" 0.0; \
- color: 0 0 0 10; \
- visible: 0; \
- } \
- description { state: "fadein" 0.0; \
- inherit: "default" 0.0; \
- } \
-
-#define GENLIST_DESCRIPTION_FADE \
- description { state: "fadeout" 0.0; \
- inherit: "default" 0.0; \
- color: 255 255 255 10; \
- } \
- description { state: "fadein" 0.0; \
- inherit: "default" 0.0; \
- } \
-
-#define GENLIST_PROGRAM_EXPAND_FADE( TARGET ) \
- program { name: "expand_start"; \
- signal: "flip_item"; \
- source: "elm"; \
- action: STATE_SET "fadeout" 0.0; \
- TARGET \
- after: "expand_end"; \
- } \
- program { name: "expand_end"; \
- transition: DECELERATE 0.3; \
- action: STATE_SET "default" 0.0; \
- TARGET \
- } \
- program { name: "contract_start"; \
- signal: "elm,state,contract_flip"; \
- source: "elm"; \
- action: STATE_SET "fadein" 0.0; \
- TARGET \
- after: "contract_end"; \
- } \
- program { name: "contract_end"; \
- transition: ACCELERATE 0.3; \
- action: STATE_SET "fadeout" 0.0; \
- TARGET \
- }
-
-// FIXME: This do need now. I should find why this is used in genlist
-#if 0
- program { \
- name: "show"; \
- signal: "elm,state,show"; \
- action: STATE_SET "default" 0.0; \
- TARGET \
- } \
- program { \
- name: "hide"; \
- signal: "elm,state,hide"; \
- action: STATE_SET "hide" 0.0; \
- TARGET \
- }
-#endif
+ } \
+ } \
+ )
+
+#define GENLIST_PART_PADDING_B_SIZE( NAME, BOTTOM, SIZE ) \
+ GENLIST_PART_SPACER(NAME, \
+ description { state: "default" 0.0; \
+ min: 0 SIZE; \
+ max: -1 SIZE; \
+ fixed: 0 1; \
+ align: 0.5 1; \
+ rel1 { \
+ relative: 0.5 0; \
+ to: BOTTOM; \
+ } \
+ rel2 { \
+ relative: 0.5 0; \
+ to: BOTTOM; \
+ } \
+ } \
+ )
#define GENLIST_PROGRAM_EXPAND_ROOT( TARGET ) \
program { \
TARGET \
} \
-#define GENLIST_PROGRAM_EXPANDABLE( SRC ) \
- program { \
- name: "expand"; \
- signal: "mouse,up,1"; \
- SRC \
- action: SIGNAL_EMIT "elm,action,expand,toggle" "elm"; \
- } \
-
// 2.2.7 Genlist_Edit mode (Rename)
// FIXME: padding is not needed when swallow content is NULL.
// But how can edje know existence of swallow content?
#define GENLIST_PART_FLIP \
GENLIST_PART_RECT("elm.flip.bg", \
mouse_events: 0; \
- repeat_events: 0;\
description { state: "default" 0.0;\
- visible: 0; \
+ color: 0 0 0 0;\
} \
- description { state: "flip_enabled" 0.0; \
+ description { state: "flipped" 0.0; \
inherit: "default" 0.0; \
- visible: 1; \
color: GENLIST_LIST_BG_COLOR;\
}\
) \
visible: 0; \
aspect: 1 1; \
) \
- description { state: "flip_enabled" 0.0; \
+ description { state: "flipped" 0.0; \
inherit: "default" 0.0; \
visible: 1; \
} \
align: 1 0.5; \
max: 154 74; \
) \
- description { state: "flip_enabled" 0.0; \
+ description { state: "flipped" 0.0; \
inherit: "default" 0.0; \
visible: 1; \
} \
signal: "elm,state,enabled"; \
source: "elm"; \
action: STATE_SET "default" 0.0; \
+ target: "base"; \
TARGET \
} \
program { name: "disabled"; \
signal: "elm,state,disabled"; \
source: "elm"; \
action: STATE_SET "disabled" 0.0; \
+ target: "base"; \
TARGET \
}
-#define GENLIST_PROGRAM_SELECT( TARGET ) \
- program { name: "selected"; \
- signal: "elm,state,selected"; \
- source: "elm"; \
- action: STATE_SET "selected" 0.0; \
- TARGET \
- after: "play_button_press"; \
- } \
- program { name: "selected,nosound"; \
- signal: "elm,state,selected"; \
- source: "elm,nosound"; \
- action: STATE_SET "selected" 0.0; \
- TARGET \
+#define GENLIST_PROGRAM_FOCUS \
+ program { name: "focused"; \
+ signal: "elm,state,focused"; \
+ source: "elm"; \
+ action: STATE_SET "focused" 0.0; \
+ target: "focus_part"; \
+ } \
+ program { name: "unfocused"; \
+ signal: "elm,state,unfocused"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "focus_part"; \
+ }
+
+// If check is swallowed, genlist selected/unselected should be synched with check.
+#define GENLIST_PROGRAM_CHECK(CHECK) \
+ program { name: "selected"CHECK; \
+ signal: "mouse,down,1"; \
+ source: CHECK; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"base", st, 30, vl); \
+ if (strcmp(st, "disabled")) \
+ run_program(PROGRAM:"selected"); \
+ } \
} \
- program { name: "unselected"; \
- signal: "elm,state,unselected"; \
- source: "elm"; \
- transition: LINEAR 0.1; \
- action: STATE_SET "default" 0.0; \
- TARGET \
+ program { name: "unselected"CHECK; \
+ signal: "mouse,up,1"; \
+ source: CHECK; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"base", st, 30, vl); \
+ if (strcmp(st, "disabled")) \
+ run_program(PROGRAM:"unselected"); \
+ } \
+ }
+
+#define GENLIST_PROGRAM_SOUND( SRC ) \
+ program { name: "play_sound"SRC; \
+ signal: "mouse,clicked,1"; \
+ source: SRC; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"base", st, 30, vl); \
+ if (strcmp(st, "disabled")) \
+ run_program(PROGRAM:"play_button_press"SRC); \
+ } \
} \
- program { name: "play_button_press"; \
+ program { name: "play_button_press"SRC; \
action: PLAY_SAMPLE "button-pressed" 1.0; \
}
-#define GENLIST_PROGRAM_SELECT_NOSOUND( TARGET ) \
+#define GENLIST_PROGRAM_SELECT( TARGET ) \
program { name: "selected"; \
signal: "elm,state,selected"; \
source: "elm"; \
program { name: "unselected"; \
signal: "elm,state,unselected"; \
source: "elm"; \
- transition: LINEAR 0.1; \
action: STATE_SET "default" 0.0; \
TARGET \
}
set_state(PART:"bg_dialogue", "selected", 0.0); \
run_program(PROGRAM:"target_selected"); \
} \
- after: "play_button_press"; \
- } \
- program { name: "selected,nosound"; \
- signal: "elm,state,selected"; \
- source: "elm,nosound"; \
- script { \
- new st[31]; \
- new Float:vl; \
- get_state(PART:"bg_dialogue", st, 30, vl); \
- if (!strcmp(st, "top")) \
- set_state(PART:"bg_dialogue", "top_selected", 0.0); \
- else if (!strcmp(st, "center")) \
- set_state(PART:"bg_dialogue", "center_selected", 0.0); \
- else if (!strcmp(st, "bottom")) \
- set_state(PART:"bg_dialogue", "bottom_selected", 0.0); \
- else if (!strcmp(st, "default")) \
- set_state(PART:"bg_dialogue", "selected", 0.0); \
- run_program(PROGRAM:"target_selected"); \
- } \
} \
program { name: "unselected"; \
signal: "elm,state,unselected"; \
source: "elm"; \
- transition: LINEAR 0.1; \
script { \
new st[31]; \
new Float:vl; \
action: STATE_SET "selected" 0.0; \
TARGET \
}\
- program { name: "play_button_press"; \
- action: PLAY_SAMPLE "button-pressed" 1.0; \
- } \
program { name: "target_unselected"; \
action: STATE_SET "default" 0.0; \
TARGET \
program { name: "unselected_arrow"; \
signal: "elm,state,unselected"; \
source: "elm"; \
- transition: LINEAR 0.1; \
script { \
new st[31]; \
new Float:vl; \
TARGET \
}
+#define GENLIST_PROGRAM_DECORATE_REORDER( NAME, TARGET ) \
+ program { name: "reorder_enabled"NAME; \
+ signal: "elm,state,reorder,mode_set"; \
+ source: "elm"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"state", st, 30, vl); \
+ if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
+ run_program(PROGRAM:"decorate_reorder_set"NAME); \
+ } else { \
+ run_program(PROGRAM:"reorder_set"NAME); \
+ } \
+ } \
+ } \
+ program { name: "reorder_disabled"NAME; \
+ signal: "elm,state,reorder,mode_unset"; \
+ source: "elm"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"state", st, 30, vl); \
+ if (!strcmp(st, "decorate") || !strcmp(st, "decorate_reorder")) { \
+ run_program(PROGRAM:"decorate_set"NAME); \
+ } else { \
+ run_program(PROGRAM:"default_set"NAME); \
+ } \
+ } \
+ } \
+ program { name: "decorate_enabled_effect"NAME; \
+ signal: "elm,state,decorate,enabled,effect";\
+ source: "elm";\
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"state", st, 30, vl); \
+ if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
+ run_program(PROGRAM:"decorate_reorder_set"NAME); \
+ } else { \
+ run_program(PROGRAM:"decorate_set"NAME); \
+ } \
+ } \
+ }\
+ program { name: "decorate_disabled_effect"NAME;\
+ signal: "elm,state,decorate,disabled,effect";\
+ source: "elm";\
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"state", st, 30, vl); \
+ if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
+ run_program(PROGRAM:"reorder_set"NAME); \
+ } else { \
+ run_program(PROGRAM:"default_set"NAME); \
+ } \
+ } \
+ }\
+ program { name: "decorate_enabled"NAME;\
+ signal: "elm,state,decorate,enabled";\
+ source: "elm";\
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"state", st, 30, vl); \
+ if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
+ run_program(PROGRAM:"decorate_reorder_set"NAME); \
+ } else { \
+ run_program(PROGRAM:"decorate_set"NAME); \
+ } \
+ } \
+ }\
+ program { name: "decorate_disabled"NAME;\
+ signal: "elm,state,decorate,disabled";\
+ source: "elm";\
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"state", st, 30, vl); \
+ if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) { \
+ run_program(PROGRAM:"reorder_set"NAME); \
+ } else { \
+ run_program(PROGRAM:"default_set"NAME); \
+ } \
+ } \
+ } \
+ program { name: "default_set"NAME; \
+ action: STATE_SET "default" 0.0;\
+ target: "state"; \
+ TARGET \
+ } \
+ program { name: "decorate_set"NAME; \
+ action: STATE_SET "decorate" 0.0;\
+ target: "state"; \
+ TARGET \
+ } \
+ program { name: "reorder_set"NAME; \
+ action: STATE_SET "reorder" 0.0;\
+ target: "state"; \
+ TARGET \
+ } \
+ program { name: "decorate_reorder_set"NAME; \
+ action: STATE_SET "decorate_reorder" 0.0;\
+ target: "state"; \
+ TARGET \
+ }
+
#define GENLIST_PROGRAM_FLIP \
program { name: "flip_enabled"; \
signal: "elm,state,flip,enabled"; \
source: "elm"; \
transition: DECELERATE 0.5; \
- action: STATE_SET "flip_enabled" 0.0; \
+ action: STATE_SET "flipped" 0.0; \
target: "elm.flip.content"; \
target: "elm.flip.icon"; \
} \
program { name: "flip_enabled_bg"; \
signal: "elm,state,flip,enabled"; \
source: "elm"; \
- action: STATE_SET "flip_enabled" 0.0; \
+ action: STATE_SET "flipped" 0.0; \
target: "elm.flip.bg"; \
} \
program { name: "flip_disabled_bg"; \
target: "elm.flip.eraser"; \
}
-#define GENLIST_PROGRAM_FLIP_TARGET( TARGET, BG ) \
- program { name: "flip_enabled"; \
+#define GENLIST_PROGRAM_FLIP_TARGET( TARGET ) \
+ program { name: "flip_enabled_target"; \
signal: "elm,state,flip,enabled"; \
source: "elm"; \
- action: STATE_SET "flip_enabled" 0.0; \
- transition: DECELERATE 0.5; \
- TARGET; \
+ action: STATE_SET "flipped" 0.0; \
+ TARGET \
} \
- program { name: "flip_disabled"; \
+ program { name: "flip_disabled_target"; \
signal: "elm,state,flip,disabled"; \
source: "elm"; \
action: STATE_SET "default" 0.0; \
- transition: DECELERATE 0.5; \
TARGET \
- } \
- program { name: "flip_enabled_noeffect"; \
+ }
+
+#define GENLIST_PROGRAM_FLIP_EFFECT_TARGET( TARGET ) \
+ program { name: "flip_enabled_effect"; \
signal: "elm,state,flip,enabled"; \
source: "elm"; \
- action: STATE_SET "flip_enabled" 0.0; \
- BG; \
+ transition: DECELERATE 0.5; \
+ action: STATE_SET "flipped" 0.0; \
+ TARGET \
} \
- program { name: "flip_disabled_noeffect"; \
+ program { name: "flip_disabled_effect"; \
signal: "elm,state,flip,disabled"; \
source: "elm"; \
+ transition: DECELERATE 0.5; \
action: STATE_SET "default" 0.0; \
- BG; \
+ TARGET \
}
#define GENLIST_PROGRAM_EDITMODE \
target: "bg_dialogue_right"; \
}
+/***************************************************************************/
+/***************************************************************************/
+
#define GENLIST_PROGRAMS_NORMAL( TARGET ) \
programs { \
GENLIST_PROGRAM_DEFAULT( TARGET \
- target: "bg_clip"; \
- target: "bottom_line_clip"; \
target: "bg"; \
+ target: "bg_clip"; \
target: "bottom_line"; \
target: "bottom_line2"; \
+ target: "bottom_line_clip"; \
target: "bg_reorder"; \
target: "elm.padding.left"; \
target: "elm.padding.right"; \
target: "bottom_line2"; \
target: "bg_reorder"; \
) \
+ GENLIST_PROGRAM_FOCUS \
GENLIST_PROGRAM_SELECT( TARGET \
target: "bg"; \
target: "bottom_line"; \
target: "bottom_line2"; \
target: "bg_reorder"; \
) \
- GENLIST_PROGRAM_EXPAND_FADE( TARGET \
- target: "bg"; \
- target: "bottom_line"; \
- target: "bottom_line2"; \
- target: "bg_reorder"; \
- ) \
- GENLIST_PROGRAM_REORDER( \
+ GENLIST_PROGRAM_SOUND( "bg" ) \
+ GENLIST_PROGRAM_SOUND( "bg_reorder" ) \
+ GENLIST_PROGRAM_DECORATE_REORDER("normal", TARGET \
target: "bg_clip"; \
- target: "bottom_line_clip"; \
- target: "elm.padding.left"; \
- target: "elm.padding.right"; \
target: "bg_reorder_clip"; \
- ) \
- GENLIST_PROGRAM_DECORATE( \
- target: "bg_clip"; \
target: "bottom_line_clip"; \
target: "elm.padding.left"; \
target: "elm.padding.right"; \
#define GENLIST_PROGRAMS_DIALOGUE( TARGET ) \
programs { \
GENLIST_PROGRAM_DEFAULT( TARGET \
- target: "bg_dialogue_clip"; \
target: "bg_dialogue"; \
+ target: "bg_dialogue_clip"; \
target: "elm.padding.left"; \
target: "elm.padding.right"; \
) \
GENLIST_PROGRAM_DISABLED( TARGET ) \
+ GENLIST_PROGRAM_FOCUS \
GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
program { name: "bg_color_change"; \
signal: "bg_color_change"; \
action: STATE_SET "2depth" 0.0; \
target: "bg_dialogue_clip"; \
} \
- GENLIST_PROGRAM_EXPAND_FADE( TARGET \
- target: "bg_dialogue"; \
- ) \
- GENLIST_PROGRAM_DECORATE( TARGET \
- target: "bg_dialogue_clip"; \
+ GENLIST_PROGRAM_SOUND("bg_dialogue") \
+ GENLIST_PROGRAM_DECORATE_REORDER( "normal", TARGET \
target: "elm.padding.left"; \
target: "elm.padding.right"; \
) \
GENLIST_PROGRAM_EDITMODE \
}
-#define GENLIST_PROGRAMS_MULTILINE( TARGET ) \
- programs { \
- GENLIST_PROGRAM_DISABLED_DIALOGUE( TARGET ) \
- GENLIST_PROGRAM_SELECT_DIALOGUE( TARGET ) \
- GENLIST_PROGRAM_FLIP \
- }
-
#define GENLIST_PROGRAMS_READ_TEXT( TARGET ) \
programs { \
GENLIST_PROGRAM_DEFAULT( TARGET \
- target: "bg_clip"; \
- target: "bottom_line_clip"; \
target: "bg"; \
+ target: "bg_clip"; \
target: "bottom_line"; \
target: "bottom_line2"; \
+ target: "bottom_line_clip"; \
target: "bg_reorder"; \
target: "elm.padding.left"; \
target: "elm.padding.right"; \
) \
- GENLIST_PROGRAM_DISABLED( \
+ GENLIST_PROGRAM_DISABLED( TARGET \
target: "bg"; \
target: "bottom_line"; \
target: "bottom_line2"; \
target: "bg_reorder"; \
- TARGET \
) \
- program { name: "selected"; \
- signal: "elm,state,selected"; \
- source: "elm"; \
- action: STATE_SET "selected" 0.0; \
- target: "bg"; \
- target: "bottom_line"; \
- target: "bottom_line2"; \
- target: "bg_reorder"; \
- TARGET \
- after: "play_button_press"; \
- } \
- program { name: "selected,nosound"; \
- signal: "elm,state,selected"; \
- source: "elm,nosound"; \
- action: STATE_SET "selected" 0.0; \
- target: "bg"; \
- target: "bottom_line"; \
- target: "bottom_line2"; \
- target: "bg_reorder"; \
- TARGET \
- } \
- program { name: "unselected"; \
- signal: "elm,state,unselected"; \
- source: "elm"; \
- transition: LINEAR 0.1; \
- action: STATE_SET "default" 0.0; \
+ GENLIST_PROGRAM_FOCUS \
+ GENLIST_PROGRAM_SELECT( TARGET \
target: "bg"; \
target: "bottom_line"; \
target: "bottom_line2"; \
target: "bg_reorder"; \
- } \
+ ) \
+ GENLIST_PROGRAM_SOUND("bg") \
+ GENLIST_PROGRAM_DECORATE_REORDER( "normal", \
+ target: "bg_clip"; \
+ target: "bg_reorder_clip"; \
+ target: "bottom_line_clip"; \
+ target: "elm.padding.left"; \
+ target: "elm.padding.right"; \
+ ) \
program { name: "unselected_target"; \
- transition: LINEAR 0.1; \
action: STATE_SET "default" 0.0; \
TARGET \
} \
run_program(PROGRAM:"unselected_target"); \
} \
} \
- program { name: "play_button_press"; \
- action: PLAY_SAMPLE "button-pressed" 1.0; \
- } \
- GENLIST_PROGRAM_EXPAND_FADE( \
- target: "bg"; \
- target: "bottom_line"; \
- target: "bottom_line2"; \
- target: "bg_reorder"; \
- TARGET \
- ) \
- GENLIST_PROGRAM_REORDER( \
- target: "bg_clip"; \
- target: "bottom_line_clip"; \
- target: "elm.padding.left"; \
- target: "elm.padding.right"; \
- target: "bg_reorder_clip"; \
- ) \
- GENLIST_PROGRAM_DECORATE( \
- target: "bg_clip"; \
- target: "bottom_line_clip"; \
- target: "elm.padding.left"; \
- target: "elm.padding.right"; \
- ) \
program { name: "go_read"; \
signal: "elm,state,read"; \
source: "*"; \
run_program(PROGRAM:"go_read_target"); \
} \
} \
- program { name: "go_read_target"; \
- action: STATE_SET "read" 0.0; \
- TARGET \
- } \
program { name: "go_unread"; \
signal: "elm,state,unread"; \
source: "*"; \
run_program(PROGRAM:"go_unread_target"); \
} \
} \
+ program { name: "go_read_target"; \
+ action: STATE_SET "read" 0.0; \
+ TARGET \
+ } \
program { name: "go_unread_target"; \
action: STATE_SET "unread" 0.0; \
TARGET \
}
#define GENLIST_PROGRAMS_DECORATE_EFFECT( TARGET ) \
- program { name: "decorate_enabled_effect"; \
+ program { name: "decorate_enabled_effect_ef"; \
signal: "elm,state,decorate,enabled,effect";\
source: "elm";\
transition: DECELERATE 0.5;\
action: STATE_SET "decorate" 0.0;\
TARGET \
}\
- program { name: "decorate_disabled_effect";\
+ program { name: "decorate_disabled_effect_ef";\
signal: "elm,state,decorate,disabled,effect";\
source: "elm";\
transition: ACCELERATE 0.5;\
action: STATE_SET "default" 0.0;\
TARGET \
} \
- program { name: "decorate_enabled";\
+ program { name: "decorate_enabled_ef";\
signal: "elm,state,decorate,enabled";\
source: "elm";\
action: STATE_SET "decorate" 0.0;\
TARGET \
}\
- program { name: "decorate_disabled";\
+ program { name: "decorate_disabled_ef";\
signal: "elm,state,decorate,disabled";\
source: "elm";\
action: STATE_SET "default" 0.0;\
program { \
signal: "elm,state,rename,show"; \
action: STATE_SET "default" 0.0; \
- target: "elm.icon.rename"; \
+ target: "elm.image.rename"; \
} \
program { \
signal: "elm,state,rename,hide"; \
action: STATE_SET "hide" 0.0; \
- target: "elm.icon.rename"; \
+ target: "elm.image.rename"; \
+ }
+
+#define GENLIST_PROGRAMS_THUMB \
+ GENLIST_PROGRAM_DECORATE_REORDER( "thumb", target: "elm.thumb"; ) \
+ GENLIST_PROGRAM_FLIP_TARGET( target: "elm.thumb.clip"; ) \
+ program { name: "enabled_thumb"; \
+ signal: "elm,state,enabled"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "base"; \
+ target: "elm.thumb"; \
+ } \
+ program { name: "disabled_thumb"; \
+ signal: "elm,state,disabled"; \
+ source: "elm"; \
+ action: STATE_SET "disabled" 0.0; \
+ target: "base"; \
+ target: "elm.thumb"; \
+ } \
+ program { name: "selected_thumb"; \
+ signal: "elm,state,selected"; \
+ source: "elm"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"elm.thumb", st, 30, vl); \
+ if (!strcmp(st, "reorder") || !strcmp(st, "decorate_reorder")) \
+ set_state(PART:"elm.thumb", "reorder_selected", 0.0); \
+ else \
+ set_state(PART:"elm.thumb", "selected", 0.0); \
+ } \
+ } \
+ program { name: "unselected_thumb"; \
+ signal: "elm,state,unselected"; \
+ source: "elm"; \
+ script { \
+ new st[31]; \
+ new Float:vl; \
+ get_state(PART:"elm.thumb", st, 30, vl); \
+ if (!strcmp(st, "reorder_selected")) \
+ set_state(PART:"elm.thumb", "reorder", 0.0); \
+ else \
+ set_state(PART:"elm.thumb", "default", 0.0); \
+ } \
}
//****************************************************************************//
scale: 1; \
type: SWALLOW; \
DESCRIPION \
- GENLIST_DESCRIPTION_FADE_ICON \
}
#define GENLIST_PARAM_ICON_BIG \
- min: GENLIST_ICON_BIG_SIZE GENLIST_ICON_BIG_SIZE; \
- max: GENLIST_ICON_BIG_SIZE GENLIST_ICON_BIG_SIZE;
+ min: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE; \
+ max: GENLIST_ICON_MEDIUM_SIZE GENLIST_ICON_MEDIUM_SIZE;
#define GENLIST_PARAM_ICON_SMALL \
min: GENLIST_ICON_SMALL_SIZE GENLIST_ICON_SMALL_SIZE; \
max: GENLIST_ICON_ONOFF_WIDTH GENLIST_ICON_ONOFF_HEIGHT;
#define GENLIST_PARAM_ICON_THUMBNAIL1\
- min: GENLIST_ICON_THUMBNAIL1_SIZE GENLIST_ICON_THUMBNAIL1_SIZE; \
- max: GENLIST_ICON_THUMBNAIL1_SIZE GENLIST_ICON_THUMBNAIL1_SIZE;
+ min: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE; \
+ max: GENLIST_ICON_LARGE_SIZE GENLIST_ICON_LARGE_SIZE;
#define GENLIST_PARAM_ICON_CHECK_RADIO \
min: GENLIST_ICON_CHECK_RADIO_SIZE GENLIST_ICON_CHECK_RADIO_SIZE; \
scale: 1; \
type: IMAGE; \
DESCRIPION \
- GENLIST_DESCRIPTION_FADE \
}
#define GENLIST_PARAM_PASSWORD_IMAGE \
GENLIST_PART_ICON("touch_arrow", \
ignore_flags: ON_HOLD; \
GENLIST_DESCRIPTION_ENVELOP("arrow", ) \
- GENLIST_DESCRIPTION_FADE \
) \
GENLIST_PART_RECT("arrow_clip", \
GENLIST_DESCRIPTION_ENVELOP("arrow", \
mouse_events: 0; \
GENLIST_DESCRIPTION_R("elm.padding.right", \
fixed: 1 1; \
- min: 72 72; \
- max: 72 72; \
+ min: 45 45; \
+ max: 45 45; \
image.normal: "00_button_expand_closed.png"; \
) \
description { state: "default_press" 0.0; \
inherit: "expand_opened" 0.0; \
image.normal: "00_button_expand_opened_press.png"; \
} \
- GENLIST_DESCRIPTION_FADE \
)
/*****************************************************************************/
/******************************* Genlist RECT ********************************/
scale: 1; \
type: RECT; \
DESCRIPION \
- GENLIST_DESCRIPTION_FADE \
}
/*****************************************************************************/
#define GENLIST_PART_TEXT(NAME, DESCRIPION) \
part { name: NAME; \
scale: 1; \
- mouse_events: 0; \
type: TEXT; \
+ repeat_events: 1; \
DESCRIPION \
- GENLIST_DESCRIPTION_FADE \
}
#define GENLIST_PART_TEXTBLOCK(NAME, DESCRIPION) \
part { name: NAME; \
scale: 1; \
- mouse_events: 0; \
type: TEXTBLOCK; \
+ repeat_events: 1; \
DESCRIPION \
- GENLIST_DESCRIPTION_FADE \
}
/*************************** parameters **********************************/
min: 48 38; \
max: -1 38; \
fixed: 0 1; \
+ color: GENLIST_LIST_BUBBLE_COLOR; \
) \
- GENLIST_DESCRIPTION_FADE \
+ description { state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ color: GENLIST_LIST_BUBBLE_PRESS_COLOR; \
+ } \
) \
GENLIST_PART_TEXT(NAME, \
GENLIST_DESCRIPTION_RTB(RIGHT, TOP, BOTTOM, \
rel2.offset: -10 -1; /* This maintain the text alignment with bubble text. */\
GENLIST_PARAM_LIST_BUBBLE_TEXT \
) \
+ description { state: "selected" 0.0; \
+ inherit: "default" 0.0; \
+ color: GENLIST_LIST_BUBBLE_TEXT_FOCUS_COLOR; \
+ } \
)
#if 0
}
#define GENLIST_PROGRAM_FLIP_1TEXT \
- program { name: "flip_enabled"; \
+ program { name: "flipped"; \
signal: "elm,state,flip,enabled"; \
source: "elm"; \
- action: STATE_SET "flip_enabled" 0.0; \
+ action: STATE_SET "flipped" 0.0; \
target: "elm.text"; \
target: "elm.flip.content"; \
} \
}
#define GENLIST_PROGRAM_FLIP_2TEXT \
- program { name: "flip_enabled"; \
+ program { name: "flipped"; \
signal: "elm,state,flip,enabled"; \
source: "elm"; \
- action: STATE_SET "flip_enabled" 0.0; \
+ action: STATE_SET "flipped" 0.0; \
target: "elm.text.1"; \
target: "elm.text.2"; \
target: "elm.flip.content"; \
}
#define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
- program { name: "flip_enabled"; \
+ program { name: "flipped"; \
signal: "elm,state,flip,enabled"; \
source: "elm"; \
- action: STATE_SET "flip_enabled" 0.0; \
+ action: STATE_SET "flipped" 0.0; \
target: "elm.text.1"; \
target: "elm.text.2"; \
target: "elm.icon"; \
}
#define GENLIST_PROGRAM_FLIP_2TEXT_2ICON \
- program { name: "flip_enabled"; \
+ program { name: "flipped"; \
signal: "elm,state,flip,enabled"; \
source: "elm"; \
- action: STATE_SET "flip_enabled" 0.0; \
+ action: STATE_SET "flipped" 0.0; \
target: "elm.text.1"; \
target: "elm.text.2"; \
target: "elm.icon.1"; \
}
#define GENLIST_PROGRAM_FLIP_3TEXT_2ICON \
- program { name: "flip_enabled"; \
+ program { name: "flipped"; \
signal: "elm,state,flip,enabled"; \
source: "elm"; \
- action: STATE_SET "flip_enabled" 0.0; \
+ action: STATE_SET "flipped" 0.0; \
target: "elm.text.1"; \
target: "elm.text.2"; \
target: "elm.text.3"; \
}
#define GENLIST_DESCRIPTION_FLIP_ENABLED \
- description { state: "flip_enabled" 0.0; \
+ description { state: "flipped" 0.0; \
inherit: "default" 0.0; \
visible: 0; \
}
new Float:vl; \
get_state(PART:"elm.text", st, 30, vl); \
set_state(PART:"bg", "selected", 0.0); \
- if (!strcmp(st, "flip_enabled")) \
+ if (!strcmp(st, "flipped")) \
set_state(PART:"elm.text", "selected", 1.0); \
else \
set_state(PART:"elm.text", "selected", 0.0); \