⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tidtv_menumain.c

📁 ti的数字电视芯片 tvp9000的源码
💻 C
字号:
/*******************************************************************************
*	@ModuleName  ::	TiDTV_MenuMain.c
*	
*	@Copyright	 ::	Copyright 2005- Ti
*	
*	@Description ::	DTV Main Menu definitions module
*	
*	@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"

static TI_DTV_MENU_ITEM TiDtvMainMenuItems[] = {
	//-----------------------------------------------------
	// Video
	//
	{
		// X, Y coordinates for the Icon, relative to the frame
		MAIN_MENU_ICON_XPOSITION, MAIN_MENU_FIRSTICON_YPOSITION,
		BMP_UNSELBUTTON,				// Icon code
		
		0, 0,							// X, Y coordinates for the Message
		PICTURE_INDEX,								// Message index (not used)
		TI_DTV_COLOR_BRIGHT_WHITE,		// Message color index
		
		TI_DTV_ITEM_SEL,				// Attributes
		NULL,							// Initialization function
		TiDtvMainMenuActFuct,			// Action function
		
		&TiDtvMainMenuItems[4],			// *up;
		&TiDtvMainMenuItems[1],			// *down;
		NULL,							// *left;
		NULL,							// *right;
		NULL,							// *pworkingData;
	},
	
	//-----------------------------------------------------
	// Audio
	//
	{
		// X, Y coordinates for the Icon, relative to the parent frame
		MAIN_MENU_ICON_XPOSITION, MAIN_MENU_SECONDICON_YPOSITION,
		BMP_UNSELBUTTON,				// Icon code
		
		0, 0,							// X, Y coordinates for the Message
		AUDIO_INDEX,					// Message index (not used)
		TI_DTV_COLOR_BRIGHT_WHITE,		// Message color index
		
		TI_DTV_ITEM_SEL,				// Attributes
		NULL,							// Initialization function
		TiDtvMainMenuActFuct,			// Action function
		
		&TiDtvMainMenuItems[0],			// *up;
		&TiDtvMainMenuItems[2],			// *down;
		NULL,							// *left;
		NULL,							// *right;
		NULL,							// *pWorkData;
	},
	
	//-----------------------------------------------------
	// channel
	//
	{
		MAIN_MENU_ICON_XPOSITION, MAIN_MENU_THIRDICON_YPOSITION,	// X, Y coordinates for the Icon, relative to the parent frame
		BMP_UNSELBUTTON,						// Icon code
		
		0, 0,							// X, Y coordinates for the Message
		PROGRAM_INDEX,								// Message index (not used)
		TI_DTV_COLOR_BRIGHT_WHITE,		// Message color index
		
		TI_DTV_ITEM_SEL,				// Attributes
		NULL,							// Initialization function
		TiDtvMainMenuActFuct,		// Action function
		
		&TiDtvMainMenuItems[1],			// *up;
		&TiDtvMainMenuItems[3],			// *down;
		NULL,							// *left;
		NULL,							// *right;
		NULL,								// *pworkingData;
	},
	
	//-----------------------------------------------------
	// guide
	//
	{
		MAIN_MENU_ICON_XPOSITION, MAIN_MENU_FOURTHICON_YPOSITION,	// X, Y coordinates for the Icon, relative to the parent frame
		BMP_UNSELBUTTON,					// Icon code
		
		0, 0,							// X, Y coordinates for the Message
		GUIDE_INDEX,								// Message index (not used)
		TI_DTV_COLOR_BRIGHT_WHITE,		// Message color index
		
		TI_DTV_ITEM_SEL,				// Attributes
		NULL,							// Initialization function
		TiDtvMainMenuActFuct,		// Action function
		
		&TiDtvMainMenuItems[2],			// *up;
		&TiDtvMainMenuItems[4],			// *down;
		NULL,							// *left;
		NULL,							// *right;
		NULL,								// *pworkingData;
	},
	

	//-----------------------------------------------------
	// Setup
	//
	{
		MAIN_MENU_ICON_XPOSITION, MAIN_MENU_FIFTHICON_YPOSITION,	// X, Y coordinates for the Icon, relative to the parent frame
		BMP_UNSELBUTTON,						// Icon code
		
		0, 0,							// X, Y coordinates for the Message
		SETUP_INDEX,								// Message index (not used)
		TI_DTV_COLOR_BRIGHT_WHITE,		// Message color index
		
		TI_DTV_ITEM_SEL,				// Attributes
		NULL,							// Initialization function
		TiDtvMainMenuActFuct,		// Action function
		
		&TiDtvMainMenuItems[3],			// *up;
		&TiDtvMainMenuItems[0],			// *down;
		NULL,							// *left;
		NULL,							// *right;
		NULL,								// *pworkingData;
	},	

};

TI_DTV_MENU DtvMainMenu = {
	// Attributes
	0,		//TI_DTV_MENU_FRAME_DISP | TI_DTV_MENU_FOOTER_DISP,
	DtvMainMenuInit,					// Initialization function
	DtvMainMenuOpcodeParser,			// 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
},
	
	5,
	TiDtvMainMenuItems,				// pointer to the Item List
	TiDtvMainMenuItems,				// pointer to current selected Item
	
	NULL,								// pointer to Previous menu
	&TiDtvMenuVideo
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -