4 Copyright 1990, 1994, 1998 The Open Group
6 Permission to use, copy, modify, distribute, and sell this software and its
7 documentation for any purpose is hereby granted without fee, provided that
8 the above copyright notice appear in all copies and that both that
9 copyright notice and this permission notice appear in supporting
12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software.
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 Except as contained in this notice, the name of The Open Group shall not be
23 used in advertising or otherwise to promote the sale, use or other dealings
24 in this Software without prior written authorization from The Open Group.
26 * Copyright 1989 Prentice Hall
28 * Permission to use, copy, modify, and distribute this software for any
29 * purpose and without fee is hereby granted, provided that the above
30 * copyright notice appear in all copies and that both the copyright notice
31 * and this permission notice appear in supporting documentation.
33 * Prentice Hall and the authors disclaim all warranties with regard
34 * to this software, including all implied warranties of merchantability and
35 * fitness. In no event shall Prentice Hall or the authors be liable
36 * for any special, indirect or cosequential damages or any damages whatsoever
37 * resulting from loss of use, data or profits, whether in an action of
38 * contract, negligence or other tortious action, arising out of or in
39 * connection with the use or performance of this software.
41 * Authors: Jim Fulton, MIT X Consortium,
42 * based on a version by Douglas Young, Prentice Hall
44 * This widget is based on the Tree widget described on pages 397-419 of
45 * Douglas Young's book "The X Window System, Programming and Applications
46 * with Xt OSF/Motif Edition." The layout code has been rewritten to use
47 * additional blank space to make the structure of the graph easier to see
48 * as well as to support vertical trees.
54 #include <X11/Xmu/Converters.h>
56 /******************************************************************************
58 * Tree Widget (subclass of ConstraintClass)
60 ******************************************************************************
64 * Name Class Type Default
65 * ---- ----- ---- -------
67 * autoReconfigure AutoReconfigure Boolean FALSE
68 * background Background Pixel XtDefaultBackground
69 * foreground Foreground Pixel XtDefaultForeground
70 * gravity Gravity XtGravity West
71 * hSpace HSpace Dimension 20
72 * lineWidth LineWidth Dimension 0
73 * vSpace VSpace Dimension 6
76 * Constraint Resources attached to children:
78 * treeGC TreeGC GC NULL
79 * treeParent TreeParent Widget NULL
82 *****************************************************************************/
84 /* new instance field names */
85 #ifndef _XtStringDefs_h_
86 #define XtNhSpace "hSpace"
87 #define XtNvSpace "vSpace"
88 #define XtCHSpace "HSpace"
89 #define XtCVSpace "VSpace"
92 #define XtNautoReconfigure "autoReconfigure"
93 #define XtNlineWidth "lineWidth"
94 #define XtNtreeGC "treeGC"
95 #define XtNtreeParent "treeParent"
96 #define XtNgravity "gravity"
98 /* new class field names */
99 #define XtCAutoReconfigure "AutoReconfigure"
100 #define XtCLineWidth "LineWidth"
101 #define XtCTreeGC "TreeGC"
102 #define XtCTreeParent "TreeParent"
103 #define XtCGravity "Gravity"
108 #ifndef XawNdisplayList
109 #define XawNdisplayList "displayList"
112 #ifndef XawCDisplayList
113 #define XawCDisplayList "DisplayList"
116 #ifndef XawRDisplayList
117 #define XawRDisplayList "XawDisplayList"
120 /* external declarations */
121 extern WidgetClass treeWidgetClass;
123 typedef struct _TreeClassRec *TreeWidgetClass;
124 typedef struct _TreeRec *TreeWidget;
128 void XawTreeForceLayout
135 #endif /* _XawTree_h */