home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / drdobbs / 1991 / 06 / dflat3 / config.h < prev    next >
Text File  |  1991-05-19  |  2KB  |  72 lines

  1. /* ---------------- config.h -------------- */
  2.  
  3. #ifndef CONFIG_H
  4. #define CONFIG_H
  5.  
  6. #define DFLAT_APPLICATION "MEMOPAD"
  7.  
  8. #ifdef BUILD_FULL_DFLAT
  9. #define INCLUDE_SYSTEM_MENUS
  10. #define INCLUDE_CLOCK
  11. #define INCLUDE_MULTIDOCS
  12. #define INCLUDE_SCROLLBARS
  13. #define INCLUDE_SHADOWS
  14. #define INCLUDE_DIALOG_BOXES
  15. #define INCLUDE_CLIPBOARD
  16. #define INCLUDE_MULTILINE
  17. #define INCLUDE_LOGGING
  18. #endif
  19.  
  20. struct colors {
  21.     /* ------------ colors ------------ */
  22.     char ApplicationFG,  ApplicationBG;
  23.     char NormalFG,       NormalBG;
  24.     char ButtonFG,       ButtonBG;
  25.     char ButtonSelFG,    ButtonSelBG;
  26.     char DialogFG,       DialogBG;
  27.     char ErrorBoxFG,     ErrorBoxBG;
  28.     char MessageBoxFG,   MessageBoxBG;
  29.     char HelpBoxFG,      HelpBoxBG;
  30.     char InFocusTitleFG, InFocusTitleBG;
  31.     char TitleFG,        TitleBG;
  32.     char DummyFG,        DummyBG;
  33.     char TextBoxFG,      TextBoxBG;
  34.     char TextBoxSelFG,   TextBoxSelBG;
  35.     char TextBoxFrameFG, TextBoxFrameBG;
  36.     char ListBoxFG,      ListBoxBG;
  37.     char ListBoxSelFG,   ListBoxSelBG;
  38.     char ListBoxFrameFG, ListBoxFrameBG;
  39.     char EditBoxFG,      EditBoxBG;
  40.     char EditBoxSelFG,   EditBoxSelBG;
  41.     char EditBoxFrameFG, EditBoxFrameBG;
  42.     char MenuBarFG,      MenuBarBG;
  43.     char MenuBarSelFG,   MenuBarSelBG;
  44.     char PopDownFG,      PopDownBG;
  45.     char PopDownSelFG,   PopDownSelBG;
  46.     char InactiveSelFG;
  47.     char ShortCutFG;
  48. };
  49.  
  50. /* ----------- configuration parameters ----------- */
  51. typedef struct config {
  52.     char version[sizeof DFLAT_APPLICATION + sizeof VERSION];
  53.     char mono;         /* 0=color, 1=mono, 2=reverse mono    */
  54.     int InsertMode;    /* Editor insert mode                 */
  55.     int Tabs;          /* Editor tab stops                   */
  56.     int WordWrap;      /* True to word wrap editor           */
  57.     int Border;        /* True for application window border */
  58.     int Title;         /* True for application window title  */
  59.     int Texture;       /* True for textured appl window      */
  60.     int ScreenLines;   /* Number of screen lines (25/43/50)  */
  61.     struct colors clr; /* Colors                             */
  62. } CONFIG;
  63.  
  64. extern CONFIG cfg;
  65. extern struct colors color, bw, reverse;
  66.  
  67. int LoadConfig(void);
  68. void SaveConfig(void);
  69.  
  70. #endif
  71.  
  72.