uiBlock.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #ifndef __UI_BLOCK_H__
  2. #define __UI_BLOCK_H__
  3. #define SIGNAL_ICON_X 0
  4. #define SIGNAL_ICON_WX (7+10)
  5. #define CARD_ICON_X (SIGNAL_ICON_X+SIGNAL_ICON_WX+2)
  6. #define CARD_ICON_WX 7
  7. #define NET_ICON_X (CARD_ICON_X+CARD_ICON_WX+1)
  8. #define NET_ICON_WX (16)
  9. #define GPS_ICON_X (NET_ICON_X+NET_ICON_WX)//(NET_ICON_X+NET_ICON_WX+1)
  10. #define GPS_ICON_WX 0//(18)
  11. #define SMS_ICON_X (GPS_ICON_X+GPS_ICON_WX)//(GPS_ICON_X+GPS_ICON_WX+2)
  12. #define SMS_ICON_WX 0//(8)
  13. #define TIME_ICON_X (SMS_ICON_X+SMS_ICON_WX+1)
  14. #define TIME_ICON_WX (5*8)
  15. #define EAR_ICON_X (TIME_ICON_X+TIME_ICON_WX+1)
  16. #define EAR_ICON_WX (11)
  17. #define LOCK_ICON_X (EAR_ICON_X+EAR_ICON_WX+2)
  18. #define LOCK_ICON_WX 8
  19. #define BAT_ICON_X (LOCK_ICON_X+LOCK_ICON_WX+1)
  20. #define BAT_ICON_WX (21)
  21. #define WARN_TTS_INTERVAL 30000 //定时提示充电间隔
  22. #define MIN_PWR_LEVEL 320 //低于此电压后不工作
  23. #define WARN_PWR_LEVEL 340 //提示请充电电压
  24. extern unsigned char netshowvalue;
  25. extern unsigned char ctecCurrentSet;
  26. void uiShowStatusBar(char flash,unsigned int exeInterval);
  27. void uiShowMainInterface(char status,unsigned int);
  28. void uiShowMenuMain(char update);
  29. void MenuMainResponse(void);
  30. void uiShowGUSel(char StatusUpdate,unsigned int exeInterval,char type);
  31. void GroupSelResponse();
  32. void UserSelResponse();
  33. void uiShowMenuSysSetup(char flash);
  34. void sysTemSetResponse(void);
  35. void uiShowMenuLocationSel(char flash);
  36. void loationSetResponse(void);
  37. void uiShowInformation(char update);
  38. void uiShowInformationResponse(void);
  39. void uiShowLcdSel(char StatusUpdate);
  40. void uiShowLcdSelResponse(void);
  41. void uiShowNetSel(char StatusUpdate);
  42. void uiShowNetSelResponse(void);
  43. void uiShowSimSel(char StatusUpdate);
  44. void uiShowSimSelResponse(void);
  45. void uiShowPwrSel(char StatusUpdate);
  46. void uiShowPwrSelResponse(void);
  47. void uiShowServerPassSel(char StatusUpdate);
  48. void uiShowServerSelPassResponse(void);
  49. void uiShowServerSel(char StatusUpdate);
  50. void uiShowServerSelResponse(void);
  51. void uiShowVersionSel(char StatusUpdate);
  52. void uiShowVersionSelResponse(void);
  53. void pwrModeAckHandler(unsigned char seg1, unsigned char seg2);
  54. void uiShowShutDown(char update);
  55. void uiShowShutDownResponse(void);
  56. unsigned short getSmsXAddr(void);
  57. void showLoading(void);
  58. bool isUiSwitchReady(void);
  59. #ifdef USE_LEFT_MOVING
  60. void movingShowNames(unsigned int dlyInterval,unsigned char reset,unsigned char now,unsigned char voice);
  61. void mainScreenShowMoving(unsigned short y, unsigned char reset,char *gname,char *uname,char *voicePri);
  62. void leftMoveStr(char *name, unsigned short len);
  63. void getRealShow(char *des, char *src,int maxsize);
  64. #endif
  65. #endif