home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / libs / plotlib.lha / Plot_1.lzh / Demo / Definitions.h next >
Encoding:
C/C++ Source or Header  |  1990-02-17  |  7.8 KB  |  252 lines

  1. #ifndef DEFINITIONS_H
  2. #define DEFINITIONS_H
  3.  
  4. /****************************************************************
  5.  *                                                                                                                            *
  6.  * Filename : Definition.h                                                                            *
  7.  *                                                                                                                            *
  8.  ****************************************************************
  9.  *                                                                                                                            *
  10.  * Comment    : Allgemeine Definitionen                                                        *
  11.  *                        Diese Includedatei sollte bei allen Routinen            *
  12.  *                        und im Hauptprogramm eingelesen werden.                        *
  13.  *                                                                                                                            *
  14.  *                        Es beinhaltet Definitionen für:                                        *
  15.  *                            ->File                                                                                    *
  16.  *                            ->Graphik                                                                                *
  17.  *                            ->Menu                                                                                    *
  18.  *                            ->Verschiedene                                                                    *
  19.  *                        sowie verschiedene Makros.                                                *
  20.  *                                                                                                                            *
  21.  *            Rev : V1.0                                                                                            *
  22.  *                                                                                                                            *
  23.  *    History : V1.0 erstellen dieses Files                            25.06.89    *
  24.  *                                                                                                                            *
  25.  *            Doc :                                                                                                        *
  26.  *                                                                                                                            *
  27.  *         Bugs : keine bekannten                                                                        *
  28.  *                                                                                                                            *
  29.  *        Autor : Oesch Silvano                                                                            *
  30.  *                                                                                                                            *
  31.  *        Datum : 25.06.89                                                                                    *
  32.  *                                                                                                                            *
  33.  ****************************************************************/
  34.  
  35. /****************************************************************
  36. *                                                                                                                                *
  37. *    allgemeine Includedateien                                                                            *
  38. *                                                                                                                                *
  39. ****************************************************************/
  40.  
  41. #include <proto/all.h>
  42.  
  43. /****************************************************************
  44.  *                                                                                                                            *
  45.  *        FILE Definitionen                                                                                    *
  46.  *                                                                                                                            *
  47.  ****************************************************************/
  48.  
  49. #define MAXPATH ((FCHARS*4)+DSIZE+1)
  50.                                                                         /* Grösse des Pfades                */
  51.  
  52. /****************************************************************
  53.  *                                                                                                                            *
  54.  *        GRAPHIK Definitionen                                                                            *
  55.  *                                                                                                                            *
  56.  ****************************************************************/
  57.  
  58. #define SCREENBREITE 640                        /* ScreenBreite                            */
  59. #define BITPLANE 3                                    /* Farbenanzahl                            */
  60. #define FARBENANZAHL 1<<BITPLANE
  61. #define SCREENHEADER 10                            /* Grösse des Screenheaders    */
  62. #define WINDOWHEADER 10                            /* Grösse des Windowheaders    */
  63.  
  64. #define TOPAZSIZE 8
  65.  
  66. #define POINTERHOEHE 24
  67. #define POINTERSPOT -7
  68. #define POINTERBREITE 20
  69.  
  70. /****************************************************************
  71.  *                                                                                                                            *
  72.  *        GRAPHIK Makros                                                                                        *
  73.  *                                                                                                                            *
  74.  ****************************************************************/
  75.  
  76. #define BLAU(n) (n & 0x0000F)
  77. #define GRUEN(n) ((n >> 4) & 0x000F)
  78. #define ROT(n) ((n >> 8) & 0x000F)
  79.  
  80.  
  81. /****************************************************************
  82.  *                                                                                                                            *
  83.  *        Verschiedene Definitionen                                                                    *
  84.  *                                                                                                                            *
  85.  ****************************************************************/
  86.  
  87. #define TIME 250L                                        /* => 5 Sekunden                        */
  88.  
  89. /****************************************************************
  90.  *                                                                                                                            *
  91.  *        MENÜ Definitionen                                                                                    *
  92.  *                                                                                                                            *
  93.  ****************************************************************/
  94.  
  95. /****************************************************************
  96.  *                                                                                                                            *
  97.  * Menunamen                                                                                                        *
  98.  *                                                                                                                            *
  99.  ****************************************************************/
  100.  
  101. #define    FILEMENU            0
  102. #define BESCHRIFTUNG    1
  103. #define SKALA                    2
  104. #define GRENZEN                3
  105. #define BERECHNUNG        4
  106. #define DARSTELLUNG        5
  107.  
  108. /****************************************************************
  109.  *                                                                                                                            *
  110.  * FILEMENU                                                                                                            *
  111.  *                                                                                                                            *
  112.  ****************************************************************/
  113.  
  114. #define LOESCHEN            0
  115. #define LADEN                    1
  116. #define SICHERN                2
  117. #define SICHERNUNTER    3
  118. #define DRUCKAUSGABE    4
  119. #define PLOTAUSGABE        5
  120. #define BEENDEN                6
  121. #define HELP                    7
  122. #define INFORMATIONEN    8
  123.  
  124. /****************************************************************
  125.  *                                                                                                                            *
  126.  * BESCHRIFTUNG                                                                                                    *
  127.  *                                                                                                                            *
  128.  ****************************************************************/
  129.  
  130. #define GRTITEL    0
  131. #define X_ACHSE    1
  132. #define Y_ACHSE    2
  133. #define Z_ACHSE    3
  134.  
  135. /****************************************************************
  136.  *                                                                                                                            *
  137.  * Submenu X-ACHSE                                                                                            *
  138.  *                                                                                                                            *
  139.  ****************************************************************/
  140.  
  141. #define XACHSENNAME 0
  142. #define XEINHEIT 1
  143.  
  144. /****************************************************************
  145.  *                                                                                                                            *
  146.  * Submenu Y-ACHSE                                                                                            *
  147.  *                                                                                                                            *
  148.  ****************************************************************/
  149.  
  150. #define YACHSENNAME 0
  151. #define YEINHEIT 1
  152.  
  153. /****************************************************************
  154.  *                                                                                                                            *
  155.  * Submenu Z-ACHSE                                                                                            *
  156.  *                                                                                                                            *
  157.  ****************************************************************/
  158.  
  159. #define ZACHSENNAME 0
  160. #define ZEINHEIT 1
  161.  
  162. /****************************************************************
  163.  *                                                                                                                            *
  164.  * SKALA                                                                                                                *
  165.  *                                                                                                                            *
  166.  ****************************************************************/
  167.  
  168. #define XLIN    0
  169. #define XLOG    1
  170. #define XLN        2
  171. #define YLIN    3
  172. #define YLOG    4
  173. #define YLN        5
  174. #define ZLIN    6
  175. #define ZLOG    7
  176. #define ZLN        8
  177.  
  178. /****************************************************************
  179.  *                                                                                                                            *
  180.  * SKALA                                                                                                                *
  181.  *                                                                                                                            *
  182.  ****************************************************************/
  183.  
  184. #define MXMIN        0
  185. #define MXMAX     1
  186. #define MYMIN     2
  187. #define MYMAX     3
  188. #define MZMIN     4
  189. #define MZMAX     5
  190. #define MSTAND    6
  191.  
  192. /****************************************************************
  193.  *                                                                                                                            *
  194.  * BERECHNUNG                                                                                                        *
  195.  *                                                                                                                            *
  196.  ****************************************************************/
  197.  
  198. #define    FORMEL    0
  199. #define SINC        1
  200. #define    COSC        2
  201. #define SINCX        3
  202. #define POWER        4
  203. #define LOGX        5
  204.  
  205. /****************************************************************
  206.  *                                                                                                                            *
  207.  * DARSTELLUNG                                                                                                    *
  208.  *                                                                                                                            *
  209.  ****************************************************************/
  210.  
  211. #define GITTER                0
  212. #define AUTOVAL                1
  213. #define SCTITEL                2
  214. #define CROSSHATCH        3
  215. #define HIDDENL                4
  216. #define NEUZEICHNEN        5
  217. #define AUFLOESUNG        6
  218. #define FARBENAENDERN    7
  219. #define FARBENLADEN        8
  220. #define FARBENSICHERN    9
  221.  
  222. /****************************************************************
  223.  *                                                                                                                            *
  224.  * SubMenu AUFLOESUNG                                                                                        *
  225.  *                                                                                                                            *
  226.  ****************************************************************/
  227.  
  228. #define HIRESSCREEN 0
  229. #define INTERSCREEN 1
  230.  
  231. /****************************************************************
  232.  *                                                                                                                            *
  233.  *        Menu Makros                                                                                                *
  234.  *                                                                                                                            *
  235.  ****************************************************************/
  236.  
  237. #define MENU(n) SHIFTMENU(n)
  238. #define ITEM(n) SHIFTITEM(n)
  239. #define SUBI(n) SHIFTSUB(n)
  240.  
  241. /****************************************************************
  242.  *                                                                                                                            *
  243.  *        Gadget Definitionen                                                                                *
  244.  *                                                                                                                            *
  245.  ****************************************************************/
  246.  
  247. #define NEXTPAGE     1
  248. #define CANCEL         2
  249. #define PREVPAGE     3
  250.  
  251. #endif DEFINITIONS_H
  252.