Eina_Bool ellipsis : 1;
Eina_Bool autoreturnkey : 1;
Eina_Bool input_panel_enable : 1;
- Eina_Bool autocapitalize : 1;
+ Eina_Bool autocapital : 1;
Elm_Input_Panel_Layout input_panel_layout;
Eina_Bool autoperiod : 1;
};
elm_entry_entry_set(obj, t);
eina_stringshare_del(t);
edje_object_scale_set(wd->ent, elm_widget_scale_get(obj) * _elm_config->scale);
- edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapitalize);
+ edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapital);
edje_object_part_text_autoperiod_set(wd->ent, "elm.text", wd->autoperiod);
edje_object_part_text_input_panel_enabled_set(wd->ent, "elm.text", wd->input_panel_enable);
if (_entry_length_get(obj) == 0)
{
- ecore_imf_context_input_panel_key_disabled_set(ic, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL, ECORE_IMF_INPUT_PANEL_KEY_ENTER, EINA_TRUE);
+ ecore_imf_context_input_panel_key_disabled_set(ic, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL, ECORE_IMF_INPUT_PANEL_KEY_ENTER, EINA_TRUE);
}
else
{
- ecore_imf_context_input_panel_key_disabled_set(ic, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL, ECORE_IMF_INPUT_PANEL_KEY_ENTER, EINA_FALSE);
+ ecore_imf_context_input_panel_key_disabled_set(ic, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL, ECORE_IMF_INPUT_PANEL_KEY_ENTER, EINA_FALSE);
}
}
if (wd->selmode)
{
if (!wd->password)
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", 1);
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_TRUE);
}
elm_widget_scroll_freeze_pop(data);
if (wd->hovdeljob) ecore_job_del(wd->hovdeljob);
wd->selmode = EINA_TRUE;
edje_object_part_text_select_none(wd->ent, "elm.text");
if (!wd->password)
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", 1);
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_TRUE);
edje_object_signal_emit(wd->ent, "elm,state,select,on", "elm");
elm_widget_scroll_hold_push(data);
}
/* Store it */
wd->selmode = EINA_FALSE;
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
elm_widget_scroll_hold_pop(data);
_store_selection(ELM_SEL_CLIPBOARD, data);
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
wd->selmode = EINA_FALSE;
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
elm_widget_scroll_hold_pop(data);
_store_selection(ELM_SEL_CLIPBOARD, data);
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
wd->selmode = EINA_FALSE;
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
elm_widget_scroll_hold_pop(data);
edje_object_part_text_select_none(wd->ent, "elm.text");
evas_object_show(wd->hoversel);
elm_hoversel_hover_begin(wd->hoversel);
}
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
edje_object_part_text_select_abort(wd->ent, "elm.text");
}
wd->longpress_timer = NULL;
t = eina_stringshare_add(elm_entry_entry_get(obj));
_elm_theme_object_set(obj, wd->ent, "entry", _getbase(obj), elm_widget_style_get(obj));
elm_entry_entry_set(obj, t);
- edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapitalize);
+ edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapital);
edje_object_part_text_autoperiod_set(wd->ent, "elm.text", wd->autoperiod);
ic = elm_entry_imf_context_get(obj);
if (ic)
wd->max_no_of_bytes = max_no_of_bytes;
edje_object_signal_emit(wd->ent, "elm,state,remain,bytes,show", "elm");
edje_object_part_textinput_callback_set(wd->ent, "elm.text", _textinput_control_function,obj);
- }
+}
/**
elm_entry_autoperiod_set(obj, EINA_FALSE);
}
- if (wd->autocapitalize)
+ if (wd->autocapital)
{
elm_entry_autocapitalization_set(obj, EINA_FALSE);
}
ic = elm_entry_imf_context_get(obj);
if (ic)
{
- ecore_imf_context_input_panel_layout_set(ic, wd->input_panel_layout);
+ ecore_imf_context_input_panel_layout_set(ic, wd->input_panel_layout);
}
eina_stringshare_del(t);
if (wd->selmode)
{
wd->selmode = EINA_FALSE;
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
}
wd->have_selection = EINA_FALSE;
if (wd->selmode)
{
wd->selmode = EINA_FALSE;
- edje_object_part_text_select_allow_set(wd->ent, "elm.text", 0);
+ edje_object_part_text_select_allow_set(wd->ent, "elm.text", EINA_FALSE);
edje_object_signal_emit(wd->ent, "elm,state,select,off", "elm");
}
wd->have_selection = EINA_TRUE;
if (!wd) return;
if (wd->password)
- wd->autocapitalize = EINA_FALSE;
+ wd->autocapital = EINA_FALSE;
else
- wd->autocapitalize = autocap;
+ wd->autocapital = autocap;
+
+ if (wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_URL ||
+ wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_EMAIL)
+ wd->autocapital = EINA_FALSE;
- edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapitalize);
+ edje_object_part_text_autocapitalization_set(wd->ent, "elm.text", wd->autocapital);
}
/**
else
wd->autoperiod = autoperiod;
+ if (wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_URL ||
+ wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_EMAIL)
+ wd->autoperiod = EINA_FALSE;
+
edje_object_part_text_autoperiod_set(wd->ent, "elm.text", wd->autoperiod);
}
static void _smart_pan_pan_changed_hook(void *data, Evas_Object *obj, void *event_info);
static void _smart_event_wheel(void *data, Evas *e, Evas_Object *obj, void *event_info);
static void _smart_event_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info);
-static int _smart_hold_animator(void *data);
-static int _smart_momentum_animator(void *data);
+static Eina_Bool _smart_hold_animator(void *data);
+static Eina_Bool _smart_momentum_animator(void *data);
static void _smart_event_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info);
-static int _smart_onhold_animator(void *data);
+static Eina_Bool _smart_onhold_animator(void *data);
static void _smart_event_mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_info);
static void _smart_event_key_down(void *data, Evas *e, Evas_Object *obj, void *event_info);
static void _smart_edje_drag_v_start(void *data, Evas_Object *obj, const char *emission, const char *source);
sd->bouncemex = 0;
}
-static int
+static Eina_Bool
_smart_scrollto_y_animator(void *data)
{
Hor_Smart_Data *sd = data;
hor_elm_smart_scroller_child_region_show(sd->smart_obj, x, y, w, h);
}
-static int
+static Eina_Bool
_smart_bounce_x_animator(void *data)
{
Hor_Smart_Data *sd;
- Evas_Coord x, y, dx, dy/*, ox, oy*/;
+ Evas_Coord x, y, dx;
double t, p, dt;
sd = data;
return 1;
}
-static int
+static Eina_Bool
_smart_bounce_y_animator(void *data)
{
Hor_Smart_Data *sd;
- Evas_Coord x, y, dx, dy;
+ Evas_Coord x, y, dy;
double t, p, dt;
sd = data;
return 1;
}
-static int
+static Eina_Bool
_smart_momentum_animator(void *data)
{
Hor_Smart_Data *sd;
}
}
-static int
+static Eina_Bool
_smart_hold_animator(void *data)
{
Hor_Smart_Data *sd = data;
}
}
-static int
+static Eina_Bool
_smart_onhold_animator(void *data)
{
Hor_Smart_Data *sd;
}
-static int special_timer_cb(void *d)
+static Eina_Bool special_timer_cb(void *d)
{
Hor_Smart_Data *sd = d;