/******************************************************************** ** File Name: app_gui_object_subtitlemenu.h ** ** File Description: The header file of dvb channel manager gui object ** ** Copyright(c) 2009 Sunplus Technologies - All Rights Reserved ** ** History Information Description ** Date Author Modification ** ********************************************************************/ #ifndef _APP_GUIOBJ_SUBTITLEMENU_H_ #define _APP_GUIOBJ_SUBTITLEMENU_H_ /******************************************************************** Including Files ********************************************************************/ #include "app_com_list.h" #include "app_guiobj_subtitle.h" #include "al_subtitle.h" /******************************************************************** Macros ********************************************************************/ #define SUBTITLE_PAGE_SIZE (5) #define MAX_TTX_HI_LEN (6) #define MAX_SUBTITLE_NAME (APP_DATA_LANG_NAME_LENGTH + MAX_TTX_HI_LEN) /******************************************************************** Type definitions ********************************************************************/ typedef struct _subtitle_data { DVB_COM_LIST stList; AL_Subtitle_Desc_Info_t SubTitleData[MAX_SUBTITLE_NUM]; HWND h_List_SubTitle; HWND h_SubTitleType; HWND h_Scrollbarbg; HWND h_Scrollbar; HWND h_HHFlag; INT16 sdHHIconList[SUBTITLE_PAGE_SIZE+1]; }SUBTITLE_DATA; typedef enum { Select_SUBTITLE_TYPE_NULL=0, Select_SUBTITLE_TYPE_DVB_SUBTITLE, /**< dvb subtitle type */ Select_SUBTITLE_TYPE_TTX_SUBTITLE /**< teletext subtitle type */ }User_Select_Sub_Type_t; #ifdef SUPPORT_NORDIG_SUBTITLE /*store the user select subtitle information for new nording spec.*/ typedef struct { AL_Subtitle_Type_t SubType; al_uint8 Lang[LANG_CODE_SIZE]; al_bool HearingImpaired; }USER_SELECT_SUB_INFO; #endif /**< the subtitle spec describes the subtitle language code for 3 bytes, but the subtitle menu need display the entire language for orion spec, so the app layer need change 3 bytes language to the 15 bytes language with iso639 */ typedef struct _subtitle_language_data { al_uint8 Language[APP_DATA_LANG_NAME_LENGTH]; }SUBTITLE_LANGUAGE_DATA; #ifdef SUPPORT_NORDIG_SUBTITLE void APP_GUIOBJ_SubTitleMenu_SetUserSubInfo(USER_SELECT_SUB_INFO *SubInfo); USER_SELECT_SUB_INFO APP_GUIOBJ_SubTitleMenu_GetUserSubInfo(void); #endif #endif //#ifndef _DVB_GUI_OBJECT_SUBTITLEMENU_H_