| 1 |
/* |
| 2 |
|
| 3 |
Copyright (c) 1991, 1994, 1998 The Open Group |
| 4 |
|
| 5 |
Permission to use, copy, modify, distribute, and sell this software and its |
| 6 |
documentation for any purpose is hereby granted without fee, provided that |
| 7 |
the above copyright notice appear in all copies and that both that |
| 8 |
copyright notice and this permission notice appear in supporting |
| 9 |
documentation. |
| 10 |
|
| 11 |
The above copyright notice and this permission notice shall be included in |
| 12 |
all copies or substantial portions of the Software. |
| 13 |
|
| 14 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 |
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| 18 |
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 19 |
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 20 |
|
| 21 |
Except as contained in this notice, the name of The Open Group shall not be |
| 22 |
used in advertising or otherwise to promote the sale, use or other dealings |
| 23 |
in this Software without prior written authorization from The Open Group. |
| 24 |
|
| 25 |
*/ |
| 26 |
|
| 27 |
#ifdef HAVE_CONFIG_H |
| 28 |
#include <config.h> |
| 29 |
#endif |
| 30 |
#include <X11/IntrinsicP.h> |
| 31 |
#include <X11/Xaw/AllWidgets.h> |
| 32 |
|
| 33 |
#include <X11/Composite.h> |
| 34 |
#include <X11/Constraint.h> |
| 35 |
#include <X11/Core.h> |
| 36 |
#include <X11/Object.h> |
| 37 |
#include <X11/RectObj.h> |
| 38 |
#include <X11/Shell.h> |
| 39 |
#include <X11/Vendor.h> |
| 40 |
#include <X11/Xaw/AsciiSink.h> |
| 41 |
#include <X11/Xaw/AsciiText.h> |
| 42 |
#include <X11/Xaw/Box.h> |
| 43 |
#include <X11/Xaw/Dialog.h> |
| 44 |
#include <X11/Xaw/Form.h> |
| 45 |
#include <X11/Xaw/Grip.h> |
| 46 |
#include <X11/Xaw/List.h> |
| 47 |
#include <X11/Xaw/MenuButton.h> |
| 48 |
#include <X11/Xaw/MultiSink.h> |
| 49 |
#include <X11/Xaw/Paned.h> |
| 50 |
#include <X11/Xaw/Panner.h> |
| 51 |
#include <X11/Xaw/Porthole.h> |
| 52 |
#include <X11/Xaw/Repeater.h> |
| 53 |
#include <X11/Xaw/Scrollbar.h> |
| 54 |
#include <X11/Xaw/SimpleMenu.h> |
| 55 |
#include <X11/Xaw/Sme.h> |
| 56 |
#include <X11/Xaw/SmeBSB.h> |
| 57 |
#include <X11/Xaw/SmeLine.h> |
| 58 |
#include <X11/Xaw/StripChart.h> |
| 59 |
#include <X11/Xaw/Toggle.h> |
| 60 |
#include <X11/Xaw/Tree.h> |
| 61 |
#include <X11/Xaw/Viewport.h> |
| 62 |
|
| 63 |
#define DATA(name,class) { (char *)name, class, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } |
| 64 |
XmuWidgetNode XawWidgetArray[] = { |
| 65 |
DATA( "applicationShell", &applicationShellWidgetClass ), |
| 66 |
DATA( "asciiSink", &asciiSinkObjectClass ), |
| 67 |
DATA( "asciiSrc", &asciiSrcObjectClass ), |
| 68 |
DATA( "asciiText", &asciiTextWidgetClass ), |
| 69 |
DATA( "box", &boxWidgetClass ), |
| 70 |
DATA( "command", &commandWidgetClass ), |
| 71 |
DATA( "composite", &compositeWidgetClass ), |
| 72 |
DATA( "constraint", &constraintWidgetClass ), |
| 73 |
DATA( "core", &coreWidgetClass ), |
| 74 |
DATA( "dialog", &dialogWidgetClass ), |
| 75 |
DATA( "form", &formWidgetClass ), |
| 76 |
DATA( "grip", &gripWidgetClass ), |
| 77 |
DATA( "label", &labelWidgetClass ), |
| 78 |
DATA( "list", &listWidgetClass ), |
| 79 |
DATA( "menuButton", &menuButtonWidgetClass ), |
| 80 |
DATA( "multiSink", &multiSinkObjectClass ), |
| 81 |
DATA( "multiSrc", &multiSrcObjectClass ), |
| 82 |
DATA( "object", &objectClass ), |
| 83 |
DATA( "overrideShell", &overrideShellWidgetClass ), |
| 84 |
DATA( "paned", &panedWidgetClass ), |
| 85 |
DATA( "panner", &pannerWidgetClass ), |
| 86 |
DATA( "porthole", &portholeWidgetClass ), |
| 87 |
DATA( "rect", &rectObjClass ), |
| 88 |
DATA( "repeater", &repeaterWidgetClass ), |
| 89 |
DATA( "scrollbar", &scrollbarWidgetClass ), |
| 90 |
DATA( "shell", &shellWidgetClass ), |
| 91 |
DATA( "simpleMenu", &simpleMenuWidgetClass ), |
| 92 |
DATA( "simple", &simpleWidgetClass ), |
| 93 |
DATA( "smeBSB", &smeBSBObjectClass ), |
| 94 |
DATA( "smeLine", &smeLineObjectClass ), |
| 95 |
DATA( "sme", &smeObjectClass ), |
| 96 |
DATA( "stripChart", &stripChartWidgetClass ), |
| 97 |
DATA( "textSink", &textSinkObjectClass ), |
| 98 |
DATA( "textSrc", &textSrcObjectClass ), |
| 99 |
DATA( "text", &textWidgetClass ), |
| 100 |
DATA( "toggle", &toggleWidgetClass ), |
| 101 |
DATA( "topLevelShell", &topLevelShellWidgetClass ), |
| 102 |
DATA( "transientShell", &transientShellWidgetClass ), |
| 103 |
DATA( "tree", &treeWidgetClass ), |
| 104 |
DATA( "vendorShell", &vendorShellWidgetClass ), |
| 105 |
DATA( "viewport", &viewportWidgetClass ), |
| 106 |
DATA( "wmShell", &wmShellWidgetClass ), |
| 107 |
}; |
| 108 |
#undef DATA |
| 109 |
|
| 110 |
int XawWidgetCount = XtNumber(XawWidgetArray); |
| 111 |
|