Sindbad~EG File Manager
#include "export.h"
#include "natlang.h" /* MAXLANGUAGES */
#define NKEYS 5
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;
} 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 *);
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(char *);
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 set_color_printing(int x);
MEXPORT_INTERACT int get_color_printing(void);
MEXPORT_INTERACT int inqsound(void);
MEXPORT_INTERACT void sound(int);
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists