2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
23 /* $XConsortium: HelpQuickDP.h /main/6 1996/04/05 14:41:19 mgreess $ */
24 /*************************************<+>*************************************
25 *****************************************************************************
27 ** File: HelpQuickDP.h
29 ** Project: CDE 1.0 Common Desktop Environment
31 ** Description: Privite Header file for HelpQuickD.c
34 ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
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.
41 *******************************************************************
42 *************************************<+>*************************************/
44 #ifndef _DtHelpQuickDP_h
45 #define _DtHelpQuickDP_h
47 #include <Xm/BulletinBP.h>
49 #include <Dt/HelpQuickD.h>
51 #include "HelpQuickDI.h"
52 #include "HelpDialogP.h"
55 #define DtNO_JUMP_UPDATE 1
56 #define DtJUMP_UPDATE 2
59 #define XmDIALOG_SUFFIX "_popup"
60 #define XmDIALOG_SUFFIX_SIZE 6
63 /* Defines for use in allocation geometry matrix. */
64 #define TB_MAX_WIDGETS_VERT 7
65 #define TB_MAX_NUM_WIDGETS 12
69 /* Class Part Structure Definition */
73 XtPointer extension; /* Pointer to extension record */
74 } DtHelpQuickDialogWidgetClassPart;
79 /* Full class record declaration */
81 typedef struct _DtHelpQuickDialogWidgetClassRec
83 CoreClassPart core_class;
84 CompositeClassPart composite_class;
85 ConstraintClassPart constraint_class;
86 XmManagerClassPart manager_class;
87 XmBulletinBoardClassPart bulletin_board_class;
88 DtHelpQuickDialogWidgetClassPart selection_box_class;
89 } DtHelpQuickDialogWidgetClassRec;
91 externalref DtHelpQuickDialogWidgetClassRec dtHelpQuickDialogWidgetClassRec;
94 /* fields for the Quick Help widget record */
96 /* reuse the CommonHelpStuff structure from HelpDialogP.h */
97 /* reuse the BacktrackStuff structure from HelpDialogP.h */
98 /* reuse the PrintStuff structure from HelpDialogP.h */
100 typedef struct _DtHelpQuickHelpStuff
103 Widget definitionBox;
104 Boolean minimize_buttons;
106 /* Help Dialog Widgets */
108 Widget displayAreaFrame;
111 Widget closeButton; /* close button */
112 XmString closeLabelString;
113 XtCallbackList closeCallback;
115 Widget moreButton; /* Application button */
116 XmString moreLabelString;
118 Widget backButton; /* Backtrack button */
119 XmString backLabelString;
121 Widget printButton; /* print button */
122 XmString printLabelString;
124 Widget helpButton; /* help button */
125 XmString helpLabelString;
126 } _DtHelpQuickHelpStuff;
130 _DtHelpDisplayWidgetStuff display;
131 _DtHelpCommonHelpStuff help;
132 _DtHelpQuickHelpStuff qhelp;
133 _DtHelpBacktrackStuff backtr;
134 _DtHelpPrintStuff print;
135 } _DtHelpQuickDialogWidgetPart;
138 /****************************************************************
140 * Full instance record declaration
142 ****************************************************************/
144 typedef struct _DtHelpQuickDialogWidgetRec
147 CompositePart composite;
148 ConstraintPart constraint;
149 XmManagerPart manager;
150 XmBulletinBoardPart bulletin_board;
151 _DtHelpQuickDialogWidgetPart qhelp_dialog;
152 } DtHelpQuickDialogWidgetRec;
156 /******** Private Function Declarations ********/
157 extern XmGeoMatrix _DtHelpQuickDialogWidgetGeoMatrixCreate(
160 XtWidgetGeometry *desired) ;
161 extern Boolean _DtHelpQuickDialogWidgetNoGeoRequest(
162 XmGeoMatrix geoSpec) ;
163 extern void _DtHelpQuickDialogGetCloseLabelString(
167 extern void _DtHelpQuickDialogGetHelpLabelString(
172 /******** End Private Function Declarations ********/
176 #endif /* _DtHelpDialogP_h */
177 /* DON'T ADD ANYTHING AFTER THIS #endif */