1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 #ifndef XmLTreePH
51 #define XmLTreePH
52
53 #include <Xm/XmP.h>
54 #ifndef MOTIF11
55 #include <Xm/ManagerP.h>
56 #include <Xm/DrawP.h>
57 #endif
58
59 #include "Tree.h"
60 #include "GridP.h"
61
62
63 #define RVML XmLGridRowValueMaskLen
64 #define XmLTreeRowLevel (
1L << (
RVML))
65 #define XmLTreeRowExpands (
1L << (
RVML +
1))
66 #define XmLTreeRowIsExpanded (
1L << (
RVML +
2))
67
68 typedef struct _XmLTreeRowPart
69 {
70 Boolean expands;
71 int level;
72 Boolean hasChildren, hasSiblings, isExpanded;
73 Dimension stringWidth;
74 Boolean stringWidthValid;
75 } XmLTreeRowPart;
76
77 struct _XmLTreeRowRec
78 {
79 XmLGridRowPart grid;
80 XmLTreeRowPart tree;
81 };
82
83 typedef struct _XmLTreePart
84 {
85
86 Dimension levelSpacing;
87 Pixel lineColor, pmColor;
88 XtCallbackList collapseCallback, expandCallback;
89
90
91 char *linesData;
92 int linesSize, linesMaxLevel;
93 int recalcTreeWidth;
94
95 char defaultPixmapsCreated;
96 Pixel pixColors[
4];
97 Pixmap filePixmask, folderPixmask, folderOpenPixmask;
98 Pixmap filePixmap, folderPixmap, folderOpenPixmap;
99
100
101 int rowLevel;
102 Boolean rowExpands, rowIsExpanded;
103
104
105 Boolean ignorePixmaps;
106 } XmLTreePart;
107
108 typedef struct _XmLTreeRec
109 {
110 CorePart core;
111 CompositePart composite;
112 ConstraintPart constraint;
113 XmManagerPart manager;
114 XmLGridPart grid;
115 XmLTreePart tree;
116 } XmLTreeRec;
117
118 typedef struct _XmLTreeClassPart
119 {
120 int unused;
121 } XmLTreeClassPart;
122
123 typedef struct _XmLTreeClassRec
124 {
125 CoreClassPart core_class;
126 CompositeClassPart composite_class;
127 ConstraintClassPart constraint_class;
128 XmManagerClassPart manager_class;
129 XmLGridClassPart grid_class;
130 XmLTreeClassPart tree_class;
131 } XmLTreeClassRec;
132
133 extern XmLTreeClassRec xmlTreeClassRec;
134
135 typedef struct _XmLTreeConstraintPart
136 {
137 int unused;
138 } XmLTreeConstraintPart;
139
140 typedef struct _XmLTreeConstraintRec
141 {
142 XmManagerConstraintPart manager;
143 XmLGridConstraintPart grid;
144 XmLTreeConstraintPart tree;
145 } XmLTreeConstraintRec, *XmLTreeConstraintPtr;
146
147 #endif
148