2 ** Copyright (c) 1990 David E. Smyth
4 ** This file was derived from work performed by Martin Brunecky at
5 ** Auto-trol Technology Corporation, Denver, Colorado, under the
6 ** following copyright:
8 *******************************************************************************
9 * Copyright 1990 by Auto-trol Technology Corporation, Denver, Colorado.
13 * Permission to use, copy, modify, and distribute this software and its
14 * documentation for any purpose and without fee is hereby granted, provided
15 * that the above copyright notice appears on all copies and that both the
16 * copyright and this permission notice appear in supporting documentation
17 * and that the name of Auto-trol not be used in advertising or publicity
18 * pertaining to distribution of the software without specific, prior written
21 * Auto-trol disclaims all warranties with regard to this software, including
22 * all implied warranties of merchantability and fitness, in no event shall
23 * Auto-trol be liable for any special, indirect or consequential damages or
24 * any damages whatsoever resulting from loss of use, data or profits, whether
25 * in an action of contract, negligence or other tortious action, arising out
26 * of or in connection with the use or performance of this software.
27 *******************************************************************************
29 ** Redistribution and use in source and binary forms are permitted
30 ** provided that the above copyright notice and this paragraph are
31 ** duplicated in all such forms and that any documentation, advertising
32 ** materials, and other materials related to such distribution and use
33 ** acknowledge that the software was developed by David E. Smyth. The
34 ** name of David E. Smyth may not be used to endorse or promote products
35 ** derived from this software without specific prior written permission.
36 ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
37 ** WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
38 ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
43 * SCCS_data: @(#)MriRegAll.c 1.0 ( 19 June 1990 )
45 * This module contains registration routine for all Motif
46 * widget/gadget constructors and classes.
48 * Module_interface_summary:
50 * void MriRegisterMotif ( XtAppContext app )
52 *******************************************************************************
57 #include <Xm/ArrowB.h>
58 #include <Xm/ArrowBG.h>
59 #include <Xm/BulletinB.h>
60 #include <Xm/CascadeB.h>
61 #include <Xm/CascadeBG.h>
62 #include <Xm/Command.h>
63 #include <Xm/DialogS.h>
64 #include <Xm/DrawingA.h>
65 #include <Xm/DrawnB.h>
66 #include <Xm/FileSB.h>
70 #include <Xm/LabelG.h>
73 #include <Xm/MenuShell.h>
74 #include <Xm/MessageB.h>
75 #include <Xm/PanedW.h>
77 #include <Xm/PushBG.h>
78 #include <Xm/RowColumn.h>
80 #include <Xm/ScrollBar.h>
81 #include <Xm/ScrolledW.h>
82 #include <Xm/SelectioB.h>
83 #include <Xm/SeparatoG.h>
84 #include <Xm/Separator.h>
86 #include <Xm/ToggleB.h>
87 #include <Xm/ToggleBG.h>
89 void MriRegisterMotif ( app )
92 #define RCO( name, func ) WcRegisterConstructor ( app, name, func )
93 #define RCN( name, class ) WcRegisterClassName ( app, name, class )
94 #define RCP( name, class ) WcRegisterClassPtr ( app, name, class )
96 /* -- register all Motif constructors */
97 RCO( "XmCreateArrowButton", XmCreateArrowButton );
98 RCO( "XmCreateArrowButtonGadget", XmCreateArrowButtonGadget );
99 RCO( "XmCreateBulletinBoard", XmCreateBulletinBoard );
100 RCO( "XmCreateBulletinBoardDialog", XmCreateBulletinBoardDialog );
101 RCO( "XmCreateCascadeButton", XmCreateCascadeButton );
102 RCO( "XmCreateCascadeButtonGadget", XmCreateCascadeButtonGadget );
103 RCO( "XmCreateCommand", XmCreateCommand );
104 RCO( "XmCreateDialogShell", XmCreateDialogShell );
105 RCO( "XmCreateDrawingArea", XmCreateDrawingArea );
106 RCO( "XmCreateDrawnButton", XmCreateDrawnButton );
107 RCO( "XmCreateErrorDialog", XmCreateErrorDialog );
108 RCO( "XmCreateFileSelectionBox", XmCreateFileSelectionBox );
109 RCO( "XmCreateFileSelectionDialog", XmCreateFileSelectionDialog );
110 RCO( "XmCreateForm", XmCreateForm );
111 RCO( "XmCreateFormDialog", XmCreateFormDialog );
112 RCO( "XmCreateFrame", XmCreateFrame );
113 RCO( "XmCreateInformationDialog", XmCreateInformationDialog );
114 RCO( "XmCreateLabel", XmCreateLabel );
115 RCO( "XmCreateLabelGadget", XmCreateLabelGadget );
116 RCO( "XmCreateList", XmCreateList );
117 RCO( "XmCreateMainWindow", XmCreateMainWindow );
118 RCO( "XmCreateMenuBar", XmCreateMenuBar );
119 RCO( "XmCreateMenuShell", XmCreateMenuShell );
120 RCO( "XmCreateMessageBox", XmCreateMessageBox );
121 RCO( "XmCreateMessageDialog", XmCreateMessageDialog );
122 RCO( "XmCreateOptionMenu", XmCreateOptionMenu );
123 RCO( "XmCreatePanedWindow", XmCreatePanedWindow );
124 RCO( "XmCreatePopupMenu", XmCreatePopupMenu );
125 RCO( "XmCreatePromptDialog", XmCreatePromptDialog );
126 RCO( "XmCreatePulldownMenu", XmCreatePulldownMenu );
127 RCO( "XmCreatePushButton", XmCreatePushButton );
128 RCO( "XmCreatePushButtonGadget", XmCreatePushButtonGadget );
129 RCO( "XmCreateQuestionDialog", XmCreateQuestionDialog );
130 RCO( "XmCreateRadioBox", XmCreateRadioBox );
131 RCO( "XmCreateRowColumn", XmCreateRowColumn );
132 RCO( "XmCreateScale", XmCreateScale );
133 RCO( "XmCreateScrollBar", XmCreateScrollBar );
134 RCO( "XmCreateScrolledList", XmCreateScrolledList );
135 RCO( "XmCreateScrolledText", XmCreateScrolledText );
136 RCO( "XmCreateScrolledWindow", XmCreateScrolledWindow );
137 RCO( "XmCreateSelectionBox", XmCreateSelectionBox );
138 RCO( "XmCreateSelectionDialog", XmCreateSelectionDialog );
139 RCO( "XmCreateSeparator", XmCreateSeparator );
140 RCO( "XmCreateSeparatorGadget", XmCreateSeparatorGadget );
141 RCO( "XmCreateText", XmCreateText );
142 RCO( "XmCreateToggleButton", XmCreateToggleButton );
143 RCO( "XmCreateToggleButtonGadget", XmCreateToggleButtonGadget );
144 RCO( "XmCreateWarningDialog", XmCreateWarningDialog );
145 RCO( "XmCreateWorkingDialog", XmCreateWorkingDialog );
147 /* -- register Motif widget classes */
148 RCP("xmArrowButtonWidgetClass", xmArrowButtonWidgetClass );
149 RCN("XmArrowButton", xmArrowButtonWidgetClass );
150 RCP("xmArrowButtonGadgetClass", xmArrowButtonGadgetClass );
151 RCN("XmArrowButtonGadget", xmArrowButtonGadgetClass );
152 RCP("xmBulletinBoardWidgetClass", xmBulletinBoardWidgetClass );
153 RCN("XmBulletinBoard", xmBulletinBoardWidgetClass );
154 RCP("xmCascadeButtonWidgetClass", xmCascadeButtonWidgetClass );
155 RCN("XmCascadeButton", xmCascadeButtonWidgetClass );
156 RCP("xmCascadeButtonGadgetClass", xmCascadeButtonGadgetClass );
157 RCN("XmCascadeButtonGadget", xmCascadeButtonGadgetClass );
158 RCP("xmCommandWidgetClass", xmCommandWidgetClass );
159 RCN("XmCommand", xmCommandWidgetClass );
160 RCP("xmDialogShellWidgetClass", xmDialogShellWidgetClass );
161 RCN("XmDialogShell", xmDialogShellWidgetClass );
162 RCP("xmDrawingAreaWidgetClass", xmDrawingAreaWidgetClass );
163 RCN("XmDrawingArea", xmDrawingAreaWidgetClass );
164 RCP("xmDrawnButtonWidgetClass", xmDrawnButtonWidgetClass );
165 RCN("XmDrawnButton", xmDrawnButtonWidgetClass );
166 RCP("xmFileSelectionBoxWidgetClass", xmFileSelectionBoxWidgetClass );
167 RCN("XmFileSelectionBox", xmFileSelectionBoxWidgetClass );
168 RCP("xmFormWidgetClass", xmFormWidgetClass );
169 RCN("XmForm", xmFormWidgetClass );
170 RCP("xmFrameWidgetClass", xmFrameWidgetClass );
171 RCN("XmFrame", xmFrameWidgetClass );
172 RCP("xmGadgetClass", xmGadgetClass );
173 RCN("XmGadget", xmGadgetClass );
174 RCP("xmLabelWidgetClass", xmLabelWidgetClass );
175 RCN("XmLabel", xmLabelWidgetClass );
176 RCP("xmLabelGadgetClass", xmLabelGadgetClass );
177 RCN("XmLabelGadget", xmLabelGadgetClass );
178 RCP("xmListWidgetClass", xmListWidgetClass );
179 RCN("XmList", xmListWidgetClass );
180 RCP("xmMainWindowWidgetClass", xmMainWindowWidgetClass );
181 RCN("XmMainWindow", xmMainWindowWidgetClass );
182 RCP("xmManagerWidgetClass", xmManagerWidgetClass );
183 RCN("XmManager", xmManagerWidgetClass );
184 RCP("xmMenuShellWidgetClass", xmMenuShellWidgetClass );
185 RCN("XmMenuShell", xmMenuShellWidgetClass );
186 RCP("xmMessageBoxWidgetClass", xmMessageBoxWidgetClass );
187 RCN("XmMessageBox", xmMessageBoxWidgetClass );
188 RCP("xmPanedWindowWidgetClass", xmPanedWindowWidgetClass );
189 RCN("XmPanedWindow", xmPanedWindowWidgetClass );
190 RCP("xmPrimitiveWidgetClass", xmPrimitiveWidgetClass );
191 RCN("XmPrimitive", xmPrimitiveWidgetClass );
192 RCP("xmPushButtonWidgetClass", xmPushButtonWidgetClass );
193 RCN("XmPushButton", xmPushButtonWidgetClass );
194 RCP("xmPushButtonGadgetClass", xmPushButtonGadgetClass );
195 RCN("XmPushButtonGadget", xmPushButtonGadgetClass );
196 RCP("xmRowColumnWidgetClass", xmRowColumnWidgetClass );
197 RCN("XmRowColumn", xmRowColumnWidgetClass );
198 RCP("xmScaleWidgetClass", xmScaleWidgetClass );
199 RCN("XmScale", xmScaleWidgetClass );
200 RCP("xmScrollBarWidgetClass", xmScrollBarWidgetClass );
201 RCN("XmScrollBar", xmScrollBarWidgetClass );
202 RCP("xmScrolledWindowWidgetClass", xmScrolledWindowWidgetClass );
203 RCN("XmScrolledWindow", xmScrolledWindowWidgetClass );
204 RCP("xmSelectionBoxWidgetClass", xmSelectionBoxWidgetClass );
205 RCN("XmSelectionBox", xmSelectionBoxWidgetClass );
206 RCP("xmSeparatorWidgetClass", xmSeparatorWidgetClass );
207 RCN("XmSeparator", xmSeparatorWidgetClass );
208 RCP("xmSeparatorGadgetClass", xmSeparatorGadgetClass );
209 RCN("XmSeparatorGadget", xmSeparatorGadgetClass );
210 RCP("xmTextWidgetClass", xmTextWidgetClass );
211 RCN("XmText", xmTextWidgetClass );
212 RCP("xmToggleButtonWidgetClass", xmToggleButtonWidgetClass );
213 RCN("XmToggleButton", xmToggleButtonWidgetClass );
214 RCP("xmToggleButtonGadgetClass", xmToggleButtonGadgetClass );
215 RCN("XmToggleButtonGadget", xmToggleButtonGadgetClass );