📄 tidtv_menuchannel.c
字号:
/*******************************************************************************
* @ModuleName :: TiDTV_MenuChannel.c
*
* @Copyright :: Copyright 2005- Ti
*
* @Description :: DTV Sub Menu: Channel 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"
#include "TiDTV_MenuChannelProc.h"
static TI_DTV_MENU_ITEM TiDtvDChannelMenuItems[] = {
//-----------------------------------------------------
// TV Source
//
{
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
TUNERSOURCE_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvVideoTVSourceInitFuct, // Initialization function
DtvChannelTVSourceActFuct, // Action function
&TiDtvDChannelMenuItems[4], // *pUp: Back to the Main Menu
&TiDtvDChannelMenuItems[1], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// Auto Program
//
{
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
AUTOPROGRAM_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvVideoAutoProgInitFuct, // Initialization function
DtvAutoProgActFuct, // Action function
&TiDtvDChannelMenuItems[0], // *pUp;
&TiDtvDChannelMenuItems[2], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// Manual Programe
//
{
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
MANUALPROGRAM_INDEX, // Message index
// OSD_MSG_ADD_DEL, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvVideoManualProgInitFuct, // Initialization function
DtvManualProgActFuct, // Action function
&TiDtvDChannelMenuItems[1], // *pUp;
&TiDtvDChannelMenuItems[3], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// Favorite
//
{
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
FAVORITE_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvVideoFavoriteInitFuct, // Initialization function
DtvFavoriteProgActFuct, // Action function
&TiDtvDChannelMenuItems[2], // *pUp;
&TiDtvDChannelMenuItems[4], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// View mode
//
{
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
VIEWMODE_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvVideoViewModeInitFuct, // Initialization function
DtvChannelViewModeActFuct, // Action function
&TiDtvDChannelMenuItems[3], // *pUp;
&TiDtvDChannelMenuItems[0], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
}
};
TI_DTV_MENU TiDtvMenuChannel = {
// 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
},
5, // Total number of Items
TiDtvDChannelMenuItems, // pointer to the Item List
TiDtvDChannelMenuItems, // pointer to the Item List
&DtvMainMenu, // pointer to Previous menu
NULL,
};
static TI_DTV_MENU_ITEM TiDtvAutoProgMenuItems[] = {
//-----------------------------------------------------
// Analog Auto
//
{
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
ANALOGAUTOPROGRAM_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvAutoProgAnalogMenuInit, // Initialization function
DtvAutoProgAnalogAutoActFuct, // Action function
&TiDtvAutoProgMenuItems[2], // *pUp: Back to the Main Menu
&TiDtvAutoProgMenuItems[1], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// Digital Auto
//
{
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
DIGITALAUTOPROGRAM_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvAutoProgDigitalMenuInit, // Initialization function
DtvAutoProgDigitalAutoActFuct, // Action function
&TiDtvAutoProgMenuItems[0], // *pUp;
&TiDtvAutoProgMenuItems[2], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
},
//-----------------------------------------------------
// Analog and digital auto
//
{
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
ANALOGDIGITALAUTOPROGRAM_INDEX, // Message index
SUB_MENU_CHARACTER_UNSEL_FRONTCOLOR, // Message color index
TI_DTV_ITEM_SEL, // Attributes
DtvAutoProgAnalogDigitalMenuInit, // Initialization function
DtvAutoProgAnalogDigitalAutoActFuct, // Action function
&TiDtvAutoProgMenuItems[1], // *pUp;
&TiDtvAutoProgMenuItems[0], // *pDown;
NULL, // *pLeft;
NULL, // *pRight;
NULL, // *pworkingData;
}
};
TI_DTV_MENU TiDtvMenuAutoProg = {
// 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
TiDtvAutoProgMenuItems, // pointer to the Item List
TiDtvAutoProgMenuItems, // pointer to the Item List
&TiDtvMenuChannel, // pointer to Previous menu
NULL,
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -