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

📄 menutbldef.h

📁 LCD OSD 程序用於8051 開發lcd
💻 H
字号:

//=====================================================================================
// Key function definition
MenuItemActionType code NaviKeyEvent[BTN_EndBTN]=
{ MIA_Nothing, 	// BTN_Plus Left
  MIA_Nothing, 	// BTN_Minus Right
  MIA_PrevItem,		// BTN_Up
  MIA_NextItem,	 	// BTN_Down
  MIA_Exit,		// BTN_Menu
  MIA_GotoNext,	 	// BTN_Select
  MIA_Power		// BTN_Power    
};
MenuItemActionType code NaviExecKeyEvent[BTN_EndBTN]=
{ MIA_ExecFunc, 	// BTN_Plus
  MIA_ExecFunc, 	// BTN_Minus
  MIA_PrevItem,		// BTN_Up
  MIA_NextItem,	 	// BTN_Down
  MIA_Exit,		// BTN_Menu
  MIA_GotoPrev,	 	// BTN_Select
  MIA_Power		// BTN_Power    
};
MenuItemActionType code Adjuster1KeyEvent[BTN_EndBTN]= // for bri/con/position
{ MIA_IncValue, 	// BTN_Plus
  MIA_DecValue, 	// BTN_Minus
  MIA_PrevItem,		// BTN_Up
  MIA_NextItem,	 	// BTN_Down
  MIA_Exit,		// BTN_Menu
  MIA_GotoPrev,	 	// BTN_Select
  MIA_Power		// BTN_Power    
};

MenuItemActionType code Adjuster2KeyEvent[BTN_EndBTN]= // for bri/con/position
{ MIA_IncValue1, 	// BTN_Plus
  MIA_DecValue1, 	// BTN_Minus
  MIA_IncValue2,	// BTN_Up
  MIA_DecValue2, 	// BTN_Down
  MIA_Exit,		// BTN_Menu
  MIA_GotoPrev,	 	// BTN_Select
  MIA_Power		// BTN_Power    
};

MenuItemActionType code Adjuster3KeyEvent[BTN_EndBTN]= // for bri/con/position
{ MIA_IncValue, 	// BTN_Plus
  MIA_DecValue, 	// BTN_Minus
  MIA_GotoNext,		// BTN_Up
  MIA_GotoNext,	 	// BTN_Down
  MIA_Exit,		// BTN_Menu
  MIA_GotoPrev,	 	// BTN_Select
  MIA_Power		// BTN_Power    
};


//===========================================================
MenuItemActionType code RootKeyEvent[BTN_EndBTN]=
{ MIA_Volume, 		// BTN_Plus
  MIA_Volume, 		// BTN_Minus
  MIA_Cont,		// BTN_Up
  MIA_Cont, 		// BTN_Down
  MIA_GotoNext,		// BTN_Menu
  MIA_Auto,	 	// BTN_Select
  MIA_Power		// BTN_Power    
};

//============================================================
MenuItemActionType code FactoryKeyEvent[BTN_EndBTN]=
{ MIA_Nothing,		// BTN_Plus KeyEvent[BTN_EndBTN];
  MIA_Nothing, 		// BTN_Minus
  MIA_Nothing,		// BTN_Up
  MIA_Nothing, 		// BTN_Down
  MIA_Burnin,		 // BTN_Menu
  MIA_Nothing,		// BTN_Select
  MIA_Power		// BTN_Power    
};

//============================================================
MenuItemActionType code NothingKeyEvent[BTN_EndBTN]=
{ MIA_Nothing,		// BTN_Plus KeyEvent[BTN_EndBTN];
  MIA_Nothing, 		// BTN_Minus
  MIA_Nothing,		// BTN_Up
  MIA_Nothing, 		// BTN_Down
  MIA_Nothing,		 // BTN_Menu
  MIA_Nothing,		// BTN_Select
  MIA_Power		// BTN_Power    
};
//============================================================
MenuItemActionType code ModeInfoKeyEvent[BTN_EndBTN]=
{ MIA_GotoPrev,		// BTN_Plus KeyEvent[BTN_EndBTN];
  MIA_GotoPrev, 		// BTN_Minus
  MIA_GotoPrev,		// BTN_Up
  MIA_GotoPrev, 		// BTN_Down
  MIA_GotoPrev,		 // BTN_Menu
  MIA_GotoPrev,		// BTN_Select
  MIA_Power		// BTN_Power    
};

MenuItemType code PowerOffMenuItems[]=
{ { 0, 1, // XPos, YPos;
    0, 1, // ForeColor, BackColor;
    0, 1, // SelForeColor, SelBackColor;
    PowerOnMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    NULL, // DisplayText; 
    NothingKeyEvent,//PowerOffKeyEvent, //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    mibSelectable // Flags
  }
};

