home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
x
/
volume6
/
wsxc2
/
part03
/
WsRegisterMotif.c
< prev
Wrap
C/C++ Source or Header
|
1990-04-26
|
9KB
|
202 lines
/*
*******************************************************************************
* Copyright 1990 by Auto-trol Technology Corporation, Denver, Colorado.
*
* 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 appears on all copies and that both the
* copyright and this permission notice appear in supporting documentation
* and that the name of Auto-trol not be used in advertising or publicity
* pertaining to distribution of the software without specific, prior written
* permission.
*
* Auto-trol disclaims all warranties with regard to this software, including
* all implied warranties of merchantability and fitness, in no event shall
* Auto-trol 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.
*
* SCCS_data: @(#)WsRegisterMotif.c 1.2(4/18/90)
*
* Module_name:
*
* WsRegisterMotif.c
*
* Subsystem_group:
*
* Window System
*
* Module_name:
*
* WsRegisterMotif.c
*
* Subsystem_group:
*
* Window System, Widget tree creation from Xrm database, Motif
*
* Related_keywords:
*
* Widget, Creation, Registration
*
* Module_description:
*
* This module contains registration routine for all Motif
* widget/gadget constructors and classes.
*
* Module_interface_summary:
*
* void WsRegisterMotif ( WsAppContext app )
*
* Module_history:
*
* mm/dd/yy initials function action
* -------- -------- -------- ---------------------------------------------
* 04/03/90 MarBru Create..
*
* Design_notes:
*
*******************************************************************************
*/
/*
*******************************************************************************
* Include_files.
*******************************************************************************
*/
#include <Xm/Xm.h>
#include <Xm/ArrowB.h>
#include <Xm/ArrowBG.h>
#include <Xm/BulletinB.h>
#include <Xm/CascadeB.h>
#include <Xm/CascadeBG.h>
#include <Xm/Command.h>
#include <Xm/DialogS.h>
#include <Xm/DrawingA.h>
#include <Xm/DrawnB.h>
#include <Xm/FileSB.h>
#include <Xm/Form.h>
#include <Xm/Frame.h>
#include <Xm/Label.h>
#include <Xm/LabelG.h>
#include <Xm/List.h>
#include <Xm/MainW.h>
#include <Xm/MenuShell.h>
#include <Xm/MessageB.h>
#include <Xm/PanedW.h>
#include <Xm/PushB.h>
#include <Xm/PushBG.h>
#include <Xm/RowColumn.h>
#include <Xm/Scale.h>
#include <Xm/ScrollBar.h>
#include <Xm/ScrolledW.h>
#include <Xm/SelectioB.h>
#include <Xm/SeparatoG.h>
#include <Xm/Separator.h>
#include <Xm/Text.h>
#include <Xm/ToggleB.h>
#include <Xm/ToggleBG.h>
void WsRegisterMotif ( app )
XtAppContext(app);
{
# define RCONST(s,c) WsRegisterConstructor ( app, s, c )
# define RCLASS(s,c) WsRegisterObjectClass ( app, s, c )
/* -- register all Motif constructors */
RCONST("XmCreateArrowButton", XmCreateArrowButton );
RCONST("XmCreateArrowButtonGadget", XmCreateArrowButtonGadget );
RCONST("XmCreateBulletinBoard", XmCreateBulletinBoard );
RCONST("XmCreateBulletinBoardDialog", XmCreateBulletinBoardDialog );
RCONST("XmCreateCascadeButton", XmCreateCascadeButton );
RCONST("XmCreateCascadeButtonGadget", XmCreateCascadeButtonGadget );
RCONST("XmCreateCommand", XmCreateCommand );
RCONST("XmCreateDialogShell", XmCreateDialogShell );
RCONST("XmCreateDrawingArea", XmCreateDrawingArea );
RCONST("XmCreateDrawnButton", XmCreateDrawnButton );
RCONST("XmCreateErrorDialog", XmCreateErrorDialog );
RCONST("XmCreateFileSelectionBox", XmCreateFileSelectionBox);
RCONST("XmCreateForm", XmCreateForm );
RCONST("XmCreateFormDialog", XmCreateFormDialog );
RCONST("XmCreateFrame", XmCreateFrame );
RCONST("XmCreateInformationDialog", XmCreateInformationDialog );
RCONST("XmCreateLabel", XmCreateLabel );
RCONST("XmCreateLabelGadget", XmCreateLabelGadget );
RCONST("XmCreateList", XmCreateList );
RCONST("XmCreateMainWindow", XmCreateMainWindow );
RCONST("XmCreateMenuBar", XmCreateMenuBar );
RCONST("XmCreateMenuShell", XmCreateMenuShell );
RCONST("XmCreateMessageBox", XmCreateMessageBox );
RCONST("XmCreateMessageDialog", XmCreateMessageDialog );
RCONST("XmCreateOptionMenu", XmCreateOptionMenu );
RCONST("XmCreatePanedWindow", XmCreatePanedWindow );
RCONST("XmCreatePopupMenu", XmCreatePopupMenu );
RCONST("XmCreatePromptDialog", XmCreatePromptDialog );
RCONST("XmCreatePulldownMenu", XmCreatePulldownMenu );
RCONST("XmCreatePushButton", XmCreatePushButton );
RCONST("XmCreatePushButtonGadget", XmCreatePushButtonGadget );
RCONST("XmCreateQuestionDialog", XmCreateQuestionDialog );
RCONST("XmCreateRadioBox", XmCreateRadioBox );
RCONST("XmCreateRowColumn", XmCreateRowColumn );
RCONST("XmCreateScale", XmCreateScale );
RCONST("XmCreateScrollBar", XmCreateScrollBar );
RCONST("XmCreateScrolledList", XmCreateScrolledList );
RCONST("XmCreateScrolledText", XmCreateScrolledText );
RCONST("XmCreateScrolledWindow", XmCreateScrolledWindow );
RCONST("XmCreateSelectionBox", XmCreateSelectionBox );
RCONST("XmCreateSelectionDialog", XmCreateSelectionDialog );
RCONST("XmCreateSeparator", XmCreateSeparator );
RCONST("XmCreateSeparatorGadget", XmCreateSeparatorGadget );
RCONST("XmCreateText", XmCreateText );
RCONST("XmCreateToggleButton", XmCreateToggleButton );
RCONST("XmCreateToggleButtonGadget", XmCreateToggleButtonGadget );
RCONST("XmCreateWarningDialog", XmCreateWarningDialog );
RCONST("XmCreateWorkingDialog", XmCreateWorkingDialog );
/* -- register Motif widget classes */
RCLASS("xmArrowButtonGadgetClass", xmArrowButtonGadgetClass );
RCLASS("xmArrowButtonWidgetClass", xmArrowButtonWidgetClass );
RCLASS("xmBulletinBoardWidgetClass", xmBulletinBoardWidgetClass );
RCLASS("xmCascadeButtonGadgetClass", xmCascadeButtonGadgetClass );
RCLASS("xmCascadeButtonWidgetClass", xmCascadeButtonWidgetClass );
RCLASS("xmCommandWidgetClass", xmCommandWidgetClass );
RCLASS("xmDialogShellWidgetClass", xmDialogShellWidgetClass );
RCLASS("xmDrawingAreaWidgetClass", xmDrawingAreaWidgetClass );
RCLASS("xmDrawnButtonWidgetClass", xmDrawnButtonWidgetClass );
RCLASS("xmFormWidgetClass", xmFormWidgetClass );
RCLASS("xmFileSelectionBoxWidgetClass", xmFileSelectionBoxWidgetClass );
RCLASS("xmFrameWidgetClass", xmFrameWidgetClass );
RCLASS("xmGadgetClass", xmGadgetClass );
RCLASS("xmLabelGadgetClass", xmLabelGadgetClass );
RCLASS("xmLabelWidgetClass", xmLabelWidgetClass );
RCLASS("xmListWidgetClass", xmListWidgetClass );
RCLASS("xmMainWindowWidgetClass", xmMainWindowWidgetClass );
RCLASS("xmManagerWidgetClass", xmManagerWidgetClass );
RCLASS("xmMenuShellWidgetClass", xmMenuShellWidgetClass );
RCLASS("xmMessageBoxWidgetClass", xmMessageBoxWidgetClass );
RCLASS("xmPanedWindowWidgetClass", xmPanedWindowWidgetClass );
RCLASS("xmPrimitiveWidgetClass", xmPrimitiveWidgetClass );
RCLASS("xmPushButtonGadgetClass", xmPushButtonGadgetClass );
RCLASS("xmPushButtonWidgetClass", xmPushButtonWidgetClass );
RCLASS("xmRowColumnWidgetClass", xmRowColumnWidgetClass );
/* RCLASS("xmSashWidgetClass", xmSashWidgetClass ); */
RCLASS("xmScaleWidgetClass", xmScaleWidgetClass );
RCLASS("xmScrollBarWidgetClass", xmScrollBarWidgetClass );
RCLASS("xmScrolledWindowWidgetClass", xmScrolledWindowWidgetClass );
RCLASS("xmSelectionBoxWidgetClass", xmSelectionBoxWidgetClass );
RCLASS("xmSeparatorGadgetClass", xmSeparatorGadgetClass );
RCLASS("xmSeparatorWidgetClass", xmSeparatorWidgetClass );
RCLASS("xmTextWidgetClass", xmTextWidgetClass );
RCLASS("xmToggleButtonGadgetClass", xmToggleButtonGadgetClass );
RCLASS("xmToggleButtonWidgetClass", xmToggleButtonWidgetClass );
/* -- register AWS constructors */
/* -- register AWS classes */
# undef RCONST
# undef RCLASS
}