1 /*
2 * Motif Tools Library, Version 3.1
3 * $Id: XtProcs.c,v 1.2 2001/09/19 02:57:18 grmcdorman Exp $
4 *
5 * Written by David Flanagan.
6 * Copyright (c) 1992-2001 by David Flanagan.
7 * All Rights Reserved. See the file COPYRIGHT for details.
8 * This is open source software. See the file LICENSE for details.
9 * There is no warranty for this software. See NO_WARRANTY for details.
10 *
11 * $Log: XtProcs.c,v $
12 * Revision 1.2 2001/09/19 02:57:18 grmcdorman
13 * This change makes the following modifications:
14 * A new program, printConfig, is provided. This is built by a
15 * simple rule in the Makefile and not installed. It prints
16 * significant defines from Xmt.tmpl.
17 *
18 * XmtP.h is now generated from XmtP.h.in using printConfig. As
19 * a result, code compiled outside of the Xmt Imakefiles will
20 * have all of the Xmt.tmpl defines.
21 *
22 * Source files are modified to use XmtP.h instead of Xmt.h.
23 *
24 * WorkingBox.c is modified to use the new Progress widget.
25 * It can be compiled in the old style if WORKINGBOX_USE_SCALE is
26 * defined at compile time.
27 *
28 * Because XmtP.h is generated dynamically, it is removed from CVS
29 * with this check-in.
30 *
31 * Revision 1.1.1.1 2001/02/10 13:52:34 motiftools
32 * Initial import of Xmt310 to CVS
33 *
34 *
35 */
36
37 #include <stdio.h>
38 #include <Xmt/XmtP.h>
39 #include <Xmt/Procedures.h>
40
41
42 static XmtProcedureInfo xt_procedures[] = {
43 {"XtManageChild", (XmtProcedure) XtManageChild, {XtRWidget}},
44 {"XtUnmanageChild", (XmtProcedure) XtUnmanageChild, {XtRWidget}},
45 {"XtSetSensitive", (XmtProcedure) XtSetSensitive, {XtRWidget, XtRBoolean}},
46 {"XtDestroyWidget", (XmtProcedure) XtDestroyWidget, {XtRWidget}},
47 {"XtAugmentTranslations", (XmtProcedure)XtAugmentTranslations,
48 {XtRWidget, XtRTranslationTable}},
49 {"XtOverrideTranslations", (XmtProcedure)XtOverrideTranslations,
50 {XtRWidget, XtRTranslationTable}},
51 {"XtPopupExclusive", (XmtProcedure)XtCallbackExclusive,
52 {XmtRCallbackWidget, XtRWidget}},
53 {"XtPopupNonexclusive", (XmtProcedure)XtCallbackNonexclusive,
54 {XmtRCallbackWidget, XtRWidget}},
55 {"XtPopupNone", (XmtProcedure)XtCallbackNone,
56 {XmtRCallbackWidget, XtRWidget}},
57 {"XtPopupSpringLoaded", (XmtProcedure)XtPopupSpringLoaded, {XtRWidget}},
58 {"XtPopdown", (XmtProcedure)XtPopdown, {XtRWidget}},
59 {"XtAddCallbacks", (XmtProcedure)XtAddCallbacks,
60 {XtRWidget, XtRString, XtRCallback}},
61 /* can't have XtRemoveCallback() because we'll never get matching client_data*/
62 {"XtError", (XmtProcedure)XtError, {XtRString}},
63 {"XtWarning", (XmtProcedure)XtWarning, {XtRString}},
64 {"XtInstallAccelerators", (XmtProcedure)XtInstallAccelerators,
65 {XtRWidget, XtRWidget}},
66 {"XtInstallAllAccelerators", (XmtProcedure)XtInstallAllAccelerators,
67 {XtRWidget, XtRWidget}},
68 {"XtSetMappedWhenManaged", (XmtProcedure)XtSetMappedWhenManaged,
69 {XtRWidget, XtRBoolean}},
70 {"XtSetKeyboardFocus", (XmtProcedure)XtSetKeyboardFocus,
71 {XtRWidget, XtRWidget}},
72 {"XtRealizeWidget", (XmtProcedure)XtRealizeWidget, {XtRWidget}},
73 };
74
75
76 #if NeedFunctionPrototypes
XmtRegisterXtProcedures(void)77 void XmtRegisterXtProcedures(void)
78 #else
79 void XmtRegisterXtProcedures()
80 #endif
81 {
82 XmtRegisterProcedures(xt_procedures, XtNumber(xt_procedures));
83 }
84