Beispiel #1
0
static void 
ClassPartInitialize(
        WidgetClass wc )
{
  _XmFastSubclassInit (wc, XmARROW_BUTTON_BIT);

  /* Install the activatable trait for all subclasses */
  XmeTraitSet((XtPointer)wc, XmQTactivatable, (XtPointer) &arrowButtonAT);
}
Beispiel #2
0
static void 
ClassPartInitialize(
        WidgetClass wc )
{
/****************/

    _XmFastSubclassInit (wc, XmCOMMAND_BOX_BIT);

    return ;
    }
Beispiel #3
0
/*
 * Whenever the XmDisplay class or one of it's subclasses gets initialized,
 * we setup the default proc for getting a display's XmDisplay widget. This
 * way, subclasses can set another default proc within their class init
 * method (or create a chain).
 */
static void
class_part_initialize(WidgetClass widget_class)
{
    if (((XmDisplayClassRec *)widget_class)->display_class.GetDisplay == NULL)
    {
	((XmDisplayClassRec *)widget_class)->display_class.GetDisplay =
	    GetXmDisplay;
    }

    _XmFastSubclassInit(widget_class, XmDISPLAY_BIT);
}
Beispiel #4
0
static void
class_part_initialize(WidgetClass widget_class)
{
    WidgetClass sc;

    DEBUGOUT(_LtDebug(__FILE__, NULL, "DropTransfer class part initialize\n"));

    _XmFastSubclassInit(widget_class, XmDROP_TRANSFER_BIT);

    sc = widget_class->core_class.superclass;

    if (DTC_StartTransferProc(widget_class) == XmInheritStartTransferProc)
    {
	DTC_StartTransferProc(widget_class) = DTC_StartTransferProc(sc);
    }

    if (DTC_AddTransferProc(widget_class) == XmInheritAddTransferProc)
    {
	DTC_AddTransferProc(widget_class) = DTC_AddTransferProc(sc);
    }
}
Beispiel #5
0
Datei: DrawnB.c Projekt: att/uwin
static void
class_part_initialize(WidgetClass widget_class)
{
    _XmFastSubclassInit(widget_class, XmDRAWN_BUTTON_BIT);
}
Beispiel #6
0
Datei: Sash.c Projekt: att/uwin
static void
class_part_initialize(WidgetClass widget_class)
{
    _XmFastSubclassInit(widget_class, XmSASH_BIT);
}
Beispiel #7
0
static void 
ClassPartInitialize(WidgetClass wc)
{
  _XmFastSubclassInit (wc, XmGRAB_SHELL_BIT);
}
Beispiel #8
0
/************************************************************************
 *
 *  ClassPartInitialize
 *     Set up the fast subclassing for the widget
 *
 ************************************************************************/
static void 
ClassPartInitialize(
        WidgetClass wc )
{
   _XmFastSubclassInit (wc, XmFRAME_BIT);
}
Beispiel #9
0
Datei: Gadget.c Projekt: att/uwin
static void
class_part_initialize(WidgetClass widget_class)
{
    XmGadgetClass gc, sc;

	DEBUGOUT(_LtDebug(__FILE__, NULL, "XmGadget class_part_initialize\n"));

    gc = (XmGadgetClass)widget_class;
    sc = (XmGadgetClass)((XmGadgetClass)widget_class)->rect_class.superclass;

    if (gc->gadget_class.border_highlight == XmInheritBorderHighlight)
    {
	gc->gadget_class.border_highlight =
	    sc->gadget_class.border_highlight;
    }
    if (gc->gadget_class.border_unhighlight == XmInheritBorderUnhighlight)
    {
	gc->gadget_class.border_unhighlight =
	    sc->gadget_class.border_unhighlight;
    }
    if (gc->gadget_class.visual_change == XmInheritVisualChange)
    {
	gc->gadget_class.visual_change =
	    sc->gadget_class.visual_change;
    }
    if (gc->gadget_class.input_dispatch == XmInheritInputDispatch)
    {
	gc->gadget_class.input_dispatch =
	    sc->gadget_class.input_dispatch;
    }
    if (gc->gadget_class.arm_and_activate == XmInheritArmAndActivate)
    {
	gc->gadget_class.arm_and_activate =
	    sc->gadget_class.arm_and_activate;
    }

    if (widget_class != xmGadgetClass)
    {
	XmGadgetClassExt *gce = NULL, *sce = NULL;

	gce = _XmGetGadgetClassExtPtr(gc, NULLQUARK);
	sce = _XmGetGadgetClassExtPtr(sc, NULLQUARK);

	if (gce && sce && *gce && *sce)
	{
	    if ((*gce)->widget_baseline == XmInheritBaselineProc)
	    {
		(*gce)->widget_baseline = (*sce)->widget_baseline;
	    }
	    if ((*gce)->widget_display_rect == XmInheritDisplayRectProc)
	    {
		(*gce)->widget_display_rect = (*sce)->widget_display_rect;
	    }
	}
    }

    _XmBaseClassPartInitialize(widget_class);
    _XmFastSubclassInit(widget_class, XmGADGET_BIT);

    /* compile the resources */
    if (widget_class == xmGadgetClass)
    {
	_XmSortResourceList((XrmResource **)gc->rect_class.resources,
			    gc->rect_class.num_resources);
    }

    _XmBuildGadgetResources(widget_class);
}
Beispiel #10
0
/************************************************************************
 *
 *  ClassPartInit
 *	Used by subclasses of gadget to inherit class record procedures.
 *
 ************************************************************************/
