%else
%if "%{profile}" == "wearable"
cp %{_builddir}/%{buildsubdir}/src/mobile_lib/* %{_builddir}/%{buildsubdir}/src/lib
- export CFLAGS+=" -DELM_FEATURE_WEARABLE"
+ export CFLAGS+=" -DTIZEN_PROFILE_WEARABLE"
%if "%{?model_build_feature_formfactor}" == "circle"
- export CFLAGS+=" -DELM_FEATURE_WEARABLE_C1"
+ export CFLAGS+=" -DTIZEN_PROFILE_WEARABLE_C1"
%endif
%endif
%endif
static void _magnifier_show(void *data);
static void _magnifier_hide(void *data);
static void _magnifier_move(void *data, Evas_Coord x, Evas_Coord y);
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static void _menu_call(Evas_Object *obj);
#endif
static void _hover_cancel_cb(void *data, Evas_Object *obj, void *event_info);
sd->cursor_handler_down = EINA_FALSE;
if (_elm_config->magnifier_enable)
_magnifier_hide(data);
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if ((!_elm_config->context_menu_disabled) &&
(!_elm_config->desktop_entry))
_menu_call(data);
edje_object_part_text_select_extend(sd->entry_edje, "elm.text");
}
sd->have_selection = EINA_TRUE;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
_menu_call(data);
#endif
}
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static void
_adjust_eol_cursor(Evas_Object *obj)
{
static void
_select_word(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
return;
#else
ELM_ENTRY_DATA_GET(data, sd);
/////////////////////////////////////////////////////////////////
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static Mod_Api *
_module_find(Evas_Object *obj EINA_UNUSED)
{
evas_object_resize(sd->hoversel, cw, ch);
}
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static void
_hover_del_job(void *data)
{
edje_object_part_text_select_none(sd->entry_edje, "elm.text");
}
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static void
_hover_item_clicked_cb(void *data,
Evas_Object *obj EINA_UNUSED,
_select_word(data, NULL, NULL);
elm_widget_scroll_freeze_push(data);
}
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (!_elm_config->context_menu_disabled &&
!_elm_config->desktop_entry)
{
#endif
}
//
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
/* Context menu will not appear if context menu disabled is set
* as false on a long press callback */
else if (!_elm_config->context_menu_disabled &&
Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
{
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
Evas_Event_Key_Down *ev = event_info;
#endif
//
/* First check if context menu disabled is false or not, and
* then check for key id */
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if ((!_elm_config->context_menu_disabled) && !strcmp(ev->key, "Menu"))
_menu_call(data);
#endif
if (_elm_config->desktop_entry)
{
sd->use_down = 1;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
_menu_call(data);
#endif
}
_magnifier_hide(data);
//
// TIZEN ONLY (20150603): CopyPasteUI 2.4
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
Eina_Bool popup_showing = EINA_FALSE;
#endif
if (elm_widget_scroll_freeze_get(data))
else
elm_entry_select_none(data);
}
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if ((sd->api) && (sd->api->obj_popup_showing_get))
popup_showing = sd->api->obj_popup_showing_get(data);
if ((!_elm_config->context_menu_disabled) &&
(!_elm_config->desktop_entry))
{
sd->use_down = 1;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
_menu_call(data);
#endif
}
if ((!_elm_config->context_menu_disabled) &&
(!_elm_config->desktop_entry) && (sd->long_pressed))
*/
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if ((!_elm_config->context_menu_disabled) &&
(!_elm_config->desktop_entry))
_menu_call(data);
(!_elm_config->desktop_entry) && (sd->long_pressed))
_menu_call(data);
*/
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if ((!_elm_config->context_menu_disabled) &&
(!_elm_config->desktop_entry))
_menu_call(data);
priv->context_menu = EINA_TRUE;
priv->auto_save = EINA_TRUE;
priv->editable = EINA_TRUE;
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
priv->sel_allow = EINA_FALSE;
#else
priv->sel_allow = EINA_TRUE;
entries = eina_list_prepend(entries, obj);
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
// module - find module for entry
priv->api = _module_find(obj);
// if found - hook in
// TIZEN ONLY : for banded ux
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static void
_banded_item_bg_add(Elm_Gen_Item *it, Evas_Object *target)
{
}
}
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
_banded_item_bg_add(it, target);
#endif
_view_clear(VIEW(it), &(it->content_objs));
// TIZEN ONLY : for banded ux
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (GL_IT(it)->banded_bg)
ELM_SAFE_FREE(GL_IT(it)->banded_bg, evas_object_del);
if (GL_IT(it)->wsd->banded_bg_on)
edje_object_signal_emit(VIEW(it), SIGNAL_DISABLED, "elm");
if (it->selected)
{
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (sd->banded_bg_on)
_banded_item_bg_color_change(it, EINA_TRUE);
#endif
+ REORDER_FASTER, ow, oh));
}
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
_item_all_position(it, GL_IT(it)->scrl_x - REORDERED_ITEM_OFFSET,
GL_IT(it)->scrl_y - REORDERED_ITEM_OFFSET);
#else
{
Elm_Genlist_Data *sd = itb->sd;
Elm_Gen_Item *it;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
Elm_Gen_Item *top_drawn_item = NULL;
#endif
const Eina_List *l, *ll;
GL_IT(it)->w = sd->minw;
GL_IT(it)->h = GL_IT(it)->minh;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
//Kiran only
if (!top_drawn_item)
{
itb->realized = EINA_TRUE;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (sd->banded_bg_on)
_banded_item_bg_index_color_set(sd->top_drawn_item, ox, oy, ow, oh);
#endif
psd->wsd->blocks_realized = realized_new;
// TIZEN_ONLY(20150701) : banded color background feature. enabled only un-scrollable
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (psd->wsd->banded_bg_rect && !psd->wsd->reorder.it)
{
Evas_Coord bg_x, bg_y, bg_w, bg_h, svy, svh;
elm_interface_atspi_accessible_active_descendant_changed_signal_emit(WIDGET(it), EO_OBJ(it));
}
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static Eina_Bool
_banded_item_highlight_anim(void *data, double pos)
{
it->highlighted = EINA_TRUE;
sd->highlighted_item = it;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (sd->banded_bg_on)
{
if (it->item->banded_anim) ecore_animator_del(it->item->banded_anim);
it->highlighted = EINA_FALSE;
GL_IT(it)->wsd->highlighted_item = NULL;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (GL_IT(it)->wsd->banded_bg_on && effect)
{
if (it->item->banded_anim) ecore_animator_del(it->item->banded_anim);
eo_do_super(obj, MY_CLASS, int_ret = elm_obj_widget_theme_apply());
if (!int_ret) return ELM_THEME_APPLY_FAILED;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
_banded_bg_state_check(obj, sd);
#endif
eo_do(sd->obj, elm_interface_scrollable_bounce_allow_set
(EINA_FALSE, EINA_FALSE));
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
if (sd->decorate_all_mode)
#endif
edje_object_signal_emit(VIEW(it), SIGNAL_REORDER_ENABLED, "elm");
}
else if (sd->reorder.it == it)
{
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
Elm_Gen_Item *it2, *it_max = NULL, *it_min = NULL;
Evas_Coord r_y_scrl, it_y_max = -99999999, it_y_min = 99999999;
EOLIAN static void
_elm_genlist_evas_object_smart_move(Eo *obj, Elm_Genlist_Data *sd, Evas_Coord x, Evas_Coord y)
{
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
Evas_Coord ox, oy, bg_x, bg_y;
evas_object_geometry_get(obj, &ox, &oy, NULL, NULL);
evas_object_geometry_get(sd->banded_bg_rect, &bg_x, &bg_y, NULL, NULL);
eo_do_super(obj, MY_CLASS, evas_obj_smart_move(x, y));
evas_object_move(sd->hit_rect, x, y);
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
evas_object_move(sd->banded_bg_rect, (bg_x + x - ox), (bg_y + y - oy));
#endif
}
elm_layout_theme_set(obj, "genlist", "base", elm_widget_style_get(obj));
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
_banded_bg_state_check(obj, priv);
#endif
priv->highlight = EINA_TRUE;
priv->fx_mode = EINA_FALSE;
priv->on_hold = EINA_FALSE;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
//Kiran only
priv->top_drawn_item = NULL;
#endif
if (it == sd->focused_item) _item_unfocused(it);
if (it == sd->key_down_item) sd->key_down_item = NULL;
if (it == sd->highlighted_item) sd->highlighted_item = NULL;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (it == sd->top_drawn_item) sd->top_drawn_item = NULL;
#endif
eo_del(EO_OBJ(it));
// TIZEN_ONLY(20150703) : banded color background feature. enabled only un-scrollable
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (sd->banded_bg_rect && !sd->items)
{
evas_object_smart_member_del(sd->banded_bg_rect);
if (sd->g_item) sd->g_item = NULL;
if (sd->g_type) sd->g_type = NULL;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (sd->banded_bg_rect)
{
evas_object_smart_member_del(sd->banded_bg_rect);
} add_fx;
// TIZEN ONLY(20150701) : Banded Color UX Feature
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
/*for banded ux*/
Elm_Gen_Item *top_drawn_item;
Evas_Object *banded_bg_rect; /* banded color
Evas_Object *deco_it_view;
int expanded_depth;
int order_num_in;
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
int banded_color_index;
Evas_Object *banded_bg;
Ecore_Animator *banded_anim;
ext_mod->selectall(data, obj, event_info);
}
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
static void
_select(void *data, Evas_Object *obj, void *event_info)
{
{
if (!ext_mod->password)
{
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
CP_ICON_ADD(icon, "select");
added_item = elm_ctxpopup_item_append(ext_mod->popup, S_SELECT, icon, _select, obj);
ACCESS_FOCUS_ENABLE();
}
CP_ICON_ADD(icon, "select_all");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _select_all, obj);
#else
#endif
{
CP_ICON_ADD(icon, "paste");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _paste, obj);
#else
if (ext_mod->editable)
{
CP_ICON_ADD(icon, "paste");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _paste, obj);
#else
#endif
{
CP_ICON_ADD(icon, "clipboard");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _clipboard_menu, obj); // Clipboard
#else
if (selected_all == EINA_FALSE)
{
CP_ICON_ADD(icon, "select_all");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _select_all, obj);
#else
if (!ext_mod->password)
{
CP_ICON_ADD(icon, "copy");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _copy, obj);
#else
if (ext_mod->editable)
{
CP_ICON_ADD(icon, "cut");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _cut, obj);
#else
#endif
{
CP_ICON_ADD(icon, "paste");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _paste, obj);
#else
else
{
CP_ICON_ADD(icon, "paste");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _paste, obj);
#else
{
if (!ext_mod->password)
{
-#ifndef ELM_FEATURE_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
CP_ICON_ADD(icon, "select");
added_item = elm_ctxpopup_item_append(ext_mod->popup, S_SELECT,
icon, _select, obj);
}
CP_ICON_ADD(icon, "select_all");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _select_all, obj);
#else
#endif
{
CP_ICON_ADD(icon, "paste");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _paste, obj);
#else
else
{
CP_ICON_ADD(icon, "paste");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _paste, obj);
#else
#endif
{
CP_ICON_ADD(icon, "clipboard");
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
icon, _clipboard_menu, obj);
#else
else if (it->icon_type == ELM_ICON_STANDARD)
elm_icon_standard_set(ic, it->icon_file);
}
-#ifdef ELM_FEATURE_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL,
ic, _item_clicked, it );
#else