description { state: "visible" 0.0; \
inherit: "default" 0.0; \
} \
+ description { state: "pressed" 0.0; \
+ inherit: "default" 0.0; \
+ image.normal: "00_check_press_bg.png"; \
+ } \
description { state: "disabled" 0.0; \
inherit: "default" 0.0; \
image.normal: "00_check_dim_bg.png"; \
image.normal: "00_check_Activated_dim.png"; \
color: 255 255 255 255; \
} \
+ description { state: "pressed" 0.0; \
+ inherit: "default" 0.0; \
+ visible: 1; \
+ image.normal: "00_check_press.png"; \
+ color: 255 255 255 255; \
+ } \
} \
part { name: "sequence_clip"; \
type: RECT; \
set_int(check_visible, CHECK_HIDE); \
} \
} \
+ program { name: "bg_normal"; \
+ signal: "elm,state,mouse,up"; \
+ source: "elm"; \
+ action: STATE_SET "default" 0.0; \
+ target: "bg"; \
+ target: "check"; \
+ } \
+ program { name: "pressed"; \
+ signal: "elm,state,mouse,down"; \
+ source: "elm"; \
+ action: STATE_SET "pressed" 0.0; \
+ target: "bg"; \
+ target: "check"; \
+ } \
+ program { name: "mouse,out"; \
+ signal: "mouse,out"; \
+ source: "events2"; \
+ script { \
+ if (get_int(check_state) == CHECK_STATE_VISIBLE) \
+ { \
+ set_state(PART:"check", "visible", 0.0); \
+ set_state(PART:"sequence_clip", "visible", 0.0); \
+ } \
+ else \
+ { \
+ set_state(PART:"check", "default", 0.0); \
+ set_state(PART:"sequence_clip", "default", 0.0); \
+ } \
+ } \
+ } \
program { name: "check_on"; \
signal: "elm,state,check,on"; \
source: "elm"; \
}
////////////////////////////////////////////////////////////////////////////////
CHECK_STYLE_DEFAULT_GENLIST_EDITMODE("default/genlist_editmode", CHECK_STYLE_DEFAULT_DEFAULT_BG_IMAGE_MIN_WIDTH_INC, CHECK_STYLE_DEFAULT_DEFAULT_BG_IMAGE_MIN_HEIGHT_INC)
+CHECK_STYLE_DEFAULT_GENLIST_EDITMODE("default/genlist", CHECK_STYLE_DEFAULT_DEFAULT_BG_IMAGE_MIN_WIDTH_INC, CHECK_STYLE_DEFAULT_DEFAULT_BG_IMAGE_MIN_HEIGHT_INC)
////////////////////////////////////////////////////////////////////////////////
#define CHECK_STYLE_FOR_GENLIST(style_name, min_width, min_height) \
// not be repeated!!!!!!!!
GENLIST_PROGRAM_SOUND("sound_left")
GENLIST_PROGRAM_SOUND("sound_right")
- GENLIST_PROGRAM_CHECK("elm.edit.icon.1")
GENLIST_PROGRAM_REORDER(
target: "bg_clip";
target: "bg_reorder_clip";
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"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"; \
parts {
GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon", "elm.padding.left")
}
- GENLIST_PROGRAM_CHECK("elm.icon")
}
// 2.2.1.16 (textblock)
parts {
GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon", "elm.padding.left")
}
- GENLIST_PROGRAM_CHECK("elm.icon")
}
// 2.2.1.17
GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
GENLIST_PART_ICON_BTN_02_RTB("elm.icon.2", "elm.padding.right", "elm.padding.top", "elm.padding.bottom")
}
- GENLIST_PROGRAM_CHECK("elm.icon.1")
}
// 2.2.1.17 (textblock)
GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
GENLIST_PART_ICON_BTN_02_RTB("elm.icon.2", "elm.padding.right", "elm.padding.top", "elm.padding.bottom")
}
- GENLIST_PROGRAM_CHECK("elm.icon")
}
// 2.2.1.18
GENLIST_PART_FOCUS
}
GENLIST_PROGRAMS_NORMAL( target: "elm.text"; target: "elm.icon.1"; target: "elm.icon.2"; )
- GENLIST_PROGRAM_CHECK("elm.icon.1")
GENLIST_PROGRAM_SOUND("elm.text")
}
GENLIST_PART_FOCUS
}
GENLIST_PROGRAMS_NORMAL( target: "elm.text"; target: "elm.icon.1"; target: "elm.icon.2"; target: "elm.icon.3"; )
- GENLIST_PROGRAM_CHECK("elm.icon.1")
GENLIST_PROGRAM_SOUND("elm.text")
}
GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
GENLIST_PART_ICON_BIG_R("elm.icon.2", "elm.padding.right")
}
- GENLIST_PROGRAM_CHECK("elm.icon.1")
}
// 2.2.1.22
GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
GENLIST_PART_ICON_BTN_02_RTB("elm.icon.2", "elm.padding.right", "elm.padding.top", "elm.padding.bottom")
}
- GENLIST_PROGRAM_CHECK("elm.icon.1")
}
// 2.2.1.24
GENLIST_PART_FOCUS
}
GENLIST_PROGRAMS_NORMAL( target: "elm.text"; target: "elm.icon.1"; target: "elm.icon.2"; target: "elm.icon.3"; )
- GENLIST_PROGRAM_CHECK("elm.icon.1")
GENLIST_PROGRAM_SOUND("elm.text")
}
parts {
GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon", "elm.padding.left")
}
- GENLIST_PROGRAM_CHECK("elm.icon")
}
// 2.2.2.33
parts {
GENLIST_PART_ICON_CHECK_RADIO_L("elm.icon.1", "elm.padding.left")
}
- GENLIST_PROGRAM_CHECK("elm.icon.1")
}
// 2.2.2.34
}
GENLIST_PROGRAMS_NORMAL( target: "elm.text.1"; target: "elm.text.2";
target: "elm.icon.1"; target: "elm.icon.2";)
- GENLIST_PROGRAM_CHECK("elm.icon.1")
GENLIST_PROGRAM_SOUND("elm.text.1")
GENLIST_PROGRAM_SOUND("elm.text.2")
}
GENLIST_PART_FOCUS
}
GENLIST_PROGRAMS_NORMAL( target: "elm.text.1"; target: "elm.text.2"; )
- GENLIST_PROGRAM_CHECK("elm.icon.1")
GENLIST_PROGRAM_SOUND("elm.text.1")
GENLIST_PROGRAM_SOUND("elm.text.2")
}