Add dummy implemention of Tizen specific elm_config magnification sandbox/pcoval/ivi
authorRusty Lynch <rusty.lynch@intel.com>
Tue, 18 Dec 2012 00:58:24 +0000 (16:58 -0800)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 18 Feb 2014 16:07:27 +0000 (17:07 +0100)
The Tizen elementary tree contains a magnification feature that for
some reason has not been pushed into upstream EFL.  Attempting to just
cherry pick the implementation into an up to date elementay tree will
require some additional porting effort since the codebase has evolved
so much since the Tizen tree was branched.  This change just adds dummy
implementations for each of the external methods so that the unmodified
tizen pre-installed applications run before the port is available.

src/lib/elm_entry.c
src/lib/elm_entry.h

index 09bca31e30dc641603b955f587a8fd2015aaf936..8e0ac22b976977e977d925762766236565135474 100644 (file)
@@ -5968,3 +5968,41 @@ static const Eo_Class_Description class_desc = {
 };
 
 EO_DEFINE_CLASS(elm_obj_entry_class_get, &class_desc, ELM_OBJ_LAYOUT_CLASS, ELM_SCROLLABLE_INTERFACE, EVAS_SMART_CLICKABLE_INTERFACE, NULL);
+   evas_object_smart_callback_call(data, SIG_ANCHOR_HOVER_OPENED, &ei);
+   evas_object_smart_callback_add(wd->anchor_hover.hover, "clicked", _anchor_hover_clicked, data);
+
+   /* FIXME: Should just check if there's any callback registered to the smart
+    * events instead.
+    * This is used to determine if anyone cares about the hover or not. */
+   if (!elm_object_part_content_get(wd->anchor_hover.hover, "middle") &&
+         !elm_object_part_content_get(wd->anchor_hover.hover, "left") &&
+         !elm_object_part_content_get(wd->anchor_hover.hover, "right") &&
+         !elm_object_part_content_get(wd->anchor_hover.hover, "top") &&
+         !elm_object_part_content_get(wd->anchor_hover.hover, "bottom"))
+     {
+        evas_object_del(wd->anchor_hover.hover);
+        wd->anchor_hover.hover = NULL;
+     }
+   else
+     evas_object_show(wd->anchor_hover.hover);
+}
+/* END - ANCHOR HOVER */
+
+EAPI void
+elm_entry_magnifier_disabled_set(Evas_Object *obj, Eina_Bool disabled)
+{
+  /* TODO: Forward port tizen specific magnification feature */
+}
+
+EAPI Eina_Bool
+elm_entry_magnifier_disabled_get(const Evas_Object *obj)
+{
+  /* TODO: Forward port tizen specific magnification feature */
+}
+
+EAPI void
+elm_entry_magnifier_type_set(Evas_Object *obj, int type)
+{
+  /* TODO: Forward port tizen specific magnification feature */
+}
+
index af22ccfdbdf7d847608ffd44e131c7856ce44bf5..7d3389be2818fa45b241699d2049cbfdcfcb4e38 100644 (file)
 #ifndef EFL_NOLEGACY_API_SUPPORT
 #include "elm_entry_legacy.h"
 #endif
+/**
+ * This disables the entry's magnifer feature.
+ *
+ * @param obj The entry object
+ * @param disabled If true, the magnifier is not displayed
+ */
+
+EAPI void         elm_entry_magnifier_disabled_set(Evas_Object *obj, Eina_Bool disabled);
+/**
+ * This returns whether the entry's magnifier feature is disabled.
+ *
+ * @param obj The entry object
+ * @return If true, the feature is disabled
+ */
+EAPI Eina_Bool    elm_entry_magnifier_disabled_get(const Evas_Object *obj);
+
+EAPI void                   elm_entry_magnifier_type_set(Evas_Object *obj, int type);
+
 /**
  * @}
  */