source: trunk/third/wcl/Xmp/Xmp.h @ 8837

Revision 8837, 3.4 KB checked in by ghudson, 28 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r8836, which included commits to RCS files with non-trunk default branches.
Line 
1#ifndef _Xmp_h_
2#define _Xmp_h_
3#include <X11/Xmp/COPY.h>
4
5/*
6* SCCS_data: %Z% %M% %I% %E% %U%
7*
8*       This module contains declarations useful to clients of the
9*       Xmp library.
10*
11*******************************************************************************
12*/
13
14#include <Xm/Xm.h>
15#include <X11/Wc/PortableC.h>
16
17BEGIN_NOT_Cxx
18
19/* XmpRegisterMotif registers all Motif and Xmp widgets.
20 * XmpRegisterAll and MriRegisterMotif are aliases for XmpRegisterMotif
21 * for backward compatibility.
22 */
23void XmpRegisterMotif _(( XtAppContext ));
24void XmpRegisterAll   _(( XtAppContext ));
25void MriRegisterMotif _(( XtAppContext ));
26
27/* These are called by the above functions.  If you want the callbacks
28 * or converters but not the Widgets registered, then you can just call
29 * these.  The XmpAddMotifConverters() adds those converters provided by
30 * Motif, while XmpAddConverters() adds those converters provided by libXmp.
31 */
32void XmpAddActionsAndCallbacks _(( XtAppContext ));
33void XmpAddMotifConverters     _(( XtAppContext ));
34void XmpAddConverters          _(( XtAppContext ));
35
36void XmpAddMwmCloseCallback _(( Widget, XtCallbackProc, XtPointer ));
37
38void XmpChangeNavigationType _(( Widget ));
39
40/* Support for sending WcPrint messages to an XmText widget.  The
41 * following resources can be specified on this XmText widget:
42 */
43#define XmpNmessageMaxLines     "messageMaxLines"
44#define XmpCMessageMaxLines     "MessageMaxLines"
45#define XmpNmessageColumns      "messageColumns"
46#define XmpCMessageColumns      "MessageColumns"
47#define XmpNmessageLinesLostMsg "messageLinesLostMsg"
48#define XmpCMessageLinesLostMsg "MessageLinesLostMsg"
49#define XmpNmessagePopup        "messagePopup"
50#define XmpCMessagePopup        "MessagePopup"
51#define XmpNmessageRaise        "messageRaise"
52#define XmpCMessageRaise        "MessageRaise"
53#define XmpNmessageBrokenXmTextShowPosition "messageBrokenXmTextShowPosition"
54#define XmpCMessageBrokenXmTextShowPosition "MessageBrokenXmTextShowPosition"
55
56/* resource             default
57 * messageMaxLines      100             number of lines to be put into the
58 *                                      XmText widget.  Once this limit is
59 *                                      reached, then the first lines will
60 *                                      be removed and replaced by the
61 *                                      messageLinesLostMsg.
62 * messageColumns       80              The messages will be broken into
63 *                                      multiple lines at whitespace, each
64 *                                      line with this maximum number of
65 *                                      characters.
66 * messageLinesLostMsg ... some lines lost...\n
67 *                                      This message, which should be newline
68 *                                      terminated, becomes the first line(s)
69 *                                      when some earlier message(s) get
70 *                                      eliminated due to exceeding
71 *                                      messageMaxLines in the XmText widget.
72 * messagePopup         True            The shell containing the XmText widget
73 *                                      will be popped up when a new message
74 *                                      arrives.
75 * messageRaise         False           The shell will be raised to (try and)
76 *                                      become the top window when a new
77 *                                      message arrives.
78 * messageBrokenXmTextShowPosition False You may be surprised to discover that
79 *                                      XmTextShowPosition() is a VERY
80 *                                      special case function, which often
81 *                                      does not work.  XmpPrint would like
82 *                                      to scroll the message window when a
83 *                                      message comes in, and would like to
84 *                                      use XmTextShowPosition() to do so.
85 *                                      If it works, OK.  If not, set this
86 *                                      resource...
87 *
88 * These resources are fetched from the XmText widget when the widget becomes
89 * the message widget due to a call to XmpMessageWidget(), XmpMessageWidgetCB(),
90 * or XmpMessageWidgetACT().
91 */
92extern void XmpMessageWidget _(( Widget ));
93
94
95END_NOT_Cxx
96
97#endif /* _Xmp_h_ */
Note: See TracBrowser for help on using the repository browser.