rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=8035a89e85fe6b69a3878f3f05a62f2cc484bad5
commit 8035a89e85fe6b69a3878f3f05a62f2cc484bad5 Author: Andrii Kroitor <an.kroi...@samsung.com> Date: Tue Jan 12 17:56:05 2016 +0200 editor: add resetters for program properties --- src/bin/editor/default.c | 38 ++++++++++++++++++++++++++++++++++++ src/bin/editor/default.h | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/src/bin/editor/default.c b/src/bin/editor/default.c index 81b9240..56b469e 100644 --- a/src/bin/editor/default.c +++ b/src/bin/editor/default.c @@ -284,3 +284,41 @@ EDITOR_PART_NULL_STRING_RESET(source3, NULL) EDITOR_PART_NULL_STRING_RESET(source4, NULL) EDITOR_PART_NULL_STRING_RESET(source5, NULL) EDITOR_PART_NULL_STRING_RESET(source6, NULL) + +#define EDITOR_PROGRAM_ARGS_PROTO const char *program_name +#define EDITOR_PROGRAM_ARGS program_name + +#define EDITOR_PROGRAM_SIMPLE_RESET(FUNC, DEF_VAL) \ +EDITOR_SIMPLE_DEFAULT_CHECK(program_##FUNC, EDITOR_PROGRAM_ARGS_PROTO, EDITOR_PROGRAM_ARGS, DEF_VAL) \ +EDITOR_RESET(program_##FUNC, EDITOR_PROGRAM_ARGS_PROTO, EDITOR_PROGRAM_ARGS, DEF_VAL) + +EDITOR_PROGRAM_SIMPLE_RESET(transition_type, EDJE_TWEEN_MODE_LINEAR) +EDITOR_PROGRAM_SIMPLE_RESET(transition_from_current, false) +EDITOR_PROGRAM_SIMPLE_RESET(action, EDJE_ACTION_TYPE_NONE) +EDITOR_PROGRAM_SIMPLE_RESET(channel, EDJE_CHANNEL_EFFECT) +EDITOR_PROGRAM_SIMPLE_RESET(tone_duration, 0.1) +EDITOR_PROGRAM_SIMPLE_RESET(in_from, 0) +EDITOR_PROGRAM_SIMPLE_RESET(in_range, 0) +EDITOR_PROGRAM_SIMPLE_RESET(transition_time, 0) +EDITOR_PROGRAM_SIMPLE_RESET(sample_speed, 1.0) +EDITOR_PROGRAM_SIMPLE_RESET(value, 0) +EDITOR_PROGRAM_SIMPLE_RESET(value2, 0) +EDITOR_PROGRAM_SIMPLE_RESET(transition_value1, 0) +EDITOR_PROGRAM_SIMPLE_RESET(transition_value2, 0) +EDITOR_PROGRAM_SIMPLE_RESET(transition_value3, 0) +EDITOR_PROGRAM_SIMPLE_RESET(transition_value4, 0) + +#define EDITOR_PROGRAM_NULL_STRING_RESET(FUNC, RESET_VAL) \ +EDITOR_NULL_STRING_DEFAULT_CHECK(program_##FUNC, EDITOR_PROGRAM_ARGS_PROTO, EDITOR_PROGRAM_ARGS) \ +EDITOR_RESET(program_##FUNC, EDITOR_PROGRAM_ARGS_PROTO, EDITOR_PROGRAM_ARGS, RESET_VAL) +TODO("fix edje_edit API to accept NULL") +EDITOR_PROGRAM_NULL_STRING_RESET(filter_part, "") +EDITOR_PROGRAM_NULL_STRING_RESET(filter_state, "") +EDITOR_PROGRAM_NULL_STRING_RESET(api_name, NULL) +EDITOR_PROGRAM_NULL_STRING_RESET(api_description, NULL) +EDITOR_PROGRAM_NULL_STRING_RESET(sample_name, "") +EDITOR_PROGRAM_NULL_STRING_RESET(tone_name, "") +EDITOR_PROGRAM_NULL_STRING_RESET(signal, "") +EDITOR_PROGRAM_NULL_STRING_RESET(source, "") +EDITOR_PROGRAM_NULL_STRING_RESET(state, "") +EDITOR_PROGRAM_NULL_STRING_RESET(state2, "") diff --git a/src/bin/editor/default.h b/src/bin/editor/default.h index a4adea4..0755597 100644 --- a/src/bin/editor/default.h +++ b/src/bin/editor/default.h @@ -492,4 +492,55 @@ editor_part_pointer_mode_default_is(Evas_Object *edit_object, const char *part_n Eina_Bool editor_part_pointer_mode_reset(Evas_Object *edit_object, Change *change, const char *part_name); +Eina_Bool +editor_program_transition_type_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_transition_from_current_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_action_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_channel_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_tone_duration_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_in_from_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_in_range_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_transition_time_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_sample_speed_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_value_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_value2_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_transition_value1_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_transition_value2_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_transition_value3_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_transition_value4_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_filter_part_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_filter_state_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_api_name_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_api_description_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_sample_name_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_tone_name_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_signal_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_source_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_state_reset(Evas_Object *edit_object, Change *change, const char *program_name); +Eina_Bool +editor_program_state2_reset(Evas_Object *edit_object, Change *change, const char *program_name); + #endif /* DEFAULT_H */ --