Elm_Gen_Item *group_item;
Elm_Genlist_Item_Type type;
Eina_List *mode_texts, *mode_contents, *mode_states, *mode_content_objs;
- Eina_List *deco_texts, *deco_contents, *deco_states, *deco_content_objs;
+ Eina_List *edit_texts, *edit_contents, *edit_states, *edit_content_objs;
Ecore_Timer *swipe_timer;
Evas_Coord scrl_x, scrl_y, old_scrl_y;
(it->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY))
return;
edje_object_signal_emit(VIEW(it), "elm,state,selected", "elm");
- if (it->deco_obj) edje_object_signal_emit(it->deco_obj, "elm,state,selected", "elm");
+ if (it->edit_obj) edje_object_signal_emit(it->edit_obj, "elm,state,selected", "elm");
selectraise = edje_object_data_get(VIEW(it), "selectraise");
if ((selectraise) && (!strcmp(selectraise, "on")))
{
- if (it->deco_obj) evas_object_raise(it->deco_obj);
+ if (it->edit_obj) evas_object_raise(it->edit_obj);
else evas_object_raise(VIEW(it));
if ((it->item->group_item) && (it->item->group_item->realized))
evas_object_raise(it->item->VIEW(group_item));
{
if ((it->generation < it->wd->generation) || (!it->highlighted)) return;
edje_object_signal_emit(VIEW(it), "elm,state,unselected", "elm");
- if (it->deco_obj) edje_object_signal_emit(it->deco_obj, "elm,state,unselected", "elm");
+ if (it->edit_obj) edje_object_signal_emit(it->edit_obj, "elm,state,unselected", "elm");
if (!it->item->nostacking)
{
if ((it->item->order_num_in & 0x1) ^ it->item->stacking_even)
{
- if (it->deco_obj) evas_object_lower(it->deco_obj);
+ if (it->edit_obj) evas_object_lower(it->edit_obj);
else evas_object_lower(VIEW(it));
}
else
{
- if (it->deco_obj) evas_object_raise(it->deco_obj);
+ if (it->edit_obj) evas_object_raise(it->edit_obj);
else evas_object_raise(VIEW(it));
}
}
else
y_pos = it_scrl_y;
- if (it->deco_obj)
- _item_position(it, it->deco_obj, it->item->scrl_x, y_pos);
+ if (it->edit_obj)
+ _item_position(it, it->edit_obj, it->item->scrl_x, y_pos);
else
_item_position(it, VIEW(it), it->item->scrl_x, y_pos);
{
it->wd->reorder_it = it;
it->wd->reorder_start_y = 0;
- if (it->deco_obj)
- evas_object_raise(it->deco_obj);
+ if (it->edit_obj)
+ evas_object_raise(it->edit_obj);
else
evas_object_raise(VIEW(it));
{
if ((it->item->order_num_in & 0x1) ^ it->item->stacking_even)
{
- if (it->deco_obj) evas_object_lower(it->deco_obj);
+ if (it->edit_obj) evas_object_lower(it->edit_obj);
else evas_object_lower(VIEW(it));
}
else
{
- if (it->deco_obj) evas_object_raise(it->deco_obj);
+ if (it->edit_obj) evas_object_raise(it->edit_obj);
else evas_object_raise(VIEW(it));
}
}
if (it->item->order_num_in & 0x1)
{
edje_object_signal_emit(VIEW(it), "elm,state,odd", "elm");
- if (it->deco_obj) edje_object_signal_emit(it->deco_obj, "elm,state,odd", "elm");
+ if (it->edit_obj) edje_object_signal_emit(it->edit_obj, "elm,state,odd", "elm");
}
else
{
edje_object_signal_emit(VIEW(it), "elm,state,even", "elm");
- if (it->deco_obj) edje_object_signal_emit(it->deco_obj, "elm,state,even", "elm");
+ if (it->edit_obj) edje_object_signal_emit(it->edit_obj, "elm,state,even", "elm");
}
}
edje_object_signal_emit(VIEW(it),
"elm,state,selected", "elm");
- if (it->deco_obj)
- edje_object_signal_emit(it->deco_obj,
+ if (it->edit_obj)
+ edje_object_signal_emit(it->edit_obj,
"elm,state,selected", "elm");
}
}
if (elm_widget_item_disabled_get(it))
edje_object_signal_emit(VIEW(it),
"elm,state,disabled", "elm");
- if (it->deco_obj)
- edje_object_signal_emit(it->deco_obj,
+ if (it->edit_obj)
+ edje_object_signal_emit(it->edit_obj,
"elm,state,disabled", "elm");
}
if (it->item->expanded != itc->expanded)
if (it->item->expanded)
edje_object_signal_emit(VIEW(it),
"elm,state,expanded", "elm");
- if (it->deco_obj)
- edje_object_signal_emit(it->deco_obj,
+ if (it->edit_obj)
+ edje_object_signal_emit(it->edit_obj,
"elm,state,expanded", "elm");
}
}
{
edje_object_signal_emit(VIEW(it),
"elm,state,selected", "elm");
- if (it->deco_obj)
- edje_object_signal_emit(it->deco_obj,
+ if (it->edit_obj)
+ edje_object_signal_emit(it->edit_obj,
"elm,state,selected", "elm");
}
{
edje_object_signal_emit(VIEW(it),
"elm,state,disabled", "elm");
- if (it->deco_obj)
- edje_object_signal_emit(it->deco_obj,
+ if (it->edit_obj)
+ edje_object_signal_emit(it->edit_obj,
"elm,state,disabled", "elm");
}
if (it->item->expanded)
{
edje_object_signal_emit(VIEW(it),
"elm,state,expanded", "elm");
- if (it->deco_obj)
- edje_object_signal_emit(it->deco_obj,
+ if (it->edit_obj)
+ edje_object_signal_emit(it->edit_obj,
"elm,state,expanded", "elm");
}
}
"elm", _signal_contract, it);
_item_mouse_callbacks_add(it, VIEW(it));
- if ((it->wd->decorate_mode) && (!it->deco_obj) &&
+ if ((it->wd->decorate_mode) && (!it->edit_obj) &&
(it->item->type != ELM_GENLIST_ITEM_GROUP) && (it->itc->decorate_all_item_style))
_decorate_mode_item_realize(it, EINA_FALSE);
{
if (it->itc->decorate_all_item_style)
{
- if (!it->deco_obj) _decorate_mode_item_realize(it, EINA_FALSE);
- edje_object_message_signal_process(it->deco_obj);
+ if (!it->edit_obj) _decorate_mode_item_realize(it, EINA_FALSE);
+ edje_object_message_signal_process(it->edit_obj);
}
}
edje_object_message_signal_process(VIEW(it));
down = EINA_FALSE;
}
- if (it->deco_obj)
- _item_position(it, it->deco_obj, it->item->scrl_x, it->item->old_scrl_y);
+ if (it->edit_obj)
+ _item_position(it, it->edit_obj, it->item->scrl_x, it->item->old_scrl_y);
else
_item_position(it, VIEW(it), it->item->scrl_x, it->item->old_scrl_y);
_group_items_recalc(it->wd);
_decorate_mode_item_position(Elm_Gen_Item *it, int itx, int ity)
{
if ((!it) || (!it->wd->decorate_mode)) return;
- evas_object_resize(it->deco_obj, it->item->w, it->item->h);
- evas_object_move(it->deco_obj, itx, ity);
+ evas_object_resize(it->edit_obj, it->item->w, it->item->h);
+ evas_object_move(it->edit_obj, itx, ity);
}
static void
(it->generation < it->wd->generation))
return;
- it->deco_obj = edje_object_add(evas_object_evas_get(WIDGET(it)));
- edje_object_scale_set(it->deco_obj, elm_widget_scale_get(WIDGET(it)) *
+ it->edit_obj = edje_object_add(evas_object_evas_get(WIDGET(it)));
+ edje_object_scale_set(it->edit_obj, elm_widget_scale_get(WIDGET(it)) *
_elm_config->scale);
- evas_object_smart_member_add(it->deco_obj, it->wd->pan_smart);
- elm_widget_sub_object_add(WIDGET(it), it->deco_obj);
+ evas_object_smart_member_add(it->edit_obj, it->wd->pan_smart);
+ elm_widget_sub_object_add(WIDGET(it), it->edit_obj);
if (it->item->type & ELM_GENLIST_ITEM_TREE)
strncpy(buf, "tree", sizeof(buf));
strncat(buf, "/", sizeof(buf) - strlen(buf));
strncat(buf, it->itc->decorate_all_item_style, sizeof(buf) - strlen(buf));
- _elm_theme_object_set(WIDGET(it), it->deco_obj, "genlist", buf,
+ _elm_theme_object_set(WIDGET(it), it->edit_obj, "genlist", buf,
elm_widget_style_get(WIDGET(it)));
stacking_even = edje_object_data_get(VIEW(it), "stacking_even");
if (!stacking) stacking = "yes";
it->item->nostacking = !!strcmp("yes", stacking);
- edje_object_mirrored_set(it->deco_obj,
+ edje_object_mirrored_set(it->edit_obj,
elm_widget_mirrored_get(WIDGET(it)));
_elm_genlist_item_odd_even_update(it);
_elm_genlist_item_state_update(it, NULL);
- if (effect_on) edje_object_signal_emit(it->deco_obj, "elm,state,decorate,enabled,effect", "elm");
- else edje_object_signal_emit(it->deco_obj, "elm,state,decorate,enabled", "elm");
+ if (effect_on) edje_object_signal_emit(it->edit_obj, "elm,state,edit,enabled,effect", "elm");
+ else edje_object_signal_emit(it->edit_obj, "elm,state,edit,enabled", "elm");
_item_mouse_callbacks_del(it, VIEW(it));
- _item_mouse_callbacks_add(it, it->deco_obj);
+ _item_mouse_callbacks_add(it, it->edit_obj);
- _item_text_realize(it, it->deco_obj, &it->item->deco_texts, NULL);
- if (it->flipped) edje_object_signal_emit(it->deco_obj, "elm,state,flip,enabled", "elm");
- it->item->deco_content_objs =
- _item_content_realize(it, it->deco_obj, &it->item->deco_contents, NULL);
- _item_state_realize(it, it->deco_obj, &it->item->deco_states, NULL);
- edje_object_part_swallow(it->deco_obj, "elm.swallow.decorate.content", VIEW(it));
+ _item_text_realize(it, it->edit_obj, &it->item->edit_texts, NULL);
+ if (it->flipped) edje_object_signal_emit(it->edit_obj, "elm,state,flip,enabled", "elm");
+ it->item->edit_content_objs =
+ _item_content_realize(it, it->edit_obj, &it->item->edit_contents, NULL);
+ _item_state_realize(it, it->edit_obj, &it->item->edit_states, NULL);
+ edje_object_part_swallow(it->edit_obj, "elm.swallow.edit.content", VIEW(it));
_decorate_mode_item_position(it, it->item->scrl_x, it->item->scrl_y);
- evas_object_show(it->deco_obj);
+ evas_object_show(it->edit_obj);
it->item->decorate_mode_item_realized = EINA_TRUE;
it->want_unrealize = EINA_FALSE;
Evas_Object *icon;
if ((!it) || (!it->item->decorate_mode_item_realized)) return;
- edje_object_part_unswallow(it->deco_obj, VIEW(it));
+ edje_object_part_unswallow(it->edit_obj, VIEW(it));
evas_object_smart_member_add(VIEW(it), it->wd->pan_smart);
elm_widget_sub_object_add(WIDGET(it), VIEW(it));
_elm_genlist_item_odd_even_update(it);
_elm_genlist_item_state_update(it, NULL);
- evas_object_del(it->deco_obj);
- it->deco_obj = NULL;
- elm_widget_stringlist_free(it->item->deco_texts);
- it->item->deco_texts = NULL;
- elm_widget_stringlist_free(it->item->deco_contents);
- it->item->deco_contents = NULL;
- elm_widget_stringlist_free(it->item->deco_states);
- it->item->deco_states = NULL;
- EINA_LIST_FREE(it->item->deco_content_objs, icon)
+ evas_object_del(it->edit_obj);
+ it->edit_obj = NULL;
+ elm_widget_stringlist_free(it->item->edit_texts);
+ it->item->edit_texts = NULL;
+ elm_widget_stringlist_free(it->item->edit_contents);
+ it->item->edit_contents = NULL;
+ elm_widget_stringlist_free(it->item->edit_states);
+ it->item->edit_states = NULL;
+ EINA_LIST_FREE(it->item->edit_content_objs, icon)
evas_object_del(icon);
- edje_object_message_signal_process(it->deco_obj);
- _item_mouse_callbacks_del(it, it->deco_obj);
+ edje_object_message_signal_process(it->edit_obj);
+ _item_mouse_callbacks_del(it, it->edit_obj);
_item_mouse_callbacks_add(it, VIEW(it));
it->item->decorate_mode_item_realized = EINA_FALSE;
if (elm_widget_item_disabled_get(it))
{
edje_object_signal_emit(VIEW(_it), "elm,state,disabled", "elm");
- if (_it->deco_obj)
- edje_object_signal_emit(_it->deco_obj, "elm,state,disabled", "elm");
+ if (_it->edit_obj)
+ edje_object_signal_emit(_it->edit_obj, "elm,state,disabled", "elm");
}
else
{
edje_object_signal_emit(VIEW(_it), "elm,state,enabled", "elm");
- if (_it->deco_obj)
- edje_object_signal_emit(_it->deco_obj, "elm,state,enabled", "elm");
+ if (_it->edit_obj)
+ edje_object_signal_emit(_it->edit_obj, "elm,state,enabled", "elm");
}
EINA_LIST_FOREACH(_it->content_objs, l, obj)
elm_widget_disabled_set(obj, elm_widget_item_disabled_get(_it));