dtcalc: change from obsoleted MAXFLOAT to FLT_MAX from std C
[oweals/cde.git] / cde / lib / DtWidget / View.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: View.h /main/3 1995/10/26 09:35:11 rswiston $ */
24 /**---------------------------------------------------------------------
25 ***     
26 ***     file:           View.h
27 ***
28 ***     project:        MotifPlus Widgets
29 ***
30 ***     description:    Public include file for DtView class.
31 ***     
32 ***     
33 ***                     (c) Copyright 1990 by Hewlett-Packard Company.
34 ***
35 ***
36 ***-------------------------------------------------------------------*/
37
38
39 #ifndef _DtView_h
40 #define _DtView_h
41
42 #include <Xm/Xm.h>
43
44 #if defined(__cplusplus) || defined(c_plusplus)
45 extern "C" {
46 #endif
47
48 /*  Temporary location for resource definition.  Need to  */
49 /*  move into the string defs file.                       */
50
51 #define XmNsubpanelUnpostOnSelect "subpanelUnpostOnSelect"
52 #define XmCSubpanelUnpostOnSelect "SubpanelUnpostOnSelect"
53 #define XmNsubpanelTorn "subpanelTorn"
54 #define XmCSubpanelTorn "SubpanelTorn"
55
56 /* These macros are also defined in DtStrDefs.h */
57 /* Control->View.h */
58 /* Control.c->Control.h->Icon.h->DtStrDefs.h */
59
60 #ifndef XmNleftInset
61 #define XmNleftInset            "leftInset"
62 #endif /* XmNleftInset */
63
64 #ifndef XmNrightInset
65 #define XmNrightInset           "rightInset"
66 #endif /* XmNrightInset */
67
68 #ifndef XmNtopInset
69 #define XmNtopInset             "topInset"
70 #endif /* XmNtopInset */
71
72 #ifndef XmNbottomInset
73 #define XmNbottomInset          "bottomInset"
74 #endif /* XmNbottomInset */
75
76 #ifndef XmNwidthIncrement
77 #define XmNwidthIncrement       "widthIncrement"
78 #endif /* XmNwidthIncrement */
79
80 #ifndef XmNheightIncrement
81 #define XmNheightIncrement      "heightIncrement"
82 #endif /* XmNheightIncrement */
83
84 #ifndef XmNboxType
85 #define XmNboxType              "boxType"
86 #endif /* XmNboxType */
87
88 #ifndef XmCBoxType
89 #define XmCBoxType              "BoxType"
90 #endif /* XmCBoxType */
91
92 #ifndef XmRBoxType
93 #define XmRBoxType              "BoxType"
94 #endif /* XmRBoxType */
95
96 #define XmBOX_NONE              0
97 #define XmBOX_PRIMARY           1
98 #define XmBOX_SECONDARY         2
99 #define XmBOX_SUBPANEL          3
100 #define XmBOX_SWITCH            4
101
102 #ifndef DtIsView
103 #define DtIsView(w) XtIsSubclass(w, dtViewWidgetClass)
104 #endif /* XmIsView */
105
106
107 extern Widget _DtCreateView(); 
108
109 extern WidgetClass dtViewWidgetClass;
110
111 typedef struct _DtViewClassRec * DtViewWidgetClass;
112 typedef struct _DtViewRec      * DtViewWidget;
113
114
115 typedef struct
116 {
117         int             reason;
118         XEvent *        event;
119         int             category_index;
120         XmString        category;
121         int             item_index;
122         XmString        item;
123 } DtViewCallbackStruct;
124
125 #define XmCR_SELECT     XmCR_SINGLE_SELECT
126
127 #if defined(__cplusplus) || defined(c_plusplus)
128 }  /* Close scope of 'extern "C"' declaration which encloses file. */
129 #endif
130
131 #endif /* _DtView_h */
132 /* DON'T ADD ANYTHING AFTER THIS #endif */