HelpQuickDP.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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: HelpQuickDP.h /main/6 1996/04/05 14:41:19 mgreess $ */
  24. /*************************************<+>*************************************
  25. *****************************************************************************
  26. **
  27. ** File: HelpQuickDP.h
  28. **
  29. ** Project: CDE 1.0 Common Desktop Environment
  30. **
  31. ** Description: Privite Header file for HelpQuickD.c
  32. ** -----------
  33. **
  34. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
  35. **
  36. ** (c) Copyright 1993, 1994 Hewlett-Packard Company
  37. ** (c) Copyright 1993, 1994 International Business Machines Corp.
  38. ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  39. ** (c) Copyright 1993, 1994 Novell, Inc.
  40. **
  41. *******************************************************************
  42. *************************************<+>*************************************/
  43. #ifndef _DtHelpQuickDP_h
  44. #define _DtHelpQuickDP_h
  45. #include <Xm/BulletinBP.h>
  46. #include <Dt/HelpQuickD.h>
  47. #include "HelpQuickDI.h"
  48. #include "HelpDialogP.h"
  49. #define DtNO_JUMP_UPDATE 1
  50. #define DtJUMP_UPDATE 2
  51. #define XmDIALOG_SUFFIX "_popup"
  52. #define XmDIALOG_SUFFIX_SIZE 6
  53. /* Defines for use in allocation geometry matrix. */
  54. #define TB_MAX_WIDGETS_VERT 7
  55. #define TB_MAX_NUM_WIDGETS 12
  56. /* Class Part Structure Definition */
  57. typedef struct
  58. {
  59. XtPointer extension; /* Pointer to extension record */
  60. } DtHelpQuickDialogWidgetClassPart;
  61. /* Full class record declaration */
  62. typedef struct _DtHelpQuickDialogWidgetClassRec
  63. {
  64. CoreClassPart core_class;
  65. CompositeClassPart composite_class;
  66. ConstraintClassPart constraint_class;
  67. XmManagerClassPart manager_class;
  68. XmBulletinBoardClassPart bulletin_board_class;
  69. DtHelpQuickDialogWidgetClassPart selection_box_class;
  70. } DtHelpQuickDialogWidgetClassRec;
  71. externalref DtHelpQuickDialogWidgetClassRec dtHelpQuickDialogWidgetClassRec;
  72. /* fields for the Quick Help widget record */
  73. /* reuse the CommonHelpStuff structure from HelpDialogP.h */
  74. /* reuse the BacktrackStuff structure from HelpDialogP.h */
  75. /* reuse the PrintStuff structure from HelpDialogP.h */
  76. typedef struct _DtHelpQuickHelpStuff
  77. {
  78. int pad;
  79. Widget definitionBox;
  80. Boolean minimize_buttons;
  81. /* Help Dialog Widgets */
  82. Widget displayAreaFrame;
  83. Widget separator;
  84. Widget closeButton; /* close button */
  85. XmString closeLabelString;
  86. XtCallbackList closeCallback;
  87. Widget moreButton; /* Application button */
  88. XmString moreLabelString;
  89. Widget backButton; /* Backtrack button */
  90. XmString backLabelString;
  91. Widget printButton; /* print button */
  92. XmString printLabelString;
  93. Widget helpButton; /* help button */
  94. XmString helpLabelString;
  95. } _DtHelpQuickHelpStuff;
  96. typedef struct
  97. {
  98. _DtHelpDisplayWidgetStuff display;
  99. _DtHelpCommonHelpStuff help;
  100. _DtHelpQuickHelpStuff qhelp;
  101. _DtHelpBacktrackStuff backtr;
  102. _DtHelpPrintStuff print;
  103. } _DtHelpQuickDialogWidgetPart;
  104. /****************************************************************
  105. *
  106. * Full instance record declaration
  107. *
  108. ****************************************************************/
  109. typedef struct _DtHelpQuickDialogWidgetRec
  110. {
  111. CorePart core;
  112. CompositePart composite;
  113. ConstraintPart constraint;
  114. XmManagerPart manager;
  115. XmBulletinBoardPart bulletin_board;
  116. _DtHelpQuickDialogWidgetPart qhelp_dialog;
  117. } DtHelpQuickDialogWidgetRec;
  118. /******** Private Function Declarations ********/
  119. extern XmGeoMatrix _DtHelpQuickDialogWidgetGeoMatrixCreate(
  120. Widget wid,
  121. Widget instigator,
  122. XtWidgetGeometry *desired) ;
  123. extern Boolean _DtHelpQuickDialogWidgetNoGeoRequest(
  124. XmGeoMatrix geoSpec) ;
  125. extern void _DtHelpQuickDialogGetCloseLabelString(
  126. Widget wid,
  127. int resource_offset,
  128. XtArgVal *value );
  129. extern void _DtHelpQuickDialogGetHelpLabelString(
  130. Widget wid,
  131. int resource_offset,
  132. XtArgVal *value );
  133. /******** End Private Function Declarations ********/
  134. #endif /* _DtHelpDialogP_h */
  135. /* DON'T ADD ANYTHING AFTER THIS #endif */