uiEntry.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #ifndef __UI__H_
  2. #define __UI__H_
  3. #include "gui.h"
  4. typedef enum{
  5. UIS_NULL,
  6. UIS_STANDBY, //0:待机界面
  7. UIS_MENU_MAIN, //1:主菜单
  8. UIS_MENU_GROUP_SEL, //1.1:群组选择菜单
  9. UIS_MENU_USER_SEL, //1.2:成员选择菜单
  10. UIS_MENU_MAIL_SEL, //1.3:文本消息菜单
  11. UIS_MENU_SYS_SEL, //1.4:系统设置菜单
  12. UIS_MENU_LOCATION_SEL, //1.5:定位设置菜单
  13. UIS_MENU_INFO_SEL, //1.6:终端信息菜单
  14. UIS_MENU_MAIL_READ, //1.3.1:文本消息读
  15. UIS_MENU_MAIL_OPTION, //1.3.2:文本消息选项
  16. UIS_MENU_MAIL_DEL, //1.3.3:文本删除
  17. UIS_MENU_MAIL_FORMAT, //1.3.4:文本格式化
  18. UIS_MENU_SYS_LCD, //1.4.1:系统设置LCD
  19. UIS_MENU_SYS_NET, //1.4.2:系统设置网络
  20. UIS_MENU_SYS_SIM, //1.4.3:系统设置SIM
  21. UIS_MENU_SYS_PWR, //1.4.4:系统设置功耗
  22. UIS_MENU_SYS_SERVERPASS,//1.4.5:系统设置服务器(先输入密码)
  23. UIS_MENU_SYS_VERSION, //1.4.6:系统设置版本
  24. UIS_MENU_SYS_NOTE, //1.4.7:系统设置提示音
  25. UIS_MENU_SYS_MICCU, //1.4.8:系统设置MIC粗调
  26. UIS_MENU_SYS_MICXI, //1.4.8:系统设置MIC细调
  27. UIS_MENU_SYS_SERVER, //1.4.5.1:服务器设置
  28. UIS_MENU_SYS_PLAT, //
  29. UIS_MENU_SYS_VOICEQC, //音质选择
  30. }UIS_ENUM;
  31. #pragma pack(push)
  32. #pragma pack(1)
  33. typedef struct{
  34. unsigned char sta[4];
  35. unsigned char ok_back;
  36. short top;
  37. unsigned char FastUiChange;
  38. unsigned char ESCflag;
  39. }UI_STACKDEF;
  40. typedef struct{
  41. unsigned char Status;
  42. unsigned char LastStatus;
  43. unsigned char NextStatus;
  44. unsigned char ItemRefresh;
  45. }UI_STATUSDEF;
  46. #pragma pack(pop)
  47. extern UI_STATUSDEF sutUIstatus;
  48. extern UI_STACKDEF uiStack;
  49. //状态栏高度及所在行
  50. #define UI_STATUS_BAR_Y 0
  51. #define UI_STATUS_BAR_HEIGH 13
  52. //对讲标语显示栏高度及所在行
  53. #define UI_STATUS_ITEM_Y UI_STATUS_BAR_HEIGH
  54. #define UI_STATUS_ITEM_HEIGH 14
  55. //底部按键栏高度及所在行
  56. #define UI_BOTTOM_BUTTON_HEIGH 14
  57. #define UI_BOTTOM_SHOW_Y (GLCD_HEIGHT-UI_BOTTOM_BUTTON_HEIGH)
  58. //对讲状态显示区高度及所在行
  59. #define UI_CONTENT_SHOW_Y (UI_STATUS_ITEM_Y+UI_STATUS_ITEM_HEIGH)
  60. #define UI_CONTENT_HEIGHT (GLCD_HEIGHT-UI_STATUS_BAR_HEIGH-UI_STATUS_ITEM_HEIGH-UI_BOTTOM_BUTTON_HEIGH)
  61. //正在登录信息显示所在的
  62. #define UI_LOGIN_SHOW_Y (UI_STATUS_BAR_HEIGH+UI_STATUS_ITEM_HEIGH+2)
  63. //群组信息显示所在的
  64. #define UI_GROUP_SHOW_Y (UI_STATUS_BAR_HEIGH+UI_STATUS_ITEM_HEIGH+5)
  65. //成员信息显示所在的
  66. #define UI_USER_SHOW_Y (UI_GROUP_SHOW_Y+2+20)//16
  67. //话权信息显示所在的
  68. #define UI_VOICE_SHOW_Y (UI_USER_SHOW_Y+2+20)
  69. //菜单中在最下面显示状态信息前显示
  70. #define UI_BOTTOM_LINE_Y UI_BOTTOM_SHOW_Y
  71. //菜单中在最下面显示状态信息所在的
  72. #define UI_NOTE_LOCATION_Y (UI_BOTTOM_LINE_Y+1)
  73. UI_STACKDEF *getStackStruct(void);
  74. void uiLoop(unsigned int exeInterval);
  75. void uiResponse(unsigned int exeInterval);
  76. void uISetNextStatus(unsigned char status);
  77. void uiDataInit(void);
  78. short uiPushStack(unsigned char data);
  79. short uiPullStack(void);
  80. void uiMenuShowBottomLine(void);
  81. void uiMenuShowBottomIndacitor(const char *infoLF, const char *infoRI);
  82. #endif