uiBlock.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. extern unsigned char netshowvalue;
  23. extern unsigned char ctecCurrentSet;
  24. extern const char ZZD_PWRMODE[3];
  25. void pwrModeSetCmd(unsigned char pwrMode);
  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