| 1 |
/* |
| 2 |
* |
| 3 |
|
| 4 |
Copyright 1990, 1994, 1998 The Open Group |
| 5 |
|
| 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 |
| 10 |
documentation. |
| 11 |
|
| 12 |
The above copyright notice and this permission notice shall be included in |
| 13 |
all copies or substantial portions of the Software. |
| 14 |
|
| 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. |
| 21 |
|
| 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. |
| 25 |
|
| 26 |
* Copyright 1989 Prentice Hall |
| 27 |
* |
| 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. |
| 32 |
* |
| 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. |
| 40 |
* |
| 41 |
* Authors: Jim Fulton, MIT X Consortium, |
| 42 |
* based on a version by Douglas Young, Prentice Hall |
| 43 |
* |
| 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. |
| 49 |
*/ |
| 50 |
|
| 51 |
#ifndef _XawTree_h |
| 52 |
#define _XawTree_h |
| 53 |
|
| 54 |
#include <X11/Xmu/Converters.h> |
| 55 |
|
| 56 |
/****************************************************************************** |
| 57 |
* |
| 58 |
* Tree Widget (subclass of ConstraintClass) |
| 59 |
* |
| 60 |
****************************************************************************** |
| 61 |
* |
| 62 |
* Parameters: |
| 63 |
* |
| 64 |
* Name Class Type Default |
| 65 |
* ---- ----- ---- ------- |
| 66 |
* |
| 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 |
| 74 |
* |
| 75 |
* |
| 76 |
* Constraint Resources attached to children: |
| 77 |
* |
| 78 |
* treeGC TreeGC GC NULL |
| 79 |
* treeParent TreeParent Widget NULL |
| 80 |
* |
| 81 |
* |
| 82 |
*****************************************************************************/ |
| 83 |
|
| 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" |
| 90 |
#endif |
| 91 |
|
| 92 |
#define XtNautoReconfigure "autoReconfigure" |
| 93 |
#define XtNlineWidth "lineWidth" |
| 94 |
#define XtNtreeGC "treeGC" |
| 95 |
#define XtNtreeParent "treeParent" |
| 96 |
#define XtNgravity "gravity" |
| 97 |
|
| 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" |
| 104 |
|
| 105 |
#define XtRGC "GC" |
| 106 |
|
| 107 |
#ifndef OLDXAW |
| 108 |
#ifndef XawNdisplayList |
| 109 |
#define XawNdisplayList "displayList" |
| 110 |
#endif |
| 111 |
|
| 112 |
#ifndef XawCDisplayList |
| 113 |
#define XawCDisplayList "DisplayList" |
| 114 |
#endif |
| 115 |
|
| 116 |
#ifndef XawRDisplayList |
| 117 |
#define XawRDisplayList "XawDisplayList" |
| 118 |
#endif |
| 119 |
#endif |
| 120 |
/* external declarations */ |
| 121 |
extern WidgetClass treeWidgetClass; |
| 122 |
|
| 123 |
typedef struct _TreeClassRec *TreeWidgetClass; |
| 124 |
typedef struct _TreeRec *TreeWidget; |
| 125 |
|
| 126 |
_XFUNCPROTOBEGIN |
| 127 |
|
| 128 |
void XawTreeForceLayout |
| 129 |
( |
| 130 |
Widget tree |
| 131 |
); |
| 132 |
|
| 133 |
_XFUNCPROTOEND |
| 134 |
|
| 135 |
#endif /* _XawTree_h */ |