home *** CD-ROM | disk | FTP | other *** search
/ World of A1200 / World_Of_A1200.iso / programs / workbench / stickit2 / source.lha / source / consts.h < prev    next >
C/C++ Source or Header  |  1995-01-09  |  3KB  |  130 lines

  1. /****************************************
  2.  *************   consts.h   *************
  3.  ****************************************/
  4.  
  5. /*** Defined constants ********************************************************/
  6.  
  7. /* The main version string */
  8.  
  9. #define VERSION_STRING        "$VER: StickIt ©1993,1994 Andy Dean v2.00"
  10. #define VERSION_STRING2        "Author's address:\n\
  11.  Electronic Engineering Dept.\n University College London\n Torrington Place\n\
  12.  London\n ENGLAND\n WC1E 7JE\n Email:adean@eleceng.ucl.ac.uk\n\n\
  13. This software is \"PostCard-ware\" - \nif you like and use the program, \n\
  14. send me a PostCard. Thanks!"
  15.  
  16. /* Which version of the operating system do we require ? */
  17.  
  18. #define OS_VER            37
  19.  
  20. /* Maximum number of notes */
  21.  
  22. #define NO_NOTES        100
  23.  
  24. /* Preferences defaults */
  25.  
  26. #define DEFAULT_BACKCOLOUR    2
  27. #define DEFAULT_TEXTCOLOUR    1
  28. #define DEFAULT_CARATCOLOUR    3
  29.  
  30. #define DEFAULT_NOTEFILE    "StickIt2.notes"
  31.  
  32. #define DEFAULT_CXPRIORITY    0
  33. #define DEFAULT_CXPOPUP        TRUE
  34. #define DEFAULT_CXPOPKEY    "lalt lshift s"
  35.  
  36. #define DEFAULT_PUBSCREEN    "Workbench"
  37.  
  38. #define DEFAULT_CLIPUNIT    0
  39.  
  40. #define DEFAULT_DELAY        0
  41.  
  42. #define DEFAULT_EMPTYQUIT    FALSE
  43. #define DEFAULT_HIDEWARN    TRUE
  44.  
  45. /* Note defaults */
  46.  
  47. #define DEFAULT_LEFTEDGE    12
  48. #define DEFAULT_TOPEDGE        24
  49. #define DEFAULT_NOTEHEIGHT    55
  50. #define DEFAULT_NOTEWIDTH    100
  51. #define DEFAULT_FONTSIZE    12
  52.  
  53. #define DEFAULT_MINWIDTH    40
  54. #define DEFAULT_MINHEIGHT    20
  55. #define DEFAULT_MAXWIDTH    640
  56. #define DEFAULT_MAXHEIGHT    480
  57.  
  58. /* String lengths */
  59.  
  60. #define STRLEN_NOTETEXT        4096
  61. #define STRLEN_NOTETITLE    128
  62. #define STRLEN_FNAME        256
  63. #define STRLEN_FONTNAME        128
  64. #define STRLEN_ERRMSG        256
  65. #define STRLEN_FONTSTYLES    10
  66. #define STRLEN_PUBSCREEN    128
  67. #define STRLEN_CXPOPKEY        128
  68.  
  69. /* No of pixels between each line of text */
  70.  
  71. #define NO_INTERLINE_PIXELS    2
  72.  
  73. /* Carat width */
  74.  
  75. #define CARAT_WIDTH        2
  76.  
  77. /* Constants for working out the carat position after movement */
  78.  
  79. #define PTRCHANGE_CLICK        1
  80. #define PTRCHANGE_CURSOR    0
  81.  
  82. /* Buffer size for rawkey events */
  83.  
  84. #define SIZE_RAWKEYBUFFER    10    /* plenty big enough */
  85.  
  86. /* If there are no free notes available */
  87.  
  88. #define NO_FREE_NOTES        -1
  89.  
  90. /* Can't find note pointer in prj->notes[] */
  91.  
  92. #define NOT_IN_ARRAY        -1
  93.  
  94. /* Linked list node type */
  95.  
  96. #define NT_STICKIT2        100
  97.  
  98. /* Make sure the linked list is ordered properly */
  99.  
  100. #define MAXPRI            127
  101.  
  102. /* Colour types for the commodities cycle gadget */
  103.  
  104. #define COLOUR_BACKGROUND    0
  105. #define COLOUR_TEXT        1
  106. #define COLOUR_CARAT        2
  107.  
  108. /*** Enumerated types *********************************************************/
  109.  
  110. typedef enum {
  111.     ERR_WARNING,
  112.     ERR_OPENNOTE,
  113.     ERR_NOTEFILEOPEN,
  114.     ERR_FATAL,        /* Fatal error */
  115.     ERR_MALLOC
  116. }error_e;
  117.  
  118. #ifdef TRUE
  119. #undef TRUE
  120. #endif
  121.  
  122. #ifdef FALSE
  123. #undef FALSE
  124. #endif
  125.  
  126. typedef enum {
  127.     FALSE,
  128.     TRUE
  129. }bool_e;
  130.