Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / lib / DtTerm / TermView / TermView.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /*
24  * $XConsortium: TermView.h /main/1 1996/04/21 19:20:17 drk $";
25  */
26
27 /*                                                                      *
28  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
29  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
30  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
31  * (c) Copyright 1993, 1994 Novell, Inc.                                *
32  */
33
34 #ifndef _Dt_TermView_h
35 #define _Dt_TermView_h
36
37 #include <Xm/Xm.h>
38 #include "TermPrim.h"
39 #ifdef  __cplusplus
40 extern "C" {
41 #endif  /* __cplusplus */
42
43 typedef enum {
44     DtTermTERM_WIDGET,
45     DtTermMENUBAR_WIDGET,
46     DtTermSCROLLBAR_WIDGET,
47     DtTermSTATUS_WIDGET
48 } _DtTermViewChildType;
49
50 #define TermRECOLOR_FUNCTIONKEY_AREA    (1 << 0)
51 #define TermRECOLOR_FUNCTIONKEY_BUTTONS (1 << 1)
52 #define TermRECOLOR_STATUS_AREA         (1 << 2)
53
54 /* Term widget... */
55 externalref WidgetClass dtTermViewWidgetClass;
56
57 typedef struct _DtTermViewClassRec *DtTermViewWidgetClass;
58 typedef struct _DtTermViewRec      *DtTermViewWidget;
59
60 /* public function declarations... */
61
62 typedef struct {
63     int reason;
64     XEvent *event;
65     Arg *arglist;
66     int argcount;
67     pid_t pid;
68     int status;
69 } DtTermViewCallbackStruct;
70
71 extern Widget DtCreateTermView(
72         Widget parent,
73         char *name,
74         ArgList arglist,
75         Cardinal argcount);
76 extern Boolean DtTermViewGetCloneEnabled(Widget w);
77 extern void DtTermViewCloneCallback(
78         Widget w,
79         XtPointer client_data,
80         XtPointer call_data);
81 extern void _DtTermViewMapHelp(Widget w, char *volume, char *id);
82 extern Widget _DtTermViewGetChild(Widget w, _DtTermViewChildType child);
83
84 #ifdef  __cplusplus
85 } /* close scope of 'extern "C"'... */
86 #endif  /* __cplusplus */
87
88 #ifndef DtNfunctionKeys
89 #define DtNfunctionKeys         "functionKeys"
90 #endif
91 #ifndef DtNmenuBar
92 #define DtNmenuBar              "menuBar"
93 #endif
94 #ifndef DtNmenuPopup
95 #define DtNmenuPopup            "menuPopup"
96 #endif
97 #ifndef DtNnewCallback
98 #define DtNnewCallback          "newCallback"
99 #endif
100 #ifndef DtNscrollBar
101 #define DtNscrollBar            "scrollBar"
102 #endif
103 #ifndef DtNspacing
104 #define DtNspacing              XmNspacing
105 #endif
106 #ifndef DtNuserFontList
107 #define DtNuserFontList         "userFontList"
108 #endif
109 #ifndef DtCFunctionKeys
110 #define DtCFunctionKeys         "FunctionKeys"
111 #endif
112 #ifndef DtCMenuBar
113 #define DtCMenuBar              "MenuBar"
114 #endif
115 #ifndef DtCMenuPopup
116 #define DtCMenuPopup            "MenuPopup"
117 #endif
118 #ifndef DtCSpacing
119 #define DtCSpacing              XmCSpacing
120 #endif
121 #ifndef DtCScrollBar
122 #define DtCScrollBar            "ScrollBar"
123 #endif
124 #ifndef DtCUserFontList
125 #define DtCUserFontList         "UserFontList"
126 #endif
127
128 #endif  /* _Dt_TermView_h */
129
130 /* DON'T ADD ANYTHING AFTER THIS #endif... */