2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
23 /* $XConsortium: SharedProcs.h /main/4 1995/10/26 15:28:07 rswiston $ */
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. *
30 /************************************<+>*************************************
31 ****************************************************************************
33 ** File: SharedProcs.h
37 ** Description: Public include file for some shared functions.
40 ** (c) Copyright 1987, 1988, 1989 by Hewlett-Packard Company
44 ****************************************************************************
45 ************************************<+>*************************************/
47 #ifndef _SharedProcs_h
48 #define _SharedProcs_h
51 /******** Public Function Declarations ********/
53 extern String _DtStripSpaces(
55 extern void _DtMessage(
60 void (*helpCallback)()) ;
61 extern Widget _DtMessageDialog(
67 void (*cancel_callback)(),
68 void (*ok_callback)(),
69 void (*close_callback)(),
70 void (*help_callback)(),
71 Boolean deleteOnClose,
73 extern void _DtMessageOK(
75 XtPointer client_data,
76 XtPointer call_data) ;
77 extern void _DtMessageClose(
79 XtPointer client_data,
82 /******** End Public Function Declarations ********/
84 /* _DtMessage Dialog build defines */
85 #define ERROR_DIALOG 1
86 #define WARNING_DIALOG 2
87 #define QUESTION_DIALOG 3
89 /* Flag which can be used to prevent error dialogs from being posted */
90 extern Boolean messageDisplayEnabled;
92 /* Flag controlling whether dialogs are auto-positioned */
93 extern Boolean disableDialogAutoPlacement;
95 /* Generic overlay for all dialog 'Rec' structures */
101 #endif /* _SharedProcs_h */
102 /* DON'T ADD ANYTHING AFTER THIS #endif */