#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.
******************************************************************/
/* NOTE: THIS IS NOT A WIDGET! Rather, this is an interface to a widget.
It implements policy, and gives a (hopefully) easier-to-use interface
than just directly making your own form. */
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <./Xaw3_1XawInit.h>
#include <./Xaw3_1AsciiText.h>
#include <./Xaw3_1Command.h>
#include <./Xaw3_1Label.h>
#include <./Xaw3_1DialogP.h>
#include <./Xaw3_1Cardinals.h>
/*
* After we have set the string in the value widget we set the
* string to a magic value. So that when a SetValues request is made
* on the dialog value we will notice it, and reset the string.
*/
};
{ /* core_class fields */
/* class_name */ "Dialog",
/* widget_size */ sizeof(DialogRec),
/* class_initialize */ XawInitializeWidgetSet,
/* class_part init */ NULL,
/* 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 */ XtInheritResize,
/* 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 */ XtInheritQueryGeometry,
/* display_accelerator*/ XtInheritDisplayAccelerator,
/* extension */ NULL
},
{ /* composite_class fields */
/* geometry_manager */ XtInheritGeometryManager,
/* change_managed */ XtInheritChangeManaged,
/* insert_child */ XtInheritInsertChild,
/* delete_child */ XtInheritDeleteChild,
/* extension */ NULL
},
{ /* constraint_class fields */
/* subresourses */ NULL,
/* subresource_count */ 0,
/* constraint_size */ sizeof(DialogConstraintsRec),
/* initialize */ ConstraintInitialize,
/* destroy */ NULL,
/* set_values */ NULL,
/* extension */ NULL
},
{ /* form_class fields */
/* layout */ XtInheritLayout
},
{ /* dialog_class fields */
/* empty */ 0
}
};
/* ARGSUSED */
{
num_args = 2;
}
else
}
/* ARGSUSED */
{
return; /* then just use defaults */
else
break;
if (XtIsManaged(*childP) &&
break;
}
}
}
}
#define ICON 0
/* ARGSUSED */
{
int i;
for (i = 0; i < NUM_CHECKS; i++)
for (i = 0; i < *in_num_args; i++) {
}
} else {
}
} else {
}
}
num_args = 0;
num_args++;
}
}
wasn't NULL before. */
#ifdef notdef
/* this would be correct if Form had the same semantics on Resize
* as on MakeGeometryRequest. Unfortunately, Form botched it, so
* any subclasses will currently have to deal with the fact that
* we're about to change our real size.
*/
CreateDialogValueWidget( (Widget) w);
#else /*notdef*/
CreateDialogValueWidget( (Widget) w);
#endif /*notdef*/
}
else { /* Widget ok, just change string. */
}
}
return False;
}
/* Function Name: CreateDialogValueWidget
* Description: Creates the dialog widgets value widget.
* Arguments: w - the dialog widget.
* Returns: none.
*
* must be called only when w->dialog.value is non-nil.
*/
static void
Widget w;
{
#ifdef notdef
#endif /*notdef*/
/* if the value widget is being added after buttons,
* then the buttons need new layout constraints.
*/
continue;
if (XtIsManaged(*childP) &&
}
}
}
/*
* Value widget gets the keyboard focus.
*/
}
void
{
/*
* Correct Constraints are all set in ConstraintInitialize().
*/
}
char *XawDialogGetValueString(w)
Widget w;
{
char * value;
return(value);
}