calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid: added "focused" and "unfocused" documentations.

This commit is contained in:
Daniel Juyung Seo 2013-06-09 18:55:42 +09:00
parent 7b71bd1973
commit 8cf2c8a422
16 changed files with 49 additions and 1 deletions

View File

@ -14,10 +14,14 @@ EAPI Eo_Op ELM_OBJ_CALENDAR_BASE_ID = EO_NOOP;
static const char SIG_CHANGED[] = "changed";
static const char SIG_DISPLAY_CHANGED[] = "display,changed";
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_CHANGED, ""},
{SIG_DISPLAY_CHANGED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -25,6 +25,8 @@
* - @c "changed" - emitted when the date in the calendar is changed.
* - @c "display,changed" - emitted when the current month displayed in the
* calendar is changed.
* - @c "focused" - When the entry has received focus.
* - @c "unfocused" - When the entry has lost focus.
*
* Supported elm_object common APIs.
* @li @ref elm_object_signal_emit

View File

@ -28,10 +28,14 @@ static const Elm_Layout_Part_Alias_Description _text_aliases[] =
};
static const char SIG_CHANGED[] = "changed";
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
/* smart callbacks coming from elm check objects: */
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_CHANGED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -30,6 +30,8 @@
* @ref Layout:
* - @c "changed" - This is called whenever the user changes the state of
* the check objects (@c event_info is always @c NULL).
* - @c "focused" - When the entry has received focus.
* - @c "unfocused" - When the entry has lost focus.
*
* Default content parts of the check widget that you can use for are:
* @li "icon" - An icon of the check

View File

@ -16,9 +16,13 @@ EAPI Eo_Op ELM_OBJ_CLOCK_BASE_ID = EO_NOOP;
static void _time_update(Evas_Object *obj);
static const char SIG_CHANGED[] = "changed";
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_CHANGED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -39,6 +39,8 @@
* This widget emits the following signals, besides the ones sent from
* @ref Layout:
* - @c "changed" - the clock's user changed the time
* - @c "focused" - When the entry has received focus.
* - @c "unfocused" - When the entry has lost focus.
*
* Supported elm_object common APIs.
* @li @ref elm_object_signal_emit

View File

@ -23,11 +23,15 @@ EAPI Eo_Op ELM_OBJ_COLORSELECTOR_BASE_ID = EO_NOOP;
static const char SIG_CHANGED[] = "changed";
static const char SIG_COLOR_ITEM_SELECTED[] = "color,item,selected";
static const char SIG_COLOR_ITEM_LONGPRESSED[] = "color,item,longpressed";
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
static const Evas_Smart_Cb_Description _smart_callbacks[] =
{
{SIG_COLOR_ITEM_SELECTED, ""},
{SIG_COLOR_ITEM_LONGPRESSED, ""},
{SIG_CHANGED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -28,6 +28,8 @@
* - @c "color,item,longpressed" - When user long presses on color
* item. The event info parameter of the callback contains selected
* color item.
* - @c "focused" - When the entry has received focus.
* - @c "unfocused" - When the entry has lost focus.
*
* See @ref tutorial_colorselector.
* @{

View File

@ -63,9 +63,13 @@ static Datetime_Mod_Api *dt_mod = NULL;
static const char SIG_CHANGED[] = "changed";
static const char SIG_LANG_CHANGED[] = "language,changed";
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_CHANGED, ""},
{SIG_LANG_CHANGED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -181,9 +181,10 @@
* @ref Layout:
* @li @b "changed" - whenever Datetime field value is changed, this
* signal is sent.
*
* @li @b "language,changed" - whenever system locale changes, this
* signal is sent.
* @li @c "focused" - When the entry has received focus.
* @li @c "unfocused" - When the entry has lost focus.
*
* Here is an example on its usage:
* @li @ref datetime_example

View File

@ -29,6 +29,8 @@ static const char SIG_SCROLL_ANIM_START[] = "scroll,anim,start";
static const char SIG_SCROLL_ANIM_STOP[] = "scroll,anim,stop";
static const char SIG_SCROLL_DRAG_START[] = "scroll,drag,start";
static const char SIG_SCROLL_DRAG_STOP[] = "scroll,drag,stop";
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_SELECTED, ""},
@ -37,6 +39,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_SCROLL_ANIM_STOP, ""},
{SIG_SCROLL_DRAG_START, ""},
{SIG_SCROLL_DRAG_STOP, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -33,6 +33,9 @@
* @li @c "scroll,anim,stop" - scrolling animation has stopped
* @li @c "scroll,drag,start" - dragging the diskselector has started
* @li @c "scroll,drag,stop" - dragging the diskselector has stopped
* @li @c "focused" - When the entry has received focus.
* @li @c "unfocused" - When the entry has lost focus.
*
* @note The "scroll,anim,*" and "scroll,drag,*" signals are only emitted by
* user intervention.
*

View File

@ -37,10 +37,14 @@ EAPI Eo_Op ELM_OBJ_FLIPSELECTOR_BASE_ID = EO_NOOP;
static const char SIG_SELECTED[] = "selected";
static const char SIG_UNDERFLOWED[] = "underflowed";
static const char SIG_OVERFLOWED[] = "overflowed";
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_SELECTED, ""},
{SIG_UNDERFLOWED, ""},
{SIG_OVERFLOWED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -29,6 +29,8 @@
* from the first item in its list to the last
* - @c "underflowed" - when the widget's current selection is changed
* from the last item in its list to the first
* - @c "focused" - When the entry has received focus.
* - @c "unfocused" - When the entry has lost focus.
*
* Available styles for it:
* - @c "default"

View File

@ -67,6 +67,8 @@ static const char SIG_UNHIGHLIGHTED[] = "unhighlighted";
static const char SIG_LANG_CHANGED[] = "language,changed";
static const char SIG_PRESSED[] = "pressed";
static const char SIG_RELEASED[] = "released";
static const char SIG_FOCUSED[] = "focused"; /**< handled by elm_widget */
static const char SIG_UNFOCUSED[] = "unfocused"; /**< handled by elm_widget */
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_ACTIVATED, ""},
@ -99,6 +101,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_PRESSED, ""},
{SIG_RELEASED, ""},
{SIG_SCROLL_PAGE_CHANGE, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -235,6 +235,8 @@
* - @c "language,changed" - This is called when the program's language is
* changed. Call the elm_gengrid_realized_items_update() if items text should
* be translated.
* - @c "focused" - When the entry has received focus.
* - @c "unfocused" - When the entry has lost focus.
*
* Supported elm_object common APIs
* @li elm_object_signal_emit()