📄 switchmodestruct.c
字号:
/* ----------------------------------------------------------------------
*
* Filename : SwitchModeStruct.c
* Project name : part of the SwitchMode of GUI part of hyctron
*
* Copyright 2003 Hyctron Electronic Design House,
* "Hyctron Electronic Design House" Shanghai, China.
* All rights are reserved. Reproduction in whole or in part is prohibited
* without the prior written consent of the copyright owner.
*
* Rev Date Author Comments
* (yymmdd)
* ---------------------------------------------------------------------
* 001 040114 HYCZJ Primary version
* ---------------------------------------------------------------------
*
* This source file contains the SwitchMode struction infomation
*
-----------------------------------------------------------------------*/
/*--------------------------------------------------------------------------
*INCLUDES
--------------------------------------------------------------------------*/
#include "SwitchModeStruct.h"
/*--------------------------------------------------------------------------
* EXTERNAL Variable ,constant or function
--------------------------------------------------------------------------*/
//the structure of the SwitchMode is illurstrated as following:
const SwitchMode_Structure_t tSwitchModeInfo[cSWITCHMODE_ITEM_NUM]={
//{eParentID , u8PreTotalItemNum, u8TotalItemNum, eFirstChildID, (U8**)pPreItemString, (U8**)pItemString, SwitchMode_EnterKeyAction}
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, (cSWITCHMODE_HAVE_CHILD | SWITCHMODE_MAINITEM_COUNT), SwitchMode_Id_Video, (U8**)p_Array_SwitchMode_String, (U8**)p_Array_SwitchMode_String, SwitchModeEnterKey_EnterChild}, //SwitchMode_Id_Main(root node)
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Mp3
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Video
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, (cSWITCHMODE_HAVE_CHILD | SWITCHMODE_VIDICON_COUNT), SwitchMode_Id_VidiconStart, (U8**)p_Array_SwitchMode_String, (U8**)p_SwitchMode_Vidicon_String, SwitchModeEnterKey_EnterChild}, //{ SwitchMode_Id_FM
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, (cSWITCHMODE_HAVE_CHILD | SWITCHMODE_CAMERA_COUNT), SwitchMode_Id_CameraPlay, (U8**)p_Array_SwitchMode_String, (U8**)p_SwitchMode_Camera_String, SwitchModeEnterKey_EnterChild}, //{ SwitchMode_Id_Record
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Photo
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL},
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Game
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, SwitchMode_Id_Ebook, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Menu
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Menu
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Menu
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, (cSWITCHMODE_HAVE_CHILD | SWITCHMODE_EXTEND_ITEMNUM), SwitchMode_Id_Clock, (U8**)p_Array_SwitchMode_String, (U8**)p_SwitchMode_Extend_String , SwitchModeEnterKey_EnterChild}, //{ SwitchMode_Id_Extend
{SwitchMode_Id_Main, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Menu
{SwitchMode_Id_Learn, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Learn_String, NULL, NULL}, //{ SwitchMode_Id_Ebook
{SwitchMode_Id_Learn, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Learn_String, NULL, NULL}, //{ SwitchMode_Id_Ch_to_En
{SwitchMode_Id_Learn, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Learn_String, NULL, NULL}, //{ SwitchMode_Id_En_to_Ch
{SwitchMode_Id_Learn, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Learn_String, NULL, NULL}, //{ SwitchMode_Id_TalkingBook
{SwitchMode_Id_Learn, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Learn_String, NULL, NULL}, //{ SwitchMode_Id_Reread
{SwitchMode_Id_Learn, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Learn_String, NULL, NULL}, //{ SwitchMode_Id_FollowRead
{SwitchMode_Id_Learn, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Learn_String, NULL, NULL}, //{ SwitchMode_Id_ReciteWord
{SwitchMode_Id_Learn, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Learn_String, NULL, NULL}, //{ SwitchMode_Id_SchoolRadio
{SwitchMode_Id_Learn, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Learn_String, NULL, NULL}, //{ SwitchMode_Id_Karaoke
{SwitchMode_Id_Vidicon, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Menu
{SwitchMode_Id_Vidicon, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Menu
{SwitchMode_Id_Camera, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Menu
{SwitchMode_Id_Camera, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_Array_SwitchMode_String, NULL, NULL}, //{ SwitchMode_Id_Menu
{SwitchMode_Id_Extend, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Extend_String, NULL, NULL}, //{ SwitchMode_Id_Clock
{SwitchMode_Id_Extend, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Extend_String, NULL, NULL}, //{ SwitchMode_Id_Calendar
{SwitchMode_Id_Extend, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Extend_String, NULL, NULL}, //{ SwitchMode_Id_Stopwatch
{SwitchMode_Id_Extend, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Extend_String, NULL, NULL}, //{ SwitchMode_Id_Calculator
{SwitchMode_Id_Extend, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Extend_String, NULL, NULL}, //{ SwitchMode_Id_DVDC,
{SwitchMode_Id_Extend, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Extend_String, NULL, NULL}, //{ SwitchMode_Id_Compass
{SwitchMode_Id_Extend, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Extend_String, NULL, NULL}, //{ SwitchMode_Id_CounterStep
{SwitchMode_Id_Extend, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Extend_String, NULL, NULL}, //{ SwitchMode_Id_GPS
{SwitchMode_Id_Extend, SWITCHMODE_MAINITEM_COUNT, cSWITCHMODE_NO_CHILD, 0xFF, (U8**)p_SwitchMode_Extend_String, NULL, NULL} //{ SwitchMode_Id_Internet,
};
const SwitchModeCurrent_t NotDisplay[]=
{
{SwitchMode_Id_Learn,2},
{SwitchMode_Id_Learn,3},
{SwitchMode_Id_Learn,4},
{SwitchMode_Id_Learn,5},
{SwitchMode_Id_Learn,6},
{SwitchMode_Id_Learn,7},
{SwitchMode_Id_Learn,8},
{SwitchMode_Id_Extend,4},
{SwitchMode_Id_Extend,5},
{SwitchMode_Id_Extend,6},
{SwitchMode_Id_Extend,7},
{SwitchMode_Id_Extend,8},
{0xFF,0xFF}
};
/*------------------------------ History List -----------------------------
1. Rev 1.00.00.0000, 2003/mm/dd hh:mm author name
--------------------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -