home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sources.x
- Path: uunet!darwin.sura.net!mips!msi!dcmartin
- From: Konstantinos Konstantinides <kk@hpkronos.hpl.hp.com>
- Subject: v18i033: xdtree (Motif), Part03/03
- Message-ID: <1992Jul20.154319.2207@msi.com>
- Originator: dcmartin@fascet
- Sender: dcmartin@msi.com (David C. Martin - Moderator)
- Organization: Molecular Simulations, Inc.
- References: <csx-18i031-xdtree@uunet.UU.NET>
- Date: Mon, 20 Jul 1992 15:43:19 GMT
- Approved: dcmartin@msi.com
- Lines: 144
-
- Submitted-by: Konstantinos Konstantinides <kk@hpkronos.hpl.hp.com>
- Posting-number: Volume 18, Issue 33
- Archive-name: xdtree/part03
-
- #!/bin/sh
- # this is part.03 (part 3 of a multipart archive)
- # do not concatenate these parts, unpack them in order with /bin/sh
- # file TreeP.h continued
- #
- if test ! -r _shar_seq_.tmp; then
- echo 'Please unpack part 1 first!'
- exit 1
- fi
- (read Scheck
- if test "$Scheck" != 3; then
- echo Please unpack part "$Scheck" next!
- exit 1
- else
- exit 0
- fi
- ) < _shar_seq_.tmp || exit 1
- if test ! -f _shar_wnt_.tmp; then
- echo 'x - still skipping TreeP.h'
- else
- echo 'x - continuing file TreeP.h'
- sed 's/^X//' << 'SHAR_EOF' >> 'TreeP.h' &&
- X * TreeP.h: Private header file for the Tree widget
- X * From:
- X * The X Window System,
- X * Programming and Applications with Xt
- X * OSF/Motif Edition
- X * by
- X * Douglas Young
- X * Prentice Hall, 1990
- X *
- X * Example described on pages: 397-419
- X *
- X *
- X * Copyright 1989 by Prentice Hall
- X * All Rights Reserved
- X *
- X * This code is based on the OSF/Motif widget set and the X Window System
- X *
- X * Permission to use, copy, modify, and distribute this software for
- X * any purpose and without fee is hereby granted, provided that the above
- X * copyright notice appear in all copies and that both the copyright notice
- X * and this permission notice appear in supporting documentation.
- X *
- X * Prentice Hall and the author disclaim all warranties with regard to
- X * this software, including all implied warranties of merchantability and fitness.
- X * In no event shall Prentice Hall or the author be liable for any special,
- X * indirect or cosequential damages or any damages whatsoever resulting from
- X * loss of use, data or profits, whether in an action of contract, negligence
- X * or other tortious action, arising out of or in connection with the use
- X * or performance of this software.
- X *
- X * Open Software Foundation is a trademark of The Open Software Foundation, Inc.
- X * OSF is a trademark of Open Software Foundation, Inc.
- X * OSF/Motif is a trademark of Open Software Foundation, Inc.
- X * Motif is a trademark of Open Software Foundation, Inc.
- X * DEC is a registered trademark of Digital Equipment Corporation
- X * HP is a registered trademark of the Hewlett Packard Company
- X * DIGITAL is a registered trademark of Digital Equipment Corporation
- X * X Window System is a trademark of the Massachusetts Institute of Technology
- X **********************************************************************************/
- X
- X
- #ifndef TREEP_H
- #define TREEP_H
- typedef struct _XsTreeClassPart {
- X int ignore;
- } XsTreeClassPart;
- X
- typedef struct _XsTreeClassRec {
- X CoreClassPart core_class;
- X CompositeClassPart composite_class;
- X ConstraintClassPart constraint_class;
- X XsTreeClassPart tree_class;
- } XsTreeClassRec;
- X
- extern XsTreeClassRec XstreeClassRec;
- X
- typedef struct {
- X Dimension *array;
- X int size;
- X } TreeOffset, *TreeOffsetPtr;
- X
- typedef struct {
- X Dimension h_min_space;
- X Dimension v_min_space;
- X Pixel foreground;
- X GC gc;
- X TreeOffsetPtr horizontal;
- X TreeOffsetPtr vertical;
- X Widget tree_root;
- } XsTreePart;
- X
- X
- typedef struct _XsTreeRec {
- X CorePart core;
- X CompositePart composite;
- X ConstraintPart constraint;
- X XsTreePart tree;
- } XsTreeRec;
- X
- X
- X
- typedef struct _TreeConstraintsPart {
- X Widget super_node;
- X WidgetList sub_nodes;
- X long n_sub_nodes;
- X long max_sub_nodes;
- X Position x, y;
- } TreeConstraintsPart;
- X
- typedef struct _TreeConstraintsRec {
- X TreeConstraintsPart tree;
- } TreeConstraintsRec, *TreeConstraints;
- X
- X
- #define TREE_CONSTRAINT(w) \
- X ((TreeConstraints)((w)->core.constraints))
- X
- #endif TREEP_H
- X
- X
- X
- SHAR_EOF
- echo 'File TreeP.h is complete' &&
- chmod 0644 TreeP.h ||
- echo 'restore of TreeP.h failed'
- Wc_c="`wc -c < 'TreeP.h'`"
- test 3293 -eq "$Wc_c" ||
- echo 'TreeP.h: original size 3293, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- rm -f _shar_seq_.tmp
- echo You have unpacked the last part
- exit 0
- --
- ---
- Senior Systems Scientist mail: dcmartin@msi.com
- Molecular Simulations, Inc. uucp: uunet!dcmartin
- 796 North Pastoria Avenue at&t: 408/522-9236
-