home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / Pearls / texmf / source / driver / show / amiga / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-05  |  5.1 KB  |  161 lines

  1. /** config.h **/
  2.  
  3.  
  4. /* path of the config-file */
  5.  
  6. /* name of the config-file */
  7. #define CONFIG_NAME    "ShowDVI.config"
  8.  
  9.  
  10. /* numbers of all possible values in the config-file */
  11. /* ungerade bedeutet: on/off value    */
  12. #define NR_NO_KEYWORD    0
  13. #define NR_COLOR_0    2
  14. #define NR_COLOR_1    4
  15. #define NR_SCR_BAR    (6+1)
  16. #define NR_LACE        8+1
  17. #define NR_BASE_DPI    10
  18. #define NR_DPI_MENU    12
  19. #define NR_BEEP        (14+1)
  20. #define NR_ESCEX    (16+1)
  21. #define NR_IMENU    (18+1)
  22. #define NR_BIG_MENU    (20+1)
  23. #define NR_UNIT        22
  24. #define NR_SCR_MODE    24
  25. #define NR_USE_PHY    (26+1)
  26. #define NR_APP_WIN    (28+1)
  27. #define NR_APP_NAME    30
  28. #define NR_OS_MENU    (32+1)
  29. #define NR_AUTO_AGAIN    (34+1)
  30. #define NR_SCREEN_SIZE    36
  31. #define NR_USECOL4    (38+1)
  32. #define NR_COLOR_2    40
  33. #define NR_COLOR_3    42
  34. #define NR_COMMAND    44
  35. #define NR_MIDMENU    (46+1)
  36. #define NR_AREXXSTART    48
  37. #define NR_APPICONPOS    50
  38. #define NR_APPICON    (52+1)
  39. #define NR_CLWBCOL    (54+1)
  40. #define NR_QUICKQUIT    (56+1)
  41. #define NR_MONITOR_SIZE    58
  42. #define NR_BLINE    (60+1)
  43. #define NR_OWN_SCREEN    (62+1)
  44. #define NR_PUBSCR_NAME    64
  45. #define NR_WINDOW_POS    66
  46. #define NR_WINDOW_SIZE    68
  47. #define NR_MY_PUBSCR_NAME 70
  48. #define NR_WINDOW_POS_OWN_SCR    72
  49. #define NR_WINDOW_SIZE_OWN_SCR    74
  50. #define NR_MAXDVIBUF_SIZE    76
  51. #define NR_ALWBMFAST        (78+1)
  52. #define NR_SMARTWIN        (80+1)
  53. #define NR_BACKHOOK        (82+1)
  54. #define NR_APEN        84
  55. #define NR_BPEN        86
  56.  
  57. /* strings for the config-file */
  58. #define STR_COLOR_0    "color_0"        /* R,G,B */
  59. #define STR_COLOR_1    "color_1"        /* R,G,B */
  60. #define STR_COLOR_2    "color_2"        /* R,G,B */
  61. #define STR_COLOR_3    "color_3"        /* R,G,B */
  62. #define STR_SCR_BAR    "scrollbar"        /* on/off */
  63. #define STR_LACE    "interlace"        /* on/off */
  64. #define STR_BASE_DPI    "default_resolution"    /* dpi */
  65. #define STR_DPI_MENU    "resolution_menu"    /* max 10 short numbers */
  66. #define STR_BEEP    "beep"            /* on/off */
  67. #define STR_ESCEX    "esc-exit"        /* on/off */
  68. #define STR_IMENU    "int-menu"        /* on/off */
  69. #define STR_BIG_MENU    "big-menu"        /* on/off */
  70. #define STR_UNIT    "unit"            /* 'in' 'cm' or 'pt' */
  71. #define STR_SCR_MODE    "screen-mode"        /* 'pal' 'ntsc' or 'productivity' */
  72. #define STR_USE_PHY    "physical-numbers"    /* on/off */
  73. #define STR_APP_WIN    "application-window"    /* on/off */
  74. #define STR_APP_NAME    "app-icon-name"        /* string */
  75. #define STR_OS_MENU    "popup-menu"        /* on/off */
  76. #define STR_AUTO_AGAIN    "auto-load-again"    /* on/off */
  77. #define STR_SCREEN_SIZE "screen-size"        /* x y (0 => clone wb-screen) */
  78. #define STR_USECOL4    "use-four-colors"    /* on/off */
  79. #define STR_COMMAND    "shell-script"        /* string */
  80. #define STR_MIDMENU    "middle-menu"        /* on/off */
  81. #define STR_AREXXSTART    "arexx-start-script"    /* string */
  82. #define STR_APPICONPOS    "app-icon-pos"        /* nr, nr */
  83. #define STR_APPICON    "application-icon"    /* on/off */
  84. #define STR_CLWBCOL    "clone-wb-colors"    /* on/off */
  85. #define STR_QUICKQUIT    "quick-exit"        /* on/off */
  86. #define STR_MONITOR_SIZE "monitor-size"        /* x y */
  87. #define STR_BLINE    "border-line"        /* on/off */
  88. #define STR_OWN_SCREEN    "use-own-screen"    /* on/off */
  89. #define STR_PUBSCR_NAME "public-screen-name"    /* name */
  90. #define STR_WINDOW_POS    "window-pos"        /* x y */
  91. #define STR_WINDOW_SIZE    "window-size"        /* x y */
  92. #define STR_MY_PUBSCR_NAME    "my-public-screen-name"        /* name */
  93. #define STR_WINDOW_POS_OWN_SCR    "window-pos-own-screen"        /* x y */
  94. #define STR_WINDOW_SIZE_OWN_SCR    "window-size-own-screen"    /* x y */
  95. #define STR_MAXDVIBUF_SIZE    "maximal-dvibuff-size"        /* size */
  96. #define STR_ALWBMFAST        "page-always-in-fast-ram"    /* on/off */
  97. #define STR_SMARTWIN        "use-smart-refresh-win"        /* on/off */
  98. #define STR_BACKHOOK        "write-black-on-white"        /* on/off */
  99. #define STR_APEN    "a-pen"            /* foreground pen */
  100. #define STR_BPEN    "b-pen"            /* background pen */
  101.  
  102.  
  103. typedef struct {    char *keyword;
  104.             short keynumber;
  105.         } keys;
  106.  
  107. keys KeyTab[] = {
  108.     { STR_COLOR_0,    NR_COLOR_0 },
  109.     { STR_COLOR_1,    NR_COLOR_1 },
  110.     { STR_COLOR_2,    NR_COLOR_2 },
  111.     { STR_COLOR_3,    NR_COLOR_3 },
  112.     { STR_SCR_BAR,    NR_SCR_BAR },
  113.     { STR_LACE,    NR_LACE },
  114.     { STR_BASE_DPI,    NR_BASE_DPI },
  115.     { STR_DPI_MENU,    NR_DPI_MENU },
  116.     { STR_BEEP,    NR_BEEP },
  117.     { STR_ESCEX,    NR_ESCEX },
  118.     { STR_IMENU,    NR_IMENU },
  119.     { STR_BIG_MENU,    NR_BIG_MENU },
  120.     { STR_UNIT,    NR_UNIT },
  121.     { STR_SCR_MODE,    NR_SCR_MODE },
  122.     { STR_USE_PHY,    NR_USE_PHY },
  123.     { STR_APP_WIN,    NR_APP_WIN },
  124.     { STR_APP_NAME,    NR_APP_NAME },
  125.     { STR_OS_MENU,    NR_OS_MENU },
  126.     { STR_AUTO_AGAIN,  NR_AUTO_AGAIN },
  127.     { STR_SCREEN_SIZE, NR_SCREEN_SIZE },
  128.     { STR_USECOL4,    NR_USECOL4 },
  129.     { STR_COMMAND,    NR_COMMAND },
  130.     { STR_MIDMENU,    NR_MIDMENU },
  131.     { STR_AREXXSTART,  NR_AREXXSTART },
  132.     { STR_APPICONPOS,  NR_APPICONPOS },
  133.     { STR_APPICON,       NR_APPICON },
  134.     { STR_CLWBCOL,       NR_CLWBCOL },
  135.     { STR_QUICKQUIT,   NR_QUICKQUIT },
  136.     { STR_MONITOR_SIZE,  NR_MONITOR_SIZE },
  137.     { STR_BLINE,       NR_BLINE },
  138.     { STR_OWN_SCREEN,  NR_OWN_SCREEN },
  139.     { STR_PUBSCR_NAME,  NR_PUBSCR_NAME },
  140.     { STR_WINDOW_POS,  NR_WINDOW_POS },
  141.     { STR_WINDOW_SIZE,  NR_WINDOW_SIZE },
  142.     { STR_MY_PUBSCR_NAME,  NR_MY_PUBSCR_NAME },
  143.     { STR_WINDOW_POS_OWN_SCR,  NR_WINDOW_POS_OWN_SCR },
  144.     { STR_WINDOW_SIZE_OWN_SCR,  NR_WINDOW_SIZE_OWN_SCR },
  145.     { STR_MAXDVIBUF_SIZE, NR_MAXDVIBUF_SIZE },
  146.     { STR_ALWBMFAST, NR_ALWBMFAST },
  147.     { STR_SMARTWIN,  NR_SMARTWIN },
  148.     { STR_BACKHOOK,  NR_BACKHOOK },
  149.     { STR_APEN,    NR_APEN },
  150.     { STR_BPEN,    NR_BPEN }
  151.  };
  152.  
  153. #define NKEYS (sizeof(KeyTab)/sizeof(KeyTab[0]))
  154.  
  155.  
  156. /* strings for on/off */
  157. #define STR_ON        "on"
  158. #define STR_OFF        "off"
  159.  
  160.  
  161.