uiBlock.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. #ifndef __UI_BLOCK_H__
  2. #define __UI_BLOCK_H__
  3. #define SIGNAL_ICON_X 6
  4. #define SIGNAL_ICON_WX (9+20)
  5. #define NET_ICON_X (SIGNAL_ICON_X+SIGNAL_ICON_WX+2)
  6. #define NET_ICON_WX (32)
  7. #define GPS_ICON_X (NET_ICON_X+NET_ICON_WX+2)//(NET_ICON_X+NET_ICON_WX+1)
  8. #define GPS_ICON_WX (24)
  9. #define SMS_ICON_X (GPS_ICON_X+GPS_ICON_WX)//(GPS_ICON_X+GPS_ICON_WX+2)
  10. #define SMS_ICON_WX 0//(8)
  11. #define TIME_ICON_X (SMS_ICON_X+SMS_ICON_WX+1)
  12. #define TIME_ICON_WX (5*16)
  13. #define EAR_ICON_X (TIME_ICON_X+TIME_ICON_WX+1)
  14. #define EAR_ICON_WX (11)
  15. #define LOCK_ICON_X (EAR_ICON_X+EAR_ICON_WX+2)
  16. #define LOCK_ICON_WX 8
  17. #define BAT_ICON_WX (38)
  18. #define BAT_ICON_X (GLCD_WIDTH-BAT_ICON_WX-1)
  19. #define WARN_TTS_INTERVAL 30000 //定时提示充电间隔
  20. #define MIN_PWR_LEVEL 320 //低于此电压后不工作
  21. #define WARN_PWR_LEVEL 340 //提示请充电电压
  22. #define NORMAL_BOOL_NUM 2
  23. extern unsigned char netshowvalue;
  24. extern unsigned char ctecCurrentSet;
  25. extern const char ZZD_PWRMODE[3];
  26. void pwrModeSetCmd(unsigned char pwrMode);
  27. void uiShowStatusBar(char flash,unsigned int exeInterval);
  28. void uiShowMainInterface(char status,unsigned int);
  29. void uiShowMenuMain(char update);
  30. void MenuMainResponse(void);
  31. void uiShowGUSel(char StatusUpdate,unsigned int exeInterval,char type);
  32. void GroupSelResponse();
  33. void UserSelResponse();
  34. void FriendSelResponse();
  35. void uiShowMenuSysSetup(char flash);
  36. void sysTemSetResponse(void);
  37. void uiShowMenuLocationSel(char flash);
  38. void loationSetResponse(void);
  39. void uiShowInformation(char update);
  40. void uiShowInformationResponse(void);
  41. void uiShowLcdSel(char StatusUpdate);
  42. void uiShowLcdSelResponse(void);
  43. void uiShowNetSel(char StatusUpdate);
  44. void uiShowNetSelResponse(void);
  45. void uiShowSimSel(char StatusUpdate);
  46. void uiShowSimSelResponse(void);
  47. void uiShowPwrSel(char StatusUpdate);
  48. void uiShowPwrSelResponse(void);
  49. void uiShowServerPassSel(char StatusUpdate);
  50. void uiShowServerSelPassResponse(void);
  51. void uiShowServerSel(char StatusUpdate);
  52. void uiShowServerSelResponse(void);
  53. void uiShowVersionSel(char StatusUpdate);
  54. void uiShowVersionSelResponse(void);
  55. void pwrModeAckHandler(unsigned char seg1, unsigned char seg2);
  56. void uiShowShutDown(char update);
  57. void uiShowShutDownResponse(void);
  58. unsigned short getSmsXAddr(void);
  59. void showLoading(void);
  60. bool isUiSwitchReady(void);
  61. void uiShowBleMenuSysSetup(char flash);
  62. void sysBleSetResponse(void);
  63. void uiShowBleEnableUpdate(char StatusUpdate);
  64. void uiShowBleEnableUpdateResponse(void);
  65. void uiShowBleMacth(char StatusUpdate);
  66. void uiShowBleMacthUpdateResponse(void);
  67. void uiShowRingUpdate(char StatusUpdate);
  68. void uiShowRingUpdateResponse(void);
  69. void uiShowBleSpkUpdate(char StatusUpdate);
  70. void uiShowBleSpkUpdateResponse(void);
  71. void uiShowBleMicUpdate(char StatusUpdate);
  72. void uiShowBleMicUpdateResponse(void);
  73. void uiShowBleInitUpdate(char StatusUpdate);
  74. void uiShowBleInitUpdateResponse(void);
  75. void uiShowRingInitUpdate(char StatusUpdate);
  76. void uiShowRingInitUpdateResponse(void);
  77. void PalaceIndexReset();
  78. void uiShowXINBIAOMenuSysSetup(char flash);
  79. void sysXINBIAOSetResponse(void);
  80. void uiShowXINBIAOStationUpdate(char StatusUpdate);
  81. void uiShowXINBIAOStationUpdateResponse(void);
  82. void uiShowXINBIAOEnableLive(char StatusUpdate);
  83. void uiShowXINBIAOEnableLiveResponse(void);
  84. void uiShowXINBIAOTriggerMode(char StatusUpdate);
  85. void uiShowXINBIAOTriggerModeResponse(void);
  86. void uiShowXinbiaoTimeUpdate(char StatusUpdate);
  87. void uiShowXinbiaoTimeUpdateResponse(void);
  88. void uiShowXINBIAOGateway(char StatusUpdate);
  89. void uiShowXINBIAOGatewayResponse(void);
  90. void uiShowXinbiaoClearlist(char StatusUpdate);
  91. void uiShowXinbiaoClearlistResponse(void);
  92. void uiShowXINBIAOInfoUpdate(char StatusUpdate);
  93. void uiShowXINBIAOInfoResponse(void);
  94. void uiShowMenuTTSEnableUpdate(char StatusUpdate);
  95. void uiShowMenuTTSEnableUpdateResponse(void);
  96. void uiShowShakeEnableUpdate(char StatusUpdate);
  97. void uiShowShakeEnableUpdateResponse(void);
  98. void uiShowPoc_soundUpdate(char StatusUpdate);
  99. void uiShowPoc_soundUpdateResponse(void);
  100. void uiShowSideKeyMenuSysSetup(char StatusUpdate);
  101. void sysSetSideKeyResponse(void);
  102. void uiShowSideKeyFuncUpdate(char StatusUpdate,char type);
  103. void uiShowSideKeyFuncUpdateResponse(char type);
  104. void uiShowLeaderMenuSysSetup(char StatusUpdate);
  105. void sysSetLeaderResponse();
  106. void ReFlashItemLeader(char StatusUpdate,char type);
  107. void uiShowLeaderFuncResponse();
  108. #ifdef USE_LEFT_MOVING
  109. void movingShowNames(unsigned int dlyInterval,unsigned char reset,unsigned char now,unsigned char voice);
  110. void mainScreenShowMoving(unsigned short y, unsigned char reset,char *gname,char *uname,char *voicePri);
  111. void leftMoveStr(char *name, unsigned short len);
  112. void getRealShow(char *des, char *src,int maxsize);
  113. #endif
  114. #endif