📄 menutbl.h
字号:
#include "MenuTblDef.h"
#include "MenuTbl2.h"
#include "MenuFontTbl.h"
#define MainMenuFontAddr 0x30
#define SubMenuFontAddr 0x51
MenuItemType code AutoMenuItems[]=
{ // FENDY ADD
{ 0, 1, // XPos, YPos;
CP_GrayColor, CP_BlueColor, // ForeColor, BackColor;
CP_GrayColor, CP_BlueColor, // SelForeColor, SelBackColor;
RootMenu, //NextMenuPage;
DWI_CenterText,// DrawMenuItemType;
NULL, //AutoSetup2Text, // DisplayText;
NothingKeyEvent,// KeyEvent
{ NULL, // AdjustFunction
NULL // ExecFunction
},// DisplayValue;
DisplayValueNull,
0 // Flags
},
//////////////////
// Auto Setup1
{ 0, 1, // XPos, YPos;
CP_BlueColor, CP_SoftGrassGreenColor, // ForeColor, BackColor;
CP_BlueColor, CP_SoftGrassGreenColor, // SelForeColor, SelBackColor;
RootMenu, //NextMenuPage;
DWI_CenterText,//DWI_CenterText,// DrawMenuItemType;
FacAutoConfigText, //AutoSetup2Text, // DisplayText;
NothingKeyEvent,// KeyEvent
{ NULL, // AdjustFunction
NULL // ExecFunction
},// DisplayValue;
DisplayValueNull,
0 // Flags
}
};
//==============================================================================================
DrawNumberType code DrawContNumber[]=
{ // Flags, ForeColor, BackColor, XPos, YPos, GetValue
{dwiEnd, CP_BlackColor, CP_GrayColor,CP_GrayColor, CP_BlueColor, 0, 2, GetContrastValue}
};
DrawGuageType code DrawContGuage[]=
{ // Flags, ForeColor, BackColor, Length, XPos, YPos, GetValue
{dwiEnd, CP_SoftGrassGreenColor,CP_SoftLowGreenColor, 11, 0, 3, GetContrastValue}
};
DrawValueType code DisplayValueCont[]=
{
{dwiEnd,
DrawContNumber, // DrawNumberType
DrawContGuage, // DrawGuageType
NULL// DrawRadioGroupType
},
};
MenuItemType code ContMenuItems[]=
{
// FENDY ADD
{ 2, 1, // XPos, YPos;
CP_GrayColor, CP_BlueColor, // ForeColor, BackColor;
CP_GrayColor, CP_BlueColor, // SelForeColor, SelBackColor;
MainMenu, //NextMenuPage;
DWI_CenterText,// DrawMenuItemType;
NULL, // DisplayText;
NothingKeyEvent,// KeyEvent
{ NULL, // AdjustFunction
NULL // ExecFunction
},// *DisplayValue;
DisplayValueNull,
0 // Flags
},
//================
// Contrast Icon
{ 2, 1, // XPos, YPos;
CP_GrayColor, CP_BlueColor, // ForeColor, BackColor;
CP_GrayColor, CP_BlueColor, // SelForeColor, SelBackColor;
MainMenu, //NextMenuPage;
DWI_CenterText,// DrawMenuItemType;
ContrastText, // DisplayText;
DirAdjusterKeyEvent, // KeyEvent
{ AdjustContrast, // AdjustFunction
NULL // ExecFunction
},// *DisplayValue;
DisplayValueCont,
0 // Flags
}
};
//==============================================================================================
DrawNumberType code DrawBriteNumber[]=
{ // Flags, ForeColor, BackColor, XPos, YPos, GetValue
{dwiEnd, CP_BlackColor, CP_GrayColor,CP_GrayColor, CP_BlueColor, 0, 2, GetBrightnessValue}
};
DrawGuageType code DrawBriteGuage[]=
{ // Flags, ForeColor, BackColor, Length, XPos, YPos, GetValue
{dwiEnd, CP_SoftGrassGreenColor,CP_SoftLowGreenColor, 11, 0, 3, GetBrightnessValue}
};
DrawValueType code DisplayValueBrite[]=
{
{dwiEnd,
DrawBriteNumber, // DrawNumberType
DrawBriteGuage, // DrawGuageType
NULL// DrawRadioGroupType
},
};
MenuItemType code BriteMenuItems[]=
{// FENDY ADD
{ 2, 1, // XPos, YPos;
CP_GrayColor, CP_BlueColor, // ForeColor, BackColor;
CP_GrayColor, CP_BlueColor, // SelForeColor, SelBackColor;
MainMenu, //NextMenuPage;
DWI_CenterText,// DrawMenuItemType;
NULL, // DisplayText;
NothingKeyEvent,// KeyEvent
{ NULL, // AdjustFunction
NULL // ExecFunction
},// *DisplayValue;
DisplayValueNull,
0 // Flags
},
// Contrast Icon
{ 2, 1, // XPos, YPos;
CP_GrayColor, CP_BlueColor, // ForeColor, BackColor;
CP_GrayColor, CP_BlueColor, // SelForeColor, SelBackColor;
MainMenu, //NextMenuPage;
DWI_CenterText,// DrawMenuItemType;
BrightnessText, // DisplayText;
DirAdjusterKeyEvent, // KeyEvent
{ AdjustBrightness, // AdjustFunction
NULL // ExecFunction
},// *DisplayValue;
DisplayValueBrite,
0// Flags
}
};
DrawNumberType code DrawVolNumber[]=
{ // Flags, ForeColor, BackColor, XPos, YPos, GetValue
{dwiEnd,CP_BlackColor,CP_SoftLowGreenColor, CP_RedColor, CP_SoftLowGreenColor, 8, 1, GetVolumeValue}
};
DrawGuageType code DrawVolGuage[]=
{ // Flags, ForeColor, BackColor, Length, XPos, YPos, GetValue
{dwiEnd, CP_GrassGreenColor, CP_SoftLowGreenColor, 16, 2, 2, GetVolumeValue}
};
DrawValueType code DisplayValueVol[]=
{
{dwiEnd,
DrawVolNumber, // DrawNumberType
DrawVolGuage, // DrawGuageType
NULL// DrawRadioGroupType
},
};
MenuItemType code VolMenuItems[]=
{
// FENDY ADD
{ 2, 1, // XPos, YPos;
CP_BlackColor, CP_SoftLowGreenColor, // ForeColor, BackColor;
CP_BlackColor, CP_SoftLowGreenColor, // SelForeColor, SelBackColor;
MainMenu, //NextMenuPage;
DWI_Text, //DWI_CenterText,// DrawMenuItemType;
NULL, // DisplayText;
NothingKeyEvent,// KeyEvent
{ NULL, // AdjustFunction
NULL // ExecFunction
},// *DisplayValue;
DisplayValueNull,
0 // Flags
},
// Contrast Icon
{ 2, 1, // XPos, YPos;
CP_BlackColor, CP_SoftLowGreenColor, // ForeColor, BackColor;
CP_BlackColor, CP_SoftLowGreenColor, // SelForeColor, SelBackColor;
MainMenu, //NextMenuPage;
DWI_Text, // DWI_CenterText,// DrawMenuItemType;
VolumeText, // DisplayText;
DirAdjusterKeyEvent, // KeyEvent
{ AdjustVolume, // AdjustFunction
NULL // ExecFunction
},// *DisplayValue;
DisplayValueVol,
0// Flags
}
};
MenuItemType code BurninMenuItems[]=
{// Contrast Icon
{ 2, 1, // XPos, YPos;
CP_YellowColor, CP_GrayColor, // ForeColor, BackColor;
CP_YellowColor, CP_GrayColor, // SelForeColor, SelBackColor;
RootMenu, //NextMenuPage;
DWI_CenterText,// DrawMenuItemType;
BurninOnText, // DisplayText;
NothingKeyEvent,// KeyEvent
{ NULL, // AdjustFunction
NULL // ExecFunction
},// *DisplayValue;
DisplayValueNull,
mibSelectable // Flags
}
};
MenuItemType code ISPMenuItems[]=
{
///FENDY ADD
{ 1, 1, // XPos, YPos;
CP_YellowColor, CP_GrayColor, // ForeColor, BackColor;
CP_YellowColor, CP_GrayColor, // SelForeColor, SelBackColor;
RootMenu, //NextMenuPage;
DWI_CenterText,// DrawMenuItemType;
NULL, // DisplayText;
NothingKeyEvent,
{ NULL, // AdjustFunction
NULL // ExecFunction
},// DisplayValue;
DisplayValueNull,
mibSelectable|mibFactoryItem // Flags
},
{ 1, 1, // XPos, YPos;
CP_YellowColor, CP_GrayColor, // ForeColor, BackColor;
CP_YellowColor, CP_GrayColor, // SelForeColor, SelBackColor;
RootMenu, //NextMenuPage;
DWI_CenterText,// DrawMenuItemType;
ISPText, // DisplayText;
NothingKeyEvent,
{ NULL, // AdjustFunction
NULL // ExecFunction
},// DisplayValue;
DisplayValueNull,
mibSelectable|mibFactoryItem // Flags
}
};
//==============================================================================================
MenuPageType code tblMenus[]=
{ // 0 PowerOffMenu
{ 16, 3, // XSize, YSize;
PowerOnMenu,// PrevMenuPage;
PowerOffMenuItems, // MenuItems;
sizeof(PowerOffMenuItems)/sizeof(MenuItemType), // MenuItemCount;
PowerOffSystem,// ExecFunction;
0, // FontAddr
NULL, // Fonts
mpbInvisible|mpbStay // Flags;
},
// 1 PowerOnMenu
{ 16, 3, // XSize, YSize;
RootMenu,// PrevMenuPage;
NULL, // MenuItems;
NULL, // MenuItemCount;
PowerOnSystem,// ExecFunction;
0, // FontAddr
NULL, // Fonts
mpbInvisible // Flags;
},
// 2 StandbyOnMenu
{ 12, 4, // XSize, YSize;
RootMenu,// PrevMenuPage;
StandbyMenuItems, // MenuItems;
sizeof(StandbyMenuItems)/sizeof(MenuItemType), // MenuItemCount;
EnablePowerDownCounter, // ExecFunction;
MainMenuFontAddr, // FontAddr
MenuPage12, // Fonts
mpbStay | mpbCenter // Flags;
},
// 3 SuspendOnMenu
{ 16, 3, // XSize, YSize;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -