EAPI Eina_Bool edje_object_scale_set (Evas_Object *obj, double scale);
EAPI double edje_object_scale_get (const Evas_Object *obj);
EAPI void edje_input_panel_enabled_set (Eina_Bool enabled);
+ EAPI void edje_autocapitalization_set (Eina_Bool on);
+ EAPI void edje_autoperiod_set (Eina_Bool on);
/* edje_load.c */
EAPI Eina_List *edje_file_collection_list (const char *file);
EAPI void edje_object_part_text_autocapitalization_set(const Evas_Object *obj, const char *part, Eina_Bool on);
#ifdef HAVE_ECORE_IMF
EAPI Ecore_IMF_Context *edje_object_part_text_imf_context_get(const Evas_Object *obj, const char *part);
+#else
+ EAPI void *edje_object_part_text_imf_context_get(const Evas_Object *obj, const char *part);
#endif
EAPI void edje_object_part_text_input_panel_enabled_set(const Evas_Object *obj, const char *part, Eina_Bool disabled);
EAPI Eina_Bool edje_object_part_text_input_panel_enabled_get(const Evas_Object *obj, const char *part);
#include "edje_private.h"
-#define USE_PREEDIT_BLOCK 1
+//#define USE_PREEDIT_BLOCK 1
#ifdef HAVE_ECORE_IMF
#include <Ecore_IMF_Evas.h>
ecore_timer_del(en->pw_timer);
en->pw_timer = NULL;
}
- en->pw_timer = ecore_timer_add(2.0, _replace_pw, en);
+ en->pw_timer = ecore_timer_add(2.0, _replace_pw, en);
}
else
{
return en->imf_context;
}
+#else
+void *
+_edje_entry_imf_context_get(Edje_Real_Part *rp)
+{
+ return NULL;
+}
#endif
void
Entry *en = rp->entry_data;
if (!en) return;
+#ifdef HAVE_ECORE_IMF
en->input_panel_enable = enabled;
+#endif
}
Eina_Bool
Entry *en = rp->entry_data;
if (!en) return EINA_FALSE;
+#ifdef HAVE_ECORE_IMF
return en->input_panel_enable;
+#else
+ return EINA_FALSE;
+#endif
}
static Evas_Textblock_Cursor *
Ecore_IMF_Event_Commit *ev = event;
int i;
char *preedit_string;
- int preedit_start_pos = 0;
- Eina_List *range = NULL;
if (!rp) return 1;
en->comp_len = length;
+#if 0
_sel_clear(en->cursor, rp->object, en);
_sel_enable(en->cursor, rp->object, en);
_sel_start(en->cursor, rp->object, en);
+#endif
en->have_composition = EINA_TRUE;
#ifdef USE_PREEDIT_BLOCK
+ int preedit_start_pos = 0;
+
if (length)
preedit_start_pos = evas_textblock_cursor_pos_get(en->cursor);
#endif /* USE_PREEDIT_BLOCK */
}
#endif
- range = evas_textblock_cursor_range_geometry_get(pre_start, pre_end);
+ Eina_List *range = evas_textblock_cursor_range_geometry_get(pre_start, pre_end);
if (range)
{
if (en->func)
en->func(en->data, NULL);
+#if 0
_sel_extend(en->cursor, rp->object, en);
+#endif
_curs_update_from_curs(en->cursor, rp->object, en);
_anchors_get(en->cursor, rp->object, en);
int _edje_freeze_calc_count = 0;
Eina_List *_edje_freeze_calc_list = NULL;
Eina_Bool _edje_input_panel_enable = EINA_FALSE;
+Eina_Bool _edje_autocapital = EINA_FALSE;
+Eina_Bool _edje_autoperiod = EINA_FALSE;
typedef struct _Edje_List_Foreach_Data Edje_List_Foreach_Data;
struct _Edje_List_Foreach_Data
_edje_input_panel_enable = enabled;
}
+EAPI void
+edje_autocapitalization_set(Eina_Bool on)
+{
+ if (_edje_autocapital == on) return;
+ _edje_autocapital = on;
+}
+
+EAPI void
+edje_autoperiod_set(Eina_Bool on)
+{
+ if (_edje_autoperiod == on) return;
+ _edje_autoperiod = on;
+}
+
/**
* @brief Get Edje object data.
*