home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / cprog / dflt14.zip / CONFIG.H < prev    next >
Text File  |  1992-06-26  |  2KB  |  51 lines

  1. /* ---------------- config.h -------------- */
  2.  
  3. #ifndef CONFIG_H
  4. #define CONFIG_H
  5.  
  6. enum colortypes {
  7.     STD_COLOR,
  8.     SELECT_COLOR,
  9.     FRAME_COLOR,
  10.     HILITE_COLOR
  11. };
  12.  
  13. enum grounds { FG, BG };
  14.  
  15. /* ----------- configuration parameters ----------- */
  16. typedef struct config {
  17.     char version[sizeof VERSION];
  18.     char mono;         /* 0=color, 1=mono, 2=reverse mono    */
  19.     BOOL snowy;        /* TRUE = snowy CGA display           */
  20.     BOOL InsertMode;   /* Editor insert mode                 */
  21.     int Tabs;          /* Editor tab stops                   */
  22.     BOOL WordWrap;     /* True to word wrap editor           */
  23. #ifdef INCLUDE_WINDOWOPTIONS
  24.     BOOL Border;       /* True for application window border */
  25.     BOOL Title;        /* True for application window title  */
  26.     BOOL StatusBar;    /* True for appl'n window status bar  */
  27.     BOOL Texture;      /* True for textured appl window      */
  28. #endif
  29.     int ScreenLines;   /* Number of screen lines (25/43/50)  */
  30.     char PrinterPort[5];
  31.     int LinesPage;     /* Lines per printer page             */
  32.     int CharsLine;       /* Characters per printer line        */
  33.     int LeftMargin;       /* Printer margins                    */
  34.     int RightMargin;
  35.     int TopMargin;
  36.     int BottomMargin;
  37.     unsigned char clr[CLASSCOUNT] [4] [2]; /* Colors         */
  38. } CONFIG;
  39.  
  40. extern CONFIG cfg;
  41. extern unsigned char color[CLASSCOUNT] [4] [2];
  42. extern unsigned char bw[CLASSCOUNT] [4] [2];
  43. extern unsigned char reverse[CLASSCOUNT] [4] [2];
  44.  
  45. BOOL LoadConfig(void);
  46. void SaveConfig(void);
  47. FILE *OpenConfig(char *);
  48.  
  49. #endif
  50.  
  51.