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