-
Notifications
You must be signed in to change notification settings - Fork 2
/
MAGETABL.h
95 lines (83 loc) · 3.23 KB
/
MAGETABL.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*3456789_123456789_123456789_123456789_123456789_123456789_123456789_12345678*/
#ifdef MAGETABL
#undef MAGETABL
#define MAGETABL
#else
#define MAGETABL extern
#endif
MAGETABL int MAXROW;
MAGETABL int MAXCOL;
MAGETABL int tableheaderMAXCOL;
MAGETABL int Ltableblackbkg;
/* MAGE.H for UNIX_MOTIF: */
/* typedef Widget WindowPtr; */
/* typedef Widget ControlHandle; */
/* MAGE.H for PCWINDOWS: */
/* typedef HWND WindowPtr; */
/* typedef HWND ControlHandle; */
MAGETABL WindowPtr tableWindow;
MAGETABL ControlHandle vtableScroll,htableScroll;
#ifdef UNIX_X11
MAGETABL Widget toptable,tabledrawArea;
MAGETABL Window tabledrawWindow;
MAGETABL GC tablegc;
MAGETABL Display* tabledpy;
#endif
MAGETABL int Ltablepresent,Ltableready,Ltablesearchcells,Ltablesearchgraphics;
MAGETABL int tablewrapcol; /*number of columns desired across the table*/
MAGETABL float tablecolscale; /*factor to scale col size*/
MAGETABL float tablemarkradius;
MAGETABL float tablefanradius;
MAGETABL float tablefancore;
MAGETABL int Ltablepicked;
MAGETABL int Ltablegraphpicked;
MAGETABL int Ltablegroupgraphed;
MAGETABL int Ltablepickactive;
MAGETABL int Ltablecellispicked,Ltableextrapass;
MAGETABL int Ltablecellgetwidth;
MAGETABL int tablepickx;
MAGETABL int tablepicky;
MAGETABL int tablewide, tablewindowwide, tablezerowide, tablecolwidth;
MAGETABL int tablehigh, tablewindowhigh, tablezerohigh, tablerowheight;
MAGETABL int tablelasty, tablerowstack, tablewordwidth;
MAGETABL int Ltablecellnewlypicked;
MAGETABL int Ltablewrapdecades; /*010916*/
/*prototypes*/
void drawtable(int); /*MAGETABL.c*/
void setuptable(void); /*MAGETABL.c*/
void loadtable(int); /*MAGETABL.c*/
void createtable(void); /*MAGETABL.c*/
void constructtablecells(void); /*MAGETABL.c*/
void tablecelldelete(void); /*MAGETABL.c*/
void restoredeletedpoint(void); /*MAGETABL.c*/
void tablecellinsert(int); /*MAGETABL.c*/
void tablerebuild(void); /*MAGETABL.c*/
void tablecolor(void); /*MAGETABL.c*/
void alloctablearray(void); /*MAGETABL.c*/
void cleanuptable(void); /*MAGETABL.c*/
void redrawtable(void); /*____DRAW.c*/
void dodrawtable(int); /*____DRAW.c*/
void stringtotable(char[256],int,int,int); /*____DRAW.c*/
int wordstotable(char[256],int,int,int,int,int); /*____DRAW.c*/
void rectangletoscreen(int,int,int,int, int); /*____DRAW.c*/
void SetUptableWindow(void); /*____INIT.c*/
void settableScrollBars(void); /*____WIND.c*/
void createtablescrollbars(void); /*MACINIT.c, MUXMTABL.c*/
int searchtablecells(int); /*MAGEDLOG.c*/ /*000324*/
void addtablemarker(pointstruct*);
void killtablemarkers(void);
void removetablemarkpoints(void);
int markfromtablecellsID(int);
#ifdef MACINTOSH
void DotableContentClick(Point); /*____WIND.c*/
pascal void tableScroller(ControlHandle,short); /*____WIND.c*/
#endif /*MACINTOSH*/
#ifdef UNIX_MOTIF
XtCallbackProc tablepick_CB(Widget, caddr_t, XmDrawingAreaCallbackStruct *);
XtCallbackProc tabledrawArea_CB(Widget, XtPointer, XtPointer);
XtCallbackProc tableresize_CB(Widget, XtPointer, XtPointer);
XtCallbackProc htablescroll_CB(Widget, XtPointer, XtPointer);
XtCallbackProc vtablescroll_CB(Widget, XtPointer, XtPointer);
void resettablescrollbar(ControlHandle *,int);
void maketablescrollbar(Widget *,int,int,int,int,int,int,char);
#endif /*UNIX_MOTIF*/