dtwm: basic multihead(xinerama only) support
[oweals/cde.git] / cde / programs / dtcreate / OpenFile.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 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: OpenFile.h /main/4 1995/11/01 16:08:37 rswiston $ */
24 /******************************************************************************
25        OpenFile.h
26        This header file is included by OpenFile.c
27
28 ******************************************************************************/
29
30 #ifndef _OPENFILE_H_INCLUDED
31 #define _OPENFILE_H_INCLUDED
32
33
34 #include <stdio.h>
35 #include <Xm/Xm.h>
36 #include <Xm/MwmUtil.h>
37 #include <Xm/DialogS.h>
38 #include <Xm/MenuShell.h>
39 #include "UxXt.h"
40
41 #include <Xm/FileSB.h>
42
43 /******************************************************************************
44        The definition of the context structure:
45        If you create multiple copies of your interface, the context
46        structure ensures that your callbacks use the variables for the
47        correct copy.
48
49        For each swidget in the interface, each argument to the Interface
50        function, and each variable in the Interface Specific section of the
51        Declarations Editor, there is an entry in the context structure.
52        and a #define.  The #define makes the variable name refer to the
53        corresponding entry in the context structure.
54 ******************************************************************************/
55
56 typedef struct
57 {
58         Widget  UxOpenFile;
59 } _UxCOpenFile;
60
61 #ifdef CONTEXT_MACRO_ACCESS
62 static _UxCOpenFile            *UxOpenFileContext;
63 #define OpenFile                UxOpenFileContext->UxOpenFile
64
65 #endif /* CONTEXT_MACRO_ACCESS */
66
67
68 /*******************************************************************************
69        Declarations of global functions.
70 *******************************************************************************/
71
72
73 Widget  create_OpenFile(void);
74
75
76 #endif  /* _OPENFILE_H_INCLUDED */