bef98ad97769ca2bb34da853b9c7b4bc6e136e52
[oweals/cde.git] / cde / lib / DtSvc / DtUtil2 / SharedProcs.h
1 /* $XConsortium: SharedProcs.h /main/4 1995/10/26 15:28:07 rswiston $ */
2 /*
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.                                *
7  */
8 /************************************<+>*************************************
9  ****************************************************************************
10  **
11  **   File:        SharedProcs.h
12  **
13  **   Project:     SUI
14  **
15  **   Description: Public include file for some shared functions.
16  **
17  **
18  **   (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
19  **
20  **
21  **
22  ****************************************************************************
23  ************************************<+>*************************************/
24
25 #ifndef _SharedProcs_h
26 #define _SharedProcs_h
27
28
29 /********    Public Function Declarations    ********/
30
31 extern String _DtStripSpaces( 
32                         String string) ;
33 extern void _DtMessage(
34                         Widget w,
35                         char *title,
36                         char *message_text,
37                         XtPointer helpIdStr,
38                         void (*helpCallback)()) ;
39 extern Widget _DtMessageDialog(
40                         Widget w,
41                         char *title,
42                         char *message_text,
43                         XtPointer helpIdStr,
44                         Boolean cancel_btn,
45                         void (*cancel_callback)(),
46                         void (*ok_callback)(),
47                         void (*close_callback)(),
48                         void (*help_callback)(),
49                         Boolean deleteOnClose,
50                         int dialogType) ;
51 extern void _DtMessageOK(
52                         Widget w,
53                         XtPointer client_data,
54                         XtPointer call_data) ;
55 extern void _DtMessageClose(
56                         Widget w,
57                         XtPointer client_data,
58                         XEvent *event) ;
59
60 /********    End Public Function Declarations    ********/
61
62 /* _DtMessage Dialog build defines */
63 #define ERROR_DIALOG  1
64 #define WARNING_DIALOG  2
65 #define QUESTION_DIALOG 3
66
67 /* Flag which can be used to prevent error dialogs from being posted */
68 extern Boolean messageDisplayEnabled;
69
70 /* Flag controlling whether dialogs are auto-positioned */
71 extern Boolean disableDialogAutoPlacement;
72
73 /* Generic overlay for all dialog 'Rec' structures */
74 typedef struct
75 {
76    Widget shell;
77 } GenericRecord;
78
79 #endif /* _SharedProcs_h */
80 /* DON'T ADD ANYTHING AFTER THIS #endif */