DialogP.h revision 7a84e134
1/* $Xorg: DialogP.h,v 1.4 2001/02/09 02:03:43 xorgcvs Exp $ */ 2 3 4/*********************************************************** 5 6Copyright 1987, 1988, 1998 The Open Group 7 8Permission to use, copy, modify, distribute, and sell this software and its 9documentation for any purpose is hereby granted without fee, provided that 10the above copyright notice appear in all copies and that both that 11copyright notice and this permission notice appear in supporting 12documentation. 13 14The above copyright notice and this permission notice shall be included in 15all copies or substantial portions of the Software. 16 17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 21AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 22CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 24Except as contained in this notice, the name of The Open Group shall not be 25used in advertising or otherwise to promote the sale, use or other dealings 26in this Software without prior written authorization from The Open Group. 27 28 29Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 30 31 All Rights Reserved 32 33Permission to use, copy, modify, and distribute this software and its 34documentation for any purpose and without fee is hereby granted, 35provided that the above copyright notice appear in all copies and that 36both that copyright notice and this permission notice appear in 37supporting documentation, and that the name of Digital not be 38used in advertising or publicity pertaining to distribution of the 39software without specific, written prior permission. 40 41DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 42ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 43DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 44ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 45WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 46ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 47SOFTWARE. 48 49******************************************************************/ 50/* $XFree86: xc/lib/Xaw/DialogP.h,v 1.8 2001/01/17 19:42:26 dawes Exp $ */ 51 52#ifndef _DialogP_h 53#define _DialogP_h 54 55#include <X11/Xaw/Dialog.h> 56#include <X11/Xaw/FormP.h> 57 58typedef struct { 59 XtPointer extension; 60} DialogClassPart; 61 62typedef struct _DialogClassRec { 63 CoreClassPart core_class; 64 CompositeClassPart composite_class; 65 ConstraintClassPart constraint_class; 66 FormClassPart form_class; 67 DialogClassPart dialog_class; 68} DialogClassRec; 69 70extern DialogClassRec dialogClassRec; 71 72typedef struct _DialogPart { 73 /* resources */ 74 String label; /* description of the dialog */ 75 String value; /* for the user response */ 76 Pixmap icon; /* icon bitmap */ 77 78 /* private */ 79 Widget iconW; /* widget to display the icon */ 80 Widget labelW; /* widget to display description */ 81 Widget valueW; /* user response TextWidget */ 82#ifndef OLDXAW 83 XtPointer pad[4]; /* for future use and keep binary compatability */ 84#endif 85} DialogPart; 86 87typedef struct _DialogRec { 88 CorePart core; 89 CompositePart composite; 90 ConstraintPart constraint; 91 FormPart form; 92 DialogPart dialog; 93} DialogRec; 94 95typedef struct { 96 XtPointer extension; 97} DialogConstraintsPart; 98 99typedef struct _DialogConstraintsRec { 100 FormConstraintsPart form; 101 DialogConstraintsPart dialog; 102} DialogConstraintsRec, *DialogConstraints; 103 104#endif /* _DialogP_h */ 105