summaryrefslogtreecommitdiff
path: root/src/bin/elementary
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-12-31 09:53:03 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-12-31 09:53:03 -0500
commitbaa1e6553bc96a1f099c1aadc1f5fcfd2295f520 (patch)
tree4596f1f50a4c1eff308162f3bc84286e43c284bc /src/bin/elementary
parente1afc7c1816e5d91e4f05c1644c6b4c7d7c53d25 (diff)
Efl.Ui.Animation_View: Change state name
Summary: play-> playing play_back -> playing_backwards pause -> paused stop -> stoped Depends on D10862 ref T8476 Test Plan: N/A Reviewers: Hermet, bu5hm4n, segfaultxavi, kimcinoo Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8476 Differential Revision: https://phab.enlightenment.org/D10915
Diffstat (limited to 'src/bin/elementary')
-rw-r--r--src/bin/elementary/test_efl_gfx_vg_value_provider.c15
-rw-r--r--src/bin/elementary/test_efl_ui_animation_view.c14
2 files changed, 15 insertions, 14 deletions
diff --git a/src/bin/elementary/test_efl_gfx_vg_value_provider.c b/src/bin/elementary/test_efl_gfx_vg_value_provider.c
index 8c246a2..e7a1520 100644
--- a/src/bin/elementary/test_efl_gfx_vg_value_provider.c
+++ b/src/bin/elementary/test_efl_gfx_vg_value_provider.c
@@ -87,7 +87,7 @@ btn_clicked_cb(void *data , const Efl_Event *ev )
87 efl_player_paused_set((Evas_Object*)data, EINA_TRUE); 87 efl_player_paused_set((Evas_Object*)data, EINA_TRUE);
88 else if (!strcmp("Resume", text)) 88 else if (!strcmp("Resume", text))
89 efl_player_paused_set((Evas_Object*)data, EINA_FALSE); 89 efl_player_paused_set((Evas_Object*)data, EINA_FALSE);
90 else if (!strcmp("Play Back", text)) 90 else if (!strcmp("Play Backwards", text))
91 { 91 {
92 double speed = efl_player_playback_speed_get(anim_view); 92 double speed = efl_player_playback_speed_get(anim_view);
93 efl_player_playback_speed_set(anim_view, speed > 0 ? speed * -1 : speed); 93 efl_player_playback_speed_set(anim_view, speed > 0 ? speed * -1 : speed);
@@ -195,16 +195,17 @@ update_anim_view_state(Evas_Object *anim_view, Evas_Object *label)
195 case EFL_UI_ANIMATION_VIEW_STATE_NOT_READY: 195 case EFL_UI_ANIMATION_VIEW_STATE_NOT_READY:
196 efl_text_set(label, "State = Not Ready"); 196 efl_text_set(label, "State = Not Ready");
197 break; 197 break;
198 case EFL_UI_ANIMATION_VIEW_STATE_PLAY: 198 case EFL_UI_ANIMATION_VIEW_STATE_PLAYING:
199 efl_text_set(label, "State = Playing"); 199 efl_text_set(label, "State = Playing");
200 break; 200 break;
201 case EFL_UI_ANIMATION_VIEW_STATE_PLAY_BACK: 201 case EFL_UI_ANIMATION_VIEW_STATE_PLAYING_BACKWARDS:
202 efl_text_set(label, "State = Playing Back"); 202 efl_text_set(label, "State = Playing Backwards");
203
203 break; 204 break;
204 case EFL_UI_ANIMATION_VIEW_STATE_PAUSE: 205 case EFL_UI_ANIMATION_VIEW_STATE_PAUSED:
205 efl_text_set(label, "State = Paused"); 206 efl_text_set(label, "State = Paused");
206 break; 207 break;
207 case EFL_UI_ANIMATION_VIEW_STATE_STOP: 208 case EFL_UI_ANIMATION_VIEW_STATE_STOPPED:
208 efl_text_set(label, "State = Stopped"); 209 efl_text_set(label, "State = Stopped");
209 break; 210 break;
210 } 211 }
@@ -522,7 +523,7 @@ test_efl_gfx_vg_value_provider(void *data EINA_UNUSED, Evas_Object *obj EINA_UNU
522 efl_add(EFL_UI_BUTTON_CLASS, box_sub, 523 efl_add(EFL_UI_BUTTON_CLASS, box_sub,
523 efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0), 524 efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0),
524 efl_gfx_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL), 525 efl_gfx_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL),
525 efl_text_set(efl_added, "Play Back"), 526 efl_text_set(efl_added, "Play Backwards"),
526 efl_pack(box_sub, efl_added), 527 efl_pack(box_sub, efl_added),
527 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED, btn_clicked_cb, anim_view)); 528 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED, btn_clicked_cb, anim_view));
528 529
diff --git a/src/bin/elementary/test_efl_ui_animation_view.c b/src/bin/elementary/test_efl_ui_animation_view.c
index 17163c3..912aa71 100644
--- a/src/bin/elementary/test_efl_ui_animation_view.c
+++ b/src/bin/elementary/test_efl_ui_animation_view.c
@@ -32,7 +32,7 @@ btn_clicked_cb(void *data , const Efl_Event *ev )
32 efl_player_paused_set(anim_view, EINA_TRUE); 32 efl_player_paused_set(anim_view, EINA_TRUE);
33 else if (!strcmp("Resume", text)) 33 else if (!strcmp("Resume", text))
34 efl_player_paused_set(anim_view, EINA_FALSE); 34 efl_player_paused_set(anim_view, EINA_FALSE);
35 else if (!strcmp("Play Back", text)) 35 else if (!strcmp("Play Backwards", text))
36 { 36 {
37 double speed = efl_player_playback_speed_get(anim_view); 37 double speed = efl_player_playback_speed_get(anim_view);
38 efl_player_playback_speed_set(anim_view, speed > 0 ? speed * -1 : speed); 38 efl_player_playback_speed_set(anim_view, speed > 0 ? speed * -1 : speed);
@@ -88,16 +88,16 @@ update_anim_view_state(Evas_Object *anim_view, Evas_Object *label)
88 case EFL_UI_ANIMATION_VIEW_STATE_NOT_READY: 88 case EFL_UI_ANIMATION_VIEW_STATE_NOT_READY:
89 efl_text_set(label, "State = Not Ready"); 89 efl_text_set(label, "State = Not Ready");
90 break; 90 break;
91 case EFL_UI_ANIMATION_VIEW_STATE_PLAY: 91 case EFL_UI_ANIMATION_VIEW_STATE_PLAYING:
92 efl_text_set(label, "State = Playing"); 92 efl_text_set(label, "State = Playing");
93 break; 93 break;
94 case EFL_UI_ANIMATION_VIEW_STATE_PLAY_BACK: 94 case EFL_UI_ANIMATION_VIEW_STATE_PLAYING_BACKWARDS:
95 efl_text_set(label, "State = Playing Back"); 95 efl_text_set(label, "State = Playing Backwards");
96 break; 96 break;
97 case EFL_UI_ANIMATION_VIEW_STATE_PAUSE: 97 case EFL_UI_ANIMATION_VIEW_STATE_PAUSED:
98 efl_text_set(label, "State = Paused"); 98 efl_text_set(label, "State = Paused");
99 break; 99 break;
100 case EFL_UI_ANIMATION_VIEW_STATE_STOP: 100 case EFL_UI_ANIMATION_VIEW_STATE_STOPPED:
101 efl_text_set(label, "State = Stopped"); 101 efl_text_set(label, "State = Stopped");
102 break; 102 break;
103 } 103 }
@@ -244,7 +244,7 @@ test_efl_ui_animation_view(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
244 efl_add(EFL_UI_BUTTON_CLASS, box3, 244 efl_add(EFL_UI_BUTTON_CLASS, box3,
245 efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0), 245 efl_gfx_hint_weight_set(efl_added, EFL_GFX_HINT_EXPAND, 0),
246 efl_gfx_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL), 246 efl_gfx_hint_align_set(efl_added, EVAS_HINT_FILL, EVAS_HINT_FILL),
247 efl_text_set(efl_added, "Play Back"), 247 efl_text_set(efl_added, "Play Backwards"),
248 efl_pack(box3, efl_added), 248 efl_pack(box3, efl_added),
249 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED, btn_clicked_cb, anim_view)); 249 efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED, btn_clicked_cb, anim_view));
250 250