#ifndef XmLTreePH
#define XmLTreePH
#include <Xm/XmP.h>
#ifndef MOTIF11
#include <Xm/ManagerP.h>
#include <Xm/DrawP.h>
#endif
#include "Tree.h"
#include "GridP.h"
#define RVML XmLGridRowValueMaskLen
#define XmLTreeRowLevel (
1L << (
RVML))
#define XmLTreeRowExpands (
1L << (
RVML +
1))
#define XmLTreeRowIsExpanded (
1L << (
RVML +
2))
typedef struct _XmLTreeRowPart
{
Boolean expands;
int level;
Boolean hasChildren, hasSiblings, isExpanded;
Dimension stringWidth;
Boolean stringWidthValid;
} XmLTreeRowPart;
struct _XmLTreeRowRec
{
XmLGridRowPart grid;
XmLTreeRowPart tree;
};
typedef struct _XmLTreePart
{
Dimension levelSpacing;
Pixel lineColor, pmColor;
XtCallbackList collapseCallback, expandCallback;
char *linesData;
int linesSize, linesMaxLevel;
int recalcTreeWidth;
char defaultPixmapsCreated;
Pixel pixColors[
4];
Pixmap filePixmask, folderPixmask, folderOpenPixmask;
Pixmap filePixmap, folderPixmap, folderOpenPixmap;
int rowLevel;
Boolean rowExpands, rowIsExpanded;
Boolean ignorePixmaps;
} XmLTreePart;
typedef struct _XmLTreeRec
{
CorePart core;
CompositePart composite;
ConstraintPart constraint;
XmManagerPart manager;
XmLGridPart grid;
XmLTreePart tree;
} XmLTreeRec;
typedef struct _XmLTreeClassPart
{
int unused;
} XmLTreeClassPart;
typedef struct _XmLTreeClassRec
{
CoreClassPart core_class;
CompositeClassPart composite_class;
ConstraintClassPart constraint_class;
XmManagerClassPart manager_class;
XmLGridClassPart grid_class;
XmLTreeClassPart tree_class;
} XmLTreeClassRec;
extern XmLTreeClassRec xmlTreeClassRec;
typedef struct _XmLTreeConstraintPart
{
int unused;
} XmLTreeConstraintPart;
typedef struct _XmLTreeConstraintRec
{
XmManagerConstraintPart manager;
XmLGridConstraintPart grid;
XmLTreeConstraintPart tree;
} XmLTreeConstraintRec, *XmLTreeConstraintPtr;
#endif