From 94978098d7df5e96124991057db50350199def3c Mon Sep 17 00:00:00 2001 From: "jinwoo.shin" Date: Tue, 18 Aug 2015 14:28:33 +0900 Subject: Add action menu view Change-Id: I2003259bdb25f2d3b3dc7e333f4bbeab59c9c0ab Signed-off-by: jinwoo.shin --- include/define.h | 28 ++++++++++++++++++++++++++++ include/strings.h | 4 ++++ include/util.h | 2 ++ include/view.h | 1 + 4 files changed, 35 insertions(+) (limited to 'include') diff --git a/include/define.h b/include/define.h index ed6f92c..d521b65 100644 --- a/include/define.h +++ b/include/define.h @@ -23,6 +23,15 @@ #define PART_CONTENT "elm.swallow.content" #define PART_TEXT "elm.text" +#define PART_ICON "elm.swallow.icon" +#define PART_ICON_FOCUSED "elm.swallow.icon.focus" +#define PART_ICON_SELECTED "elm.swallow.icon.select" +#define PART_ICON_DISABLED "elm.swallow.icon.disable" +#define PART_TEXT_1 "elm.text.1" +#define PART_ICON_1 "elm.swallow.icon.1" +#define PART_ICON_1_FOCUSED "elm.swallow.icon.1.focus" +#define PART_ICON_1_SELECTED "elm.swallow.icon.1.select" +#define PART_ICON_1_DISABLED "elm.swallow.icon.1.disable" #define SOURCE_PROGRAM "program" #define SOURCE_ELM "elm" @@ -48,6 +57,19 @@ #define COLOR_OPTION_TEXT_FOCUSED 255 255 255 255 #define COLOR_OPTION_BORDER 154 154 154 255 +#define IMAGE_FAV_NOR IMAGEDIR"/btn_menu_favorite_nor.png" +#define IMAGE_FAV_FOC IMAGEDIR"/btn_menu_favorite_foc.png" +#define IMAGE_FAV_SEL IMAGEDIR"/btn_menu_favorite_sel.png" +#define IMAGE_FAV_DIS IMAGEDIR"/btn_menu_favorite_dis.png" +#define IMAGE_LOCK_NOR IMAGEDIR"/btn_menu_lock_nor.png" +#define IMAGE_LOCK_FOC IMAGEDIR"/btn_menu_lock_foc.png" +#define IMAGE_LOCK_SEL IMAGEDIR"/btn_menu_lock_sel.png" +#define IMAGE_LOCK_DIS IMAGEDIR"/btn_menu_lock_dis.png" +#define IMAGE_UNLOCK_NOR IMAGEDIR"/btn_menu_unlock_nor.png" +#define IMAGE_UNLOCK_FOC IMAGEDIR"/btn_menu_unlock_foc.png" +#define IMAGE_UNLOCK_SEL IMAGEDIR"/btn_menu_unlock_sel.png" +#define IMAGE_UNLOCK_DIS IMAGEDIR"/btn_menu_unlock_dis.png" + #define VIEW_CHANNELINFO "VIEW_CHANNELINFO" #define LAYOUT_CHANNELINFO "LAYOUT_CHANNELINFO" #define LAYOUT_CHANNELINFO_LIST "LAYOUT_CHANNELINFO_LIST" @@ -80,4 +102,10 @@ #define PART_ERROR_TITLE "part.error.title" #define PART_ERROR_TEXT "part.error.text" +#define VIEW_ACTION_MENU "VIEW_ACTION_MENU" +#define GRP_VIEW_ACTION_MENU "grp.view.action_menu" +#define PART_TOP_BUTTON "part.top.button" +#define PART_MENU "part.menu" +#define PART_CHANNELINFO "part.channelinfo" + #endif /* __LIVETV_DEFINE_H__*/ diff --git a/include/strings.h b/include/strings.h index 486c0bd..9722632 100644 --- a/include/strings.h +++ b/include/strings.h @@ -24,5 +24,9 @@ #define STR_NOCHANNEL_TEXT "The channel is not found" #define STR_NOSIGNAL_TITLE "Weak or No Signal" #define STR_NOSIGNAL_TEXT "Check the antenna cable connection" +#define STR_LIVETV "Live TV" +#define STR_BUTTON_FAVORITE "Favorite" +#define STR_BUTTON_LOCK "Lock" +#define STR_BUTTON_UNLOCK "Unlock" #endif /* __AIR_LIVETV_STRINGS_H__*/ diff --git a/include/util.h b/include/util.h index 25afbc3..045d39e 100644 --- a/include/util.h +++ b/include/util.h @@ -24,5 +24,7 @@ Evas_Object *util_add_box(Evas_Object *parent, bool horizon); Evas_Object *util_add_scroller(Evas_Object *parent, const char *part); Evas_Object *util_add_icon(Evas_Object *parent, const char *file, const char *part); +Evas_Object *util_add_button(Evas_Object *parent, const char *part, + const char *text, const char *style); #endif diff --git a/include/view.h b/include/view.h index 8e0fc8e..5fbf8d4 100644 --- a/include/view.h +++ b/include/view.h @@ -32,5 +32,6 @@ void draw_channel_info(Evas_Object *obj, const struct tv_channel_info *channel_i view_class *view_channelnumber_get_vclass(void); view_class *view_channelinfo_get_vclass(void); view_class *view_error_get_vclass(void); +view_class *view_action_menu_get_vclass(void); #endif /* __LIVETV_VIEW_H__*/ -- cgit v1.2.3