help.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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/3 1995/11/02 14:05:30 rswiston $ */
  24. /*********************************************************************
  25. * (c) Copyright 1993, 1994 Hewlett-Packard Company
  26. * (c) Copyright 1993, 1994 International Business Machines Corp.
  27. * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  28. * (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
  29. * Novell, Inc.
  30. **********************************************************************/
  31. #pragma once
  32. #include "externals.h"
  33. /* help index flags */
  34. #define HELP_QUERY 1
  35. #define HELP_ERROR 2
  36. #define HELP_ADD_HOTSPOT_BUTTON 4
  37. #define HELP_CIRCLE_BUTTON 5
  38. #define HELP_CLEAR_ICON_BUTTON 6
  39. #define HELP_COPY_BUTTON 7
  40. #define HELP_CUT_BUTTON 8
  41. #define HELP_DELETE_HOTSPOT_BUTTON 9
  42. #define HELP_DYNAMIC_COLOR_BUTTON 10
  43. #define HELP_EDIT_BUTTON 11
  44. #define HELP_ELLIPSE_BUTTON 12
  45. #define HELP_ERASER_BUTTON 13
  46. #define HELP_FILE_BUTTON 14
  47. #define HELP_FLIP_BUTTON 15
  48. #define HELP_FLOOD_BUTTON 16
  49. #define HELP_HELP_BUTTON 17
  50. #define HELP_LINE_BUTTON 19
  51. #define HELP_MAGNIFICATION_BUTTON 20
  52. #define HELP_MENUBAR 21
  53. #define HELP_NEW_BUTTON 23
  54. #define HELP_NEW_ICON 24
  55. #define HELP_OPEN_BUTTON 25
  56. #define HELP_OPTIONS_BUTTON 26
  57. #define HELP_OUTPUT_FORMAT_BUTTON 27
  58. #define HELP_PASTE_BUTTON 29
  59. #define HELP_POINT_BUTTON 30
  60. #define HELP_POLYGON_BUTTON 31
  61. #define HELP_POLYLINE_BUTTON 32
  62. #define HELP_QUIT_BUTTON 33
  63. #define HELP_RECTANGLE_BUTTON 34
  64. #define HELP_RESIZE_ICON_BUTTON 35
  65. #define HELP_ROTATE_BUTTON 36
  66. #define HELP_SAVE_AS_BUTTON 37
  67. #define HELP_SAVE_BUTTON 38
  68. #define HELP_SCALE_BUTTON 39
  69. #define HELP_SELECT_BUTTON 40
  70. #define HELP_STATIC_COLOR_BUTTON 41
  71. #define HELP_STATIC_GREY_BUTTON 42
  72. #define HELP_UNDO_BUTTON 44
  73. #define HELP_VISIBLE_GRID_BUTTON 46
  74. #define HELP_GRAB_BUTTON 47
  75. #define HELP_FILL_BUTTON 48
  76. #define HELP_VIEWPORT 49
  77. #define HELP_MAIN_WINDOW 50
  78. #define HELP_FILEIO_ICON 51
  79. #define HELP_HELP_INTRODUCTION 60
  80. #define HELP_HELP_TASKS 61
  81. #define HELP_HELP_REFERENCE 62
  82. #define HELP_HELP_ON_ITEM 63
  83. #define HELP_HELP_USING_HELP 64
  84. #define HELP_HELP_VERSION 65
  85. #define HELP_INTRODUCTION 70
  86. #define HELP_TASKS 71
  87. #define HELP_REFERENCE 72
  88. #define HELP_ON_ITEM 73
  89. #define HELP_USING_HELP 74
  90. #define HELP_VERSION 75
  91. /* help index strings */
  92. #define HELP_QUERY_STR "query"
  93. #define HELP_ERROR_STR "error"
  94. #define HELP_ADD_HOTSPOT_BUTTON_STR "add-hotspot"
  95. #define HELP_CIRCLE_BUTTON_STR "circle-tool"
  96. #define HELP_CLEAR_ICON_BUTTON_STR "clear-icon"
  97. #define HELP_COPY_BUTTON_STR "copy"
  98. #define HELP_CUT_BUTTON_STR "cut"
  99. #define HELP_DELETE_HOTSPOT_BUTTON_STR "delete-hotspot"
  100. #define HELP_DYNAMIC_COLOR_BUTTON_STR "dymanic-colors"
  101. #define HELP_EDIT_BUTTON_STR "edit-menu"
  102. #define HELP_ELLIPSE_BUTTON_STR "ellipse-tool"
  103. #define HELP_ERASER_BUTTON_STR "eraser-tool"
  104. #define HELP_FILE_BUTTON_STR "file-menu"
  105. #define HELP_FILL_BUTTON_STR "fill-tool"
  106. #define HELP_FLIP_BUTTON_STR "flip"
  107. #define HELP_FLOOD_BUTTON_STR "flood-tool"
  108. #define HELP_HELP_BUTTON_STR "help-menu"
  109. #define HELP_LINE_BUTTON_STR "line-tool"
  110. #define HELP_MAGNIFICATION_BUTTON_STR "magnification"
  111. #define HELP_MAIN_WINDOW_STR "main"
  112. #define HELP_FILEIO_ICON_STR "IEopenDB"
  113. #define HELP_MENUBAR_STR "menubar"
  114. #define HELP_NEW_ICON_STR "newIcon"
  115. #define HELP_NEW_BUTTON_STR "new"
  116. #define HELP_OPEN_BUTTON_STR "open"
  117. #define HELP_OPTIONS_BUTTON_STR "options-menu"
  118. #define HELP_OUTPUT_FORMAT_BUTTON_STR "output-format"
  119. #define HELP_PASTE_BUTTON_STR "paste"
  120. #define HELP_POINT_BUTTON_STR "point-tool"
  121. #define HELP_POLYGON_BUTTON_STR "polygon-tool"
  122. #define HELP_POLYLINE_BUTTON_STR "polyline-tool"
  123. #define HELP_QUIT_BUTTON_STR "quit"
  124. #define HELP_RECTANGLE_BUTTON_STR "rectangle-tool"
  125. #define HELP_RESIZE_ICON_BUTTON_STR "resize"
  126. #define HELP_ROTATE_BUTTON_STR "rotate"
  127. #define HELP_SAVE_AS_BUTTON_STR "save-as"
  128. #define HELP_SAVE_BUTTON_STR "save"
  129. #define HELP_SCALE_BUTTON_STR "scale"
  130. #define HELP_SELECT_BUTTON_STR "select-tool"
  131. #define HELP_STATIC_COLOR_BUTTON_STR "static-colors"
  132. #define HELP_STATIC_GREY_BUTTON_STR "static-greys"
  133. #define HELP_UNDO_BUTTON_STR "undo"
  134. #define HELP_VIEWPORT_STR "viewport"
  135. #define HELP_VISIBLE_GRID_BUTTON_STR "visible-grid"
  136. #define HELP_GRAB_BUTTON_STR "grab-image"
  137. #define HELP_HELP_INTRODUCTION_STR "help-menu-introduction"
  138. #define HELP_HELP_TASKS_STR "help-menu-tasks"
  139. #define HELP_HELP_REFERENCE_STR "help-menu-reference"
  140. #define HELP_HELP_ON_ITEM_STR "help-menu-onItem"
  141. #define HELP_HELP_USING_HELP_STR "help-menu-usingHelp"
  142. #define HELP_HELP_VERSION_STR "help-menu-version"
  143. /* these are for the activate callback on the help menu items */
  144. #define HELP_INTRODUCTION_STR "_HOMETOPIC"
  145. #define HELP_TASKS_STR "tasks"
  146. #define HELP_REFERENCE_STR "reference"
  147. #define HELP_ON_ITEM_STR "onItem"
  148. #define HELP_USING_HELP_STR "_HOMETOPIC"
  149. #define HELP_VERSION_STR "_COPYRIGHT"
  150. #define HELP_VOLUME "Iconed"
  151. #define HELP_HELP_VOLUME "Help4Help"
  152. /* help.c */
  153. void AssignHelpCallbacks(void);
  154. void HelpTriggerCB(Widget w, caddr_t client_data, caddr_t call_data);
  155. void HelpOnItemCB(Widget w, caddr_t client_data, caddr_t call_data);
  156. void HelpHyperlinkCB(Widget w, caddr_t client_data_unused, caddr_t call_data);
  157. void HelpCloseCB(Widget w, caddr_t client_data, caddr_t call_data_unused);
  158. void HelpSetVolAndLocation(int topic);
  159. void DisplayHelp(char *helpVolume, char *locationId);
  160. void DisplayNewHelp(char *helpVolume, char *locationId);
  161. void DisplayHelpDialog(Widget helpDialog, char *helpVolume, char *locationId);
  162. Widget CreateHelpDialog(HelpStruct *pHelp);