Evas_Object *ent;
Evas_Object *popup;/*copy paste UI - elm_popup*/
Evas_Object *ctxpopup;/*copy paste UI - elm_ctxpopup*/
- Evas_Object *bg;
+ Evas_Object *bg;
Evas_Object *hoversel;
Ecore_Job *deferred_recalc_job;
Ecore_Event_Handler *sel_notify_handler;
Widget_Data *wd = elm_widget_data_get(obj);
Elm_Entry_Context_Menu_Item *it;
Elm_Entry_Item_Provider *ip;
- Evas_Object *parent_obj = obj;
- Evas_Object *above = NULL;
+ Evas_Object *parent_obj = obj;
+ Evas_Object *above = NULL;
if (wd->hovdeljob) ecore_job_del(wd->hovdeljob);
if ((wd->api) && (wd->api->obj_unhook)) wd->api->obj_unhook(obj); // module - unhook
/* added for locating parents as they were */
while (parent_obj)
{
- above = evas_object_data_get(parent_obj, "raise");
+ above = evas_object_data_get(parent_obj, "raise");
if (above)
evas_object_stack_below(parent_obj, above);
- parent_obj = elm_widget_parent_get(parent_obj);
+ parent_obj = elm_widget_parent_get(parent_obj);
}
entries = eina_list_remove(entries, obj);
if (!wd->autoreturnkey) return;
- if (_entry_length_get(obj) == 0)
+ 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);
}
- else
+ else
{
ecore_imf_context_input_panel_key_disabled_set(ic, ECORE_IMF_INPUT_PANEL_LAYOUT_NORMAL, ECORE_IMF_INPUT_PANEL_KEY_ENTER, EINA_FALSE);
}
if (top) elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON);
evas_object_smart_callback_call(obj, SIG_FOCUSED, NULL);
_check_enable_returnkey(obj);
-
+
while (parent_obj)
{
above = evas_object_above_get(parent_obj);
if (above)
evas_object_data_set(parent_obj, "raise", above);
evas_object_raise(parent_obj);
- parent_obj = elm_widget_parent_get(parent_obj);
+ parent_obj = elm_widget_parent_get(parent_obj);
}
}
else
evas_object_smart_callback_call(obj, SIG_UNFOCUSED, NULL);
while (parent_obj)
- {
- above = evas_object_data_get(parent_obj, "raise");
+ {
+ above = evas_object_data_get(parent_obj, "raise");
if (above)
evas_object_stack_below(parent_obj, above);
- parent_obj = elm_widget_parent_get(parent_obj);
- }
+ parent_obj = elm_widget_parent_get(parent_obj);
+ }
}
-
}
static void
{
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
-
+
if (wd->hoversel)
{
evas_object_del(wd->hoversel);
_dismissed(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
Widget_Data *wd = elm_widget_data_get(data);
- if (!wd) return;
+ if (!wd) return;
if (wd->hoversel) evas_object_hide(wd->hoversel);
if (wd->selmode)
{
{
ecore_timer_del(wd->longpress_timer);
wd->longpress_timer = NULL;
- }
+ }
if ((wd->api) && (wd->api->obj_longpress))
{
if (!wd) return "base";
if (wd->editable)
{
- if (wd->password)
+ if (wd->password)
{
if (wd->show_last_character) return "custom-password";
else return "base-password";
}
else
{
- if (wd->password)
+ if (wd->password)
{
if (wd->show_last_character) return "custom-password";
else return "base-password";
static char *
_strncpy(char* dest, const char* src, size_t count)
{
- if (!dest)
+ if (!dest)
{
ERR( "dest is NULL" );
return NULL;
}
- if (!src)
+ if (!src)
{
ERR( "src is NULL" );
return NULL;
_sizing_eval(data);
if (wd->text) eina_stringshare_del(wd->text);
wd->text = NULL;
- _check_enable_returnkey(data);
+ _check_enable_returnkey(data);
evas_object_smart_callback_call(data, SIG_CHANGED, NULL);
}
elm_object_scroll_freeze_pop(data);
if (wd->have_selection)
- _long_press(data);
+ _long_press(data);
}
static void
Evas_Object *entry;
if (!wd) return;
*/
- _long_press(data);
+ _long_press(data);
}
static void
evas_object_smart_callback_call(data, SIG_SELECTION_CHANGED, NULL);
elm_selection_set(ELM_SEL_PRIMARY, obj, ELM_SEL_FORMAT_MARKUP,
elm_entry_selection_get(data));
-
+
edje_object_part_text_cursor_geometry_get(wd->ent, "elm.text", &cx, &cy, &cw, &ch);
if (!wd->deferred_recalc_job)
elm_widget_show_region_set(data, cx, cy, cw, ch + elm_finger_size_get());
if (!wd) return;
wd->double_clicked = EINA_FALSE;
evas_object_smart_callback_call(data, SIG_PRESS, NULL);
-
+
if ((wd->api) && (wd->api->obj_hidemenu))
{
wd->api->obj_hidemenu(data);
Widget_Data *wd = elm_widget_data_get(data);
if (!wd) return;
evas_object_smart_callback_call(data, SIG_CLICKED, NULL);
-
+
// if (wd->have_selection)
// _long_press(data);
}
{
starttag = curlocater;
endtag = curlocater + strlen(key);
- if (endtag == NULL || *endtag != '=')
+ if (endtag == NULL || *endtag != '=')
{
foundflag = 0;
return -1;
foundflag = 0;
break;
}
- if (*starttag == '<')
+ if (*starttag == '<')
break;
- else
+ else
starttag--;
if (starttag == NULL) break;
}
foundflag = 0;
break;
}
- if (*endtag == '>')
+ if (*endtag == '>')
break;
- else
+ else
endtag++;
if (endtag == NULL) break;
}
- if (foundflag != 0 && *starttag == '<' && *endtag == '>')
+ if (foundflag != 0 && *starttag == '<' && *endtag == '>')
foundflag = 1;
- else
+ else
foundflag = 0;
}
else
}
else
{
- do
+ do
{
starttag = strchr(srcstring, '<');
endtag = strchr(srcstring, '>');
}
else
{
- insertflag = 1;
+ insertflag = 1;
}
}
if (repbuf) eina_strbuf_free(repbuf);
if (diffbuf) eina_strbuf_free(diffbuf);
-
- return 0;
+
+ return 0;
}
static int
_stringshare_key_value_replace(const char **srcstring, char *key, const char *value, int deleteflag)
{
- Eina_Strbuf *sharebuf = NULL;
-
+ Eina_Strbuf *sharebuf = NULL;
+
sharebuf = eina_strbuf_new();
eina_strbuf_append(sharebuf, *srcstring);
_strbuf_key_value_replace(sharebuf, key, value, deleteflag);
if (_is_width_over(obj) != 1)
{
int rev_fontsize = cur_fontsize;
-
+
do {
rev_fontsize++;
if (rev_fontsize > atoi(deffont))
tagend = 0;
for (i = 0; i < len; i++)
{
- if(cur_str[i] == '>' && cur_str[i+1] != '\0' &&
+ if(cur_str[i] == '>' && cur_str[i+1] != '\0' &&
cur_str[i+1] != '<')
{
tagend = i;
edje_object_part_text_set(wd->ent, "elm.text", eina_strbuf_string_get(txtbuf));
edje_object_part_text_cursor_end_set(wd->ent, "elm.text", EDJE_CURSOR_MAIN);
- if (_is_width_over(obj))
+ if (_is_width_over(obj))
jumpcount++;
- else
+ else
break;
}
}
size_t byte_len;
size_t insert_text_len=0;
char *text = (char*)edje_object_part_text_get(wd->ent, "elm.text");
- char *insert_text;
+ char *insert_text;
size_t remain_bytes;
if (text != NULL)
{
}
}
}
- return EINA_FALSE;
+ return EINA_FALSE;
}
/**
*
* @ingroup Entry
*/
-EAPI void
+EAPI void
elm_entry_password_show_last_character_set(Evas_Object *obj, Eina_Bool show_last_character)
{
Widget_Data *wd = elm_widget_data_get(obj);
Widget_Data *wd = elm_widget_data_get(obj);
const char *text;
if (!wd) return NULL;
-
+
if ((wd->text)&&(wd->password))
return elm_entry_markup_to_utf8(wd->text);
-
+
if (wd->text) return wd->text;
text = edje_object_part_text_get(wd->ent, "elm.text");
if (!text)
ELM_CHECK_WIDTYPE(obj, widtype) NULL;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd || !wd->ent) return NULL;
-
+
return edje_object_part_text_imf_context_get(wd->ent, "elm.text");
}
*
* @ingroup Entry
*/
-EAPI void
+EAPI void
elm_entry_autoenable_returnkey_set(Evas_Object *obj, Eina_Bool on)
{
ELM_CHECK_WIDTYPE(obj, widtype);
*
* @ingroup Entry
*/
-EAPI void
+EAPI void
elm_entry_autocapitalization_set(Evas_Object *obj, Eina_Bool autocap)
{
ELM_CHECK_WIDTYPE(obj, widtype);
else
wd->autocapital = autocap;
- if (wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_URL ||
- wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_EMAIL)
+ 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->autocapital);
*
* @ingroup Entry
*/
-EAPI void
+EAPI void
elm_entry_autoperiod_set(Evas_Object *obj, Eina_Bool autoperiod)
{
ELM_CHECK_WIDTYPE(obj, widtype);
else
wd->autoperiod = autoperiod;
- if (wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_URL ||
- wd->input_panel_layout == ELM_INPUT_PANEL_LAYOUT_EMAIL)
+ 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);
ELM_CHECK_WIDTYPE(obj, widtype);
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
-
+
Ecore_IMF_Context *ic = elm_entry_imf_context_get(obj);
if (!ic) return;
wd->input_panel_layout = layout;
-
+
ecore_imf_context_input_panel_layout_set(ic, (Ecore_IMF_Input_Panel_Layout)layout);
}