DtMsgsP.h 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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: DtMsgsP.h /main/7 1996/06/19 11:27:42 cde-dec $ */
  24. /*
  25. * DtWidget/DtMsgsP.h
  26. */
  27. /*
  28. * DtMsgsP.h:
  29. *
  30. * Private header file for libDtWidget
  31. */
  32. #ifndef _DtMessages_h
  33. #define _DtMessages_h
  34. /*** const causes the HP compiler to complain. Remove reference until ***
  35. *** the build and integration people can figure out how to get this to ***
  36. *** work. ***/
  37. /* #define CONST const */
  38. #define CONST
  39. #ifdef I18N_MSG
  40. #include <nl_types.h>
  41. #define DTWIDGET_GETMESSAGE(set, number, string)\
  42. (char *) _DtWidgetGetMessage(set, number, string)
  43. #else /* I18N_MSG */
  44. #define DTWIDGET_GETMESSAGE(set, number, string) string
  45. #endif /* I18N_MSG */
  46. extern CONST char _DtMsgCommon_0000[];
  47. extern CONST char _DtMsgCommon_0001[];
  48. extern CONST char _DtMsgComboBox_0000[];
  49. extern CONST char _DtMsgComboBox_0001[];
  50. extern CONST char _DtMsgComboBox_0002[];
  51. extern CONST char _DtMsgComboBox_0003[];
  52. extern CONST char _DtMsgComboBox_0004[];
  53. extern CONST char _DtMsgComboBox_0005[];
  54. extern CONST char _DtMsgComboBox_0006[];
  55. extern CONST char _DtMsgComboBox_0007[];
  56. extern CONST char _DtMsgComboBox_0008[];
  57. extern CONST char _DtMsgComboBox_0009[];
  58. extern CONST char _DtMsgComboBox_0010[];
  59. extern CONST char _DtMsgComboBox_0011[];
  60. extern CONST char _DtMsgComboBox_0012[];
  61. extern CONST char _DtMsgComboBox_0013[];
  62. extern CONST char _DtMsgComboBox_0014[];
  63. extern CONST char _DtMsgDialogBox_0000[];
  64. extern CONST char _DtMsgDialogBox_0001[];
  65. extern CONST char _DtMsgEditor_0000[];
  66. extern CONST char _DtMsgEditor_0001[];
  67. extern CONST char _DtMsgEditor_0002[];
  68. extern CONST char _DtMsgEditor_0003[];
  69. extern CONST char _DtMsgEditor_0004[];
  70. extern CONST char _DtMsgEditor_0005[];
  71. extern CONST char _DtMsgEditor_0006[];
  72. extern CONST char _DtMsgEditor_0007[];
  73. extern CONST char _DtMsgEditor_0008[];
  74. extern CONST char _DtMsgEditor_0009[];
  75. extern CONST char _DtMsgEditor_0010[];
  76. extern CONST char _DtMsgEditor_0011[];
  77. extern CONST char _DtMsgEditor_0012[];
  78. extern CONST char _DtMsgEditor_0013[];
  79. extern CONST char _DtMsgEditor_0014[];
  80. extern CONST char _DtMsgEditor_0015[];
  81. extern CONST char _DtMsgEditor_0016[];
  82. extern CONST char _DtMsgEditor_0017[];
  83. extern CONST char _DtMsgEditor_0018[];
  84. extern CONST char _DtMsgEditor_0019[];
  85. extern CONST char _DtMsgEditor_0020[];
  86. extern CONST char _DtMsgEditor_0021[];
  87. extern CONST char _DtMsgEditor_0022[];
  88. extern CONST char _DtMsgEditor_0023[];
  89. extern CONST char _DtMsgEditor_0024[];
  90. extern CONST char _DtMsgEditor_0025[];
  91. extern CONST char _DtMsgIcon_0000[];
  92. extern CONST char _DtMsgIcon_0001[];
  93. extern CONST char _DtMsgIcon_0002[];
  94. extern CONST char _DtMsgIcon_0003[];
  95. extern CONST char _DtMsgIcon_0004[];
  96. extern CONST char _DtMsgIcon_0005[];
  97. extern CONST char _DtMsgIndicator_0000[];
  98. extern CONST char _DtMsgMenuButton_0000[];
  99. extern CONST char _DtMsgMenuButton_0001[];
  100. extern CONST char _DtMsgMenuButton_0002[];
  101. extern CONST char _DtMsgSpinBox_0000[];
  102. extern CONST char _DtMsgSpinBox_0001[];
  103. extern CONST char _DtMsgSpinBox_0002[];
  104. extern CONST char _DtMsgSpinBox_0003[];
  105. extern CONST char _DtMsgSpinBox_0004[];
  106. extern CONST char _DtMsgSpinBox_0005[];
  107. extern CONST char _DtMsgSpinBox_0006[];
  108. extern CONST char _DtMsgSpinBox_0007[];
  109. extern CONST char _DtMsgSpinBox_0008[];
  110. extern CONST char _DtMsgSpinBox_0009[];
  111. extern CONST char _DtMsgSpinBox_0010[];
  112. extern CONST char _DtMsgSpinBox_0011[];
  113. extern CONST char _DtMsgSpinBox_0012[];
  114. extern CONST char _DtMsgSpinBox_0013[];
  115. extern CONST char _DtMsgSpinBox_0014[];
  116. extern CONST char _DtMsgTitleBox_0000[];
  117. extern CONST char _DtMsgTitleBox_0001[];
  118. extern CONST char _DtMsgTitleBox_0002[];
  119. extern CONST char _DtMsgTitleBox_0003[];
  120. extern CONST char _DtMsgTitleBox_0004[];
  121. #ifdef I18N_MSG
  122. /*
  123. * Message set for shared messages
  124. */
  125. #define MS_Common 2
  126. /* Message IDs for shared messages */
  127. #define MSG_CLOSE 1
  128. #define MSG_HELP 2
  129. /*
  130. * Message set for Editor widget
  131. */
  132. #define MS_Editor 3
  133. /* Message IDs for Editor */
  134. #define EDITOR_FORMAT_SETTINGS 1
  135. #define EDITOR_RIGHT_MARGIN 2
  136. #define EDITOR_LEFT_MARGIN 3
  137. #define EDITOR_LEFT_ALIGN 4
  138. #define EDITOR_RIGHT_ALIGN 5
  139. #define EDITOR_JUSTIFY 6
  140. #define EDITOR_CENTER 7
  141. #define EDITOR_PARAGRAPH 8
  142. #define EDITOR_ALL 9
  143. #define EDITOR_SPELL_TITLE 20
  144. #define EDITOR_FIND_TITLE 21
  145. #define EDITOR_MISSPELLED 22
  146. #define EDITOR_FIND_LABEL 23
  147. #define EDITOR_CHANGE_LABEL 24
  148. #define EDITOR_FIND_BUTTON 25
  149. #define EDITOR_CHANGE_BUTTON 26
  150. #define EDITOR_CHNG_ALL_BUTTON 27
  151. #define EDITOR_NO_FIND 30
  152. #define EDITOR_INFO_TITLE 31
  153. #define EDITOR_LINE 40
  154. #define EDITOR_TOTAL 41
  155. #define EDITOR_OVR 42
  156. #define EDITOR_INS 43
  157. #define EDITOR_FILTER_ERROR 50
  158. #define EDITOR_FILTER_ERROR2 51
  159. #define EDITOR_ERROR_TITLE 52
  160. /*
  161. * Message set for MenuButton widget
  162. */
  163. #define MS_MenuButton 4
  164. /* Message IDs for MenuButton*/
  165. #define MENU_POST 1
  166. #define MENU_PARENT 2
  167. #define MENU_SUBMENU 3
  168. /*
  169. * Message set for ComboBox widget
  170. */
  171. #define MS_ComboBox 5
  172. /* Message IDs for ComboBox */
  173. #define COMBO_ALIGNMENT 1
  174. #define COMBO_MARGIN_HEIGHT 2
  175. #define COMBO_MARGIN_WIDTH 3
  176. #define COMBO_HORIZONTAL_SPACING 4
  177. #define COMBO_VERTICAL_SPACING 5
  178. #define COMBO_ORIENTATION 6
  179. #define COMBO_ITEM_COUNT 7
  180. #define COMBO_VISIBLE_ITEM 8
  181. #define COMBO_TEXT 9
  182. #define COMBO_SET_ITEM 10
  183. #define COMBO_SELECT_ITEM 11
  184. #define COMBO_RESIZE 12
  185. #define COMBO_LABEL 13
  186. #define COMBO_CVTSTRING 14
  187. #define COMBO_DEL_POS 15
  188. /*
  189. * Message set for SpinBox widget
  190. */
  191. #define MS_SpinBox 6
  192. /* Message IDs for SpinBox */
  193. #define SPIN_ARROW_SENSITIVE 1
  194. #define SPIN_ALIGNMENT 2
  195. #define SPIN_INIT_DELAY 3
  196. #define SPIN_MARGIN_HEIGHT 4
  197. #define SPIN_MARGIN_WIDTH 5
  198. #define SPIN_ARROW_LAYOUT 6
  199. #define SPIN_REPEAT_DELAY 7
  200. #define SPIN_ITEM_COUNT 8
  201. #define SPIN_POSITION_STRING 9
  202. #define SPIN_POSITION_NUMERIC 10
  203. #define SPIN_DECIMAL_POINTS 11
  204. #define SPIN_MIN_MAX 12
  205. #define SPIN_TEXT 13
  206. #define SPIN_SET_ITEM 14
  207. #define SPIN_LABEL 15
  208. extern char * _DtWidgetGetMessage(
  209. int set,
  210. int n,
  211. char *s );
  212. #endif /* I18N_MSG */
  213. #endif /* _DtMessageh */