home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / software / varie / charmap / source / cmap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-04  |  1.2 KB  |  42 lines

  1. /******************************************************************
  2. ** cmap.h : Datatypes and constants used by the programme        **
  3. **                                                               **
  4. ** Special Requirements: WorkBench 2.0, version 36 or above      **
  5. ******************************************************************/
  6.  
  7. #ifndef    CMAP_H
  8. #define    CMAP_H
  9.  
  10. /* Some constant definitions */
  11. #define    MIN_VERSION            36L
  12. #define    CHARMAP_VERSION    "1.4"
  13. #define    CHARMAP_DATE        "28/12/1999"
  14.  
  15. /* To init the charset, depending how many chars are defined in a font: */
  16. #define    Init_charset(textfont)        CharsetNum=(textfont->tf_LoChar>=32?2:1);
  17.  
  18. /* To get access easily to StringInfo struct: */
  19. #define    sti(gad)                            ((struct StringInfo *)gad->SpecialInfo)
  20.  
  21. /* To access error mesages table: */
  22. #define ErrMsg(num)        Errors[ num-MSG_BADOS ]
  23.  
  24. /* Different values, to handle the recessed box while pressing lmb: */
  25. #define    KEYB_CONTROL        -1
  26. #define    NOT_PRESSED             0
  27. #define    PRESSED                 1
  28. #define    OUTSIDE_AREA         2
  29. #define    EVT_HOTKEY             1L
  30.  
  31. /* NewMenu entries for Charset and Font type: */
  32. #define    NM_FONTTYPE             2
  33. #define    NM_CHARSET             7
  34.  
  35. /* Charset type: */
  36. #define    ASCII_8BITS             0
  37. #define    ISO_LATIN             1
  38. #define    STD_AMIGA             2
  39. #define    NUM_CHARSET             3
  40.  
  41. #endif
  42.