1 /*************************************<+>*************************************
2 *****************************************************************************
8 ** Description: Private include file for Popup Menu Manager class widgets
10 *****************************************************************************
12 ** Copyright (c) 1988 by Hewlett-Packard Company
13 ** Copyright (c) 1988 by the Massachusetts Institute of Technology
15 ** Permission to use, copy, modify, and distribute this software
16 ** and its documentation for any purpose and without fee is hereby
17 ** granted, provided that the above copyright notice appear in all
18 ** copies and that both that copyright notice and this permission
19 ** notice appear in supporting documentation, and that the names of
20 ** Hewlett-Packard or M.I.T. not be used in advertising or publicity
21 ** pertaining to distribution of the software without specific, written
24 *****************************************************************************
25 *************************************<+>*************************************/
28 /***********************************************************************
30 * Popup Menu Manager Widget Private Data
32 ***********************************************************************/
34 /* New fields for the PopupMgr widget class record */
36 XwPostProc manualPost
;
37 } XwPopupMgrClassPart
;
39 /* Full class record declaration */
40 typedef struct _XwPopupMgrClassRec
{
41 CoreClassPart core_class
;
42 CompositeClassPart composite_class
;
43 ConstraintClassPart constraint_class
;
44 XwManagerClassPart manager_class
;
45 XwMenuMgrClassPart menu_mgr_class
;
46 XwPopupMgrClassPart popup_mgr_class
;
49 extern XwPopupMgrClassRec XwpopupmgrClassRec
;
51 /* New fields for the PopupMgr widget record */
54 unsigned int accelEventType
;
56 unsigned int accelModifiers
;
59 Widget
* savedCascadeList
;
61 int sizeSavedCascadeList
;
62 Widget
* currentCascadeList
;
65 XwMenuPaneWidget attachPane
;
66 XwMenuPaneWidget detachPane
;
70 /* User settable fields */
72 String postAccelerator
;
76 /****************************************************************
78 * Full instance record declaration
80 ****************************************************************/
82 typedef struct _XwPopupMgrRec
{
84 CompositePart composite
;
85 ConstraintPart constraint
;
86 XwManagerPart manager
;
87 XwMenuMgrPart menu_mgr
;
88 XwPopupMgrPart popup_mgr
;
92 #define XtInheritPopupTravLeft ((XwEventProc) _XtInherit)
93 #define XtInheritPopupTravRight ((XwEventProc) _XtInherit)
94 #define XtInheritPopupTravUp ((XwEventProc) _XtInherit)
95 #define XtInheritPopupTravDown ((XwEventProc) _XtInherit)
96 #define XtInheritPopupTravNext ((XwEventProc) _XtInherit)
97 #define XtInheritPopupTravPrev ((XwEventProc) _XtInherit)
98 #define XtInheritPopupTravHome ((XwEventProc) _XtInherit)
99 #define XtInheritPopupTravNextTop ((XwEventProc) _XtInherit)