elementary/flipselector

elm_flipselector_interval_set -> elm_flipselector_first_interval_set
elm_flipselector_interval_get -> elm_flipselector_first_interval_getw



SVN revision: 68752
This commit is contained in:
ChunEon Park 2012-03-06 00:27:33 +00:00
parent 54382e7de0
commit 1869d80886
4 changed files with 64 additions and 11 deletions

View File

@ -57,11 +57,10 @@ _overflow_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
void
slider_change_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
Evas_Object *fl;
fl = (Evas_Object *)data;
Evas_Object *fl = (Evas_Object *)data;
double val = elm_slider_value_get(obj);
elm_flipselector_interval_set(fl, val);
elm_flipselector_first_interval_set(fl, val);
}
void

View File

@ -1359,6 +1359,49 @@ EINA_DEPRECATED EAPI void elm_flipselector_item_label_set(Elm_Object_Item
*/
EINA_DEPRECATED EAPI void elm_flipselector_item_del(Elm_Object_Item *it);
/**
* Set the interval on time updates for a user mouse button hold
* on a flip selector widget.
*
* @param obj The flip selector object
* @param interval The (first) interval value in seconds
*
* This interval value is @b decreased while the user holds the
* mouse pointer either flipping up or flipping down a given flip
* selector.
*
* This helps the user to get to a given item distant from the
* current one easier/faster, as it will start to flip quicker and
* quicker on mouse button holds.
*
* The calculation for the next flip interval value, starting from
* the one set with this call, is the previous interval divided by
* 1.05, so it decreases a little bit.
*
* The default starting interval value for automatic flips is
* @b 0.85 seconds.
*
* @see elm_flipselector_interval_get()
* @deprecated Use elm_flipselector_first_interval_set()
*
* @ingroup Flipselector
*/
EINA_DEPRECATED EAPI void elm_flipselector_interval_set(Evas_Object *obj, double interval);
/**
* Get the interval on time updates for an user mouse button hold
* on a flip selector widget.
*
* @param obj The flip selector object
* @return The (first) interval value, in seconds, set on it
*
* @see elm_flipselector_interval_set() for more details
* @deprecated Use elm_flipselector_first_interval_get()
*
* @ingroup Flipselector
*/
EINA_DEPRECATED EAPI double elm_flipselector_interval_get(const Evas_Object *obj);
/**
* Make a given Elementary object the focused one.
*

View File

@ -931,7 +931,7 @@ elm_flipselector_item_next_get(const Elm_Object_Item *it)
}
EAPI void
elm_flipselector_interval_set(Evas_Object *obj, double interval)
elm_flipselector_first_interval_set(Evas_Object *obj, double interval)
{
ELM_CHECK_WIDTYPE(obj, widtype);
@ -941,7 +941,7 @@ elm_flipselector_interval_set(Evas_Object *obj, double interval)
}
EAPI double
elm_flipselector_interval_get(const Evas_Object *obj)
elm_flipselector_first_interval_get(const Evas_Object *obj)
{
ELM_CHECK_WIDTYPE(obj, widtype) 0;
@ -949,3 +949,16 @@ elm_flipselector_interval_get(const Evas_Object *obj)
if (!wd) return 0;
return wd->first_interval;
}
EINA_DEPRECATED EAPI void
elm_flipselector_interval_set(Evas_Object *obj, double interval)
{
elm_flipselector_first_interval_set(obj, interval);
}
EINA_DEPRECATED EAPI double
elm_flipselector_interval_get(const Evas_Object *obj)
{
return elm_flipselector_first_interval_get(obj);
}

View File

@ -285,12 +285,11 @@ EAPI Elm_Object_Item *elm_flipselector_item_next_get(const Elm_Object
* The default starting interval value for automatic flips is
* @b 0.85 seconds.
*
* @see elm_flipselector_interval_get()
* @see elm_flipselector_first_interval_get()
*
* @ingroup Flipselector
*/
//XXX: void elm_flipselector_first_interval_set()?
EAPI void elm_flipselector_interval_set(Evas_Object *obj, double interval);
EAPI void elm_flipselector_first_interval_set(Evas_Object *obj, double interval);
/**
* Get the interval on time updates for an user mouse button hold
@ -299,12 +298,11 @@ EAPI void elm_flipselector_interval_set(Evas_Object *obj,
* @param obj The flip selector object
* @return The (first) interval value, in seconds, set on it
*
* @see elm_flipselector_interval_set() for more details
* @see elm_flipselector_first_interval_set() for more details
*
* @ingroup Flipselector
*/
//XXX: EAPI double elm_flipselector_first_interval_get()?
EAPI double elm_flipselector_interval_get(const Evas_Object *obj);
EAPI double elm_flipselector_first_interval_get(const Evas_Object *obj);
/**
* @}