MenuItemType code Standby1MenuItems[]=
{ 
 #if 0
   { 1, 0, // XPos, YPos;
    CP_WhiteColor, CP_BlueColor, // ForeColor, BackColor;
    CP_WhiteColor, CP_BlueColor, // SelForeColor, SelBackColor;
    FactoryMainMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    SelfDiagnosticsText, // DisplayText; 
    FactoryKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    mibSelectable // Flags
  },
#endif
 { 1, 4, // XPos, YPos;
    CP_WhiteColor, CP_GreenColor, // ForeColor, BackColor;
    CP_WhiteColor, CP_GreenColor, // SelForeColor, SelBackColor;
    RootMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    StandbyText, // DisplayText; 
    FactoryKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    mibSelectable // Flags
  },
 #if 0
{ 1, 8, // XPos, YPos;
    CP_WhiteColor, CP_BlueColor, // ForeColor, BackColor;
    CP_WhiteColor, CP_BlueColor, // SelForeColor, SelBackColor;
    RootMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    CheckSignalCableText, // DisplayText; 
    NothingKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    0 // Flags
  }
#endif

};

MenuItemType code StandbyMenuItems[]=
{ 
 #if 0
   { 1, 0, // XPos, YPos;
    CP_WhiteColor, CP_BlueColor, // ForeColor, BackColor;
    CP_WhiteColor, CP_BlueColor, // SelForeColor, SelBackColor;
    FactoryMainMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    SelfDiagnosticsText, // DisplayText; 
    FactoryKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    mibSelectable // Flags
  },
#endif
 { 1, 4, // XPos, YPos;
    CP_WhiteColor, CP_GreenColor, // ForeColor, BackColor;
    CP_WhiteColor, CP_GreenColor, // SelForeColor, SelBackColor;
    RootMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    NoSignalText, // DisplayText; 
    FactoryKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    mibSelectable // Flags
  },
 #if 0
{ 1, 8, // XPos, YPos;
    CP_WhiteColor, CP_BlueColor, // ForeColor, BackColor;
    CP_WhiteColor, CP_BlueColor, // SelForeColor, SelBackColor;
    RootMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    CheckSignalCableText, // DisplayText; 
    NothingKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    0 // Flags
  }
#endif

};
 
#if 0
MenuItemType code CableNotConnectedMenuItems[]=
{ // Cable Not
  { 1, 1, // XPos, YPos;
    CP_RedColor, CP_WhiteColor, // ForeColor, BackColor;
    CP_RedColor, CP_WhiteColor, // SelForeColor, SelBackColor;
    RootMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    CableNotConnected1Text, // DisplayText; 
    NothingKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    mibSelectable // Flags
  },
  // Connected
  { 1, 2, // XPos, YPos;
    CP_RedColor, CP_WhiteColor, // ForeColor, BackColor;
    CP_RedColor, CP_WhiteColor, // SelForeColor, SelBackColor;
    RootMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    CableNotConnected2Text, // DisplayText; 
    NothingKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    0 // Flags
  }
};
#endif


MenuItemType code UnsupportedModeMenuItems[]=
{ // ModeInfo
  { 1, 0, // XPos, YPos;
    CP_WhiteColor, CP_RedColor, // ForeColor, BackColor;
    CP_WhiteColor, CP_RedColor, // SelForeColor, SelBackColor;
    RootMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    ModeInfoText, // DisplayText; 
    NothingKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL	// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    mibSelectable // Flags
  },
  { 1, 5, // XPos, YPos;
    CP_RedColor, CP_GrayColor, // ForeColor, BackColor;
    CP_RedColor, CP_GrayColor, // SelForeColor, SelBackColor;
    RootMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;

//****olivia1226
  OutOfRangeText,
  // OutOfFrequencyText, // DisplayText; 
    NothingKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    mibSelectable // Flags
  }
};
/*
MenuItemType code UnsupportedModeMenuItems[]=
{ // Input Not
  { 1, 4, // XPos, YPos;
    CP_BlackColor, CP_GrayColor, // ForeColor, BackColor;
    CP_BlackColor, CP_GrayColor, // SelForeColor, SelBackColor;
    RootMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    OutOfFrequencyText, // DisplayText; 
    NothingKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    mibSelectable // Flags
  },
  // Supported
  { 1, 8, // XPos, YPos;
    CP_WhiteColor, CP_BlueColor, // ForeColor, BackColor;
    CP_WhiteColor, CP_BlueColor, // SelForeColor, SelBackColor;
    RootMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    PowerManagementText, // DisplayText; 
    NothingKeyEvent,  //KeyEvent
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    0 // Flags
  }
};
*/
MenuItemType code RootMenuItems[]=
{ // virtual item
  { 0, 1, // XPos, YPos;
    0, 1, // ForeColor, BackColor;
    0, 1, // SelForeColor, SelBackColor;
    MainMenu, //NextMenuPage;
    DWI_CenterText,// DrawMenuItemType;
    NULL, // DisplayText; 
    RootKeyEvent,
    { NULL,	// AdjustFunction
      NULL			// ExecFunction
    },// DisplayValue;
    { NULL,	// DrawNumberType
      NULL,	// DrawGaugeType
      NULL	// DrawRadioGroupType
    },
    mibSelectable // Flags
  }
};

⌨️ 快捷键说明

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