Fix Linux rpc problems with new glibc
[oweals/cde.git] / cde / programs / dtcreate / AddFiletype.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: AddFiletype.h /main/5 1995/11/01 16:05:05 rswiston $ */
24 /*******************************************************************************
25        AddFiletype.h
26        This header file is included by AddFiletype.c
27
28 *******************************************************************************/
29
30 #ifndef _ADDFILETYPE_H_INCLUDED
31 #define _ADDFILETYPE_H_INCLUDED
32
33 #include <stdio.h>
34 #include <Xm/Xm.h>
35 #include <Xm/MwmUtil.h>
36 #include <Xm/DialogS.h>
37 #include <Xm/MenuShell.h>
38
39 #include <Xm/Separator.h>
40 #include <Xm/Text.h>
41 #include <Xm/ScrolledW.h>
42 #include <Xm/PushB.h>
43 #include <Xm/Form.h>
44 #include <Xm/Text.h>
45 #include <Xm/PushBG.h>
46 #include <Xm/TextF.h>
47 #include <Xm/Label.h>
48 #include <Xm/Form.h>
49
50 #include "UxXt.h"
51
52 /*******************************************************************************
53        The definition of the context structure:
54        If you create multiple copies of your interface, the context
55        structure ensures that your callbacks use the variables for the
56        correct copy.
57
58        For each swidget in the interface, each argument to the Interface
59        function, and each variable in the Interface Specific section of the
60        Declarations Editor, there is an entry in the context structure.
61        and a #define.  The #define makes the variable name refer to the
62        corresponding entry in the context structure.
63 *******************************************************************************/
64
65 typedef struct
66 {
67         Widget  UxAddFiletype;
68         Widget  UxAF_FiletypeFamilyNameLabel;
69         Widget  UxAF_OkButton;
70         Widget  UxAF_ApplyButton;
71         Widget  UxAF_CancelButton;
72         Widget  UxAF_HelpButton;
73         Widget  UxAF_IdCharacteristicsText;
74         Widget  UxAF_FiletypeIconHelpLabel;
75         Widget  UxAF_IdCharacteristicsEdit;
76         Widget  UxAF_FiletypePrintCmdLabel;
77         Widget  UxAF_OpenFiletypeCmdLabel;
78         Widget  UxAF_CommandsLabel;
79         Widget  UxAF_FiletypeIconForm;
80         Widget  UxAF_MED_IconGadget;
81         Widget  UxAF_TINY_IconGadget;
82         Widget  UxAF_FiletypeIconsEditButton;
83         Widget  UxAF_FiletypeIconFindSetButton;
84         Widget  UxAF_FiletypeIconsBoxLabel;
85         Widget  UxAF_FiletypeHelpScrolledWindow;
86         Widget  UxAF_separator2;
87         Widget  UxAF_separator1;
88         Widget  UxAF_IdCharacteristicsLabel;
89         swidget UxUxParent;
90 } _UxCAddFiletype;
91
92 #ifdef CONTEXT_MACRO_ACCESS
93 static _UxCAddFiletype         *UxAddFiletypeContext;
94 #define AddFiletype             UxAddFiletypeContext->UxAddFiletype
95 #define AF_FiletypeFamilyNameLabel UxAddFiletypeContext->UxAF_FiletypeFamilyNameLabel
96 #define AF_OkButton             UxAddFiletypeContext->UxAF_OkButton
97 #define AF_ApplyButton          UxAddFiletypeContext->UxAF_ApplyButton
98 #define AF_CancelButton         UxAddFiletypeContext->UxAF_CancelButton
99 #define AF_HelpButton           UxAddFiletypeContext->UxAF_HelpButton
100 /*#define AF_IdCharacteristicsText UxAddFiletypeContext->UxAF_IdCharacteristicsText*/
101 #define AF_FiletypeIconHelpLabel UxAddFiletypeContext->UxAF_FiletypeIconHelpLabel
102 /*#define AF_IdCharacteristicsEdit UxAddFiletypeContext->UxAF_IdCharacteristicsEdit*/
103 #define AF_FiletypePrintCmdLabel UxAddFiletypeContext->UxAF_FiletypePrintCmdLabel
104 #define AF_OpenFiletypeCmdLabel UxAddFiletypeContext->UxAF_OpenFiletypeCmdLabel
105 #define AF_CommandsLabel        UxAddFiletypeContext->UxAF_CommandsLabel
106 #define AF_FiletypeIconForm     UxAddFiletypeContext->UxAF_FiletypeIconForm
107 /*
108 #define AF_MED_IconGadget       UxAddFiletypeContext->UxAF_MED_IconGadget
109 #define AF_TINY_IconGadget      UxAddFiletypeContext->UxAF_TINY_IconGadget
110 */
111 #define AF_FiletypeIconsEditButton UxAddFiletypeContext->UxAF_FiletypeIconsEditButton
112 #define AF_FiletypeIconFindSetButton UxAddFiletypeContext->UxAF_FiletypeIconFindSetButton
113 #define AF_FiletypeIconsBoxLabel UxAddFiletypeContext->UxAF_FiletypeIconsBoxLabel
114 #define AF_FiletypeHelpScrolledWindow UxAddFiletypeContext->UxAF_FiletypeHelpScrolledWindow
115 #define AF_separator2           UxAddFiletypeContext->UxAF_separator2
116 #define AF_separator1           UxAddFiletypeContext->UxAF_separator1
117 #define AF_IdCharacteristicsLabel UxAddFiletypeContext->UxAF_IdCharacteristicsLabel
118 #define UxParent                UxAddFiletypeContext->UxUxParent
119
120 #endif /* CONTEXT_MACRO_ACCESS */
121
122 extern Widget   AF_FileTypeNameTextField;
123 extern Widget   AF_FiletypePrintCmdTextField;
124 extern Widget   AF_OpenCmdText;
125 extern Widget   AF_FiletypeHelpText;
126 extern Widget   AF_MED_IconGadget;
127 extern Widget   AF_TINY_IconGadget;
128
129 /*******************************************************************************
130        Declarations of global functions.
131 *******************************************************************************/
132
133
134 void    activateCB_edit_id_characteristics (
135                            Widget filesel, 
136                            XtPointer cdata,
137                            XmFileSelectionBoxCallbackStruct *cbstruct);
138 Widget  create_AddFiletype(swidget _UxUxParent);
139
140
141
142 #endif  /* _ADDFILETYPE_H_INCLUDED */
143