Sindbad~EG File Manager

Current Path : /usr/home/beeson/MathXpert/
Upload File :
Current File : /usr/home/beeson/MathXpert/preferences.h

#include "natlang.h"  /* MAXLANGUAGES */

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;


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


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

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

typedef struct
   { 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 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 webgrades;             /* 1 for WebGrades on,  0 for it off  */
	  char email[120];
   }  initstruct;

 char *username(void);
 int network(void);
 int demonumber(void);
 int readinit( int webgrades);
 void set_confirmclose(int);
 int get_confirmclose(void);
 void get_init_colors(unsigned  ans[5], int *pattern); /* background,formula, highlight, selected, reason */
 void get_init_graphcolors(int graphnumber, unsigned  ans[NGRAPHINITCOLORS],double *linethickness, int *graphpaper);
 void save_colors(unsigned,unsigned,unsigned,unsigned,unsigned);
 void save_graphcolors(int graphnumber,
                      unsigned  graphcolor,
                      unsigned  background,
                      unsigned  fillcolor,
                      unsigned  axescolor,
                      unsigned  axeslabelcolor,
                      unsigned  titlecolor,
                      unsigned  bordercolor,
                      double linethickness,
                      int graphpaper
                     );
 int show_operations_menu(void);
 void set_operations_menu(int);
 int get_magnification(void);
 void set_magnification(int);
 void save_magnification(int);
 int get_buttonsize(void);
 void set_buttonsize(int);
 int GetRes(int *);
 int maxmag(void);
 int minmag(void);
 int magstep(int,int);
 int default_magnification(int hres,int fontsize);
 void GetFactoryGraphColors(int graphnumber, graphcolorstruct *gc, int flag);
 void SetMenus(void);
 void DeleteTextbook(char *);
 int GetVersionNumber(void);
 void RegUninstall(void);
 int get_nlanguages(void);
 int supported_language(int);
 void set_color_printing(int x);
 int get_color_printing(void);
 void GetUniversalName(char *buffer);
 int  inqsound(void);
 void  sound(int);
 int get_webgrades(void);
 void set_webgrades(int);
 void set_email(char *email);
 void get_email(char *buffer);
void save_preferences(int i, initstruct *o);
void get_saved_preferences(int i, initstruct *o);
void save_all_preferences(initstruct *o);
void get_all_saved_preferences(initstruct *o);
void init_preferences(initstruct *o);
int default_buttonsize(int hres, int fontwidth);
/* fill o with currently stored values, or with defaults if none are stored,
and in that case, store the defaults. */


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