more_option: bring back deleted APIs 68/160368/1
authorThiep Ha <thiep.ha@samsung.com>
Wed, 1 Nov 2017 22:38:36 +0000 (07:38 +0900)
committerThiep Ha <thiep.ha@samsung.com>
Wed, 15 Nov 2017 07:01:17 +0000 (16:01 +0900)
APIs related to editing mode were accidentally deleted
by commit: ac16b70a599e2658dbfd59b3cebba2a47b7aef75.
This patch brings them back.

Change-Id: Ic00b9a44aac0f0bfe1264b2505acef32a943e272

src/wearable/efl_extension_more_option.c

index 480971105704934a0571b19d4d25e75f07e7e779..7e013662e34f857abccbdb9aad933140729adc7d 100644 (file)
@@ -708,6 +708,106 @@ eext_more_option_items_get(const Evas_Object *obj)
    return eext_rotary_selector_items_get(mold->rotary_selector);
 }
 
+EAPI void
+eext_more_option_editing_enabled_set(Evas_Object *obj, Eina_Bool enabled)
+{
+   const Evas_Object *more_option = obj;
+   Eext_More_Option_Data *mold = NULL;
+
+   if (!more_option)
+     {
+        ERR("more_option is NULL!!");
+        return;
+     }
+
+   mold = _more_option_data_get(more_option);
+   if (!mold)
+     {
+        ERR("mold is NULL!!");
+        return;
+     }
+
+   eext_rotary_selector_editing_enabled_set(mold->rotary_selector, enabled);
+}
+
+EAPI Eina_Bool
+eext_more_option_editing_enabled_get(const Evas_Object *obj)
+{
+   const Evas_Object *more_option = obj;
+   Eext_More_Option_Data *mold = NULL;
+
+   if (!more_option)
+     {
+        ERR("more_option is NULL!!");
+        return EINA_FALSE;
+     }
+
+   mold = _more_option_data_get(more_option);
+   if (!mold)
+     {
+        ERR("mold is NULL!!");
+        return EINA_FALSE;
+     }
+
+   return eext_rotary_selector_editing_enabled_get(mold->rotary_selector);
+}
+
+EAPI Eina_Bool
+eext_more_option_add_item_enabled_get(const Evas_Object *obj)
+{
+   const Evas_Object *more_option = obj;
+   Eext_More_Option_Data *mold = NULL;
+
+   if (!more_option)
+     {
+        ERR("more_option is NULL!!");
+        return EINA_FALSE;
+     }
+
+   mold = _more_option_data_get(more_option);
+   if (!mold)
+     {
+        ERR("mold is NULL!!");
+        return EINA_FALSE;
+     }
+
+   return eext_rotary_selector_add_item_enabled_get(mold->rotary_selector);
+}
+
+EAPI void
+eext_more_option_add_item_enabled_set(Evas_Object *obj, Eina_Bool enabled)
+{
+   const Evas_Object *more_option = obj;
+   Eext_More_Option_Data *mold = NULL;
+
+   if (!more_option)
+     {
+        ERR("more_option is NULL!!");
+        return;
+     }
+
+   mold = _more_option_data_get(more_option);
+   if (!mold)
+     {
+        ERR("mold is NULL!!");
+        return;
+     }
+
+   return eext_rotary_selector_add_item_enabled_set(mold->rotary_selector, enabled);
+}
+
+EAPI Eina_Bool
+eext_more_option_item_delete_enabled_get(const Eext_Object_Item *item)
+{
+   return eext_rotary_selector_item_delete_enabled_get(item);
+}
+
+EAPI void
+eext_more_option_item_delete_enabled_set(Eext_Object_Item *item, Eina_Bool enabled)
+{
+   eext_rotary_selector_item_delete_enabled_set(item, enabled);
+}
+
 //for accessibility
 static Eina_Bool
 _access_action_cb(void *data, Evas_Object *obj, Elm_Access_Action_Info *action_info)