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 librararies 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: AddFiletype.h /main/5 1995/11/01 16:05:05 rswiston $ */
24 /*******************************************************************************
26 This header file is included by AddFiletype.c
28 *******************************************************************************/
30 #ifndef _ADDFILETYPE_H_INCLUDED
31 #define _ADDFILETYPE_H_INCLUDED
35 #include <Xm/MwmUtil.h>
36 #include <Xm/DialogS.h>
37 #include <Xm/MenuShell.h>
39 #include <Xm/Separator.h>
41 #include <Xm/ScrolledW.h>
45 #include <Xm/PushBG.h>
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
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 *******************************************************************************/
68 Widget UxAF_FiletypeFamilyNameLabel;
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;
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
108 #define AF_MED_IconGadget UxAddFiletypeContext->UxAF_MED_IconGadget
109 #define AF_TINY_IconGadget UxAddFiletypeContext->UxAF_TINY_IconGadget
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
120 #endif /* CONTEXT_MACRO_ACCESS */
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;
129 /*******************************************************************************
130 Declarations of global functions.
131 *******************************************************************************/
134 void activateCB_edit_id_characteristics (
137 XmFileSelectionBoxCallbackStruct *cbstruct);
138 Widget create_AddFiletype(swidget _UxUxParent);
142 #endif /* _ADDFILETYPE_H_INCLUDED */