Link with C++ linker
[oweals/cde.git] / cde / programs / dtstyle / Help.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 /* $XConsortium: Help.h /main/5 1996/03/25 00:51:20 pascale $ */
24 /*
25  ****************************************************************************
26  **
27  **   File:        Help.h
28  **
29  **   Project:     DT 3.0
30  **
31  **   Description: header file for the help portion of Dtstyle
32  **
33  **
34  ****************************************************************************/
35 /*
36  * (c) Copyright 1996 Digital Equipment Corporation.
37  * (c) Copyright 1990, 1996 Hewlett-Packard Company.
38  * (c) Copyright 1996 International Business Machines Corp.
39  * (c) Copyright 1996 Sun Microsystems, Inc.
40  * (c) Copyright 1996 Novell, Inc. 
41  * (c) Copyright 1996 FUJITSU LIMITED.
42  * (c) Copyright 1996 Hitachi.
43  */
44
45 #ifndef _help_h
46 #define _help_h
47
48 /*
49  * defines for help on the main window
50  */
51 #define HELP_MAIN_WINDOW        40
52 #define HELP_MAIN_WINDOW_STR    "mainWindow"
53
54 /*
55  * defines for help on the menubar
56  */
57 #define HELP_MENUBAR            1
58 #define HELP_MENUBAR_STR        "menubar"
59
60 /*
61  * defines for help on the menubar buttons
62  */
63 #define HELP_FILE_BUTTON        2
64 #define HELP_HELP_BUTTON        3
65
66 #define HELP_FILE_BUTTON_STR    "fileButton"
67 #define HELP_HELP_BUTTON_STR    "helpButton"
68
69 /*
70  * defines for help on the menu panes
71  */
72 #define HELP_FILE_MENU          4
73 #define HELP_HELP_MENU          5
74
75 #define HELP_FILE_MENU_STR      "fileMenu"
76 #define HELP_HELP_MENU_STR      "helpMenu"
77
78 /*
79  * defines for help on the File menu items
80  */
81 #define HELP_EXIT               6
82 #define HELP_EXIT_STR           "exitMenu"
83
84 /*
85  * defines for help on the Help menu items
86  */
87 #define HELP_INTRODUCTION       7
88 #define HELP_TASKS              8               /* unused */
89 #define HELP_REFERENCE          9
90 #define HELP_ITEM               10
91 #define HELP_USING              11              /* unused */
92 #define HELP_VERSION            12
93
94 #define HELP_USING_HELP_VOLUME  "Help4Help"
95 #define HELP_VOLUME             "Stylemgr"
96
97 #define HELP_INTRODUCTION_STR   "_homeTopic"
98 #define HELP_TASKS_STR          "tasks"
99 #define HELP_REFERENCE_STR      "reference"
100 #define HELP_ITEM_STR           "onItem"
101 #define HELP_USING_STR          "_hometopic"
102 #define HELP_VERSION_STR        "_copyright"
103
104 /*
105  * defines for the Dtstyle main window buttons
106  */
107 #define HELP_COLOR_BUTTON               14
108 #define HELP_FONT_BUTTON                15
109 #define HELP_BACKDROP_BUTTON            16
110 #define HELP_KEYBOARD_BUTTON            17
111 #define HELP_MOUSE_BUTTON               18
112 #define HELP_AUDIO_BUTTON               19
113 #define HELP_SCREEN_BUTTON              20
114 #define HELP_DTWM_BUTTON                21
115 #define HELP_STARTUP_BUTTON             22
116 #define HELP_I18N_BUTTON                23
117
118 #define HELP_COLOR_BUTTON_STR           "colorButton"
119 #define HELP_FONT_BUTTON_STR            "fontButton"
120 #define HELP_BACKDROP_BUTTON_STR        "backdropButton"
121 #define HELP_KEYBOARD_BUTTON_STR        "keyboardButton"
122 #define HELP_MOUSE_BUTTON_STR           "mouseButton"
123 #define HELP_AUDIO_BUTTON_STR           "audioButton"
124 #define HELP_SCREEN_BUTTON_STR          "screenButton"
125 #define HELP_DTWM_BUTTON_STR            "dtwmButton"
126 #define HELP_STARTUP_BUTTON_STR         "startupButton"
127 #define HELP_I18N_BUTTON_STR            "i18nButton"
128
129 /*
130  * defines for help on the Color dialogs
131  */
132 #define HELP_COLOR_DIALOG                       24
133 #define HELP_ADD_PALETTE_DIALOG                 25
134 #define HELP_ADD_PALETTE_WARNING_DIALOG         26
135 #define HELP_DELETE_PALETTE_DIALOG              27
136 #define HELP_DELETE_PALETTE_WARNING_DIALOG      28
137 #define HELP_MODIFY_PALETTE_DIALOG              29
138 #define HELP_COLOR_USE_DIALOG                   30
139
140 #define HELP_COLOR_DIALOG_STR                   "colorDialog"
141 #define HELP_ADD_PALETTE_DIALOG_STR             "addPaletteDialog"
142 #define HELP_ADD_PALETTE_WARNING_DIALOG_STR     "addPaletteWarningDialog"
143 #define HELP_DELETE_PALETTE_DIALOG_STR          "deletePaletteDialog"
144 #define HELP_DELETE_PALETTE_WARNING_DIALOG_STR  "deletePaletteWarningDialog"
145 #define HELP_MODIFY_PALETTE_DIALOG_STR          "modifyPaletteDialog"
146 #define HELP_COLOR_USE_DIALOG_STR               "colorUseDialog"
147
148 /*
149  * defines for help on the Font dialog
150  */
151 #define HELP_FONT_DIALOG                31
152 #define HELP_FONT_DIALOG_STR            "fontDialog"
153
154 /*
155  * defines for help on the Backdrop dialog
156  */
157 #define HELP_BACKDROP_DIALOG            32
158 #define HELP_BACKDROP_DIALOG_STR        "backdropDialog"
159
160 /*
161  * defines for help on the Keyboard dialog
162  */
163 #define HELP_KEYBOARD_DIALOG            33
164 #define HELP_KEYBOARD_DIALOG_STR        "keyboardDialog"
165
166 /*
167  * defines for help on the Mouse dialog
168  */
169 #define HELP_MOUSE_DIALOG               34
170 #define HELP_MOUSE_DIALOG_STR           "mouseDialog"
171
172 /*
173  * defines for help on the Audio dialog
174  */
175 #define HELP_AUDIO_DIALOG               35
176 #define HELP_AUDIO_DIALOG_STR           "audioDialog"
177
178 /*
179  * defines for help on the Screen dialog
180  */
181 #define HELP_SCREEN_DIALOG              36
182 #define HELP_SCREEN_DIALOG_STR          "screenDialog"
183
184 /*
185  * defines for help on the Dtwm dialog
186  */
187 #define HELP_DTWM_DIALOG                37
188 #define HELP_DTWM_DIALOG_STR           "dtwmDialog"
189
190 /*
191  * defines for help on the Startup dialog
192  */
193 #define HELP_STARTUP_DIALOG             38
194 #define HELP_STARTUP_DIALOG_STR         "startupDialog"
195
196 /*
197  * defines for help on the I18n dialog
198  */
199 #define HELP_I18N_DIALOG                39
200 #define HELP_I18N_DIALOG_STR            "i18nDialog"
201
202 /*  typedef statements */
203
204 typedef struct _helpStruct {
205     struct _helpStruct *pNext;
206     struct _helpStruct *pPrev;
207     Widget dialog;
208     Boolean inUse;
209 } HelpStruct;
210
211
212 /*  External Interface */
213
214
215 extern void HelpRequestCB(
216                             Widget w,
217                             caddr_t client_data,
218                             caddr_t call_data ) ;
219 extern void QuickHelpRequestCB(
220                             Widget w,
221                             caddr_t client_data,
222                             caddr_t call_data ) ;
223 extern void HelpModeCB(
224                             Widget w,
225                             caddr_t client_data,
226                             caddr_t call_data ) ;
227 extern void HelpHyperlinkCB(
228                             Widget w,
229                             caddr_t client_data,
230                             caddr_t call_data ) ;
231 extern void HelpCloseCB(
232                             Widget w,
233                             caddr_t client_data,
234                             caddr_t call_data ) ;
235
236
237 #endif /*  _font_h */
238 /* DON'T ADD ANYTHING AFTER THIS #endif */
239