Added D-Flat/32 library
[reactos.git] / rosapps / dflat32 / config.h
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 BOOL InsertMode; /* Editor insert mode */
19 int Tabs; /* Editor tab stops */
20 BOOL WordWrap; /* True to word wrap editor */
21 #ifdef INCLUDE_WINDOWOPTIONS
22 BOOL Border; /* True for application window border */
23 BOOL Title; /* True for application window title */
24 BOOL StatusBar; /* True for appl'n window status bar */
25 BOOL Texture; /* True for textured appl window */
26 #endif
27 // int ScreenLines; /* Number of screen lines (25/43/50) */
28 char PrinterPort[5];
29 int LinesPage; /* Lines per printer page */
30 int CharsLine; /* Characters per printer line */
31 int LeftMargin; /* Printer margins */
32 int RightMargin;
33 int TopMargin;
34 int BottomMargin;
35 unsigned char clr[CLASSCOUNT] [4] [2]; /* Colors */
36 } CONFIG;
37
38 extern CONFIG cfg;
39 extern unsigned char color[CLASSCOUNT] [4] [2];
40 extern unsigned char bw[CLASSCOUNT] [4] [2];
41 extern unsigned char reverse[CLASSCOUNT] [4] [2];
42
43 BOOL LoadConfig(void);
44 void SaveConfig(void);
45 FILE *OpenConfig(char *);
46
47 #endif
48