コード例 #1
0
ファイル: win_time.c プロジェクト: alkap007/ali3606
void win_time_set_Display_string(UINT8 input)
{
    if(input==0)
        OSD_SetTextFieldContent(&time_item_txtset6, STRING_ID,RS_COMMON_OFF);
    else
        OSD_SetTextFieldContent(&time_item_txtset6, STRING_ID,RS_COMMON_ON);
}
コード例 #2
0
void win_sto_set_sd_ide_set_string(UINT8 input, PTEXT_FIELD ptxt)
{
	if(input==0)
		OSD_SetTextFieldContent(ptxt, STRING_ID,RS_STORAGE_HDD);
	else
		OSD_SetTextFieldContent(ptxt, STRING_ID,RS_STORAGE_SD);
}
コード例 #3
0
ファイル: media_control.c プロジェクト: alkap007/ali3606
void win_set_youtube_title()
{
	BITMAP *pBmp;
	TEXT_FIELD *pTxt;
	struct mp_title_tab_resource* titleitem;

	
	pBmp = &usb_title_bmp2;
	OSD_SetBitmapContent(pBmp, 0);
	pTxt = &usb_title_txt2;
	OSD_SetTextFieldContent(pTxt,STRING_ID,0);

	pBmp = &usb_title_bmp3;
	OSD_SetBitmapContent(pBmp, 0);
	pTxt = &usb_title_txt3;
	OSD_SetTextFieldContent(pTxt,STRING_ID,0);

	pBmp = &usb_title_bmp4;
	OSD_SetBitmapContent(pBmp, 0);
	pTxt = &usb_title_txt4;
	OSD_SetTextFieldContent(pTxt,STRING_ID,0);

	titleitem = &youtube_title_tab[0];
	pBmp = &usb_title_bmp1;
	pBmp->head.frame.uLeft=TITLE_YT_ICON1_L;
	OSD_SetBitmapContent(pBmp, titleitem->bmp_id);
	pTxt = &usb_title_txt1;
	pTxt->head.frame.uLeft=TITLE_YT_ICON1_L+pBmp->head.frame.uWidth;
	pTxt->head.frame.uWidth=TITLE_YT_TXT_W;
	OSD_SetTextFieldContent(pTxt,STRING_ID,titleitem->str_id);

	
}
コード例 #4
0
ファイル: win_game_com.c プロジェクト: jinfeng-geeya/3202C
/*******************************************************************************
 *  Game function
 *******************************************************************************/
