Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

610987 views
1
/****************************************************************************
2
**
3
*W xcmds.h XGAP Source Frank Celler
4
**
5
**
6
*Y Copyright 1995-1998, Lehrstuhl D fuer Mathematik, RWTH Aachen, Germany
7
*Y Copyright 1997, Frank Celler, Huerth, Germany
8
*/
9
#ifndef _xcmds_h
10
#define _xcmds_h
11
12
#include "utils.h"
13
14
15
/****************************************************************************
16
**
17
18
*T TypeGapWindow . . . . . . . . . . . . . . . . description of a gap window
19
*/
20
typedef struct _gap_window
21
{
22
Widget top;
23
Widget box;
24
Widget viewport;
25
Widget draw;
26
Widget text;
27
Boolean used;
28
TypeList menus;
29
Int height;
30
Int width;
31
Int line_width;
32
Int color;
33
Boolean fast_update;
34
}
35
TypeGapWindow;
36
37
38
/****************************************************************************
39
**
40
*T TypeTextSelector . . . . . . . . . . . . description of a text selector
41
*/
42
typedef struct _text_selector
43
{
44
Widget top;
45
Widget list;
46
String * text;
47
TypeList buttons;
48
}
49
TypeTextSelector;
50
51
52
/****************************************************************************
53
**
54
*T TypeArg . . . . . . . . . . . . . . . . . . . . . . . . . . . . arguments
55
*/
56
#define MAX_ARG 10
57
58
typedef struct _arg
59
{
60
TypeGapWindow * win;
61
TypeTextSelector * sel;
62
XFontStruct * font;
63
Int iargs[MAX_ARG];
64
String sargs[MAX_ARG];
65
String opts;
66
}
67
TypeArg;
68
69
70
/****************************************************************************
71
**
72
*T TypeWindowCommand . . . . . . . . . . . . . . . . description of commands
73
*/
74
typedef struct _window_command
75
{
76
String name;
77
String args;
78
Boolean (*func)( TypeArg* );
79
}
80
TypeWindowCommand;
81
82
83
/****************************************************************************
84
**
85
*T TypeMenu . . . . . . . . . . . . . . . . . . . . . . description of menu
86
*/
87
typedef struct _menu
88
{
89
Widget button;
90
Widget shell;
91
TypeList entries;
92
String name;
93
String string;
94
}
95
TypeMenu;
96
97
98
/****************************************************************************
99
**
100
*T TypeMenuData . . . . . . . . . . . . . . . . . . . . . . . . menu entry
101
*/
102
typedef struct _menu_data
103
{
104
Widget shell;
105
Int window;
106
Int popup;
107
Int pane;
108
}
109
TypeMenuData;
110
111
112
/****************************************************************************
113
**
114
*T TypePaneData . . . . . . . . . . . . . . . . . . . . . popup menu entry
115
*/
116
typedef struct _pane_data
117
{
118
Widget shell;
119
Int popup;
120
Int pane;
121
}
122
TypePaneData;
123
124
125
/****************************************************************************
126
**
127
128
*P Prototypes . . . . . . . . . . . . . . . . . . . . . function prototypes
129
*/
130
extern void InitXCMDS( void );
131
extern void ExitXMCDS( void );
132
extern void UpdateXCMDS( Int );
133
extern Boolean GapWindowCmd( String, Int );
134
135
#endif
136
137
138
/****************************************************************************
139
**
140
141
*E xcmds.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . ends here
142
*/
143
144