1 | /* |
---|
2 | ** Copyright (c) 1990 David E. Smyth |
---|
3 | ** |
---|
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. |
---|
14 | ** |
---|
15 | */ |
---|
16 | |
---|
17 | /* |
---|
18 | * SCCS_data: @(#)AriRegAll.c 1.0 ( 19 June 1990 ) |
---|
19 | * |
---|
20 | * Subsystem_group: |
---|
21 | * |
---|
22 | * Widget Creation Library - Athena Resource Interpreter |
---|
23 | * |
---|
24 | * Module_description: |
---|
25 | * |
---|
26 | * This module contains registration routine for all Athena |
---|
27 | * widget constructors and classes. |
---|
28 | * |
---|
29 | * Module_interface_summary: |
---|
30 | * |
---|
31 | * void AriRegisterAthena ( XtAppContext app ) |
---|
32 | * |
---|
33 | * Module_history: |
---|
34 | * |
---|
35 | * mm/dd/yy initials function action |
---|
36 | * -------- -------- -------- --------------------------------------------- |
---|
37 | * 06/19/90 D.Smyth all create. |
---|
38 | * |
---|
39 | * Design_notes: |
---|
40 | * |
---|
41 | ******************************************************************************* |
---|
42 | */ |
---|
43 | /* |
---|
44 | ******************************************************************************* |
---|
45 | * Include_files. |
---|
46 | ******************************************************************************* |
---|
47 | */ |
---|
48 | |
---|
49 | #include <X11/Xatom.h> |
---|
50 | #include <X11/Intrinsic.h> |
---|
51 | #include <X11/StringDefs.h> |
---|
52 | |
---|
53 | #include <X11/Xaw/AsciiText.h> |
---|
54 | #include <X11/Xaw/Clock.h> |
---|
55 | #include <X11/Xaw/Command.h> |
---|
56 | #include <X11/Xaw/Dialog.h> |
---|
57 | #include <X11/Xaw/Form.h> |
---|
58 | #include <X11/Xaw/Label.h> |
---|
59 | #include <X11/Xaw/MenuButton.h> |
---|
60 | #include <X11/Xaw/SimpleMenu.h> |
---|
61 | #include <X11/Xaw/SmeBSB.h> |
---|
62 | #include <X11/Xaw/SmeLine.h> |
---|
63 | |
---|
64 | #ifdef Use_AtLabel /* djf's formatted text stuff... */ |
---|
65 | #include "Label.h" |
---|
66 | #endif |
---|
67 | |
---|
68 | |
---|
69 | #include <X11/Xaw/Cardinals.h> |
---|
70 | |
---|
71 | void AriRegisterAthena ( app ) |
---|
72 | XtAppContext app; |
---|
73 | { |
---|
74 | |
---|
75 | #define RCN( name, class ) WcRegisterClassName ( app, name, class ); |
---|
76 | |
---|
77 | /* -- register all Athena widget classes */ |
---|
78 | /* Simple Widgets (Chapt 3) */ |
---|
79 | RCN("Command", commandWidgetClass ); |
---|
80 | RCN("Label", labelWidgetClass ); |
---|
81 | |
---|
82 | /* Menus (Chapt 4) */ |
---|
83 | RCN("SimpleMenu", simpleMenuWidgetClass ); |
---|
84 | RCN("SmeBSB", smeBSBObjectClass ); |
---|
85 | RCN("SmeLine", smeLineObjectClass ); |
---|
86 | RCN("MenuButton", menuButtonWidgetClass ); |
---|
87 | |
---|
88 | /* Text Widgets (Chapt 5) */ |
---|
89 | RCN("AsciiText", asciiTextWidgetClass ); |
---|
90 | RCN("Text", textWidgetClass ); |
---|
91 | |
---|
92 | /* Composite and Constraint Widgets (Chapt 6) */ |
---|
93 | RCN("Dialog", dialogWidgetClass ); |
---|
94 | RCN("Form", formWidgetClass ); |
---|
95 | |
---|
96 | /* Other Interestng Widgets (not in ref manual) */ |
---|
97 | RCN("Clock", clockWidgetClass ); |
---|
98 | |
---|
99 | #ifdef Use_AtLabel /* djf's formatted text stuff... */ |
---|
100 | RCN("AtLabel", atLabelWidgetClass ); |
---|
101 | #endif |
---|
102 | |
---|
103 | #undef RCN |
---|
104 | } |
---|