void setup_game_panel(UINT16 tit_id, UINT16 lev_id, UINT16 sco1_id, UINT16 sco2_id)
{
	OSD_SetTextFieldContent(&txt_title, STRING_ID, tit_id);
	OSD_SetTextFieldContent(&txt_level, STRING_ID, lev_id);
	OSD_SetTextFieldContent(&txt_score1, STRING_ID, sco1_id);
	OSD_SetTextFieldContent(&txt_score2, STRING_ID, sco2_id);
}
コード例 #5
0
ファイル: win_search.c プロジェクト: Janesak1977/ali3602
static void win_srch_draw_info_ex(OSD_RECT* pRect, char* str, UINT16* unistr, UINT8 shidx)
{
	PCONTAINER  pObj;
    TEXT_FIELD  *pTxt,*pLine;
    OSD_RECT     rect_01,rect_02;
    
    rect_01.uTop = pRect->uTop+TXT_T_OF;
    rect_01.uLeft = pRect->uLeft+TXT_L_OF;
    rect_01.uWidth = TXT_W;
    rect_01.uHeight = TXT_H;

    rect_02.uTop =  pRect->uTop + LINE_T_OF;
    rect_02.uLeft=  pRect->uLeft+LINE_L_OF;
    rect_02.uHeight = LINE_H;
    rect_02.uWidth  = TXT_W;
    
	pObj = &srch_info_ex;//&srch_info;
	pTxt = &srch_info_txt_ex;
    pLine = &srch_info_line;
	//OSD_SetRect2(&pObj->head.frame,pRect);
	OSD_SetRect2(&pObj->head.frame,pRect);
	OSD_SetRect2(&pTxt->head.frame,&rect_01);
    OSD_SetRect2(&pLine->head.frame,&rect_02);
    //OSD_SetTextFieldContent() 
	if(str != NULL)
		OSD_SetTextFieldContent(pTxt, STRING_ANSI, (UINT32)str);
	else if (unistr != NULL)
		OSD_SetTextFieldContent(pTxt, STRING_UNICODE, (UINT32)unistr);
	//OSD_SetColor(pTxt,shidx,shidx,shidx,shidx);
	OSD_DrawObject( (POBJECT_HEAD)pObj, C_UPDATE_ALL);
}
コード例 #6
0
ファイル: win_lcn.c プロジェクト: alkap007/ali3606
void win_LCN_set_string(UINT8 input)
{
	if(input==0)
		OSD_SetTextFieldContent(&osd_lcn_txtset1, STRING_ID,RS_COMMON_OFF);				
	else
		OSD_SetTextFieldContent(&osd_lcn_txtset1, STRING_ID,RS_COMMON_ON);	
}
コード例 #7
0
ファイル: win_pvr_tms.c プロジェクト: alkap007/ali3606
void win_set_rec_type_string(UINT8 input, PTEXT_FIELD ptxt)
{
	if(input==0)
		OSD_SetTextFieldContent(ptxt, STRING_ID,RS_RECORD_TYPE_TS);				
	else
		OSD_SetTextFieldContent(ptxt, STRING_ID,RS_RECORD_TYPE_PS);	
}
コード例 #8
0
ファイル: win_sat_fav.c プロジェクト: alkap007/ali3606
void win_satfav_set_display(void)
{
	UINT32 i;
	UINT16 top,cnt,page,idx;
	
	OBJLIST* ol = &satfav_item_list;
	BITMAP* bmp;
	TEXT_FIELD* txt;
	CONTAINER* item;
	UINT32 valid_idx;
	UINT16 unistr[50];
	UINT8 group_type,group_idx,av_flag;

	av_flag = sys_data_get_cur_chan_mode();
	

	cnt = OSD_GetObjListCount(ol);
	page = OSD_GetObjListPage(ol); 
	top = OSD_GetObjListTop(ol);

	for(i=0;i<page;i++)
	{
		item = (CONTAINER*)satfav_items[i];


		idx = top + i;
		group_idx = (UINT8)(idx);
		if(sat_fav_list_flag == 1)
		{
			group_idx += sys_data_get_sate_group_num(av_flag);
			group_idx ++;
		}
				
		if(idx< cnt)
			valid_idx = 1;
		else
			valid_idx = 0;
		
		if(valid_idx)
			get_chan_group_name((UINT8*)unistr,group_idx,&group_type);
		

		/*IDX */
		txt = (TEXT_FIELD*)OSD_GetContainerNextObj(item);//bmp->head.pNext;
		if(valid_idx)
			OSD_SetTextFieldContent(txt,STRING_NUMBER, idx + 1);
		else
			OSD_SetTextFieldContent(txt,STRING_ANSI,(UINT32)"");

		/*Name*/
		txt = (TEXT_FIELD*)OSD_GetObjpNext(txt);//txt->head.pNext;
		if(valid_idx)
		{
			OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)unistr);
		}
		else
			OSD_SetTextFieldContent(txt,STRING_ANSI,(UINT32)"");
	}
	
}
コード例 #9
0
ファイル: win_multifeed.c プロジェクト: alkap007/ali3606
void win_multifeed_set_display(void)
{
	TEXT_FIELD *txt;
	OBJLIST* ol;	
	UINT16 i,cnt,top_idx,cur_idx,dep;
	P_NODE p_node;
	UINT16 channel;
	UINT8 name[32];

	channel = sys_data_get_cur_group_cur_mode_channel();

	get_prog_at(channel,&p_node);

	ol = &multifeed_ol;
	cnt = OSD_GetObjListCount(ol);
	dep = OSD_GetObjListPage(ol);	
	top_idx = OSD_GetObjListTop(ol);

	for(i=0;i<dep;i++)
	{
		cur_idx = top_idx + i;		
		txt = text_items[i];

		if(cur_idx < cnt )
		{
			multifeed_get_feed_name(p_node.prog_id, cur_idx, name);
			OSD_SetTextFieldContent(txt, STRING_ANSI, (UINT32)name);
		}
		else
			OSD_SetTextFieldContent(txt, STRING_ANSI, (UINT32)"");
	}
	
}
コード例 #10
0
ファイル: win_mp_move_file.c プロジェクト: alkap007/ali3606
static void init_movefile_info()
{
	char file_path[FULL_PATH_SIZE], str_buff[10];
	UINT16 offset;
	TEXT_FIELD *pTxt;
	POBJLIST pOl;

	get_file_list_info(win_move_dirlist, &movefile_dirnum, &movefile_filenum, file_path);
	if(!STRCMP(file_path, FS_ROOT_DIR))
	{
		offset = 0;
	}
	else
	{
		offset = 1;
	}
	
	pOl = &ol_mpmove;
	OSD_SetObjListCount(pOl,(movefile_dirnum + movefile_filenum + offset));
	OSD_SetObjListNewPoint(pOl,0);
	OSD_SetObjListCurPoint(pOl,0);
	OSD_SetObjListTop(pOl,0);

	pTxt = &mpmove_dir_txt;
	win_get_display_dirname(str_buff, file_path);
	OSD_SetTextFieldContent(pTxt,STRING_UTF8,(UINT32)str_buff);//show current dir name

	pTxt = &mpmove_dev_name;
	win_get_display_devicename(str_buff, movefile_cur_device);
	sprintf(str_buff,"%s",str_buff);
	OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)str_buff);//show current device name
}
コード例 #11
0
ファイル: media_control.c プロジェクト: Janesak1977/ali3602
static void win_set_mpflielist_help2(struct mp_help_item1_resource *helpinfo,UINT8 item_count)
{
	UINT8 i = 0;
	BITMAP *pBtn;
	TEXT_FIELD *pTxt;
	struct mp_help_item1_resource* helpitem;

	for(i = 0; i < item_count;i++)
	{
		helpitem = &helpinfo[i];

		pBtn = pHelp2Btn_icons[i];
		OSD_SetBitmapContent(pBtn, helpitem->bmp_id);

		pTxt = pHelp2Txt_ids[i];
		OSD_SetTextFieldContent(pTxt,STRING_ID,helpitem->str_id);
	}
	
	if(item_count<HELPCNT)//some help item not show
	{
		for(i=item_count; i<HELPCNT; i++)
		{
			pBtn = pHelp2Btn_icons[i];
			OSD_SetBitmapContent(pBtn , 0);

			pTxt = pHelp2Txt_ids[i];
			OSD_SetTextFieldContent(pTxt,STRING_ID,0);
		}
	}
}
コード例 #12
0
static void win_finger_print_draw_info(char* str, UINT16* unistr, UINT16 xpos)
{
	TEXT_FIELD* txt;
	static UINT16 pre_xpos = 0;
	txt = &txt_fingerprint;
	
	if(xpos != pre_xpos)
	{
		OSD_ClearObject( (POBJECT_HEAD)txt, C_UPDATE_ALL);
		pre_xpos = xpos;
	}
	
	txt->head.frame.uLeft = xpos;
	
	if(str != NULL)
		OSD_SetTextFieldContent(txt, STRING_ANSI, (UINT32)str);
	else if (unistr != NULL)
		OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)unistr);
	if((str != NULL)||(unistr != NULL))	
	{		
		OSD_DrawObject( (POBJECT_HEAD)txt, C_UPDATE_ALL);
	}
	else	    
    {
		OSD_ClearObject( (POBJECT_HEAD)txt, C_UPDATE_ALL);
	}
}
コード例 #13
0
ファイル: win_parental.c プロジェクト: alkap007/ali3606
void win_par_set_channel_lock_string(UINT8 input)
{
	if(input==0)
		OSD_SetTextFieldContent(&par_item_txtset2, STRING_ID,RS_COMMON_OFF);				
	else
		OSD_SetTextFieldContent(&par_item_txtset2, STRING_ID,RS_COMMON_ON);	
}
コード例 #14
0
ファイル: win_pvr_tms.c プロジェクト: alkap007/ali3606
void win_tms_set_string(UINT8 input, PTEXT_FIELD ptxt)
{
	if(input==0)
		OSD_SetTextFieldContent(ptxt, STRING_ID,RS_COMMON_OFF);				
	else
		OSD_SetTextFieldContent(ptxt, STRING_ID,RS_COMMON_ON);	
}
コード例 #15
0
ファイル: win_playlist_setup.c プロジェクト: alkap007/ali3606
static void win_setting_display(BOOL bDraw)
{
	UINT8 i,bID;
	char str_buff[10];
	TEXT_FIELD *pTxt;
	CONTAINER *win;

	if(0 == image_slide_temp.uTime_gap)
		sprintf(str_buff, "Off");
	else
		sprintf(str_buff,"%d Sec",image_slide_temp.uTime_gap);

	win = &g_win_slidesetup;
	bID = OSD_GetContainerFocus(win);
	for(i = 0; i < 2; i++)
	{
		pTxt = txt_settings[i];
		if(i == 0)
			OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)str_buff);
		else
			OSD_SetTextFieldContent(pTxt,STRING_ID,slide_repeat_strids[image_slide_temp.bRepeat]);

		if((bID == (i + 1)) && (bDraw))
		{
			OSD_TrackObject((POBJECT_HEAD)pTxt, C_UPDATE_ALL);
		}
	}
}
コード例 #16
0
ファイル: win_ci_info.c プロジェクト: alkap007/ali3606
static void ci_info_list_display()
{
	OBJLIST* ol;
	CONTAINER* item;	
	TEXT_FIELD* txt;	
	UINT16 top,cnt,page,index, i;

	

	ol = &olst_ci_info;

	cnt = OSD_GetObjListCount(ol);
	page = OSD_GetObjListPage(ol); 
	top = OSD_GetObjListTop(ol);


	
	for( i = 0; i < page; i++)
	{
		index = top + i;

		item = (PCONTAINER)ci_info_list_items[i];
		txt  = (PTEXT_FIELD)OSD_GetContainerNextObj(item);
		if(index < cnt)
		{
			OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)ci_info.menu.entry_ls_txt[index]);
		}
		else
		{
			OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)"");
		}
		
	}
}
コード例 #17
0
UINT8 win_map_search_input_menu_open(char *string)
{
	CONTAINER	*win;
	PRESULT ret = PROC_LOOP;
	UINT32 hkey;
	TEXT_FIELD	*txt;
	EDIT_FIELD	*eft;
	UINT16 strID;
	UINT32 value = 0;
	UINT8 input_string[MAP_SEARCH_INPUT_LEN];

	BOOL old_value = ap_enable_key_task_get_key(TRUE);
	
	bMapSearchInputOK = FALSE;
	
 	txt = &txt_map_search_input_title;
 	
	strID = RS_HELP_SEARCH;
		
	OSD_SetTextFieldContent(txt, STRING_ID,(UINT32)strID);

	eft = &edt_map_search_input_item;
	OSD_SetEditFieldContent(eft, STRING_ANSI, "");

	win = &g_win_map_search_input;
	OSD_SetContainerFocus(win, 1);

	OSD_SetTextFieldContent(&txt_map_search_input_caps,STRING_ANSI,(UINT32)btn_txt_strs[0]);
	OSD_SetTextFieldContent(&txt_map_search_input_del,STRING_ANSI,(UINT32)btn_txt_strs[1]);
	OSD_SetTextFieldContent(&txt_map_search_input_ok,STRING_ANSI,(UINT32)btn_txt_strs[2]);	
	OSD_SetTextFieldContent(&txt_map_search_input_cancel,STRING_ANSI,(UINT32)btn_txt_strs[3]);

	wincom_backup_region(&(win->head.frame));

	OSD_ObjOpen((POBJECT_HEAD)win, 0);
	
	while(ret != PROC_LEAVE)
	{
	    hkey = ap_get_key_msg();
        if(hkey == INVALID_HK || hkey == INVALID_MSG)
            continue;

		ret = OSD_ObjProc((POBJECT_HEAD)win, (MSG_TYPE_KEY<<16),hkey, 0);
	}

	if (bMapSearchInputOK)
	{
		eft = &edt_map_search_input_item;
		value = OSD_GetEditFieldContent(eft);
		ComUniStrToAsc((UINT8 *)value, input_string);
		map_search_input_get_string(string, input_string);
	}

	wincom_restore_region();

    	ap_enable_key_task_get_key(old_value);
    	
	return bMapSearchInputOK;
}
コード例 #18
0
ファイル: win_mcas_info.c プロジェクト: Janesak1977/ali3602
static void Mcas_info_text_display(char *Line1Title, char*Line2CardNum, char*Line3Provider, char*Line4Other)
{
	UINT8 ucTitle[32]={0};//Title
	UINT8 ucName[32]={0};//Smart card
	UINT8 ucNo[32]={0};//Card number
	UINT8 ucMarlevel[64]={0};//Marutiy level
	UINT8 ucSubStatus[64]={0};//Subscription Status
	UINT8 ucChalinfo[128]={0};//channel info
	UINT i;
	UINT8 *pucBuffer;
	
	for(i=0;i<MAXITEMNUM-1;i++)
	{
		set_item_con_rect(CON_L, CON_T + (CON_H + CON_GAP)*i,CON_W,CON_H);    /*sky.bi */
		
		sprintf(ucTitle,"%s",title_str[i]);
		//sprintf(ucTitle,"%s","  ");
		OSD_SetTextFieldContent(&ca_info_title, STRING_ANSI, (UINT32)(ucTitle));
				
		switch(i)
		{
			case 0://smart card
				if(Line1Title ==NULL)
					sprintf(ucName,"%s","Unknown");					
				else
					sprintf(ucName,"%s",Line1Title);
					pucBuffer = &ucName;
				break;
			case 1://
				if(Line2CardNum ==NULL)
					sprintf(ucName,"%s"," ");					
				else
					sprintf(ucName,"%s",Line2CardNum);
					pucBuffer = &ucName;			
				break;
			case 2://
				if(Line3Provider ==NULL)
					sprintf(ucName,"%s"," ");					
				else
					sprintf(ucName,"%s",Line3Provider);
					pucBuffer = &ucName;		
				break;
			case 3://
				if(Line4Other ==NULL)
					sprintf(ucName,"%s"," ");					
				else
					sprintf(ucName,"%s",Line4Other);
					pucBuffer = &ucName;		
				break;
			
			default:
				break;
		}
		OSD_SetTextFieldContent(&ca_info_content, STRING_ANSI, (UINT32)(pucBuffer));
		OSD_DrawObject((POBJECT_HEAD )&ca_info_item_con,C_UPDATE_ALL);
	}
}
コード例 #19
0
ファイル: win_PALNTSC.c プロジェクト: alkap007/ali3606
static PRESULT palntsc_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
	PRESULT ret = PROC_PASS;
	VACTION unact;
	SYSTEM_DATA* sys_data;
	UINT8 tv_out;
	TEXT_FIELD *txt;
	UINT16 str_id;

	txt = &g_win_PALNTSC;

	sys_data = sys_data_get();

	switch(event)
	{
	case EVN_PRE_OPEN:

		tv_out = api_video_get_tvout();
		if(tv_out != TV_MODE_PAL && tv_out != TV_MODE_NTSC358)
		{
			tv_out = TV_MODE_PAL;
			api_video_set_tvout(sys_data->avset.tv_mode = tv_out);
		}
		str_id = (tv_out == TV_MODE_PAL)? RS_SYSTEM_TV_SYSTEM_PAL : RS_SYSTEM_TV_SYSTEM_NTSC;
		OSD_SetTextFieldContent(txt, STRING_ID, (UINT32)str_id);
		break;
	case EVN_POST_OPEN:
		api_stop_timer(&tvmode_UI_timer_id);
		tvmode_UI_timer_id = api_start_timer(TVMODE_UI_TIMER_NAME, TVMODE_UI_TIMER_TIME, win_tvmode_UI_handler);		
		break;
	case EVN_PRE_CLOSE:
		break;
	case EVN_POST_CLOSE:
		break;
	case EVN_UNKNOWN_ACTION:
		unact = (VACTION)(param1>>16);
		if(unact == VACT_ENTER)
		{
			tv_out = api_video_get_tvout();
			tv_out = (tv_out == TV_MODE_PAL)? TV_MODE_NTSC358 : TV_MODE_PAL;
			str_id = (tv_out == TV_MODE_PAL)? RS_SYSTEM_TV_SYSTEM_PAL : RS_SYSTEM_TV_SYSTEM_NTSC;
			OSD_SetTextFieldContent(txt, STRING_ID, (UINT32)str_id);
			api_video_set_tvout(sys_data->avset.tv_mode = tv_out);

			OSD_TrackObject( (POBJECT_HEAD)txt, C_UPDATE_ALL);			
			ret = PROC_LOOP;		

			api_stop_timer(&tvmode_UI_timer_id);
			tvmode_UI_timer_id = api_start_timer(TVMODE_UI_TIMER_NAME, TVMODE_UI_TIMER_TIME, win_tvmode_UI_handler);

		}
		break;
	}

	return ret;
	
}
コード例 #20
0
ファイル: win_playlist.c プロジェクト: alkap007/ali3606
static void playlist_display_items(UINT16 uTop)
{
	UINT8 i;
	char str_buff[MAX_FILE_NAME_SIZE + 1];
	RET_CODE ret;
	TEXT_FIELD *pTxt;
	BITMAP *pBmp;
	FileInfo playlist_node;
	BOOL move_flag;
	UINT16 file_idx, curitem, index;
	POBJLIST pOl;

	pOl = &ol_playlist;
	curitem = OSD_GetObjListNewPoint(pOl);
	for(i = 0; i < PL_ITEM_CNT;i++)
	{
		index = uTop + i;
		move_flag = FALSE;
		if((moving_flag==1) && (move_file_idx != INVALID_IDX) && (index == curitem))
		{
			move_flag = TRUE;
		}

		file_idx = list_index_2_playlist_index(pOl, index);
		ret = get_file_from_play_list(cur_display_playlist,(file_idx +1),&playlist_node);

		if(ret == RET_SUCCESS)
		{
			pTxt = playlist_idxs[i];
			sprintf(str_buff,"%d",(uTop + i + 1));
			OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)str_buff);
			pBmp = playlist_icons[i];
			OSD_SetBitmapContent(pBmp, file_icon_ids[playlist_node.filetype]);
			pTxt = playlist_files[i];
			//filter_unkownfont_name(playlist_node.name,str_buff);
			win_shorten_filename(playlist_node.name,str_buff);
			OSD_SetTextFieldContent(pTxt,STRING_UTF8,(UINT32)str_buff);
			pBmp = playlist_moveicons[i];
			if(move_flag == TRUE)
				//OSD_SetBitmapContent(pBmp, IM_TV_DEL);
				OSD_SetAttr(pBmp, C_ATTR_ACTIVE);				
			else
				OSD_SetAttr(pBmp, C_ATTR_HIDDEN);	
		}
		else
		{
			pTxt = playlist_idxs[i];
			OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)"");
			pBmp = playlist_icons[i];
			OSD_SetBitmapContent(pBmp, 0);
			pTxt = playlist_files[i];
			OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)"");
			pBmp = playlist_moveicons[i];
			OSD_SetAttr(pBmp, C_ATTR_HIDDEN);	
		}
	}
}
コード例 #21
0
ファイル: win_playlist.c プロジェクト: alkap007/ali3606
static void win_open_playlist_help(void)
{
    UINT8 i;
    UINT16 hlp_imgs[] =
    {
        IM_EPG_COLORBUTTON_RED,
        IM_EPG_COLORBUTTON_GREEN,
        IM_EPG_COLORBUTTON_YELLOW,
    };

    UINT16 hlp_strs[] = {
        RS_HELP_MOVE,
        RS_HELP_DELETE,
        RS_DELETE_ALL
    };


    DEF_BITMAP(hlp_bmp,NULL, NULL, \
               C_ATTR_ACTIVE,C_FONT_DEFAULT, \
               0, 0, 0, 0, 0, \
               0,0,0,0, \
               WSTL_MIX_BMP_HD, WSTL_MIX_BMP_HD, WSTL_MIX_BMP_HD, WSTL_MIX_BMP_HD, \
               NULL,NULL,  \
               C_ALIGN_LEFT| C_ALIGN_VCENTER, 0, 0,0)

    DEF_TEXTFIELD(hlp_txt,NULL,NULL,C_ATTR_ACTIVE,0, \
                  0,0,0,0,0, \
                  0,0,0,0, \
                  WSTL_TEXT_12_HD,WSTL_TEXT_12_HD,WSTL_TEXT_12_HD,WSTL_TEXT_12_HD,    \
                  NULL,NULL,  \
                  C_ALIGN_LEFT | C_ALIGN_VCENTER, 0,0,RS_COMMON_OK,NULL)

    for(i = 0; i < 2; i++)
    {
        OSD_SetObjRect((POBJECT_HEAD)&hlp_bmp, \
                       PL_HLP_L+i*(PL_HLP_ICON_W+PL_HLP_TXT_W1), PL_HLP_T, PL_HLP_ICON_W, PL_HLP_H);
        OSD_SetBitmapContent(&hlp_bmp, hlp_imgs[i]);
        OSD_DrawObject((POBJECT_HEAD)&hlp_bmp,C_UPDATE_ALL);

        OSD_SetObjRect((POBJECT_HEAD)&hlp_txt, \
                       PL_HLP_L+PL_HLP_ICON_W+i*(PL_HLP_ICON_W+PL_HLP_TXT_W1), PL_HLP_T, PL_HLP_TXT_W1, PL_HLP_H);
        OSD_SetTextFieldContent(&hlp_txt,STRING_ID,hlp_strs[i]);
        OSD_DrawObject((POBJECT_HEAD)&hlp_txt,C_UPDATE_ALL);
    }
    //show  delete all
    OSD_SetObjRect((POBJECT_HEAD)&hlp_bmp, \
                   PL_HLP_L+2*(PL_HLP_ICON_W+PL_HLP_TXT_W1), PL_HLP_T, PL_HLP_ICON_W, PL_HLP_H);
    OSD_SetBitmapContent(&hlp_bmp, hlp_imgs[2]);
    OSD_DrawObject((POBJECT_HEAD)&hlp_bmp,C_UPDATE_ALL);

    OSD_SetObjRect((POBJECT_HEAD)&hlp_txt, \
                   PL_HLP_L+PL_HLP_ICON_W+2*(PL_HLP_ICON_W+PL_HLP_TXT_W1), PL_HLP_T, PL_HLP_TXT_W2, PL_HLP_H);
    OSD_SetTextFieldContent(&hlp_txt,STRING_ID,hlp_strs[2]);
    OSD_DrawObject((POBJECT_HEAD)&hlp_txt,C_UPDATE_ALL);

}
コード例 #22
0
ファイル: win_mp_move_file.c プロジェクト: alkap007/ali3606
static void movefile_display_items(UINT16 uTop)
{
	UINT8 i,root_offset,bRoot;
	char str_buff[MAX_FILE_NAME_SIZE + 1];
	RET_CODE ret;
	TEXT_FIELD *pTxt;
	BITMAP *pBmp;
	FileInfo file_node;

	bRoot = win_check_openroot(win_move_dirlist);
	if(bRoot == FALSE)
		root_offset = 1;//if not root dir,add an item to exit
	else
		root_offset = 0;

	for(i = 0; i < MV_ITEM_CNT;i++)
	{
		if(((uTop+i) == 0) && (root_offset == 1))
		{
//			pTxt = mpmove_idxs[i];
//			OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)"/..");
//			pBmp = mpmove_icons[i];
//			OSD_SetBitmapContent(pBmp, 0);
			pTxt = mpmove_files[i];
			OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)"/..");
			continue;
		}//item exit

		ret = get_file_from_file_list(win_move_dirlist, (uTop+i + 1 - root_offset), &file_node);

		if(ret == RET_SUCCESS)
		{
//			pTxt = mpmove_idxs[i];
//			sprintf(str_buff,"%d",(uTop + i + 1));
//			OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)str_buff);
//			pBmp = mpmove_icons[i];
//			OSD_SetBitmapContent(pBmp, file_icon_ids[file_node.filetype]);
			pTxt = mpmove_files[i];
			//filter_unkownfont_name(file_node.name,str_buff);
			win_shorten_filename(file_node.name,str_buff);
			OSD_SetTextFieldContent(pTxt,STRING_UTF8,(UINT32)str_buff);
		}
		else
		{
//			pTxt = mpmove_idxs[i];
//			OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)"");
//			pBmp = mpmove_icons[i];
//			OSD_SetBitmapContent(pBmp, 0);
			pTxt = mpmove_files[i];
			OSD_SetTextFieldContent(pTxt,STRING_ANSI,(UINT32)"");
		}
	}
}
コード例 #23
0
ファイル: win_search.c プロジェクト: Janesak1977/ali3602
static void win_srch_draw_info(OSD_RECT* pRect, char* str, UINT16* unistr, UINT8 shidx)
{
	TEXT_FIELD* txt;
	txt = &srch_info;
	OSD_SetRect2(&txt->head.frame,pRect);
	if(str != NULL)
		OSD_SetTextFieldContent(txt, STRING_ANSI, (UINT32)str);
	else if (unistr != NULL)
		OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)unistr);
	OSD_SetColor(txt,shidx,shidx,shidx,shidx);
	OSD_DrawObject( (POBJECT_HEAD)txt, C_UPDATE_ALL);
}
コード例 #24
0
ファイル: win_purse.c プロジェクト: alkap007/ali3606
static void win_purse_set_display(void)
{
	UINT32 i,j,n;
	OBJLIST* ol;
	UINT16 top,cnt,page,index,curitem;
	UINT32 valid_idx,ew_flag;
	CONTAINER* item;
	TEXT_FIELD* txt;
	UINT8  purse_str[30];
	UINT16 icon_id;
	BITMAP* bmp;
	SYSTEM_DATA* sys_data;
	UINT8	hl_idx;

	sys_data = sys_data_get();
	
	ol = &purse_olist;
	cnt = purse_cnt;
//	cnt = OSD_GetObjListCount(ol);
	OSD_SetObjListCount(ol, cnt);
	page = OSD_GetObjListPage(ol); 
	top = OSD_GetObjListTop(ol);
	curitem = OSD_GetObjListNewPoint(ol);

	for(i=0;i<page;i++)
	{
		item = (CONTAINER*)purselist_items[i];
		index = top + i;
		
		if(index< cnt)
			valid_idx = 1;
		else
			valid_idx = 0;		

		/* Name*/
		txt = (PTEXT_FIELD)OSD_GetContainerNextObj(item);
		if(valid_idx)
			OSD_SetTextFieldContent(txt, STRING_ANSI,ap_purse[top+i].name);
		else
			OSD_SetTextFieldContent(txt, STRING_ANSI, (UINT32)"");

		 /* Balance*/
		txt = (PTEXT_FIELD)OSD_GetObjpNext(txt);
		if(valid_idx)
		{
			sprintf(purse_str, "%d", ap_purse[top+i].balance);
			OSD_SetTextFieldContent(txt, STRING_ANSI, (UINT32)purse_str);
		}
		else
			OSD_SetTextFieldContent(txt, STRING_ANSI, (UINT32)"");
	}
}
コード例 #25
0
ファイル: win_catch_up.c プロジェクト: alkap007/ali3606
static void catch_up_list_display(void)
{
	CONTAINER* con;
	TEXT_FIELD* text;
	OBJLIST* ol;
	UINT16 i,top,cnt,page,index,curitem,valid_idx;	
	struct catch_up_list_node_s *catch_up_list_node;
	char name[50] = {0};
	char time[50] = {0};

	ol = &ol_catch_up;

	cnt = OSD_GetObjListCount(ol);
	page = OSD_GetObjListPage(ol); 
	top = OSD_GetObjListTop(ol);
	curitem = OSD_GetObjListNewPoint(ol);
	
	for(i=0;i<page;i++)
	{
		con = (CONTAINER *)catch_up_items[i];
		index = top + i;

		if(index < cnt)
			valid_idx = 1;
		else
			valid_idx = 0;	

		/* IDX */
		text = (TEXT_FIELD*)OSD_GetContainerNextObj(con);
		
		if(valid_idx)
			OSD_SetTextFieldContent(text, STRING_NUMBER, index+ 1);
		else
			OSD_SetTextFieldContent(text, STRING_ANSI, (UINT32)"");

		/* Name**/
		text = (TEXT_FIELD*)OSD_GetObjpNext(text);
		
		if(valid_idx)
		{
			catch_up_list_node = catch_up_query(index);
			OSD_SetTextFieldContent(text, STRING_ANSI, (UINT32)(catch_up_list_node->data));
			memset(name, 0x0, sizeof(name));
			memset(time, 0x0, sizeof(time));
			catch_up_get_prog_name_time(catch_up_list_node->data, name, time);
			libc_printf("name = %s, time = %s\n", name, time);
		}
		else
			OSD_SetTextFieldContent(text, STRING_ANSI, (UINT32)"");
	}    
}
コード例 #26
0
ファイル: win_lcn.c プロジェクト: alkap007/ali3606
void win_osd_set_lcn(UINT8 input)
{
	if(input==0)
	{
		OSD_SetTextFieldContent(&osd_lcn_txtset1, STRING_ID,RS_COMMON_OFF);	
		lcn_sorted_flag2=0;
	}
	else
	{	
		sort_prog_node(PROG_LCN_SORT);
		lcn_sorted_flag2=1;
		OSD_SetTextFieldContent(&osd_lcn_txtset1, STRING_ID,RS_COMMON_ON);	
	}
}
コード例 #27
0
void win_mlimit_draw_txtinfo(UINT32 pos,UINT32 state)
{
	TEXT_FIELD* txt;
	UINT8 style;
	UINT16 strID;

	txt = &mlimit_txtinfo;

	txt->head.frame.uLeft = (pos == 0)? TXTINFO_L1 : TXTINFO_L2;
	txt->bAlign = (pos == 0)? (C_ALIGN_RIGHT | C_ALIGN_VCENTER) : (C_ALIGN_LEFT | C_ALIGN_VCENTER);

	strID = (state == 3)? 0 :  ( (pos==0)? RS_DISEQC12_MOVEMENT_WEST : RS_DISEQC12_MOVEMENT_EAST);
	OSD_SetTextFieldContent(txt,STRING_ID,strID);
	switch(state)
	{
	case 0:
		style = TXTINFO_SH_IDX;
		break;
	case 1:
		style = TXTINFO_HL_IDX;
		break;
	case 2:
		style = TXTINFO_SL_IDX;
		break;
	case 3:
	default:
		style = TXTINFO_GRY_IDX;		
	}

	OSD_SetColor(txt, style, style, style, style);
	OSD_DrawObject((POBJECT_HEAD)txt,C_UPDATE_ALL);
	 
}
コード例 #28
0
UINT32 win_youtube_open()
{

	CONTAINER* win;
	PRESULT ret = PROC_LOOP;
	UINT32 hkey;
	TEXT_FIELD* txt;
	UINT16 strID;

    BOOL old_value = ap_enable_key_task_get_key(TRUE);
 	txt = &youtube_opts_title;
	
	strID = RS_YOUTUBE_OPTION;
	OSD_SetTextFieldContent(txt, STRING_ID,(UINT32)strID);

	win = &win_youtube_opts_con;
	OSD_SetContainerFocus(win, MENU_YT_OPTS);

	OSD_ObjOpen((POBJECT_HEAD)win, 0);
	 
	while(ret != PROC_LEAVE)
	{
	    hkey = ap_get_popup_msg(C_POPUP_MSG_PASS_CI);
        if(hkey == INVALID_HK || hkey == INVALID_MSG)
            continue;

		ret = OSD_ObjProc((POBJECT_HEAD)win, (MSG_TYPE_KEY<<16),hkey, 0);
	}
    ap_enable_key_task_get_key(old_value);

	return youtube_search_ok;	
}
コード例 #29
0
ファイル: win_usbupg.c プロジェクト: alkap007/ali3606
static void win_usbupg_msg_update(UINT16 str_id)
{
	UINT32 i,j;
	OSD_RECT rect;

	//ComAscStr2Uni(str, display_strs[10+usbupg_msg_line%USBUPG_MSG_MAX_LINE]);
#if 0
	for(i=0; i<USBUPG_MSG_MAX_LINE; i++)
	{
		if(usbupg_msg_line<USBUPG_MSG_MAX_LINE)
			j = i%USBUPG_MSG_MAX_LINE;
		else
			j = (usbupg_msg_line+1+i)%USBUPG_MSG_MAX_LINE;
		
		usbupg_msg_buf[i] = str_id;//display_strs[10+j];
	}
#endif
	usbupg_msg_buf[usbupg_msg_line % USBUPG_MSG_MAX_LINE] = str_id;

		//draw msg infos
	for(i=0; i<USBUPG_MSG_MAX_LINE; i++)
	{
		rect.uLeft 	= MSG_L;
		rect.uTop  	= MSG_T+(MSG_H+MSG_GAP)*i;
		rect.uWidth = MSG_W;
		rect.uHeight= MSG_H;

		OSD_SetRect2(&usbupg_txt_msg.head.frame, &rect);
		OSD_SetTextFieldContent(&usbupg_txt_msg, STRING_ID, (UINT32)usbupg_msg_buf[i]);
		OSD_DrawObject( (POBJECT_HEAD)&usbupg_txt_msg, C_UPDATE_ALL);
	}
	
	usbupg_msg_line++;
}
コード例 #30
0
ファイル: win_ci_slots.c プロジェクト: alkap007/ali3606
static PRESULT ci_win_event_proc(POBJECT_HEAD pObj, UINT32 msg_type, UINT32 msg_code)
{
	PRESULT ret = PROC_LOOP;
	UINT16 slot;
	UINT16 msg;
	UINT8 ci_slot_status;
	UINT16 ci_slot_status_str[CI_MENU_TXT_LENGTH + 1];
	UINT8 focusID;
	
	
	if((msg_type & 0xffff) == CTRL_MSG_SUBTYPE_STATUS_CI)
	{
		slot = msg_code >> 16;
		msg  = msg_code & 0xFFFF;

		ci_slot_status = win_ci_msg_to_status(msg);
		win_ci_set_slot_status(slot, ci_slot_status);
		win_ci_get_slot_status_text(slot, ci_slot_status_str);
		OSD_SetTextFieldContent((PTEXT_FIELD)txt_ci_slots[slot], STRING_UNICODE, (UINT32)ci_slot_status_str);

		focusID = OSD_GetFocusID((POBJECT_HEAD)&g_win_ci_slots);
		if(focusID == (slot + 1))
			OSD_TrackObject(con_ci_slots[slot], C_UPDATE_ALL);
		else
			OSD_DrawObject(con_ci_slots[slot], C_UPDATE_ALL);
	}