summaryrefslogtreecommitdiff
path: root/xc/programs/xmh/externs.h
blob: ce7ba4dc746f104b2fde5b370ab890a3efbb2a4b (plain)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
/*
 * $XConsortium: externs.h /main/36 1996/01/14 16:51:37 kaleb $
 *
 *
 *		       COPYRIGHT 1987, 1989
 *		   DIGITAL EQUIPMENT CORPORATION
 *		       MAYNARD, MASSACHUSETTS
 *			ALL RIGHTS RESERVED.
 *
 * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND
 * SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
 * DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR
 * ANY PURPOSE.  IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
 *
 * IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT
 * RIGHTS, APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN
 * ADDITION TO THAT SET FORTH ABOVE.
 *
 *
 * Permission to use, copy, modify, and distribute this software and its
 * documentation for any purpose and without fee is hereby granted, provided
 * that the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the name of Digital Equipment Corporation not be
 * used in advertising or publicity pertaining to distribution of the software
 * without specific, written prior permission.
 */

#include <errno.h>
#ifndef X_NOT_STDC_ENV
#include <stdlib.h>
#else
extern int errno;
extern char *getenv();
extern void exit();
extern void free();
#endif

/* Action routines are declared in actions.h */
/* Functions which begin with `Do' are the corresponding callbacks. */

	/* from command.c */

extern char *	DoCommandToFile		(/* Widget, XtPointer, XtPointer */);
extern char *	DoCommandToString	(/* Widget, XtPointer, XtPointer */);

	/* from compfuncs. */

extern void 	DoResetCompose		(/* Widget, XtPointer, XtPointer */);

	/* from folder.c */

extern void	DoClose			(/* Widget, XtPointer, XtPointer */);
extern void	DoComposeMessage	(/* Widget, XtPointer, XtPointer */);
extern void	DoOpenFolder		(/* Widget, XtPointer, XtPointer */);
extern void 	DoOpenFolderInNewWindow	(/* Widget, XtPointer, XtPointer */);
extern void	DoCreateFolder		(/* Widget, XtPointer, XtPointer */);
extern void 	DoDeleteFolder		(/* Widget, XtPointer, XtPointer */);
extern void	DoSaveYourself		(/* Widget, XtPointer, XtPointer */);
extern void	Push			(/* Stack, char* */);
extern char *	Pop			(/* Stack */);

	/* from menu.c */

extern void	AttachMenuToButton	(/* Button, Widget, char * */);
extern void 	AddMenuEntry		(/* Widget, char *, ... */);
extern void	DoRememberMenuSelection (/* Widget, XtPointer, XtPointer */);
extern void	SendMenuEntryEnableMsg	(/* Button, char *, int */);
extern void	ToggleMenuItem		(/* Widget, Boolean */);

	/* from msg.c */

extern Widget   CreateFileSource	(/* Widget, String, Boolean */);
extern char*	MsgName			(/* Msg */);

	/* from popup.c */

extern void	DestroyPopup	(/* Widget, XtPointer, XtPointer */);
extern void	WMDeletePopup	(/* Widget, XEvent* */);
extern void	PopupPrompt	(/* Widget, String, XtCallbackProc */);
extern void	PopupConfirm	(/* Widget, String, XtCallbackList, ... */);
extern void	PopupNotice	(/* char *, XtCallbackProc, XtPointer */);
extern void 	PopupError	(/* Widget, String */);
extern void	PopupWarningHandler();	/* for Xt to call */

	/* from screen.c */

extern void	EnableProperButtons	(/* Scrn */);
extern Scrn	CreateNewScrn		(/* ScrnKind */);
extern Scrn	NewViewScrn		(/* void */);
extern Scrn	NewCompScrn		(/* void */);
extern void	ScreenSetAssocMsg	(/* Scrn, Msg */);
extern void	DestroyScrn		(/* Scrn */);
extern void	MapScrn			(/* Scrn */);
extern Scrn	ScrnFromWidget		(/* Widget */);

	/* from toc.c */

extern Boolean	TocHasChanges		(/* Toc */);

	/* from tocfuncs.c */

