Subversion Repositories wimsdev

Rev

Rev 8146 | Rev 8224 | 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         128
  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 CLEARBUTTON     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. #define LEVELCURVE      143
  140. #define JSMATH          144
  141. #define TRACE_JSCURVE   145
  142. #define SETLIMITS       146
  143. #define JSCURVE         147
  144. #define CENTERSTRING    148
  145. #define MOUSEX          149
  146. #define MOUSEY          150
  147. #define MOUSE_DEGREE    151
  148. #define MOUSE_DISPLAY   152
  149. #define XUNIT           153
  150. #define YUNIT           154
  151. #define KILLSLIDER      155
  152. #define ANGLE           156
  153. #define USERINPUT_FUNCTION 157
  154.  
  155. #define DRAW_GRID       0
  156. #define DRAW_SEGMENTS   1
  157. #define DRAW_CROSSHAIRS 2
  158. #define DRAW_RECTS      3
  159. #define DRAW_ROUNDRECTS 4
  160. #define DRAW_ARROWS     6
  161. #define DRAW_GRIDFILL   7
  162. #define DRAW_XML        8
  163. #define DRAW_CIRCLES    9
  164. #define DRAW_ARCS       10
  165. #define DRAW_ELLIPSES   11
  166. #define DRAW_TEXTS      12
  167. #define DRAW_CURVE      13
  168. #define DRAW_PATHS      14
  169. #define DRAW_LATTICE    15
  170. #define DRAW_INPUTS     16
  171. #define DRAW_TEXTAREAS  17
  172. #define DRAW_HTTP       18
  173. #define DRAW_AUDIO      19
  174. #define DRAW_VIDEO      20
  175. #define DRAW_DOTFILL    21
  176. #define DRAW_HATCHFILL  22
  177. #define DRAW_IMAGEFILL  23
  178. #define DRAW_FLOODFILL  24
  179. #define DRAW_FILLTOBORDER       25
  180. #define DRAW_PIXELS     26
  181. #define DRAW_POLY       27
  182. #define DRAW_LINES      28
  183. #define DRAW_PIECHART   29
  184. #define DRAW_CLOCK      30
  185. #define DRAW_EXTERNAL_IMAGE     31
  186. #define DRAG_EXTERNAL_IMAGE     32
  187. #define DRAW_DIAMONDFILL        33
  188. #define DRAW_SGRAPH     34
  189. #define DRAW_POLYLINE   35
  190. #define DRAW_YLOGSCALE  36
  191. #define DRAW_XLOGSCALE  37
  192. #define DRAW_XYLOGSCALE 38
  193. #define DRAW_CENTERSTRING 39
  194. #define DRAW_JSFUNCTION 40
  195.  
  196. #define BG_CANVAS       0
  197. #define STATIC_CANVAS   1
  198. #define MOUSE_CANVAS    2
  199. #define GRID_CANVAS     3
  200. #define DRAG_CANVAS     4
  201. #define DRAW_CANVAS     5
  202. #define TEXT_CANVAS     6
  203. #define EXTERNAL_DRAG_CANVAS 7
  204. #define EXTERNAL_IMAGE_CANVAS 8
  205. #define CLOCK_CANVAS    9
  206. #define ANIMATE_CANVAS  10
  207. #define TRACE_CANVAS    11
  208. #define JSPLOT_CANVAS   12
  209. #define USERDRAW_JSPLOT 13
  210.  
  211. #ifndef STD_H
  212. #define STD_H
  213.  
  214. #ifndef bool
  215. #define bool            char
  216. #endif
  217. #ifndef TRUE
  218. #define TRUE            1
  219. #endif
  220. #ifndef FALSE
  221. #define FALSE           0
  222. #endif
  223.  
  224. #endif
  225.  
  226.