Help.h 6.9 KB

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