diff options
author | “vijay.tiwari” <vijay.tiwari@samsung.com> | 2017-01-06 18:38:25 +0530 |
---|---|---|
committer | Vijay Tiwari <vijay.tiwari@samsung.com> | 2017-01-06 06:16:10 -0800 |
commit | 9ae08e56dc9cb487ce8fa78b3681b554c57c6855 (patch) | |
tree | 6e60366732f2db4fc60dc7555b194fa9b1bcf43f /alarm_widget/src/view.c | |
parent | eb0c31274cbb9c76b1d1f01da04d4c3f6ebfb9a2 (diff) | |
download | alarm-submit/tizen/20170221.134859.tar.gz alarm-submit/tizen/20170221.134859.tar.bz2 alarm-submit/tizen/20170221.134859.zip |
[W-Alarm] Comments added for alarm widgetsubmit/tizen/20170313.063134submit/tizen/20170221.134859submit/tizen/20170221.074358submit/tizen/20170110.054201tizen_legacy
Change-Id: Iabef7f3009073f0304c1439b00478bc39a369fae
(cherry picked from commit 623cb2becddfb1ba0b7f7620ce668ca8d3b2ec7b)
Diffstat (limited to 'alarm_widget/src/view.c')
-rwxr-xr-x | alarm_widget/src/view.c | 45 |
1 files changed, 36 insertions, 9 deletions
diff --git a/alarm_widget/src/view.c b/alarm_widget/src/view.c index ab1b0b7..5bf9dda 100755 --- a/alarm_widget/src/view.c +++ b/alarm_widget/src/view.c @@ -61,8 +61,10 @@ void view_set_image(Evas_Object *parent, const char *part_name, const char *imag } /** - * @brief Creates a naviframe and sets to parent. - * @param[in] parent The object to which you want to set naviframe object + * @brief Creating widget window and conformants + * @param[in] context The context of widget instance + * @param[in] w The pixel value for widget width + * @param[in] h The pixel value for widget height */ void view_create(widget_context_h context, int w, int h) { @@ -123,7 +125,10 @@ Evas_Object *view_create_conformant_without_indicator(Evas_Object *win) evas_object_show(conform); return conform; } - +/* + * @brief: Function to clear layout text in alarm widget + * @param[in] wid: widget data . + */ void alarm_widget_layout_text_clear(widget_instance_data_s *wid) { _ALM_WIDGET_ENTER_; @@ -141,7 +146,10 @@ void alarm_widget_layout_text_clear(widget_instance_data_s *wid) _D("alarm_widget_layout_text_clear end."); } - +/* + * @brief: Function to set Weekly text in alarm widget + * @param[in] wid: widget data . + */ char* alarm_widget_set_week_day_weekly_text(widget_instance_data_s *wid) { _ALM_WIDGET_ENTER_; @@ -233,7 +241,10 @@ char* alarm_widget_set_week_day_weekly_text(widget_instance_data_s *wid) } return strdup(buf); } - +/* + * @brief: Function to set text for the widget layout + * @param[in] wid: widget data . + */ void alarm_widget_layout_text_set(widget_instance_data_s *wid) { _ALM_WIDGET_ENTER_; @@ -285,7 +296,10 @@ void alarm_widget_layout_text_set(widget_instance_data_s *wid) elm_object_signal_emit(wid->layout, "text.off", "*"); } } - +/* + * @brief: Function to update the alarm on/off icon in the alarm widget layout + * @param[in] wid: widget data . + */ void alarm_widget_layout_icon_update(widget_instance_data_s *wid) { @@ -302,6 +316,10 @@ void alarm_widget_layout_icon_update(widget_instance_data_s *wid) elm_object_signal_emit(wid->layout, "text.off", "*"); } } +/* + * @brief: Function to control alarm on/off button. + * @param[in] wid: widget data . + */ static void _alarm_widget_enable_up_cb(void *data, Evas_Object *obj, const char *emission, const char *source) { @@ -324,7 +342,10 @@ static void _alarm_widget_enable_up_cb(void *data, Evas_Object *obj, const char } - +/* + * @brief: Function to set the alarm on/off icon in the alarm widget layout + * @param[in] wid: widget instance data handle. + */ void alarm_widget_layout_icon_set(widget_instance_data_s *wid) { _ALM_WIDGET_ENTER_; @@ -352,7 +373,10 @@ Evas_Object *view_alarm_create_layout_no_alarmlist(Evas_Object *parent, const ch return layout; } - +/* + * @brief: Used for no alarm screen UI configuration + * @param[in] wid: widget instance data handle. + */ void view_alarm_update_no_allarmlist_layout_with_alarmlist(widget_instance_data_s *wid) { _ALM_WIDGET_ENTER_; @@ -692,7 +716,10 @@ static void _widget_released_cb(void *user_data, Evas *evas, Evas_Object *obj, v } } } - +/* + * @brief: Function for alarm UI layout configuration. + * @param[in] wid: widget data . + */ void view_alarm_update_alarm_layout(widget_instance_data_s *wid) { _ALM_WIDGET_ENTER_; |