* repackaging.
* Git: 165.213.180.234:/git/slp2.0/slp2.0-pkgs/EFL-pkgs/elementary
- * Tag: elementary_0.4.0+svn.49550slp2+3build15
+ * Tag: elementary_0.4.0+svn.49550slp2+3build16
-- ChunEon Park <chuneon.park@samsung.com> Mon, 12 Jul 2010 19:51:42 +0900
_animator_curve_in_out(double frame)
{
if (frame < 0.5)
- return _animator_curve_out(frame * 2) * 0.5;
+ return _animator_curve_in(frame * 2) * 0.5;
else
- return (_animator_curve_in(frame * 2 - 1) * 0.5) + 0.5;
+ return (_animator_curve_out(frame * 2 - 1) * 0.5) + 0.5;
}
static double
_animator_curve_in(double frame)
{
- return sqrt(1 - pow(frame - 1, 2));
+ return 1 - sqrt(1 - pow(frame, 2));
}
static double
_animator_curve_out(double frame)
{
- return 1 - sqrt(1 - pow(frame, 2));
+ return sqrt(1 - pow(frame - 1, 2));
}
static void
_delete_animator(Elm_Animator *animator)
{
- if (animator->animator)
+ if (animator->animator)
{
- ecore_animator_del(animator->animator);
- animator->animator = NULL;
+ ecore_animator_del(animator->animator);
+ animator->animator = NULL;
}
}
static void
_animator_parent_del(void *data)
{
- elm_animator_del(data);
+ Elm_Animator* animator = data; //
+ //elm_animator_del(data);
}
/**
elm_animator_auto_reverse_set(animator, EINA_FALSE);
elm_animator_curve_style_set(animator, ELM_ANIMATOR_CURVE_LINEAR);
- if (parent)
+ if (parent) {
evas_object_event_callback_add(parent, EVAS_CALLBACK_DEL,
_animator_parent_del, animator);
+ }
animator->parent = parent;
{
if (!animator)
return;
- _delete_animator(animator);
-
- if(animator->parent)
+
+ _delete_animator(animator);
+
+ if(animator->parent) {
evas_object_event_callback_del(animator->parent, EVAS_CALLBACK_DEL, _animator_parent_del);
+ }
+
free(animator);
}
if (!animator)
return;
animator->on_animating = EINA_FALSE;
- _delete_animator(animator);
+ _delete_animator(animator);
}
/**
return;
animator->begin_time = ecore_loop_time_get();
animator->cur_repeat_cnt = animator->repeat_cnt;
- if (!animator->animator)
+ if (!animator->animator) {
animator->animator = ecore_animator_add(_animator_animate_cb, animator);
+ }
if (animator->animator)
animator->on_animating = EINA_TRUE;
}
static void _mouse_down_ev( void* data, Evas* evas, Evas_Object* obj, void* event_info )
{
Widget_Data* wd = (Widget_Data*) data;
-
+
+ fprintf( stderr, "down!\n");
if( wd->base_ani_data.animator ) {
elm_animator_stop( wd->base_ani_data.animator );
elm_animator_del( wd->base_ani_data.animator );
//Rotation
if( wd->sliding_vector > 0 ) {
wd->stack_raise = EINA_FALSE;
+ fprintf( stderr, "update roatation degree first!\n" );
_update_rotation_degree( wd, 180 - ROTATION_DEGREE );
}else {
wd->stack_raise = EINA_TRUE;
+ fprintf( stderr, "update roatation degree second!\n" );
_update_rotation_degree( wd, ROTATION_DEGREE );
}
-
+
+ fprintf( stderr, "up!\n" );
+
//Check Bouncing
Evas_Coord w;
evas_object_geometry_get( obj, NULL, NULL, &w, NULL );
//bounce to left directly
if( wd->cur_pos.x > 0 ) {
+ fprintf( stderr, "_direct_bounce! first\n" );
_direct_bounce( wd, 0 );
return ;
//bounce to right directly
}else if( wd->cur_pos.x + (Evas_Coord) wd->valid_item_length < w ) {
+ fprintf( stderr, "_direct_bounce! second\n" );
_direct_bounce( wd, w - (Evas_Coord) wd->valid_item_length );
return ;
}
if( _bounce_to_left( wd ) == EINA_TRUE ) {
+ fprintf( stderr, "_bounce_to_left!\n" );
return ;
}
/*
elm_animator_completion_callback_set( wd->base_ani_data.animator,
_zoom_in_completion_cb, wd );
elm_animator_animate( wd->base_ani_data.animator );
-
}
default:
break;
}
-
+
evas_object_move(wd->arrow, arrow_x, arrow_y);
}
if((!wd->arrow_disabled) && (arrow_dir!=NONE_ARROW))
{
_update_arrow_obj(obj, arrow_dir);
- _shift_base_by_arrow(wd->arrow, arrow_dir, &rect);
+ _shift_base_by_arrow(wd->arrow, arrow_dir, &rect);
}
-
+
evas_object_move(wd->scroller, rect.x, rect.y);
evas_object_resize(wd->scroller, rect.w, rect.h);
evas_object_move(wd->base, rect.x, rect.y);
wd->screen_dimmed_disabled = disabled;
}
+
+
Evas_Coord w, y;
Elm_Transit *transit;
- transit = elm_transit_add(obj);
+// transit = elm_transit_add(obj);
evas_object_geometry_get( obj, NULL, &y, &w, NULL );
if (wd->top)
if (wd->top->popme) pop = EINA_TRUE;
if (ani)
{
- if (pop) elm_transit_fx_insert( transit, elm_fx_translation_add(o , 0, y, w, y));
- else elm_transit_fx_insert( transit, elm_fx_translation_add(o , 0, y, -w, y));
- elm_transit_completion_callback_set( transit, _complete_cb, it);
+ if (pop) evas_object_move( o, w, y );//elm_transit_fx_insert( transit, elm_fx_translation_add(o , 0, y, w, y));
+ else evas_object_move(o, -w, y);//elm_transit_fx_insert( transit, elm_fx_translation_add(o , 0, y, -w, y));
+ //elm_transit_completion_callback_set( transit, _complete_cb, it);
+ _complete_cb( it );
}
else
{
//add show/hide transition direction & animation on/off. 10.04.14 sohyun
if (ani && o)
{
- if (pop) elm_transit_fx_insert( transit, elm_fx_translation_add(prev_o, -w, y, 0, y));
- else elm_transit_fx_insert( transit, elm_fx_translation_add(prev_o, w, y, 0, y));
- elm_transit_run( transit, 0.3 );
+ if (pop) evas_object_move(prev_o, 0, y );//elm_transit_fx_insert( transit, elm_fx_translation_add(prev_o, -w, y, 0, y));
+ else evas_object_move( prev_o, 0, y );//elm_transit_fx_insert( transit, elm_fx_translation_add(prev_o, w, y, 0, y));
+ //elm_transit_run( transit, 0.3 );
}
- elm_transit_del( transit );
+ //elm_transit_del( transit );
onshow = edje_object_data_get(prev_o, "onshow");
if (onshow)
{
Elm_Effect *transit;
Evas_Coord w, y;
-
+/*
transit = elm_transit_add(obj);
evas_object_geometry_get(obj, NULL, &y, &w, NULL);
elm_transit_fx_insert(transit, elm_fx_translation_add(o , 0, y, w, y));
elm_transit_completion_callback_set(transit, _complete_cb, it);
elm_transit_run(transit, 0.3 );
- elm_transit_del(transit);
+ elm_transit_del(transit); */
+ evas_object_move( o, w, y );
+ _complete_cb( it );
+
+
}
else _signal_hide_finished(wd->top, o, "elm,action,hide,finished", "");