4 nm $
* |
egrep '(Widget|Obj|Object)Class' | \
5 awk '{ if ($2 == "D" || $2 == "G") print $3; }' |
sed -e 's/^_//' | \
6 (cat - ; echo "objectClass") |
sort -u |
egrep -v 'ClassRec$' | \
7 egrep -v 'vPanedWidgetClass$' | \
8 egrep -v 'ascii(Disk|String)WidgetClass$' | \
11 printf "extern WidgetClass %s;\n", $1;
12 printf "{ \"%s\", &%s },\n", $1, $1;
13 }' |
sed -e 's/WidgetClass"/"/' -e 's/ObjClass"/"/' \
14 -e 's/ObjectClass"/"/' -e 's/objectClass"/object"/' \
15 -e 's/widgetClass"/widget"/' >$tmp
19 * This file is generated by the genlist.sh script and contains an array of
20 * all the widgets in Athena widget set.
24 #include <X11/IntrinsicP.h>
25 #include <X11/Xmu/WidgetNode.h>
28 egrep '^extern WidgetClass' $tmp
31 XmuWidgetNode XawWidgetArray[] = {
37 int XawWidgetCount = XtNumber(XawWidgetArray);