Sindbad~EG File Manager

Current Path : /usr/home/beeson/Otter-Lambda/yyy/
Upload File :
Current File : /usr/home/beeson/Otter-Lambda/yyy/registry.h

#include "export.h"
#include "natlang.h"  /* MAXLANGUAGES */
#define NKEYS 5

typedef struct
   {  int selected_language;  /* default is ENGLISH, defined in lang.h */
      int nlanguages;  /* for example 3, if ENGLISH, FRENCH, and CANADIAN are supported */
      int languages[MAXLANGUAGES];
       /* array of language numbers of supported languages.
          These numbers are in lang.h */
      int whichdisk;    /* 1 for algebra, 3 for precalculus, 7 for calculus */
                        /* bits 0,1,2 tell whether the algebra, precalc,
                           or calculus menus should show. */
      char username[64];
      char organization[128];
      int ntextbooks;    /* must be at least 1            */
      char **textbooks;  /* array of dimension ntextbooks */
          /* There must always be at least one entry.  For
             now it is just "Beeson"   */
      int selected_textbook;  /* index into the textbooks array; 0 for now */
   } installdata;

MEXPORT_INTERACT HKEY RegCreateMathpertSystemKey( installdata *p );

typedef struct
   {  unsigned long background;
      unsigned long formulas;
      unsigned long highlight;
      unsigned long selected;
      unsigned long reasons;
      int      pattern;
    }  colorstruct;


#define NGRAPHINITCOLORS 7
#define MAXGRAPHS 6
#define MAXTEXTBOOKS 6
#define MAXTEXTBOOKNAMELENGTH 32

typedef struct
   {  unsigned long graphcolor;
      unsigned long background;
      unsigned long fillcolor;
      unsigned long axescolor;
      unsigned long axeslabelcolor;
      unsigned long titlecolor;
      unsigned long bordercolor;
      double linethickness;
      int graphpaper;   /* index of the selected graph paper. 0 means none */
   }  graphcolorstruct;

typedef struct
   { int whichdisk;  /* bits 0, 1, 2 tell if they have algebra, trig, calculus */
     char username[64];
     char organization[128];
     char network[12];
     int sound;    /* enable sound? */
     int operations_menu;   /* show the operations menu? */
     int confirmclose;  /* enable confirm-close dialogs? */
     int tocflag;       /* 0 means TOC uses Mathpert problems, 1 means it uses selected textbook */
     int oldhres;        /* previous horizontal resolution */
     int oldcxChar;      /* previous system font width     */
     int magnification;  /* for printing symbolic documents */
     int buttonsize;     /* 0 for small buttons, 1 for large buttons */
     colorstruct colors;
     graphcolorstruct graphcolors[MAXGRAPHS];
     int PrintGraphsInColor;       /* 1 to print in color, 0 for black-on-white */
     int languages[MAXLANGUAGES];  /* list of supported languages, by language number.  These numbers are in natlang.h */
     int nlanguages;               /* dimension of that list      */
     int selected_language;        /* default choice              */
     int selected_textbook;      /* there must always be exactly one  */
                                 /* this is an index into the textbooks array */
     int ntextbooks;
     char textbooks[MAXTEXTBOOKS][MAXTEXTBOOKNAMELENGTH];

   }  initstruct;

MEXPORT_INTERACT char *username(void);
MEXPORT_INTERACT int network(void);
MEXPORT_INTERACT int demonumber(void);
MEXPORT_INTERACT int readinit(char *, int whichdisk);
MEXPORT_INTERACT void set_confirmclose(int);
MEXPORT_INTERACT int get_confirmclose(void);
MEXPORT_INTERACT void get_init_colors(unsigned long ans[5], int *pattern); /* background,formula, highlight, selected, reason */
MEXPORT_INTERACT void get_init_graphcolors(int graphnumber, unsigned long ans[NGRAPHINITCOLORS],double *linethickness, int *graphpaper);
MEXPORT_INTERACT void save_colors(unsigned long,unsigned long,unsigned long,unsigned long,unsigned long);
MEXPORT_INTERACT void save_graphcolors(int graphnumber,
                      unsigned long graphcolor,
                      unsigned long background,
                      unsigned long fillcolor,
                      unsigned long axescolor,
                      unsigned long axeslabelcolor,
                      unsigned long titlecolor,
                      unsigned long bordercolor,
                      double linethickness,
                      int graphpaper
                     );
MEXPORT_INTERACT int show_operations_menu(void);
MEXPORT_INTERACT void set_operations_menu(int);
MEXPORT_INTERACT int get_tocflag(void);
MEXPORT_INTERACT void set_tocflag(int);
MEXPORT_INTERACT int get_magnification(void);
MEXPORT_INTERACT void set_magnification(int);
MEXPORT_INTERACT void save_magnification(int);
MEXPORT_INTERACT int get_buttonsize(void);
MEXPORT_INTERACT void set_buttonsize(int);
MEXPORT_INTERACT void save_buttonsize(int);
MEXPORT_INTERACT int GetRes(int *);
MEXPORT_INTERACT int maxmag(void);
MEXPORT_INTERACT int minmag(void);
MEXPORT_INTERACT int magstep(int,int);
MEXPORT_INTERACT int default_magnification(int hres,int fontsize);
MEXPORT_INTERACT void GetFactoryGraphColors(int graphnumber, graphcolorstruct *gc, int flag);
MEXPORT_INTERACT int get_whichdisk(void);
MEXPORT_INTERACT void SetMenus();
MEXPORT_INTERACT void DeleteTextbook(char *);
MEXPORT_SAVEDOC int GetVersionNumber(void);
MEXPORT_INTERACT int get_selected_language(void);
MEXPORT_INTERACT void set_selected_language(int);
MEXPORT_INTERACT int get_nlanguages(void);
MEXPORT_INTERACT int supported_language(int);
MEXPORT_INTERACT void RegUninstall(void);
MEXPORT_INTERACT int get_nlanguages(void);
MEXPORT_INTERACT int supported_language(int);
MEXPORT_INTERACT void set_color_printing(int x);
MEXPORT_INTERACT int get_color_printing(void);
MEXPORT_INTERACT void GetUniversalName(char *buffer);
MEXPORT_INTERACT int  inqsound(void);
MEXPORT_INTERACT void  sound(int);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists