setup_tab_ui_o.c
上传用户:caisangzi8
上传日期:2013-10-25
资源大小:15756k
文件大小:116k
源码类别:

DVD

开发平台:

C/C++

  1. /********************************************
  2. *  setup_newstyle_ui.h
  3. *
  4. *  include  in setup_tab.c   
  5. *  when normal setup menu.
  6. *  UI function:
  7. *     LEFT,RIGHT, UP, DOWN,  SELECT, ShowSetupPage. 
  8. * Creator: zhaoyanhua 
  9. * Date:  3-7-25 17:12
  10. *******************************************/
  11. //--------------------------------------
  12. //Modefied by wangfeng,
  13. //
  14. //For new setup menu  "#ifdef SETUP_COLOR_TYPE1",
  15. //
  16. //2003-08-29 15:18
  17. //--------------------------------------
  18. //--------------------------------------
  19. //Modefied by zhangyu,
  20. //
  21. //For new setup menu  "#ifdef SETUP_COLOR_TYPE2",
  22. //
  23. //3-9-1 4:42张宇P
  24. //--------------------------------------
  25. void ShowCUSTMMsg(void);
  26. void setup_SetDTSDOWNMIXConfig();
  27. #ifdef SETUP_PASSWORD_GUI
  28. BYTE passwdGUI_state = NO_GUI_STATE;//record the current state in password GUI
  29. #endif//SETUP_PASSWORD_GUI
  30. #include "one_key_pass.h"
  31. #ifdef SCART_TV_5 //wangfeng 2003-12-3 16:49
  32. extern void SetScartTV5();
  33. extern void ReSetScartTV5();
  34. #endif
  35. #ifdef TONIC_DVD
  36. int ShowPasswordErr;
  37. #endif//TONIC
  38. #ifdef PROLOGICII_3D_MUTEX
  39. extern BYTE soundGetSurroundType(void);
  40. extern BYTE soundGetEQType(void);
  41. extern BYTE soundGetEQType(void);
  42. #endif//PROLOGICII_3D_MUTEX
  43. #ifdef SHOW_STANDBY_TIMER  //suqiaoli  add 8-13
  44. extern void exe_standby_timer(void);
  45. extern void polling_setup_standby_timer(void);
  46. extern void reset_standby_timer_pos(void);
  47. #endif
  48. void setup_func_down(void)
  49. {
  50.     const char *str;
  51.     int     i;
  52.     //UINT16 line=SETUP_MAX_WIDTH*16-20;//wanghaoying 2003-8-12 19:45 marked for not used
  53. #ifdef SETUP_PASSWORD_GUI//zhaoyanhua add 2004-1-16 11:15
  54.   //in PASSWORD GUI, LEFT/RIGHT/UP/DOWN has no use.
  55. if(passwdGUI_state != NO_GUI_STATE)
  56. return;
  57. #endif       
  58. #if defined(BBK_NEW_SETUP)&&defined(BBK_DV961_DVD) //axel 2004/1/26 04:01 DSS555 need not OENKEYPASSPAGE         
  59. if(main_setup)
  60. {
  61. draw_setup_Btn_HL( 1, ONE_KEY_PASS_X*11, ONE_KEY_PASS_Y*4, 8* 24, 1*32,4,MAIN_SETUP_PAGE_BGCOLOR);
  62. draw_setup_Btn_HL( 1,SETUP_X*14+28, SETUP_Y*4, 8* 24, 1*32,4,MAIN_SETUP_PAGE_BGCOLOR);
  63. index_x = EXIT_SETUP_MENU_X;
  64. draw_setup_Btn_HL( 1,EXIT_SETUP_MENU_X*14+32, EXIT_SETUP_MENU_Y*4, 9* 24, 1*32,4,SETUP_HL_COLOR);
  65. return;
  66. }
  67. #endif
  68.     
  69.     reset_passwd_cnt();
  70.     #ifdef SHOW_STANDBY_TIMER  //suqiaoli add 8-8
  71. reset_standby_timer_pos();
  72. #endif
  73. #ifdef SETUP_COLOR_TYPE1 //wangfeng 2003-08-29 17:28
  74. SetOsdCol(0,0,SANTIBGCOLOR,0x78501e90);//a8a8a8ff);//gray white
  75.        #elif defined(SETUP_COLOR_TYPE2)  //zhangyu  3-9-1 4:38张宇P
  76.           //SetOsdCol(0,0,SANTIBGCOLOR,0xc0c0c0e0);
  77.           SetOsdCol(0,0,SANTIBGCOLOR,0xa346ffc0);
  78. #else
  79. SetOsdCol(0,0,SANTIBGCOLOR,0xa346ffc0);
  80. #endif
  81.     if (setupLevel==0) { //main menu page
  82.      setupLevel=1;
  83.      id=setup_item[page][index_y][1];
  84. setup_DrawItem(1, SETUP_MENU_YSTART+1, 1);
  85. // highlight : draw a frame to identify which tab is enable
  86. /*osd_DrawLine(line*page/6+30,14,line*page/6+80,14,SBGCOLOR,1);
  87. osd_DrawLine(line*page/6+30,50,line*page/6+80,50,SBGCOLOR,1);
  88. osd_DrawLine(line*page/6+30,14,line*page/6+30,50,SBGCOLOR,1);
  89. osd_DrawLine(line*page/6+80,14,line*page/6+80,50,SBGCOLOR,1);*/
  90.                 #if  !defined(SETUP_COLOR_TYPE1) &&    !defined(SETUP_COLOR_TYPE2)// zhangyu 2003-08-29 17:28
  91. setup_Showredframe(page);
  92. #endif
  93. draw_3rd_menu();
  94. return;
  95.     } else
  96. if (setupLevel==1) {
  97. //second level menu page
  98. #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
  99. int iItemType;
  100. for (i=0; i<MAX_PAGE_ITEM; i++)
  101. {
  102.      iItemType=setup_item[page][i][0];
  103.      if (iItemType == SET_SPACE) continue;
  104.      if (iItemType == SET_NE) break;
  105. }
  106. setupItemNum[1] = i;
  107. #endif
  108. if ( (index_y+index_y_start) < (setupItemNum[1]-1)) {
  109. if (full_scrn&CUSTM) {
  110. //CUSTM menu page
  111. //clear third-level menu
  112. #ifdef  RATING_8
  113.                     if (index_y == 3) 
  114.                     {
  115.                       #if defined(SETUP_COLOR_TYPE2)||defined(SETUP_COLOR_TYPE1)    //zhangyu 3-9-1 4:38张宇P
  116.                                 osd_draw_rect((SETUP_SUB_XSTART-1)*16,
  117.                                               SETUP_MENU_YSTART*SETUP_BUTTON_HEIGHT+31,
  118.                                               (SETUP_MAX_WIDTH-SETUP_SUB_XSTART-1)*16,
  119.                                               (SETUP_MAX_LINE-SETUP_MENU_YSTART-2)*SETUP_BUTTON_HEIGHT,
  120.                                                SBGCOLOR);
  121.                       #else
  122.                     osd_draw_rect((SETUP_SUB_XSTART-1)*16,
  123. //SETUP_MENU_YSTART,
  124. SETUP_MENU_YSTART*SETUP_BUTTON_HEIGHT+31,
  125. (SETUP_MAX_WIDTH-SETUP_SUB_XSTART-1)*16,
  126. (SETUP_MAX_LINE-SETUP_MENU_YSTART-2)*SETUP_BUTTON_HEIGHT-68,
  127. SBGCOLOR);
  128. #endif
  129. ShowCUSTMMsg();
  130. }
  131. else
  132. #endif//end RAGING_8
  133.                 #ifdef SUPER_DEFAULT_OSD_LANG
  134.                 if ((index_y == CUSTMOSDITEM)&&((8-N_OSD_LANGS)<=1))
  135.                 {
  136.                     #if defined(SETUP_COLOR_TYPE2)||defined(SETUP_COLOR_TYPE1)    //zhangyu 3-9-1 4:38张宇P
  137.                     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);
  138.                     #else
  139.                     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);
  140. #endif
  141. ShowCUSTMMsg();
  142.                 }
  143.                 else
  144.                 #endif
  145. {
  146. osd_draw_rect((SETUP_SUB_XSTART-1)*16,
  147. (SETUP_MENU_YSTART+3)*SETUP_BUTTON_HEIGHT,
  148. (SETUP_MAX_WIDTH-SETUP_SUB_XSTART-1)*16,
  149. (SETUP_MAX_LINE-SETUP_MENU_YSTART-2)*SETUP_BUTTON_HEIGHT,
  150. SBGCOLOR);
  151. }
  152. id = setup_item[page][index_y][1];
  153. setup_DrawItem(1, index_y+SETUP_MENU_YSTART+1, 0);
  154. index_y++;
  155. id = setup_item[page][index_y][1];
  156. setup_DrawItem(1, index_y+SETUP_MENU_YSTART+1, 1);
  157. //the last active item in sub-menu is "EXIT", so we skip it's drawing selection area
  158.                 #ifdef RCD_GPIO_CONTROL            // alan 2002/7/26 02:08