setup_ui_sel_SFM.c
上传用户:caisangzi8
上传日期:2013-10-25
资源大小:15756k
文件大小:6k
- /*
- * FileName: setup_ui_sel_SFM.c
- * Author: ChenZhao Version: Date: 2004-9-20
- * Description: include fucntion setup_func_select
- * Version:
- * Function List:
- * 1.setup_func_select
- * History:
- * <author> <time> <version > <desc>
- */
- #ifdef EASTECH_SETUPMENU
- extern void show_pscan_wait(void);
- extern void show_pscan_warning(void);
- extern BYTE check_show_pscan_wait_time_mode;
- extern BYTE video_out_type;
- BYTE Pscan_on=0;
- #endif
- void setup_func_select(void)
- {
- switch(setup_gui_state)
- {
- case SETUPGUI_MENU:
- if(2==setupLevel)
- {
- if(SET_FUNC==setup_item[page][index_y][0])
- {
- if(index_y2>=MIN_ITEM_SEL && index_y2<setupItemNum[2])
- {
- if(STR_OS_RESTORE_SETUP==setup_item[page][index_y][index_y2])
- {
- set_default_value();
- run_set_variable();
- run_save_total_sel();
- setupLevel=1;
- ShowSetupPage(REFRESH_SETUP);
- setup_SetDTSDOWNMIXConfig();
- }
- #ifdef EASTECH_SETUPMENU
- else if((STR_OS_P_SCAN_YUV==setup_item[page][index_y][index_y2-1])&&(STR_OS_ON==setup_item[page][index_y][index_y2]))
- {
- setupLevel=3;
- index_pscan_ok=0;
- show_pscan_warning();
- }
- #endif
- else
- {
- setup_sel[page][index_y]=index_y2;
- #ifdef EASTECH_SETUPMENU
- video_out_type=index_y2;
- setup_sel[page][index_y]=video_out_type;
- #endif
- exe_setup_function(setup_item[page][index_y][1],setup_item[page][index_y][index_y2],1);
- setupLevel=1;
- ShowSetupPage(REFRESH_ITEM);
- run_save_sel_cmd(page,index_y);
- }
- }
- }
- else if(SET_SCALE==setup_item[page][index_y][0])
- {
- setupLevel=1;
- run_save_sel_cmd(page,index_y);
- ShowSetupPage(REFRESH_ITEM);
- }
- }
- else if(1==setupLevel)
- {
- if((SET_NM==setup_item[page][index_y][0]) && !(full_scrn&CUSTM))
- {
- setupLevel=2;
- setup_gui_state=SETUPGUI_PASSWORD;
- passwordstate=PASSWORDS_INIT;
- ShowSetupPassword("");
- }
- else if(STR_OS_RETURN_MAIN_SETUP==setup_item[page][index_y][1])
- {
- if (full_scrn&CUSTM)
- {
- ExitSetupPage(1);
- }
- else
- {
- ExitSetupPage(1);
- }
- }
- #ifdef TEST_INTERLACE//Modifed by ChenZhao on 2004-9-20 11:39
- else if((STR_OS_DEINTLC==setup_item[page][index_y][1])&&(full_scrn&CUSTM))
- {
- setupLevel=2;
- setup_gui_state=SETUPGUI_TESTINTERLACE;
- osd_changeAlpha(0xff);
- test_interlace(0);
- }
- #endif//TEST_INTERLACE
- }
- #ifdef EASTECH_SETUPMENU
- else if(3==setupLevel)
- {
- if(index_pscan_ok==1){
- setup_sel[page][index_y]=index_y2;
- exe_setup_function(setup_item[page][index_y][1],setup_item[page][index_y][index_y2],1);
- show_pscan_wait();
- setupLevel=4;
- index_pscan_ok=0;
-
- }
- else{
- index_y2+=1;
- index_pscan_ok=0;
- setup_sel[page][index_y]=video_out_type;
- index_y2=video_out_type;
- setup_sel[page][index_y]=index_y2;
- exe_setup_function(setup_item[page][index_y][1],setup_item[page][index_y][index_y2],1);
- setupLevel=1;
- ShowSetupPage(REFRESH_ITEM);
- run_save_sel_cmd(page,index_y);
- video_out_type=0;
-
- }
- }
- else if(4==setupLevel)
- {
- if(index_pscan_ok==1){
- setupLevel=1;
- index_pscan_ok=0;
- setup_sel[page][index_y]=index_y2;
- video_out_type=index_y2;
- setup_sel[page][index_y]=video_out_type;
- ShowSetupPage(REFRESH_ITEM);
- run_save_sel_cmd(page,index_y);
- check_show_pscan_wait_time_mode=0;
- Pscan_on=1;
- }
- else{
- index_y2+=1;
- index_pscan_ok=0;
- //setup_sel[page][index_y]=3; //set it to s_video(default value)
- setup_sel[page][index_y]=video_out_type;
- index_y2=video_out_type;
- setup_sel[page][index_y]=index_y2;
- exe_setup_function(setup_item[page][index_y][1],setup_item[page][index_y][index_y2],1);
- setupLevel=1;
- ShowSetupPage(REFRESH_ITEM);
- run_save_sel_cmd(page,index_y);
- check_show_pscan_wait_time_mode=0;
- video_out_type=0;
- }
- }
- #endif
- break;
- case SETUPGUI_PASSWORD:
- switch(passwordstate)
- {
- case PASSWORDS_OLD:
- case PASSWORDS_NEW:
- case PASSWORDS_CONFIRM:
- setupLevel=1;
- reset_passwd_cnt();
- setup_gui_state=SETUPGUI_MENU;
- ShowSetupPage(REFRESH_ITEM);
- break;
- case PASSWORDS_ENTER:
- passwordstate=PASSWORDS_UNLOCK;
- ShowSetupPassword("");
- break;
-
- case PASSWORDS_NULL:
- break;
-
- default:
- passwordstate=PASSWORDS_NULL;
- break;
- }
- break;
-
- #ifdef TEST_INTERLACE//Modifed by ChenZhao on 2004-9-20 11:39
- case SETUPGUI_TESTINTERLACE:
- setupLevel=1;
- setup_gui_state=SETUPGUI_MENU;
- osd_changeAlpha(0x00);
- ShowSetupPage(REFRESH_ITEM);
- break;
- #endif//TEST_INTERLACE
-
- default:
- break;
- }
- }
- //end of file--------------------------