sd->wd->start_time = ecore_loop_time_get();
}
- if (sd->wd->tree_effect_enabled && (sd->wd->move_effect_mode != ELM_GENLIST_ITEM_MOVE_EFFECT_NONE))
+ if (sd->wd->tree_effect_enabled && (sd->wd->move_effect_mode != ELM_GENLIST_TREE_EFFECT_NONE))
{
if (!sd->wd->item_moving_effect_timer)
{
if (_it->item->expanded)
{
- _it->wd->move_effect_mode = ELM_GENLIST_ITEM_MOVE_EFFECT_EXPAND;
+ _it->wd->move_effect_mode = ELM_GENLIST_TREE_EFFECT_EXPAND;
if (_it->realized)
edje_object_signal_emit(VIEW(_it), "elm,state,expanded", "elm");
evas_object_smart_callback_call(WIDGET(_it), SIG_EXPANDED, _it);
}
else
{
- _it->wd->move_effect_mode = ELM_GENLIST_ITEM_MOVE_EFFECT_CONTRACT;
+ _it->wd->move_effect_mode = ELM_GENLIST_TREE_EFFECT_CONTRACT;
if (_it->realized)
edje_object_signal_emit(VIEW(_it), "elm,state,contracted", "elm");
evas_object_smart_callback_call(WIDGET(_it), SIG_CONTRACTED, _it);
{
if (it2->parent && (it == it2->parent))
{
- if (it->wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_EXPAND)
+ if (it->wd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_EXPAND)
edje_object_signal_emit(VIEW(it2), "elm,state,hide", "");
- else if (it->wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_CONTRACT)
+ else if (it->wd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_CONTRACT)
_item_contract_emit(it2);
}
}
expanded_next_it = wd->expanded_next_item;
- if (wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_EXPAND)
+ if (wd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_EXPAND)
{
it = (Elm_Gen_Item *) elm_genlist_item_prev_get((Elm_Object_Item *) expanded_next_it);
while (it)
it = (Elm_Gen_Item *) elm_genlist_item_prev_get((Elm_Object_Item *) it);
}
}
- else if (wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_CONTRACT)
+ else if (wd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_CONTRACT)
{
it = (Elm_Gen_Item *) elm_genlist_item_prev_get((Elm_Object_Item *) expanded_next_it);
while (it)
if (wd->item_moving_effect_timer)
{
- if (wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_CONTRACT)
+ if (wd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_CONTRACT)
_item_subitems_clear(wd->expanded_item);
EINA_INLIST_FOREACH(wd->blocks, itb)
{
_item_auto_scroll(wd);
evas_object_lower(wd->alpha_bg);
evas_object_hide(wd->alpha_bg);
- wd->move_effect_mode = ELM_GENLIST_ITEM_MOVE_EFFECT_NONE;
+ wd->move_effect_mode = ELM_GENLIST_TREE_EFFECT_NONE;
if (wd->move_items) wd->move_items = eina_list_free(wd->move_items);
evas_object_smart_callback_call(wd->pan_smart, "changed", NULL);
/* move items */
EINA_LIST_FOREACH(wd->move_items, l, it)
{
- if (wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_EXPAND)
+ if (wd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_EXPAND)
{
expanded_next_it->item->old_scrl_y = wd->expanded_item->item->old_scrl_y + wd->expanded_item->item->h;
if (expanded_next_it->item->scrl_y < expanded_next_it->item->old_scrl_y) //did not calculate next item position
cvy + cvh : expanded_next_it->item->scrl_y) -
expanded_next_it->item->old_scrl_y;
}
- else if (wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_CONTRACT)
+ else if (wd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_CONTRACT)
{
if (expanded_next_it->item->scrl_y > expanded_next_it->item->old_scrl_y) //did not calculate next item position
expanded_next_it->item->old_scrl_y = cvy + cvh;
if (expanded_next_it->item->old_scrl_y > (cvy + cvh))
{
dy = (wd->expanded_item->item->scrl_y + wd->expanded_item->item->h) -
- cvy + cvh;
+ cvy + cvh;
expanded_next_it->item->old_scrl_y = cvy + cvh;
}
else
{
num++;
if (wd->expanded_item->item->expanded_depth >= it->item->expanded_depth) break;
- if (wd->move_effect_mode == ELM_GENLIST_ITEM_MOVE_EFFECT_EXPAND)
+ if (wd->move_effect_mode == ELM_GENLIST_TREE_EFFECT_EXPAND)
{
if (!it->item->tree_effect_finished)
{