2 ** Copyright (c) 1990 David E. Smyth
4 ** Redistribution and use in source and binary forms are permitted
5 ** provided that the above copyright notice and this paragraph are
6 ** duplicated in all such forms and that any documentation, advertising
7 ** materials, and other materials related to such distribution and use
8 ** acknowledge that the software was developed by David E. Smyth. The
9 ** name of David E. Smyth may not be used to endorse or promote products
10 ** derived from this software without specific prior written permission.
11 ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
12 ** WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
13 ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 * SCCS_data: @(#)AriRegAll.c 1.0 ( 19 June 1990 )
22 * Widget Creation Library - Athena Resource Interpreter
26 * This module contains registration routine for all Athena
27 * widget constructors and classes.
29 * Module_interface_summary:
31 * void AriRegisterAthena ( XtAppContext app )
35 * mm/dd/yy initials function action
36 * -------- -------- -------- ---------------------------------------------
37 * 06/19/90 D.Smyth all create.
41 *******************************************************************************
44 *******************************************************************************
46 *******************************************************************************
49 #include <X11/Xatom.h>
50 #include <X11/Intrinsic.h>
51 #include <X11/StringDefs.h>
53 #include <X11/Xaw/AsciiText.h>
54 #include <X11/Xaw/Box.h>
55 #include <X11/Xaw/Clock.h>
56 #include <X11/Xaw/Command.h>
57 #include <X11/Xaw/Dialog.h>
58 #include <X11/Xaw/Form.h>
59 #include <X11/Xaw/Grip.h>
60 #include <X11/Xaw/Label.h>
61 #include <X11/Xaw/List.h>
63 #include <X11/Xaw/Logo.h>
64 #include <X11/Xaw/MenuButton.h>
65 #include <X11/Xaw/Scrollbar.h>
66 #include <X11/Xaw/SimpleMenu.h>
67 #include <X11/Xaw/SmeBSB.h>
68 #include <X11/Xaw/SmeLine.h>
69 #include <X11/Xaw/StripChart.h>
70 #include <X11/Xaw/Paned.h>
71 #include <X11/Xaw/Toggle.h>
72 #include <X11/Xaw/Viewport.h>
74 #include <X11/Xaw/Cardinals.h>
76 void AriRegisterAthena ( app )
80 #define RCN( name, class ) WcRegisterClassName ( app, name, class );
81 #define RCP( name, class ) WcRegisterClassPtr ( app, name, class );
83 /* -- register all Athena widget classes */
84 /* Simple Widgets (Chapt 3) */
85 RCN("Command", commandWidgetClass );
86 RCP("commandWidgetClass", commandWidgetClass );
87 RCN("Grip", gripWidgetClass );
88 RCP("gripWidgetClass", gripWidgetClass );
89 RCN("Label", labelWidgetClass );
90 RCP("labelWidgetClass", labelWidgetClass );
91 RCN("List", listWidgetClass );
92 RCP("listWidgetClass", listWidgetClass );
93 RCN("MList", mlistWidgetClass );
94 RCP("mlistWidgetClass", mlistWidgetClass );
95 RCN("Scrollbar", scrollbarWidgetClass );
96 RCP("scrollbarWidgetClass", scrollbarWidgetClass );
97 RCN("Simple", simpleWidgetClass );
98 RCP("simpleWidgetClass", simpleWidgetClass );
99 RCN("StripChart", stripChartWidgetClass );
100 RCP("stripChartWidgetClass", stripChartWidgetClass );
101 RCN("Toggle", toggleWidgetClass );
102 RCP("toggleWidgetClass", toggleWidgetClass );
104 /* Menus (Chapt 4) */
105 RCN("SimpleMenu", simpleMenuWidgetClass );
106 RCP("simpleMenuWidgetClass", simpleMenuWidgetClass );
107 RCN("SmeBSB", smeBSBObjectClass );
108 RCP("smeBSBObjectClass", smeBSBObjectClass );
109 RCN("SmeLine", smeLineObjectClass );
110 RCP("smeLineObjectClass", smeLineObjectClass );
111 RCN("Sme", smeObjectClass );
112 RCP("smeObjectClass", smeObjectClass );
113 RCN("MenuButton", menuButtonWidgetClass );
114 RCP("menuButtonWidgetClass", menuButtonWidgetClass );
116 /* Text Widgets (Chapt 5) */
117 RCN("AsciiText", asciiTextWidgetClass ); /* NB name */
118 RCP("asciiTextWidgetClass", asciiTextWidgetClass );
119 RCN("AsciiSrc", asciiSrcObjectClass );
120 RCP("asciiSrcObjectClass", asciiSrcObjectClass );
121 RCN("AsciiSink", asciiSinkObjectClass );
122 RCP("asciiSinkObjectClass", asciiSinkObjectClass );
123 RCN("Text", textWidgetClass );
124 RCP("textWidgetClass", textWidgetClass );
126 /* Composite and Constraint Widgets (Chapt 6) */
127 RCN("Box", boxWidgetClass );
128 RCP("boxWidgetClass", boxWidgetClass );
129 RCN("Dialog", dialogWidgetClass );
130 RCP("dialogWidgetClass", dialogWidgetClass );
131 RCN("Form", formWidgetClass );
132 RCP("formWidgetClass", formWidgetClass );
133 RCN("Paned", panedWidgetClass );
134 RCP("panedWidgetClass", panedWidgetClass );
135 RCN("Viewport", viewportWidgetClass );
136 RCP("viewportWidgetClass", viewportWidgetClass );
138 /* Other Interestng Widgets (not in ref manual) */
139 RCN("ClockWidget", clockWidgetClass );
140 RCP("clockWidgetClass", clockWidgetClass );
141 RCN("LogoWidget", logoWidgetClass );
142 RCP("logoWidgetClass", logoWidgetClass );