setup_tab_ui_o.c
上传用户:caisangzi8
上传日期:2013-10-25
资源大小:15756k
文件大小:116k
- /********************************************
- * setup_newstyle_ui.h
- *
- * include in setup_tab.c
- * when normal setup menu.
- *
- * UI function:
- * LEFT,RIGHT, UP, DOWN, SELECT, ShowSetupPage.
- *
- * Creator: zhaoyanhua
- * Date: 3-7-25 17:12
- *******************************************/
- //--------------------------------------
- //Modefied by wangfeng,
- //
- //For new setup menu "#ifdef SETUP_COLOR_TYPE1",
- //
- //2003-08-29 15:18
- //--------------------------------------
- //--------------------------------------
- //Modefied by zhangyu,
- //
- //For new setup menu "#ifdef SETUP_COLOR_TYPE2",
- //
- //3-9-1 4:42张宇P
- //--------------------------------------
- void ShowCUSTMMsg(void);
- void setup_SetDTSDOWNMIXConfig();
- #ifdef SETUP_PASSWORD_GUI
- BYTE passwdGUI_state = NO_GUI_STATE;//record the current state in password GUI
- #endif//SETUP_PASSWORD_GUI
- #include "one_key_pass.h"
- #ifdef SCART_TV_5 //wangfeng 2003-12-3 16:49
- extern void SetScartTV5();
- extern void ReSetScartTV5();
- #endif
- #ifdef TONIC_DVD
- int ShowPasswordErr;
- #endif//TONIC
- #ifdef PROLOGICII_3D_MUTEX
- extern BYTE soundGetSurroundType(void);
- extern BYTE soundGetEQType(void);
- extern BYTE soundGetEQType(void);
- #endif//PROLOGICII_3D_MUTEX
- #ifdef SHOW_STANDBY_TIMER //suqiaoli add 8-13
- extern void exe_standby_timer(void);
- extern void polling_setup_standby_timer(void);
- extern void reset_standby_timer_pos(void);
- #endif
- void setup_func_down(void)
- {
- const char *str;
- int i;
- //UINT16 line=SETUP_MAX_WIDTH*16-20;//wanghaoying 2003-8-12 19:45 marked for not used
- #ifdef SETUP_PASSWORD_GUI//zhaoyanhua add 2004-1-16 11:15
- //in PASSWORD GUI, LEFT/RIGHT/UP/DOWN has no use.
- if(passwdGUI_state != NO_GUI_STATE)
- return;
- #endif
- #if defined(BBK_NEW_SETUP)&&defined(BBK_DV961_DVD) //axel 2004/1/26 04:01 DSS555 need not OENKEYPASSPAGE
- if(main_setup)
- {
- draw_setup_Btn_HL( 1, ONE_KEY_PASS_X*11, ONE_KEY_PASS_Y*4, 8* 24, 1*32,4,MAIN_SETUP_PAGE_BGCOLOR);
- draw_setup_Btn_HL( 1,SETUP_X*14+28, SETUP_Y*4, 8* 24, 1*32,4,MAIN_SETUP_PAGE_BGCOLOR);
- index_x = EXIT_SETUP_MENU_X;
- draw_setup_Btn_HL( 1,EXIT_SETUP_MENU_X*14+32, EXIT_SETUP_MENU_Y*4, 9* 24, 1*32,4,SETUP_HL_COLOR);
- return;
- }
- #endif
-
- reset_passwd_cnt();
- #ifdef SHOW_STANDBY_TIMER //suqiaoli add 8-8
- reset_standby_timer_pos();
- #endif
- #ifdef SETUP_COLOR_TYPE1 //wangfeng 2003-08-29 17:28
- SetOsdCol(0,0,SANTIBGCOLOR,0x78501e90);//a8a8a8ff);//gray white
- #elif defined(SETUP_COLOR_TYPE2) //zhangyu 3-9-1 4:38张宇P
- //SetOsdCol(0,0,SANTIBGCOLOR,0xc0c0c0e0);
- SetOsdCol(0,0,SANTIBGCOLOR,0xa346ffc0);
- #else
- SetOsdCol(0,0,SANTIBGCOLOR,0xa346ffc0);
- #endif
- if (setupLevel==0) { //main menu page
- setupLevel=1;
- id=setup_item[page][index_y][1];
- setup_DrawItem(1, SETUP_MENU_YSTART+1, 1);
- // highlight : draw a frame to identify which tab is enable
- /*osd_DrawLine(line*page/6+30,14,line*page/6+80,14,SBGCOLOR,1);
- osd_DrawLine(line*page/6+30,50,line*page/6+80,50,SBGCOLOR,1);
- osd_DrawLine(line*page/6+30,14,line*page/6+30,50,SBGCOLOR,1);
- osd_DrawLine(line*page/6+80,14,line*page/6+80,50,SBGCOLOR,1);*/
-
- #if !defined(SETUP_COLOR_TYPE1) && !defined(SETUP_COLOR_TYPE2)// zhangyu 2003-08-29 17:28
- setup_Showredframe(page);
- #endif
- draw_3rd_menu();
- return;
- } else
- if (setupLevel==1) {
- //second level menu page
- #if defined(BBK_NEW_SETUP)&&defined(BBK_DV961_DVD) //axel 2004/1/26 04:01 DSS555 need not OENKEYPASSPAGE //calculate setupItemNum[1] true value.zhaoyanhua add 03-11-7 14:03
- int iItemType;
-
- for (i=0; i<MAX_PAGE_ITEM; i++)
- {
- iItemType=setup_item[page][i][0];
- if (iItemType == SET_SPACE) continue;
- if (iItemType == SET_NE) break;
- }
- setupItemNum[1] = i;
- #endif
- if ( (index_y+index_y_start) < (setupItemNum[1]-1)) {
- if (full_scrn&CUSTM) {
- //CUSTM menu page
- //clear third-level menu
- #ifdef RATING_8
- if (index_y == 3)
- {
- #if defined(SETUP_COLOR_TYPE2)||defined(SETUP_COLOR_TYPE1) //zhangyu 3-9-1 4:38张宇P
- osd_draw_rect((SETUP_SUB_XSTART-1)*16,
- SETUP_MENU_YSTART*SETUP_BUTTON_HEIGHT+31,
- (SETUP_MAX_WIDTH-SETUP_SUB_XSTART-1)*16,
- (SETUP_MAX_LINE-SETUP_MENU_YSTART-2)*SETUP_BUTTON_HEIGHT,
- SBGCOLOR);
- #else
- osd_draw_rect((SETUP_SUB_XSTART-1)*16,
- //SETUP_MENU_YSTART,
- SETUP_MENU_YSTART*SETUP_BUTTON_HEIGHT+31,
- (SETUP_MAX_WIDTH-SETUP_SUB_XSTART-1)*16,
- (SETUP_MAX_LINE-SETUP_MENU_YSTART-2)*SETUP_BUTTON_HEIGHT-68,
- SBGCOLOR);
- #endif
- ShowCUSTMMsg();
- }
- else
- #endif//end RAGING_8
- #ifdef SUPER_DEFAULT_OSD_LANG
- if ((index_y == CUSTMOSDITEM)&&((8-N_OSD_LANGS)<=1))
- {
- #if defined(SETUP_COLOR_TYPE2)||defined(SETUP_COLOR_TYPE1) //zhangyu 3-9-1 4:38张宇P
- osd_draw_rect((SETUP_SUB_XSTART-1)*16,SETUP_MENU_YSTART*SETUP_BUTTON_HEIGHT+31,(SETUP_MAX_WIDTH-SETUP_SUB_XSTART-1)*16,(SETUP_MAX_LINE-SETUP_MENU_YSTART-2)*SETUP_BUTTON_HEIGHT,SBGCOLOR);
- #else
- osd_draw_rect((SETUP_SUB_XSTART-1)*16,SETUP_MENU_YSTART*SETUP_BUTTON_HEIGHT+31,(SETUP_MAX_WIDTH-SETUP_SUB_XSTART-1)*16,(SETUP_MAX_LINE-SETUP_MENU_YSTART-2)*SETUP_BUTTON_HEIGHT-68,SBGCOLOR);
- #endif
- ShowCUSTMMsg();
- }
- else
- #endif
- {
- osd_draw_rect((SETUP_SUB_XSTART-1)*16,
- (SETUP_MENU_YSTART+3)*SETUP_BUTTON_HEIGHT,
- (SETUP_MAX_WIDTH-SETUP_SUB_XSTART-1)*16,
- (SETUP_MAX_LINE-SETUP_MENU_YSTART-2)*SETUP_BUTTON_HEIGHT,
- SBGCOLOR);
- }
-
- id = setup_item[page][index_y][1];
- setup_DrawItem(1, index_y+SETUP_MENU_YSTART+1, 0);
- index_y++;
- id = setup_item[page][index_y][1];
- setup_DrawItem(1, index_y+SETUP_MENU_YSTART+1, 1);
- //the last active item in sub-menu is "EXIT", so we skip it's drawing selection area
- #ifdef RCD_GPIO_CONTROL // alan 2002/7/26 02:08