Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / DtTerm / TermView / TermView.h
1 /*
2  * $XConsortium: TermView.h /main/1 1996/04/21 19:20:17 drk $";
3  */
4
5 /*                                                                      *
6  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
7  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
8  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
9  * (c) Copyright 1993, 1994 Novell, Inc.                                *
10  */
11
12 #ifndef _Dt_TermView_h
13 #define _Dt_TermView_h
14
15 #include <Xm/Xm.h>
16 #include "TermPrim.h"
17 #ifdef  __cplusplus
18 extern "C" {
19 #endif  /* __cplusplus */
20
21 typedef enum {
22     DtTermTERM_WIDGET,
23     DtTermMENUBAR_WIDGET,
24     DtTermSCROLLBAR_WIDGET,
25     DtTermSTATUS_WIDGET
26 } _DtTermViewChildType;
27
28 #define TermRECOLOR_FUNCTIONKEY_AREA    (1 << 0)
29 #define TermRECOLOR_FUNCTIONKEY_BUTTONS (1 << 1)
30 #define TermRECOLOR_STATUS_AREA         (1 << 2)
31
32 /* Term widget... */
33 externalref WidgetClass dtTermViewWidgetClass;
34
35 typedef struct _DtTermViewClassRec *DtTermViewWidgetClass;
36 typedef struct _DtTermViewRec      *DtTermViewWidget;
37
38 /* public function declarations... */
39
40 typedef struct {
41     int reason;
42     XEvent *event;
43     Arg *arglist;
44     int argcount;
45     pid_t pid;
46     int status;
47 } DtTermViewCallbackStruct;
48
49 extern Widget DtCreateTermView(
50         Widget parent,
51         char *name,
52         ArgList arglist,
53         Cardinal argcount);
54 extern Boolean DtTermViewGetCloneEnabled(Widget w);
55 extern void DtTermViewCloneCallback(
56         Widget w,
57         XtPointer client_data,
58         XtPointer call_data);
59 extern void _DtTermViewMapHelp(Widget w, char *volume, char *id);
60 extern Widget _DtTermViewGetChild(Widget w, _DtTermViewChildType child);
61
62 #ifdef  __cplusplus
63 } /* close scope of 'extern "C"'... */
64 #endif  /* __cplusplus */
65
66 #ifndef DtNfunctionKeys
67 #define DtNfunctionKeys         "functionKeys"
68 #endif
69 #ifndef DtNmenuBar
70 #define DtNmenuBar              "menuBar"
71 #endif
72 #ifndef DtNmenuPopup
73 #define DtNmenuPopup            "menuPopup"
74 #endif
75 #ifndef DtNnewCallback
76 #define DtNnewCallback          "newCallback"
77 #endif
78 #ifndef DtNscrollBar
79 #define DtNscrollBar            "scrollBar"
80 #endif
81 #ifndef DtNspacing
82 #define DtNspacing              XmNspacing
83 #endif
84 #ifndef DtNuserFontList
85 #define DtNuserFontList         "userFontList"
86 #endif
87 #ifndef DtCFunctionKeys
88 #define DtCFunctionKeys         "FunctionKeys"
89 #endif
90 #ifndef DtCMenuBar
91 #define DtCMenuBar              "MenuBar"
92 #endif
93 #ifndef DtCMenuPopup
94 #define DtCMenuPopup            "MenuPopup"
95 #endif
96 #ifndef DtCSpacing
97 #define DtCSpacing              XmCSpacing
98 #endif
99 #ifndef DtCScrollBar
100 #define DtCScrollBar            "ScrollBar"
101 #endif
102 #ifndef DtCUserFontList
103 #define DtCUserFontList         "UserFontList"
104 #endif
105
106 #endif  /* _Dt_TermView_h */
107
108 /* DON'T ADD ANYTHING AFTER THIS #endif... */