SETTING_TRACE("maxLengthReachFlag:[%d], enterKeyPressFlag:%d", list_item->maxLengthReachFlag, list_item->enterKeyPressFlag);
/* show the popup if the text already reaches max length and the input character is not the enter key */
- if (list_item->maxLengthReachFlag && list_item->enterKeyPressFlag == false) {
+ if (list_item->maxLengthReachFlag && list_item->enterKeyPressFlag == FALSE) {
if (!list_item->notify) {
list_item->notify = setting_create_popup_without_btn(list_item, list_item->win_main,
NULL, _(EXCEED_LIMITATION_STR),
elm_popup_timeout_set(list_item->notify, POPUP_INTERVAL);
}
}
- list_item->maxLengthReachFlag = false;
- list_item->enterKeyPressFlag = false;
+
+ if (list_item->enterKeyPressFlag == TRUE) {
+ SETTING_TRACE("ad->pre_name:[%s]", ad->pre_name);
+ elm_entry_entry_set(obj, ad->pre_name);
+ } else {
+ G_FREE(ad->pre_name);
+ ad->pre_name = (char *)g_strdup(entry_str);
+ SETTING_TRACE("ad->pre_name:[%s]", ad->pre_name);
+ }
+
+ list_item->maxLengthReachFlag = FALSE;
+ list_item->enterKeyPressFlag = FALSE;
#if DEVNAME_BLOCK_SPACE
//block 'Space' key
#endif
//for genlist update
G_FREE(list_item->sub_desc);//release first
- list_item->sub_desc = (char *)g_strdup(entry_str);
+ list_item->sub_desc = (char *)g_strdup(ad->pre_name);
- if (isSpaceStr(entry_str)) {
+ if (isSpaceStr(ad->pre_name)) {
if (!ad->empty_flag)
{
ad->empty_flag = TRUE;
return TRUE;
}
-static void
-__about_main_gl_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event)
+static void __about_main_gl_drag(void *data, Evas_Object *obj, void *event)
+{
+ //SETTING_TRACE_BEGIN;
+ ret_if(!data);
+ retm_if(event == NULL, "Invalid argument: event info is NULL");
+ SettingAboutUG *ad = (SettingAboutUG *) data;
+ ad->mouse_move_flag = TRUE;
+}
+
+static void __about_main_gl_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event)
{
+ SETTING_TRACE_BEGIN;
ret_if(!data);
SettingAboutUG *ad = (SettingAboutUG *) data;
retm_if(event == NULL, "Invalid argument: event info is NULL");
Evas_Event_Mouse_Up *ev = (Evas_Event_Mouse_Up *)event;
+ if (ad->mouse_move_flag) {
+ ad->mouse_move_flag = FALSE;
+ return;
+ }
+
if (ad->item_dev_name) {
Elm_Object_Item *selected_item = elm_genlist_at_xy_item_get(ad->genlsit, ev->output.x, ev->output.y, NULL);
if (ad->item_dev_name->item == selected_item)//do nothing..
}
ad->popup = setting_create_popup_without_btn(ad, ad->win_get, NULL, _(EMPTY_LIMITATION_STR),
__about_popup_rsp_cb, POPUP_INTERVAL, FALSE, FALSE);
+ FREE(entry_str_utf8);
return;
} else {
}
}
-
if (0 != vconf_set_str(VCONFKEY_SETAPPL_DEVICE_NAME_STR, entry_str_utf8)) {
SETTING_TRACE_ERROR("Set vconf[%s] failed",
VCONFKEY_SETAPPL_DEVICE_NAME_STR);
FREE(entry_str_utf8);
+ elm_entry_select_none(obj);
}
static void __entry_key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
|| safeStrCmp(ev->key, "Return") == 0)
{
// if entry has 1 char at list, hide ime.
- if(isSpaceStr(elm_entry_entry_get(obj)))
+ /*if(isSpaceStr(elm_entry_entry_get(obj)))
{
if (ad->popup) {
evas_object_del(ad->popup);
}
ad->popup = setting_create_popup_without_btn(ad, ad->win_get, NULL, _(EMPTY_LIMITATION_STR),
__about_popup_rsp_cb, POPUP_INTERVAL, FALSE, FALSE);
- }
+ }*/
}
}
NULL, NULL, ad, conformant,
&ad->navi_bar, NULL);
+ evas_object_smart_callback_add(scroller, "drag", __about_main_gl_drag, ad);
+
evas_object_event_callback_add(scroller, EVAS_CALLBACK_MOUSE_UP,
__about_main_gl_mouse_up, ad);
ad->ly_main = NULL;
}
+ G_FREE(ad->pre_name);
+
setting_view_about_main.is_create = 0;
return SETTING_RETURN_SUCCESS;
}
if (!elm_object_focus_get(obj)) {
elm_object_focus_set(obj, EINA_TRUE);
+ elm_entry_cursor_end_set(obj);
}
//Ecore_IMF_Context *imf_context = (Ecore_IMF_Context *)elm_entry_imf_context_get(obj);
{
if (elm_entry_is_empty(obj))
{
- elm_object_signal_emit(entry_container, "elm,state,guidetext,show", "elm");
+ //elm_object_signal_emit(entry_container, "elm,state,guidetext,show", "elm");
elm_object_signal_emit(entry_container, "elm,state,eraser,hide", "elm");
}
else
static Evas_Object *__add_entry(Setting_GenGroupItem_Data *item_data, Evas_Object *parent)
{
retv_if(!item_data || !parent, NULL);
- elm_genlist_mode_set(parent, ELM_LIST_COMPRESS); /* resolve abnormal height issue */
+ //elm_genlist_mode_set(parent, ELM_LIST_COMPRESS); /* resolve abnormal height issue */
Evas_Object *ed_name =
setting_create_editfiled(parent, _(item_data->keyStr),
item_data->sub_desc);