Add selected item getter and setter API. Getter to be implemented.
Signed-off-by: Sanjeev BA <iamsanjeev@gmail.com> SVN revision: 68839
This commit is contained in:
parent
3d6850c2c9
commit
de64c5bf43
|
@ -1589,7 +1589,7 @@ elm_multibuttonentry_selected_item_get(const Evas_Object *obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
elm_multibuttonentry_item_select(Elm_Object_Item *it, Eina_Bool selected)
|
elm_multibuttonentry_item_selected_set(Elm_Object_Item *it, Eina_Bool selected)
|
||||||
{
|
{
|
||||||
ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
|
ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
|
||||||
Elm_Multibuttonentry_Item *item = (Elm_Multibuttonentry_Item *)it;
|
Elm_Multibuttonentry_Item *item = (Elm_Multibuttonentry_Item *)it;
|
||||||
|
@ -1597,13 +1597,12 @@ elm_multibuttonentry_item_select(Elm_Object_Item *it, Eina_Bool selected)
|
||||||
else _select_button(WIDGET(item), NULL);
|
else _select_button(WIDGET(item), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI Eina_Bool
|
||||||
elm_multibuttonentry_item_unselect_all(Evas_Object *obj)
|
elm_multibuttonentry_item_selected_get(const Elm_Object_Item *it)
|
||||||
{
|
{
|
||||||
ELM_CHECK_WIDTYPE(obj, widtype);
|
//TODO : To be implemented.
|
||||||
Widget_Data *wd = elm_widget_data_get(obj);
|
if (!it) return EINA_FALSE;
|
||||||
if (!wd) return;
|
return EINA_TRUE;
|
||||||
_select_button(obj, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
|
|
|
@ -216,20 +216,18 @@ EAPI Elm_Object_Item *elm_multibuttonentry_selected_item_get(const Evas_Object *
|
||||||
*
|
*
|
||||||
* @ingroup Multibuttonentry
|
* @ingroup Multibuttonentry
|
||||||
*/
|
*/
|
||||||
// XXX: EAPI void elm_multibuttonentry_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
|
EAPI void elm_multibuttonentry_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
|
||||||
EAPI void elm_multibuttonentry_item_select(Elm_Object_Item *it, Eina_Bool selected);
|
|
||||||
|
|
||||||
// XXX: Add EAPI Eina_Bool elm_multibuttonentry_item_selected_get(const Elm_Object_Item *it);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* unselect all items.
|
* Get the selected state of an item
|
||||||
*
|
*
|
||||||
* @param obj The multibuttonentry object
|
* @param it The item
|
||||||
|
* @return EINA_TRUE if the item is selected, EINA_FALSE otherwise.
|
||||||
*
|
*
|
||||||
* @ingroup Multibuttonentry
|
* @ingroup Multibuttonentry
|
||||||
*/
|
*/
|
||||||
// XXX: deprecated this. only one item can be selected but why this does unselect all?
|
EAPI Eina_Bool elm_multibuttonentry_item_selected_get(const Elm_Object_Item *it);
|
||||||
EAPI void elm_multibuttonentry_item_unselect_all(Evas_Object *obj);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove all items in the multibuttonentry.
|
* Remove all items in the multibuttonentry.
|
||||||
|
|
Loading…
Reference in New Issue