1 /* $XConsortium: SharedProcs.h /main/4 1995/10/26 15:28:07 rswiston $ */
3 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
4 * (c) Copyright 1993, 1994 International Business Machines Corp. *
5 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
6 * (c) Copyright 1993, 1994 Novell, Inc. *
8 /************************************<+>*************************************
9 ****************************************************************************
11 ** File: SharedProcs.h
15 ** Description: Public include file for some shared functions.
18 ** (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
22 ****************************************************************************
23 ************************************<+>*************************************/
25 #ifndef _SharedProcs_h
26 #define _SharedProcs_h
29 /******** Public Function Declarations ********/
31 extern String _DtStripSpaces(
33 extern void _DtMessage(
38 void (*helpCallback)()) ;
39 extern Widget _DtMessageDialog(
45 void (*cancel_callback)(),
46 void (*ok_callback)(),
47 void (*close_callback)(),
48 void (*help_callback)(),
49 Boolean deleteOnClose,
51 extern void _DtMessageOK(
53 XtPointer client_data,
54 XtPointer call_data) ;
55 extern void _DtMessageClose(
57 XtPointer client_data,
60 /******** End Public Function Declarations ********/
62 /* _DtMessage Dialog build defines */
63 #define ERROR_DIALOG 1
64 #define WARNING_DIALOG 2
65 #define QUESTION_DIALOG 3
67 /* Flag which can be used to prevent error dialogs from being posted */
68 extern Boolean messageDisplayEnabled;
70 /* Flag controlling whether dialogs are auto-positioned */
71 extern Boolean disableDialogAutoPlacement;
73 /* Generic overlay for all dialog 'Rec' structures */
79 #endif /* _SharedProcs_h */
80 /* DON'T ADD ANYTHING AFTER THIS #endif */