8cb1521cb97fdd18ec1eb91b9e734feb27e769c3
[oweals/cde.git] / cde / lib / DtSvc / DtUtil2 / SharedProcs.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: SharedProcs.h /main/4 1995/10/26 15:28:07 rswiston $ */
24 /*
25  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
26  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
27  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
28  * (c) Copyright 1993, 1994 Novell, Inc.                                *
29  */
30 /************************************<+>*************************************
31  ****************************************************************************
32  **
33  **   File:        SharedProcs.h
34  **
35  **   Project:     SUI
36  **
37  **   Description: Public include file for some shared functions.
38  **
39  **
40  **   (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
41  **
42  **
43  **
44  ****************************************************************************
45  ************************************<+>*************************************/
46
47 #ifndef _SharedProcs_h
48 #define _SharedProcs_h
49
50
51 /********    Public Function Declarations    ********/
52
53 extern String _DtStripSpaces( 
54                         String string) ;
55 extern void _DtMessage(
56                         Widget w,
57                         char *title,
58                         char *message_text,
59                         XtPointer helpIdStr,
60                         void (*helpCallback)()) ;
61 extern Widget _DtMessageDialog(
62                         Widget w,
63                         char *title,
64                         char *message_text,
65                         XtPointer helpIdStr,
66                         Boolean cancel_btn,
67                         void (*cancel_callback)(),
68                         void (*ok_callback)(),
69                         void (*close_callback)(),
70                         void (*help_callback)(),
71                         Boolean deleteOnClose,
72                         int dialogType) ;
73 extern void _DtMessageOK(
74                         Widget w,
75                         XtPointer client_data,
76                         XtPointer call_data) ;
77 extern void _DtMessageClose(
78                         Widget w,
79                         XtPointer client_data,
80                         XEvent *event) ;
81
82 /********    End Public Function Declarations    ********/
83
84 /* _DtMessage Dialog build defines */
85 #define ERROR_DIALOG  1
86 #define WARNING_DIALOG  2
87 #define QUESTION_DIALOG 3
88
89 /* Flag which can be used to prevent error dialogs from being posted */
90 extern Boolean messageDisplayEnabled;
91
92 /* Flag controlling whether dialogs are auto-positioned */
93 extern Boolean disableDialogAutoPlacement;
94
95 /* Generic overlay for all dialog 'Rec' structures */
96 typedef struct
97 {
98    Widget shell;
99 } GenericRecord;
100
101 #endif /* _SharedProcs_h */
102 /* DON'T ADD ANYTHING AFTER THIS #endif */