home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
drdobbs
/
1991
/
08
/
dflat5
/
config.h
< prev
next >
Wrap
Text File
|
1991-06-22
|
1KB
|
40 lines
/* ---------------- config.h -------------- */
#ifndef CONFIG_H
#define CONFIG_H
enum colortypes {
STD_COLOR,
SELECT_COLOR,
FRAME_COLOR,
HILITE_COLOR
};
enum grounds { FG, BG };
/* ----------- configuration parameters ----------- */
typedef struct config {
char version[sizeof DFLAT_APPLICATION + sizeof VERSION];
char mono; /* 0=color, 1=mono, 2=reverse mono */
int InsertMode; /* Editor insert mode */
int Tabs; /* Editor tab stops */
int WordWrap; /* True to word wrap editor */
int Border; /* True for application window border */
int Title; /* True for application window title */
int StatusBar; /* True for appl'n window status bar */
int Texture; /* True for textured appl window */
int ScreenLines; /* Number of screen lines (25/43/50) */
char clr[CLASSCOUNT] [4] [2]; /* Colors */
} CONFIG;
extern CONFIG cfg;
extern unsigned char color[CLASSCOUNT] [4] [2];
extern unsigned char bw[CLASSCOUNT] [4] [2];
extern unsigned char reverse[CLASSCOUNT] [4] [2];
int LoadConfig(void);
void SaveConfig(void);
#endif