extern Boolean	UserWantsAction		(/* Widget, Scrn */);
extern void 	DoIncorporateNewMail	(/* Widget, XtPointer, XtPointer */);
extern void 	DoCommit		(/* Widget, XtPointer, XtPointer */);
extern void	DoPack			(/* Widget, XtPointer, XtPointer */);
extern void	DoSort			(/* Widget, XtPointer, XtPointer */);
extern void 	DoForceRescan		(/* Widget, XtPointer, XtPointer */);
extern void 	DoReverseReadOrder	(/* Widget, XtPointer, XtPointer */);
extern void	DoNextView		(/* Widget, XtPointer, XtPointer */);
extern void	DoPrevView		(/* Widget, XtPointer, XtPointer */);
extern void	DoDelete		(/* Widget, XtPointer, XtPointer */);
extern void	DoMove			(/* Widget, XtPointer, XtPointer */);
extern void	DoCopy			(/* Widget, XtPointer, XtPointer */);
extern void	DoUnmark		(/* Widget, XtPointer, XtPointer */);
extern void	DoViewNew		(/* Widget, XtPointer, XtPointer */);
extern void	DoReply			(/* Widget, XtPointer, XtPointer */);
extern void	DoForward		(/* Widget, XtPointer, XtPointer */);
extern void	DoTocUseAsComp		(/* Widget, XtPointer, XtPointer */);
extern void	DoPrint			(/* Widget, XtPointer, XtPointer */);
extern void	DoPickMessages		(/* Widget, XtPointer, XtPointer */);
extern void	DoSelectSequence	(/* Widget, XtPointer, XtPointer */);
extern void	DoOpenSeq		(/* Widget, XtPointer, XtPointer */);
extern void 	DoAddToSeq		(/* Widget, XtPointer, XtPointer */);
extern void 	DoRemoveFromSeq		(/* Widget, XtPointer, XtPointer */);
extern void	DoDeleteSeq		(/* Widget, XtPointer, XtPointer */);

	/* from util.c */

extern void	Punt			(/* char * */);
extern int	myopen			(/* char *, int, int */);
extern FILE *	myfopen			(/* char *, char * */);
extern int	myclose			(/* int */);
extern int	myfclose		(/* FILE * */);
extern char *	MakeNewTempFileName	(/* void */);
extern char **	MakeArgv		(/* int */);
extern char **	ResizeArgv		(/* char **, int */);
extern FILEPTR	FOpenAndCheck		(/* char *, char * */);
extern char *	ReadLine		(/* FILE * */);
extern char *	ReadLineWithCR		(/* FILE * */);
extern void	DeleteFileAndCheck	(/* char * */);
extern void	CopyFileAndCheck	(/* char *, char * */);
extern void	RenameAndCheck		(/* char *, char * */);
extern char *	CreateGeometry		(/* int, int, int, int, int */);
extern int	FileExists		(/* char * */);
extern Boolean	IsSubfolder		(/* char * */);
extern void 	SetCurrentFolderName	(/* Scrn, char * */);
extern void	ChangeLabel		(/* Widget, char * */);
extern Widget	CreateTextSW	(/* Scrn, char *, ArgList, Cardinal */);
extern Widget	CreateTitleBar		(/* Scrn, char * */);
extern void	Feep			(/* type, volume, window */);
extern MsgList	CurMsgListOrCurMsg	(/* Toc */);
extern int	GetWidth		(/* Widget */);
extern int	GetHeight		(/* Widget */);
extern Toc	SelectedToc		(/* Scrn */);
extern Toc	CurrentToc		(/* Scrn */);
extern int	strncmpIgnoringCase();
extern void 	StoreWindowName		(/* Scrn, char * */);
extern void	InitBusyCursor		(/* Scrn */);
extern void	ShowBusyCursor		(/* void */);
extern void 	UnshowBusyCursor	(/* void */);
extern void 	SetCursorColor		(/* Widget, Cursor, unsigned long */);

	/* from viewfuncs.c */

extern void	DoCloseView		(/* Widget, XtPointer, XtPointer */);
extern void	DoViewReply		(/* Widget, XtPointer, XtPointer */);
extern void 	DoViewForward		(/* Widget, XtPointer, XtPointer */);
extern void	DoViewUseAsComposition	(/* Widget, XtPointer, XtPointer */);
extern void	DoEditView		(/* Widget, XtPointer, XtPointer */);
extern void	DoSaveView		(/* Widget, XtPointer, XtPointer */);
extern void	DoPrintView		(/* Widget, XtPointer, XtPointer */);