📄 tidtv_menusetup.c
字号:
/*******************************************************************************
* @ModuleName :: TiDTV_MenuSetup.c
*
* @Copyright :: Copyright 2005- Ti
*
* @Description :: DTV Menu definitions module: Setup Menu
*
* @History ::
*---------------------------------------
* 00-00-2005 aaaaa Created
*******************************************************************************/
#include <stdio.h>
#include "TiDTV_DataType.h"
#include "TiDTV_GLib.h"
#include "TiDTV_GUI.h"
#include "TiDTV_Icon.h"
#include "TiDTV_Msg.h"
#include "TiDTV_Menu.h"
#include "TiDTV_MenuSetupProc.h"
//******************************************************************************
// E X T E R N A L D E F I N I T I O N S
//******************************************************************************
extern TI_DTV_MENU_NODE_NAVIGATION TiDTV_Basic_Navigation;
extern TI_DTV_MENU_NODE_NAVIGATION TiDTV_Guage_Navigation;
extern TI_DTV_MENU_NODE_NAVIGATION TiDTV_VChipParentGuideBlock_Navigation;
extern TI_DTV_MENU_NODE_NAVIGATION TiDTV_VChipPassWord_Navigation;
extern TI_DTV_MENU_NODE_NAVIGATION TiDTV_VChipPassWordChange_Navigation;
//******************************************************************************
// C O D E
//******************************************************************************
static TI_DTV_MENU_ITEM TiDtvSetupMenuItems[] = {
//-----------------------------------------------------
// Language
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_FIRSTTITLE_YPOSITION, // X, Y coordinates for the Message
LANGUAGE_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupLanguageInitFuct, // Initialization function
DtvSetupLanguageActFuct, // Action function
&TiDtvSetupMenuItems[5], // *pUp: Back to the Main Menu
&TiDtvSetupMenuItems[1], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// Input
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_SECONDTITLE_YPOSITION, // X, Y coordinates for the Message
INPUT_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupInputInitFuct, // Initialization function
DtvSetupInputActFuct, // Action function
&TiDtvSetupMenuItems[0], // *pUp;
&TiDtvSetupMenuItems[2], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// screen format
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_THIRDTITLE_YPOSITION, // X, Y coordinates for the Message
SCREENFORMAT_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupScreenFormatInitFuct, // Initialization function
DtvSetupScreenFormatActFuct, // Action function
&TiDtvSetupMenuItems[1], // *pUp;
&TiDtvSetupMenuItems[3], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// Time
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_FOURTHTITLE_YPOSITION, // X, Y coordinates for the Message
TIME_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupTimeInitFuct, // Initialization function
DtvSetupTimeActFuct, // Action function
&TiDtvSetupMenuItems[2], // *pUp;
&TiDtvSetupMenuItems[4], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// Caption
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_FIFTHTITLE_YPOSITION, // X, Y coordinates for the Message
CLOSEDCAPTION_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupClosedCaptionInitFuct, // Initialization function
DtvSetupClosedCaptionActFuct, // Action function
&TiDtvSetupMenuItems[3], // *pUp;
&TiDtvSetupMenuItems[5], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// V-CHIP
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_SIXTHTITLE_YPOSITION, // X, Y coordinates for the Message
VCHIP_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupVChipInitFuct, // Initialization function
DtvSetupVChipActFuct, // Action function
&TiDtvSetupMenuItems[4], // *pUp;
&TiDtvSetupMenuItems[0], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
};
TI_DTV_MENU TiDtvMenuSetup = {
// Attributes
TI_DTV_MENU_ITEM_DISP,//TI_DTV_MENU_FRAME_DISP | TI_DTV_MENU_FOOTER_DISP | TI_DTV_MENU_ITEM_DISP,
NULL, // Initialization function
DtvSubMenuOpcodeParser, // Operation codes parsing function
{ // Frame
0, 0, 0, 0, // Area: (x, y), (w x y)
0, // Attributes,
0, // Border Color
0, // Interior Filling Color
0, // Shadow Color
},
{ // Header
{ // Frames for Header
0, 0, 0, 0, // Area: (x, y), (w x y)
},
0, 0, // X, Y coordinate
0, // Message index
0 // Message color index
},
{ // Footer
{ // Frames for Footer
0, 0, 0, 0, // Area: (x, y), (w x y)
},
0,0, // X, Y coordinate
0, // Message index
0, // Message color index
},
6, // Total number of Items
TiDtvSetupMenuItems, // pointer to the Item List
TiDtvSetupMenuItems, // pointer to current selected Item
&DtvMainMenu, // pointer to Previous menu
NULL,
};
/////////////////////////////////////////////////////////////////
static TI_DTV_MENU_ITEM TiDtvSetupTimeMenuItems[] = {
//-----------------------------------------------------
// Time Mode
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_FIRSTTITLE_YPOSITION, // X, Y coordinates for the Message
MODE_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupTimeModeInitFuct, // Initialization function
DtvSetupTimeModeActFuct , // Action function
&TiDtvSetupTimeMenuItems[2], // *pUp: Back to the Main Menu
&TiDtvSetupTimeMenuItems[1], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// Time Zone
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_SECONDTITLE_YPOSITION, // X, Y coordinates for the Message
TIMEZONE_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupTimeZoneInitFuct, // Initialization function
DtvSetupTimeZoneActFuct, // Action function
&TiDtvSetupTimeMenuItems[0], // *pUp;
&TiDtvSetupTimeMenuItems[2], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// Auto ShutDown
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_THIRDTITLE_YPOSITION, // X, Y coordinates for the Message
AUTOSHUTDOWN_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupTimeAutoShutdownInitFuct, // Initialization function
DtvSetupTimeAutoShutdownActFuct, // Action function
&TiDtvSetupTimeMenuItems[1], // *pUp;
&TiDtvSetupTimeMenuItems[0], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
/*
//-----------------------------------------------------
// Manual Clock
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_FOURTHTITLE_YPOSITION, // X, Y coordinates for the Message
MANUALCLOCK_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupTimeManualClockInitFuct, // Initialization function
DtvSetupTimeManualClockActFuct, // Action function
&TiDtvSetupTimeMenuItems[2], // *pUp;
&TiDtvSetupTimeMenuItems[4], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
},
//-----------------------------------------------------
// Manual Date
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_FIFTHTITLE_YPOSITION, // X, Y coordinates for the Message
MANUALDATE_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupTimeManualDateInitFuct, // Initialization function
DtvSetupTimeManualDateActFuct, // Action function
&TiDtvSetupTimeMenuItems[3], // *pUp;
&TiDtvSetupTimeMenuItems[5], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
},
*/
};
TI_DTV_MENU TiDtvMenuSetupTime = {
// Attributes
TI_DTV_MENU_ITEM_DISP,//TI_DTV_MENU_FRAME_DISP | TI_DTV_MENU_FOOTER_DISP | TI_DTV_MENU_ITEM_DISP,
NULL, // Initialization function
DtvSubMenuOpcodeParser, // Operation codes parsing function
{ // Frame
0, 0, 0, 0, // Area: (x, y), (w x y)
0, // Attributes,
0, // Border Color
0, // Interior Filling Color
0, // Shadow Color
},
{ // Header
{ // Frames for Header
0, 0, 0, 0, // Area: (x, y), (w x y)
},
0, 0, // X, Y coordinate
0, // Message index
0 // Message color index
},
{ // Footer
{ // Frames for Footer
0, 0, 0, 0, // Area: (x, y), (w x y)
},
0,0, // X, Y coordinate
0, // Message index
0, // Message color index
},
3, // Total number of Items
TiDtvSetupTimeMenuItems, // pointer to the Item List
TiDtvSetupTimeMenuItems, // pointer to current selected Item
&TiDtvMenuSetup, // pointer to Previous menu
NULL,
};
///////////////////////////////////////////////////////////////
// closed captions page
/////////////////////////////////////////////////////////////////
static TI_DTV_MENU_ITEM TiDtvSetupClosedCaptionMenuItems[] = {
//-----------------------------------------------------
// Closed Caption
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_FIRSTTITLE_YPOSITION, // X, Y coordinates for the Message
CAPTION_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupClosedCaptionOnOffInitFuct, // Initialization function
DtvSetupClosedCaptionOnOffActFuct, // Action function
&TiDtvSetupClosedCaptionMenuItems[2], // *pUp: Back to the Main Menu
&TiDtvSetupClosedCaptionMenuItems[1], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// mode type
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_SECONDTITLE_YPOSITION, // X, Y coordinates for the Message
MODE_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupClosedCaptionModeInitFuct, // Initialization function
DtvSetupClosedCaptionModeActFuct, // Action function
&TiDtvSetupClosedCaptionMenuItems[0], // *pUp;
&TiDtvSetupClosedCaptionMenuItems[2], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// options
//
{
0, 0, // X, Y coordinates for the Icon
NULL, // Icon code
SUB_MENU_TITLE_XPOSITION, SUB_MENU_THIRDTITLE_YPOSITION, // X, Y coordinates for the Message
OPTIONS_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvSetupClosedCaptionOptionInitFuct, // Initialization function
DtvSetupClosedCaptionOptionActFuct, // Action function
&TiDtvSetupClosedCaptionMenuItems[1], // *pUp;
&TiDtvSetupClosedCaptionMenuItems[0], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
};
TI_DTV_MENU TiDtvMenuSetupClosedCaption = {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -