#ifndef lint
#endif /* lint */
/***********************************************************
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the names of Digital or MIT not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <./Xaw3_1XawInit.h>
#include <./Xaw3_1FormP.h>
/* Private Definitions */
};
};
static void ConstraintInitialize();
static void ChangeManaged();
{ /* core_class fields */
/* class_name */ "Form",
/* widget_size */ sizeof(FormRec),
/* class_initialize */ ClassInitialize,
/* class_part_init */ ClassPartInitialize,
/* class_inited */ FALSE,
/* initialize */ Initialize,
/* initialize_hook */ NULL,
/* realize */ XtInheritRealize,
/* actions */ NULL,
/* num_actions */ 0,
/* resources */ resources,
/* xrm_class */ NULLQUARK,
/* compress_motion */ TRUE,
/* compress_exposure */ TRUE,
/* compress_enterleave*/ TRUE,
/* visible_interest */ FALSE,
/* destroy */ NULL,
/* resize */ Resize,
/* expose */ XtInheritExpose,
/* set_values */ SetValues,
/* set_values_hook */ NULL,
/* set_values_almost */ XtInheritSetValuesAlmost,
/* get_values_hook */ NULL,
/* accept_focus */ NULL,
/* version */ XtVersion,
/* callback_private */ NULL,
/* tm_table */ NULL,
/* query_geometry */ PreferredGeometry,
/* display_accelerator*/ XtInheritDisplayAccelerator,
/* extension */ NULL
},
{ /* composite_class fields */
/* geometry_manager */ GeometryManager,
/* change_managed */ ChangeManaged,
/* insert_child */ XtInheritInsertChild,
/* delete_child */ XtInheritDeleteChild,
/* extension */ NULL
},
{ /* constraint_class fields */
/* subresourses */ formConstraintResources,
/* constraint_size */ sizeof(FormConstraintsRec),
/* initialize */ ConstraintInitialize,
/* destroy */ NULL,
/* set_values */ ConstraintSetValues,
/* extension */ NULL
},
{ /* form_class fields */
/* layout */ Layout
}
};
/****************************************************************
*
* Private Procedures
*
****************************************************************/
return; \
}
/* ARGSUSED */
{
XrmQuark q;
q = XrmStringToQuark(lowerName);
if (q == XtQChainLeft) {
}
if (q == XtQChainRight) {
}
if (q == XtQChainTop) {
}
if (q == XtQChainBottom) {
}
if (q == XtQRubber) {
}
}
static void ClassInitialize()
{
};
}
{
}
/* ARGSUSED */
{
}
static void RefigureLocations(w)
FormWidget w;
{
if (w->form.no_refigure) {
}
else {
}
}
/* ARGSUSED */
{
static void LayoutChild();
}
if (XtIsManaged(*childP)) {
Position x, y;
}
}
if (result == XtGeometryAlmost)
return ret_val;
}
static void LayoutChild(w)
Widget w;
{
Position x, y;
case LayoutPending:
break;
case LayoutDone:
return;
case LayoutInProgress:
{
"constraintLoop","xawFormLayout","XawToolkitError",
"constraint loop detected while laying out child '%s' in FormWidget '%s'",
return;
}
}
}
}
XtMoveWidget( w, x, y );
}
{
if ( ((int) old) > 0)
}
/* I don't see any problem with returning values less than zero. */
return (loc);
}
static void Resize(w)
Widget w;
{
Position x, y;
if (!XtIsManaged(*childP)) continue;
}
}
/* ARGSUSED */
Widget w;
{
return XtGeometryNo;
else
else
return XtGeometryNo;
/* reset virtual width and height. */
}
return XtGeometryYes;
}
/* ARGSUSED */
{
return( FALSE );
}
/* ARGSUSED */
{
}
/* ARGSUSED */
{
return( FALSE );
}
static void ChangeManaged(w)
Widget w;
{
/*
* Reset virtual width and height for all children.
*/
if (XtIsManaged(child)) {
/*
* If the size is one (1) then we must not change the virtual sizes, as
* they contain useful information. If someone actually wants a widget of
* width or height one (1) in a form widget he will lose, can't win them all.
*
* Chris D. Peterson 2/9/89.
*/
}
}
RefigureLocations( (FormWidget)w );
}
{
return XtGeometryYes;
return XtGeometryNo;
else
return XtGeometryAlmost;
}
/**********************************************************************
*
* Public routines
*
**********************************************************************/
/*
* Set or reset figuring (ignored if not realized)
*/
Widget w;
{
RefigureLocations( fw );
}