ctxpopup, fileselector_button, naviframe, player, popup, bubble, button: added "focused" and "unfocused" documentations.

This commit is contained in:
Daniel Juyung Seo 2013-06-09 18:54:43 +09:00
parent 3c7fb77167
commit 7b71bd1973
12 changed files with 57 additions and 16 deletions

View File

@ -17,10 +17,14 @@ EAPI const char ELM_CTXPOPUP_SMART_NAME[] = "elm_ctxpopup";
static const char SIG_DISMISSED[] = "dismissed";
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_DISMISSED, ""},
{SIG_LANG_CHANGED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -30,6 +30,8 @@
* dismissed.
* - @c "language,changed" - This is called when the program's language is
* changed.
* - @c "focused" - When the entry has received focus.
* - @c "unfocused" - When the entry has lost focus.
*
* Default content parts of the ctxpopup widget that you can use for are:
* @li "default" - A content of the ctxpopup

View File

@ -16,10 +16,14 @@ EAPI Eo_Op ELM_OBJ_FILESELECTOR_BUTTON_BASE_ID = EO_NOOP;
static const char SIG_FILE_CHOSEN[] = "file,chosen";
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_FILE_CHOSEN, "s"},
{SIG_LANG_CHANGED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -23,9 +23,14 @@ static const char TITLE_ACCESS_PART[] = "access.title";
static const char SIG_TRANSITION_FINISHED[] = "transition,finished";
static const char SIG_TITLE_CLICKED[] = "title,clicked";
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_TRANSITION_FINISHED, ""},
{SIG_TITLE_CLICKED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -58,6 +58,8 @@
* @li @c "transition,finished" - When the transition is finished in
* changing the item
* @li @c "title,clicked" - User clicked title area
* @li @c "focused" - When the entry has received focus.
* @li @c "unfocused" - When the entry has lost focus.
*
* All the parts, for content and text, described here will also be
* reachable by naviframe @b items direct calls:

View File

@ -25,6 +25,9 @@ static const char SIG_PLAY_CLICKED[] = "play,clicked";
static const char SIG_PREV_CLICKED[] = "prev,clicked";
static const char SIG_REWIND_CLICKED[] = "rewind,clicked";
static const char SIG_STOP_CLICKED[] = "stop,clicked";
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_FORWARD_CLICKED, "" },
{ SIG_INFO_CLICKED, "" },
@ -34,6 +37,8 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{ SIG_PREV_CLICKED, "" },
{ SIG_REWIND_CLICKED, "" },
{ SIG_STOP_CLICKED, "" },
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{ NULL, NULL }
};

View File

@ -22,9 +22,14 @@ static const char CONTENT_PART[] = "elm.swallow.content";
static const char SIG_BLOCK_CLICKED[] = "block,clicked";
static const char SIG_TIMEOUT[] = "timeout";
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_BLOCK_CLICKED, ""},
{SIG_TIMEOUT, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};

View File

@ -70,6 +70,8 @@
* @ref Layout:
* @li @c "timeout" - whenever popup is closed as a result of timeout.
* @li @c "block,clicked" - whenever user taps on Blocked Event area.
* @li @c "focused" - When the entry has received focus.
* @li @c "unfocused" - When the entry has lost focus.
*
* Styles available for Popup
* @li "default"

View File

@ -14,6 +14,16 @@ EAPI Eo_Op ELM_OBJ_BUBBLE_BASE_ID = EO_NOOP;
#define MY_CLASS_NAME "elm_bubble"
static const char SIG_CLICKED[] = "clicked";
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_CLICKED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};
static const Elm_Layout_Part_Alias_Description _content_aliases[] =
{
@ -29,12 +39,6 @@ static const Elm_Layout_Part_Alias_Description _text_aliases[] =
{NULL, NULL}
};
static const Evas_Smart_Cb_Description _smart_callbacks[] =
{
{SIG_CLICKED, ""},
{NULL, NULL}
};
static const char *corner_string[] =
{
"top_left",

View File

@ -38,6 +38,8 @@
* This widget emits the following signals, besides the ones sent from
* @ref Layout:
* @li @c "clicked" - This is called when a user has clicked the bubble.
* @li @c "focused" - When the entry has received focus.
* @li @c "unfocused" - When the entry has lost focus.
*
* Default content parts of the bubble that you can use for are:
* @li "default" - A content of the bubble

View File

@ -17,6 +17,20 @@ static const char SIG_CLICKED[] = "clicked";
static const char SIG_REPEATED[] = "repeated";
static const char SIG_PRESSED[] = "pressed";
static const char SIG_UNPRESSED[] = "unpressed";
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 button objects (besides the ones
* coming from elm layout): */
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_CLICKED, ""},
{SIG_REPEATED, ""},
{SIG_PRESSED, ""},
{SIG_UNPRESSED, ""},
{SIG_FOCUSED, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
};
static const Elm_Layout_Part_Alias_Description _content_aliases[] =
{
@ -30,16 +44,6 @@ static const Elm_Layout_Part_Alias_Description _text_aliases[] =
{NULL, NULL}
};
/* smart callbacks coming from elm button objects (besides the ones
* coming from elm layout): */
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_CLICKED, ""},
{SIG_REPEATED, ""},
{SIG_PRESSED, ""},
{SIG_UNPRESSED, ""},
{NULL, NULL}
};
static void
_activate(Evas_Object *obj)
{

View File

@ -24,6 +24,8 @@
* @li "repeated": the user pressed the button without releasing it.
* @li "pressed": button was pressed.
* @li "unpressed": button was released after being pressed.
* @li @c "focused" : When the entry has received focus.
* @li @c "unfocused" : When the entry has lost focus.
* In all cases, the @c event parameter of the callback will be
* @c NULL.
*