本文整理汇总了C++中OSD_GetObjID函数的典型用法代码示例。如果您正苦于以下问题:C++ OSD_GetObjID函数的具体用法?C++ OSD_GetObjID怎么用?C++ OSD_GetObjID使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OSD_GetObjID函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sate_item_edt_callback
static PRESULT sate_item_edt_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 bID;
UINT8 unact;
UINT8 caps;
mobile_input_type_t mobile_input_type;
caps = mobile_input_get_caps();
mobile_input_type.type = MOBILE_INPUT_NORMAL;
mobile_input_type.caps_flag = caps? MOBILE_CAPS_INIT_UP : MOBILE_CAPS_INIT_LOW;
mobile_input_type.maxlen = 17;
mobile_input_type.fixlen_flag = 0;
mobile_input_type.callback = NULL;
bID = OSD_GetObjID(pObj);
switch(event)
{
case EVN_KEY_GOT:
if(bID == SAT_NAME_ID)
{
ret = mobile_input_proc((EDIT_FIELD*)pObj,(VACTION)(param1>>16), param1 & 0xFFFF, param2);
if(ret == PROC_LOOP)
draw_caps_flag(CAPSFLG_L,CAPSFLG_T, 1);
}
break;
case EVN_PRE_CHANGE:
break;
case EVN_POST_CHANGE:
break;
case EVN_UNKNOWN_ACTION:
unact = (VACTION)(param1>>16);
if(unact == VACT_CHANGE_SUB)
{
sat_orbit_direct = sat_orbit_direct == 0 ? 1 : 0;
OSD_SetEditFieldSuffix( (PEDIT_FIELD)pObj, STRING_ANSI, (UINT32)longitute_sub_chars[sat_orbit_direct]);
OSD_TrackObject(pObj, C_DRAW_SIGN_EVN_FLG | C_UPDATE_ALL);
}
break;
case EVN_FOCUS_PRE_GET:
case EVN_PARENT_FOCUS_PRE_GET:
if(bID == SAT_NAME_ID)
{
mobile_input_init((EDIT_FIELD*)pObj,&mobile_input_type);
draw_caps_flag(CAPSFLG_L,CAPSFLG_T, 1);
draw_caps_del_colbtn(COLBTN_L, COLBTN_T,1);
}
break;
case EVN_FOCUS_PRE_LOSE:
case EVN_PARENT_FOCUS_PRE_LOSE:
if(bID == SAT_NAME_ID)
{
mobile_input_init((EDIT_FIELD*)pObj,&mobile_input_type);
draw_caps_flag(CAPSFLG_L,CAPSFLG_T, 0);
draw_caps_del_colbtn(COLBTN_L, COLBTN_T,0);
}
break;
}
示例2: nc_item_con_keymap
static VACTION nc_item_con_keymap(POBJECT_HEAD pObj, UINT32 key)
{
VACTION act=VACT_PASS;
UINT8 bID = OSD_GetObjID(pObj);
switch(key)
{
case V_KEY_ENTER:
act = VACT_ENTER;
break;
case V_KEY_YELLOW:
act = VACT_COPYDATA;
break;
#if 0
12345
//ppppppppppp
case V_KEY_BLUE:
act = VACT_DOMAIN_IP;
break;
#endif
default:
act = VACT_PASS;
break;
}
return act;
}
示例3: timerset_msel_callback
static PRESULT timerset_msel_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 bID;
UINT32 sel;
bID = OSD_GetObjID(pObj);
switch (event)
{
case EVN_PRE_CHANGE:
sel = *((UINT32*)param1);
case EVN_POST_CHANGE:
sel = param1;
if (bID == TIMER_MODE_ID)
win_timerset_timermode_change(TRUE);
else if (bID == TIMER_SERVICE_ID)
win_timerset_timerservice_change(TRUE);
else if (bID == TIMER_SERVICEINFO_ID)
win_timerset_timerserviceinfo_change(TRUE, (UINT16)sel);
break;
}
return ret;
}
示例4: cti_con_callback
static PRESULT cti_con_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
CONTAINER* cont = (CONTAINER*)pObj;
UINT8 id = OSD_GetObjID(pObj);
UINT8 action;
switch(event)
{
case EVN_PRE_OPEN:
cti_win_initial();
wincom_open_subtitle(pObj,RS_CTI_CONDITION_ACCESS,0);
break;
case EVN_POST_OPEN:
break;
case EVN_PRE_CLOSE:
/* Make OSD not flickering */
*((UINT32*)param2) &= ~C_CLOSE_CLRBACK_FLG;
break;
case EVN_POST_CLOSE:
wincom_close_subtitle();
OSD_TrackObject( (POBJECT_HEAD) &g_win_mainmenu, C_UPDATE_ALL);
break;
}
return ret;
}
示例5: nc_item_sel_callback
static PRESULT nc_item_sel_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 bID = OSD_GetObjID(pObj);
switch(event)
{
case EVN_POST_CHANGE:
if(ID_CON_BACTIVE== bID)
{
newcamd_serinfo[current_index-1].bActive=param1;
nc_item_sel_active(newcamd_serinfo[current_index-1].bActive,newcamd_serinfo[current_index-1].bAutouser,TRUE);
}
else if(ID_CON_BAUTOUSER== bID)
{
newcamd_serinfo[current_index-1].bAutouser=param1;
nc_item_sel_autouser(newcamd_serinfo[current_index-1].bActive,newcamd_serinfo[current_index-1].bAutouser,TRUE);
}
else if(ID_CON_BDNS == bID)
{
newcamd_serinfo[current_index-1].bDNS_enable=param1;
nc_item_sel_DNSenable(newcamd_serinfo[current_index-1].bDNS_enable,TRUE);
}
break;
default:
break;
}
return ret;
}
示例6: timerset_btn_callback
static PRESULT timerset_btn_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 bID;
UINT8 back_save;
bID = OSD_GetObjID(pObj);
switch (event)
{
case EVN_UNKNOWN_ACTION:
if (bID == TIMER_BTN_OK_ID)
{
if (win_timerset_check_and_save() == 0)
{
timer_set_ok_cancel_flag = 1;
ret = PROC_LEAVE;
}
else
{
win_compopup_init(WIN_POPUP_TYPE_OK);
win_compopup_set_msg(NULL, NULL, RS_MSG_INVALID_INPUT_CONTINUE);
win_compopup_open_ext(&back_save);
}
}
else
ret = PROC_LEAVE;
break;
}
return ret;
}
示例7: sys_backup_item_sel_callback
static PRESULT sys_backup_item_sel_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
UINT8 bID;
UINT16 sel, *Uni_str;
UINT32 block_len;
char str_buf[20] = {0};
PRESULT ret = PROC_PASS;
bID = OSD_GetObjID(pObj);
switch(event)
{
case EVN_REQUEST_STRING:
sel = param1;
Uni_str= (UINT16*)param2; // NOTICE: Uni_str size is 32 (#define MAX_STR_LEN 32) in obj_multisel.c
if(bID == BACKUP_MODE_ID)
{
memcpy(str_buf, usb_backup_type_name[sel], STRLEN(usb_backup_type_name[sel]));
ComAscStr2Uni(str_buf, Uni_str);
}
else
{
ComAscStr2Uni("", Uni_str);
}
break;
default:
break;
}
return ret;
}
示例8: pvr_setting_item_con_callback
static PRESULT pvr_setting_item_con_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 unact;
BOOL input;
UINT8 id = OSD_GetObjID(pObj);
switch(event)
{
case EVN_FOCUS_PRE_GET:
break;
case EVN_FOCUS_PRE_LOSE:
break;
case EVN_UNKNOWN_ACTION:
unact = (VACTION)(param1>>16) ;
if(unact == VACT_DECREASE)
{
win_pvr_setting_left_key(pObj,id);
}
else if(unact == VACT_INCREASE)
{
win_pvr_setting_right_key(pObj,id);
}
ret = PROC_LOOP;
break;
}
return ret;
}
示例9: checkdisk_item_con_callback
static PRESULT checkdisk_item_con_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 unact;
BOOL input;
UINT8 id = OSD_GetObjID(pObj);
switch(event)
{
case EVN_FOCUS_PRE_GET:
break;
case EVN_FOCUS_PRE_LOSE:
break;
case EVN_UNKNOWN_ACTION:
unact = (VACTION)(param1>>16) ;
input = sys_data_get_checkdisk();
if((unact == VACT_INCREASE) || (unact == VACT_DECREASE))
{
input = !input;
}
sys_data_set_checkdisk(input);
win_checkdisk_set_string(input);
OSD_TrackObject(pObj,C_UPDATE_ALL);
ret = PROC_LOOP;
break;
}
return ret;
}
示例10: checkdisk_con_callback
static PRESULT checkdisk_con_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 unact;
UINT32 i;
BOOL subt_flag;
CONTAINER* cont = (CONTAINER*)pObj;
UINT8 id = OSD_GetObjID(pObj);
static UINT8 preval;
switch(event)
{
case EVN_PRE_OPEN:
preval = sys_data_get_checkdisk();
wincom_open_title((POBJECT_HEAD)&g_win_checkdisk,RS_DVR_CHECKDISK, 0);
win_checkdisk_set_string(preval);
break;
case EVN_POST_OPEN:
break;
case EVN_PRE_CLOSE:
if(preval != sys_data_get_checkdisk())
{
sys_data_save(1);
}
break;
case EVN_POST_CLOSE:
break;
}
return ret;
}
示例11: pvod_item_sel_callback
static PRESULT pvod_item_sel_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 bID = OSD_GetObjID(pObj);
UINT32 progNum;
char string[100];
switch(event)
{
case EVN_REQUEST_STRING:
if(bID==1)
{
UINT16 *uni_progName=(UINT16 *)param2;
UINT8 * src;
//ComAscStr2Uni("No Data", uni_progName);
src = OSD_GetUnicodeString(RS_DISPLAY_NO_DATA);
ComUniStrCopyChar((UINT8*)uni_progName, src);
}
break;
case EVN_POST_CHANGE:
//win_pvod_display_msg(param1);
break;
default:
break;
}
return ret;
}
示例12: otaset_item_edf_callback
static PRESULT otaset_item_edf_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 bID;
UINT8 status;
EDIT_FIELD* edf;
bID = OSD_GetObjID(pObj);
edf = (EDIT_FIELD*)pObj;
switch(event)
{
case EVN_POST_CHANGE:
status = OSD_GetEditFieldStatus(edf);
if(status == SELECT_STATUS)
{
if(bID == EDIT_TP_FREQ_ID || bID == EDIT_TP_SYMB_ID)
win_otaset_turn_frntend();
}
break;
case EVN_PARENT_FOCUS_POST_LOSE:
if(bID == EDIT_TP_FREQ_ID || bID == EDIT_TP_SYMB_ID)
{
if(win_otaset_get_FreqSymbPid_display() != 0)
win_otaset_turn_frntend();
}
break;
}
return ret;
}
示例13: factoryset_callback
static PRESULT factoryset_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
CONTAINER* cont = (CONTAINER*)pObj;
UINT8 id = OSD_GetObjID(pObj);
switch(event)
{
case EVN_PRE_OPEN:
OSD_SetContainerFocus(cont, BTN_NO_ID);
//OSD_SetContainerFocus(cont, 2);
wincom_open_subtitle((POBJECT_HEAD)&win_factoryset_con,RS_TOOLS_FACTORY_SETTING, 0);
break;
case EVN_POST_OPEN:
break;
case EVN_PRE_CLOSE:
/* Make OSD not flickering */
*((UINT32*)param2) &= ~C_CLOSE_CLRBACK_FLG;
break;
case EVN_POST_CLOSE:
wincom_close_subtitle();
OSD_TrackObject( (POBJECT_HEAD) &g_win_mainmenu, C_UPDATE_ALL);
break;
}
return ret;
}
示例14: sto_set_con_callback
static PRESULT sto_set_con_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 unact;
UINT32 i;
BOOL subt_flag;
CONTAINER* cont = (CONTAINER*)pObj;
UINT8 id = OSD_GetObjID(pObj);
char new_volume[16];
switch(event)
{
case EVN_PRE_OPEN:
wincom_open_subtitle((POBJECT_HEAD)&g_win_sto_setting,RS_STORAGE_SETTING, 0);
m_sd_ide_statue = sys_data_get_sd_ide_statue();
win_sto_set_sd_ide_set_string(m_sd_ide_statue,&sto_set_item_txtset1);
OSD_SetContainerFocus(&g_win_sto_setting, 1);
break;
case EVN_POST_OPEN:
break;
case EVN_PRE_CLOSE:
*((UINT32 *)param2) &= ~C_CLOSE_CLRBACK_FLG;
win_pvr_sd_ide_save();
sys_data_save(1);
break;
case EVN_POST_CLOSE:
break;
case EVN_UNKNOWN_ACTION:
break;
}
return ret;
}
示例15: games_con_item_callback
static PRESULT games_con_item_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT ret = PROC_PASS;
UINT8 unact;
UINT8 id = OSD_GetObjID(pObj) + sub_menu_desc->list_top;
switch(event)
{
case EVN_UNKNOWN_ACTION:
unact = (VACTION)(param1>>16) ;
if(unact == VACT_ENTER)
{
if(id==GAMES_TETRIS_ID)
{
game_tetris_init();
}
else if(id==GAMES_SNAKE_ID)
{
game_othello_init();
}
else if(id==GAMES_SUDOKU_ID)
{
game_sudoku_init();
}
enter_sub_menu(games_sub_menus,id - 1);
ret = PROC_LOOP;
}
}
return ret;
}