dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtfile / MultiView.h
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: MultiView.h /main/4 1995/11/02 14:42:56 rswiston $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  *
27  *   FILE:           MultiView.h
28  *
29  *   COMPONENT_NAME: Desktop File Manager
30  *
31  *   DESCRIPTION:    Public include file for the shared multi-view functions.
32  *
33  *   (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
34  *   (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
35  *   (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
36  *   (c) Copyright 1993, 1994, 1995 Novell, Inc.
37  *
38  ****************************************************************************
39  ************************************<+>*************************************/
40
41 #ifndef _MultiView_h
42 #define _MultiView_h
43
44 typedef struct {
45    char type;
46    Boolean isHelpBtn;
47    String name;
48    String label;
49    String mnemonic;
50    XtPointer helpData;
51    XtCallbackProc helpCallback;
52    XtPointer activateData;
53    XtCallbackProc activateCallback;
54    unsigned int maskBit;
55    Widget widget;
56 } MenuDesc;
57
58
59 /********    Public Function Declarations    ********/
60
61 extern Widget _DtCreateMenuSystem(
62                         Widget parent ,
63                         char * menuBarName,
64                         XtCallbackProc helpCallback,
65                         XtPointer helpData,
66                         Boolean createSharedComponents,
67                         MenuDesc * menuDesc,
68                         int numMenuComponents,
69                         void (*getMenuDataProc)(),
70                         void (*setMenuSensitivity)(),
71                         void (*restoreMenuSensitivity)()) ;
72 extern void _DtGlobalUpdateMenuItemState(
73                         Widget btn,
74                         unsigned int mask,
75                         unsigned int on,
76                         unsigned int * globalMenuStates) ;
77 extern void _DtGlobalSetMenuSensitivity(
78                         Widget w,
79                         XtPointer client_data,
80                         XtPointer call_data) ;
81 extern void _DtGlobalRestoreMenuSensitivity(
82                         Widget w,
83                         XtPointer client_data,
84                         XtPointer call_data) ;
85
86 /********    End Public Function Declarations    ********/
87
88
89 /* Defines for menu components */
90 #define MENU_PANE            0
91 #define MENU_PULLDOWN_BUTTON 1
92 #define MENU_BUTTON          2
93 #define MENU_SEPARATOR       3
94 #define SHARED_MENU_PANE     4
95 #define MENU_TOGGLE_BUTTON   5
96
97
98 #endif /* _MultiView_h */
99 /* DON'T ADD ANYTHING AFTER THIS #endif */