uiBlock.h 5.6 KB

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