Subversion Repositories wimsdev

Rev

Rev 7784 | Rev 7823 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. #define canvas_iscalculation(x) ( ((x&~32)>='A' && (x&~32)<='Z') || ( x == '/' ) || (x == '*') || (x == '+') || x == '-' || x == '^' || x == '(' || x == ')' )
  2. #define MAX_INT         64
  3. #define MAX_BUFFER 16384
  4. #define MAX_COLOR_STRING        32
  5. #define MAX_JS_FUNCTIONS 64
  6.  
  7. #define END             -1
  8. #define COMMENT         -2
  9. #define SIZE            1
  10. #define XRANGE          2
  11. #define YRANGE          3
  12. #define FONTFAMILY      4
  13. #define MATHML          5
  14. #define INPUT           6
  15. #define TEXTAREA        7
  16. #define LINEWIDTH       8
  17. #define POLYLINE        9
  18. #define POLY            10
  19. #define SEGMENT         15
  20. #define LINE            16
  21. #define DLINE           17
  22. #define RECT            18
  23. #define ARC             19
  24. #define NEW             20
  25. #define STRING          21
  26. #define STRINGUP        22
  27. #define COPY            23
  28. #define COPYRESIZED     24
  29. #define TRANSPARENT     25
  30. #define POINT           26
  31. #define CIRCLE          27
  32. #define GETPIXEL        28
  33. #define SQUARE          29
  34. #define EMPTY           30
  35. #define ELLIPSE         31
  36. #define ROTATE          32
  37. #define TYPE            33
  38. #define QUALITY         34
  39. #define INPUTSTYLE      35
  40. #define POINTS          36
  41. #define TRIANGLE        37
  42. #define HLINE           38
  43. #define VLINE           39
  44. #define GRID            40
  45. #define ZOOM            41
  46. #define ARROW           42
  47. #define DARROW          43
  48. #define AXIS            44
  49. #define FONTSIZE        46
  50. #define CURVE           50
  51. #define PLOTSTEPS       51
  52. #define TRANGE          53
  53. #define MOUSE_PRECISION 54
  54. #define FLY_TEXT        55
  55. #define FLY_TEXTUP      56
  56. #define BGIMAGE         57
  57. #define DASHED          58
  58. #define PARALLEL        59
  59. #define LATTICE         60
  60. #define OPACITY         61
  61. #define AXIS_NUMBERING  62
  62. #define RAYS            63
  63. #define OUTPUT          64
  64. #define CLOCK           65
  65. #define STYLE           66
  66. #define USERDRAW        67
  67. #define MOUSE           68
  68. #define AUDIO           69
  69. #define AUDIOOBJECT     70
  70. #define STOP            71
  71. #define RESTART         72
  72. #define FILLCOLOR       73
  73. #define CUBE            74
  74. #define BUTTON          75
  75. #define ONCLICK         76
  76. #define CROSSHAIR       77
  77. #define CROSSHAIRS      78
  78. #define BLINK           79
  79. #define DASHTYPE        80
  80. #define HTML            81
  81. #define CROSSHAIRSIZE   82
  82. #define ARROWHEAD       83
  83. #define DRAG            84
  84. #define HTTP            85
  85. #define SLIDER          86
  86. #define CLICKTILE       88
  87. #define CLICKTILE_COLORS        89
  88. #define TRANSLATION     90
  89. #define KILLTRANSLATION 91
  90. #define ARROW2          92
  91. #define DARROW2         93
  92. #define SVGCODE         95
  93. #define ROUNDRECT       96
  94. #define HATCHFILL       97
  95. #define PATTERNFILL     98
  96. #define DIAMONDFILL     99
  97. #define DOTFILL         100
  98. #define GRIDFILL        101
  99. #define IMAGEFILL       102
  100. #define FILL            103
  101. #define FILLED          104
  102. #define XYLOGSCALE      105
  103. #define XLOGSCALE       106
  104. #define YLOGSCALE       107
  105. #define XLOGBASE        108
  106. #define INTOOLTIP       109
  107. #define REPLYFORMAT     110
  108. #define VIDEO           111
  109. #define BGCOLOR         112
  110. #define FLOODFILL       113
  111. #define FILLTOBORDER    114
  112. #define CLICKFILL       115
  113. #define SETPIXEL        117
  114. #define PIXELS          118
  115. #define PIXELSIZE       119
  116. #define CLICKFILLMARGE  120
  117. #define X_AXIS_STRINGS  121
  118. #define Y_AXIS_STRINGS  122
  119. #define FONTCOLOR       123
  120. #define PIECHART        124
  121. #define LEGEND          125
  122. #define BARCHART        126
  123. #define LINEGRAPH       127
  124. #define STROKECOLOR     128
  125. #define XLABEL          129
  126. #define YLABEL          130
  127. #define LEGENDCOLORS    131
  128. #define ANIMATE         132
  129. #define STATUS          133
  130. #define SNAPTOGRID      134
  131. #define XSNAPTOGRID     135
  132. #define YSNAPTOGRID     136
  133. #define USERINPUT_XY    137
  134. #define USERTEXTAREA_XY 138
  135. #define SGRAPH          139
  136. #define YLOGBASE        140
  137. #define AFFINE          141
  138. #define KILLAFFINE      142
  139.  
  140. #define DRAW_GRID       0
  141. #define DRAW_SEGMENTS   1
  142. #define DRAW_CROSSHAIRS 2
  143. #define DRAW_RECTS      3
  144. #define DRAW_ROUNDRECTS 4
  145. #define DRAW_ARROWS     6
  146. #define DRAW_GRIDFILL   7
  147. #define DRAW_XML        8
  148. #define DRAW_CIRCLES    9
  149. #define DRAW_ARCS       10
  150. #define DRAW_ELLIPSES   11
  151. #define DRAW_TEXTS      12
  152. #define DRAW_CURVE      13
  153. #define DRAW_PATHS      14
  154. #define DRAW_LATTICE    15
  155. #define DRAW_INPUTS     16
  156. #define DRAW_TEXTAREAS  17
  157. #define DRAW_HTTP       18
  158. #define DRAW_AUDIO      19
  159. #define DRAW_VIDEO      20
  160. #define DRAW_DOTFILL    21
  161. #define DRAW_HATCHFILL  22
  162. #define DRAW_IMAGEFILL  23
  163. #define DRAW_ZOOM_BUTTONS 24
  164. #define DRAW_FLOODFILL  25
  165. #define DRAW_FILLTOBORDER       26
  166. #define DRAW_PIXELS     27
  167. #define DRAW_POLY       28
  168. #define DRAW_LINES      29
  169. #define DRAW_PIECHART   30
  170. #define DRAW_CLOCK      31
  171. #define DRAW_EXTERNAL_IMAGE     32
  172. #define DRAG_EXTERNAL_IMAGE     33
  173. #define DRAW_DIAMONDFILL        34
  174. #define DRAW_SGRAPH     35
  175. #define DRAW_POLYLINE   36
  176. #define DRAW_YLOGSCALE  37
  177. #define DRAW_XLOGSCALE  38
  178. #define DRAW_XYLOGSCALE 39
  179.  
  180. #define BG_CANVAS       0
  181. #define STATIC_CANVAS   1
  182. #define MOUSE_CANVAS    2
  183. #define GRID_CANVAS     3
  184. #define DRAG_CANVAS     4
  185. #define DRAW_CANVAS     5
  186. #define TEXT_CANVAS     6
  187. #define EXTERNAL_DRAG_CANVAS 7
  188. #define EXTERNAL_IMAGE_CANVAS 8
  189. #define CLOCK_CANVAS    9
  190. #define ANIMATE_CANVAS  10
  191.  
  192. #ifndef STD_H
  193. #define STD_H
  194.  
  195. #ifndef bool
  196. #define bool            char
  197. #endif
  198. #ifndef TRUE
  199. #define TRUE            1
  200. #endif
  201. #ifndef FALSE
  202. #define FALSE           0
  203. #endif
  204.  
  205. #endif
  206.  
  207.