dtcalc: change from obsoleted MAXFLOAT to FLT_MAX from std C
[oweals/cde.git] / cde / lib / DtWidget / DialogBox.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: DialogBox.h /main/4 1995/10/26 09:30:36 rswiston $ */
24 /**---------------------------------------------------------------------
25 ***     
26 ***     file:           DialogBox.h
27 ***
28 ***     project:        MotifPlus Widgets
29 ***
30 ***     description:    Public include file for DtDialogBox class.
31 ***     
32 ***     
33 ***                     (c) Copyright 1990 by Hewlett-Packard Company.
34 ***
35 ***
36 ***-------------------------------------------------------------------*/
37
38
39 #ifndef _DtDialogBox_h
40 #define _DtDialogBox_h
41
42 #include <Xm/Xm.h>
43 #include <Dt/DtStrDefs.h>
44
45 #ifndef DtIsDialogBox
46 #define DtIsDialogBox(w) XtIsSubclass(w, dtDialogBoxWidgetClass)
47 #endif /* XmIsDialogBox */
48
49
50 extern Widget _DtCreateDialogBox( 
51                         Widget parent,
52                         char *name,
53                         ArgList arglist,
54                         Cardinal argcount) ;
55 extern Widget __DtCreateDialogBoxDialog( 
56                         Widget ds_p,
57                         String name,
58                         ArgList db_args,
59                         Cardinal db_n) ;
60 extern Widget _DtDialogBoxGetButton( 
61                         Widget w,
62                         Cardinal pos) ;
63 extern Widget _DtDialogBoxGetWorkArea( 
64                         Widget w) ;
65
66
67 extern WidgetClass dtDialogBoxWidgetClass;
68
69 typedef struct _DtDialogBoxClassRec * DtDialogBoxWidgetClass;
70 typedef struct _DtDialogBoxRec      * DtDialogBoxWidget;
71
72
73 #define XmBUTTON        11
74
75
76 #define XmCR_DIALOG_BUTTON      100
77
78 typedef struct
79 {
80         int             reason;
81         XEvent *        event;
82         Cardinal        button_position;
83         Widget          button;
84 } DtDialogBoxCallbackStruct;
85
86
87 #endif /* _DtDialogBox_h */
88 /* DON'T ADD ANYTHING AFTER THIS #endif */