static void 
ClassPartInit(
        WidgetClass g )
{
    static Boolean first_time = TRUE;
    XmGadgetClass wc = (XmGadgetClass) g;
    XmGadgetClass super = (XmGadgetClass) wc->rect_class.superclass;
    XmGadgetClassExt              *wcePtr, *scePtr;

   wcePtr = _XmGetGadgetClassExtPtr(wc, NULLQUARK);

   if (((WidgetClass)wc != xmGadgetClass) &&
       (*wcePtr)) {

       scePtr = _XmGetGadgetClassExtPtr(super, NULLQUARK);

       if ((*wcePtr)->widget_baseline == XmInheritBaselineProc)
	   (*wcePtr)->widget_baseline = (*scePtr)->widget_baseline;

       if ((*wcePtr)->widget_display_rect == XmInheritDisplayRectProc)
	   (*wcePtr)->widget_display_rect  = (*scePtr)->widget_display_rect;

       if ((*wcePtr)->widget_margins == XmInheritMarginsProc)
	   (*wcePtr)->widget_margins  = (*scePtr)->widget_margins;

   }

    if (wc->gadget_class.border_highlight == XmInheritWidgetProc)
	wc->gadget_class.border_highlight = 
           super->gadget_class.border_highlight;

    if (wc->gadget_class.border_unhighlight == XmInheritWidgetProc)
	wc->gadget_class.border_unhighlight =
	   super->gadget_class.border_unhighlight;

    if (wc->gadget_class.arm_and_activate == XmInheritArmAndActivate)
        wc->gadget_class.arm_and_activate =
           super->gadget_class.arm_and_activate;

    if (wc->gadget_class.input_dispatch == XmInheritInputDispatch)
        wc->gadget_class.input_dispatch =
           super->gadget_class.input_dispatch;

    if (wc->gadget_class.visual_change == XmInheritVisualChange)
        wc->gadget_class.visual_change =
           super->gadget_class.visual_change;

   _XmFastSubclassInit (g, XmGADGET_BIT);

    if (first_time)
    {
        _XmReOrderResourceList(xmGadgetClass, XmNunitType, NULL);
        first_time = FALSE;
    }

   _XmBuildGadgetResources((WidgetClass) wc);

   /* Install the direction trait for all subclasses as well. */
    XmeTraitSet((XtPointer)wc, XmQTspecifyLayoutDirection, (XtPointer)&gadLDT);

   /* Install the accessColors trait for all subclasses as well. */
    XmeTraitSet((XtPointer)wc, XmQTaccessColors, (XtPointer)&gadACT);

   /* Install the unit type trait for all subclasses as well. */
    XmeTraitSet((XtPointer)wc, XmQTspecifyUnitType, (XtPointer)&gadUTT);
}
Beispiel #11
0
static void 
DisplayClassPartInitialize(
	WidgetClass wc )
{
	_XmFastSubclassInit(wc, XmDISPLAY_BIT);
}
Beispiel #12
0
/************************************************************************
 *									*
 *  ClassPartInitialize - Set up the fast subclassing.			*
 *									*
 ************************************************************************/
static void 
ClassPartInitialize(
        WidgetClass wc )
{
   _XmFastSubclassInit (wc, XmMAIN_WINDOW_BIT);
}
Beispiel #13
0
/************************************************************************
 *
 *  ClassPartInit
 *    Set up the fast subclassing for the widget.
 *
 ************************************************************************/
static void 
ClassPartInit(
        WidgetClass wc )
{
   _XmFastSubclassInit(wc, XmDIALOG_SHELL_BIT);
}
Beispiel #14
0
static void
class_part_initialize(WidgetClass widget_class)
{
    _XmFastSubclassInit(widget_class, XmCOMMAND_BOX_BIT);
}